ionbase-ui 0.32.0 → 0.38.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.
@@ -1,8 +1,21 @@
1
1
  import React from 'react';
2
2
  export type BadgeIntent = 'neutral' | 'primary' | 'success' | 'warning' | 'error' | 'information';
3
+ export type BadgeSize = 'sm' | 'md' | 'lg';
4
+ export type BadgeShape = 'pill' | 'rounded';
3
5
  export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
4
6
  /** Matches the Figma `Intent` variant. */
5
7
  intent?: BadgeIntent;
8
+ /**
9
+ * Figma's `Size` variant. Heights are 20 / 24 / 32, pinned rather than
10
+ * derived from padding. `sm` is the default and is the size this component
11
+ * shipped with before the ramp existed.
12
+ */
13
+ size?: BadgeSize;
14
+ /**
15
+ * Figma's `Shape` variant. `rounded` steps its corner with the size so the
16
+ * radius stays proportional; `pill` is fully round at every size.
17
+ */
18
+ shape?: BadgeShape;
6
19
  /**
7
20
  * Show the leading dot marker. Figma's `Show Dot` boolean.
8
21
  * The dot inherits the intent's foreground colour, so it needs no prop.
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,WAAW,GACrB,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,CAAC;AAE1E,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACvE,0CAA0C;IAC1C,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,sFAAsF;IACtF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,KAAK,oFAcjB,CAAC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,WAAW,GACrB,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,CAAC;AAC1E,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5C,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACvE,0CAA0C;IAC1C,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,sFAAsF;IACtF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,KAAK,oFAuCjB,CAAC"}
@@ -10,8 +10,14 @@ import { forwardRef } from 'react';
10
10
  * reader users on every render. Wrap it yourself if the value genuinely changes
11
11
  * and matters.
12
12
  */
13
- export const Badge = forwardRef(({ intent = 'neutral', dot, icon, className, children, ...rest }, ref) => (_jsxs("span", { ...rest, ref: ref, className: ['ion-badge', `ion-badge--${intent}`, className]
13
+ export const Badge = forwardRef(({ intent = 'neutral', size = 'sm', shape = 'pill', dot, icon, className, children, ...rest }, ref) => (_jsxs("span", { ...rest, ref: ref, className: [
14
+ 'ion-badge',
15
+ `ion-badge--${intent}`,
16
+ size !== 'sm' ? `ion-badge--${size}` : '',
17
+ shape !== 'pill' ? `ion-badge--${shape}` : '',
18
+ className,
19
+ ]
14
20
  .filter(Boolean)
15
- .join(' '), children: [dot && _jsx("span", { className: "ion-badge__dot", "aria-hidden": "true" }), !dot && icon, children] })));
21
+ .join(' '), children: [dot && _jsx("span", { className: "ion-badge__dot", "aria-hidden": "true" }), !dot && icon, children != null && children !== false && (_jsx("span", { className: "ion-badge__label", children: children }))] })));
16
22
  Badge.displayName = 'Badge';
17
23
  //# sourceMappingURL=Badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAkB1C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC7B,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACxE,mBACM,IAAI,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,CAAC,WAAW,EAAE,cAAc,MAAM,EAAE,EAAE,SAAS,CAAC;SACxD,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,aAEX,GAAG,IAAI,eAAM,SAAS,EAAC,gBAAgB,iBAAa,MAAM,GAAG,EAC7D,CAAC,GAAG,IAAI,IAAI,EACZ,QAAQ,IACJ,CACR,CACF,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AA+B1C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC7B,CACE,EACE,MAAM,GAAG,SAAS,EAClB,IAAI,GAAG,IAAI,EACX,KAAK,GAAG,MAAM,EACd,GAAG,EACH,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE,CAAC,CACH,mBACM,IAAI,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE;QACT,WAAW;QACX,cAAc,MAAM,EAAE;QACtB,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE;QACzC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,cAAc,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;QAC7C,SAAS;KACV;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,aAEX,GAAG,IAAI,eAAM,SAAS,EAAC,gBAAgB,iBAAa,MAAM,GAAG,EAC7D,CAAC,GAAG,IAAI,IAAI,EAMZ,QAAQ,IAAI,IAAI,IAAI,QAAQ,KAAK,KAAK,IAAI,CACzC,eAAM,SAAS,EAAC,kBAAkB,YAAE,QAAQ,GAAQ,CACrD,IACI,CACR,CACF,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
@@ -0,0 +1,99 @@
1
+ import React from 'react';
2
+ /**
3
+ * Why there is nothing here. This is the whole reason the component exists as
4
+ * a variant axis rather than a styling choice.
5
+ *
6
+ * `first-run` nothing exists yet, and the user has never made one.
7
+ * `no-results` things exist; the current filter or query matches none of them.
8
+ * `no-access` things exist and match; this account may not see them.
9
+ * `error` we do not know whether anything is here — the fetch failed.
10
+ *
11
+ * Collapsing these is the most common empty-state bug in enterprise software.
12
+ * "No invoices" with a Create button, shown to someone who has 400 invoices
13
+ * and a typo in their filter, tells them their data is gone.
14
+ */
15
+ export type EmptyStateReason = 'first-run' | 'no-results' | 'no-access' | 'error';
16
+ /** Vertical weight. `page` is a whole route, `panel` a region, `inline` a cell. */
17
+ export type EmptyStateSize = 'inline' | 'panel' | 'page';
18
+ /**
19
+ * Heading element for the title. No `h1`: an empty state describes a region,
20
+ * and the page's own title belongs to the page. Same call FullCard makes.
21
+ */
22
+ export type EmptyStateHeadingLevel = 2 | 3 | 4 | 5 | 6;
23
+ export interface EmptyStateProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
24
+ /**
25
+ * Why there is nothing here. Required, and there is no default: every
26
+ * default would be a guess, and the wrong guess is the bug this component
27
+ * exists to prevent.
28
+ */
29
+ reason: EmptyStateReason;
30
+ /**
31
+ * What is missing, in the user's words. Required — it is the accessible name
32
+ * of the region, and an empty state with no statement is a blank area with
33
+ * padding.
34
+ *
35
+ * Name the thing and the situation: "No invoices match these filters", not
36
+ * "No results".
37
+ */
38
+ title: React.ReactNode;
39
+ /** One or two sentences: what would be here, and what puts it here. */
40
+ description?: React.ReactNode;
41
+ /**
42
+ * The action that resolves this state. For `no-results` that is clearing the
43
+ * filter, NOT creating a record — see `useInstead` in the contract.
44
+ */
45
+ action?: React.ReactNode;
46
+ /** A lower-emphasis escape hatch beside `action` — "Contact an admin". */
47
+ secondaryAction?: React.ReactNode;
48
+ /**
49
+ * Decorative mark above the title. Rendered `aria-hidden`: the title already
50
+ * says what this is, and an icon that repeats it announces twice.
51
+ */
52
+ icon?: React.ReactNode;
53
+ /** Defaults to `panel`. */
54
+ size?: EmptyStateSize;
55
+ /**
56
+ * Heading level for the title. Defaults to `h3`; only the page knows its own
57
+ * outline, so it is a prop rather than a constant.
58
+ */
59
+ headingLevel?: EmptyStateHeadingLevel;
60
+ children?: React.ReactNode;
61
+ }
62
+ /**
63
+ * EmptyState — the state five of this system's nine patterns require and none
64
+ * of them could render.
65
+ *
66
+ * `DataTable`, `PageShell`, `SettingsPanel`, `AssistantAnswer` and
67
+ * `HumanApproval` all specify an empty state in their recipe. Until this
68
+ * existed each consumer invented one, which is how a design system ends up
69
+ * with four different ways to say "nothing here".
70
+ *
71
+ * REASON IS REQUIRED, AND HAS NO DEFAULT
72
+ *
73
+ * The four reasons are genuinely different situations with different correct
74
+ * actions, and the failure mode is silent: an app that shows "No invoices yet
75
+ * — Create your first invoice" to a user whose filter excluded everything has
76
+ * told them their records are gone. A default would make that the easy path,
77
+ * so there isn't one.
78
+ *
79
+ * `no-results` and `error` deliberately do NOT offer a create action in the
80
+ * contract's guidance. The first needs the filter cleared; the second needs a
81
+ * retry, and offering "Create" over a failed fetch invites a duplicate.
82
+ *
83
+ * NOT A LIVE REGION
84
+ *
85
+ * An empty state replaces content, so it is what the user reads next rather
86
+ * than something announced over what they are reading. `role="status"` here
87
+ * would interrupt on every keystroke of a filter box. If a specific flow needs
88
+ * the announcement, the caller owns that decision — the same reasoning
89
+ * StreamingText applies to `aria-live`.
90
+ *
91
+ * `error` is rendered as `role="alert"` ONLY when the caller opts in via
92
+ * `role`, for the same reason: an error empty state arriving during typing is
93
+ * still a read, not an interruption.
94
+ *
95
+ * No `'use client'`: nothing here holds state. The buttons passed through
96
+ * `action` carry their own boundary.
97
+ */
98
+ export declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLElement>>;
99
+ //# sourceMappingURL=EmptyState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../src/components/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,gBAAgB,GAC1B,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;AAErD,mFAAmF;AACnF,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEvD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,OAAO,CACR;IACC;;;;OAIG;IACH,MAAM,EAAE,gBAAgB,CAAC;IACzB;;;;;;;OAOG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,uEAAuE;IACvE,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,0EAA0E;IAC1E,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2BAA2B;IAC3B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,UAAU,qFAkEtB,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
3
+ /**
4
+ * EmptyState — the state five of this system's nine patterns require and none
5
+ * of them could render.
6
+ *
7
+ * `DataTable`, `PageShell`, `SettingsPanel`, `AssistantAnswer` and
8
+ * `HumanApproval` all specify an empty state in their recipe. Until this
9
+ * existed each consumer invented one, which is how a design system ends up
10
+ * with four different ways to say "nothing here".
11
+ *
12
+ * REASON IS REQUIRED, AND HAS NO DEFAULT
13
+ *
14
+ * The four reasons are genuinely different situations with different correct
15
+ * actions, and the failure mode is silent: an app that shows "No invoices yet
16
+ * — Create your first invoice" to a user whose filter excluded everything has
17
+ * told them their records are gone. A default would make that the easy path,
18
+ * so there isn't one.
19
+ *
20
+ * `no-results` and `error` deliberately do NOT offer a create action in the
21
+ * contract's guidance. The first needs the filter cleared; the second needs a
22
+ * retry, and offering "Create" over a failed fetch invites a duplicate.
23
+ *
24
+ * NOT A LIVE REGION
25
+ *
26
+ * An empty state replaces content, so it is what the user reads next rather
27
+ * than something announced over what they are reading. `role="status"` here
28
+ * would interrupt on every keystroke of a filter box. If a specific flow needs
29
+ * the announcement, the caller owns that decision — the same reasoning
30
+ * StreamingText applies to `aria-live`.
31
+ *
32
+ * `error` is rendered as `role="alert"` ONLY when the caller opts in via
33
+ * `role`, for the same reason: an error empty state arriving during typing is
34
+ * still a read, not an interruption.
35
+ *
36
+ * No `'use client'`: nothing here holds state. The buttons passed through
37
+ * `action` carry their own boundary.
38
+ */
39
+ export const EmptyState = forwardRef(({ reason, title, description, action, secondaryAction, icon, size = 'panel', headingLevel = 3, className, children, ...rest }, ref) => {
40
+ const Heading = `h${headingLevel}`;
41
+ return (_jsxs("section", { ...rest, ref: ref, className: [
42
+ 'ion-empty-state',
43
+ `ion-empty-state--${size}`,
44
+ `ion-empty-state--${reason}`,
45
+ className,
46
+ ]
47
+ .filter(Boolean)
48
+ .join(' '), children: [icon && (_jsx("div", { className: "ion-empty-state__icon", "aria-hidden": "true", children: icon })), _jsx(Heading, { className: "ion-empty-state__title", children: title }), description && (_jsx("p", { className: "ion-empty-state__description", children: description })), children, (action || secondaryAction) && (_jsxs("div", { className: "ion-empty-state__actions", children: [action, secondaryAction] }))] }));
49
+ });
50
+ EmptyState.displayName = 'EmptyState';
51
+ //# sourceMappingURL=EmptyState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.js","sourceRoot":"","sources":["../../src/components/EmptyState.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAsE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAClC,CACE,EACE,MAAM,EACN,KAAK,EACL,WAAW,EACX,MAAM,EACN,eAAe,EACf,IAAI,EACJ,IAAI,GAAG,OAAO,EACd,YAAY,GAAG,CAAC,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE;IACF,MAAM,OAAO,GAAG,IAAI,YAAY,EAAW,CAAC;IAE5C,OAAO,CACL,sBACM,IAAI,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE;YACT,iBAAiB;YACjB,oBAAoB,IAAI,EAAE;YAC1B,oBAAoB,MAAM,EAAE;YAC5B,SAAS;SACV;aACE,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,aAOX,IAAI,IAAI,CACP,cAAK,SAAS,EAAC,uBAAuB,iBAAa,MAAM,YACtD,IAAI,GACD,CACP,EAED,KAAC,OAAO,IAAC,SAAS,EAAC,wBAAwB,YAAE,KAAK,GAAW,EAE5D,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,8BAA8B,YAAE,WAAW,GAAK,CAC9D,EAEA,QAAQ,EAQR,CAAC,MAAM,IAAI,eAAe,CAAC,IAAI,CAC9B,eAAK,SAAS,EAAC,0BAA0B,aACtC,MAAM,EACN,eAAe,IACZ,CACP,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
@@ -5,7 +5,7 @@ export type { TabsProps, TabsType, TabsSize } from './Tabs.js';
5
5
  export { Alert } from './Alert.js';
6
6
  export type { AlertProps, AlertIntent, AlertEmphasis, AlertLayout, } from './Alert.js';
7
7
  export { Badge } from './Badge.js';
8
- export type { BadgeProps, BadgeIntent } from './Badge.js';
8
+ export type { BadgeProps, BadgeIntent, BadgeSize, BadgeShape, } from './Badge.js';
9
9
  export { Input } from './Input.js';
10
10
  export type { InputProps, InputSize } from './Input.js';
11
11
  export { PhoneInput } from './PhoneInput.js';
@@ -60,4 +60,6 @@ export { Citation, CitationList, CitationListItem } from './Citation.js';
60
60
  export type { CitationProps, CitationListProps, CitationListItemProps, } from './Citation.js';
61
61
  export { ConfidenceIndicator } from './ConfidenceIndicator.js';
62
62
  export type { ConfidenceIndicatorProps, ConfidenceLevel, } from './ConfidenceIndicator.js';
63
+ export { EmptyState } from './EmptyState.js';
64
+ export type { EmptyStateProps, EmptyStateReason, EmptyStateSize, EmptyStateHeadingLevel, } from './EmptyState.js';
63
65
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,YAAY,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EACV,aAAa,EACb,YAAY,EACZ,cAAc,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC/C,YAAY,EACV,UAAU,EACV,eAAe,EACf,SAAS,EACT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AAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzE,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EACV,wBAAwB,EACxB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,sBAAsB,GACvB,MAAM,iBAAiB,CAAC"}
@@ -29,4 +29,5 @@ export { StreamingText } from './StreamingText.js';
29
29
  export { AgentActivity, AgentActivityStep } from './AgentActivity.js';
30
30
  export { Citation, CitationList, CitationListItem } from './Citation.js';
31
31
  export { ConfidenceIndicator } from './ConfidenceIndicator.js';
32
+ export { EmptyState } from './EmptyState.js';
32
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE1C,O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