@getflip/swirl-ai 0.538.0 → 0.539.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/components/swirl-button.md +2 -1
- package/dist/custom-elements.manifest.json +19 -1
- package/dist/types/components/swirl-button/swirl-button.d.ts +6 -0
- package/dist/types/components/swirl-button/swirl-button.stories.d.ts +1 -0
- package/dist/types/components.d.ts +9 -0
- package/package.json +2 -2
|
@@ -28,6 +28,7 @@ The SwirlButton component is used to trigger actions or events.
|
|
|
28
28
|
- `swirlAriaControls` (string | undefined) –
|
|
29
29
|
- `swirlAriaCurrent` (string | undefined) –
|
|
30
30
|
- `swirlAriaDescribedby` (string | undefined) –
|
|
31
|
+
- `swirlAriaDisabled` (boolean | undefined) –
|
|
31
32
|
- `swirlAriaExpanded` (string | undefined) –
|
|
32
33
|
- `swirlAriaHaspopup` (string | undefined) –
|
|
33
34
|
- `swirlAriaLabel` (string | undefined) –
|
|
@@ -67,7 +68,7 @@ The component follows the
|
|
|
67
68
|
| ------------------ | ------------------------------------------------------------------------------------------ |
|
|
68
69
|
| `role="button"` | Implicit when rendered as <code><button></code>; link when <code>href</code> is set. |
|
|
69
70
|
| `aria-label` | Set when the label is hidden (e.g. icon-only) or via <code>swirlAriaLabel</code>. |
|
|
70
|
-
| `aria-disabled` | Set to <code>true</code> when
|
|
71
|
+
| `aria-disabled` | Set to <code>true</code> when disabled (button only) or <code>swirlAriaDisabled</code>. |
|
|
71
72
|
| `aria-pressed` | Set to <code>true</code> when <code>pressed</code> is true (toggle buttons). |
|
|
72
73
|
| `aria-controls` | Optional; set via <code>swirlAriaControls</code>. |
|
|
73
74
|
| `aria-current` | Optional; set via <code>swirlAriaCurrent</code>. |
|
|
@@ -4124,6 +4124,14 @@
|
|
|
4124
4124
|
},
|
|
4125
4125
|
"fieldName": "swirlAriaDescribedby"
|
|
4126
4126
|
},
|
|
4127
|
+
{
|
|
4128
|
+
"name": "swirl-aria-disabled",
|
|
4129
|
+
"description": "Looks and acts disabled, but stays focusable and hoverable, e.g. so a\nwrapping swirl-tooltip can explain why.",
|
|
4130
|
+
"type": {
|
|
4131
|
+
"text": "boolean | undefined"
|
|
4132
|
+
},
|
|
4133
|
+
"fieldName": "swirlAriaDisabled"
|
|
4134
|
+
},
|
|
4127
4135
|
{
|
|
4128
4136
|
"name": "swirl-aria-expanded",
|
|
4129
4137
|
"type": {
|
|
@@ -4395,6 +4403,16 @@
|
|
|
4395
4403
|
"readonly": true,
|
|
4396
4404
|
"attribute": "swirl-aria-describedby"
|
|
4397
4405
|
},
|
|
4406
|
+
{
|
|
4407
|
+
"kind": "field",
|
|
4408
|
+
"name": "swirlAriaDisabled",
|
|
4409
|
+
"description": "Looks and acts disabled, but stays focusable and hoverable, e.g. so a\nwrapping swirl-tooltip can explain why.",
|
|
4410
|
+
"type": {
|
|
4411
|
+
"text": "boolean | undefined"
|
|
4412
|
+
},
|
|
4413
|
+
"readonly": true,
|
|
4414
|
+
"attribute": "swirl-aria-disabled"
|
|
4415
|
+
},
|
|
4398
4416
|
{
|
|
4399
4417
|
"kind": "field",
|
|
4400
4418
|
"name": "swirlAriaExpanded",
|
|
@@ -4504,7 +4522,7 @@
|
|
|
4504
4522
|
"description": "Trailing slot for content to be displayed at the end."
|
|
4505
4523
|
}
|
|
4506
4524
|
],
|
|
4507
|
-
"description": "The SwirlButton component is used to trigger actions or events.\n\nAccessibility\n\n### ARIA\n\nThe component follows the\n[WAI-ARIA Button Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/).\n\n| ARIA | Usage |\n| ------------------ | ------------------------------------------------------------------------------------------ |\n| `role=\"button\"` | Implicit when rendered as <code><button></code>; link when <code>href</code> is set. |\n| `aria-label` | Set when the label is hidden (e.g. icon-only) or via <code>swirlAriaLabel</code>. |\n| `aria-disabled` | Set to <code>true</code> when
|
|
4525
|
+
"description": "The SwirlButton component is used to trigger actions or events.\n\nAccessibility\n\n### ARIA\n\nThe component follows the\n[WAI-ARIA Button Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/).\n\n| ARIA | Usage |\n| ------------------ | ------------------------------------------------------------------------------------------ |\n| `role=\"button\"` | Implicit when rendered as <code><button></code>; link when <code>href</code> is set. |\n| `aria-label` | Set when the label is hidden (e.g. icon-only) or via <code>swirlAriaLabel</code>. |\n| `aria-disabled` | Set to <code>true</code> when disabled (button only) or <code>swirlAriaDisabled</code>. |\n| `aria-pressed` | Set to <code>true</code> when <code>pressed</code> is true (toggle buttons). |\n| `aria-controls` | Optional; set via <code>swirlAriaControls</code>. |\n| `aria-current` | Optional; set via <code>swirlAriaCurrent</code>. |\n| `aria-describedby` | Optional; set via <code>swirlAriaDescribedby</code>. |\n| `aria-expanded` | Optional; set via <code>swirlAriaExpanded</code> (e.g. for popover triggers). |\n| `aria-haspopup` | Optional; set via <code>swirlAriaHaspopup</code>. |\n\n### Keyboard\n\n| Key | Action |\n| ---------------- | --------------------- |\n| <kbd>ENTER</kbd> | Activates the button. |\n| <kbd>SPACE</kbd> | Activates the button. |"
|
|
4508
4526
|
}
|
|
4509
4527
|
],
|
|
4510
4528
|
"exports": [
|
|
@@ -33,6 +33,11 @@ export declare class SwirlButton {
|
|
|
33
33
|
swirlAriaControls?: string;
|
|
34
34
|
swirlAriaCurrent?: string;
|
|
35
35
|
swirlAriaDescribedby?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Looks and acts disabled, but stays focusable and hoverable, e.g. so a
|
|
38
|
+
* wrapping swirl-tooltip can explain why.
|
|
39
|
+
*/
|
|
40
|
+
swirlAriaDisabled?: boolean;
|
|
36
41
|
swirlAriaExpanded?: string;
|
|
37
42
|
swirlAriaHaspopup?: string;
|
|
38
43
|
swirlAriaLabel?: string;
|
|
@@ -49,6 +54,7 @@ export declare class SwirlButton {
|
|
|
49
54
|
componentDidRender(): void;
|
|
50
55
|
disconnectedCallback(): void;
|
|
51
56
|
private forceIconProps;
|
|
57
|
+
private onClick;
|
|
52
58
|
private getAriaLabel;
|
|
53
59
|
private updateFormAttribute;
|
|
54
60
|
render(): any;
|
|
@@ -588,6 +588,10 @@ export namespace Components {
|
|
|
588
588
|
"swirlAriaControls"?: string;
|
|
589
589
|
"swirlAriaCurrent"?: string;
|
|
590
590
|
"swirlAriaDescribedby"?: string;
|
|
591
|
+
/**
|
|
592
|
+
* Looks and acts disabled, but stays focusable and hoverable, e.g. so a wrapping swirl-tooltip can explain why.
|
|
593
|
+
*/
|
|
594
|
+
"swirlAriaDisabled"?: boolean;
|
|
591
595
|
"swirlAriaExpanded"?: string;
|
|
592
596
|
"swirlAriaHaspopup"?: string;
|
|
593
597
|
"swirlAriaLabel"?: string;
|
|
@@ -11198,6 +11202,10 @@ declare namespace LocalJSX {
|
|
|
11198
11202
|
"swirlAriaControls"?: string;
|
|
11199
11203
|
"swirlAriaCurrent"?: string;
|
|
11200
11204
|
"swirlAriaDescribedby"?: string;
|
|
11205
|
+
/**
|
|
11206
|
+
* Looks and acts disabled, but stays focusable and hoverable, e.g. so a wrapping swirl-tooltip can explain why.
|
|
11207
|
+
*/
|
|
11208
|
+
"swirlAriaDisabled"?: boolean;
|
|
11201
11209
|
"swirlAriaExpanded"?: string;
|
|
11202
11210
|
"swirlAriaHaspopup"?: string;
|
|
11203
11211
|
"swirlAriaLabel"?: string;
|
|
@@ -16643,6 +16651,7 @@ declare namespace LocalJSX {
|
|
|
16643
16651
|
"swirlAriaControls": string;
|
|
16644
16652
|
"swirlAriaCurrent": string;
|
|
16645
16653
|
"swirlAriaDescribedby": string;
|
|
16654
|
+
"swirlAriaDisabled": boolean;
|
|
16646
16655
|
"swirlAriaExpanded": string;
|
|
16647
16656
|
"swirlAriaHaspopup": string;
|
|
16648
16657
|
"swirlAriaLabel": string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.539.0",
|
|
4
4
|
"description": "Swirl Design System AI package with artifacts for AI agents",
|
|
5
5
|
"author": "Flip GmbH",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lint": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@getflip/swirl-components": "0.
|
|
29
|
+
"@getflip/swirl-components": "0.539.0",
|
|
30
30
|
"@getflip/swirl-tokens": "2.14.3",
|
|
31
31
|
"@types/node": "25.3.0",
|
|
32
32
|
"tsx": "^4.7.0",
|