@getflip/swirl-ai 0.522.0 → 0.523.1

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.
@@ -38,7 +38,7 @@ _None._
38
38
 
39
39
  - **[swirl-tabs](?path=/docs/components-swirltabs--docs)** (parent) — Tab
40
40
  container; `swirl-tab-bar` is typically used inside `swirl-tabs` to render the
41
- tab strip.
41
+ tab bar.
42
42
  - **[swirl-tab](?path=/docs/components-swirltab--docs)** (sibling) — Tab panels;
43
43
  use alongside `swirl-tab-bar` when building a tabbed UI.
44
44
 
@@ -69,6 +69,7 @@ Keyboard behavior is defined by SwirlTabs (e.g. arrow keys for tab navigation).
69
69
  },
70
70
  {
71
71
  active: true,
72
+ badge: { intent: "info", label: "Batches running" },
72
73
  icon: &apos;<swirl-icon glyph="emoji-mood" size="20"></swirl-icon>&apos;,
73
74
  id: "tab2",
74
75
  label: "Another Tab",
@@ -15,6 +15,7 @@ The SwirlTab component is used to display a tab panel inside the [SwirlTabs comp
15
15
  - `icon` (string | undefined) –
16
16
  - `padding` ("0" | "12" | "16" | "2" | "20" | "24" | "4" | "8" | undefined) –
17
17
  - `tooltip` (string | undefined) –
18
+ - `badge` ({ intent?: SwirlBadgeIntent; label: string; } | undefined) –
18
19
 
19
20
  ## Slots
20
21
 
@@ -33,7 +33,7 @@ _None._
33
33
  ## Related components
34
34
 
35
35
  - **[swirl-tab-bar](?path=/docs/components-swirltabbar--docs)** (child) —
36
- Renders the tab strip; use inside `swirl-tabs`.
36
+ Renders the tab bar; use inside `swirl-tabs`.
37
37
  - **[swirl-tab](?path=/docs/components-swirltab--docs)** (child) — Tab panels;
38
38
  use as direct children of `swirl-tabs`.
39
39
 
@@ -60639,6 +60639,20 @@
60639
60639
  "readonly": true,
60640
60640
  "attribute": "active"
60641
60641
  },
60642
+ {
60643
+ "kind": "field",
60644
+ "name": "badge",
60645
+ "type": {
60646
+ "text": "{ intent?: SwirlBadgeIntent; label: string; } | undefined",
60647
+ "references": [
60648
+ {
60649
+ "name": "SwirlTabBarTabBadge",
60650
+ "module": "../swirl-tab-bar/swirl-tab-bar"
60651
+ }
60652
+ ]
60653
+ },
60654
+ "readonly": true
60655
+ },
60642
60656
  {
60643
60657
  "kind": "field",
60644
60658
  "name": "icon",
@@ -1,6 +1,8 @@
1
+ import { SwirlTabBarTabBadge } from "../swirl-tab-bar/swirl-tab-bar";
1
2
  export type SwirlTabPadding = "0" | "2" | "4" | "8" | "12" | "16" | "20" | "24";
2
3
  export declare class SwirlTab {
3
4
  active?: boolean;
5
+ badge?: SwirlTabBarTabBadge;
4
6
  icon?: string;
5
7
  label: string;
6
8
  padding?: SwirlTabPadding;
@@ -1,6 +1,17 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
+ import { SwirlBadgeIntent } from "../swirl-badge/swirl-badge";
3
+ /**
4
+ * A status badge on a tab. Renders as a dot; `label` is not shown but is
5
+ * announced as part of the tab's accessible name. A counted badge is not
6
+ * supported yet.
7
+ */
8
+ export type SwirlTabBarTabBadge = {
9
+ intent?: SwirlBadgeIntent;
10
+ label: string;
11
+ };
2
12
  export type SwirlTabBarTab = {
3
13
  active?: boolean;
14
+ badge?: SwirlTabBarTabBadge;
4
15
  icon?: string;
5
16
  id: string;
6
17
  label: string;
@@ -11,3 +11,4 @@ declare const _default: {
11
11
  };
12
12
  export default _default;
13
13
  export declare const SwirlTabs: any;
14
+ export declare const StatusBadges: any;
@@ -71,11 +71,11 @@ import { SwirlStackAlign, SwirlStackJustify, SwirlStackOrientation, SwirlStackSp
71
71
  import { SwirlStatusIndicatorIntent } from "./components/swirl-status-indicator/swirl-status-indicator";
72
72
  import { SwirlSwitchLabelPosition } from "./components/swirl-switch/swirl-switch";
73
73
  import { SwirlSymbolSize } from "./components/swirl-symbol/swirl-symbol.types";
74
+ import { SwirlTabBarJustify as SwirlTabBarJustify1, SwirlTabBarPadding as SwirlTabBarPadding1, SwirlTabBarTabBadge, SwirlTabBarVariant as SwirlTabBarVariant1 } from "./components/swirl-tab-bar/swirl-tab-bar";
74
75
  import { SwirlTabPadding } from "./components/swirl-tab/swirl-tab";
75
76
  import { SwirlTabBarJustify, SwirlTabBarPadding, SwirlTabBarTab, SwirlTabBarVariant } from "./components/swirl-tab-bar/swirl-tab-bar";
76
77
  import { SwirlTableDropRowEvent } from "./components/swirl-table/swirl-table";
77
78
  import { SwirlTableColumnSort, SwirlTableColumnVariant } from "./components/swirl-table-column/swirl-table-column";
78
- import { SwirlTabBarJustify as SwirlTabBarJustify1, SwirlTabBarPadding as SwirlTabBarPadding1, SwirlTabBarVariant as SwirlTabBarVariant1 } from "./components/swirl-tab-bar/swirl-tab-bar";
79
79
  import { SwirlTagIconPosition, SwirlTagIntent, SwirlTagSize, SwirlTagVariant } from "./components/swirl-tag/swirl-tag";
80
80
  import { SwirlTextAlign, SwirlTextColor, SwirlTextFontFamily, SwirlTextFontStyle, SwirlTextSize, SwirlTextTruncateDirection, SwirlTextWeight, SwirlTextWhiteSpace } from "./components/swirl-text/swirl-text";
81
81
  import { SwirlTextInputFontSize, SwirlTextInputMode as SwirlTextInputMode1, SwirlTextInputType } from "./components/swirl-text-input/swirl-text-input";
@@ -155,11 +155,11 @@ export { SwirlStackAlign, SwirlStackJustify, SwirlStackOrientation, SwirlStackSp
155
155
  export { SwirlStatusIndicatorIntent } from "./components/swirl-status-indicator/swirl-status-indicator";
156
156
  export { SwirlSwitchLabelPosition } from "./components/swirl-switch/swirl-switch";
157
157
  export { SwirlSymbolSize } from "./components/swirl-symbol/swirl-symbol.types";
158
+ export { SwirlTabBarJustify as SwirlTabBarJustify1, SwirlTabBarPadding as SwirlTabBarPadding1, SwirlTabBarTabBadge, SwirlTabBarVariant as SwirlTabBarVariant1 } from "./components/swirl-tab-bar/swirl-tab-bar";
158
159
  export { SwirlTabPadding } from "./components/swirl-tab/swirl-tab";
159
160
  export { SwirlTabBarJustify, SwirlTabBarPadding, SwirlTabBarTab, SwirlTabBarVariant } from "./components/swirl-tab-bar/swirl-tab-bar";
160
161
  export { SwirlTableDropRowEvent } from "./components/swirl-table/swirl-table";
161
162
  export { SwirlTableColumnSort, SwirlTableColumnVariant } from "./components/swirl-table-column/swirl-table-column";
162
- export { SwirlTabBarJustify as SwirlTabBarJustify1, SwirlTabBarPadding as SwirlTabBarPadding1, SwirlTabBarVariant as SwirlTabBarVariant1 } from "./components/swirl-tab-bar/swirl-tab-bar";
163
163
  export { SwirlTagIconPosition, SwirlTagIntent, SwirlTagSize, SwirlTagVariant } from "./components/swirl-tag/swirl-tag";
164
164
  export { SwirlTextAlign, SwirlTextColor, SwirlTextFontFamily, SwirlTextFontStyle, SwirlTextSize, SwirlTextTruncateDirection, SwirlTextWeight, SwirlTextWhiteSpace } from "./components/swirl-text/swirl-text";
165
165
  export { SwirlTextInputFontSize, SwirlTextInputMode as SwirlTextInputMode1, SwirlTextInputType } from "./components/swirl-text-input/swirl-text-input";
@@ -5347,6 +5347,7 @@ export namespace Components {
5347
5347
  }
5348
5348
  interface SwirlTab {
5349
5349
  "active"?: boolean;
5350
+ "badge"?: SwirlTabBarTabBadge;
5350
5351
  "icon"?: string;
5351
5352
  "label": string;
5352
5353
  /**
@@ -15723,6 +15724,7 @@ declare namespace LocalJSX {
15723
15724
  }
15724
15725
  interface SwirlTab {
15725
15726
  "active"?: boolean;
15727
+ "badge"?: SwirlTabBarTabBadge;
15726
15728
  "icon"?: string;
15727
15729
  "label": string;
15728
15730
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getflip/swirl-ai",
3
- "version": "0.522.0",
3
+ "version": "0.523.1",
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.522.0",
29
+ "@getflip/swirl-components": "0.523.1",
30
30
  "@getflip/swirl-tokens": "2.14.3",
31
31
  "@types/node": "25.3.0",
32
32
  "tsx": "^4.7.0",