@getflip/swirl-ai 0.524.0 → 0.526.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-modal.md +1 -0
- package/dist/agent/components/swirl-tag.md +7 -5
- package/dist/custom-elements.manifest.json +47 -1
- package/dist/types/components/swirl-avatar-group/swirl-avatar-group.stories.d.ts +1 -0
- package/dist/types/components/swirl-modal/swirl-modal.d.ts +1 -0
- package/dist/types/components/swirl-modal/swirl-modal.stories.d.ts +3 -0
- package/dist/types/components/swirl-tag/swirl-tag.d.ts +3 -0
- package/dist/types/components.d.ts +14 -0
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ The SwirlModal component is used to overlay the user interface with content that
|
|
|
13
13
|
- `closable` (boolean | undefined) –
|
|
14
14
|
- `closeButtonLabel` (string | undefined) –
|
|
15
15
|
- `contentGap` ("0" | "12" | "16" | "2" | "20" | "24" | "32" | "4" | "8" | undefined) –
|
|
16
|
+
- `disableBackdropClose` (boolean | undefined) –
|
|
16
17
|
- `fullscreenDisableButtonLabel` (string | undefined) –
|
|
17
18
|
- `fullscreenEnableButtonLabel` (string | undefined) –
|
|
18
19
|
- `hasSidebarCloseButton` (boolean | undefined) –
|
|
@@ -15,6 +15,7 @@ The SwirlTag component is used to label or categorize items using keywords.
|
|
|
15
15
|
- `icon` (string | undefined) –
|
|
16
16
|
- `iconPosition` ("end" | "start" | undefined) –
|
|
17
17
|
- `intent` ("critical" | "default" | "info" | "special" | "success" | "translucent" | "warning" | undefined) –
|
|
18
|
+
- `interactive` (boolean | undefined) –
|
|
18
19
|
- `removable` (boolean | undefined) –
|
|
19
20
|
- `removalButtonLabel` (string | undefined) –
|
|
20
21
|
- `size` ("m" | "s" | undefined) –
|
|
@@ -27,6 +28,7 @@ _None._
|
|
|
27
28
|
## Events
|
|
28
29
|
|
|
29
30
|
- `remove` – CustomEvent<MouseEvent>
|
|
31
|
+
- `tagClick` – CustomEvent<MouseEvent>
|
|
30
32
|
|
|
31
33
|
## Methods
|
|
32
34
|
|
|
@@ -42,15 +44,15 @@ No related components.
|
|
|
42
44
|
|
|
43
45
|
| ARIA | Usage |
|
|
44
46
|
| --------------- | -------------------------------------------------------------------------------- |
|
|
45
|
-
| `role="button"` |
|
|
47
|
+
| `role="button"` | Interactive and removable tags use a native button. |
|
|
46
48
|
| `aria-label` | The removal button gets an accessible label via the `removal-button-label` prop. |
|
|
47
49
|
|
|
48
50
|
### Keyboard
|
|
49
51
|
|
|
50
|
-
| Key | Action
|
|
51
|
-
| ---------------- |
|
|
52
|
-
| <kbd>ENTER</kbd> | Activates the removal button. |
|
|
53
|
-
| <kbd>SPACE</kbd> | Activates the removal button. |
|
|
52
|
+
| Key | Action |
|
|
53
|
+
| ---------------- | ---------------------------------------------------- |
|
|
54
|
+
| <kbd>ENTER</kbd> | Activates the interactive tag or the removal button. |
|
|
55
|
+
| <kbd>SPACE</kbd> | Activates the interactive tag or the removal button. |
|
|
54
56
|
|
|
55
57
|
## Minimal example
|
|
56
58
|
|
|
@@ -45088,6 +45088,13 @@
|
|
|
45088
45088
|
},
|
|
45089
45089
|
"fieldName": "contentGap"
|
|
45090
45090
|
},
|
|
45091
|
+
{
|
|
45092
|
+
"name": "disable-backdrop-close",
|
|
45093
|
+
"type": {
|
|
45094
|
+
"text": "boolean | undefined"
|
|
45095
|
+
},
|
|
45096
|
+
"fieldName": "disableBackdropClose"
|
|
45097
|
+
},
|
|
45091
45098
|
{
|
|
45092
45099
|
"name": "fullscreen-disable-button-label",
|
|
45093
45100
|
"type": {
|
|
@@ -45405,6 +45412,15 @@
|
|
|
45405
45412
|
"readonly": true,
|
|
45406
45413
|
"attribute": "content-gap"
|
|
45407
45414
|
},
|
|
45415
|
+
{
|
|
45416
|
+
"kind": "field",
|
|
45417
|
+
"name": "disableBackdropClose",
|
|
45418
|
+
"type": {
|
|
45419
|
+
"text": "boolean | undefined"
|
|
45420
|
+
},
|
|
45421
|
+
"readonly": true,
|
|
45422
|
+
"attribute": "disable-backdrop-close"
|
|
45423
|
+
},
|
|
45408
45424
|
{
|
|
45409
45425
|
"kind": "field",
|
|
45410
45426
|
"name": "fullscreenDisableButtonLabel",
|
|
@@ -62055,6 +62071,14 @@
|
|
|
62055
62071
|
"default": "\"default\"",
|
|
62056
62072
|
"fieldName": "intent"
|
|
62057
62073
|
},
|
|
62074
|
+
{
|
|
62075
|
+
"name": "interactive",
|
|
62076
|
+
"type": {
|
|
62077
|
+
"text": "boolean | undefined"
|
|
62078
|
+
},
|
|
62079
|
+
"default": "false",
|
|
62080
|
+
"fieldName": "interactive"
|
|
62081
|
+
},
|
|
62058
62082
|
{
|
|
62059
62083
|
"name": "label",
|
|
62060
62084
|
"type": {
|
|
@@ -62162,6 +62186,16 @@
|
|
|
62162
62186
|
"readonly": true,
|
|
62163
62187
|
"attribute": "intent"
|
|
62164
62188
|
},
|
|
62189
|
+
{
|
|
62190
|
+
"kind": "field",
|
|
62191
|
+
"name": "interactive",
|
|
62192
|
+
"type": {
|
|
62193
|
+
"text": "boolean | undefined"
|
|
62194
|
+
},
|
|
62195
|
+
"default": "false",
|
|
62196
|
+
"readonly": true,
|
|
62197
|
+
"attribute": "interactive"
|
|
62198
|
+
},
|
|
62165
62199
|
{
|
|
62166
62200
|
"kind": "field",
|
|
62167
62201
|
"name": "label",
|
|
@@ -62232,6 +62266,18 @@
|
|
|
62232
62266
|
}
|
|
62233
62267
|
]
|
|
62234
62268
|
}
|
|
62269
|
+
},
|
|
62270
|
+
{
|
|
62271
|
+
"name": "tagClick",
|
|
62272
|
+
"type": {
|
|
62273
|
+
"text": "CustomEvent<MouseEvent>",
|
|
62274
|
+
"references": [
|
|
62275
|
+
{
|
|
62276
|
+
"name": "MouseEvent",
|
|
62277
|
+
"package": "global:"
|
|
62278
|
+
}
|
|
62279
|
+
]
|
|
62280
|
+
}
|
|
62235
62281
|
}
|
|
62236
62282
|
],
|
|
62237
62283
|
"cssParts": [
|
|
@@ -62239,7 +62285,7 @@
|
|
|
62239
62285
|
"name": "tag"
|
|
62240
62286
|
}
|
|
62241
62287
|
],
|
|
62242
|
-
"description": "The SwirlTag component is used to label or categorize items using keywords.\n\nAccessibility\n\n### ARIA\n\n| ARIA | Usage |\n| --------------- | -------------------------------------------------------------------------------- |\n| `role=\"button\"` |
|
|
62288
|
+
"description": "The SwirlTag component is used to label or categorize items using keywords.\n\nAccessibility\n\n### ARIA\n\n| ARIA | Usage |\n| --------------- | -------------------------------------------------------------------------------- |\n| `role=\"button\"` | Interactive and removable tags use a native button. |\n| `aria-label` | The removal button gets an accessible label via the `removal-button-label` prop. |\n\n### Keyboard\n\n| Key | Action |\n| ---------------- | ---------------------------------------------------- |\n| <kbd>ENTER</kbd> | Activates the interactive tag or the removal button. |\n| <kbd>SPACE</kbd> | Activates the interactive tag or the removal button. |"
|
|
62243
62289
|
}
|
|
62244
62290
|
],
|
|
62245
62291
|
"exports": [
|
|
@@ -9,6 +9,7 @@ export declare class SwirlTag {
|
|
|
9
9
|
icon?: string;
|
|
10
10
|
iconPosition: SwirlTagIconPosition;
|
|
11
11
|
intent?: SwirlTagIntent;
|
|
12
|
+
interactive?: boolean;
|
|
12
13
|
label: string;
|
|
13
14
|
removable?: boolean;
|
|
14
15
|
bordered?: boolean;
|
|
@@ -16,6 +17,7 @@ export declare class SwirlTag {
|
|
|
16
17
|
removalButtonLabel?: string;
|
|
17
18
|
variant?: SwirlTagVariant;
|
|
18
19
|
removeTag?: EventEmitter<MouseEvent>;
|
|
20
|
+
tagClick: EventEmitter<MouseEvent>;
|
|
19
21
|
private iconEl;
|
|
20
22
|
componentDidLoad(): void;
|
|
21
23
|
componentWillLoad(): void;
|
|
@@ -23,5 +25,6 @@ export declare class SwirlTag {
|
|
|
23
25
|
private forceIconProps;
|
|
24
26
|
private forceVariant;
|
|
25
27
|
private onRemove;
|
|
28
|
+
private onClick;
|
|
26
29
|
render(): any;
|
|
27
30
|
}
|
|
@@ -3818,6 +3818,7 @@ export namespace Components {
|
|
|
3818
3818
|
*/
|
|
3819
3819
|
"closeButtonLabel"?: string;
|
|
3820
3820
|
"contentGap"?: SwirlModalSpacing;
|
|
3821
|
+
"disableBackdropClose"?: boolean;
|
|
3821
3822
|
/**
|
|
3822
3823
|
* @default "Exit full screen"
|
|
3823
3824
|
*/
|
|
@@ -5473,6 +5474,10 @@ export namespace Components {
|
|
|
5473
5474
|
* @default "default"
|
|
5474
5475
|
*/
|
|
5475
5476
|
"intent"?: SwirlTagIntent;
|
|
5477
|
+
/**
|
|
5478
|
+
* @default false
|
|
5479
|
+
*/
|
|
5480
|
+
"interactive"?: boolean;
|
|
5476
5481
|
"label": string;
|
|
5477
5482
|
"removable"?: boolean;
|
|
5478
5483
|
/**
|
|
@@ -9920,6 +9925,7 @@ declare global {
|
|
|
9920
9925
|
};
|
|
9921
9926
|
interface HTMLSwirlTagElementEventMap {
|
|
9922
9927
|
"remove": MouseEvent;
|
|
9928
|
+
"tagClick": MouseEvent;
|
|
9923
9929
|
}
|
|
9924
9930
|
interface HTMLSwirlTagElement extends Components.SwirlTag, HTMLStencilElement {
|
|
9925
9931
|
addEventListener<K extends keyof HTMLSwirlTagElementEventMap>(type: K, listener: (this: HTMLSwirlTagElement, ev: SwirlTagCustomEvent<HTMLSwirlTagElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -14221,6 +14227,7 @@ declare namespace LocalJSX {
|
|
|
14221
14227
|
*/
|
|
14222
14228
|
"closeButtonLabel"?: string;
|
|
14223
14229
|
"contentGap"?: SwirlModalSpacing;
|
|
14230
|
+
"disableBackdropClose"?: boolean;
|
|
14224
14231
|
/**
|
|
14225
14232
|
* @default "Exit full screen"
|
|
14226
14233
|
*/
|
|
@@ -15866,8 +15873,13 @@ declare namespace LocalJSX {
|
|
|
15866
15873
|
* @default "default"
|
|
15867
15874
|
*/
|
|
15868
15875
|
"intent"?: SwirlTagIntent;
|
|
15876
|
+
/**
|
|
15877
|
+
* @default false
|
|
15878
|
+
*/
|
|
15879
|
+
"interactive"?: boolean;
|
|
15869
15880
|
"label": string;
|
|
15870
15881
|
"onRemove"?: (event: SwirlTagCustomEvent<MouseEvent>) => void;
|
|
15882
|
+
"onTagClick"?: (event: SwirlTagCustomEvent<MouseEvent>) => void;
|
|
15871
15883
|
"removable"?: boolean;
|
|
15872
15884
|
/**
|
|
15873
15885
|
* @default "Remove"
|
|
@@ -18225,6 +18237,7 @@ declare namespace LocalJSX {
|
|
|
18225
18237
|
interface SwirlModalAttributes {
|
|
18226
18238
|
"closable": boolean;
|
|
18227
18239
|
"closeButtonLabel": string;
|
|
18240
|
+
"disableBackdropClose": boolean;
|
|
18228
18241
|
"fullscreenEnableButtonLabel": string;
|
|
18229
18242
|
"fullscreenDisableButtonLabel": string;
|
|
18230
18243
|
"height": string;
|
|
@@ -18994,6 +19007,7 @@ declare namespace LocalJSX {
|
|
|
18994
19007
|
"icon": string;
|
|
18995
19008
|
"iconPosition": SwirlTagIconPosition;
|
|
18996
19009
|
"intent": SwirlTagIntent;
|
|
19010
|
+
"interactive": boolean;
|
|
18997
19011
|
"label": string;
|
|
18998
19012
|
"removable": boolean;
|
|
18999
19013
|
"bordered": boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.526.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.526.0",
|
|
30
30
|
"@getflip/swirl-tokens": "2.14.3",
|
|
31
31
|
"@types/node": "25.3.0",
|
|
32
32
|
"tsx": "^4.7.0",
|