@slipstream-ui/core 0.9.0 → 0.10.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 (255) hide show
  1. package/dist/index.d.mts +19 -0
  2. package/dist/index.d.ts +19 -0
  3. package/dist/index.js +96 -46
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +96 -46
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/manifests/accordion.manifest.json +1 -1
  8. package/dist/manifests/alert.manifest.json +1 -1
  9. package/dist/manifests/announcement-bar.manifest.json +1 -1
  10. package/dist/manifests/app-shell.manifest.json +1 -1
  11. package/dist/manifests/applied-filters.manifest.json +1 -1
  12. package/dist/manifests/article-card.manifest.json +1 -1
  13. package/dist/manifests/auth-layout.manifest.json +1 -1
  14. package/dist/manifests/autocomplete.manifest.json +1 -1
  15. package/dist/manifests/avatar.manifest.json +1 -1
  16. package/dist/manifests/badge.manifest.json +1 -1
  17. package/dist/manifests/block.manifest.json +1 -1
  18. package/dist/manifests/bottom-nav.manifest.json +1 -1
  19. package/dist/manifests/breadcrumb.manifest.json +1 -1
  20. package/dist/manifests/button-group.manifest.json +1 -1
  21. package/dist/manifests/button.manifest.json +1 -1
  22. package/dist/manifests/calendar.manifest.json +1 -1
  23. package/dist/manifests/card.manifest.json +1 -1
  24. package/dist/manifests/checkbox.manifest.json +1 -1
  25. package/dist/manifests/comparison-table.manifest.json +1 -1
  26. package/dist/manifests/confirm-dialog.manifest.json +1 -1
  27. package/dist/manifests/contact-strip.manifest.json +1 -1
  28. package/dist/manifests/container.manifest.json +1 -1
  29. package/dist/manifests/cta-section.manifest.json +1 -1
  30. package/dist/manifests/data-table.manifest.json +1 -1
  31. package/dist/manifests/date-picker-popover.manifest.json +1 -1
  32. package/dist/manifests/date-picker.manifest.json +1 -1
  33. package/dist/manifests/date-range-picker.manifest.json +1 -1
  34. package/dist/manifests/deal-card.manifest.json +1 -1
  35. package/dist/manifests/dialog.manifest.json +1 -1
  36. package/dist/manifests/document-card.manifest.json +1 -1
  37. package/dist/manifests/drawer.manifest.json +1 -1
  38. package/dist/manifests/empty-state.manifest.json +1 -1
  39. package/dist/manifests/entity-card.manifest.json +1 -1
  40. package/dist/manifests/feature-grid.manifest.json +1 -1
  41. package/dist/manifests/feature-row.manifest.json +1 -1
  42. package/dist/manifests/fieldset.manifest.json +1 -1
  43. package/dist/manifests/file-upload.manifest.json +1 -1
  44. package/dist/manifests/filter-bar.manifest.json +1 -1
  45. package/dist/manifests/filter-chips.manifest.json +13 -1
  46. package/dist/manifests/filter-panel.manifest.json +1 -1
  47. package/dist/manifests/flex.manifest.json +1 -1
  48. package/dist/manifests/form-field.manifest.json +1 -1
  49. package/dist/manifests/form-layout.manifest.json +1 -1
  50. package/dist/manifests/form.manifest.json +1 -1
  51. package/dist/manifests/grid.manifest.json +1 -1
  52. package/dist/manifests/heading.manifest.json +1 -1
  53. package/dist/manifests/hero.manifest.json +1 -1
  54. package/dist/manifests/image.manifest.json +1 -1
  55. package/dist/manifests/input-group.manifest.json +1 -1
  56. package/dist/manifests/input.manifest.json +1 -1
  57. package/dist/manifests/label.manifest.json +1 -1
  58. package/dist/manifests/link-tabs.manifest.json +1 -1
  59. package/dist/manifests/link.manifest.json +1 -1
  60. package/dist/manifests/list.manifest.json +1 -1
  61. package/dist/manifests/load-more.manifest.json +1 -1
  62. package/dist/manifests/logo-cloud.manifest.json +1 -1
  63. package/dist/manifests/menu.manifest.json +1 -1
  64. package/dist/manifests/metric-card.manifest.json +1 -1
  65. package/dist/manifests/multi-select.manifest.json +1 -1
  66. package/dist/manifests/newsletter.manifest.json +1 -1
  67. package/dist/manifests/page-header.manifest.json +1 -1
  68. package/dist/manifests/pagination.manifest.json +1 -1
  69. package/dist/manifests/password-input.manifest.json +1 -1
  70. package/dist/manifests/popover.manifest.json +1 -1
  71. package/dist/manifests/process-steps.manifest.json +1 -1
  72. package/dist/manifests/progress.manifest.json +1 -1
  73. package/dist/manifests/prose.manifest.json +1 -1
  74. package/dist/manifests/radio.manifest.json +1 -1
  75. package/dist/manifests/range-slider.manifest.json +1 -1
  76. package/dist/manifests/search.manifest.json +1 -1
  77. package/dist/manifests/section-heading.manifest.json +1 -1
  78. package/dist/manifests/section.manifest.json +1 -1
  79. package/dist/manifests/segmented-control.manifest.json +1 -1
  80. package/dist/manifests/select-menu.manifest.json +1 -1
  81. package/dist/manifests/select.manifest.json +8 -1
  82. package/dist/manifests/separator.manifest.json +1 -1
  83. package/dist/manifests/site-footer.manifest.json +1 -1
  84. package/dist/manifests/site-header.manifest.json +1 -1
  85. package/dist/manifests/skeleton.manifest.json +1 -1
  86. package/dist/manifests/spinner.manifest.json +1 -1
  87. package/dist/manifests/stat-band.manifest.json +1 -1
  88. package/dist/manifests/stepper.manifest.json +1 -1
  89. package/dist/manifests/switch.manifest.json +1 -1
  90. package/dist/manifests/table-card.manifest.json +1 -1
  91. package/dist/manifests/table-of-contents.manifest.json +1 -1
  92. package/dist/manifests/table.manifest.json +1 -1
  93. package/dist/manifests/tabs.manifest.json +1 -1
  94. package/dist/manifests/testimonial.manifest.json +1 -1
  95. package/dist/manifests/text.manifest.json +1 -1
  96. package/dist/manifests/textarea.manifest.json +1 -1
  97. package/dist/manifests/theme-toggle.manifest.json +1 -1
  98. package/dist/manifests/time-picker.manifest.json +1 -1
  99. package/dist/manifests/timeline.manifest.json +1 -1
  100. package/dist/manifests/toast.manifest.json +1 -1
  101. package/dist/manifests/tombstone-card.manifest.json +1 -1
  102. package/dist/manifests/tooltip.manifest.json +12 -1
  103. package/dist/src/components/accordion/Accordion.js +26 -19
  104. package/dist/src/components/accordion/Accordion.js.map +1 -1
  105. package/dist/src/components/accordion/Accordion.mjs +26 -19
  106. package/dist/src/components/accordion/Accordion.mjs.map +1 -1
  107. package/dist/src/components/checkbox/Checkbox.js +1 -1
  108. package/dist/src/components/checkbox/Checkbox.js.map +1 -1
  109. package/dist/src/components/checkbox/Checkbox.mjs +1 -1
  110. package/dist/src/components/checkbox/Checkbox.mjs.map +1 -1
  111. package/dist/src/components/drawer/Drawer.js +2 -1
  112. package/dist/src/components/drawer/Drawer.js.map +1 -1
  113. package/dist/src/components/drawer/Drawer.mjs +2 -1
  114. package/dist/src/components/drawer/Drawer.mjs.map +1 -1
  115. package/dist/src/components/filter-chips/FilterChips.d.ts +4 -0
  116. package/dist/src/components/filter-chips/FilterChips.js +35 -4
  117. package/dist/src/components/filter-chips/FilterChips.js.map +1 -1
  118. package/dist/src/components/filter-chips/FilterChips.mjs +35 -4
  119. package/dist/src/components/filter-chips/FilterChips.mjs.map +1 -1
  120. package/dist/src/components/radio/Radio.js +1 -1
  121. package/dist/src/components/radio/Radio.js.map +1 -1
  122. package/dist/src/components/radio/Radio.mjs +1 -1
  123. package/dist/src/components/radio/Radio.mjs.map +1 -1
  124. package/dist/src/components/range-slider/RangeSlider.js +3 -3
  125. package/dist/src/components/range-slider/RangeSlider.js.map +1 -1
  126. package/dist/src/components/range-slider/RangeSlider.mjs +3 -3
  127. package/dist/src/components/range-slider/RangeSlider.mjs.map +1 -1
  128. package/dist/src/components/select/Select.d.ts +10 -0
  129. package/dist/src/components/select/Select.js +2 -2
  130. package/dist/src/components/select/Select.js.map +1 -1
  131. package/dist/src/components/select/Select.mjs +2 -2
  132. package/dist/src/components/select/Select.mjs.map +1 -1
  133. package/dist/src/components/timeline/Timeline.js +17 -13
  134. package/dist/src/components/timeline/Timeline.js.map +1 -1
  135. package/dist/src/components/timeline/Timeline.mjs +17 -13
  136. package/dist/src/components/timeline/Timeline.mjs.map +1 -1
  137. package/dist/src/components/tooltip/Tooltip.d.ts +5 -0
  138. package/dist/src/components/tooltip/Tooltip.js +9 -2
  139. package/dist/src/components/tooltip/Tooltip.js.map +1 -1
  140. package/dist/src/components/tooltip/Tooltip.mjs +9 -2
  141. package/dist/src/components/tooltip/Tooltip.mjs.map +1 -1
  142. package/dist/styles-full.css +1 -1
  143. package/dist/styles.css +1 -1
  144. package/package.json +1 -1
  145. package/src/components/accordion/Accordion.test.tsx +14 -3
  146. package/src/components/accordion/Accordion.tsx +34 -21
  147. package/src/components/checkbox/Checkbox.tsx +1 -1
  148. package/src/components/drawer/Drawer.test.tsx +12 -0
  149. package/src/components/drawer/Drawer.tsx +8 -1
  150. package/src/components/filter-chips/FilterChips.test.tsx +11 -0
  151. package/src/components/filter-chips/FilterChips.tsx +40 -4
  152. package/src/components/radio/Radio.tsx +1 -1
  153. package/src/components/range-slider/RangeSlider.tsx +3 -3
  154. package/src/components/select/Select.test.tsx +14 -0
  155. package/src/components/select/Select.tsx +7 -2
  156. package/src/components/timeline/Timeline.test.tsx +11 -0
  157. package/src/components/timeline/Timeline.tsx +13 -2
  158. package/src/components/tooltip/Tooltip.test.tsx +15 -0
  159. package/src/components/tooltip/Tooltip.tsx +19 -2
  160. package/src/manifests/accordion.manifest.json +1 -1
  161. package/src/manifests/alert.manifest.json +1 -1
  162. package/src/manifests/announcement-bar.manifest.json +1 -1
  163. package/src/manifests/app-shell.manifest.json +1 -1
  164. package/src/manifests/applied-filters.manifest.json +1 -1
  165. package/src/manifests/article-card.manifest.json +1 -1
  166. package/src/manifests/auth-layout.manifest.json +1 -1
  167. package/src/manifests/autocomplete.manifest.json +1 -1
  168. package/src/manifests/avatar.manifest.json +1 -1
  169. package/src/manifests/badge.manifest.json +1 -1
  170. package/src/manifests/block.manifest.json +1 -1
  171. package/src/manifests/bottom-nav.manifest.json +1 -1
  172. package/src/manifests/breadcrumb.manifest.json +1 -1
  173. package/src/manifests/button-group.manifest.json +1 -1
  174. package/src/manifests/button.manifest.json +1 -1
  175. package/src/manifests/calendar.manifest.json +1 -1
  176. package/src/manifests/card.manifest.json +1 -1
  177. package/src/manifests/checkbox.manifest.json +1 -1
  178. package/src/manifests/comparison-table.manifest.json +1 -1
  179. package/src/manifests/confirm-dialog.manifest.json +1 -1
  180. package/src/manifests/contact-strip.manifest.json +1 -1
  181. package/src/manifests/container.manifest.json +1 -1
  182. package/src/manifests/cta-section.manifest.json +1 -1
  183. package/src/manifests/data-table.manifest.json +1 -1
  184. package/src/manifests/date-picker-popover.manifest.json +1 -1
  185. package/src/manifests/date-picker.manifest.json +1 -1
  186. package/src/manifests/date-range-picker.manifest.json +1 -1
  187. package/src/manifests/deal-card.manifest.json +1 -1
  188. package/src/manifests/dialog.manifest.json +1 -1
  189. package/src/manifests/document-card.manifest.json +1 -1
  190. package/src/manifests/drawer.manifest.json +1 -1
  191. package/src/manifests/empty-state.manifest.json +1 -1
  192. package/src/manifests/entity-card.manifest.json +1 -1
  193. package/src/manifests/feature-grid.manifest.json +1 -1
  194. package/src/manifests/feature-row.manifest.json +1 -1
  195. package/src/manifests/fieldset.manifest.json +1 -1
  196. package/src/manifests/file-upload.manifest.json +1 -1
  197. package/src/manifests/filter-bar.manifest.json +1 -1
  198. package/src/manifests/filter-chips.manifest.json +13 -1
  199. package/src/manifests/filter-panel.manifest.json +1 -1
  200. package/src/manifests/flex.manifest.json +1 -1
  201. package/src/manifests/form-field.manifest.json +1 -1
  202. package/src/manifests/form-layout.manifest.json +1 -1
  203. package/src/manifests/form.manifest.json +1 -1
  204. package/src/manifests/grid.manifest.json +1 -1
  205. package/src/manifests/heading.manifest.json +1 -1
  206. package/src/manifests/hero.manifest.json +1 -1
  207. package/src/manifests/image.manifest.json +1 -1
  208. package/src/manifests/input-group.manifest.json +1 -1
  209. package/src/manifests/input.manifest.json +1 -1
  210. package/src/manifests/label.manifest.json +1 -1
  211. package/src/manifests/link-tabs.manifest.json +1 -1
  212. package/src/manifests/link.manifest.json +1 -1
  213. package/src/manifests/list.manifest.json +1 -1
  214. package/src/manifests/load-more.manifest.json +1 -1
  215. package/src/manifests/logo-cloud.manifest.json +1 -1
  216. package/src/manifests/menu.manifest.json +1 -1
  217. package/src/manifests/metric-card.manifest.json +1 -1
  218. package/src/manifests/multi-select.manifest.json +1 -1
  219. package/src/manifests/newsletter.manifest.json +1 -1
  220. package/src/manifests/page-header.manifest.json +1 -1
  221. package/src/manifests/pagination.manifest.json +1 -1
  222. package/src/manifests/password-input.manifest.json +1 -1
  223. package/src/manifests/popover.manifest.json +1 -1
  224. package/src/manifests/process-steps.manifest.json +1 -1
  225. package/src/manifests/progress.manifest.json +1 -1
  226. package/src/manifests/prose.manifest.json +1 -1
  227. package/src/manifests/radio.manifest.json +1 -1
  228. package/src/manifests/range-slider.manifest.json +1 -1
  229. package/src/manifests/search.manifest.json +1 -1
  230. package/src/manifests/section-heading.manifest.json +1 -1
  231. package/src/manifests/section.manifest.json +1 -1
  232. package/src/manifests/segmented-control.manifest.json +1 -1
  233. package/src/manifests/select-menu.manifest.json +1 -1
  234. package/src/manifests/select.manifest.json +8 -1
  235. package/src/manifests/separator.manifest.json +1 -1
  236. package/src/manifests/site-footer.manifest.json +1 -1
  237. package/src/manifests/site-header.manifest.json +1 -1
  238. package/src/manifests/skeleton.manifest.json +1 -1
  239. package/src/manifests/spinner.manifest.json +1 -1
  240. package/src/manifests/stat-band.manifest.json +1 -1
  241. package/src/manifests/stepper.manifest.json +1 -1
  242. package/src/manifests/switch.manifest.json +1 -1
  243. package/src/manifests/table-card.manifest.json +1 -1
  244. package/src/manifests/table-of-contents.manifest.json +1 -1
  245. package/src/manifests/table.manifest.json +1 -1
  246. package/src/manifests/tabs.manifest.json +1 -1
  247. package/src/manifests/testimonial.manifest.json +1 -1
  248. package/src/manifests/text.manifest.json +1 -1
  249. package/src/manifests/textarea.manifest.json +1 -1
  250. package/src/manifests/theme-toggle.manifest.json +1 -1
  251. package/src/manifests/time-picker.manifest.json +1 -1
  252. package/src/manifests/timeline.manifest.json +1 -1
  253. package/src/manifests/toast.manifest.json +1 -1
  254. package/src/manifests/tombstone-card.manifest.json +1 -1
  255. package/src/manifests/tooltip.manifest.json +12 -1
package/dist/index.d.mts CHANGED
@@ -591,6 +591,11 @@ type SelectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'value' |
591
591
  /** Optgroups with a heading per section. Takes precedence over `options` and `children`. */
592
592
  groups?: SelectOptionGroup[];
593
593
  label?: string;
594
+ /**
595
+ * Keep the label for assistive tech but hide it visually, so the control
596
+ * lines up with sibling inputs in a filter bar or toolbar.
597
+ */
598
+ labelHidden?: boolean;
594
599
  /** Renders a disabled empty option — the native "choose one" affordance. */
595
600
  placeholder?: string;
596
601
  /** Native multi-select: value/onChange switch to string[]. */
@@ -615,6 +620,11 @@ declare const Select: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttri
615
620
  /** Optgroups with a heading per section. Takes precedence over `options` and `children`. */
616
621
  groups?: SelectOptionGroup[];
617
622
  label?: string;
623
+ /**
624
+ * Keep the label for assistive tech but hide it visually, so the control
625
+ * lines up with sibling inputs in a filter bar or toolbar.
626
+ */
627
+ labelHidden?: boolean;
618
628
  /** Renders a disabled empty option — the native "choose one" affordance. */
619
629
  placeholder?: string;
620
630
  /** Native multi-select: value/onChange switch to string[]. */
@@ -1412,6 +1422,11 @@ type TooltipProps = {
1412
1422
  side?: 'top' | 'bottom' | 'left' | 'right';
1413
1423
  /** Delay before showing on hover, in milliseconds. */
1414
1424
  delay?: number;
1425
+ /**
1426
+ * Bubble palette. `default` uses the popover surface; `inverse` flips the
1427
+ * surface (dark bubble in light mode, light bubble in dark mode).
1428
+ */
1429
+ variant?: 'default' | 'inverse';
1415
1430
  className?: string;
1416
1431
  /** A single focusable element; receives aria-describedby when open. */
1417
1432
  children: React.ReactElement;
@@ -3810,6 +3825,8 @@ type FilterChip = {
3810
3825
  type FilterChipsProps = React.HTMLAttributes<HTMLDivElement> & {
3811
3826
  /** Active filters to render. */
3812
3827
  filters: FilterChip[];
3828
+ /** Chip scale. Default 'md'. */
3829
+ size?: 'sm' | 'md' | 'lg';
3813
3830
  /** Shows a clear-all action when provided. */
3814
3831
  onClearAll?: () => void;
3815
3832
  /** Label for the clear-all action. Default "Clear all". */
@@ -3826,6 +3843,8 @@ type FilterChipsProps = React.HTMLAttributes<HTMLDivElement> & {
3826
3843
  declare const FilterChips: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
3827
3844
  /** Active filters to render. */
3828
3845
  filters: FilterChip[];
3846
+ /** Chip scale. Default 'md'. */
3847
+ size?: "sm" | "md" | "lg";
3829
3848
  /** Shows a clear-all action when provided. */
3830
3849
  onClearAll?: () => void;
3831
3850
  /** Label for the clear-all action. Default "Clear all". */
package/dist/index.d.ts CHANGED
@@ -591,6 +591,11 @@ type SelectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'value' |
591
591
  /** Optgroups with a heading per section. Takes precedence over `options` and `children`. */
592
592
  groups?: SelectOptionGroup[];
593
593
  label?: string;
594
+ /**
595
+ * Keep the label for assistive tech but hide it visually, so the control
596
+ * lines up with sibling inputs in a filter bar or toolbar.
597
+ */
598
+ labelHidden?: boolean;
594
599
  /** Renders a disabled empty option — the native "choose one" affordance. */
595
600
  placeholder?: string;
596
601
  /** Native multi-select: value/onChange switch to string[]. */
@@ -615,6 +620,11 @@ declare const Select: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttri
615
620
  /** Optgroups with a heading per section. Takes precedence over `options` and `children`. */
616
621
  groups?: SelectOptionGroup[];
617
622
  label?: string;
623
+ /**
624
+ * Keep the label for assistive tech but hide it visually, so the control
625
+ * lines up with sibling inputs in a filter bar or toolbar.
626
+ */
627
+ labelHidden?: boolean;
618
628
  /** Renders a disabled empty option — the native "choose one" affordance. */
619
629
  placeholder?: string;
620
630
  /** Native multi-select: value/onChange switch to string[]. */
@@ -1412,6 +1422,11 @@ type TooltipProps = {
1412
1422
  side?: 'top' | 'bottom' | 'left' | 'right';
1413
1423
  /** Delay before showing on hover, in milliseconds. */
1414
1424
  delay?: number;
1425
+ /**
1426
+ * Bubble palette. `default` uses the popover surface; `inverse` flips the
1427
+ * surface (dark bubble in light mode, light bubble in dark mode).
1428
+ */
1429
+ variant?: 'default' | 'inverse';
1415
1430
  className?: string;
1416
1431
  /** A single focusable element; receives aria-describedby when open. */
1417
1432
  children: React.ReactElement;
@@ -3810,6 +3825,8 @@ type FilterChip = {
3810
3825
  type FilterChipsProps = React.HTMLAttributes<HTMLDivElement> & {
3811
3826
  /** Active filters to render. */
3812
3827
  filters: FilterChip[];
3828
+ /** Chip scale. Default 'md'. */
3829
+ size?: 'sm' | 'md' | 'lg';
3813
3830
  /** Shows a clear-all action when provided. */
3814
3831
  onClearAll?: () => void;
3815
3832
  /** Label for the clear-all action. Default "Clear all". */
@@ -3826,6 +3843,8 @@ type FilterChipsProps = React.HTMLAttributes<HTMLDivElement> & {
3826
3843
  declare const FilterChips: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
3827
3844
  /** Active filters to render. */
3828
3845
  filters: FilterChip[];
3846
+ /** Chip scale. Default 'md'. */
3847
+ size?: "sm" | "md" | "lg";
3829
3848
  /** Shows a clear-all action when provided. */
3830
3849
  onClearAll?: () => void;
3831
3850
  /** Label for the clear-all action. Default "Clear all". */
package/dist/index.js CHANGED
@@ -468,11 +468,12 @@ function Drawer({
468
468
  "duration-200 motion-reduce:animate-none",
469
469
  exiting ? `animate-out ${slideOut[side]}` : `animate-in ${slideIn[side]}`
470
470
  ) : void 0;
471
+ const backdropMotion = animate ? cn("motion-reduce:animate-none", exiting ? "animate-out fade-out-0" : "animate-in fade-in-0") : void 0;
471
472
  return (0, import_react_dom.createPortal)(
472
473
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
473
474
  "div",
474
475
  {
475
- className: "fixed inset-0 z-50",
476
+ className: cn("fixed inset-0 z-50 bg-background/80", backdropMotion),
476
477
  onMouseDown: (event) => {
477
478
  if (closeOnBackdrop && event.target === event.currentTarget) requestClose();
478
479
  },
@@ -863,13 +864,13 @@ Textarea.displayName = "Textarea";
863
864
  // src/components/select/Select.tsx
864
865
  var React9 = __toESM(require("react"));
865
866
  var import_jsx_runtime7 = require("react/jsx-runtime");
866
- var Select = React9.forwardRef(function Select2({ options, groups, label, placeholder, multiple = false, value, defaultValue, onChange, onValueChange, children, id, className, ...props }, ref) {
867
+ var Select = React9.forwardRef(function Select2({ options, groups, label, labelHidden = false, placeholder, multiple = false, value, defaultValue, onChange, onValueChange, children, id, className, ...props }, ref) {
867
868
  const generatedId = React9.useId();
868
869
  const selectId = id ?? generatedId;
869
870
  const labelId = `${selectId}-label`;
870
871
  const renderOption = (option) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("option", { value: option.value, disabled: option.disabled, children: option.label }, option.value);
871
872
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex w-full flex-col gap-1.5", children: [
872
- label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { id: labelId, htmlFor: selectId, className: "text-sm font-medium", children: label }),
873
+ label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("label", { id: labelId, htmlFor: selectId, className: labelHidden ? "sr-only" : "text-sm font-medium", children: label }),
873
874
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
874
875
  "select",
875
876
  {
@@ -2271,7 +2272,7 @@ var Checkbox = React21.forwardRef(
2271
2272
  onChange?.(event);
2272
2273
  },
2273
2274
  className: cn(
2274
- "peer h-4 w-4 shrink-0 rounded-sm border border-primary",
2275
+ "peer h-4 w-4 shrink-0 rounded-sm border border-primary accent-primary",
2275
2276
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
2276
2277
  "disabled:cursor-not-allowed disabled:opacity-50",
2277
2278
  "checked:bg-primary checked:text-primary-foreground",
@@ -2356,7 +2357,7 @@ var Radio = React23.forwardRef(
2356
2357
  onChange?.(event);
2357
2358
  },
2358
2359
  className: cn(
2359
- "h-4 w-4 shrink-0 rounded-full border border-primary",
2360
+ "h-4 w-4 shrink-0 rounded-full border border-primary accent-primary",
2360
2361
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
2361
2362
  "disabled:cursor-not-allowed disabled:opacity-50",
2362
2363
  "checked:bg-primary checked:text-primary-foreground",
@@ -2516,8 +2517,12 @@ var React27 = __toESM(require("react"));
2516
2517
  var import_react_dom6 = require("react-dom");
2517
2518
  var import_jsx_runtime26 = require("react/jsx-runtime");
2518
2519
  var GAP = 8;
2520
+ var VARIANTS = {
2521
+ default: "border-border bg-popover text-popover-foreground",
2522
+ inverse: "border-inverse-border bg-inverse text-inverse-foreground"
2523
+ };
2519
2524
  var Tooltip = React27.forwardRef(
2520
- ({ content, side = "top", delay = 300, className, children }, ref) => {
2525
+ ({ content, side = "top", delay = 300, variant = "default", className, children }, ref) => {
2521
2526
  const [open, setOpen] = React27.useState(false);
2522
2527
  const [pos, setPos] = React27.useState(null);
2523
2528
  const anchorRef = React27.useRef(null);
@@ -2583,7 +2588,10 @@ var Tooltip = React27.forwardRef(
2583
2588
  id,
2584
2589
  role: "tooltip",
2585
2590
  style: { position: "fixed", top: pos.top, left: pos.left, transform: pos.transform, zIndex: 60 },
2586
- className: "pointer-events-none w-max max-w-xs rounded-md border border-border bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md",
2591
+ className: cn(
2592
+ "pointer-events-none w-max max-w-xs rounded-md border px-3 py-1.5 text-xs shadow-md",
2593
+ VARIANTS[variant]
2594
+ ),
2587
2595
  children: content
2588
2596
  }
2589
2597
  ),
@@ -4216,25 +4224,32 @@ var AccordionContent = React44.forwardRef(
4216
4224
  const { id } = React44.useContext(AccordionItemContext);
4217
4225
  const { openItems } = React44.useContext(AccordionContext);
4218
4226
  const open = openItems.has(id);
4227
+ const [mounted, setMounted] = React44.useState(open);
4219
4228
  const [expanded, setExpanded] = React44.useState(open);
4220
4229
  React44.useEffect(() => {
4221
- if (!open) {
4222
- setExpanded(false);
4223
- return;
4224
- }
4225
4230
  const reduce = typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
4231
+ if (open) {
4232
+ setMounted(true);
4233
+ if (reduce) {
4234
+ setExpanded(true);
4235
+ return;
4236
+ }
4237
+ let second = 0;
4238
+ const first = requestAnimationFrame(() => {
4239
+ second = requestAnimationFrame(() => setExpanded(true));
4240
+ });
4241
+ return () => {
4242
+ cancelAnimationFrame(first);
4243
+ cancelAnimationFrame(second);
4244
+ };
4245
+ }
4246
+ setExpanded(false);
4226
4247
  if (reduce) {
4227
- setExpanded(true);
4248
+ setMounted(false);
4228
4249
  return;
4229
4250
  }
4230
- let second = 0;
4231
- const first = requestAnimationFrame(() => {
4232
- second = requestAnimationFrame(() => setExpanded(true));
4233
- });
4234
- return () => {
4235
- cancelAnimationFrame(first);
4236
- cancelAnimationFrame(second);
4237
- };
4251
+ const timer = setTimeout(() => setMounted(false), 320);
4252
+ return () => clearTimeout(timer);
4238
4253
  }, [open]);
4239
4254
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4240
4255
  "div",
@@ -4243,15 +4258,15 @@ var AccordionContent = React44.forwardRef(
4243
4258
  id: `${id}-panel`,
4244
4259
  role: "region",
4245
4260
  "aria-labelledby": `${id}-trigger`,
4246
- hidden: !open,
4261
+ "aria-hidden": open ? void 0 : true,
4262
+ hidden: !mounted,
4247
4263
  className: cn(
4248
- // No display utility while closed: author styles would beat the
4264
+ // No display utility while unmounted: author styles would beat the
4249
4265
  // UA [hidden] rule and keep the collapsed panel visible.
4250
- open && cn(
4251
- "grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none",
4252
- expanded ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
4266
+ mounted && cn(
4267
+ "grid transition-[grid-template-rows,opacity] duration-300 ease-out motion-reduce:transition-none",
4268
+ expanded ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] pointer-events-none opacity-0"
4253
4269
  ),
4254
- !open && "grid-rows-[0fr]",
4255
4270
  className
4256
4271
  ),
4257
4272
  ...props,
@@ -6008,19 +6023,23 @@ var React66 = __toESM(require("react"));
6008
6023
  var import_jsx_runtime66 = require("react/jsx-runtime");
6009
6024
  var Timeline = React66.forwardRef(function Timeline2({ items, className, ...props }, ref) {
6010
6025
  return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("ol", { ref, className: cn("relative flex flex-col gap-6", className), ...props, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("li", { className: "relative flex gap-4", children: [
6011
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col items-center", children: [
6012
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6013
- "span",
6014
- {
6015
- "aria-hidden": "true",
6016
- className: cn(
6017
- "mt-1 flex h-3 w-3 shrink-0 items-center justify-center rounded-full border-2",
6018
- item.muted ? "border-border bg-background" : "border-primary bg-primary"
6019
- )
6020
- }
6021
- ),
6022
- index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { "aria-hidden": "true", className: "mt-1 w-px flex-1 bg-border" })
6023
- ] }),
6026
+ index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6027
+ "span",
6028
+ {
6029
+ "aria-hidden": "true",
6030
+ className: "absolute left-[5.5px] top-4 -bottom-7 w-px bg-border"
6031
+ }
6032
+ ),
6033
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "relative z-10 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6034
+ "span",
6035
+ {
6036
+ "aria-hidden": "true",
6037
+ className: cn(
6038
+ "mt-1 flex h-3 w-3 shrink-0 items-center justify-center rounded-full border-2",
6039
+ item.muted ? "border-border bg-background" : "border-primary bg-primary"
6040
+ )
6041
+ }
6042
+ ) }),
6024
6043
  /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "min-w-0 pb-1", children: [
6025
6044
  item.period && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: item.period }),
6026
6045
  /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: cn("text-sm font-semibold", item.muted && "text-muted-foreground"), children: item.title }),
@@ -7414,9 +7433,9 @@ var import_jsx_runtime91 = require("react/jsx-runtime");
7414
7433
  var rangeInputClass = cn(
7415
7434
  "pointer-events-none absolute inset-x-0 top-1/2 h-6 w-full -translate-y-1/2 appearance-none bg-transparent",
7416
7435
  "[&::-webkit-slider-runnable-track]:h-1 [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-transparent",
7417
- "[&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:mt-[-6px] [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:cursor-grab [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-primary [&::-webkit-slider-thumb]:bg-background [&::-webkit-slider-thumb]:shadow",
7436
+ "[&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:mt-[-6px] [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:cursor-grab [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-background [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:shadow-md",
7418
7437
  "[&::-moz-range-track]:h-1 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:bg-transparent",
7419
- "[&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:cursor-grab [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-primary [&::-moz-range-thumb]:bg-background [&::-moz-range-thumb]:shadow",
7438
+ "[&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:cursor-grab [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-background [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:shadow-md",
7420
7439
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
7421
7440
  "disabled:cursor-not-allowed disabled:opacity-50"
7422
7441
  );
@@ -7456,7 +7475,7 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
7456
7475
  /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { children: formatValue(high) })
7457
7476
  ] }),
7458
7477
  /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "relative h-6 w-full", children: [
7459
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-muted" }),
7478
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "absolute inset-x-0 top-1/2 h-1 -translate-y-1/2 rounded-full bg-border" }),
7460
7479
  /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
7461
7480
  "div",
7462
7481
  {
@@ -7501,8 +7520,29 @@ var RangeSlider = React91.forwardRef(function RangeSlider2({
7501
7520
  // src/components/filter-chips/FilterChips.tsx
7502
7521
  var React92 = __toESM(require("react"));
7503
7522
  var import_jsx_runtime92 = require("react/jsx-runtime");
7523
+ var CHIP_SIZES = {
7524
+ sm: {
7525
+ chip: "gap-1 py-0.5 pl-2.5 pr-0.5 text-xs",
7526
+ remove: "p-0.5",
7527
+ icon: "h-3 w-3",
7528
+ clear: "text-xs"
7529
+ },
7530
+ md: {
7531
+ chip: "gap-1.5 py-1 pl-3 pr-1 text-sm",
7532
+ remove: "p-1",
7533
+ icon: "h-3.5 w-3.5",
7534
+ clear: "text-sm"
7535
+ },
7536
+ lg: {
7537
+ chip: "gap-2 py-1.5 pl-3.5 pr-1.5 text-base",
7538
+ remove: "p-1.5",
7539
+ icon: "h-4 w-4",
7540
+ clear: "text-base"
7541
+ }
7542
+ };
7504
7543
  var FilterChips = React92.forwardRef(function FilterChips2({
7505
7544
  filters,
7545
+ size = "md",
7506
7546
  onClearAll,
7507
7547
  clearLabel = "Clear all",
7508
7548
  emptyLabel,
@@ -7513,6 +7553,7 @@ var FilterChips = React92.forwardRef(function FilterChips2({
7513
7553
  if (filters.length === 0) {
7514
7554
  return emptyLabel ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props, children: emptyLabel }) : null;
7515
7555
  }
7556
+ const scale = CHIP_SIZES[size];
7516
7557
  return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
7517
7558
  "div",
7518
7559
  {
@@ -7525,7 +7566,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
7525
7566
  filters.map((filter) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
7526
7567
  "span",
7527
7568
  {
7528
- className: "inline-flex max-w-full items-center gap-1.5 rounded-full border border-border bg-muted/60 py-1 pl-3 pr-1 text-sm",
7569
+ className: cn(
7570
+ "inline-flex max-w-full items-center rounded-full border border-border bg-muted/60",
7571
+ scale.chip
7572
+ ),
7529
7573
  children: [
7530
7574
  /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("span", { className: "truncate", children: [
7531
7575
  /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("span", { className: "text-muted-foreground", children: [
@@ -7541,8 +7585,11 @@ var FilterChips = React92.forwardRef(function FilterChips2({
7541
7585
  type: "button",
7542
7586
  onClick: filter.onRemove,
7543
7587
  "aria-label": `Remove ${filter.label}${filter.value ? `: ${filter.value}` : ""}`,
7544
- className: "rounded-full p-1 text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
7545
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
7588
+ className: cn(
7589
+ "rounded-full text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
7590
+ scale.remove
7591
+ ),
7592
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 20 20", className: scale.icon, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", { d: "m5 5 10 10M15 5 5 15" }) })
7546
7593
  }
7547
7594
  )
7548
7595
  ]
@@ -7554,7 +7601,10 @@ var FilterChips = React92.forwardRef(function FilterChips2({
7554
7601
  {
7555
7602
  type: "button",
7556
7603
  onClick: onClearAll,
7557
- className: "rounded-sm px-1 text-sm font-medium text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
7604
+ className: cn(
7605
+ "rounded-sm px-1 font-medium text-primary underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
7606
+ scale.clear
7607
+ ),
7558
7608
  children: clearLabel
7559
7609
  }
7560
7610
  )