@getflip/swirl-ai 0.492.1 → 0.493.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 +1 -1
- package/dist/agent/components/swirl-dialog.md +2 -0
- package/dist/agent/tokens.json +1 -1
- package/dist/custom-elements.manifest.json +60 -2
- package/dist/types/components/swirl-button/swirl-button.d.ts +1 -1
- package/dist/types/components/swirl-dialog/swirl-dialog.d.ts +4 -0
- package/dist/types/components/swirl-dialog/swirl-dialog.stories.d.ts +8 -0
- package/dist/types/components.d.ts +22 -2
- package/package.json +3 -3
|
@@ -24,7 +24,7 @@ The SwirlButton component is used to trigger actions or events.
|
|
|
24
24
|
- `name` (string | undefined) –
|
|
25
25
|
- `pill` (boolean | undefined) –
|
|
26
26
|
- `pressed` (boolean | undefined) –
|
|
27
|
-
- `size` ("l" | "m" | undefined) –
|
|
27
|
+
- `size` ("l" | "m" | "s" | undefined) –
|
|
28
28
|
- `swirlAriaControls` (string | undefined) –
|
|
29
29
|
- `swirlAriaCurrent` (string | undefined) –
|
|
30
30
|
- `swirlAriaDescribedby` (string | undefined) –
|
|
@@ -10,11 +10,13 @@ The SwirlDialog component is used to overlay the user interface with content tha
|
|
|
10
10
|
|
|
11
11
|
## Optional props
|
|
12
12
|
|
|
13
|
+
- `actionsOrientation` ("horizontal" | "horizontal-reverse" | "vertical" | "vertical-reverse" | undefined) –
|
|
13
14
|
- `hideLabel` (boolean | undefined) –
|
|
14
15
|
- `intent` ("critical" | "primary" | undefined) –
|
|
15
16
|
- `primaryActionLabel` (string | undefined) –
|
|
16
17
|
- `returnFocusTo` (HTMLElement | string | undefined) –
|
|
17
18
|
- `secondaryActionLabel` (string | undefined) –
|
|
19
|
+
- `size` ("default" | "large" | undefined) –
|
|
18
20
|
|
|
19
21
|
## Slots
|
|
20
22
|
|
package/dist/agent/tokens.json
CHANGED
|
@@ -645,7 +645,7 @@
|
|
|
645
645
|
{
|
|
646
646
|
"name": "interactive-primary-disabled",
|
|
647
647
|
"valueLight": "rgba(204, 205, 209, 1)",
|
|
648
|
-
"valueDark": "rgba(255,255,255,0.
|
|
648
|
+
"valueDark": "rgba(255,255,255,0.2)",
|
|
649
649
|
"tailwindNamespace": "colors",
|
|
650
650
|
"description": "Used if a component with “Interactive Primary/Default” has a disabled state."
|
|
651
651
|
},
|
|
@@ -4024,7 +4024,7 @@
|
|
|
4024
4024
|
{
|
|
4025
4025
|
"name": "size",
|
|
4026
4026
|
"type": {
|
|
4027
|
-
"text": "\"l\" | \"m\" | undefined",
|
|
4027
|
+
"text": "\"l\" | \"m\" | \"s\" | undefined",
|
|
4028
4028
|
"references": [
|
|
4029
4029
|
{
|
|
4030
4030
|
"name": "SwirlButtonSize"
|
|
@@ -4288,7 +4288,7 @@
|
|
|
4288
4288
|
"kind": "field",
|
|
4289
4289
|
"name": "size",
|
|
4290
4290
|
"type": {
|
|
4291
|
-
"text": "\"l\" | \"m\" | undefined",
|
|
4291
|
+
"text": "\"l\" | \"m\" | \"s\" | undefined",
|
|
4292
4292
|
"references": [
|
|
4293
4293
|
{
|
|
4294
4294
|
"name": "SwirlButtonSize"
|
|
@@ -7943,6 +7943,20 @@
|
|
|
7943
7943
|
"tagName": "swirl-dialog",
|
|
7944
7944
|
"name": "SwirlDialog",
|
|
7945
7945
|
"attributes": [
|
|
7946
|
+
{
|
|
7947
|
+
"name": "actions-orientation",
|
|
7948
|
+
"type": {
|
|
7949
|
+
"text": "\"horizontal\" | \"horizontal-reverse\" | \"vertical\" | \"vertical-reverse\" | undefined",
|
|
7950
|
+
"references": [
|
|
7951
|
+
{
|
|
7952
|
+
"name": "SwirlButtonGroupOrientation",
|
|
7953
|
+
"module": "../swirl-button-group/swirl-button-group"
|
|
7954
|
+
}
|
|
7955
|
+
]
|
|
7956
|
+
},
|
|
7957
|
+
"default": "\"horizontal\"",
|
|
7958
|
+
"fieldName": "actionsOrientation"
|
|
7959
|
+
},
|
|
7946
7960
|
{
|
|
7947
7961
|
"name": "hide-label",
|
|
7948
7962
|
"type": {
|
|
@@ -7996,9 +8010,38 @@
|
|
|
7996
8010
|
"text": "string | undefined"
|
|
7997
8011
|
},
|
|
7998
8012
|
"fieldName": "secondaryActionLabel"
|
|
8013
|
+
},
|
|
8014
|
+
{
|
|
8015
|
+
"name": "size",
|
|
8016
|
+
"type": {
|
|
8017
|
+
"text": "\"default\" | \"large\" | undefined",
|
|
8018
|
+
"references": [
|
|
8019
|
+
{
|
|
8020
|
+
"name": "SwirlDialogSize"
|
|
8021
|
+
}
|
|
8022
|
+
]
|
|
8023
|
+
},
|
|
8024
|
+
"default": "\"default\"",
|
|
8025
|
+
"fieldName": "size"
|
|
7999
8026
|
}
|
|
8000
8027
|
],
|
|
8001
8028
|
"members": [
|
|
8029
|
+
{
|
|
8030
|
+
"kind": "field",
|
|
8031
|
+
"name": "actionsOrientation",
|
|
8032
|
+
"type": {
|
|
8033
|
+
"text": "\"horizontal\" | \"horizontal-reverse\" | \"vertical\" | \"vertical-reverse\" | undefined",
|
|
8034
|
+
"references": [
|
|
8035
|
+
{
|
|
8036
|
+
"name": "SwirlButtonGroupOrientation",
|
|
8037
|
+
"module": "../swirl-button-group/swirl-button-group"
|
|
8038
|
+
}
|
|
8039
|
+
]
|
|
8040
|
+
},
|
|
8041
|
+
"default": "\"horizontal\"",
|
|
8042
|
+
"readonly": true,
|
|
8043
|
+
"attribute": "actions-orientation"
|
|
8044
|
+
},
|
|
8002
8045
|
{
|
|
8003
8046
|
"kind": "field",
|
|
8004
8047
|
"name": "hideLabel",
|
|
@@ -8065,6 +8108,21 @@
|
|
|
8065
8108
|
"readonly": true,
|
|
8066
8109
|
"attribute": "secondary-action-label"
|
|
8067
8110
|
},
|
|
8111
|
+
{
|
|
8112
|
+
"kind": "field",
|
|
8113
|
+
"name": "size",
|
|
8114
|
+
"type": {
|
|
8115
|
+
"text": "\"default\" | \"large\" | undefined",
|
|
8116
|
+
"references": [
|
|
8117
|
+
{
|
|
8118
|
+
"name": "SwirlDialogSize"
|
|
8119
|
+
}
|
|
8120
|
+
]
|
|
8121
|
+
},
|
|
8122
|
+
"default": "\"default\"",
|
|
8123
|
+
"readonly": true,
|
|
8124
|
+
"attribute": "size"
|
|
8125
|
+
},
|
|
8068
8126
|
{
|
|
8069
8127
|
"kind": "method",
|
|
8070
8128
|
"name": "close",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SwirlCursor } from "../../utils";
|
|
2
2
|
export type SwirlButtonIconPosition = "start" | "end";
|
|
3
3
|
export type SwirlButtonIntent = "default" | "primary" | "critical" | "strong";
|
|
4
|
-
export type SwirlButtonSize = "m" | "l";
|
|
4
|
+
export type SwirlButtonSize = "s" | "m" | "l";
|
|
5
5
|
export type SwirlButtonTextAlign = "start" | "center" | "end";
|
|
6
6
|
export type SwirlButtonType = "button" | "submit";
|
|
7
7
|
export type SwirlButtonVariant = "flat" | "ghost" | "plain" | "floating" | "on-image" | "outline" | "translucent";
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { SwirlDialogToggleEvent } from "../../utils";
|
|
3
|
+
import { SwirlButtonGroupOrientation } from "../swirl-button-group/swirl-button-group";
|
|
3
4
|
export type SwirlDialogIntent = "primary" | "critical";
|
|
5
|
+
export type SwirlDialogSize = "default" | "large";
|
|
4
6
|
/**
|
|
5
7
|
* @slot slot - The dialog content
|
|
6
8
|
* @slot left-controls - Controls displayed on the left side of the default ones
|
|
7
9
|
*/
|
|
8
10
|
export declare class SwirlDialog {
|
|
9
11
|
el: HTMLElement;
|
|
12
|
+
actionsOrientation?: SwirlButtonGroupOrientation;
|
|
10
13
|
hideLabel?: boolean;
|
|
11
14
|
intent?: SwirlDialogIntent;
|
|
12
15
|
label: string;
|
|
16
|
+
size?: SwirlDialogSize;
|
|
13
17
|
primaryActionLabel?: string;
|
|
14
18
|
returnFocusTo?: HTMLElement | string;
|
|
15
19
|
secondaryActionLabel?: string;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import Docs from "./swirl-dialog.mdx";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
argTypes: {
|
|
4
|
+
actionsOrientation: {
|
|
5
|
+
control: string;
|
|
6
|
+
options: string[];
|
|
7
|
+
};
|
|
4
8
|
returnFocusTo: {
|
|
5
9
|
control: string;
|
|
6
10
|
description: string;
|
|
7
11
|
};
|
|
12
|
+
size: {
|
|
13
|
+
control: string;
|
|
14
|
+
options: string[];
|
|
15
|
+
};
|
|
8
16
|
};
|
|
9
17
|
component: string;
|
|
10
18
|
tags: string[];
|
|
@@ -27,7 +27,8 @@ import { SwirlChipBorderRadius, SwirlChipIconColor, SwirlChipIntent, SwirlChipSi
|
|
|
27
27
|
import { SwirlColumnsSpacing } from "./components/swirl-columns/swirl-columns";
|
|
28
28
|
import { SwirlDataCellIntent } from "./components/swirl-data-cell/swirl-data-cell";
|
|
29
29
|
import { WCDatepickerLabels } from "wc-datepicker/dist/types/components/wc-datepicker/wc-datepicker";
|
|
30
|
-
import {
|
|
30
|
+
import { SwirlButtonGroupOrientation as SwirlButtonGroupOrientation1 } from "./components/swirl-button-group/swirl-button-group";
|
|
31
|
+
import { SwirlDialogIntent, SwirlDialogSize } from "./components/swirl-dialog/swirl-dialog";
|
|
31
32
|
import { SwirlCursor, SwirlDialogToggleEvent } from "./utils";
|
|
32
33
|
import { SwirlEmojiSize } from "./components/swirl-emoji/swirl-emoji.types";
|
|
33
34
|
import { SwirlButtonVariant as SwirlButtonVariant1 } from "./components/swirl-button/swirl-button";
|
|
@@ -109,7 +110,8 @@ export { SwirlChipBorderRadius, SwirlChipIconColor, SwirlChipIntent, SwirlChipSi
|
|
|
109
110
|
export { SwirlColumnsSpacing } from "./components/swirl-columns/swirl-columns";
|
|
110
111
|
export { SwirlDataCellIntent } from "./components/swirl-data-cell/swirl-data-cell";
|
|
111
112
|
export { WCDatepickerLabels } from "wc-datepicker/dist/types/components/wc-datepicker/wc-datepicker";
|
|
112
|
-
export {
|
|
113
|
+
export { SwirlButtonGroupOrientation as SwirlButtonGroupOrientation1 } from "./components/swirl-button-group/swirl-button-group";
|
|
114
|
+
export { SwirlDialogIntent, SwirlDialogSize } from "./components/swirl-dialog/swirl-dialog";
|
|
113
115
|
export { SwirlCursor, SwirlDialogToggleEvent } from "./utils";
|
|
114
116
|
export { SwirlEmojiSize } from "./components/swirl-emoji/swirl-emoji.types";
|
|
115
117
|
export { SwirlButtonVariant as SwirlButtonVariant1 } from "./components/swirl-button/swirl-button";
|
|
@@ -951,6 +953,10 @@ export namespace Components {
|
|
|
951
953
|
"tooltip"?: string;
|
|
952
954
|
}
|
|
953
955
|
interface SwirlDialog {
|
|
956
|
+
/**
|
|
957
|
+
* @default "horizontal"
|
|
958
|
+
*/
|
|
959
|
+
"actionsOrientation"?: SwirlButtonGroupOrientation1;
|
|
954
960
|
/**
|
|
955
961
|
* Close the dialog.
|
|
956
962
|
*/
|
|
@@ -968,6 +974,10 @@ export namespace Components {
|
|
|
968
974
|
"primaryActionLabel"?: string;
|
|
969
975
|
"returnFocusTo"?: HTMLElement | string;
|
|
970
976
|
"secondaryActionLabel"?: string;
|
|
977
|
+
/**
|
|
978
|
+
* @default "default"
|
|
979
|
+
*/
|
|
980
|
+
"size"?: SwirlDialogSize;
|
|
971
981
|
}
|
|
972
982
|
interface SwirlEmoji {
|
|
973
983
|
/**
|
|
@@ -10843,6 +10853,10 @@ declare namespace LocalJSX {
|
|
|
10843
10853
|
"tooltip"?: string;
|
|
10844
10854
|
}
|
|
10845
10855
|
interface SwirlDialog {
|
|
10856
|
+
/**
|
|
10857
|
+
* @default "horizontal"
|
|
10858
|
+
*/
|
|
10859
|
+
"actionsOrientation"?: SwirlButtonGroupOrientation1;
|
|
10846
10860
|
"hideLabel"?: boolean;
|
|
10847
10861
|
/**
|
|
10848
10862
|
* @default "primary"
|
|
@@ -10857,6 +10871,10 @@ declare namespace LocalJSX {
|
|
|
10857
10871
|
"primaryActionLabel"?: string;
|
|
10858
10872
|
"returnFocusTo"?: HTMLElement | string;
|
|
10859
10873
|
"secondaryActionLabel"?: string;
|
|
10874
|
+
/**
|
|
10875
|
+
* @default "default"
|
|
10876
|
+
*/
|
|
10877
|
+
"size"?: SwirlDialogSize;
|
|
10860
10878
|
}
|
|
10861
10879
|
interface SwirlEmoji {
|
|
10862
10880
|
/**
|
|
@@ -15778,9 +15796,11 @@ declare namespace LocalJSX {
|
|
|
15778
15796
|
"tooltip": string;
|
|
15779
15797
|
}
|
|
15780
15798
|
interface SwirlDialogAttributes {
|
|
15799
|
+
"actionsOrientation": SwirlButtonGroupOrientation;
|
|
15781
15800
|
"hideLabel": boolean;
|
|
15782
15801
|
"intent": SwirlDialogIntent;
|
|
15783
15802
|
"label": string;
|
|
15803
|
+
"size": SwirlDialogSize;
|
|
15784
15804
|
"primaryActionLabel": string;
|
|
15785
15805
|
"returnFocusTo": HTMLElement | string;
|
|
15786
15806
|
"secondaryActionLabel": string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.493.0",
|
|
4
4
|
"description": "Swirl Design System AI package with artifacts for AI agents",
|
|
5
5
|
"author": "Flip GmbH",
|
|
6
6
|
"repository": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"lint": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@getflip/swirl-components": "0.
|
|
30
|
-
"@getflip/swirl-tokens": "2.14.
|
|
29
|
+
"@getflip/swirl-components": "0.493.0",
|
|
30
|
+
"@getflip/swirl-tokens": "2.14.3",
|
|
31
31
|
"@types/node": "25.3.0",
|
|
32
32
|
"tsx": "^4.7.0",
|
|
33
33
|
"typescript": "5.9.3"
|