@getflip/swirl-ai 0.490.0 → 0.491.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-option-list-item.md +1 -0
- package/dist/agent/components/swirl-toolbar.md +1 -0
- package/dist/custom-elements.manifest.json +48 -0
- package/dist/types/components/swirl-option-list-item/swirl-option-list-item.d.ts +2 -1
- package/dist/types/components/swirl-toolbar/swirl-toolbar.d.ts +2 -0
- package/dist/types/components.d.ts +19 -1
- package/package.json +2 -2
|
@@ -21,6 +21,7 @@ The SwirlOptionListItem component is used to provide a user-selectable option. I
|
|
|
21
21
|
- `icon` (string | undefined) –
|
|
22
22
|
- `iconBadge` (string | undefined) –
|
|
23
23
|
- `indeterminate` (boolean | undefined) –
|
|
24
|
+
- `minWidth` (string | undefined) –
|
|
24
25
|
- `selected` (boolean | undefined) –
|
|
25
26
|
- `swirlAriaRole` ("menuitemradio" | "option" | undefined) –
|
|
26
27
|
- `truncateLabel` (boolean | undefined) –
|
|
@@ -11,6 +11,7 @@ The SwirlToolbar component is used to provide a set of actions that are relevant
|
|
|
11
11
|
## Optional props
|
|
12
12
|
|
|
13
13
|
- `orientation` ("horizontal" | "vertical" | undefined) –
|
|
14
|
+
- `spacing` ("0" | "12" | "16" | "2" | "24" | "32" | "4" | "40" | "48" | "64" | "8" | undefined) –
|
|
14
15
|
|
|
15
16
|
## Slots
|
|
16
17
|
|
|
@@ -43357,6 +43357,14 @@
|
|
|
43357
43357
|
},
|
|
43358
43358
|
"fieldName": "label"
|
|
43359
43359
|
},
|
|
43360
|
+
{
|
|
43361
|
+
"name": "min-width",
|
|
43362
|
+
"type": {
|
|
43363
|
+
"text": "string | undefined"
|
|
43364
|
+
},
|
|
43365
|
+
"default": "\"15rem\"",
|
|
43366
|
+
"fieldName": "minWidth"
|
|
43367
|
+
},
|
|
43360
43368
|
{
|
|
43361
43369
|
"name": "selected",
|
|
43362
43370
|
"type": {
|
|
@@ -43502,6 +43510,16 @@
|
|
|
43502
43510
|
"readonly": true,
|
|
43503
43511
|
"attribute": "label"
|
|
43504
43512
|
},
|
|
43513
|
+
{
|
|
43514
|
+
"kind": "field",
|
|
43515
|
+
"name": "minWidth",
|
|
43516
|
+
"type": {
|
|
43517
|
+
"text": "string | undefined"
|
|
43518
|
+
},
|
|
43519
|
+
"default": "\"15rem\"",
|
|
43520
|
+
"readonly": true,
|
|
43521
|
+
"attribute": "min-width"
|
|
43522
|
+
},
|
|
43505
43523
|
{
|
|
43506
43524
|
"kind": "field",
|
|
43507
43525
|
"name": "selected",
|
|
@@ -61340,6 +61358,20 @@
|
|
|
61340
61358
|
},
|
|
61341
61359
|
"default": "\"horizontal\"",
|
|
61342
61360
|
"fieldName": "orientation"
|
|
61361
|
+
},
|
|
61362
|
+
{
|
|
61363
|
+
"name": "spacing",
|
|
61364
|
+
"type": {
|
|
61365
|
+
"text": "\"0\" | \"12\" | \"16\" | \"2\" | \"24\" | \"32\" | \"4\" | \"40\" | \"48\" | \"64\" | \"8\" | undefined",
|
|
61366
|
+
"references": [
|
|
61367
|
+
{
|
|
61368
|
+
"name": "SwirlStackSpacing",
|
|
61369
|
+
"module": "../swirl-stack/swirl-stack"
|
|
61370
|
+
}
|
|
61371
|
+
]
|
|
61372
|
+
},
|
|
61373
|
+
"default": "\"8\"",
|
|
61374
|
+
"fieldName": "spacing"
|
|
61343
61375
|
}
|
|
61344
61376
|
],
|
|
61345
61377
|
"members": [
|
|
@@ -61366,6 +61398,22 @@
|
|
|
61366
61398
|
"default": "\"horizontal\"",
|
|
61367
61399
|
"readonly": true,
|
|
61368
61400
|
"attribute": "orientation"
|
|
61401
|
+
},
|
|
61402
|
+
{
|
|
61403
|
+
"kind": "field",
|
|
61404
|
+
"name": "spacing",
|
|
61405
|
+
"type": {
|
|
61406
|
+
"text": "\"0\" | \"12\" | \"16\" | \"2\" | \"24\" | \"32\" | \"4\" | \"40\" | \"48\" | \"64\" | \"8\" | undefined",
|
|
61407
|
+
"references": [
|
|
61408
|
+
{
|
|
61409
|
+
"name": "SwirlStackSpacing",
|
|
61410
|
+
"module": "../swirl-stack/swirl-stack"
|
|
61411
|
+
}
|
|
61412
|
+
]
|
|
61413
|
+
},
|
|
61414
|
+
"default": "\"8\"",
|
|
61415
|
+
"readonly": true,
|
|
61416
|
+
"attribute": "spacing"
|
|
61369
61417
|
}
|
|
61370
61418
|
],
|
|
61371
61419
|
"description": "The SwirlToolbar component is used to provide a set of actions that are relevant for the given context. It has to be used in conjunction with the [SwirlButton](?path=/docs/components-swirlbutton--docs) and / or [SwirlChip](?path=/docs/components-swirlchip--docs) component.\n\nAccessibility\n\n### ARIA\n\nThis component follows the\n[WAI-ARIA Toolbar Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/).\n\n### Keyboard\n\n| Key | Action |\n| ---------------------- | ----------------------------------------- |\n| <kbd>TAB</kbd> | Enters and leaves the toolbar |\n| <kbd>ARROW-RIGHT</kbd> | Go to the next element in the toolbar |\n| <kbd>ARROW-DOWN</kbd> | Go to the next element in the toolbar |\n| <kbd>ARROW-LEFT</kbd> | Go to the previous element in the toolbar |\n| <kbd>ARROW-UP</kbd> | Go to the previous element in the toolbar |"
|
|
@@ -16,11 +16,12 @@ export declare class SwirlOptionListItem {
|
|
|
16
16
|
icon?: string;
|
|
17
17
|
iconBadge?: string;
|
|
18
18
|
label: string;
|
|
19
|
+
minWidth?: string;
|
|
19
20
|
selected?: boolean;
|
|
20
21
|
indeterminate?: boolean;
|
|
21
22
|
swirlAriaRole?: SwirlOptionListItemRole;
|
|
22
|
-
value: string;
|
|
23
23
|
truncateLabel?: boolean;
|
|
24
|
+
value: string;
|
|
24
25
|
toggleDrag: EventEmitter<HTMLSwirlOptionListItemElement>;
|
|
25
26
|
iconSize: 20 | 24;
|
|
26
27
|
focused: boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { SwirlStackSpacing } from "../swirl-stack/swirl-stack";
|
|
1
2
|
export type SwirlToolbarOrientation = "horizontal" | "vertical";
|
|
2
3
|
export declare class SwirlToolbar {
|
|
3
4
|
el: HTMLElement;
|
|
4
5
|
label: string;
|
|
5
6
|
orientation?: SwirlToolbarOrientation;
|
|
7
|
+
spacing?: SwirlStackSpacing;
|
|
6
8
|
componentDidLoad(): void;
|
|
7
9
|
private getItems;
|
|
8
10
|
private onKeyDown;
|
|
@@ -3738,6 +3738,10 @@ export namespace Components {
|
|
|
3738
3738
|
*/
|
|
3739
3739
|
"indeterminate"?: boolean;
|
|
3740
3740
|
"label": string;
|
|
3741
|
+
/**
|
|
3742
|
+
* @default "15rem"
|
|
3743
|
+
*/
|
|
3744
|
+
"minWidth"?: string;
|
|
3741
3745
|
/**
|
|
3742
3746
|
* @default false
|
|
3743
3747
|
*/
|
|
@@ -5522,6 +5526,10 @@ export namespace Components {
|
|
|
5522
5526
|
* @default "horizontal"
|
|
5523
5527
|
*/
|
|
5524
5528
|
"orientation"?: SwirlToolbarOrientation;
|
|
5529
|
+
/**
|
|
5530
|
+
* @default "8"
|
|
5531
|
+
*/
|
|
5532
|
+
"spacing"?: SwirlStackSpacing;
|
|
5525
5533
|
}
|
|
5526
5534
|
interface SwirlTooltip {
|
|
5527
5535
|
/**
|
|
@@ -13526,6 +13534,10 @@ declare namespace LocalJSX {
|
|
|
13526
13534
|
*/
|
|
13527
13535
|
"indeterminate"?: boolean;
|
|
13528
13536
|
"label": string;
|
|
13537
|
+
/**
|
|
13538
|
+
* @default "15rem"
|
|
13539
|
+
*/
|
|
13540
|
+
"minWidth"?: string;
|
|
13529
13541
|
"onToggleDrag"?: (event: SwirlOptionListItemCustomEvent<HTMLSwirlOptionListItemElement>) => void;
|
|
13530
13542
|
/**
|
|
13531
13543
|
* @default false
|
|
@@ -15272,6 +15284,10 @@ declare namespace LocalJSX {
|
|
|
15272
15284
|
* @default "horizontal"
|
|
15273
15285
|
*/
|
|
15274
15286
|
"orientation"?: SwirlToolbarOrientation;
|
|
15287
|
+
/**
|
|
15288
|
+
* @default "8"
|
|
15289
|
+
*/
|
|
15290
|
+
"spacing"?: SwirlStackSpacing;
|
|
15275
15291
|
}
|
|
15276
15292
|
interface SwirlTooltip {
|
|
15277
15293
|
/**
|
|
@@ -17338,11 +17354,12 @@ declare namespace LocalJSX {
|
|
|
17338
17354
|
"icon": string;
|
|
17339
17355
|
"iconBadge": string;
|
|
17340
17356
|
"label": string;
|
|
17357
|
+
"minWidth": string;
|
|
17341
17358
|
"selected": boolean;
|
|
17342
17359
|
"indeterminate": boolean;
|
|
17343
17360
|
"swirlAriaRole": SwirlOptionListItemRole;
|
|
17344
|
-
"value": string;
|
|
17345
17361
|
"truncateLabel": boolean;
|
|
17362
|
+
"value": string;
|
|
17346
17363
|
}
|
|
17347
17364
|
interface SwirlOptionListSectionAttributes {
|
|
17348
17365
|
"label": string;
|
|
@@ -18154,6 +18171,7 @@ declare namespace LocalJSX {
|
|
|
18154
18171
|
interface SwirlToolbarAttributes {
|
|
18155
18172
|
"label": string;
|
|
18156
18173
|
"orientation": SwirlToolbarOrientation;
|
|
18174
|
+
"spacing": SwirlStackSpacing;
|
|
18157
18175
|
}
|
|
18158
18176
|
interface SwirlTooltipAttributes {
|
|
18159
18177
|
"active": boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.491.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.491.0",
|
|
30
30
|
"@types/node": "25.3.0",
|
|
31
31
|
"tsx": "^4.7.0",
|
|
32
32
|
"typescript": "5.9.3"
|