@nizivo/react 0.1.0 → 0.2.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.
Files changed (238) hide show
  1. package/THIRD_PARTY_NOTICES +12 -5
  2. package/dist/_engines/react-aria/dialog.client.js +16 -24
  3. package/dist/_engines/react-aria/drawer.client.js +8 -0
  4. package/dist/_engines/react-aria/file-upload.client.js +50 -0
  5. package/dist/_engines/react-aria/menu.client.js +17 -13
  6. package/dist/_engines/react-aria/open-state.client.js +53 -0
  7. package/dist/_engines/react-aria/outside-press.client.js +61 -0
  8. package/dist/_engines/react-aria/overlay.client.js +6 -1
  9. package/dist/_engines/react-aria/popover.client.js +148 -0
  10. package/dist/_engines/react-aria/popup.client.js +31 -5
  11. package/dist/_engines/react-aria/select.client.js +22 -12
  12. package/dist/_engines/react-aria/toast.client.js +38 -0
  13. package/dist/_engines/react-aria/tooltip.client.js +11 -11
  14. package/dist/_internal/data-status.d.ts +3 -0
  15. package/dist/_internal/data-status.js +13 -0
  16. package/dist/_internal/glyphs.js +54 -1
  17. package/dist/_internal/modal.client.js +54 -0
  18. package/dist/_internal/nested-focus.js +33 -0
  19. package/dist/alert/alert-dismiss.client.d.ts +1 -1
  20. package/dist/alert/alert-dismiss.client.js +3 -1
  21. package/dist/app-shell/app-shell.d.ts +24 -0
  22. package/dist/app-shell/app-shell.js +56 -0
  23. package/dist/app-shell/index.d.ts +2 -0
  24. package/dist/app-shell/index.js +1 -0
  25. package/dist/avatar/avatar.d.ts +96 -0
  26. package/dist/avatar/avatar.js +94 -0
  27. package/dist/avatar/index.d.ts +2 -0
  28. package/dist/avatar/index.js +1 -0
  29. package/dist/banner/banner-dismiss.client.d.ts +32 -0
  30. package/dist/banner/banner-dismiss.client.js +38 -0
  31. package/dist/banner/banner.d.ts +34 -0
  32. package/dist/banner/banner.js +47 -0
  33. package/dist/banner/index.d.ts +3 -0
  34. package/dist/banner/index.js +3 -0
  35. package/dist/breadcrumb/breadcrumb.d.ts +46 -0
  36. package/dist/breadcrumb/breadcrumb.js +46 -0
  37. package/dist/breadcrumb/breadcrumb.parts.d.ts +6 -0
  38. package/dist/breadcrumb/breadcrumb.parts.js +9 -0
  39. package/dist/breadcrumb/index.d.ts +3 -0
  40. package/dist/breadcrumb/index.js +3 -0
  41. package/dist/button/button.d.ts +3 -2
  42. package/dist/card/card.d.ts +9 -2
  43. package/dist/chip-group/chip-group.client.d.ts +88 -0
  44. package/dist/chip-group/chip-group.client.js +157 -0
  45. package/dist/chip-group/index.d.ts +2 -0
  46. package/dist/chip-group/index.js +1 -0
  47. package/dist/choice-card/choice-card.client.d.ts +66 -0
  48. package/dist/choice-card/choice-card.client.js +138 -0
  49. package/dist/choice-card/index.d.ts +2 -0
  50. package/dist/choice-card/index.js +1 -0
  51. package/dist/config/config.client.d.ts +16 -1
  52. package/dist/config/config.client.js +18 -3
  53. package/dist/config/index.d.ts +2 -2
  54. package/dist/contracts/index.d.ts +1 -1
  55. package/dist/css/app-shell.css +2 -0
  56. package/dist/css/avatar.css +2 -0
  57. package/dist/css/banner.css +2 -0
  58. package/dist/css/base.css +1 -1
  59. package/dist/css/breadcrumb.css +2 -0
  60. package/dist/css/card.css +1 -1
  61. package/dist/css/chip-group.css +2 -0
  62. package/dist/css/choice-card.css +2 -0
  63. package/dist/css/delta.css +1 -1
  64. package/dist/css/drawer.css +2 -0
  65. package/dist/css/file-upload.css +2 -0
  66. package/dist/css/form.css +2 -0
  67. package/dist/css/heading.css +1 -1
  68. package/dist/css/kpi-tile.css +2 -0
  69. package/dist/css/metric.css +2 -0
  70. package/dist/css/mobile-tab-bar.css +2 -0
  71. package/dist/css/mobile-top-bar.css +2 -0
  72. package/dist/css/motion.css +2 -0
  73. package/dist/css/nav-item.css +2 -0
  74. package/dist/css/number-value.css +2 -0
  75. package/dist/css/page-header.css +2 -0
  76. package/dist/css/pagination.css +2 -0
  77. package/dist/css/password-input.css +2 -0
  78. package/dist/css/popover.css +2 -0
  79. package/dist/css/ranked-list.css +2 -0
  80. package/dist/css/search-field.css +2 -0
  81. package/dist/css/sidebar.css +2 -0
  82. package/dist/css/split.css +2 -0
  83. package/dist/css/sticky-bar.css +2 -0
  84. package/dist/css/table-selection.css +2 -0
  85. package/dist/css/table.css +2 -0
  86. package/dist/css/text.css +1 -1
  87. package/dist/css/toast.css +2 -0
  88. package/dist/css/top-bar.css +2 -0
  89. package/dist/css/trend-card.css +2 -0
  90. package/dist/dialog/dialog.client.d.ts +1 -1
  91. package/dist/dialog/dialog.client.js +15 -37
  92. package/dist/drawer/drawer.client.d.ts +25 -0
  93. package/dist/drawer/drawer.client.js +154 -0
  94. package/dist/drawer/drawer.contract.d.ts +98 -0
  95. package/dist/drawer/drawer.parts.d.ts +6 -0
  96. package/dist/drawer/drawer.parts.js +16 -0
  97. package/dist/drawer/index.d.ts +5 -0
  98. package/dist/drawer/index.js +3 -0
  99. package/dist/field/field-scope.client.js +9 -2
  100. package/dist/file-upload/file-upload.client.d.ts +9 -0
  101. package/dist/file-upload/file-upload.client.js +406 -0
  102. package/dist/file-upload/file-upload.contract.d.ts +112 -0
  103. package/dist/file-upload/index.d.ts +3 -0
  104. package/dist/file-upload/index.js +1 -0
  105. package/dist/file-upload/seam.d.ts +1 -0
  106. package/dist/form/form.client.d.ts +38 -0
  107. package/dist/form/form.client.js +127 -0
  108. package/dist/form/form.d.ts +36 -0
  109. package/dist/form/form.js +29 -0
  110. package/dist/form/index.d.ts +4 -0
  111. package/dist/form/index.js +4 -0
  112. package/dist/form/submit-button.client.d.ts +20 -0
  113. package/dist/form/submit-button.client.js +19 -0
  114. package/dist/heading/heading.d.ts +4 -1
  115. package/dist/i18n/format-label.d.ts +24 -0
  116. package/dist/i18n/format-label.js +19 -0
  117. package/dist/i18n/index.d.ts +2 -0
  118. package/dist/i18n/index.js +1 -0
  119. package/dist/icon-button/icon-button.client.js +1 -1
  120. package/dist/icon-button/icon-button.js +1 -1
  121. package/dist/index.d.ts +84 -5
  122. package/dist/index.js +49 -4
  123. package/dist/kpi-tile/index.d.ts +2 -0
  124. package/dist/kpi-tile/index.js +1 -0
  125. package/dist/kpi-tile/kpi-tile.d.ts +30 -0
  126. package/dist/kpi-tile/kpi-tile.js +48 -0
  127. package/dist/locales/en-US.d.ts +77 -0
  128. package/dist/locales/en-US.js +83 -0
  129. package/dist/menu/menu.contract.d.ts +1 -1
  130. package/dist/metric/index.d.ts +2 -0
  131. package/dist/metric/index.js +1 -0
  132. package/dist/metric/metric.d.ts +72 -0
  133. package/dist/metric/metric.js +116 -0
  134. package/dist/mobile-tab-bar/index.d.ts +4 -0
  135. package/dist/mobile-tab-bar/index.js +4 -0
  136. package/dist/mobile-tab-bar/mobile-tab-bar-inset.client.js +38 -0
  137. package/dist/mobile-tab-bar/mobile-tab-bar-more.client.d.ts +26 -0
  138. package/dist/mobile-tab-bar/mobile-tab-bar-more.client.js +60 -0
  139. package/dist/mobile-tab-bar/mobile-tab-bar.d.ts +39 -0
  140. package/dist/mobile-tab-bar/mobile-tab-bar.js +54 -0
  141. package/dist/mobile-tab-bar/mobile-tab-bar.parts.d.ts +6 -0
  142. package/dist/mobile-tab-bar/mobile-tab-bar.parts.js +9 -0
  143. package/dist/mobile-top-bar/index.d.ts +2 -0
  144. package/dist/mobile-top-bar/index.js +1 -0
  145. package/dist/mobile-top-bar/mobile-top-bar.d.ts +17 -0
  146. package/dist/mobile-top-bar/mobile-top-bar.js +31 -0
  147. package/dist/motion/count-up.client.d.ts +39 -0
  148. package/dist/motion/count-up.client.js +109 -0
  149. package/dist/motion/index.d.ts +2 -0
  150. package/dist/motion/index.js +1 -0
  151. package/dist/nav-item/index.d.ts +2 -0
  152. package/dist/nav-item/index.js +1 -0
  153. package/dist/nav-item/nav-item.d.ts +35 -0
  154. package/dist/nav-item/nav-item.js +50 -0
  155. package/dist/number-value/index.d.ts +2 -0
  156. package/dist/number-value/index.js +1 -0
  157. package/dist/number-value/number-value.d.ts +25 -0
  158. package/dist/number-value/number-value.js +26 -0
  159. package/dist/page-header/index.d.ts +2 -0
  160. package/dist/page-header/index.js +1 -0
  161. package/dist/page-header/page-header.d.ts +19 -0
  162. package/dist/page-header/page-header.js +39 -0
  163. package/dist/pagination/index.d.ts +2 -0
  164. package/dist/pagination/index.js +1 -0
  165. package/dist/pagination/pagination.d.ts +74 -0
  166. package/dist/pagination/pagination.js +136 -0
  167. package/dist/password-input/index.d.ts +2 -0
  168. package/dist/password-input/index.js +1 -0
  169. package/dist/password-input/password-input.client.d.ts +52 -0
  170. package/dist/password-input/password-input.client.js +106 -0
  171. package/dist/popover/index.d.ts +5 -0
  172. package/dist/popover/index.js +3 -0
  173. package/dist/popover/popover.client.d.ts +20 -0
  174. package/dist/popover/popover.client.js +113 -0
  175. package/dist/popover/popover.contract.d.ts +88 -0
  176. package/dist/popover/popover.parts.d.ts +6 -0
  177. package/dist/popover/popover.parts.js +13 -0
  178. package/dist/ranked-list/index.d.ts +3 -0
  179. package/dist/ranked-list/index.js +3 -0
  180. package/dist/ranked-list/ranked-list.d.ts +85 -0
  181. package/dist/ranked-list/ranked-list.js +153 -0
  182. package/dist/ranked-list/ranked-list.parts.d.ts +6 -0
  183. package/dist/ranked-list/ranked-list.parts.js +10 -0
  184. package/dist/search-field/index.d.ts +2 -0
  185. package/dist/search-field/index.js +1 -0
  186. package/dist/search-field/search-field.client.d.ts +55 -0
  187. package/dist/search-field/search-field.client.js +136 -0
  188. package/dist/select/select.contract.d.ts +1 -1
  189. package/dist/sidebar/index.d.ts +4 -0
  190. package/dist/sidebar/index.js +4 -0
  191. package/dist/sidebar/sidebar-item.client.d.ts +10 -0
  192. package/dist/sidebar/sidebar-item.client.js +55 -0
  193. package/dist/sidebar/sidebar.d.ts +45 -0
  194. package/dist/sidebar/sidebar.js +62 -0
  195. package/dist/sidebar/sidebar.parts.d.ts +6 -0
  196. package/dist/sidebar/sidebar.parts.js +11 -0
  197. package/dist/split/index.d.ts +3 -0
  198. package/dist/split/index.js +3 -0
  199. package/dist/split/split.d.ts +28 -0
  200. package/dist/split/split.js +33 -0
  201. package/dist/split/split.parts.d.ts +6 -0
  202. package/dist/split/split.parts.js +10 -0
  203. package/dist/sticky-bar/index.d.ts +2 -0
  204. package/dist/sticky-bar/index.js +1 -0
  205. package/dist/sticky-bar/sticky-bar.d.ts +16 -0
  206. package/dist/sticky-bar/sticky-bar.js +26 -0
  207. package/dist/styles.css +66 -7
  208. package/dist/table/index.d.ts +3 -0
  209. package/dist/table/index.js +3 -0
  210. package/dist/table/table.d.ts +101 -0
  211. package/dist/table/table.js +121 -0
  212. package/dist/table/table.parts.d.ts +6 -0
  213. package/dist/table/table.parts.js +18 -0
  214. package/dist/table-selection/index.d.ts +3 -0
  215. package/dist/table-selection/index.js +3 -0
  216. package/dist/table-selection/table-selection.client.d.ts +14 -0
  217. package/dist/table-selection/table-selection.client.js +84 -0
  218. package/dist/table-selection/table-selection.d.ts +34 -0
  219. package/dist/table-selection/table-selection.js +50 -0
  220. package/dist/text/text.d.ts +13 -2
  221. package/dist/toast/index.d.ts +4 -0
  222. package/dist/toast/index.js +3 -0
  223. package/dist/toast/seam.d.ts +2 -0
  224. package/dist/toast/store.d.ts +19 -0
  225. package/dist/toast/store.js +136 -0
  226. package/dist/toast/toast.contract.d.ts +56 -0
  227. package/dist/toast/toaster.client.d.ts +10 -0
  228. package/dist/toast/toaster.client.js +305 -0
  229. package/dist/tooltip/tooltip.contract.d.ts +1 -1
  230. package/dist/top-bar/index.d.ts +2 -0
  231. package/dist/top-bar/index.js +1 -0
  232. package/dist/top-bar/top-bar.d.ts +17 -0
  233. package/dist/top-bar/top-bar.js +35 -0
  234. package/dist/trend-card/index.d.ts +2 -0
  235. package/dist/trend-card/index.js +1 -0
  236. package/dist/trend-card/trend-card.d.ts +34 -0
  237. package/dist/trend-card/trend-card.js +74 -0
  238. package/package.json +167 -4
@@ -0,0 +1,127 @@
1
+ "use client";
2
+ import { cx } from "../_internal/cx.js";
3
+ import { mergeProps } from "../contracts/merge-props.js";
4
+ import { renderElement } from "../contracts/render.js";
5
+ import { Alert } from "../alert/alert.js";
6
+ import { useLabels } from "../config/config.client.js";
7
+ import { FormScope } from "../field/field-scope.client.js";
8
+ import { useEffectEvent, useLayoutEffect, useMemo, useRef, useState } from "react";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ //#region src/form/form.client.tsx
11
+ const NONE = /* @__PURE__ */ new Set();
12
+ function Form({ errors, summary = false, labels: labelsProp, render, className, children, ...rest }) {
13
+ const labels = useLabels("form", labelsProp);
14
+ const [edited, setEdited] = useState({
15
+ for: errors,
16
+ names: NONE
17
+ });
18
+ const hidden = edited.for === errors ? edited.names : NONE;
19
+ const shown = useMemo(() => {
20
+ const out = /* @__PURE__ */ new Map();
21
+ for (const [name, value] of Object.entries(errors ?? {})) {
22
+ const message = typeof value === "string" ? value : value?.[0];
23
+ if (message !== void 0 && message !== "" && !hidden.has(name)) out.set(name, message);
24
+ }
25
+ return out;
26
+ }, [errors, hidden]);
27
+ const form = useRef(null);
28
+ const summaryRef = useRef(null);
29
+ const listed = summary && shown.size > 0;
30
+ const [placed, setPlaced] = useState([]);
31
+ useLayoutEffect(() => {
32
+ const element = form.current;
33
+ if (!listed || element === null) return;
34
+ const next = [...shown.keys()].map((name) => [name, controlOf(element, name)]).toSorted(([, a], [, b]) => order(a, b)).map(([name, control]) => [name, control?.id || void 0]);
35
+ setPlaced((previous) => same(previous, next) ? previous : next);
36
+ }, [listed, shown]);
37
+ const seen = useRef(errors);
38
+ const moveFocus = useEffectEvent(() => {
39
+ const element = form.current;
40
+ if (element === null || shown.size === 0) return;
41
+ (summaryRef.current ?? firstInvalid(element))?.focus();
42
+ });
43
+ useLayoutEffect(() => {
44
+ if (seen.current === errors) return;
45
+ seen.current = errors;
46
+ moveFocus();
47
+ }, [errors]);
48
+ const own = {
49
+ "data-slot": "form",
50
+ className: cx("nz-form", className),
51
+ ref: form,
52
+ onInput(event) {
53
+ const { target } = event;
54
+ const name = "name" in target ? target.name : void 0;
55
+ if (typeof name === "string" && shown.has(name)) setEdited({
56
+ for: errors,
57
+ names: /* @__PURE__ */ new Set([...hidden, name])
58
+ });
59
+ }
60
+ };
61
+ const rank = new Map(placed.map(([name], index) => [name, index]));
62
+ const ids = new Map(placed);
63
+ const items = [...shown].toSorted(([a], [b]) => (rank.get(a) ?? rank.size) - (rank.get(b) ?? rank.size));
64
+ const props = {
65
+ ...mergeProps(own, rest),
66
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [listed && /* @__PURE__ */ jsx("div", {
67
+ ref: summaryRef,
68
+ tabIndex: -1,
69
+ className: "nz-form-summary",
70
+ "data-slot": "form-summary",
71
+ children: /* @__PURE__ */ jsx(Alert, {
72
+ tone: "critical",
73
+ role: "alert",
74
+ title: labels?.summaryTitle ?? "There is a problem",
75
+ children: /* @__PURE__ */ jsx("ul", {
76
+ className: "nz-form-summary-list",
77
+ "data-slot": "form-summary-list",
78
+ children: items.map(([name, message]) => {
79
+ const id = ids.get(name);
80
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", {
81
+ href: id === void 0 ? void 0 : `#${id}`,
82
+ className: "nz-form-summary-link",
83
+ "data-slot": "form-summary-link",
84
+ onClick: (event) => focusControl(event, name),
85
+ children: message
86
+ }) }, name);
87
+ })
88
+ })
89
+ })
90
+ }), children] })
91
+ };
92
+ return /* @__PURE__ */ jsx(FormScope, {
93
+ value: shown,
94
+ children: renderElement("form", render, {}, props)
95
+ });
96
+ }
97
+ /** The control a Field `name` names: the first of a radio group. */
98
+ function controlOf(form, name) {
99
+ const item = form.elements.namedItem(name);
100
+ const element = item instanceof RadioNodeList ? item[0] : item;
101
+ return element instanceof HTMLElement ? element : void 0;
102
+ }
103
+ /**
104
+ * The form's first control that presents an error (`aria-invalid="true"`), in tree order: through
105
+ * the error prop, a Form error or a native message. Not a disabled one, nor an unfocusable root.
106
+ */
107
+ function firstInvalid(form) {
108
+ for (const element of form.querySelectorAll("[aria-invalid=\"true\"]")) if (element.tabIndex >= 0 && !element.matches(":disabled")) return element;
109
+ }
110
+ /** A summary link focuses its control, which scrolls it into view, and leaves the URL as it is. */
111
+ function focusControl(event, name) {
112
+ const form = event.currentTarget.closest("form");
113
+ const control = form === null ? void 0 : controlOf(form, name);
114
+ if (control === void 0) return;
115
+ event.preventDefault();
116
+ control.focus();
117
+ }
118
+ /** Two controls in page order; a missing one comes last. */
119
+ function order(a, b) {
120
+ if (a === void 0 || b === void 0) return a === b ? 0 : a === void 0 ? 1 : -1;
121
+ return a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
122
+ }
123
+ function same(a, b) {
124
+ return a.length === b.length && a.every(([name, id], i) => b[i]?.[0] === name && b[i]?.[1] === id);
125
+ }
126
+ //#endregion
127
+ export { Form };
@@ -0,0 +1,36 @@
1
+ import { RenderProp } from "../contracts/render.js";
2
+ import { AlertTone } from "../alert/alert.js";
3
+ import { ComponentPropsWithRef, ReactElement, ReactNode } from "react";
4
+ //#region src/form/form.d.ts
5
+ /** Alert's tones. `critical` is a `role="alert"` container; the others are `role="status"`. */
6
+ export type FormMessageTone = AlertTone;
7
+ export interface FormMessageState {
8
+ tone: FormMessageTone;
9
+ }
10
+ export interface FormMessageProps extends Omit<ComponentPropsWithRef<"div">, "title" | "role"> {
11
+ /**
12
+ * `critical` for a failure the user must act on (network, permission, conflict): `role="alert"`.
13
+ * `success`, `info` and `warning` are `role="status"`, read when the reader is idle.
14
+ * @default 'critical'
15
+ */
16
+ tone?: FormMessageTone;
17
+ /** One line above the message, as Alert's `title`. */
18
+ title?: ReactNode;
19
+ /** Decorative tone glyph, as Alert's `icon`; the text carries the meaning. */
20
+ icon?: ReactNode;
21
+ /** A control under the message, for example `<Button size="sm">Retry</Button>`. */
22
+ action?: ReactNode;
23
+ /** Composition of the live container. */
24
+ render?: RenderProp<FormMessageState>;
25
+ /**
26
+ * The message. `null`, `false` and `''` render nothing inside the container, which stays in the
27
+ * page so the next message is announced: render FormMessage always, and change only this.
28
+ */
29
+ children?: ReactNode;
30
+ }
31
+ /**
32
+ * The form-level message: a live container that is always rendered, with an Alert inside it while
33
+ * there is a message. Field errors belong to each Field (`error`, or Form's `errors`), not here.
34
+ */
35
+ export declare function FormMessage({ tone, title, icon, action, render, className, children, ...rest }: FormMessageProps): ReactElement;
36
+ //#endregion
@@ -0,0 +1,29 @@
1
+ import { cx } from "../_internal/cx.js";
2
+ import { renderElement } from "../contracts/render.js";
3
+ import { Alert } from "../alert/alert.js";
4
+ import { presented } from "../_internal/field.js";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/form/form.tsx
7
+ /**
8
+ * The form-level message: a live container that is always rendered, with an Alert inside it while
9
+ * there is a message. Field errors belong to each Field (`error`, or Form's `errors`), not here.
10
+ */
11
+ function FormMessage({ tone = "critical", title, icon, action, render, className, children, ...rest }) {
12
+ const shown = presented(children) || presented(title);
13
+ return renderElement("div", render, { tone }, {
14
+ "data-slot": "form-message",
15
+ "data-tone": tone,
16
+ ...rest,
17
+ className: cx("nz-form-message", className),
18
+ role: tone === "critical" ? "alert" : "status",
19
+ children: shown ? /* @__PURE__ */ jsx(Alert, {
20
+ tone,
21
+ title,
22
+ icon,
23
+ action,
24
+ children
25
+ }) : void 0
26
+ });
27
+ }
28
+ //#endregion
29
+ export { FormMessage };
@@ -0,0 +1,4 @@
1
+ import { Form, FormErrorValue, FormErrors, FormLabels, FormProps } from "./form.client.js";
2
+ import { SubmitButton, SubmitButtonProps } from "./submit-button.client.js";
3
+ import { FormMessage, FormMessageProps, FormMessageState, FormMessageTone } from "./form.js";
4
+ export { Form, type FormErrorValue, type FormErrors, type FormLabels, FormMessage, type FormMessageProps, type FormMessageState, type FormMessageTone, type FormProps, SubmitButton, type SubmitButtonProps };
@@ -0,0 +1,4 @@
1
+ import { Form } from "./form.client.js";
2
+ import { SubmitButton } from "./submit-button.client.js";
3
+ import { FormMessage } from "./form.js";
4
+ export { Form, FormMessage, SubmitButton };
@@ -0,0 +1,20 @@
1
+ import { ButtonVariant } from "../augment.js";
2
+ import { ButtonProps } from "../button/button.js";
3
+ import { ReactElement } from "react";
4
+ //#region src/form/submit-button.client.d.ts
5
+ export interface SubmitButtonProps extends Omit<ButtonProps, "type"> {
6
+ /**
7
+ * The form's main action, so `primary`; Button's other variants are accepted.
8
+ * @default 'primary'
9
+ */
10
+ variant?: ButtonVariant;
11
+ /**
12
+ * Pending even when the form's action is not running, for example while a client handler awaits.
13
+ * The form's own status is read for you: only an action passed as a function (`<form action={fn}>`
14
+ * or Form's) reports one, never a URL.
15
+ * @default false
16
+ */
17
+ pending?: boolean;
18
+ }
19
+ export declare function SubmitButton({ variant, pending, labels: labelsProp, ...rest }: SubmitButtonProps): ReactElement;
20
+ //#endregion
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import { useLabels } from "../config/config.client.js";
3
+ import { Button } from "../button/button.js";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { useFormStatus } from "react-dom";
6
+ //#region src/form/submit-button.client.tsx
7
+ function SubmitButton({ variant = "primary", pending = false, labels: labelsProp, ...rest }) {
8
+ const status = useFormStatus();
9
+ const labels = useLabels("button", labelsProp);
10
+ return /* @__PURE__ */ jsx(Button, {
11
+ ...rest,
12
+ ...labels === void 0 ? {} : { labels },
13
+ variant,
14
+ type: "submit",
15
+ pending: pending || status.pending
16
+ });
17
+ }
18
+ //#endregion
19
+ export { SubmitButton };
@@ -19,7 +19,10 @@ export interface HeadingProps extends ComponentPropsWithRef<"h2"> {
19
19
  * @default the style named after the level, and `heading-h4` for levels 5 and 6 (Figma has no H5 or H6)
20
20
  */
21
21
  variant?: HeadingVariant;
22
- /** A `text/*` colour. Absent, the colour is inherited from the surface. */
22
+ /**
23
+ * A `text/*` colour. Absent, the colour is inherited from the surface. Deprecated value:
24
+ * `'accent'`, which paints `--nz-text-brand`; use `'brand'` (M42; removal deferred to 1.0).
25
+ */
23
26
  tone?: TextTone;
24
27
  render?: RenderProp<HeadingState>;
25
28
  }
@@ -0,0 +1,24 @@
1
+ //#region src/i18n/format-label.d.ts
2
+ /** The CLDR plural categories `Intl.PluralRules` can select. */
3
+ export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
4
+ /**
5
+ * A label with one template per CLDR plural category of its locale, `other` required. A locale
6
+ * lists exactly the categories `Intl.PluralRules` has for it (en-US: `one`, `other`; pl: `one`,
7
+ * `few`, `many`, `other`). Exact-number keys (`'=0'`) are not supported.
8
+ */
9
+ export type PluralLabel = {
10
+ other: string;
11
+ } & Partial<Record<Exclude<PluralCategory, "other">, string>>;
12
+ /** The values a label's placeholders read: `{count}` reads `count`. */
13
+ export type LabelValues = Readonly<Record<string, string | number>>;
14
+ /**
15
+ * Fills a label. A `PluralLabel` picks its template by `values.count`, through
16
+ * `new Intl.PluralRules(locale).select(values.count)` (`other` when the category is missing or
17
+ * `count` is not a number); a plain string is used as is. Each `{name}` placeholder is replaced by
18
+ * `values.name`: a number formatted with `Intl.NumberFormat(locale)`, a string as written. A
19
+ * placeholder with no value stays as written: `formatLabel('+{count}', { count: 1200 })` is
20
+ * `'+1,200'`.
21
+ * @param locale BCP 47 tag for the plural rules and the numbers. @default 'en-US'
22
+ */
23
+ export declare function formatLabel(template: string | PluralLabel, values?: LabelValues, locale?: string): string;
24
+ //#endregion
@@ -0,0 +1,19 @@
1
+ //#region src/i18n/format-label.ts
2
+ /**
3
+ * Fills a label. A `PluralLabel` picks its template by `values.count`, through
4
+ * `new Intl.PluralRules(locale).select(values.count)` (`other` when the category is missing or
5
+ * `count` is not a number); a plain string is used as is. Each `{name}` placeholder is replaced by
6
+ * `values.name`: a number formatted with `Intl.NumberFormat(locale)`, a string as written. A
7
+ * placeholder with no value stays as written: `formatLabel('+{count}', { count: 1200 })` is
8
+ * `'+1,200'`.
9
+ * @param locale BCP 47 tag for the plural rules and the numbers. @default 'en-US'
10
+ */
11
+ function formatLabel(template, values = {}, locale = "en-US") {
12
+ const { count } = values;
13
+ return (typeof template === "string" ? template : (typeof count === "number" ? template[new Intl.PluralRules(locale).select(count)] : void 0) ?? template.other).replace(/\{(\w+)\}/g, (placeholder, name) => {
14
+ const value = Object.hasOwn(values, name) ? values[name] : void 0;
15
+ return typeof value === "number" ? new Intl.NumberFormat(locale).format(value) : value ?? placeholder;
16
+ });
17
+ }
18
+ //#endregion
19
+ export { formatLabel };
@@ -0,0 +1,2 @@
1
+ import { LabelValues, PluralCategory, PluralLabel, formatLabel } from "./format-label.js";
2
+ export { type LabelValues, type PluralCategory, type PluralLabel, formatLabel };
@@ -0,0 +1 @@
1
+ export { formatLabel } from "./format-label.js";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { TooltipPopup, TooltipRoot, TooltipTrigger } from "../tooltip/tooltip.client.js";
3
2
  import { iconButtonElement } from "./icon-button-static.js";
3
+ import { TooltipPopup, TooltipRoot, TooltipTrigger } from "../tooltip/tooltip.client.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/icon-button/icon-button.client.tsx
6
6
  function IconButtonTooltip({ tooltip: { side, align, delay }, shortcut, ...button }) {
@@ -1,5 +1,5 @@
1
- import { ariaKeyShortcuts } from "../_internal/keys.js";
2
1
  import { iconButtonElement, warnUnnamed } from "./icon-button-static.js";
2
+ import { ariaKeyShortcuts } from "../_internal/keys.js";
3
3
  import { IconButtonTooltip } from "./icon-button.client.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/icon-button/icon-button.tsx
package/dist/index.d.ts CHANGED
@@ -1,8 +1,18 @@
1
1
  import { Alert, AlertProps, AlertState, AlertTone } from "./alert/alert.js";
2
2
  import { AlertDismiss, AlertDismissLabels, AlertDismissProps } from "./alert/alert-dismiss.client.js";
3
3
  import "./alert/index.js";
4
+ import { AppShell, AppShellLabels, AppShellProps } from "./app-shell/app-shell.js";
5
+ import "./app-shell/index.js";
6
+ import { Avatar, AvatarGroup, AvatarGroupLabels, AvatarGroupProps, AvatarGroupState, AvatarProps, AvatarSize, AvatarState } from "./avatar/avatar.js";
7
+ import "./avatar/index.js";
4
8
  import { Badge, BadgeProps, BadgeState, BadgeTone } from "./badge/badge.js";
5
9
  import "./badge/index.js";
10
+ import { Banner, BannerProps, BannerState, BannerTone } from "./banner/banner.js";
11
+ import { BannerDismiss, BannerDismissLabels, BannerDismissProps } from "./banner/banner-dismiss.client.js";
12
+ import "./banner/index.js";
13
+ import { BreadcrumbItem, BreadcrumbItemProps, BreadcrumbItemState, BreadcrumbLabels, BreadcrumbRoot, BreadcrumbRootProps } from "./breadcrumb/breadcrumb.js";
14
+ import { breadcrumb_parts_d_exports } from "./breadcrumb/breadcrumb.parts.js";
15
+ import "./breadcrumb/index.js";
6
16
  import { Button, ButtonLabels, ButtonProps, ButtonState } from "./button/button.js";
7
17
  import "./button/index.js";
8
18
  import { CardAction, CardActionProps, CardBody, CardBodyProps, CardDescription, CardDescriptionProps, CardElevation, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardPadding, CardRoot, CardRootProps, CardRootState, CardTitle, CardTitleLevel, CardTitleProps, CardTone } from "./card/card.js";
@@ -11,14 +21,60 @@ import "./card/index.js";
11
21
  import { OpenReason } from "./contracts/details.js";
12
22
  import { Checkbox, CheckboxChangeReason, CheckboxCheckedState, CheckboxProps, CheckboxState } from "./checkbox/checkbox.client.js";
13
23
  import "./checkbox/index.js";
14
- import { Container, ContainerProps } from "./container/container.js";
15
- import "./container/index.js";
16
- import { Delta, DeltaProps, DeltaState, DeltaTone, DeltaTrend } from "./delta/delta.js";
17
- import "./delta/index.js";
24
+ import { Chip, ChipGroup, ChipGroupChangeReason, ChipGroupLabels, ChipGroupProps, ChipGroupState, ChipGroupValue, ChipProps, ChipState } from "./chip-group/chip-group.client.js";
25
+ import "./chip-group/index.js";
26
+ import { ChoiceCard, ChoiceCardChangeReason, ChoiceCardGroup, ChoiceCardGroupProps, ChoiceCardGroupState, ChoiceCardProps, ChoiceCardState } from "./choice-card/choice-card.client.js";
27
+ import "./choice-card/index.js";
18
28
  import { DialogBodyProps, DialogCloseProps, DialogCloseState, DialogDescriptionProps, DialogFooterProps, DialogLabels, DialogPopupProps, DialogPopupState, DialogRole, DialogRootProps, DialogSize, DialogTitleLevel, DialogTitleProps, DialogTriggerProps, DialogTriggerState } from "./dialog/dialog.contract.js";
19
29
  import { DialogBody, DialogClose, DialogDescription, DialogFooter, DialogPopup, DialogRoot, DialogTitle, DialogTrigger } from "./dialog/dialog.client.js";
20
30
  import { dialog_parts_d_exports } from "./dialog/dialog.parts.js";
21
31
  import "./dialog/index.js";
32
+ import { DrawerBodyProps, DrawerCloseProps, DrawerCloseState, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerLabels, DrawerPopupProps, DrawerPopupState, DrawerRootProps, DrawerSide, DrawerTitleLevel, DrawerTitleProps, DrawerTriggerProps, DrawerTriggerState } from "./drawer/drawer.contract.js";
33
+ import { DrawerBody, DrawerClose, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerRoot, DrawerTitle, DrawerTrigger } from "./drawer/drawer.client.js";
34
+ import { drawer_parts_d_exports } from "./drawer/drawer.parts.js";
35
+ import "./drawer/index.js";
36
+ import { FileUploadFile, FileUploadItem, FileUploadLabels, FileUploadProps, FileUploadRejection, FileUploadRejectionReason, FileUploadStatus } from "./file-upload/file-upload.contract.js";
37
+ import { FileUpload } from "./file-upload/file-upload.client.js";
38
+ import "./file-upload/index.js";
39
+ import { Form, FormErrorValue, FormErrors, FormLabels, FormProps } from "./form/form.client.js";
40
+ import { SubmitButton, SubmitButtonProps } from "./form/submit-button.client.js";
41
+ import { FormMessage, FormMessageProps, FormMessageState, FormMessageTone } from "./form/form.js";
42
+ import "./form/index.js";
43
+ import { Metric, MetricDataProps, MetricLabels, MetricProps, MetricSize, MetricState, metricLabels } from "./metric/metric.js";
44
+ import "./metric/index.js";
45
+ import { MobileTabBarItem, MobileTabBarItemProps, MobileTabBarItemState, MobileTabBarLabels, MobileTabBarRoot, MobileTabBarRootProps } from "./mobile-tab-bar/mobile-tab-bar.js";
46
+ import { MobileTabBarMore, MobileTabBarMoreLabels, MobileTabBarMoreProps } from "./mobile-tab-bar/mobile-tab-bar-more.client.js";
47
+ import { mobile_tab_bar_parts_d_exports } from "./mobile-tab-bar/mobile-tab-bar.parts.js";
48
+ import "./mobile-tab-bar/index.js";
49
+ import { Pagination, PaginationChangeReason, PaginationLabels, PaginationLinkState, PaginationProps, PaginationSize, PaginationSlot, PaginationState } from "./pagination/pagination.js";
50
+ import "./pagination/index.js";
51
+ import { PasswordInput, PasswordInputLabels, PasswordInputProps, PasswordInputState, PasswordInputVisibleReason } from "./password-input/password-input.client.js";
52
+ import "./password-input/index.js";
53
+ import { PopoverCloseProps, PopoverCloseState, PopoverDescriptionProps, PopoverLabels, PopoverPopupProps, PopoverPopupState, PopoverRootProps, PopoverSide, PopoverTitleLevel, PopoverTitleProps, PopoverTriggerProps, PopoverTriggerState } from "./popover/popover.contract.js";
54
+ import { PopoverClose, PopoverDescription, PopoverPopup, PopoverRoot, PopoverTitle, PopoverTrigger } from "./popover/popover.client.js";
55
+ import { popover_parts_d_exports } from "./popover/popover.parts.js";
56
+ import "./popover/index.js";
57
+ import { RankedListAction, RankedListActionProps, RankedListItem, RankedListItemProps, RankedListItemState, RankedListLabels, RankedListRoot, RankedListRootProps, RankedListRootState, RankedListTitleLevel } from "./ranked-list/ranked-list.js";
58
+ import { ranked_list_parts_d_exports } from "./ranked-list/ranked-list.parts.js";
59
+ import "./ranked-list/index.js";
60
+ import { SearchField, SearchFieldLabels, SearchFieldProps, SearchFieldState } from "./search-field/search-field.client.js";
61
+ import "./search-field/index.js";
62
+ import { SidebarContent, SidebarContentProps, SidebarFooter, SidebarFooterProps, SidebarHeader, SidebarHeaderProps, SidebarLabels, SidebarRoot, SidebarRootProps } from "./sidebar/sidebar.js";
63
+ import { NavItem, NavItemProps, NavItemState } from "./nav-item/nav-item.js";
64
+ import { SidebarItem, SidebarItemProps } from "./sidebar/sidebar-item.client.js";
65
+ import { sidebar_parts_d_exports } from "./sidebar/sidebar.parts.js";
66
+ import "./sidebar/index.js";
67
+ import { TableSelection, TableSelectionProps } from "./table-selection/table-selection.client.js";
68
+ import { TableSelectAll, TableSelectAllProps, TableSelectRow, TableSelectRowProps, TableSelectionLabels } from "./table-selection/table-selection.js";
69
+ import "./table-selection/index.js";
70
+ import { Politeness, ToastAction, ToastOptions, ToastTone, ToasterLabels, ToasterProps } from "./toast/toast.contract.js";
71
+ import { Toaster } from "./toast/toaster.client.js";
72
+ import { announce, toast } from "./toast/store.js";
73
+ import "./toast/index.js";
74
+ import { Container, ContainerProps } from "./container/container.js";
75
+ import "./container/index.js";
76
+ import { Delta, DeltaProps, DeltaState, DeltaTone, DeltaTrend } from "./delta/delta.js";
77
+ import "./delta/index.js";
22
78
  import { EmptyState, EmptyStateProps, EmptyStateTitleLevel } from "./empty-state/empty-state.js";
23
79
  import "./empty-state/index.js";
24
80
  import { FieldControlProps, FieldIds, FieldProps, FieldState, FieldStatic, FieldStaticProps, FieldStaticWiring, FieldValidateOn, FieldValidityKey } from "./field/field-static.js";
@@ -48,14 +104,25 @@ import { Input, InputProps, InputState, InputType } from "./input/input.client.j
48
104
  import "./input/index.js";
49
105
  import { Kbd, KbdPlatform, KbdProps } from "./kbd/kbd.js";
50
106
  import "./kbd/index.js";
107
+ import { KpiTile, KpiTileProps, KpiTileState, KpiTileTone } from "./kpi-tile/kpi-tile.js";
108
+ import "./kpi-tile/index.js";
51
109
  import { MenuCheckboxItemProps, MenuCheckedReason, MenuGroupLabelProps, MenuGroupProps, MenuItemProps, MenuItemState, MenuItemTone, MenuLabels, MenuPopupProps, MenuPopupState, MenuRadioGroupProps, MenuRadioItemProps, MenuRootProps, MenuSeparatorProps, MenuSide, MenuTriggerProps, MenuTriggerState } from "./menu/menu.contract.js";
52
110
  import { MenuCheckboxItem, MenuGroup, MenuGroupLabel, MenuItem, MenuPopup, MenuRadioGroup, MenuRadioItem, MenuRoot, MenuSeparator, MenuTrigger } from "./menu/menu.client.js";
53
111
  import { menu_parts_d_exports } from "./menu/menu.parts.js";
54
112
  import "./menu/index.js";
55
113
  import { Meter, MeterProps, MeterState, MeterTone } from "./meter/meter.js";
56
114
  import "./meter/index.js";
115
+ import { MobileTopBar, MobileTopBarProps } from "./mobile-top-bar/mobile-top-bar.js";
116
+ import "./mobile-top-bar/index.js";
117
+ import { CountUp, CountUpOptions, CountUpProps, CountUpState, useCountUp } from "./motion/count-up.client.js";
118
+ import "./motion/index.js";
57
119
  import { NativeSelect, NativeSelectProps, NativeSelectState } from "./native-select/native-select.js";
58
120
  import "./native-select/index.js";
121
+ import "./nav-item/index.js";
122
+ import { NumberValue, NumberValueProps, NumberValueState, formatNumber } from "./number-value/number-value.js";
123
+ import "./number-value/index.js";
124
+ import { PageHeader, PageHeaderProps, PageHeaderTitleLevel } from "./page-header/page-header.js";
125
+ import "./page-header/index.js";
59
126
  import { ProgressBar, ProgressBarProps, ProgressBarState, ProgressBarTone } from "./progress-bar/progress-bar.js";
60
127
  import "./progress-bar/index.js";
61
128
  import { ProgressRing, ProgressRingProps, ProgressRingSize, ProgressRingState, ProgressRingTone } from "./progress-ring/progress-ring.js";
@@ -74,12 +141,20 @@ import { Separator, SeparatorProps, SeparatorState } from "./separator/separator
74
141
  import "./separator/index.js";
75
142
  import { Skeleton, SkeletonProps, SkeletonShape, SkeletonState } from "./skeleton/skeleton.js";
76
143
  import "./skeleton/index.js";
144
+ import { SplitAside, SplitAsideProps, SplitAsideWidth, SplitMain, SplitMainProps, SplitRoot, SplitRootProps } from "./split/split.js";
145
+ import { split_parts_d_exports } from "./split/split.parts.js";
146
+ import "./split/index.js";
77
147
  import "./stack/index.js";
148
+ import { StickyBar, StickyBarProps } from "./sticky-bar/sticky-bar.js";
149
+ import "./sticky-bar/index.js";
78
150
  import { Switch, SwitchChangeReason, SwitchProps, SwitchState } from "./switch/switch.client.js";
79
151
  import "./switch/index.js";
80
152
  import { TabNavLink, TabNavLinkProps, TabNavLinkState, TabNavRoot, TabNavRootProps } from "./tab-nav/tab-nav.js";
81
153
  import { tab_nav_parts_d_exports } from "./tab-nav/tab-nav.parts.js";
82
154
  import "./tab-nav/index.js";
155
+ import { TableBody, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableCellState, TableContainer, TableContainerProps, TableFooter, TableHead, TableHeadProps, TableHeadState, TableHeader, TableRoot, TableRootProps, TableRow, TableRowLink, TableRowLinkProps, TableRowProps, TableRowState, TableSectionProps, TableSort, TableSortButton, TableSortButtonProps } from "./table/table.js";
156
+ import { table_parts_d_exports } from "./table/table.parts.js";
157
+ import "./table/index.js";
83
158
  import { TabsActivationMode, TabsListProps, TabsListState, TabsPanelProps, TabsPanelState, TabsRootProps, TabsRootState, TabsTabProps, TabsTabState, TabsValueReason } from "./tabs/tabs.contract.js";
84
159
  import { TabsList, TabsPanel, TabsRoot, TabsTab } from "./tabs/tabs.client.js";
85
160
  import { tabs_parts_d_exports } from "./tabs/tabs.parts.js";
@@ -92,4 +167,8 @@ import "./theme-script/index.js";
92
167
  import { TooltipPopup, TooltipRoot, TooltipTrigger } from "./tooltip/tooltip.client.js";
93
168
  import { tooltip_parts_d_exports } from "./tooltip/tooltip.parts.js";
94
169
  import "./tooltip/index.js";
95
- export { Alert, AlertDismiss, type AlertDismissLabels, type AlertDismissProps, type AlertProps, type AlertState, type AlertTone, Badge, type BadgeProps, type BadgeState, type BadgeTone, Button, type ButtonLabels, type ButtonProps, type ButtonState, card_parts_d_exports as Card, CardAction, type CardActionProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, type CardElevation, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardPadding, CardRoot, type CardRootProps, type CardRootState, CardTitle, type CardTitleLevel, type CardTitleProps, type CardTone, Checkbox, type CheckboxChangeReason, type CheckboxCheckedState, type CheckboxProps, type CheckboxState, Container, type ContainerProps, Delta, type DeltaProps, type DeltaState, type DeltaTone, type DeltaTrend, dialog_parts_d_exports as Dialog, DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, type DialogCloseState, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, type DialogLabels, DialogPopup, type DialogPopupProps, type DialogPopupState, type DialogRole, DialogRoot, type DialogRootProps, type DialogSize, DialogTitle, type DialogTitleLevel, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, type DialogTriggerState, EmptyState, type EmptyStateProps, type EmptyStateTitleLevel, Field, type FieldControl, type FieldControlElementProps, type FieldControlOptions, type FieldControlProps, type FieldIds, type FieldProps, type FieldState, FieldStatic, type FieldStaticProps, type FieldStaticWiring, type FieldValidatable, type FieldValidateOn, type FieldValidityKey, Fieldset, type FieldsetProps, type FieldsetState, Grid, GridItem, type GridItemProps, type GridItemState, type GridProps, type GridResponsiveSpan, type GridSpan, type GridState, Heading, type HeadingLevel, type HeadingProps, type HeadingState, type HeadingVariant, IconButton, type IconButtonProps, type IconButtonState, IconButtonStatic, type IconButtonStaticProps, type IconButtonTooltipOptions, Image, type ImageProps, type ImageRatio, type ImageState, Inline, InlineError, type InlineErrorProps, type InlineProps, type InlineState, Input, type InputProps, type InputState, type InputType, Kbd, type KbdPlatform, type KbdProps, type LayoutGap, menu_parts_d_exports as Menu, MenuCheckboxItem, type MenuCheckboxItemProps, type MenuCheckedReason, MenuGroup, MenuGroupLabel, type MenuGroupLabelProps, type MenuGroupProps, MenuItem, type MenuItemProps, type MenuItemState, type MenuItemTone, type MenuLabels, MenuPopup, type MenuPopupProps, type MenuPopupState, MenuRadioGroup, type MenuRadioGroupProps, MenuRadioItem, type MenuRadioItemProps, MenuRoot, type MenuRootProps, MenuSeparator, type MenuSeparatorProps, type MenuSide, MenuTrigger, type MenuTriggerProps, type MenuTriggerState, Meter, type MeterProps, type MeterState, type MeterTone, NativeSelect, type NativeSelectProps, type NativeSelectState, type OpenReason, ProgressBar, type ProgressBarProps, type ProgressBarState, type ProgressBarTone, ProgressRing, type ProgressRingProps, type ProgressRingSize, type ProgressRingState, type ProgressRingTone, Radio, RadioGroup, type RadioGroupChangeReason, type RadioGroupProps, type RadioProps, type RadioState, segmented_control_parts_d_exports as SegmentedControl, type SegmentedControlChangeReason, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlItemState, SegmentedControlRoot, type SegmentedControlRootProps, type SegmentedControlRootState, select_parts_d_exports as Select, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectItem, type SelectItemProps, type SelectItemState, type SelectLabels, SelectPopup, type SelectPopupProps, type SelectPopupState, SelectRoot, type SelectRootProps, type SelectRootState, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, type SelectTriggerState, SelectValue, type SelectValueProps, type SelectValueReason, type SelectValueState, Separator, type SeparatorProps, type SeparatorState, Skeleton, type SkeletonProps, type SkeletonShape, type SkeletonState, Stack, type StackProps, type StackState, Switch, type SwitchChangeReason, type SwitchProps, type SwitchState, tab_nav_parts_d_exports as TabNav, TabNavLink, type TabNavLinkProps, type TabNavLinkState, TabNavRoot, type TabNavRootProps, tabs_parts_d_exports as Tabs, type TabsActivationMode, TabsList, type TabsListProps, type TabsListState, TabsPanel, type TabsPanelProps, type TabsPanelState, TabsRoot, type TabsRootProps, type TabsRootState, TabsTab, type TabsTabProps, type TabsTabState, type TabsValueReason, Text, type TextProps, type TextState, type TextTone, type TextVariant, Textarea, type TextareaProps, ThemeScript, type ThemeScriptProps, tooltip_parts_d_exports as Tooltip, type TooltipLabels, TooltipPopup, type TooltipPopupProps, type TooltipPopupState, TooltipRoot, type TooltipRootProps, type TooltipSide, TooltipTrigger, type TooltipTriggerProps, type TooltipTriggerState, themeScript, useFieldControl };
170
+ import { TopBar, TopBarProps } from "./top-bar/top-bar.js";
171
+ import "./top-bar/index.js";
172
+ import { TrendCard, TrendCardProps, TrendCardState } from "./trend-card/trend-card.js";
173
+ import "./trend-card/index.js";
174
+ export { Alert, AlertDismiss, type AlertDismissLabels, type AlertDismissProps, type AlertProps, type AlertState, type AlertTone, AppShell, type AppShellLabels, type AppShellProps, Avatar, AvatarGroup, type AvatarGroupLabels, type AvatarGroupProps, type AvatarGroupState, type AvatarProps, type AvatarSize, type AvatarState, Badge, type BadgeProps, type BadgeState, type BadgeTone, Banner, BannerDismiss, type BannerDismissLabels, type BannerDismissProps, type BannerProps, type BannerState, type BannerTone, breadcrumb_parts_d_exports as Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, type BreadcrumbItemState, type BreadcrumbLabels, BreadcrumbRoot, type BreadcrumbRootProps, Button, type ButtonLabels, type ButtonProps, type ButtonState, card_parts_d_exports as Card, CardAction, type CardActionProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, type CardElevation, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardPadding, CardRoot, type CardRootProps, type CardRootState, CardTitle, type CardTitleLevel, type CardTitleProps, type CardTone, Checkbox, type CheckboxChangeReason, type CheckboxCheckedState, type CheckboxProps, type CheckboxState, Chip, ChipGroup, type ChipGroupChangeReason, type ChipGroupLabels, type ChipGroupProps, type ChipGroupState, type ChipGroupValue, type ChipProps, type ChipState, ChoiceCard, type ChoiceCardChangeReason, ChoiceCardGroup, type ChoiceCardGroupProps, type ChoiceCardGroupState, type ChoiceCardProps, type ChoiceCardState, Container, type ContainerProps, CountUp, type CountUpOptions, type CountUpProps, type CountUpState, Delta, type DeltaProps, type DeltaState, type DeltaTone, type DeltaTrend, dialog_parts_d_exports as Dialog, DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, type DialogCloseState, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, type DialogLabels, DialogPopup, type DialogPopupProps, type DialogPopupState, type DialogRole, DialogRoot, type DialogRootProps, type DialogSize, DialogTitle, type DialogTitleLevel, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, type DialogTriggerState, drawer_parts_d_exports as Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, type DrawerCloseState, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerLabels, DrawerPopup, type DrawerPopupProps, type DrawerPopupState, DrawerRoot, type DrawerRootProps, type DrawerSide, DrawerTitle, type DrawerTitleLevel, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, type DrawerTriggerState, EmptyState, type EmptyStateProps, type EmptyStateTitleLevel, Field, type FieldControl, type FieldControlElementProps, type FieldControlOptions, type FieldControlProps, type FieldIds, type FieldProps, type FieldState, FieldStatic, type FieldStaticProps, type FieldStaticWiring, type FieldValidatable, type FieldValidateOn, type FieldValidityKey, Fieldset, type FieldsetProps, type FieldsetState, FileUpload, type FileUploadFile, type FileUploadItem, type FileUploadLabels, type FileUploadProps, type FileUploadRejection, type FileUploadRejectionReason, type FileUploadStatus, Form, type FormErrorValue, type FormErrors, type FormLabels, FormMessage, type FormMessageProps, type FormMessageState, type FormMessageTone, type FormProps, Grid, GridItem, type GridItemProps, type GridItemState, type GridProps, type GridResponsiveSpan, type GridSpan, type GridState, Heading, type HeadingLevel, type HeadingProps, type HeadingState, type HeadingVariant, IconButton, type IconButtonProps, type IconButtonState, IconButtonStatic, type IconButtonStaticProps, type IconButtonTooltipOptions, Image, type ImageProps, type ImageRatio, type ImageState, Inline, InlineError, type InlineErrorProps, type InlineProps, type InlineState, Input, type InputProps, type InputState, type InputType, Kbd, type KbdPlatform, type KbdProps, KpiTile, type KpiTileProps, type KpiTileState, type KpiTileTone, type LayoutGap, menu_parts_d_exports as Menu, MenuCheckboxItem, type MenuCheckboxItemProps, type MenuCheckedReason, MenuGroup, MenuGroupLabel, type MenuGroupLabelProps, type MenuGroupProps, MenuItem, type MenuItemProps, type MenuItemState, type MenuItemTone, type MenuLabels, MenuPopup, type MenuPopupProps, type MenuPopupState, MenuRadioGroup, type MenuRadioGroupProps, MenuRadioItem, type MenuRadioItemProps, MenuRoot, type MenuRootProps, MenuSeparator, type MenuSeparatorProps, type MenuSide, MenuTrigger, type MenuTriggerProps, type MenuTriggerState, Meter, type MeterProps, type MeterState, type MeterTone, Metric, type MetricDataProps, type MetricLabels, type MetricProps, type MetricSize, type MetricState, mobile_tab_bar_parts_d_exports as MobileTabBar, MobileTabBarItem, type MobileTabBarItemProps, type MobileTabBarItemState, type MobileTabBarLabels, MobileTabBarMore, type MobileTabBarMoreLabels, type MobileTabBarMoreProps, MobileTabBarRoot, type MobileTabBarRootProps, MobileTopBar, type MobileTopBarProps, NativeSelect, type NativeSelectProps, type NativeSelectState, NavItem, type NavItemProps, type NavItemState, NumberValue, type NumberValueProps, type NumberValueState, type OpenReason, PageHeader, type PageHeaderProps, type PageHeaderTitleLevel, Pagination, type PaginationChangeReason, type PaginationLabels, type PaginationLinkState, type PaginationProps, type PaginationSize, type PaginationSlot, type PaginationState, PasswordInput, type PasswordInputLabels, type PasswordInputProps, type PasswordInputState, type PasswordInputVisibleReason, type Politeness, popover_parts_d_exports as Popover, PopoverClose, type PopoverCloseProps, type PopoverCloseState, PopoverDescription, type PopoverDescriptionProps, type PopoverLabels, PopoverPopup, type PopoverPopupProps, type PopoverPopupState, PopoverRoot, type PopoverRootProps, type PopoverSide, PopoverTitle, type PopoverTitleLevel, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, type PopoverTriggerState, ProgressBar, type ProgressBarProps, type ProgressBarState, type ProgressBarTone, ProgressRing, type ProgressRingProps, type ProgressRingSize, type ProgressRingState, type ProgressRingTone, Radio, RadioGroup, type RadioGroupChangeReason, type RadioGroupProps, type RadioProps, type RadioState, ranked_list_parts_d_exports as RankedList, RankedListAction, type RankedListActionProps, RankedListItem, type RankedListItemProps, type RankedListItemState, type RankedListLabels, RankedListRoot, type RankedListRootProps, type RankedListRootState, type RankedListTitleLevel, SearchField, type SearchFieldLabels, type SearchFieldProps, type SearchFieldState, segmented_control_parts_d_exports as SegmentedControl, type SegmentedControlChangeReason, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlItemState, SegmentedControlRoot, type SegmentedControlRootProps, type SegmentedControlRootState, select_parts_d_exports as Select, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectItem, type SelectItemProps, type SelectItemState, type SelectLabels, SelectPopup, type SelectPopupProps, type SelectPopupState, SelectRoot, type SelectRootProps, type SelectRootState, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, type SelectTriggerState, SelectValue, type SelectValueProps, type SelectValueReason, type SelectValueState, Separator, type SeparatorProps, type SeparatorState, sidebar_parts_d_exports as Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarLabels, SidebarRoot, type SidebarRootProps, Skeleton, type SkeletonProps, type SkeletonShape, type SkeletonState, split_parts_d_exports as Split, SplitAside, type SplitAsideProps, type SplitAsideWidth, SplitMain, type SplitMainProps, SplitRoot, type SplitRootProps, Stack, type StackProps, type StackState, StickyBar, type StickyBarProps, SubmitButton, type SubmitButtonProps, Switch, type SwitchChangeReason, type SwitchProps, type SwitchState, tab_nav_parts_d_exports as TabNav, TabNavLink, type TabNavLinkProps, type TabNavLinkState, TabNavRoot, type TabNavRootProps, table_parts_d_exports as Table, TableBody, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, type TableCellState, TableContainer, type TableContainerProps, TableFooter, TableHead, type TableHeadProps, type TableHeadState, TableHeader, TableRoot, type TableRootProps, TableRow, TableRowLink, type TableRowLinkProps, type TableRowProps, type TableRowState, type TableSectionProps, TableSelectAll, type TableSelectAllProps, TableSelectRow, type TableSelectRowProps, TableSelection, type TableSelectionLabels, type TableSelectionProps, type TableSort, TableSortButton, type TableSortButtonProps, tabs_parts_d_exports as Tabs, type TabsActivationMode, TabsList, type TabsListProps, type TabsListState, TabsPanel, type TabsPanelProps, type TabsPanelState, TabsRoot, type TabsRootProps, type TabsRootState, TabsTab, type TabsTabProps, type TabsTabState, type TabsValueReason, Text, type TextProps, type TextState, type TextTone, type TextVariant, Textarea, type TextareaProps, ThemeScript, type ThemeScriptProps, type ToastAction, type ToastOptions, type ToastTone, Toaster, type ToasterLabels, type ToasterProps, tooltip_parts_d_exports as Tooltip, type TooltipLabels, TooltipPopup, type TooltipPopupProps, type TooltipPopupState, TooltipRoot, type TooltipRootProps, type TooltipSide, TooltipTrigger, type TooltipTriggerProps, type TooltipTriggerState, TopBar, type TopBarProps, TrendCard, type TrendCardProps, type TrendCardState, announce, formatNumber, metricLabels, themeScript, toast, useCountUp, useFieldControl };
package/dist/index.js CHANGED
@@ -1,6 +1,12 @@
1
1
  import { Alert } from "./alert/alert.js";
2
2
  import { AlertDismiss } from "./alert/alert-dismiss.client.js";
3
+ import { AppShell } from "./app-shell/app-shell.js";
4
+ import { Avatar, AvatarGroup } from "./avatar/avatar.js";
3
5
  import { Badge } from "./badge/badge.js";
6
+ import { Banner } from "./banner/banner.js";
7
+ import { BannerDismiss } from "./banner/banner-dismiss.client.js";
8
+ import { BreadcrumbItem, BreadcrumbRoot } from "./breadcrumb/breadcrumb.js";
9
+ import { breadcrumb_parts_exports } from "./breadcrumb/breadcrumb.parts.js";
4
10
  import { Button } from "./button/button.js";
5
11
  import { CardAction, CardBody, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle } from "./card/card.js";
6
12
  import { card_parts_exports } from "./card/card.parts.js";
@@ -8,44 +14,83 @@ import { InlineError } from "./inline-error/inline-error.js";
8
14
  import { FieldStatic } from "./field/field-static.js";
9
15
  import { useFieldControl } from "./field/field-scope.client.js";
10
16
  import { Checkbox } from "./checkbox/checkbox.client.js";
17
+ import { Chip, ChipGroup } from "./chip-group/chip-group.client.js";
18
+ import { ChoiceCard, ChoiceCardGroup } from "./choice-card/choice-card.client.js";
11
19
  import { Container } from "./container/container.js";
12
20
  import { Delta } from "./delta/delta.js";
13
21
  import { DialogBody, DialogClose, DialogDescription, DialogFooter, DialogPopup, DialogRoot, DialogTitle, DialogTrigger } from "./dialog/dialog.client.js";
14
22
  import { dialog_parts_exports } from "./dialog/dialog.parts.js";
23
+ import { DrawerBody, DrawerClose, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerRoot, DrawerTitle, DrawerTrigger } from "./drawer/drawer.client.js";
24
+ import { drawer_parts_exports } from "./drawer/drawer.parts.js";
15
25
  import { EmptyState } from "./empty-state/empty-state.js";
16
26
  import { Field } from "./field/field.js";
17
27
  import { Fieldset } from "./fieldset/fieldset.js";
28
+ import { IconButtonStatic } from "./icon-button/icon-button-static.js";
29
+ import { ProgressBar } from "./progress-bar/progress-bar.js";
30
+ import { FileUpload } from "./file-upload/file-upload.client.js";
31
+ import { Form } from "./form/form.client.js";
32
+ import { SubmitButton } from "./form/submit-button.client.js";
33
+ import { FormMessage } from "./form/form.js";
18
34
  import { Grid, GridItem } from "./grid/grid.js";
19
35
  import { Heading } from "./heading/heading.js";
20
36
  import { Kbd } from "./kbd/kbd.js";
21
37
  import { TooltipPopup, TooltipRoot, TooltipTrigger } from "./tooltip/tooltip.client.js";
22
- import { IconButtonStatic } from "./icon-button/icon-button-static.js";
23
38
  import { IconButton } from "./icon-button/icon-button.js";
24
39
  import { Image } from "./image/image.js";
25
40
  import { Inline } from "./inline/inline.js";
26
41
  import { Input } from "./input/input.client.js";
42
+ import { NumberValue, formatNumber } from "./number-value/number-value.js";
43
+ import { Skeleton } from "./skeleton/skeleton.js";
44
+ import { Metric, metricLabels } from "./metric/metric.js";
45
+ import { KpiTile } from "./kpi-tile/kpi-tile.js";
27
46
  import { MenuCheckboxItem, MenuGroup, MenuGroupLabel, MenuItem, MenuPopup, MenuRadioGroup, MenuRadioItem, MenuRoot, MenuSeparator, MenuTrigger } from "./menu/menu.client.js";
28
47
  import { menu_parts_exports } from "./menu/menu.parts.js";
29
48
  import { Meter } from "./meter/meter.js";
49
+ import { MobileTabBarItem, MobileTabBarRoot } from "./mobile-tab-bar/mobile-tab-bar.js";
50
+ import { MobileTabBarMore } from "./mobile-tab-bar/mobile-tab-bar-more.client.js";
51
+ import { mobile_tab_bar_parts_exports } from "./mobile-tab-bar/mobile-tab-bar.parts.js";
52
+ import { MobileTopBar } from "./mobile-top-bar/mobile-top-bar.js";
53
+ import { CountUp, useCountUp } from "./motion/count-up.client.js";
30
54
  import { NativeSelect } from "./native-select/native-select.js";
31
- import { ProgressBar } from "./progress-bar/progress-bar.js";
55
+ import { NavItem } from "./nav-item/nav-item.js";
56
+ import { PageHeader } from "./page-header/page-header.js";
57
+ import { Pagination } from "./pagination/pagination.js";
58
+ import { PasswordInput } from "./password-input/password-input.client.js";
59
+ import { PopoverClose, PopoverDescription, PopoverPopup, PopoverRoot, PopoverTitle, PopoverTrigger } from "./popover/popover.client.js";
60
+ import { popover_parts_exports } from "./popover/popover.parts.js";
32
61
  import { ProgressRing } from "./progress-ring/progress-ring.js";
33
62
  import { Radio } from "./radio-group/radio-group.client.js";
34
63
  import { RadioGroup } from "./radio-group/radio-group.js";
64
+ import { RankedListAction, RankedListItem, RankedListRoot } from "./ranked-list/ranked-list.js";
65
+ import { ranked_list_parts_exports } from "./ranked-list/ranked-list.parts.js";
66
+ import { SearchField } from "./search-field/search-field.client.js";
35
67
  import { SegmentedControlItem, SegmentedControlRoot } from "./segmented-control/segmented-control.client.js";
36
68
  import { segmented_control_parts_exports } from "./segmented-control/segmented-control.parts.js";
37
69
  import { SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectRoot, SelectSeparator, SelectTrigger, SelectValue } from "./select/select.client.js";
38
70
  import { select_parts_exports } from "./select/select.parts.js";
39
71
  import { Separator } from "./separator/separator.js";
40
- import { Skeleton } from "./skeleton/skeleton.js";
72
+ import { SidebarContent, SidebarFooter, SidebarHeader, SidebarRoot } from "./sidebar/sidebar.js";
73
+ import { SidebarItem } from "./sidebar/sidebar-item.client.js";
74
+ import { sidebar_parts_exports } from "./sidebar/sidebar.parts.js";
75
+ import { SplitAside, SplitMain, SplitRoot } from "./split/split.js";
76
+ import { split_parts_exports } from "./split/split.parts.js";
41
77
  import { Stack } from "./stack/stack.js";
78
+ import { StickyBar } from "./sticky-bar/sticky-bar.js";
42
79
  import { Switch } from "./switch/switch.client.js";
43
80
  import { TabNavLink, TabNavRoot } from "./tab-nav/tab-nav.js";
44
81
  import { tab_nav_parts_exports } from "./tab-nav/tab-nav.parts.js";
82
+ import { TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRoot, TableRow, TableRowLink, TableSortButton } from "./table/table.js";
83
+ import { table_parts_exports } from "./table/table.parts.js";
84
+ import { TableSelection } from "./table-selection/table-selection.client.js";
85
+ import { TableSelectAll, TableSelectRow } from "./table-selection/table-selection.js";
45
86
  import { TabsList, TabsPanel, TabsRoot, TabsTab } from "./tabs/tabs.client.js";
46
87
  import { tabs_parts_exports } from "./tabs/tabs.parts.js";
47
88
  import { Text } from "./text/text.js";
48
89
  import { Textarea } from "./textarea/textarea.client.js";
49
90
  import { ThemeScript, themeScript } from "./theme-script/theme-script.js";
91
+ import { announce, toast } from "./toast/store.js";
92
+ import { Toaster } from "./toast/toaster.client.js";
50
93
  import { tooltip_parts_exports } from "./tooltip/tooltip.parts.js";
51
- export { Alert, AlertDismiss, Badge, Button, card_parts_exports as Card, CardAction, CardBody, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle, Checkbox, Container, Delta, dialog_parts_exports as Dialog, DialogBody, DialogClose, DialogDescription, DialogFooter, DialogPopup, DialogRoot, DialogTitle, DialogTrigger, EmptyState, Field, FieldStatic, Fieldset, Grid, GridItem, Heading, IconButton, IconButtonStatic, Image, Inline, InlineError, Input, Kbd, menu_parts_exports as Menu, MenuCheckboxItem, MenuGroup, MenuGroupLabel, MenuItem, MenuPopup, MenuRadioGroup, MenuRadioItem, MenuRoot, MenuSeparator, MenuTrigger, Meter, NativeSelect, ProgressBar, ProgressRing, Radio, RadioGroup, segmented_control_parts_exports as SegmentedControl, SegmentedControlItem, SegmentedControlRoot, select_parts_exports as Select, SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectRoot, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, Stack, Switch, tab_nav_parts_exports as TabNav, TabNavLink, TabNavRoot, tabs_parts_exports as Tabs, TabsList, TabsPanel, TabsRoot, TabsTab, Text, Textarea, ThemeScript, tooltip_parts_exports as Tooltip, TooltipPopup, TooltipRoot, TooltipTrigger, themeScript, useFieldControl };
94
+ import { TopBar } from "./top-bar/top-bar.js";
95
+ import { TrendCard } from "./trend-card/trend-card.js";
96
+ export { Alert, AlertDismiss, AppShell, Avatar, AvatarGroup, Badge, Banner, BannerDismiss, breadcrumb_parts_exports as Breadcrumb, BreadcrumbItem, BreadcrumbRoot, Button, card_parts_exports as Card, CardAction, CardBody, CardDescription, CardFooter, CardHeader, CardRoot, CardTitle, Checkbox, Chip, ChipGroup, ChoiceCard, ChoiceCardGroup, Container, CountUp, Delta, dialog_parts_exports as Dialog, DialogBody, DialogClose, DialogDescription, DialogFooter, DialogPopup, DialogRoot, DialogTitle, DialogTrigger, drawer_parts_exports as Drawer, DrawerBody, DrawerClose, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerRoot, DrawerTitle, DrawerTrigger, EmptyState, Field, FieldStatic, Fieldset, FileUpload, Form, FormMessage, Grid, GridItem, Heading, IconButton, IconButtonStatic, Image, Inline, InlineError, Input, Kbd, KpiTile, menu_parts_exports as Menu, MenuCheckboxItem, MenuGroup, MenuGroupLabel, MenuItem, MenuPopup, MenuRadioGroup, MenuRadioItem, MenuRoot, MenuSeparator, MenuTrigger, Meter, Metric, mobile_tab_bar_parts_exports as MobileTabBar, MobileTabBarItem, MobileTabBarMore, MobileTabBarRoot, MobileTopBar, NativeSelect, NavItem, NumberValue, PageHeader, Pagination, PasswordInput, popover_parts_exports as Popover, PopoverClose, PopoverDescription, PopoverPopup, PopoverRoot, PopoverTitle, PopoverTrigger, ProgressBar, ProgressRing, Radio, RadioGroup, ranked_list_parts_exports as RankedList, RankedListAction, RankedListItem, RankedListRoot, SearchField, segmented_control_parts_exports as SegmentedControl, SegmentedControlItem, SegmentedControlRoot, select_parts_exports as Select, SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectRoot, SelectSeparator, SelectTrigger, SelectValue, Separator, sidebar_parts_exports as Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarItem, SidebarRoot, Skeleton, split_parts_exports as Split, SplitAside, SplitMain, SplitRoot, Stack, StickyBar, SubmitButton, Switch, tab_nav_parts_exports as TabNav, TabNavLink, TabNavRoot, table_parts_exports as Table, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRoot, TableRow, TableRowLink, TableSelectAll, TableSelectRow, TableSelection, TableSortButton, tabs_parts_exports as Tabs, TabsList, TabsPanel, TabsRoot, TabsTab, Text, Textarea, ThemeScript, Toaster, tooltip_parts_exports as Tooltip, TooltipPopup, TooltipRoot, TooltipTrigger, TopBar, TrendCard, announce, formatNumber, metricLabels, themeScript, toast, useCountUp, useFieldControl };
@@ -0,0 +1,2 @@
1
+ import { KpiTile, KpiTileProps, KpiTileState, KpiTileTone } from "./kpi-tile.js";
2
+ export { KpiTile, type KpiTileProps, type KpiTileState, type KpiTileTone };
@@ -0,0 +1 @@
1
+ export { KpiTile } from "./kpi-tile.js";