44 lines
1014 B
PHP
44 lines
1014 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace zin;
|
|
|
|
class modalNextStep extends wg
|
|
{
|
|
protected static array $defineProps = array(
|
|
'tip: string',
|
|
'items: array'
|
|
);
|
|
|
|
public static function getPageCSS(): string|false
|
|
{
|
|
return file_get_contents(__DIR__ . DS . 'css' . DS . 'v1.css');
|
|
}
|
|
|
|
protected function build(): wg
|
|
{
|
|
$tip = $this->prop('tip');
|
|
$items = $this->prop('items');
|
|
|
|
return modalDialog
|
|
(
|
|
setClass('modal-next-step'),
|
|
row
|
|
(
|
|
set::align('center'),
|
|
setClass('gap-2'),
|
|
center
|
|
(
|
|
setClass('w-8 h-8 rounded-full success'),
|
|
icon(setClass('text-xl font-bold'), 'check')
|
|
),
|
|
span
|
|
(
|
|
setClass('font-medium text-md'),
|
|
$tip
|
|
)
|
|
),
|
|
set::footerActions($items)
|
|
);
|
|
}
|
|
}
|