Skip to content

Commit 2abf35d

Browse files
authored
Use default FUNDING and ISSUE_TEMPLATE (#293)
1 parent a240c21 commit 2abf35d

18 files changed

+238
-20
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/Accordion.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,39 @@
3434
final class Accordion extends Widget
3535
{
3636
private const CLASS_BODY = 'accordion-body';
37+
3738
private const CLASS_COLLAPSE = 'accordion-collapse collapse';
39+
3840
private const CLASS_HEADER = 'accordion-header';
41+
3942
private const CLASS_ITEM = 'accordion-item';
43+
4044
private const CLASS_TOGGLE = 'accordion-button';
45+
4146
private const CLASS_TOGGLE_ACTIVE = 'collapsed';
47+
4248
private const NAME = 'accordion';
49+
4350
private bool $alwaysOpen = false;
51+
4452
private array $attributes = [];
53+
4554
private array $bodyAttributes = [];
55+
4656
private array $collapseAttributes = [];
57+
4758
private array $cssClasses = [];
59+
4860
private array $headerAttributes = [];
61+
4962
private string $headerTag = 'h2';
63+
5064
private bool|string $id = true;
65+
5166
private array $items = [];
67+
5268
private array $togglerAttributes = [];
69+
5370
private string|null $togglerTag = null;
5471

5572
/**

src/Alert.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,35 @@
3030
final class Alert extends Widget
3131
{
3232
private const CLASS_CLOSE_BUTTON = 'btn-close';
33+
3334
private const NAME = 'alert';
35+
3436
private array $attributes = [];
37+
3538
private AlertVariant $alertType = AlertVariant::SECONDARY;
39+
3640
private string|Stringable $body = '';
41+
3742
private array $cssClasses = [];
43+
3844
private array $closeButtonAttributes = [];
45+
3946
private string|null $closeButtonTag = null;
47+
4048
private string $closeButtonLabel = '';
49+
4150
private bool $dismissable = false;
51+
4252
private bool $fade = false;
53+
4354
private string|null $header = null;
55+
4456
private array $headerAttributes = [];
57+
4558
private string $headerTag = 'h4';
59+
4660
private bool|string $id = true;
61+
4762
private string $templateContent = "\n{header}\n{body}\n{toggler}\n";
4863

4964
/**

src/Breadcrumbs.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,25 @@
3737
final class Breadcrumbs extends Widget
3838
{
3939
private const LIST_NAME = 'breadcrumb';
40+
4041
private const ITEM_NAME = 'breadcrumb-item';
42+
4143
private array $attributes = [];
44+
4245
private array $cssClasses = [];
46+
4347
private string $itemActiveClass = 'active';
48+
4449
private array $itemAttributes = [];
50+
4551
private array $linkAttributes = [];
52+
4653
private array $links = [];
54+
4755
private array $listAttributes = [];
56+
4857
private bool|string $listId = true;
58+
4959
private string $listTagName = 'ol';
5060

5161
/**

src/Button.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,19 @@
3535
final class Button extends Widget
3636
{
3737
private const NAME = 'btn';
38+
3839
private array $attributes = [];
40+
3941
private ButtonVariant|null $buttonVariant = ButtonVariant::SECONDARY;
42+
4043
private array $cssClasses = [];
44+
4145
private bool $disabled = false;
46+
4247
private bool|string $id = true;
48+
4349
private string|Stringable $label = '';
50+
4451
private A|ButtonTag|Input|null $tag = null;
4552

4653
/**

src/ButtonGroup.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@
3737
final class ButtonGroup extends Widget
3838
{
3939
private const NAME = 'btn-group';
40+
4041
private array $attributes = [];
42+
4143
/** psalm-var Button[]|Checkbox[]|Radio[] $buttons */
4244
private array $buttons = [];
45+
4346
private array $cssClasses = [];
47+
4448
private bool|string $id = true;
4549

4650
/**

src/ButtonToolbar.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,14 @@
5353
final class ButtonToolbar extends Widget
5454
{
5555
private const NAME = 'btn-toolbar';
56+
5657
private array $attributes = [];
58+
5759
/** @psalm-var ButtonGroup[]|Tag[] $buttonGroups */
5860
private array $buttonGroups = [];
61+
5962
private array $cssClasses = [];
63+
6064
private bool|string $id = true;
6165

6266
/**

src/Carousel.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,46 @@
3838
final class Carousel extends Widget
3939
{
4040
private const CLASS_CAROUSEL_CAPTION = 'carousel-caption d-none d-md-block';
41+
4142
private const CLASS_CAROUSEL_CONTROL_NEXT = 'carousel-control-next';
43+
4244
private const CLASS_CAROUSEL_CONTROL_NEXT_ICON = 'carousel-control-next-icon';
45+
4346
private const CLASS_CAROUSEL_CONTROL_PREV = 'carousel-control-prev';
47+
4448
private const CLASS_CAROUSEL_CONTROL_PREV_ICON = 'carousel-control-prev-icon';
49+
4550
private const CLASS_CAROUSEL_INDICATORS = 'carousel-indicators';
51+
4652
private const CLASS_CAROUSEL_INNER = 'carousel-inner';
53+
4754
private const CLASS_CAROUSEL_ITEM = 'carousel-item';
55+
4856
private const CLASS_IMAGE = 'd-block w-100';
57+
4958
private const CLASS_SLIDE = 'slide';
59+
5060
private const NAME = 'carousel';
61+
5162
private array $attributes = [];
63+
5264
private array $cssClasses = [];
65+
5366
private bool $controls = true;
67+
5468
private string $captionTagName = 'h5';
69+
5570
private string $captionPlaceholderTagName = 'p';
71+
5672
private string $controlNextLabel = 'Next';
73+
5774
private string $controlPreviousLabel = 'Previous';
75+
5876
private bool|string $id = true;
77+
5978
/** @psalm-var CarouselItem[] */
6079
private array $items = [];
80+
6181
private bool $showIndicators = false;
6282

6383
/**

src/Collapse.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,28 @@
4949
final class Collapse extends Widget
5050
{
5151
private const NAME = 'collapse';
52+
5253
private const CARD = 'card';
54+
5355
private const CARD_BODY = 'card-body';
56+
5457
private const COLLAPSE_MULTIPLE = 'multi-collapse';
58+
5559
private array $attributes = [];
60+
5661
private array $cardBodyAttributes = [];
62+
5763
private bool $container = true;
64+
5865
private array $containerAttributes = [];
66+
5967
private array $cssClasses = [];
68+
6069
/** @var Toggler[] */
6170
private array $items = [];
71+
6272
private string $togglerContainerTag = 'p';
73+
6374
private array $togglerContainerAttributes = [];
6475

6576
/**

0 commit comments

Comments
 (0)