@getflip/swirl-ai 0.498.0 → 0.500.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.
@@ -0,0 +1,50 @@
1
+ # `<swirl-icon-api>`
2
+
3
+ ## Purpose
4
+
5
+ Custom element: swirl-icon-api.
6
+
7
+ ## Required props
8
+
9
+ _None._
10
+
11
+ ## Optional props
12
+
13
+ - `color` ("critical" | "default" | "disabled" | "highlight" | "info" | "on-action-primary" | "on-image" | "on-status" | "on-surface-highlight" | "on-surface-highlight-subdued" | "strong" | "success" | "warning" | undefined) –
14
+ - `label` (string | undefined) –
15
+ - `size` (16 | 20 | 24 | 28 | undefined) –
16
+
17
+ ## Slots
18
+
19
+ _None._
20
+
21
+ ## Events
22
+
23
+ _None._
24
+
25
+ ## Methods
26
+
27
+ _None._
28
+
29
+ ## Related components
30
+
31
+ _See description for usage context._
32
+
33
+ ## Accessibility
34
+
35
+ _See full docs for accessibility details._
36
+
37
+ ## Minimal example
38
+
39
+ ```html
40
+ <swirl-icon-api></swirl-icon-api>
41
+ ```
42
+
43
+ ## Usage example
44
+
45
+ _No usage example in docs._
46
+
47
+ ## Common mistakes
48
+
49
+ - Ensure required props are set.
50
+ - Use only allowed slot names and child components where documented.
@@ -12,6 +12,7 @@ The SwirlToast component is used to give brief, non-disruptive feedback after an
12
12
 
13
13
  - `accessibleDismissLabel` (string | undefined) –
14
14
  - `actionLabel` (string | undefined) –
15
+ - `actionPosition` ("bottom" | "inline" | undefined) –
15
16
  - `content` (string | undefined) –
16
17
  - `dismissLabel` (string | undefined) –
17
18
  - `duration` (number | undefined) –
@@ -294,6 +294,10 @@
294
294
  "tag": "swirl-icon-ai-filled",
295
295
  "summary": "swirl-icon-ai-filled"
296
296
  },
297
+ {
298
+ "tag": "swirl-icon-api",
299
+ "summary": "swirl-icon-api"
300
+ },
297
301
  {
298
302
  "tag": "swirl-icon-apparel",
299
303
  "summary": "swirl-icon-apparel"
@@ -12504,6 +12504,117 @@
12504
12504
  }
12505
12505
  ]
12506
12506
  },
12507
+ {
12508
+ "kind": "javascript-module",
12509
+ "path": "src/components/swirl-icon/icons/swirl-icon-api.tsx",
12510
+ "declarations": [
12511
+ {
12512
+ "kind": "class",
12513
+ "customElement": true,
12514
+ "tagName": "swirl-icon-api",
12515
+ "name": "SwirlIconApi",
12516
+ "attributes": [
12517
+ {
12518
+ "name": "color",
12519
+ "type": {
12520
+ "text": "\"critical\" | \"default\" | \"disabled\" | \"highlight\" | \"info\" | \"on-action-primary\" | \"on-image\" | \"on-status\" | \"on-surface-highlight\" | \"on-surface-highlight-subdued\" | \"strong\" | \"success\" | \"warning\" | undefined",
12521
+ "references": [
12522
+ {
12523
+ "name": "SwirlIconColor",
12524
+ "module": "../swirl-icon"
12525
+ }
12526
+ ]
12527
+ },
12528
+ "fieldName": "color"
12529
+ },
12530
+ {
12531
+ "name": "label",
12532
+ "type": {
12533
+ "text": "string | undefined"
12534
+ },
12535
+ "fieldName": "label"
12536
+ },
12537
+ {
12538
+ "name": "size",
12539
+ "type": {
12540
+ "text": "16 | 20 | 24 | 28 | undefined",
12541
+ "references": [
12542
+ {
12543
+ "name": "SwirlIconSize",
12544
+ "module": "../swirl-icon.types"
12545
+ }
12546
+ ]
12547
+ },
12548
+ "default": "24",
12549
+ "fieldName": "size"
12550
+ }
12551
+ ],
12552
+ "members": [
12553
+ {
12554
+ "kind": "field",
12555
+ "name": "color",
12556
+ "type": {
12557
+ "text": "\"critical\" | \"default\" | \"disabled\" | \"highlight\" | \"info\" | \"on-action-primary\" | \"on-image\" | \"on-status\" | \"on-surface-highlight\" | \"on-surface-highlight-subdued\" | \"strong\" | \"success\" | \"warning\" | undefined",
12558
+ "references": [
12559
+ {
12560
+ "name": "SwirlIconColor",
12561
+ "module": "../swirl-icon"
12562
+ }
12563
+ ]
12564
+ },
12565
+ "readonly": true,
12566
+ "attribute": "color"
12567
+ },
12568
+ {
12569
+ "kind": "field",
12570
+ "name": "label",
12571
+ "type": {
12572
+ "text": "string | undefined"
12573
+ },
12574
+ "readonly": true,
12575
+ "attribute": "label"
12576
+ },
12577
+ {
12578
+ "kind": "field",
12579
+ "name": "size",
12580
+ "type": {
12581
+ "text": "16 | 20 | 24 | 28 | undefined",
12582
+ "references": [
12583
+ {
12584
+ "name": "SwirlIconSize",
12585
+ "module": "../swirl-icon.types"
12586
+ }
12587
+ ]
12588
+ },
12589
+ "default": "24",
12590
+ "readonly": true,
12591
+ "attribute": "size"
12592
+ }
12593
+ ],
12594
+ "cssParts": [
12595
+ {
12596
+ "name": "icon"
12597
+ }
12598
+ ]
12599
+ }
12600
+ ],
12601
+ "exports": [
12602
+ {
12603
+ "kind": "js",
12604
+ "name": "SwirlIconApi",
12605
+ "declaration": {
12606
+ "name": "SwirlIconApi"
12607
+ }
12608
+ },
12609
+ {
12610
+ "kind": "custom-element-definition",
12611
+ "name": "swirl-icon-api",
12612
+ "declaration": {
12613
+ "name": "SwirlIconApi"
12614
+ }
12615
+ }
12616
+ ]
12617
+ },
12507
12618
  {
12508
12619
  "kind": "javascript-module",
12509
12620
  "path": "src/components/swirl-icon/icons/swirl-icon-apparel.tsx",
@@ -61538,6 +61649,19 @@
61538
61649
  },
61539
61650
  "fieldName": "actionLabel"
61540
61651
  },
61652
+ {
61653
+ "name": "action-position",
61654
+ "type": {
61655
+ "text": "\"bottom\" | \"inline\" | undefined",
61656
+ "references": [
61657
+ {
61658
+ "name": "SwirlToastActionPosition"
61659
+ }
61660
+ ]
61661
+ },
61662
+ "default": "\"inline\"",
61663
+ "fieldName": "actionPosition"
61664
+ },
61541
61665
  {
61542
61666
  "name": "content",
61543
61667
  "type": {
@@ -61608,6 +61732,21 @@
61608
61732
  "readonly": true,
61609
61733
  "attribute": "action-label"
61610
61734
  },
61735
+ {
61736
+ "kind": "field",
61737
+ "name": "actionPosition",
61738
+ "type": {
61739
+ "text": "\"bottom\" | \"inline\" | undefined",
61740
+ "references": [
61741
+ {
61742
+ "name": "SwirlToastActionPosition"
61743
+ }
61744
+ ]
61745
+ },
61746
+ "default": "\"inline\"",
61747
+ "readonly": true,
61748
+ "attribute": "action-position"
61749
+ },
61611
61750
  {
61612
61751
  "kind": "field",
61613
61752
  "name": "content",
@@ -61800,7 +61939,7 @@
61800
61939
  {
61801
61940
  "name": "newToast",
61802
61941
  "type": {
61803
- "text": "{ accessibleDismissLabel?: string; content: string; actionLabel?: string; dismissOnAction?: boolean; dismissLabel?: string; duration?: number; icon?: string; intent?: SwirlToastIntent; toastId?: string; onDismiss?: (toastId: string) => void; onAction?: (toastId: string) => void; }",
61942
+ "text": "{ accessibleDismissLabel?: string; content: string; actionLabel?: string; actionPosition?: SwirlToastActionPosition; dismissOnAction?: boolean; dismissLabel?: string; duration?: number; icon?: string; intent?: SwirlToastIntent; toastId?: string; onDismiss?: (toastId: string) => void; onAction?: (toastId: string) => void; }",
61804
61943
  "references": [
61805
61944
  {
61806
61945
  "name": "Promise",
@@ -0,0 +1,8 @@
1
+ import { SwirlIconSize } from "../swirl-icon.types";
2
+ import { SwirlIconColor } from "../swirl-icon";
3
+ export declare class SwirlIconApi {
4
+ color?: SwirlIconColor;
5
+ label?: string;
6
+ size: SwirlIconSize;
7
+ render(): any;
8
+ }
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
+ export type SwirlToastActionPosition = "bottom" | "inline";
2
3
  export type SwirlToastIntent = "default" | "critical" | "success";
3
4
  /**
4
5
  * @slot slot - The toast content. When provided, overrides the `content` prop.
@@ -6,6 +7,7 @@ export type SwirlToastIntent = "default" | "critical" | "success";
6
7
  export declare class SwirlToast {
7
8
  accessibleDismissLabel?: string;
8
9
  actionLabel?: string;
10
+ actionPosition?: SwirlToastActionPosition;
9
11
  content?: string;
10
12
  dismissLabel?: string;
11
13
  /**
@@ -1,9 +1,10 @@
1
- import { SwirlToastIntent } from "../swirl-toast/swirl-toast";
2
1
  import { SwirlDialogToggleEvent } from "../../utils";
2
+ import { SwirlToastActionPosition, SwirlToastIntent } from "../swirl-toast/swirl-toast";
3
3
  export type SwirlToastConfig = {
4
4
  accessibleDismissLabel?: string;
5
5
  content: string;
6
6
  actionLabel?: string;
7
+ actionPosition?: SwirlToastActionPosition;
7
8
  dismissOnAction?: boolean;
8
9
  dismissLabel?: string;
9
10
  duration?: number;
@@ -80,7 +80,7 @@ import { SwirlTextAlign, SwirlTextColor, SwirlTextFontFamily, SwirlTextFontStyle
80
80
  import { SwirlTextInputFontSize, SwirlTextInputMode as SwirlTextInputMode1, SwirlTextInputType } from "./components/swirl-text-input/swirl-text-input";
81
81
  import { SwirlOSTheme, SwirlOSThemeChangeEventData, SwirlThemeProviderConfig } from "./components/swirl-theme-provider/swirl-theme-provider.types";
82
82
  import { SwirlThumbnailFormat, SwirlThumbnailSize } from "./components/swirl-thumbnail/swirl-thumbnail";
83
- import { SwirlToastIntent } from "./components/swirl-toast/swirl-toast";
83
+ import { SwirlToastActionPosition, SwirlToastIntent } from "./components/swirl-toast/swirl-toast";
84
84
  import { SwirlToastConfig, SwirlToastMessage } from "./components/swirl-toast-provider/swirl-toast-provider";
85
85
  import { SwirlToggleGroupVariant } from "./components/swirl-toggle-group/swirl-toggle-group";
86
86
  import { SwirlToolbarOrientation } from "./components/swirl-toolbar/swirl-toolbar";
@@ -163,7 +163,7 @@ export { SwirlTextAlign, SwirlTextColor, SwirlTextFontFamily, SwirlTextFontStyle
163
163
  export { SwirlTextInputFontSize, SwirlTextInputMode as SwirlTextInputMode1, SwirlTextInputType } from "./components/swirl-text-input/swirl-text-input";
164
164
  export { SwirlOSTheme, SwirlOSThemeChangeEventData, SwirlThemeProviderConfig } from "./components/swirl-theme-provider/swirl-theme-provider.types";
165
165
  export { SwirlThumbnailFormat, SwirlThumbnailSize } from "./components/swirl-thumbnail/swirl-thumbnail";
166
- export { SwirlToastIntent } from "./components/swirl-toast/swirl-toast";
166
+ export { SwirlToastActionPosition, SwirlToastIntent } from "./components/swirl-toast/swirl-toast";
167
167
  export { SwirlToastConfig, SwirlToastMessage } from "./components/swirl-toast-provider/swirl-toast-provider";
168
168
  export { SwirlToggleGroupVariant } from "./components/swirl-toggle-group/swirl-toggle-group";
169
169
  export { SwirlToolbarOrientation } from "./components/swirl-toolbar/swirl-toolbar";
@@ -1404,6 +1404,14 @@ export namespace Components {
1404
1404
  */
1405
1405
  "size": SwirlIconSize;
1406
1406
  }
1407
+ interface SwirlIconApi {
1408
+ "color"?: SwirlIconColor1;
1409
+ "label"?: string;
1410
+ /**
1411
+ * @default 24
1412
+ */
1413
+ "size": SwirlIconSize;
1414
+ }
1407
1415
  interface SwirlIconApparel {
1408
1416
  "color"?: SwirlIconColor1;
1409
1417
  "label"?: string;
@@ -5526,6 +5534,10 @@ export namespace Components {
5526
5534
  */
5527
5535
  "accessibleDismissLabel"?: string;
5528
5536
  "actionLabel"?: string;
5537
+ /**
5538
+ * @default "inline"
5539
+ */
5540
+ "actionPosition"?: SwirlToastActionPosition;
5529
5541
  "content"?: string;
5530
5542
  "dismissLabel"?: string;
5531
5543
  /**
@@ -6650,6 +6662,12 @@ declare global {
6650
6662
  prototype: HTMLSwirlIconAiFilledElement;
6651
6663
  new (): HTMLSwirlIconAiFilledElement;
6652
6664
  };
6665
+ interface HTMLSwirlIconApiElement extends Components.SwirlIconApi, HTMLStencilElement {
6666
+ }
6667
+ var HTMLSwirlIconApiElement: {
6668
+ prototype: HTMLSwirlIconApiElement;
6669
+ new (): HTMLSwirlIconApiElement;
6670
+ };
6653
6671
  interface HTMLSwirlIconApparelElement extends Components.SwirlIconApparel, HTMLStencilElement {
6654
6672
  }
6655
6673
  var HTMLSwirlIconApparelElement: {
@@ -9750,6 +9768,7 @@ declare global {
9750
9768
  "swirl-icon-admin-panel-settings": HTMLSwirlIconAdminPanelSettingsElement;
9751
9769
  "swirl-icon-ai": HTMLSwirlIconAiElement;
9752
9770
  "swirl-icon-ai-filled": HTMLSwirlIconAiFilledElement;
9771
+ "swirl-icon-api": HTMLSwirlIconApiElement;
9753
9772
  "swirl-icon-apparel": HTMLSwirlIconApparelElement;
9754
9773
  "swirl-icon-apps": HTMLSwirlIconAppsElement;
9755
9774
  "swirl-icon-arrow-back": HTMLSwirlIconArrowBackElement;
@@ -11354,6 +11373,14 @@ declare namespace LocalJSX {
11354
11373
  */
11355
11374
  "size"?: SwirlIconSize;
11356
11375
  }
11376
+ interface SwirlIconApi {
11377
+ "color"?: SwirlIconColor1;
11378
+ "label"?: string;
11379
+ /**
11380
+ * @default 24
11381
+ */
11382
+ "size"?: SwirlIconSize;
11383
+ }
11357
11384
  interface SwirlIconApparel {
11358
11385
  "color"?: SwirlIconColor1;
11359
11386
  "label"?: string;
@@ -15394,6 +15421,10 @@ declare namespace LocalJSX {
15394
15421
  */
15395
15422
  "accessibleDismissLabel"?: string;
15396
15423
  "actionLabel"?: string;
15424
+ /**
15425
+ * @default "inline"
15426
+ */
15427
+ "actionPosition"?: SwirlToastActionPosition;
15397
15428
  "content"?: string;
15398
15429
  "dismissLabel"?: string;
15399
15430
  /**
@@ -16128,6 +16159,11 @@ declare namespace LocalJSX {
16128
16159
  "label": string;
16129
16160
  "size": SwirlIconSize;
16130
16161
  }
16162
+ interface SwirlIconApiAttributes {
16163
+ "color": SwirlIconColor;
16164
+ "label": string;
16165
+ "size": SwirlIconSize;
16166
+ }
16131
16167
  interface SwirlIconApparelAttributes {
16132
16168
  "color": SwirlIconColor;
16133
16169
  "label": string;
@@ -18335,6 +18371,7 @@ declare namespace LocalJSX {
18335
18371
  interface SwirlToastAttributes {
18336
18372
  "accessibleDismissLabel": string;
18337
18373
  "actionLabel": string;
18374
+ "actionPosition": SwirlToastActionPosition;
18338
18375
  "content": string;
18339
18376
  "dismissLabel": string;
18340
18377
  "duration": number;
@@ -18474,6 +18511,7 @@ declare namespace LocalJSX {
18474
18511
  "swirl-icon-admin-panel-settings": Omit<SwirlIconAdminPanelSettings, keyof SwirlIconAdminPanelSettingsAttributes> & { [K in keyof SwirlIconAdminPanelSettings & keyof SwirlIconAdminPanelSettingsAttributes]?: SwirlIconAdminPanelSettings[K] } & { [K in keyof SwirlIconAdminPanelSettings & keyof SwirlIconAdminPanelSettingsAttributes as `attr:${K}`]?: SwirlIconAdminPanelSettingsAttributes[K] } & { [K in keyof SwirlIconAdminPanelSettings & keyof SwirlIconAdminPanelSettingsAttributes as `prop:${K}`]?: SwirlIconAdminPanelSettings[K] };
18475
18512
  "swirl-icon-ai": Omit<SwirlIconAi, keyof SwirlIconAiAttributes> & { [K in keyof SwirlIconAi & keyof SwirlIconAiAttributes]?: SwirlIconAi[K] } & { [K in keyof SwirlIconAi & keyof SwirlIconAiAttributes as `attr:${K}`]?: SwirlIconAiAttributes[K] } & { [K in keyof SwirlIconAi & keyof SwirlIconAiAttributes as `prop:${K}`]?: SwirlIconAi[K] };
18476
18513
  "swirl-icon-ai-filled": Omit<SwirlIconAiFilled, keyof SwirlIconAiFilledAttributes> & { [K in keyof SwirlIconAiFilled & keyof SwirlIconAiFilledAttributes]?: SwirlIconAiFilled[K] } & { [K in keyof SwirlIconAiFilled & keyof SwirlIconAiFilledAttributes as `attr:${K}`]?: SwirlIconAiFilledAttributes[K] } & { [K in keyof SwirlIconAiFilled & keyof SwirlIconAiFilledAttributes as `prop:${K}`]?: SwirlIconAiFilled[K] };
18514
+ "swirl-icon-api": Omit<SwirlIconApi, keyof SwirlIconApiAttributes> & { [K in keyof SwirlIconApi & keyof SwirlIconApiAttributes]?: SwirlIconApi[K] } & { [K in keyof SwirlIconApi & keyof SwirlIconApiAttributes as `attr:${K}`]?: SwirlIconApiAttributes[K] } & { [K in keyof SwirlIconApi & keyof SwirlIconApiAttributes as `prop:${K}`]?: SwirlIconApi[K] };
18477
18515
  "swirl-icon-apparel": Omit<SwirlIconApparel, keyof SwirlIconApparelAttributes> & { [K in keyof SwirlIconApparel & keyof SwirlIconApparelAttributes]?: SwirlIconApparel[K] } & { [K in keyof SwirlIconApparel & keyof SwirlIconApparelAttributes as `attr:${K}`]?: SwirlIconApparelAttributes[K] } & { [K in keyof SwirlIconApparel & keyof SwirlIconApparelAttributes as `prop:${K}`]?: SwirlIconApparel[K] };
18478
18516
  "swirl-icon-apps": Omit<SwirlIconApps, keyof SwirlIconAppsAttributes> & { [K in keyof SwirlIconApps & keyof SwirlIconAppsAttributes]?: SwirlIconApps[K] } & { [K in keyof SwirlIconApps & keyof SwirlIconAppsAttributes as `attr:${K}`]?: SwirlIconAppsAttributes[K] } & { [K in keyof SwirlIconApps & keyof SwirlIconAppsAttributes as `prop:${K}`]?: SwirlIconApps[K] };
18479
18517
  "swirl-icon-arrow-back": Omit<SwirlIconArrowBack, keyof SwirlIconArrowBackAttributes> & { [K in keyof SwirlIconArrowBack & keyof SwirlIconArrowBackAttributes]?: SwirlIconArrowBack[K] } & { [K in keyof SwirlIconArrowBack & keyof SwirlIconArrowBackAttributes as `attr:${K}`]?: SwirlIconArrowBackAttributes[K] } & { [K in keyof SwirlIconArrowBack & keyof SwirlIconArrowBackAttributes as `prop:${K}`]?: SwirlIconArrowBack[K] };
@@ -18985,6 +19023,7 @@ declare module "@stencil/core" {
18985
19023
  "swirl-icon-admin-panel-settings": LocalJSX.IntrinsicElements["swirl-icon-admin-panel-settings"] & JSXBase.HTMLAttributes<HTMLSwirlIconAdminPanelSettingsElement>;
18986
19024
  "swirl-icon-ai": LocalJSX.IntrinsicElements["swirl-icon-ai"] & JSXBase.HTMLAttributes<HTMLSwirlIconAiElement>;
18987
19025
  "swirl-icon-ai-filled": LocalJSX.IntrinsicElements["swirl-icon-ai-filled"] & JSXBase.HTMLAttributes<HTMLSwirlIconAiFilledElement>;
19026
+ "swirl-icon-api": LocalJSX.IntrinsicElements["swirl-icon-api"] & JSXBase.HTMLAttributes<HTMLSwirlIconApiElement>;
18988
19027
  "swirl-icon-apparel": LocalJSX.IntrinsicElements["swirl-icon-apparel"] & JSXBase.HTMLAttributes<HTMLSwirlIconApparelElement>;
18989
19028
  "swirl-icon-apps": LocalJSX.IntrinsicElements["swirl-icon-apps"] & JSXBase.HTMLAttributes<HTMLSwirlIconAppsElement>;
18990
19029
  "swirl-icon-arrow-back": LocalJSX.IntrinsicElements["swirl-icon-arrow-back"] & JSXBase.HTMLAttributes<HTMLSwirlIconArrowBackElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getflip/swirl-ai",
3
- "version": "0.498.0",
3
+ "version": "0.500.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.498.0",
29
+ "@getflip/swirl-components": "0.500.0",
30
30
  "@getflip/swirl-tokens": "2.14.3",
31
31
  "@types/node": "25.3.0",
32
32
  "tsx": "^4.7.0",