@getflip/swirl-ai 0.525.0 → 0.527.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-data-cell.md +26 -13
- package/dist/agent/components/swirl-modal.md +1 -0
- package/dist/custom-elements.manifest.json +96 -1
- package/dist/types/components/swirl-avatar-group/swirl-avatar-group.stories.d.ts +1 -0
- package/dist/types/components/swirl-data-cell/swirl-data-cell.d.ts +5 -0
- package/dist/types/components/swirl-data-cell/swirl-data-cell.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.d.ts +29 -2
- package/package.json +2 -2
|
@@ -10,8 +10,12 @@ _None._
|
|
|
10
10
|
|
|
11
11
|
## Optional props
|
|
12
12
|
|
|
13
|
+
- `href` (string | undefined) –
|
|
13
14
|
- `intent` ("critical" | "default" | "info" | "special" | "subdued" | "success" | "translucent" | "warning" | undefined) –
|
|
15
|
+
- `interactive` (boolean | undefined) –
|
|
14
16
|
- `label` (string | undefined) –
|
|
17
|
+
- `linkTarget` (string | undefined) –
|
|
18
|
+
- `size` ("m" | "s" | undefined) –
|
|
15
19
|
- `tooltip` (string | undefined) –
|
|
16
20
|
- `value` (string | undefined) –
|
|
17
21
|
- `vertical` (boolean | undefined) –
|
|
@@ -40,22 +44,31 @@ _None._
|
|
|
40
44
|
|
|
41
45
|
### ARIA
|
|
42
46
|
|
|
43
|
-
The component structures label-value pairs for assistive technologies.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
| `role="
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
53
|
-
| `role="
|
|
47
|
+
The component structures label-value pairs for assistive technologies. When
|
|
48
|
+
`interactive` or `href` is set, the cell renders as a native button or link
|
|
49
|
+
instead, so the `term`/`definition` roles are omitted — a button/link already
|
|
50
|
+
computes its accessible name from its contents.
|
|
51
|
+
|
|
52
|
+
| ARIA | Usage |
|
|
53
|
+
| ------------------- | ----------------------------------------------------------------------------------------- |
|
|
54
|
+
| `role="group"` | Set on the host when `swirl-data-cell` is used standalone. |
|
|
55
|
+
| `role="listitem"` | Set on the host when `swirl-data-cell` is used in a stack/list. |
|
|
56
|
+
| `role="term"` | Set on the label element (omitted when `interactive`/`href` is set). |
|
|
57
|
+
| `role="definition"` | Set on the value/definition container (omitted when `interactive`/`href` is set). |
|
|
58
|
+
| `aria-labelledby` | Set on the definition, referencing the label ID (omitted when `interactive`/`href` is set). |
|
|
59
|
+
| `aria-hidden` | Set on the media container when present. |
|
|
60
|
+
| `role="button"` | Optional; set when the cell contains a checkbox or radio control. |
|
|
54
61
|
|
|
55
62
|
### Keyboard
|
|
56
63
|
|
|
57
|
-
Keyboard behavior is determined by slotted content (e.g. form controls)
|
|
58
|
-
|
|
64
|
+
Keyboard behavior is determined by slotted content (e.g. form controls), plus
|
|
65
|
+
the following when `interactive` or `href` is set:
|
|
66
|
+
|
|
67
|
+
| Key | Action |
|
|
68
|
+
| --------------- | ------------------------------------------ |
|
|
69
|
+
| <kbd>TAB</kbd> | Moves focus to/from the cell. |
|
|
70
|
+
| <kbd>ENTER</kbd> | Activates the interactive cell or link. |
|
|
71
|
+
| <kbd>SPACE</kbd> | Activates the interactive cell (buttons only). |
|
|
59
72
|
|
|
60
73
|
## Minimal example
|
|
61
74
|
|
|
@@ -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) –
|
|
@@ -6915,6 +6915,13 @@
|
|
|
6915
6915
|
"tagName": "swirl-data-cell",
|
|
6916
6916
|
"name": "SwirlDataCell",
|
|
6917
6917
|
"attributes": [
|
|
6918
|
+
{
|
|
6919
|
+
"name": "href",
|
|
6920
|
+
"type": {
|
|
6921
|
+
"text": "string | undefined"
|
|
6922
|
+
},
|
|
6923
|
+
"fieldName": "href"
|
|
6924
|
+
},
|
|
6918
6925
|
{
|
|
6919
6926
|
"name": "intent",
|
|
6920
6927
|
"type": {
|
|
@@ -6928,6 +6935,14 @@
|
|
|
6928
6935
|
"default": "\"default\"",
|
|
6929
6936
|
"fieldName": "intent"
|
|
6930
6937
|
},
|
|
6938
|
+
{
|
|
6939
|
+
"name": "interactive",
|
|
6940
|
+
"type": {
|
|
6941
|
+
"text": "boolean | undefined"
|
|
6942
|
+
},
|
|
6943
|
+
"default": "false",
|
|
6944
|
+
"fieldName": "interactive"
|
|
6945
|
+
},
|
|
6931
6946
|
{
|
|
6932
6947
|
"name": "label",
|
|
6933
6948
|
"type": {
|
|
@@ -6935,6 +6950,26 @@
|
|
|
6935
6950
|
},
|
|
6936
6951
|
"fieldName": "label"
|
|
6937
6952
|
},
|
|
6953
|
+
{
|
|
6954
|
+
"name": "link-target",
|
|
6955
|
+
"type": {
|
|
6956
|
+
"text": "string | undefined"
|
|
6957
|
+
},
|
|
6958
|
+
"fieldName": "linkTarget"
|
|
6959
|
+
},
|
|
6960
|
+
{
|
|
6961
|
+
"name": "size",
|
|
6962
|
+
"type": {
|
|
6963
|
+
"text": "\"m\" | \"s\" | undefined",
|
|
6964
|
+
"references": [
|
|
6965
|
+
{
|
|
6966
|
+
"name": "SwirlDataCellSize"
|
|
6967
|
+
}
|
|
6968
|
+
]
|
|
6969
|
+
},
|
|
6970
|
+
"default": "\"m\"",
|
|
6971
|
+
"fieldName": "size"
|
|
6972
|
+
},
|
|
6938
6973
|
{
|
|
6939
6974
|
"name": "tooltip",
|
|
6940
6975
|
"type": {
|
|
@@ -6959,6 +6994,15 @@
|
|
|
6959
6994
|
}
|
|
6960
6995
|
],
|
|
6961
6996
|
"members": [
|
|
6997
|
+
{
|
|
6998
|
+
"kind": "field",
|
|
6999
|
+
"name": "href",
|
|
7000
|
+
"type": {
|
|
7001
|
+
"text": "string | undefined"
|
|
7002
|
+
},
|
|
7003
|
+
"readonly": true,
|
|
7004
|
+
"attribute": "href"
|
|
7005
|
+
},
|
|
6962
7006
|
{
|
|
6963
7007
|
"kind": "field",
|
|
6964
7008
|
"name": "intent",
|
|
@@ -6974,6 +7018,16 @@
|
|
|
6974
7018
|
"readonly": true,
|
|
6975
7019
|
"attribute": "intent"
|
|
6976
7020
|
},
|
|
7021
|
+
{
|
|
7022
|
+
"kind": "field",
|
|
7023
|
+
"name": "interactive",
|
|
7024
|
+
"type": {
|
|
7025
|
+
"text": "boolean | undefined"
|
|
7026
|
+
},
|
|
7027
|
+
"default": "false",
|
|
7028
|
+
"readonly": true,
|
|
7029
|
+
"attribute": "interactive"
|
|
7030
|
+
},
|
|
6977
7031
|
{
|
|
6978
7032
|
"kind": "field",
|
|
6979
7033
|
"name": "label",
|
|
@@ -6983,6 +7037,31 @@
|
|
|
6983
7037
|
"readonly": true,
|
|
6984
7038
|
"attribute": "label"
|
|
6985
7039
|
},
|
|
7040
|
+
{
|
|
7041
|
+
"kind": "field",
|
|
7042
|
+
"name": "linkTarget",
|
|
7043
|
+
"type": {
|
|
7044
|
+
"text": "string | undefined"
|
|
7045
|
+
},
|
|
7046
|
+
"readonly": true,
|
|
7047
|
+
"attribute": "link-target"
|
|
7048
|
+
},
|
|
7049
|
+
{
|
|
7050
|
+
"kind": "field",
|
|
7051
|
+
"name": "size",
|
|
7052
|
+
"type": {
|
|
7053
|
+
"text": "\"m\" | \"s\" | undefined",
|
|
7054
|
+
"references": [
|
|
7055
|
+
{
|
|
7056
|
+
"name": "SwirlDataCellSize"
|
|
7057
|
+
}
|
|
7058
|
+
]
|
|
7059
|
+
},
|
|
7060
|
+
"default": "\"m\"",
|
|
7061
|
+
"readonly": true,
|
|
7062
|
+
"attribute": "size",
|
|
7063
|
+
"reflects": true
|
|
7064
|
+
},
|
|
6986
7065
|
{
|
|
6987
7066
|
"kind": "field",
|
|
6988
7067
|
"name": "tooltip",
|
|
@@ -7045,7 +7124,7 @@
|
|
|
7045
7124
|
"name": "data-cell"
|
|
7046
7125
|
}
|
|
7047
7126
|
],
|
|
7048
|
-
"description": "The SwirlDataCell component displays a label-value pair with optional media slot (e.g., swirl-avatar, icons), tooltip support with an info icon, and a suffix slot for additional content. It also supports interactive form controls through the content slot, allowing for editable data cells with inputs and selects.\n\nAccessibility\n\n### ARIA\n\nThe component structures label-value pairs for assistive technologies.\n\n| ARIA | Usage
|
|
7127
|
+
"description": "The SwirlDataCell component displays a label-value pair with optional media slot (e.g., swirl-avatar, icons), tooltip support with an info icon, and a suffix slot for additional content. It also supports interactive form controls through the content slot, allowing for editable data cells with inputs and selects.\n\nAccessibility\n\n### ARIA\n\nThe component structures label-value pairs for assistive technologies. When\n`interactive` or `href` is set, the cell renders as a native button or link\ninstead, so the `term`/`definition` roles are omitted — a button/link already\ncomputes its accessible name from its contents.\n\n| ARIA | Usage |\n| ------------------- | ----------------------------------------------------------------------------------------- |\n| `role=\"group\"` | Set on the host when `swirl-data-cell` is used standalone. |\n| `role=\"listitem\"` | Set on the host when `swirl-data-cell` is used in a stack/list. |\n| `role=\"term\"` | Set on the label element (omitted when `interactive`/`href` is set). |\n| `role=\"definition\"` | Set on the value/definition container (omitted when `interactive`/`href` is set). |\n| `aria-labelledby` | Set on the definition, referencing the label ID (omitted when `interactive`/`href` is set). |\n| `aria-hidden` | Set on the media container when present. |\n| `role=\"button\"` | Optional; set when the cell contains a checkbox or radio control. |\n\n### Keyboard\n\nKeyboard behavior is determined by slotted content (e.g. form controls), plus\nthe following when `interactive` or `href` is set:\n\n| Key | Action |\n| --------------- | ------------------------------------------ |\n| <kbd>TAB</kbd> | Moves focus to/from the cell. |\n| <kbd>ENTER</kbd> | Activates the interactive cell or link. |\n| <kbd>SPACE</kbd> | Activates the interactive cell (buttons only). |"
|
|
7049
7128
|
}
|
|
7050
7129
|
],
|
|
7051
7130
|
"exports": [
|
|
@@ -45088,6 +45167,13 @@
|
|
|
45088
45167
|
},
|
|
45089
45168
|
"fieldName": "contentGap"
|
|
45090
45169
|
},
|
|
45170
|
+
{
|
|
45171
|
+
"name": "disable-backdrop-close",
|
|
45172
|
+
"type": {
|
|
45173
|
+
"text": "boolean | undefined"
|
|
45174
|
+
},
|
|
45175
|
+
"fieldName": "disableBackdropClose"
|
|
45176
|
+
},
|
|
45091
45177
|
{
|
|
45092
45178
|
"name": "fullscreen-disable-button-label",
|
|
45093
45179
|
"type": {
|
|
@@ -45405,6 +45491,15 @@
|
|
|
45405
45491
|
"readonly": true,
|
|
45406
45492
|
"attribute": "content-gap"
|
|
45407
45493
|
},
|
|
45494
|
+
{
|
|
45495
|
+
"kind": "field",
|
|
45496
|
+
"name": "disableBackdropClose",
|
|
45497
|
+
"type": {
|
|
45498
|
+
"text": "boolean | undefined"
|
|
45499
|
+
},
|
|
45500
|
+
"readonly": true,
|
|
45501
|
+
"attribute": "disable-backdrop-close"
|
|
45502
|
+
},
|
|
45408
45503
|
{
|
|
45409
45504
|
"kind": "field",
|
|
45410
45505
|
"name": "fullscreenDisableButtonLabel",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
export type SwirlDataCellIntent = "default" | "critical" | "warning" | "success" | "info" | "special" | "translucent" | "subdued";
|
|
3
|
+
export type SwirlDataCellSize = "s" | "m";
|
|
3
4
|
/**
|
|
4
5
|
* @slot media - Optional media content (e.g., swirl-avatar, icons). Only swirl-avatar and icon elements are styled.
|
|
5
6
|
* @slot content - Optional content element (e.g., swirl-text-input, swirl-select). When provided, the value prop is ignored. Content automatically takes 100% width when no label is present.
|
|
@@ -7,8 +8,12 @@ export type SwirlDataCellIntent = "default" | "critical" | "warning" | "success"
|
|
|
7
8
|
*/
|
|
8
9
|
export declare class SwirlDataCell {
|
|
9
10
|
el: HTMLElement;
|
|
11
|
+
href?: string;
|
|
10
12
|
intent?: SwirlDataCellIntent;
|
|
13
|
+
interactive?: boolean;
|
|
11
14
|
label?: string;
|
|
15
|
+
linkTarget?: string;
|
|
16
|
+
size?: SwirlDataCellSize;
|
|
12
17
|
tooltip?: string;
|
|
13
18
|
value?: string;
|
|
14
19
|
vertical?: boolean;
|
|
@@ -15,4 +15,5 @@ export declare const MultipleCells: () => HTMLElement;
|
|
|
15
15
|
export declare const WithInput: () => HTMLElement;
|
|
16
16
|
export declare const WithSelect: () => HTMLElement;
|
|
17
17
|
export declare const WithCheckbox: () => HTMLElement;
|
|
18
|
+
export declare const InteractiveCompactCells: () => HTMLElement;
|
|
18
19
|
export declare const WithRadioButton: () => HTMLElement;
|
|
@@ -25,7 +25,7 @@ import { SwirlCarouselFadeColor, SwirlCarouselPadding, SwirlCarouselSpacing } fr
|
|
|
25
25
|
import { SwirlCheckboxLabelWeight, SwirlCheckboxState, SwirlCheckboxVariant } from "./components/swirl-checkbox/swirl-checkbox";
|
|
26
26
|
import { SwirlChipIconColor, SwirlChipIntent } from "./components/swirl-chip/swirl-chip";
|
|
27
27
|
import { SwirlColumnsSpacing } from "./components/swirl-columns/swirl-columns";
|
|
28
|
-
import { SwirlDataCellIntent } from "./components/swirl-data-cell/swirl-data-cell";
|
|
28
|
+
import { SwirlDataCellIntent, SwirlDataCellSize } from "./components/swirl-data-cell/swirl-data-cell";
|
|
29
29
|
import { WCDatepickerLabels } from "wc-datepicker/dist/types/components/wc-datepicker/wc-datepicker";
|
|
30
30
|
import { SwirlButtonGroupOrientation as SwirlButtonGroupOrientation1 } from "./components/swirl-button-group/swirl-button-group";
|
|
31
31
|
import { SwirlDialogIntent, SwirlDialogSize } from "./components/swirl-dialog/swirl-dialog";
|
|
@@ -109,7 +109,7 @@ export { SwirlCarouselFadeColor, SwirlCarouselPadding, SwirlCarouselSpacing } fr
|
|
|
109
109
|
export { SwirlCheckboxLabelWeight, SwirlCheckboxState, SwirlCheckboxVariant } from "./components/swirl-checkbox/swirl-checkbox";
|
|
110
110
|
export { SwirlChipIconColor, SwirlChipIntent } from "./components/swirl-chip/swirl-chip";
|
|
111
111
|
export { SwirlColumnsSpacing } from "./components/swirl-columns/swirl-columns";
|
|
112
|
-
export { SwirlDataCellIntent } from "./components/swirl-data-cell/swirl-data-cell";
|
|
112
|
+
export { SwirlDataCellIntent, SwirlDataCellSize } from "./components/swirl-data-cell/swirl-data-cell";
|
|
113
113
|
export { WCDatepickerLabels } from "wc-datepicker/dist/types/components/wc-datepicker/wc-datepicker";
|
|
114
114
|
export { SwirlButtonGroupOrientation as SwirlButtonGroupOrientation1 } from "./components/swirl-button-group/swirl-button-group";
|
|
115
115
|
export { SwirlDialogIntent, SwirlDialogSize } from "./components/swirl-dialog/swirl-dialog";
|
|
@@ -838,11 +838,21 @@ export namespace Components {
|
|
|
838
838
|
"toggleSidebar": () => Promise<void>;
|
|
839
839
|
}
|
|
840
840
|
interface SwirlDataCell {
|
|
841
|
+
"href"?: string;
|
|
841
842
|
/**
|
|
842
843
|
* @default "default"
|
|
843
844
|
*/
|
|
844
845
|
"intent"?: SwirlDataCellIntent;
|
|
846
|
+
/**
|
|
847
|
+
* @default false
|
|
848
|
+
*/
|
|
849
|
+
"interactive"?: boolean;
|
|
845
850
|
"label"?: string;
|
|
851
|
+
"linkTarget"?: string;
|
|
852
|
+
/**
|
|
853
|
+
* @default "m"
|
|
854
|
+
*/
|
|
855
|
+
"size"?: SwirlDataCellSize;
|
|
846
856
|
"tooltip"?: string;
|
|
847
857
|
"value"?: string;
|
|
848
858
|
/**
|
|
@@ -3818,6 +3828,7 @@ export namespace Components {
|
|
|
3818
3828
|
*/
|
|
3819
3829
|
"closeButtonLabel"?: string;
|
|
3820
3830
|
"contentGap"?: SwirlModalSpacing;
|
|
3831
|
+
"disableBackdropClose"?: boolean;
|
|
3821
3832
|
/**
|
|
3822
3833
|
* @default "Exit full screen"
|
|
3823
3834
|
*/
|
|
@@ -11333,12 +11344,22 @@ declare namespace LocalJSX {
|
|
|
11333
11344
|
"subheading"?: string;
|
|
11334
11345
|
}
|
|
11335
11346
|
interface SwirlDataCell {
|
|
11347
|
+
"href"?: string;
|
|
11336
11348
|
/**
|
|
11337
11349
|
* @default "default"
|
|
11338
11350
|
*/
|
|
11339
11351
|
"intent"?: SwirlDataCellIntent;
|
|
11352
|
+
/**
|
|
11353
|
+
* @default false
|
|
11354
|
+
*/
|
|
11355
|
+
"interactive"?: boolean;
|
|
11340
11356
|
"label"?: string;
|
|
11357
|
+
"linkTarget"?: string;
|
|
11341
11358
|
"onValueChange"?: (event: SwirlDataCellCustomEvent<MouseEvent>) => void;
|
|
11359
|
+
/**
|
|
11360
|
+
* @default "m"
|
|
11361
|
+
*/
|
|
11362
|
+
"size"?: SwirlDataCellSize;
|
|
11342
11363
|
"tooltip"?: string;
|
|
11343
11364
|
"value"?: string;
|
|
11344
11365
|
/**
|
|
@@ -14226,6 +14247,7 @@ declare namespace LocalJSX {
|
|
|
14226
14247
|
*/
|
|
14227
14248
|
"closeButtonLabel"?: string;
|
|
14228
14249
|
"contentGap"?: SwirlModalSpacing;
|
|
14250
|
+
"disableBackdropClose"?: boolean;
|
|
14229
14251
|
/**
|
|
14230
14252
|
* @default "Exit full screen"
|
|
14231
14253
|
*/
|
|
@@ -16577,8 +16599,12 @@ declare namespace LocalJSX {
|
|
|
16577
16599
|
"hideContentHeader": boolean;
|
|
16578
16600
|
}
|
|
16579
16601
|
interface SwirlDataCellAttributes {
|
|
16602
|
+
"href": string;
|
|
16580
16603
|
"intent": SwirlDataCellIntent;
|
|
16604
|
+
"interactive": boolean;
|
|
16581
16605
|
"label": string;
|
|
16606
|
+
"linkTarget": string;
|
|
16607
|
+
"size": SwirlDataCellSize;
|
|
16582
16608
|
"tooltip": string;
|
|
16583
16609
|
"value": string;
|
|
16584
16610
|
"vertical": boolean;
|
|
@@ -18235,6 +18261,7 @@ declare namespace LocalJSX {
|
|
|
18235
18261
|
interface SwirlModalAttributes {
|
|
18236
18262
|
"closable": boolean;
|
|
18237
18263
|
"closeButtonLabel": string;
|
|
18264
|
+
"disableBackdropClose": boolean;
|
|
18238
18265
|
"fullscreenEnableButtonLabel": string;
|
|
18239
18266
|
"fullscreenDisableButtonLabel": string;
|
|
18240
18267
|
"height": string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.527.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.527.0",
|
|
30
30
|
"@getflip/swirl-tokens": "2.14.3",
|
|
31
31
|
"@types/node": "25.3.0",
|
|
32
32
|
"tsx": "^4.7.0",
|