@acronis-platform/ui-react 2.0.0 → 4.0.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.
Files changed (243) hide show
  1. package/dist/components/ui/accordion-container/accordion-container.js +144 -0
  2. package/dist/components/ui/accordion-container/accordion-container.js.map +1 -0
  3. package/dist/components/ui/app-shell-chat/app-shell-chat.js.map +1 -1
  4. package/dist/components/ui/area-chart/area-chart.js +141 -139
  5. package/dist/components/ui/area-chart/area-chart.js.map +1 -1
  6. package/dist/components/ui/avatar/avatar.js +33 -22
  7. package/dist/components/ui/avatar/avatar.js.map +1 -1
  8. package/dist/components/ui/bar-chart/bar-chart.js +295 -293
  9. package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
  10. package/dist/components/ui/card/card.js +150 -74
  11. package/dist/components/ui/card/card.js.map +1 -1
  12. package/dist/components/ui/card-section/card-section.js +111 -0
  13. package/dist/components/ui/card-section/card-section.js.map +1 -0
  14. package/dist/components/ui/category-bar/category-bar.js +109 -93
  15. package/dist/components/ui/category-bar/category-bar.js.map +1 -1
  16. package/dist/components/ui/chart/chart-palette.js +113 -0
  17. package/dist/components/ui/chart/chart-palette.js.map +1 -0
  18. package/dist/components/ui/chart/chart.js +176 -129
  19. package/dist/components/ui/chart/chart.js.map +1 -1
  20. package/dist/components/ui/chart-state/chart-state-illustrations.js +310 -0
  21. package/dist/components/ui/chart-state/chart-state-illustrations.js.map +1 -0
  22. package/dist/components/ui/chart-state/chart-state.js +48 -34
  23. package/dist/components/ui/chart-state/chart-state.js.map +1 -1
  24. package/dist/components/ui/chart-widget/chart-widget.js +87 -0
  25. package/dist/components/ui/chart-widget/chart-widget.js.map +1 -0
  26. package/dist/components/ui/composed-chart/composed-chart.js +117 -115
  27. package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
  28. package/dist/components/ui/confidence-cone/confidence-cone.js +166 -158
  29. package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
  30. package/dist/components/ui/data-table/data-table.js +4 -2
  31. package/dist/components/ui/data-table/data-table.js.map +1 -1
  32. package/dist/components/ui/empty-overlay/empty-overlay.js +49 -0
  33. package/dist/components/ui/empty-overlay/empty-overlay.js.map +1 -0
  34. package/dist/components/ui/funnel-chart/funnel-chart.js +162 -161
  35. package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
  36. package/dist/components/ui/histogram/histogram.js +94 -92
  37. package/dist/components/ui/histogram/histogram.js.map +1 -1
  38. package/dist/components/ui/input/input.js.map +1 -1
  39. package/dist/components/ui/label/label.js +2 -9
  40. package/dist/components/ui/label/label.js.map +1 -1
  41. package/dist/components/ui/line-chart/line-chart.js +143 -141
  42. package/dist/components/ui/line-chart/line-chart.js.map +1 -1
  43. package/dist/components/ui/metric/metric.js +74 -185
  44. package/dist/components/ui/metric/metric.js.map +1 -1
  45. package/dist/components/ui/page-content/page-content.js.map +1 -1
  46. package/dist/components/ui/pie-chart/pie-chart.js +201 -195
  47. package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
  48. package/dist/components/ui/radar-chart/radar-chart.js +133 -131
  49. package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
  50. package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +297 -265
  51. package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
  52. package/dist/components/ui/sankey-chart/sankey-chart.js +123 -101
  53. package/dist/components/ui/sankey-chart/sankey-chart.js.map +1 -1
  54. package/dist/components/ui/scatter-chart/scatter-chart.js +76 -74
  55. package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
  56. package/dist/components/ui/section/section.js +157 -31
  57. package/dist/components/ui/section/section.js.map +1 -1
  58. package/dist/components/ui/stepper/stepper.js +24 -24
  59. package/dist/components/ui/stepper/stepper.js.map +1 -1
  60. package/dist/components/ui/stepper-item/stepper-item.js +43 -24
  61. package/dist/components/ui/stepper-item/stepper-item.js.map +1 -1
  62. package/dist/components/ui/table/table.js +27 -27
  63. package/dist/components/ui/table/table.js.map +1 -1
  64. package/dist/components/ui/treemap/treemap.js +133 -124
  65. package/dist/components/ui/treemap/treemap.js.map +1 -1
  66. package/dist/components/ui/trend-indicator/trend-indicator.js +34 -69
  67. package/dist/components/ui/trend-indicator/trend-indicator.js.map +1 -1
  68. package/dist/components/ui/wizard/wizard.js +59 -0
  69. package/dist/components/ui/wizard/wizard.js.map +1 -0
  70. package/dist/hooks/use-wizard.js +75 -0
  71. package/dist/hooks/use-wizard.js.map +1 -0
  72. package/dist/index.js +540 -525
  73. package/dist/index.js.map +1 -1
  74. package/dist/llms/accordion-container.md +181 -0
  75. package/dist/llms/accordion.md +124 -0
  76. package/dist/llms/alert.md +225 -0
  77. package/dist/llms/app-shell-chat.md +415 -0
  78. package/dist/llms/area-chart.md +355 -0
  79. package/dist/llms/avatar.md +208 -0
  80. package/dist/llms/bar-chart.md +406 -0
  81. package/dist/llms/breadcrumb.md +326 -0
  82. package/dist/llms/button-group.md +298 -0
  83. package/dist/llms/button-icon-input.md +142 -0
  84. package/dist/llms/button-icon-menu.md +209 -0
  85. package/dist/llms/button-icon.md +128 -0
  86. package/dist/llms/button-menu.md +172 -0
  87. package/dist/llms/button.md +185 -0
  88. package/dist/llms/calendar-panel.md +733 -0
  89. package/dist/llms/calendar.md +188 -0
  90. package/dist/llms/card-filter.md +214 -0
  91. package/dist/llms/card-section.md +293 -0
  92. package/dist/llms/card.md +447 -0
  93. package/dist/llms/carousel-dialog.md +156 -0
  94. package/dist/llms/category-bar.md +193 -0
  95. package/dist/llms/chart-state.md +190 -0
  96. package/dist/llms/chart-widget.md +209 -0
  97. package/dist/llms/chart.md +182 -0
  98. package/dist/llms/checkbox.md +257 -0
  99. package/dist/llms/chip.md +195 -0
  100. package/dist/llms/combobox.md +164 -0
  101. package/dist/llms/composed-chart.md +508 -0
  102. package/dist/llms/confidence-cone.md +277 -0
  103. package/dist/llms/data-table.md +474 -0
  104. package/dist/llms/date-range-picker.md +272 -0
  105. package/dist/llms/description-list.md +131 -0
  106. package/dist/llms/dialog-footer-carousel.md +147 -0
  107. package/dist/llms/dialog-footer-default.md +142 -0
  108. package/dist/llms/dialog-root.md +246 -0
  109. package/dist/llms/dialog-welcome.md +223 -0
  110. package/dist/llms/dialog.md +403 -0
  111. package/dist/llms/dropdown-menu.md +193 -0
  112. package/dist/llms/empty-overlay.md +146 -0
  113. package/dist/llms/empty.md +156 -0
  114. package/dist/llms/field.md +185 -0
  115. package/dist/llms/filter-cards.md +157 -0
  116. package/dist/llms/filter-chips.md +323 -0
  117. package/dist/llms/filter-search.md +512 -0
  118. package/dist/llms/form.md +154 -0
  119. package/dist/llms/funnel-chart.md +333 -0
  120. package/dist/llms/grid.md +80 -0
  121. package/dist/llms/histogram.md +190 -0
  122. package/dist/llms/input-date-picker.md +203 -0
  123. package/dist/llms/input-otp.md +173 -0
  124. package/dist/llms/input-password.md +197 -0
  125. package/dist/llms/input-search.md +170 -0
  126. package/dist/llms/input-select.md +278 -0
  127. package/dist/llms/input-text-area.md +271 -0
  128. package/dist/llms/input-text.md +192 -0
  129. package/dist/llms/line-chart.md +369 -0
  130. package/dist/llms/link.md +209 -0
  131. package/dist/llms/loading.md +130 -0
  132. package/dist/llms/meter.md +177 -0
  133. package/dist/llms/metric.md +204 -0
  134. package/dist/llms/number-field.md +122 -0
  135. package/dist/llms/page-content.md +69 -0
  136. package/dist/llms/page-header.md +182 -0
  137. package/dist/llms/pagination.md +133 -0
  138. package/dist/llms/pie-chart.md +307 -0
  139. package/dist/llms/popover.md +252 -0
  140. package/dist/llms/progress-circle.md +126 -0
  141. package/dist/llms/progress.md +111 -0
  142. package/dist/llms/radar-chart.md +316 -0
  143. package/dist/llms/radial-bar-chart.md +319 -0
  144. package/dist/llms/radio.md +255 -0
  145. package/dist/llms/resizable.md +195 -0
  146. package/dist/llms/sankey-chart.md +208 -0
  147. package/dist/llms/scatter-chart.md +239 -0
  148. package/dist/llms/scroll-area.md +183 -0
  149. package/dist/llms/section.md +401 -0
  150. package/dist/llms/select.md +210 -0
  151. package/dist/llms/separator.md +87 -0
  152. package/dist/llms/sheet.md +202 -0
  153. package/dist/llms/sidebar-primary.md +360 -0
  154. package/dist/llms/sidebar-secondary.md +417 -0
  155. package/dist/llms/skeleton.md +81 -0
  156. package/dist/llms/slider.md +97 -0
  157. package/dist/llms/spinner.md +100 -0
  158. package/dist/llms/stack.md +80 -0
  159. package/dist/llms/stepper-item.md +309 -0
  160. package/dist/llms/stepper.md +251 -0
  161. package/dist/llms/switch.md +140 -0
  162. package/dist/llms/table.md +436 -0
  163. package/dist/llms/tabs.md +197 -0
  164. package/dist/llms/tag.md +139 -0
  165. package/dist/llms/timeline.md +361 -0
  166. package/dist/llms/timer.md +259 -0
  167. package/dist/llms/toast.md +241 -0
  168. package/dist/llms/toggle-group.md +121 -0
  169. package/dist/llms/toolbar.md +453 -0
  170. package/dist/llms/tooltip.md +164 -0
  171. package/dist/llms/treemap.md +254 -0
  172. package/dist/llms/trend-indicator.md +132 -0
  173. package/dist/llms/widget-placeholder.md +169 -0
  174. package/dist/llms/wizard.md +412 -0
  175. package/dist/llms.txt +142 -0
  176. package/dist/react.js +540 -525
  177. package/dist/react.js.map +1 -1
  178. package/dist/src/components/ui/accordion-container/accordion-container.d.ts +44 -0
  179. package/dist/src/components/ui/accordion-container/index.d.ts +1 -0
  180. package/dist/src/components/ui/area-chart/area-chart.d.ts +9 -4
  181. package/dist/src/components/ui/avatar/avatar.d.ts +27 -8
  182. package/dist/src/components/ui/bar-chart/bar-chart.d.ts +9 -4
  183. package/dist/src/components/ui/button/button.d.ts +1 -1
  184. package/dist/src/components/ui/card/card.d.ts +69 -8
  185. package/dist/src/components/ui/card/index.d.ts +1 -1
  186. package/dist/src/components/ui/card-section/card-section.d.ts +50 -0
  187. package/dist/src/components/ui/card-section/index.d.ts +1 -0
  188. package/dist/src/components/ui/category-bar/category-bar.d.ts +10 -4
  189. package/dist/src/components/ui/chart/__stories__/palette-control.d.ts +48 -0
  190. package/dist/src/components/ui/chart/__tests__/chart-palette.test.d.ts +1 -0
  191. package/dist/src/components/ui/chart/chart-palette.d.ts +128 -0
  192. package/dist/src/components/ui/chart/chart.d.ts +66 -15
  193. package/dist/src/components/ui/chart/index.d.ts +4 -2
  194. package/dist/src/components/ui/chart-state/chart-state-illustrations.d.ts +6 -0
  195. package/dist/src/components/ui/chart-state/chart-state.d.ts +13 -2
  196. package/dist/src/components/ui/chart-state/index.d.ts +1 -0
  197. package/dist/src/components/ui/chart-widget/chart-widget.d.ts +64 -0
  198. package/dist/src/components/ui/chart-widget/index.d.ts +1 -0
  199. package/dist/src/components/ui/composed-chart/composed-chart.d.ts +12 -7
  200. package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +10 -5
  201. package/dist/src/components/ui/dialog/dialog.d.ts +1 -1
  202. package/dist/src/components/ui/empty-overlay/empty-overlay.d.ts +20 -0
  203. package/dist/src/components/ui/empty-overlay/index.d.ts +2 -0
  204. package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +11 -5
  205. package/dist/src/components/ui/grid/grid.d.ts +1 -1
  206. package/dist/src/components/ui/histogram/histogram.d.ts +10 -4
  207. package/dist/src/components/ui/label/index.d.ts +1 -1
  208. package/dist/src/components/ui/label/label.d.ts +1 -5
  209. package/dist/src/components/ui/line-chart/line-chart.d.ts +9 -4
  210. package/dist/src/components/ui/metric/metric.d.ts +13 -14
  211. package/dist/src/components/ui/pie-chart/pie-chart.d.ts +17 -8
  212. package/dist/src/components/ui/radar-chart/radar-chart.d.ts +10 -5
  213. package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +17 -6
  214. package/dist/src/components/ui/sankey-chart/sankey-chart.d.ts +10 -5
  215. package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +10 -5
  216. package/dist/src/components/ui/section/index.d.ts +1 -1
  217. package/dist/src/components/ui/section/section.d.ts +75 -6
  218. package/dist/src/components/ui/sheet/sheet.d.ts +1 -1
  219. package/dist/src/components/ui/stack/stack.d.ts +1 -1
  220. package/dist/src/components/ui/stepper-item/stepper-item.d.ts +6 -5
  221. package/dist/src/components/ui/tag/tag.d.ts +1 -1
  222. package/dist/src/components/ui/treemap/treemap.d.ts +11 -5
  223. package/dist/src/components/ui/trend-indicator/trend-indicator.d.ts +3 -7
  224. package/dist/src/components/ui/wizard/index.d.ts +1 -0
  225. package/dist/src/components/ui/wizard/wizard.d.ts +6 -0
  226. package/dist/src/hooks/index.d.ts +1 -0
  227. package/dist/src/hooks/use-wizard.d.ts +80 -0
  228. package/dist/src/index.d.ts +5 -3
  229. package/dist/ui-react.css +1 -1
  230. package/package.json +12 -6
  231. package/dist/components/ui/app-shell/app-shell.js +0 -75
  232. package/dist/components/ui/app-shell/app-shell.js.map +0 -1
  233. package/dist/components/ui/auth-layout/auth-layout.js +0 -56
  234. package/dist/components/ui/auth-layout/auth-layout.js.map +0 -1
  235. package/dist/components/ui/collapsible/collapsible.js +0 -22
  236. package/dist/components/ui/collapsible/collapsible.js.map +0 -1
  237. package/dist/src/components/ui/app-shell/app-shell.d.ts +0 -8
  238. package/dist/src/components/ui/app-shell/index.d.ts +0 -1
  239. package/dist/src/components/ui/auth-layout/auth-layout.d.ts +0 -6
  240. package/dist/src/components/ui/auth-layout/index.d.ts +0 -1
  241. package/dist/src/components/ui/collapsible/collapsible.d.ts +0 -5
  242. package/dist/src/components/ui/collapsible/index.d.ts +0 -1
  243. package/dist/src/components/ui/label/label.docs.d.ts +0 -10
@@ -1,7 +1,76 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { VariantProps } from 'class-variance-authority';
1
3
  import * as React from 'react';
2
- declare const Section: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
3
- declare const SectionHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
- declare const SectionTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
5
- declare const SectionDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
6
- declare const SectionContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
- export { Section, SectionHeader, SectionTitle, SectionDescription, SectionContent, };
4
+ declare const sectionVariants: (props?: ({
5
+ variant?: "table" | "column1" | "column2-70-30" | "grid3" | null | undefined;
6
+ hasBottomBorder?: boolean | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ type SectionVariant = NonNullable<VariantProps<typeof sectionVariants>['variant']>;
9
+ interface SectionContextValue {
10
+ variant: SectionVariant;
11
+ }
12
+ /**
13
+ * Reads the content layout of the nearest `Section` ancestor. Falls back to
14
+ * `column1` for a part rendered outside a `Section`.
15
+ */
16
+ declare const useSectionContext: () => SectionContextValue;
17
+ export interface SectionProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof sectionVariants> {
18
+ /**
19
+ * Replace the rendered `<section>` with another element or component (Base UI
20
+ * composition).
21
+ */
22
+ render?: useRender.RenderProp;
23
+ }
24
+ declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLElement>>;
25
+ export interface SectionHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
26
+ /** The section's title. Renders nothing when omitted. */
27
+ title?: string;
28
+ /** Helper text shown under the title; only rendered when `hasDescription`. */
29
+ description?: string;
30
+ /** Shows `description` below the title. */
31
+ hasDescription?: boolean;
32
+ /** Shows a toggle switch at the start of the header. */
33
+ isSwitchable?: boolean;
34
+ /** Controlled checked state of the header switch. */
35
+ switchChecked?: boolean;
36
+ /** Uncontrolled initial checked state of the header switch. */
37
+ defaultSwitchChecked?: boolean;
38
+ /** Fires when the header switch is toggled. */
39
+ onSwitchCheckedChange?: (checked: boolean) => void;
40
+ /** Disables the header switch. */
41
+ switchDisabled?: boolean;
42
+ /** Accessible label for the header switch. */
43
+ switchLabel?: string;
44
+ /** Extra content rendered inline next to the title (e.g. a tag or badge). */
45
+ extras?: React.ReactNode;
46
+ /** Actions rendered at the end of the header (e.g. a button). */
47
+ actions?: React.ReactNode;
48
+ /**
49
+ * Shows a disclosure trigger at the end of the header. Only has an effect
50
+ * when this header renders inside a collapsible `AccordionContainer` —
51
+ * see the collapsible composition example.
52
+ */
53
+ isCollapsible?: boolean;
54
+ /** Accessible label for the collapse trigger. */
55
+ collapseLabel?: string;
56
+ /**
57
+ * Replace the rendered `<div>` with another element or component (Base UI
58
+ * composition).
59
+ */
60
+ render?: useRender.RenderProp;
61
+ }
62
+ declare const SectionHeader: React.ForwardRefExoticComponent<SectionHeaderProps & React.RefAttributes<HTMLDivElement>>;
63
+ export interface SectionContentProps extends React.HTMLAttributes<HTMLDivElement> {
64
+ /**
65
+ * The narrow (~30%) second column of the `column2-70-30` layout. Ignored by
66
+ * every other variant, which has only one content area.
67
+ */
68
+ secondaryContent?: React.ReactNode;
69
+ /**
70
+ * Replace the rendered `<div>` with another element or component (Base UI
71
+ * composition).
72
+ */
73
+ render?: useRender.RenderProp;
74
+ }
75
+ declare const SectionContent: React.ForwardRefExoticComponent<SectionContentProps & React.RefAttributes<HTMLDivElement>>;
76
+ export { Section, SectionHeader, SectionContent, sectionVariants, useSectionContext, type SectionVariant, };
@@ -2,7 +2,7 @@ import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
4
  declare const sheetVariants: (props?: ({
5
- side?: "top" | "bottom" | "left" | "right" | null | undefined;
5
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  declare const Sheet: typeof DialogPrimitive.Root;
8
8
  declare const SheetTrigger: DialogPrimitive.Trigger;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  declare const stackVariants: (props?: ({
4
4
  direction?: "horizontal" | "vertical" | null | undefined;
5
5
  gap?: "none" | "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
6
- align?: "center" | "end" | "start" | "stretch" | null | undefined;
6
+ align?: "center" | "end" | "stretch" | "start" | null | undefined;
7
7
  justify?: "center" | "end" | "start" | "between" | null | undefined;
8
8
  wrap?: boolean | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -2,8 +2,8 @@ import { useRender } from '@base-ui/react/use-render';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
4
  declare const stepperItemVariants: (props?: ({
5
- variant?: "current" | "completed" | "future" | null | undefined;
6
- state?: "active" | "hover" | "idle" | null | undefined;
5
+ variant?: "completed" | "current" | "future" | null | undefined;
6
+ state?: "focus" | "active" | "hover" | "idle" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  /** Kept in lockstep with the `cva` axes above. */
9
9
  export type StepperItemVariant = NonNullable<VariantProps<typeof stepperItemVariants>['variant']>;
@@ -17,9 +17,10 @@ export interface StepperItemProps extends React.ComponentPropsWithoutRef<'div'>
17
17
  variant?: StepperItemVariant;
18
18
  /**
19
19
  * Interaction state. Only produces a different look when `variant` is
20
- * `completed` (`idle` has no background, `hover` and `active` paint one).
21
- * Ignored for `current`, which always renders in its highlighted look, and for
22
- * `future`, which always renders disabled and non-interactive.
20
+ * `completed` — each of `idle`, `hover`, `active`, and `focus` is wired to its
21
+ * own token, so a brand can style any of them independently. Ignored for
22
+ * `current`, which always renders in its highlighted look, and for `future`,
23
+ * which always renders disabled and non-interactive.
23
24
  */
24
25
  state?: StepperItemState;
25
26
  /**
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const tagVariants: (props?: ({
4
- variant?: "info" | "success" | "warning" | "critical" | "danger" | "ai" | "neutral" | null | undefined;
4
+ variant?: "info" | "success" | "warning" | "critical" | "danger" | "neutral" | "ai" | null | undefined;
5
5
  size?: "default" | "sm" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface TagProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof tagVariants> {
@@ -1,4 +1,4 @@
1
- import { ChartTooltip, ChartConfig, ChartAnimationProps, TickFormatter } from '../chart';
1
+ import { ChartTooltip, ChartConfig, ChartPalette, ChartAnimationProps, TickFormatter } from '../chart';
2
2
  import * as React from 'react';
3
3
  /**
4
4
  * Where a cell's label block sits inside its rectangle. Named logically, not
@@ -33,6 +33,11 @@ interface TreemapCellProps {
33
33
  }
34
34
  export declare function TreemapCell({ x, y, width, height, name, primaryLabel, secondaryLabel, showLabels, labelAlign, }: TreemapCellProps): import("react/jsx-runtime").JSX.Element;
35
35
  export interface TreemapProps extends Omit<React.ComponentProps<'div'>, 'children'>, ChartAnimationProps {
36
+ /**
37
+ * The dataviz palette this chart's series are painted from. Series that
38
+ * state no `color` of their own take a stop of it. See `ChartPalette`.
39
+ */
40
+ palette?: ChartPalette;
36
41
  /**
37
42
  * Row-per-leaf data. Each object holds the leaf's `nameKey` label + its
38
43
  * `dataKey` numeric size.
@@ -45,10 +50,11 @@ export interface TreemapProps extends Omit<React.ComponentProps<'div'>, 'childre
45
50
  */
46
51
  data: ReadonlyArray<Record<string, string | number>>;
47
52
  /**
48
- * Per-leaf map of `label` / `color`, keyed by the leaf's `nameKey` value
49
- * (imported from the shared `Chart` primitives). Turned into `--color-<name>`
50
- * custom properties. Colors are caller-supplied — reference an existing
51
- * semantic `--ui-*` token; there is no chart palette tier yet.
53
+ * Per-leaf map of `label` / `icon` / `tone`, keyed by the leaf's `nameKey`
54
+ * value (imported from the shared `Chart` primitives). Turned into
55
+ * `--color-<name>` custom properties. Series take their colour from the
56
+ * container's `palette`; each entry maps a key to a `label` and an optional
57
+ * `tone`.
52
58
  */
53
59
  config: ChartConfig;
54
60
  /** Numeric field that sizes each leaf's rectangle. */
@@ -1,20 +1,16 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const trendIndicatorVariants: (props?: ({
4
- sentiment?: "positive" | "neutral" | "negative" | null | undefined;
5
- size?: "small" | "medium" | null | undefined;
6
- variant?: "inline" | "badge" | null | undefined;
4
+ sentiment?: "neutral" | "positive" | "negative" | null | undefined;
7
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
6
  export interface TrendIndicatorProps extends Omit<React.ComponentProps<'span'>, 'children'>, VariantProps<typeof trendIndicatorVariants> {
9
7
  /** What changed mathematically — selects the direction glyph. */
10
8
  direction: 'up' | 'down' | 'flat';
11
9
  /**
12
10
  * Already-formatted change to display — e.g. `"12%"`, `"3.5 h"`,
13
- * `"Improving"`, `"4.2 h → 2.8 h"`. The kit does not format or compute it.
11
+ * `"Improving"`. The kit does not format or compute it.
14
12
  */
15
13
  value?: React.ReactNode;
16
- /** Secondary comparison caption — e.g. `"vs previous quarter"`, `"YoY"`. */
17
- comparisonLabel?: React.ReactNode;
18
14
  /** Contextual hint shown on hover/focus (Base UI Tooltip). */
19
15
  tooltip?: React.ReactNode;
20
16
  /** Show the leading direction glyph. Defaults to `true` — color alone isn't enough. */
@@ -24,7 +20,7 @@ export interface TrendIndicatorProps extends Omit<React.ComponentProps<'span'>,
24
20
  * compared with the previous quarter"). Applied as the element's label via
25
21
  * `role="img"`, since the kit can't build a correct, localized sentence from
26
22
  * `direction` + `value` alone. Without it, assistive tech reads the visible
27
- * `value` / `comparisonLabel` text (the glyph is decorative).
23
+ * `value` text (the glyph is decorative).
28
24
  */
29
25
  ariaLabel?: string;
30
26
  }
@@ -0,0 +1 @@
1
+ export { Wizard, WizardHeader, WizardSubtitle, WizardBody } from './wizard';
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ declare const Wizard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const WizardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const WizardSubtitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
5
+ declare const WizardBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
6
+ export { Wizard, WizardHeader, WizardSubtitle, WizardBody };
@@ -1,3 +1,4 @@
1
1
  export { useSortState, type SortDirection, type SortState, type SortComparator, type UseSortStateOptions, type UseSortStateResult, } from './use-sort-state';
2
2
  export { useIntersectionObserver, type UseIntersectionObserverOptions, } from './use-intersection-observer';
3
3
  export { useTableUrlState, parseTableUrlState, serializeTableUrlState, DEFAULT_TABLE_URL_PARAM_KEYS, type TableUrlState, type TablePaginationState, type TableSortingState, type TableColumnFilterState, type TableUrlParamKeys, type TableUrlUpdater, type UseTableUrlStateOptions, type UseTableUrlStateResult, } from './use-table-url-state';
4
+ export { useWizard, type WizardStep, type WizardStepAvatarColor, type WizardStepVariant, type WizardStepState, type UseWizardOptions, type UseWizardResult, } from './use-wizard';
@@ -0,0 +1,80 @@
1
+ export interface WizardStep {
2
+ /** Stable identifier; `goToStep` and `initialStep` accept it as a string. */
3
+ id: string;
4
+ /** Step label, rendered by `StepperItem` and the `Stepper` summary. */
5
+ label: string;
6
+ }
7
+ export type WizardStepAvatarColor = 'blue' | 'green' | 'gray';
8
+ export type WizardStepVariant = 'completed' | 'current' | 'future';
9
+ /**
10
+ * A step enriched with everything a `StepperItem` needs. Intersects `TStep`, so
11
+ * any extra fields the consumer put on their own step objects survive.
12
+ */
13
+ export type WizardStepState<TStep extends WizardStep = WizardStep> = TStep & {
14
+ /** Zero-based position in `steps`. */
15
+ index: number;
16
+ /** One-based position, for the avatar's displayed number. */
17
+ stepNumber: number;
18
+ /** `StepperItem`'s `variant`, derived from the position vs. `currentIndex`. */
19
+ variant: WizardStepVariant;
20
+ /** `Avatar`'s `color` for this step's variant. */
21
+ avatarColor: WizardStepAvatarColor;
22
+ /** Classes to merge onto this step's `Avatar`. */
23
+ avatarClassName: string;
24
+ };
25
+ export interface UseWizardOptions<TStep extends WizardStep = WizardStep> {
26
+ /** The flow's steps, in order. Must not be empty. */
27
+ steps: TStep[];
28
+ /**
29
+ * Where the flow starts — a zero-based index or a step `id`. A numeric
30
+ * index is truncated toward zero and clamped into range; `NaN` and an id
31
+ * that matches no step fall back to the first step. A seed, not a
32
+ * controlled input: later changes are ignored.
33
+ */
34
+ initialStep?: number | string;
35
+ }
36
+ export interface UseWizardResult<TStep extends WizardStep = WizardStep> {
37
+ /** `steps` with per-step `variant`/avatar presentation derived. */
38
+ steps: WizardStepState<TStep>[];
39
+ /**
40
+ * Zero-based index of the active step. Always a valid index into `steps`:
41
+ * if `steps` shrinks so that the stored index is past the end, the
42
+ * effective index clamps to `steps.length - 1`.
43
+ */
44
+ currentIndex: number;
45
+ /** One-based number of the active step, for `Stepper`'s `currentStep`. */
46
+ currentStepNumber: number;
47
+ /** Total number of steps, for `Stepper`'s `totalSteps`. */
48
+ stepCount: number;
49
+ /** The active step's label, for `Stepper`'s `current`. */
50
+ currentStepLabel: string;
51
+ /** The following step's label, or `undefined` on the last step. */
52
+ nextStepLabel: string | undefined;
53
+ isFirstStep: boolean;
54
+ isLastStep: boolean;
55
+ /** Advance one step; no-op on the last step (never wraps). */
56
+ goToNextStep: () => void;
57
+ /** Go back one step; no-op on the first step (never wraps). */
58
+ goToPreviousStep: () => void;
59
+ /**
60
+ * Jump to a zero-based index or a step `id`. A numeric index is truncated
61
+ * toward zero (`1.5` → `1`) and clamped into range; `NaN` is a no-op. An
62
+ * id that matches no step is a no-op; on duplicate ids the first wins.
63
+ */
64
+ goToStep: (target: number | string) => void;
65
+ }
66
+ /**
67
+ * Headless step state for a `Wizard`'s `Stepper` (the `Wizard` components
68
+ * themselves stay presentational and own no state). Returns the `Stepper`
69
+ * summary props plus a per-step `variant` + avatar presentation, and the
70
+ * navigation callbacks a consumer wires to its Back/Next buttons.
71
+ *
72
+ * Opt-in: a consumer that already owns its step state can keep driving
73
+ * `Stepper`/`StepperItem` by hand.
74
+ *
75
+ * `steps` may be a live, per-render value. The active index is stored as
76
+ * state but re-clamped against the *current* `steps.length` on every read,
77
+ * so a `steps` array that shrinks past the active index resolves to the last
78
+ * remaining step instead of reading past the end.
79
+ */
80
+ export declare function useWizard<TStep extends WizardStep = WizardStep>({ steps, initialStep, }: UseWizardOptions<TStep>): UseWizardResult<TStep>;
@@ -3,11 +3,10 @@ export * from './hooks';
3
3
  export * from './lib/breakpoints';
4
4
  export { PortalContainerProvider, usePortalContainer, type PortalContainerProviderProps, } from './lib/portal-container';
5
5
  export * from './components/ui/accordion';
6
+ export * from './components/ui/accordion-container';
6
7
  export * from './components/ui/alert';
7
- export * from './components/ui/app-shell';
8
8
  export * from './components/ui/app-shell-chat';
9
9
  export * from './components/ui/area-chart';
10
- export * from './components/ui/auth-layout';
11
10
  export * from './components/ui/avatar';
12
11
  export * from './components/ui/bar-chart';
13
12
  export * from './components/ui/breadcrumb';
@@ -18,12 +17,13 @@ export * from './components/ui/calendar';
18
17
  export * from './components/ui/calendar-panel';
19
18
  export * from './components/ui/card';
20
19
  export * from './components/ui/card-filter';
20
+ export * from './components/ui/card-section';
21
21
  export * from './components/ui/category-bar';
22
22
  export * from './components/ui/chart';
23
23
  export * from './components/ui/chart-state';
24
+ export * from './components/ui/chart-widget';
24
25
  export * from './components/ui/checkbox';
25
26
  export * from './components/ui/chip';
26
- export * from './components/ui/collapsible';
27
27
  export * from './components/ui/combobox';
28
28
  export * from './components/ui/composed-chart';
29
29
  export * from './components/ui/confidence-cone';
@@ -36,6 +36,7 @@ export * from './components/ui/dialog-footer-default';
36
36
  export * from './components/ui/dialog-welcome';
37
37
  export * from './components/ui/dropdown-menu';
38
38
  export * from './components/ui/empty';
39
+ export * from './components/ui/empty-overlay';
39
40
  export * from './components/ui/field';
40
41
  export * from './components/ui/fitted-actions';
41
42
  export * from './components/ui/filter-cards';
@@ -106,3 +107,4 @@ export { Tag as Badge, type TagProps as BadgeProps, } from './components/ui/tag'
106
107
  export * from './components/ui/treemap';
107
108
  export * from './components/ui/trend-indicator';
108
109
  export * from './components/ui/widget-placeholder';
110
+ export * from './components/ui/wizard';