jenosize-ui 0.2.2 → 0.3.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 (221) hide show
  1. package/README.md +183 -63
  2. package/THIRD-PARTY-NOTICES.md +15 -0
  3. package/dist/GradientPicker-CQm3GT7F.d.ts +144 -0
  4. package/dist/{PaymentInput-Dn5WVQVy.d.ts → PaymentInput-Cz5jFB3p.d.ts} +1 -1
  5. package/dist/{Select-Dt5ARIH8.d.ts → Select-CXOAMlk7.d.ts} +15 -1
  6. package/dist/{TagInput-BaBeve6L.d.ts → TagInput-CzIrONr-.d.ts} +1 -1
  7. package/dist/area-chart.d.ts +2 -2
  8. package/dist/area-chart.js +7 -6
  9. package/dist/at-least-one-BZ2dsck-.d.ts +18 -0
  10. package/dist/avatar.d.ts +1 -1
  11. package/dist/avatar.js +11 -10
  12. package/dist/badge.d.ts +1 -1
  13. package/dist/badge.js +6 -6
  14. package/dist/bar-chart.d.ts +2 -2
  15. package/dist/bar-chart.js +7 -6
  16. package/dist/breadcrumb.d.ts +1 -1
  17. package/dist/breadcrumb.js +4 -4
  18. package/dist/button.d.ts +1 -1
  19. package/dist/button.js +11 -10
  20. package/dist/calendar.d.ts +1 -1
  21. package/dist/calendar.js +15 -14
  22. package/dist/callout.d.ts +4 -2
  23. package/dist/callout.js +12 -11
  24. package/dist/card.d.ts +59 -3
  25. package/dist/card.js +3 -3
  26. package/dist/carousel.d.ts +169 -0
  27. package/dist/carousel.js +9 -0
  28. package/dist/catalog.json +11180 -0
  29. package/dist/checkbox.js +8 -7
  30. package/dist/{chunk-R4Z7BINC.js → chunk-26XQU3TC.js} +8 -8
  31. package/dist/{chunk-AIARANKE.js → chunk-3JQKVC2K.js} +4 -4
  32. package/dist/chunk-3P3QZPHV.js +109 -0
  33. package/dist/{chunk-GLKFFA7N.js → chunk-44AWXIQK.js} +5 -5
  34. package/dist/{chunk-FWRHBMWT.js → chunk-4Y32RIC7.js} +5 -19
  35. package/dist/{chunk-5XPMY2LF.js → chunk-5ECTNYKU.js} +5 -5
  36. package/dist/{chunk-ZD3MOLIB.js → chunk-5GBA6X6A.js} +4 -4
  37. package/dist/{chunk-LE44X5GS.js → chunk-5SGF47TZ.js} +9 -9
  38. package/dist/{chunk-POQTE7JI.js → chunk-5XSR757T.js} +7 -7
  39. package/dist/{chunk-3HOHLQVP.js → chunk-6FGLABYH.js} +3 -3
  40. package/dist/{chunk-MCQG4H6T.js → chunk-6T3QAO5K.js} +12 -4
  41. package/dist/{chunk-SKRR3ZMP.js → chunk-737A4YNC.js} +3 -3
  42. package/dist/{chunk-AFYXSZGW.js → chunk-7LSUUEAF.js} +7 -5
  43. package/dist/{chunk-7VLYQR4D.js → chunk-7OFGPDYJ.js} +3 -3
  44. package/dist/{chunk-54SIZR63.js → chunk-7UCKFULR.js} +7 -7
  45. package/dist/{chunk-LQURV7HQ.js → chunk-7ZA3QZRP.js} +4 -4
  46. package/dist/{chunk-X2VMIBK5.js → chunk-A4YPUS6C.js} +4 -4
  47. package/dist/{chunk-5ZEUTSCV.js → chunk-B4OVIE2X.js} +6 -6
  48. package/dist/{chunk-P6CON2R2.js → chunk-BH32X25C.js} +3 -3
  49. package/dist/{chunk-7QXOGAN6.js → chunk-BJHLW25G.js} +85 -538
  50. package/dist/{chunk-ULGCGKOE.js → chunk-BKBINQJZ.js} +4 -4
  51. package/dist/{chunk-CFFWYXDW.js → chunk-BXQFBFT7.js} +5 -5
  52. package/dist/{chunk-I6WMNXC7.js → chunk-CQGMOPLG.js} +6 -6
  53. package/dist/{chunk-FNQJJO63.js → chunk-CUONE6LA.js} +4 -4
  54. package/dist/{chunk-D6XO4JVM.js → chunk-CVCS5G3E.js} +42 -20
  55. package/dist/{chunk-33TOK7ES.js → chunk-DCKVNHV5.js} +5 -5
  56. package/dist/{chunk-ZR6HNKSN.js → chunk-DYRGHXT5.js} +3 -3
  57. package/dist/{chunk-T4ZFZTY6.js → chunk-EHML2DLR.js} +4 -4
  58. package/dist/{chunk-N3RVMBPX.js → chunk-EJKQGUUM.js} +4 -4
  59. package/dist/{chunk-E2YZ7IMT.js → chunk-ESDSTS5N.js} +6 -6
  60. package/dist/{chunk-LCG34A5T.js → chunk-EVINS473.js} +5 -3
  61. package/dist/chunk-EXRVOGJ5.js +325 -0
  62. package/dist/{chunk-YHBI52P2.js → chunk-GDW6NFYN.js} +3 -3
  63. package/dist/chunk-GOCO45FF.js +619 -0
  64. package/dist/{chunk-7ZM7SNCZ.js → chunk-GPHGPY6T.js} +3 -3
  65. package/dist/{chunk-CGZXQ7PA.js → chunk-HNNNJP3A.js} +3 -3
  66. package/dist/{chunk-ZZSNTCCL.js → chunk-IESEBPYA.js} +4 -4
  67. package/dist/{chunk-74AIU53R.js → chunk-JZ4HGFWK.js} +3 -3
  68. package/dist/chunk-KBQJIVUB.js +33 -0
  69. package/dist/{chunk-QNIKRB62.js → chunk-KCM4KEZ2.js} +4 -4
  70. package/dist/{chunk-3QXLIZIX.js → chunk-KNGJ3CSB.js} +3 -3
  71. package/dist/{chunk-5YWH2ANQ.js → chunk-KNW3IUWX.js} +11 -10
  72. package/dist/{chunk-KZP6B6B3.js → chunk-KTWTYK5U.js} +16 -5
  73. package/dist/{chunk-LYXPJERB.js → chunk-L7Z6XGBU.js} +5 -5
  74. package/dist/{chunk-TX57TNJS.js → chunk-LLUWBQK6.js} +9 -9
  75. package/dist/{chunk-NC63TYNW.js → chunk-MDKVYC6R.js} +7 -7
  76. package/dist/{chunk-22M75A3N.js → chunk-MS6DY4CE.js} +14 -11
  77. package/dist/{chunk-LLPWQDF7.js → chunk-MTOTPAYZ.js} +3 -3
  78. package/dist/{chunk-AZ7DKRBY.js → chunk-MVF7FA4D.js} +5 -5
  79. package/dist/{chunk-AIGYMTCU.js → chunk-MVUNB43J.js} +3 -3
  80. package/dist/{chunk-UGBNYSBN.js → chunk-O24HHIQG.js} +20 -34
  81. package/dist/{chunk-NKG4N6HA.js → chunk-O5EHNNPS.js} +4 -4
  82. package/dist/{chunk-5DP7W5HX.js → chunk-OIPFTJS6.js} +3 -3
  83. package/dist/{chunk-DD5KJVFV.js → chunk-OXNIEIOY.js} +19 -19
  84. package/dist/chunk-P2BGR77C.js +344 -0
  85. package/dist/{chunk-CGHYXWTT.js → chunk-PFAFTLN3.js} +4 -4
  86. package/dist/{chunk-4RBIWI2Q.js → chunk-Q2KR7PSX.js} +3 -3
  87. package/dist/{chunk-7GUPNTAH.js → chunk-QSOLK2I2.js} +7 -7
  88. package/dist/chunk-QTWRR7IS.js +1129 -0
  89. package/dist/{chunk-OLLD2BZN.js → chunk-QZHAL4BL.js} +3 -3
  90. package/dist/{chunk-OACWA4TC.js → chunk-R25NHHYT.js} +6 -6
  91. package/dist/{chunk-QDKETK7D.js → chunk-S55JKMG7.js} +5 -5
  92. package/dist/{chunk-HV2W6HUR.js → chunk-S5LLA36K.js} +10 -10
  93. package/dist/{chunk-QDYE5LVT.js → chunk-SF3HCW4G.js} +45 -4
  94. package/dist/{chunk-KHGW72BM.js → chunk-SGMVB7HD.js} +3 -3
  95. package/dist/chunk-SKPKL47Y.js +5671 -0
  96. package/dist/{chunk-6MMBQVRO.js → chunk-TCTTZHUS.js} +9 -9
  97. package/dist/chunk-U5X3MLM5.js +67 -0
  98. package/dist/chunk-UHSGD4CD.js +364 -0
  99. package/dist/chunk-UJ4WEQHR.js +525 -0
  100. package/dist/{chunk-IEAWNA3V.js → chunk-VDFWWWLL.js} +3 -3
  101. package/dist/{chunk-5KSD4WKN.js → chunk-VIKV25VP.js} +5 -5
  102. package/dist/chunk-WJB5GWAZ.js +20 -0
  103. package/dist/{chunk-HHYEAFCL.js → chunk-XAQQ4LYL.js} +11 -11
  104. package/dist/{chunk-KJ5JUS53.js → chunk-XCFFM2C7.js} +9 -9
  105. package/dist/chunk-XKTD3X6Z.js +183 -0
  106. package/dist/{chunk-GQRSABRN.js → chunk-XWXXKEG6.js} +4 -4
  107. package/dist/chunk-YGFTNICV.js +110 -0
  108. package/dist/{chunk-T5574MXM.js → chunk-YGJL7QS7.js} +8 -8
  109. package/dist/{chunk-SB3DG572.js → chunk-YKPTUANT.js} +6 -6
  110. package/dist/{chunk-YPNL2NBD.js → chunk-YQAYAJ2T.js} +33 -11
  111. package/dist/chunk-YXYZW6WU.js +998 -0
  112. package/dist/{chunk-IQNVSQRK.js → chunk-Z6NSOC6T.js} +5 -5
  113. package/dist/{chunk-BBKE4W3B.js → chunk-ZAWGG4H2.js} +7 -7
  114. package/dist/{chunk-MFFA5MXY.js → chunk-ZF362B2X.js} +5 -5
  115. package/dist/{chunk-RJTVCA62.js → chunk-ZJIY642R.js} +3 -3
  116. package/dist/color-input.d.ts +93 -0
  117. package/dist/color-input.js +35 -0
  118. package/dist/color-picker.d.ts +268 -0
  119. package/dist/color-picker.js +28 -0
  120. package/dist/color-value-DYzChVOW.d.ts +129 -0
  121. package/dist/combobox.d.ts +1 -1
  122. package/dist/combobox.js +13 -12
  123. package/dist/date-calendar.d.ts +49 -0
  124. package/dist/date-calendar.js +12 -0
  125. package/dist/date-input.d.ts +1 -1
  126. package/dist/date-input.js +11 -10
  127. package/dist/date-picker.d.ts +15 -131
  128. package/dist/date-picker.js +25 -21
  129. package/dist/date-types-DrDdF6WJ.d.ts +100 -0
  130. package/dist/dialog.d.ts +1 -1
  131. package/dist/dialog.js +9 -9
  132. package/dist/drawer.d.ts +1 -1
  133. package/dist/drawer.js +8 -8
  134. package/dist/dropdown-menu.d.ts +1 -1
  135. package/dist/dropdown-menu.js +4 -4
  136. package/dist/dropzone.d.ts +3 -3
  137. package/dist/dropzone.js +17 -16
  138. package/dist/form.d.ts +15 -5
  139. package/dist/form.js +74 -35
  140. package/dist/header-navigation.d.ts +2 -2
  141. package/dist/header-navigation.js +19 -18
  142. package/dist/helper.d.ts +1 -1
  143. package/dist/index.d.ts +25 -11
  144. package/dist/index.js +90 -77
  145. package/dist/indicator.js +4 -4
  146. package/dist/inline-banner.d.ts +68 -0
  147. package/dist/inline-banner.js +20 -0
  148. package/dist/input.d.ts +1 -1
  149. package/dist/input.js +10 -9
  150. package/dist/kanban-board.d.ts +2 -2
  151. package/dist/kanban-board.js +14 -13
  152. package/dist/labels-C992bt7G.d.ts +1160 -0
  153. package/dist/line-chart.d.ts +2 -2
  154. package/dist/line-chart.js +7 -6
  155. package/dist/mcp.js +231 -0
  156. package/dist/number-input.d.ts +1 -1
  157. package/dist/number-input.js +10 -9
  158. package/dist/pagination.d.ts +1 -1
  159. package/dist/pagination.js +14 -13
  160. package/dist/{card-D56VxyAe.d.ts → panel-CUGm_Mxy.d.ts} +9 -57
  161. package/dist/payment-input.d.ts +3 -3
  162. package/dist/payment-input.js +10 -9
  163. package/dist/picker-draft-BPV3MUPY.d.ts +9 -0
  164. package/dist/pie-chart.d.ts +2 -2
  165. package/dist/pie-chart.js +7 -6
  166. package/dist/popover.d.ts +65 -4
  167. package/dist/popover.js +8 -8
  168. package/dist/progress-steps.js +4 -4
  169. package/dist/progress.js +3 -3
  170. package/dist/provider.d.ts +1 -1
  171. package/dist/provider.js +3 -3
  172. package/dist/qr-code.d.ts +227 -0
  173. package/dist/qr-code.js +19 -0
  174. package/dist/radar-chart.d.ts +2 -2
  175. package/dist/radar-chart.js +7 -6
  176. package/dist/radial-chart.d.ts +2 -2
  177. package/dist/radial-chart.js +7 -6
  178. package/dist/radio.js +8 -7
  179. package/dist/rich-text-editor.d.ts +624 -0
  180. package/dist/rich-text-editor.js +51 -0
  181. package/dist/rich-text-highlight.d.ts +11 -0
  182. package/dist/rich-text-highlight.js +65 -0
  183. package/dist/rich-text-sanitize.d.ts +17 -0
  184. package/dist/rich-text-sanitize.js +176 -0
  185. package/dist/select.d.ts +2 -2
  186. package/dist/select.js +16 -15
  187. package/dist/separator.js +2 -2
  188. package/dist/shared-CGf2D8ZX.d.ts +20 -0
  189. package/dist/sidebar-navigation.d.ts +73 -32
  190. package/dist/sidebar-navigation.js +14 -13
  191. package/dist/sidebar-state.d.ts +76 -0
  192. package/dist/sidebar-state.js +27 -0
  193. package/dist/skeleton.js +2 -2
  194. package/dist/slider.d.ts +321 -0
  195. package/dist/slider.js +13 -0
  196. package/dist/styles.css +1 -1
  197. package/dist/switch.d.ts +1 -1
  198. package/dist/switch.js +2 -2
  199. package/dist/table.d.ts +3 -19
  200. package/dist/table.js +33 -32
  201. package/dist/tabs.js +2 -2
  202. package/dist/tag-input.d.ts +3 -3
  203. package/dist/tag-input.js +13 -12
  204. package/dist/tag.d.ts +1 -1
  205. package/dist/tag.js +4 -4
  206. package/dist/textarea.js +8 -7
  207. package/dist/theme.css +965 -0
  208. package/dist/theme.js +12 -11
  209. package/dist/toast.d.ts +1 -1
  210. package/dist/toast.js +12 -11
  211. package/dist/tooltip.js +4 -3
  212. package/dist/tree.d.ts +1 -1
  213. package/dist/tree.js +6 -6
  214. package/dist/{types-DR9rAEy1.d.ts → types-DYFl0CEB.d.ts} +1 -1
  215. package/dist/{use-uploads-KaPqDklo.d.ts → use-uploads-2E7n0PWT.d.ts} +1 -1
  216. package/dist/verification-code-input.js +10 -9
  217. package/package.json +92 -8
  218. package/dist/chunk-BLIZ3CL3.js +0 -49
  219. package/dist/labels-DPrh0se9.d.ts +0 -627
  220. package/dist/panel-El4oI68p.d.ts +0 -9
  221. package/dist/shared-BYXJPnsN.d.ts +0 -11
@@ -1,7 +1,7 @@
1
- import { RULE_TONE, RULE_PAINT, RULE_TEXTURE } from './chunk-LCG34A5T.js';
2
- import { SOLID, SOLID_BOX, SOLID_GLOSS, BOXED_BOX, BOX_RING } from './chunk-MCQG4H6T.js';
1
+ import { RULE_TONE, RULE_PAINT, RULE_TEXTURE } from './chunk-EVINS473.js';
2
+ import { SOLID, SOLID_BOX, SOLID_GLOSS, BOXED_BOX, BOX_RING } from './chunk-6T3QAO5K.js';
3
3
  import { overflowClasses } from './chunk-DWKILXHE.js';
4
- import { CheckIcon, XIcon, MinusIcon } from './chunk-BLIZ3CL3.js';
4
+ import { CheckIcon, XIcon, MinusIcon } from './chunk-YGFTNICV.js';
5
5
  import { cn } from './chunk-ZSNJ6UA3.js';
6
6
  import * as React3 from 'react';
7
7
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -601,5 +601,5 @@ function useSteps(options) {
601
601
  }
602
602
 
603
603
  export { ProgressSteps, StepPanel, buildStepMap, firstEnabledStep, resolveStepStatus, useSteps };
604
- //# sourceMappingURL=chunk-IQNVSQRK.js.map
605
- //# sourceMappingURL=chunk-IQNVSQRK.js.map
604
+ //# sourceMappingURL=chunk-Z6NSOC6T.js.map
605
+ //# sourceMappingURL=chunk-Z6NSOC6T.js.map
@@ -1,10 +1,10 @@
1
1
  import { useControlScrollFade } from './chunk-7EUAMHMU.js';
2
- import { FieldShell } from './chunk-X2VMIBK5.js';
3
- import { useFieldValidity, FieldFrame } from './chunk-5KSD4WKN.js';
4
- import { PlusIcon, ChevronUpIcon, ChevronDownIcon, MinusIcon } from './chunk-BLIZ3CL3.js';
2
+ import { FieldShell } from './chunk-A4YPUS6C.js';
3
+ import { useFieldValidity, FieldFrame } from './chunk-VIKV25VP.js';
4
+ import { PlusIcon, ChevronUpIcon, ChevronDownIcon, MinusIcon } from './chunk-YGFTNICV.js';
5
5
  import { cn } from './chunk-ZSNJ6UA3.js';
6
- import { useLabels } from './chunk-RJTVCA62.js';
7
- import { warnPositiveNumber } from './chunk-QDYE5LVT.js';
6
+ import { useLabels } from './chunk-ZJIY642R.js';
7
+ import { warnPositiveNumber } from './chunk-SF3HCW4G.js';
8
8
  import { NumberField } from '@base-ui/react/number-field';
9
9
  import 'react';
10
10
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -137,5 +137,5 @@ function NumberInput(props) {
137
137
  }
138
138
 
139
139
  export { NumberInput };
140
- //# sourceMappingURL=chunk-BBKE4W3B.js.map
141
- //# sourceMappingURL=chunk-BBKE4W3B.js.map
140
+ //# sourceMappingURL=chunk-ZAWGG4H2.js.map
141
+ //# sourceMappingURL=chunk-ZAWGG4H2.js.map
@@ -1,7 +1,7 @@
1
- import { useControllableOpen, BACKDROP_TREATMENT } from './chunk-QNIKRB62.js';
2
- import { PanelChrome } from './chunk-CGZXQ7PA.js';
1
+ import { useControllableOpen, BACKDROP_TREATMENT } from './chunk-KCM4KEZ2.js';
2
+ import { PanelChrome } from './chunk-HNNNJP3A.js';
3
3
  import { EXPLICIT_CLOSE } from './chunk-S7NNXWIN.js';
4
- import { CloseButton } from './chunk-CGHYXWTT.js';
4
+ import { CloseButton } from './chunk-PFAFTLN3.js';
5
5
  import { DRAWER_BACKDROP_MOTION, DRAWER_POPUP_MOTION, DRAWER_SLIDE } from './chunk-O4GRKO3I.js';
6
6
  import { cn } from './chunk-ZSNJ6UA3.js';
7
7
  import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
@@ -128,5 +128,5 @@ function Drawer(props) {
128
128
  Drawer.displayName = "Drawer";
129
129
 
130
130
  export { Drawer };
131
- //# sourceMappingURL=chunk-MFFA5MXY.js.map
132
- //# sourceMappingURL=chunk-MFFA5MXY.js.map
131
+ //# sourceMappingURL=chunk-ZF362B2X.js.map
132
+ //# sourceMappingURL=chunk-ZF362B2X.js.map
@@ -1,4 +1,4 @@
1
- import { devWarn } from './chunk-QDYE5LVT.js';
1
+ import { devWarn } from './chunk-SF3HCW4G.js';
2
2
  import * as React from 'react';
3
3
 
4
4
  var LabelsContext = React.createContext(void 0);
@@ -38,5 +38,5 @@ function mergeLabels(outer, inner) {
38
38
  }
39
39
 
40
40
  export { LabelsContext, mergeLabels, useLabels, usePublishedLabels };
41
- //# sourceMappingURL=chunk-RJTVCA62.js.map
42
- //# sourceMappingURL=chunk-RJTVCA62.js.map
41
+ //# sourceMappingURL=chunk-ZJIY642R.js.map
42
+ //# sourceMappingURL=chunk-ZJIY642R.js.map
@@ -0,0 +1,93 @@
1
+ import * as React from 'react';
2
+ import { c as ColorPickerValue, a as ColorFormat, b as ColorKind } from './color-value-DYzChVOW.js';
3
+ export { C as COLOR_FORMATS, f as formatColor, p as parseColor, g as parseCss, t as toCss, i as toHex } from './color-value-DYzChVOW.js';
4
+ import { C as CommitMode } from './picker-draft-BPV3MUPY.js';
5
+ import { C as ControlSize } from './control-size-CaxQhkKh.js';
6
+ import { c as PopoverSide, P as PopoverAlign } from './shared-CGf2D8ZX.js';
7
+ import { a as ColorSwatch, d as GradientValue, c as GradientSwatch } from './GradientPicker-CQm3GT7F.js';
8
+ import { e as ColorPickerLabels } from './labels-C992bt7G.js';
9
+ import '@base-ui/react/popover';
10
+
11
+ interface ColorInputProps {
12
+ /** The committed value. A solid today; a gradient once `modes` includes one. */
13
+ value?: ColorPickerValue;
14
+ defaultValue?: ColorPickerValue;
15
+ /**
16
+ * Fires when the value COMMITS — live under `commit="instant"`, on Apply under `"confirm"`.
17
+ *
18
+ * **No pick `meta` here, unlike `<ColorPicker>`'s.** Under `"confirm"` the emission belongs to Apply
19
+ * rather than to the pick, so a "which swatch" report would arrive attached to a different gesture
20
+ * than the one that produced it; under `"instant"` it would arrive once per drag frame. A caller who
21
+ * needs the token a swatch came from uses `<ColorPicker>` directly, where the emission IS the pick.
22
+ */
23
+ onValueChange?: (value: ColorPickerValue) => void;
24
+ /**
25
+ * `"instant"` commits every drag frame. `"confirm"` stages a draft and commits only on Apply,
26
+ * rendering the Cancel/Apply footer; Esc and outside-press then behave as Cancel.
27
+ * @default "instant"
28
+ */
29
+ commit?: CommitMode;
30
+ /** Text shown in the trigger when there is no value. @default "Select color" */
31
+ placeholder?: string;
32
+ /** Side of the trigger the popover opens on. @default "bottom" */
33
+ side?: PopoverSide;
34
+ /** Alignment along that side. @default "start" */
35
+ align?: PopoverAlign;
36
+ formats?: readonly ColorFormat[];
37
+ alpha?: boolean;
38
+ modes?: readonly ColorKind[];
39
+ eyedropper?: boolean;
40
+ /** A CSS colour, or a `{ color, label }` whose `color` may be a `var()` — `token("brand-600")` for a house one. See `ColorPicker`. */
41
+ swatches?: readonly (string | ColorSwatch)[];
42
+ onAddSwatch?: (color: string) => void;
43
+ /** Saved GRADIENTS, on the Gradient tab — a whole value, or a `{ gradient, label }`. See `ColorPicker`. */
44
+ gradientSwatches?: readonly (GradientValue | GradientSwatch)[];
45
+ onAddGradientSwatch?: (gradient: GradientValue) => void;
46
+ /** Visible label (`Field.Label`), associated with the trigger via `aria-labelledby`. */
47
+ label?: string;
48
+ /** Help-circle tooltip after the label (title line). @see tooltipDescription */
49
+ tooltip?: string;
50
+ /** Optional secondary line under {@link tooltip} in the tooltip surface. */
51
+ tooltipDescription?: string;
52
+ /** Helper text under the field (`Field.Description`). Hidden while an `error` shows. */
53
+ hint?: React.ReactNode;
54
+ /** Marks the field required for form submission. @default false */
55
+ required?: boolean;
56
+ /** Suppress the visual required `*` while keeping `required` semantics. @default false */
57
+ hideRequiredIndicator?: boolean;
58
+ /** Error state: red edge + error ring and `aria-invalid`. @default false */
59
+ invalid?: boolean;
60
+ /** Optional error message (`Field.Error`). A non-empty `error` also implies `invalid`. */
61
+ error?: string;
62
+ /** Disables the trigger; the popover cannot open. @default false */
63
+ disabled?: boolean;
64
+ /** Whether the field column takes `w-full`. Bound the field with a width in `className` instead of
65
+ * reading this as a hug switch. @default true */
66
+ fullWidth?: boolean;
67
+ /** Start slot: a **node** renders as an icon; a **string** as a muted text affix. */
68
+ leading?: React.ReactNode;
69
+ /** End slot: a node renders as an icon; a string as a muted text affix. */
70
+ trailing?: React.ReactNode;
71
+ /** Bordered/interactive segment flush to the START edge. @see InputAddon */
72
+ leadingAddon?: React.ReactNode;
73
+ /** Bordered/interactive segment flush to the END edge. */
74
+ trailingAddon?: React.ReactNode;
75
+ /** Control density: `sm` (h-9) · `md` (h-10, default) · `lg` (h-11). @default "md" */
76
+ size?: ControlSize;
77
+ /** Name of the hidden input, for uncontrolled form submission. */
78
+ name?: string;
79
+ /** Id of the field group. */
80
+ id?: string;
81
+ labels?: ColorPickerLabels;
82
+ /** Layout/spacing only (margin, width, flex/grid placement), merged via `cn()`. */
83
+ className?: string;
84
+ }
85
+ /** The bar ladder every Field control shares. Spelled out rather than re-exported so the public type
86
+ * is this component's own, the way `InputSize` and `SelectSize` are. */
87
+ type ColorInputSize = ControlSize;
88
+ declare function ColorInput(props: ColorInputProps): React.JSX.Element;
89
+ declare namespace ColorInput {
90
+ var displayName: string;
91
+ }
92
+
93
+ export { ColorFormat, ColorInput, type ColorInputProps, type ColorInputSize, ColorKind, ColorPickerLabels, ColorPickerValue };
@@ -0,0 +1,35 @@
1
+ "use client";export { ColorInput } from './chunk-XKTD3X6Z.js';
2
+ import './chunk-KBQJIVUB.js';
3
+ import './chunk-WJB5GWAZ.js';
4
+ import './chunk-QTWRR7IS.js';
5
+ export { COLOR_FORMATS, formatColor, parseColor, parseCss, toCss, toHex } from './chunk-UHSGD4CD.js';
6
+ import './chunk-YQAYAJ2T.js';
7
+ import './chunk-KCM4KEZ2.js';
8
+ import './chunk-HNNNJP3A.js';
9
+ import './chunk-MVUNB43J.js';
10
+ import './chunk-EVINS473.js';
11
+ import './chunk-CQGMOPLG.js';
12
+ import './chunk-S7NNXWIN.js';
13
+ import './chunk-SKJC2KYD.js';
14
+ import './chunk-45Y2ZGNK.js';
15
+ import './chunk-R25NHHYT.js';
16
+ import './chunk-PFAFTLN3.js';
17
+ import './chunk-MVF7FA4D.js';
18
+ import './chunk-6T3QAO5K.js';
19
+ import './chunk-DWKILXHE.js';
20
+ import './chunk-A4YPUS6C.js';
21
+ import './chunk-O2LG3PNI.js';
22
+ import './chunk-EDSK6FEH.js';
23
+ import './chunk-VIKV25VP.js';
24
+ import './chunk-GPHGPY6T.js';
25
+ import './chunk-52IFGFTL.js';
26
+ import './chunk-KTWTYK5U.js';
27
+ import './chunk-7LSUUEAF.js';
28
+ import './chunk-O4GRKO3I.js';
29
+ import './chunk-YGFTNICV.js';
30
+ import './chunk-ZSNJ6UA3.js';
31
+ import './chunk-ZJIY642R.js';
32
+ import './chunk-SF3HCW4G.js';
33
+ import './chunk-3ZEEGXYF.js';
34
+ //# sourceMappingURL=color-input.js.map
35
+ //# sourceMappingURL=color-input.js.map
@@ -0,0 +1,268 @@
1
+ import * as React from 'react';
2
+ import { c as ColorPickerValue, a as ColorFormat, b as ColorKind } from './color-value-DYzChVOW.js';
3
+ export { C as COLOR_FORMATS, G as GradientStop, d as GradientType, e as convertKind, f as formatColor, p as parseColor, g as parseCss, r as reverseStops, s as sampleStops, h as sortStops, t as toCss, i as toHex } from './color-value-DYzChVOW.js';
4
+ import { C as ColorPickMeta, a as ColorSwatch, d as GradientValue, c as GradientSwatch } from './GradientPicker-CQm3GT7F.js';
5
+ export { G as GradientPicker, b as GradientPickerProps, M as MIN_STOPS } from './GradientPicker-CQm3GT7F.js';
6
+ import { e as ColorPickerLabels } from './labels-C992bt7G.js';
7
+
8
+ /**
9
+ * `EyeDropper` is not in TypeScript's `lib.dom.d.ts` (verified 2026-08-13).
10
+ *
11
+ * An ambient declaration rather than a `@ts-expect-error`: the latter reads as "this line is broken"
12
+ * to anyone maintaining it, when in fact the API is real, shipping and simply not typed yet.
13
+ */
14
+ declare global {
15
+ var EyeDropper: (new () => {
16
+ open: () => Promise<{
17
+ sRGBHex: string;
18
+ }>;
19
+ }) | undefined;
20
+ }
21
+ interface ColorPickerProps {
22
+ value: ColorPickerValue;
23
+ /**
24
+ * `meta` is present only when the change came from a swatch, and carries its `token` (the `var()`
25
+ * string, for a var-backed chip) and its `label`. **The value stays canonical hex either way** — a
26
+ * `var()` in `value.color` would reopen the 8-bit echo guard, the 1% alpha quantisation and all five
27
+ * display notations, so the REFERENCE travels on its own channel instead. A caller who stores it gets
28
+ * the theme axis for free (`--color-utility-blue-700` is blue-700 in light and blue-300 in dark);
29
+ * one who ignores the second argument sees no change at all.
30
+ */
31
+ onValueChange: (value: ColorPickerValue, meta?: ColorPickMeta) => void;
32
+ /**
33
+ * Which notations the value row offers, in order. One entry pins the output shape and renders a
34
+ * static label instead of a dropdown.
35
+ * @default all five
36
+ */
37
+ formats?: readonly ColorFormat[];
38
+ /** Show the alpha track and the opacity segment. @default true */
39
+ alpha?: boolean;
40
+ /**
41
+ * Which tabs EXIST — a capability list, never a selection. The active tab is `value.kind`, because
42
+ * a `mode` prop beside `value` would be two channels answering one question and they could
43
+ * contradict each other. Fewer than two modes renders no strip: one tab is not a choice, so
44
+ * `modes={["solid"]}` is how a picker that must only ever emit a solid says so.
45
+ * @default ["solid", "gradient"]
46
+ */
47
+ modes?: readonly ColorKind[];
48
+ /** Render the screen-sampling button where the browser supports it. @default true */
49
+ eyedropper?: boolean;
50
+ /**
51
+ * The saved-colour shortcuts. `undefined` drops the whole section; `[]` renders its empty message.
52
+ *
53
+ * **Persistence is the caller's.** A saved palette is a preference, and a preference the server
54
+ * must render is a cookie that arrives as a prop — `localStorage` is invisible to `renderToString`.
55
+ *
56
+ * A plain CSS colour, or a `{ color, label }` whose `color` may be a **custom-property reference** —
57
+ * a house token or the app's own (`var(--brand-hero)`). One mechanism for both: the library ships the
58
+ * grid, never the colour data. A var-backed chip is announced by its `label` and reports itself
59
+ * through `onValueChange`'s second argument.
60
+ *
61
+ * **Spell a house colour with `token("brand-600")`, not a hand-written `var(--color-…)`** — that
62
+ * argument is a generated closed union, so a name that does not exist is a type error rather than a
63
+ * chip that silently cannot be picked.
64
+ */
65
+ swatches?: readonly (string | ColorSwatch)[];
66
+ /** Adds the "Add" affordance. Without it the grid stays selectable, it just cannot grow. */
67
+ onAddSwatch?: (color: string) => void;
68
+ /**
69
+ * A save is in flight: Add shows its spinner and stops taking presses.
70
+ *
71
+ * The panel does not know it — `swatches` is CONTROLLED and `onAddSwatch` only reports the press,
72
+ * so whether a colour appears before or after the round trip is entirely the caller's order. What
73
+ * the caller cannot express from outside is the AFFORDANCE: the only lever is withholding
74
+ * `onAddSwatch`, which removes the button mid-interaction rather than disabling it — a control
75
+ * that vanishes under the cursor. Hence one boolean, and a boolean is exact here: it describes a
76
+ * binary (is a request out), not the colour, which the caller already holds.
77
+ *
78
+ * @default false
79
+ */
80
+ addingSwatch?: boolean;
81
+ /**
82
+ * The saved-GRADIENT shortcuts, on the Gradient tab. `undefined` drops the section; `[]` renders its
83
+ * empty message.
84
+ *
85
+ * A SECOND list rather than a wider `swatches`, because the two are different things and a caller
86
+ * persists them separately: `ColorSwatch.color` is one colour, and a gradient is a whole value —
87
+ * type, angle and every stop. Flattening a ramp into a colour would name the swatch after a stop it
88
+ * does not look like, and the chip has a different SHAPE for the same reason (a bar, not a dot).
89
+ *
90
+ * The pick reports only a `label` in its `meta`, never a `token`: a ramp has no single reference to
91
+ * echo. See {@link GradientSwatch}.
92
+ */
93
+ gradientSwatches?: readonly (GradientValue | GradientSwatch)[];
94
+ /** Adds "Add" to that section, reporting the gradient in force. */
95
+ onAddGradientSwatch?: (gradient: GradientValue) => void;
96
+ /** That save is in flight: its Add spins and stops taking presses. @default false */
97
+ addingGradientSwatch?: boolean;
98
+ labels?: ColorPickerLabels;
99
+ /** Layout and spacing only, merged via `cn()`. */
100
+ className?: string;
101
+ }
102
+ /**
103
+ * The colour panel — saturation plane, eyedropper, hue and alpha tracks, value row, saved swatches.
104
+ *
105
+ * **It draws no surface and it holds no draft.** A `<Popover padding="none">` or
106
+ * `<Card padding="none">` gives it a box, and `<ColorInput>` is what stages a change behind
107
+ * Cancel/Apply — exactly the split `DateCalendar` and `DatePicker` already ship, whose rule is that
108
+ * staging is a PICKER concern. Every row owns its own padding, which is what makes each of them
109
+ * full-bleed and lets the mode strip's rule run edge to edge.
110
+ */
111
+ declare function ColorPicker({ value, onValueChange, formats, alpha, modes, eyedropper, swatches, onAddSwatch, addingSwatch, gradientSwatches, onAddGradientSwatch, addingGradientSwatch, labels, className, }: ColorPickerProps): React.JSX.Element;
112
+ declare namespace ColorPicker {
113
+ var displayName: string;
114
+ }
115
+
116
+ declare const SWATCH_SIZE: {
117
+ readonly sm: "size-4";
118
+ readonly md: "size-5";
119
+ };
120
+ type SwatchSize = keyof typeof SWATCH_SIZE;
121
+
122
+ interface ColorSwatchPickerProps {
123
+ /**
124
+ * The colours on offer. Required — the grid IS the component.
125
+ *
126
+ * A plain CSS colour, or a `{ color, label }` whose `color` may be a **custom-property reference** —
127
+ * a house token or the app's own (`var(--brand-hero)`). Those are ONE mechanism: the library ships
128
+ * the grid, never the colour data.
129
+ *
130
+ * **Spell a house colour with `token("brand-600")`, not a hand-written `var(--color-…)`** — a checked
131
+ * generated union against a string that fails silently.
132
+ */
133
+ swatches: readonly (string | ColorSwatch)[];
134
+ /**
135
+ * Any CSS colour, not only one of `swatches`: the value row can still type a colour freehand. A
136
+ * `var()` is accepted here too and is displayed resolved — the picker EMITS canonical hex either way.
137
+ */
138
+ value?: string;
139
+ defaultValue?: string;
140
+ /**
141
+ * `meta` is present only when the change came from a swatch, and carries its `token` (the `var()`
142
+ * string, for a var-backed chip) and its `label`. The colour itself is always canonical hex.
143
+ */
144
+ onValueChange?: (color: string, meta?: ColorPickMeta) => void;
145
+ /** Which notations the value row offers. @default all five */
146
+ formats?: readonly ColorFormat[];
147
+ /** Show the opacity segment in the value row. @default true */
148
+ alpha?: boolean;
149
+ /** The 128px colour preview above the grid, with the hex overlaid. @default true */
150
+ preview?: boolean;
151
+ /** Chip diameter — 20px (`md`) or 16px (`sm`). @default "md" */
152
+ swatchSize?: SwatchSize;
153
+ labels?: ColorPickerLabels;
154
+ /** Layout and spacing only, merged via `cn()`. */
155
+ className?: string;
156
+ }
157
+ /**
158
+ * A colour picked from a fixed set — a preview, a grid of chips, and the value row.
159
+ *
160
+ * **The preview's readout is a deliberate departure from the reference**, which paints it a
161
+ * hard-coded white. White on an arbitrary user colour fails contrast on anything pale, and the
162
+ * background here is runtime data rather than a token pair — so `pnpm contrast` cannot catch it and
163
+ * the component has to choose. `readableOn()` picks light or near-black from the swatch's WCAG
164
+ * luminance, at the crossover point of the two contrast ratios rather than an eyeballed midpoint.
165
+ * The `opacity-50` on the `#` stays: the sigil is not data.
166
+ */
167
+ declare function ColorSwatchPicker({ swatches, value: valueProp, defaultValue, onValueChange, formats, alpha, preview, swatchSize, labels, className, }: ColorSwatchPickerProps): React.JSX.Element;
168
+ declare namespace ColorSwatchPicker {
169
+ var displayName: string;
170
+ }
171
+
172
+ interface ColorPalettePickerProps {
173
+ /**
174
+ * Rows of colours, rendered as one clipped tessellated block.
175
+ *
176
+ * **Default `[]`, and that is the whole opinion:** the library ships the grid renderer, never the
177
+ * colour data. Shipping a built-in ramp would put ~187 literal hexes inside `src/components/**`
178
+ * and an opinion the library does not hold; an empty palette renders its own empty message.
179
+ */
180
+ palette?: readonly (readonly string[])[];
181
+ /** Any CSS colour, not only a cell: the value row can still type a colour freehand. */
182
+ value?: string;
183
+ defaultValue?: string;
184
+ /**
185
+ * `meta` is present only when the change came from a saved swatch, and carries its `token` (the
186
+ * `var()` string, for a var-backed chip) and its `label`. The colour itself is always canonical hex.
187
+ */
188
+ onValueChange?: (color: string, meta?: ColorPickMeta) => void;
189
+ formats?: readonly ColorFormat[];
190
+ /** Show the Opacity track and the value row's opacity segment. @default true */
191
+ alpha?: boolean;
192
+ /**
193
+ * The saved-colour shortcuts under the grid. `undefined` drops the section.
194
+ *
195
+ * Takes the same shape as `<ColorPicker>`'s: a plain CSS colour, or a `{ color, label }` whose
196
+ * `color` may be a `var()` reference (use `token("brand-600")` for a house one). **`palette`
197
+ * deliberately does not** — a tessellated ramp is
198
+ * bulk colour DATA, laid out by row length, and a row of named objects there would be a second way
199
+ * to say the same thing in the one place where the compact form is the readable one.
200
+ */
201
+ swatches?: readonly (string | ColorSwatch)[];
202
+ onAddSwatch?: (color: string) => void;
203
+ /** A save is in flight: Add shows its spinner and stops taking presses. Same contract as `<ColorPicker>`'s. @default false */
204
+ addingSwatch?: boolean;
205
+ labels?: ColorPickerLabels;
206
+ /** Layout and spacing only, merged via `cn()`. */
207
+ className?: string;
208
+ }
209
+ /**
210
+ * A colour picked from a tessellated ramp — the grid, an Opacity track, the value row, and saved.
211
+ *
212
+ * **The column count is DERIVED from the first row's length, never a prop.** A `columns` prop would
213
+ * be a second channel describing data the caller already passed, and the two could disagree; the row
214
+ * itself is the only honest source. Ragged rows are a caller error the type cannot express, so they
215
+ * are reported and rendered against the first row's width — short rows leave holes rather than
216
+ * silently reflowing the whole grid, because a clamp would hide the mistake instead of showing it.
217
+ */
218
+ declare function ColorPalettePicker({ palette, value: valueProp, defaultValue, onValueChange, formats, alpha, swatches, onAddSwatch, addingSwatch, labels, className, }: ColorPalettePickerProps): React.JSX.Element;
219
+ declare namespace ColorPalettePicker {
220
+ var displayName: string;
221
+ }
222
+
223
+ /** Which channel a track edits. Two members, and each brings its own range, paint and readout. */
224
+ type ColorChannel = "hue" | "alpha";
225
+ interface ColorSliderProps {
226
+ /** `"hue"` runs 0–360 degrees; `"alpha"` runs 0–1. */
227
+ channel: ColorChannel;
228
+ /** Degrees for `hue`, a 0–1 fraction for `alpha`. */
229
+ value?: number;
230
+ defaultValue?: number;
231
+ onValueChange?: (value: number) => void;
232
+ /**
233
+ * The colour the alpha ramp fades — **required when `channel="alpha"`**, ignored for `hue`.
234
+ *
235
+ * Named `baseColor` rather than `color` deliberately: `props:check`'s open-prop allowlist is keyed
236
+ * by prop NAME globally, so a `color` entry here would excuse every future `color` prop in the
237
+ * library.
238
+ */
239
+ baseColor?: string;
240
+ /** The leading colour chip. Independent of {@link readout} — both on is meaningful. */
241
+ swatch?: boolean;
242
+ /** The trailing `259°` / `100%` value. */
243
+ readout?: boolean;
244
+ disabled?: boolean;
245
+ labels?: ColorPickerLabels;
246
+ /** Layout and spacing only, merged via `cn()`. */
247
+ className?: string;
248
+ }
249
+ /**
250
+ * One colour track, standalone — `channel="hue"` or `channel="alpha"`.
251
+ *
252
+ * The same track the panel draws twice, exported because it is genuinely useful alone (an opacity
253
+ * row in a toolbar, a hue rail beside a preview) and because a sibling component can express that
254
+ * where a `body` union on one picker could not.
255
+ *
256
+ * **The readout is width-floored, and that is a fix rather than a detail.** The row is
257
+ * `swatch · flex-1 track · readout`, so as the value moves `9°` → `359°` an auto-width readout
258
+ * widens, the track shrinks, and the thumb slides out from under a pointer mid-drag. The reference
259
+ * has exactly that defect. Flooring the readout to the widest string the channel can print is the
260
+ * same reasoning as `src/lib/intrinsic-width.tsx` — size to the widest member of a closed set, not
261
+ * to the current value — and 361 possible strings do not need the hidden-grid machinery to do it.
262
+ */
263
+ declare function ColorSlider({ channel, value: valueProp, defaultValue, onValueChange, baseColor, swatch, readout, disabled, labels, className, }: ColorSliderProps): React.JSX.Element;
264
+ declare namespace ColorSlider {
265
+ var displayName: string;
266
+ }
267
+
268
+ export { type ColorChannel, ColorFormat, ColorKind, ColorPalettePicker, type ColorPalettePickerProps, ColorPickMeta, ColorPicker, ColorPickerLabels, type ColorPickerProps, ColorPickerValue, ColorSlider, type ColorSliderProps, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, GradientSwatch, GradientValue };
@@ -0,0 +1,28 @@
1
+ "use client";export { ColorPalettePicker, ColorSlider, ColorSwatchPicker } from './chunk-EXRVOGJ5.js';
2
+ import './chunk-WJB5GWAZ.js';
3
+ export { ColorPicker, GradientPicker, MIN_STOPS } from './chunk-QTWRR7IS.js';
4
+ export { COLOR_FORMATS, convertKind, formatColor, parseColor, parseCss, reverseStops, sampleStops, sortStops, toCss, toHex } from './chunk-UHSGD4CD.js';
5
+ import './chunk-MVUNB43J.js';
6
+ import './chunk-EVINS473.js';
7
+ import './chunk-CQGMOPLG.js';
8
+ import './chunk-R25NHHYT.js';
9
+ import './chunk-PFAFTLN3.js';
10
+ import './chunk-MVF7FA4D.js';
11
+ import './chunk-6T3QAO5K.js';
12
+ import './chunk-DWKILXHE.js';
13
+ import './chunk-A4YPUS6C.js';
14
+ import './chunk-O2LG3PNI.js';
15
+ import './chunk-EDSK6FEH.js';
16
+ import './chunk-VIKV25VP.js';
17
+ import './chunk-GPHGPY6T.js';
18
+ import './chunk-52IFGFTL.js';
19
+ import './chunk-KTWTYK5U.js';
20
+ import './chunk-7LSUUEAF.js';
21
+ import './chunk-O4GRKO3I.js';
22
+ import './chunk-YGFTNICV.js';
23
+ import './chunk-ZSNJ6UA3.js';
24
+ import './chunk-ZJIY642R.js';
25
+ import './chunk-SF3HCW4G.js';
26
+ import './chunk-3ZEEGXYF.js';
27
+ //# sourceMappingURL=color-picker.js.map
28
+ //# sourceMappingURL=color-picker.js.map
@@ -0,0 +1,129 @@
1
+ /** The display notations the value input offers. `value.color` is ALWAYS canonical hex regardless. */
2
+ type ColorFormat = "hex" | "rgb" | "css" | "hsl" | "hsb";
3
+ /** Canonical order — the format select and the docs iterate this. */
4
+ declare const COLOR_FORMATS: readonly ["hex", "rgb", "css", "hsl", "hsb"];
5
+ /** What a `<ColorPicker>` can be editing. `"gradient"` ships in phase 2. */
6
+ type ColorKind = "solid" | "gradient";
7
+ type GradientType = "linear" | "radial" | "angular" | "diamond";
8
+ interface GradientStop {
9
+ /** Canonical hex — `#rrggbb`, or `#rrggbbaa` when the stop is translucent. */
10
+ readonly color: string;
11
+ /** 0–1 along the gradient. */
12
+ readonly offset: number;
13
+ }
14
+ /**
15
+ * A picker's value.
16
+ *
17
+ * **A discriminated union rather than a bare CSS string**, because the two shapes need the same
18
+ * parser either way and the union keeps the LOSSY half at the boundary. A string value would
19
+ * re-serialize the caller's own CSS on every reopen: `linear-gradient(to bottom right, red, blue)`
20
+ * comes back `linear-gradient(135deg, #ff0000 0%, #0000ff 100%)` — same pixels, different source, and
21
+ * the caller's file quietly rewritten. {@link toCss} / {@link parseCss} are the opt-in boundary for
22
+ * anyone who does want the string.
23
+ */
24
+ type ColorPickerValue = {
25
+ readonly kind: "solid";
26
+ readonly color: string;
27
+ } | {
28
+ readonly kind: "gradient";
29
+ readonly type: GradientType;
30
+ /** Degrees, CSS convention (0 = to top, 90 = to right). */
31
+ readonly angle: number;
32
+ readonly stops: readonly GradientStop[];
33
+ };
34
+ /** 0–255 integers, alpha 0–1 in 1% steps. The canonical wire form. */
35
+ interface Rgba {
36
+ r: number;
37
+ g: number;
38
+ b: number;
39
+ a: number;
40
+ }
41
+ /**
42
+ * Parse a CSS colour string into {@link Rgba}. `null` (+ a dev warning) on anything unsupported.
43
+ *
44
+ * Accepts `#rgb` · `#rgba` · `#rrggbb` · `#rrggbbaa` · `rgb()`/`rgba()` · `hsl()`/`hsla()` ·
45
+ * `hsb()`/`hsv()` (our own display notation, so the value input round-trips) · `transparent`, each in
46
+ * both the comma and the space syntax.
47
+ *
48
+ * **NAMED COLOURS ARE NOT SUPPORTED, deliberately.** The 148 CSS keywords are a table we would ship
49
+ * to every consumer of a picker that never emits one, and resolving them properly needs the DOM,
50
+ * which would cost this module its SSR-safety. `parseColor("red")` returns `null` and warns — it is
51
+ * the one limit a caller doing `parseCss(row.brand_color)` can hit, so the spec says so out loud.
52
+ *
53
+ * **`quiet` is for the KEYSTROKE path**, where this runs on every character the user types and `#f0`
54
+ * is not a mistake but an unfinished value. A warning there would fire four times per hex and say
55
+ * nothing true. Everywhere a whole value arrives at once — a prop, a paste, `parseCss` — it warns,
56
+ * because there the string really was the caller's final answer.
57
+ */
58
+ declare function parseColor(css: string, opts?: {
59
+ quiet?: boolean;
60
+ }): Rgba | null;
61
+ /**
62
+ * The canonical value form: `#rrggbb`, or `#rrggbbaa` when `a < 1`. Always valid CSS, always
63
+ * lowercase — one spelling, so two equal colours are also two equal strings.
64
+ */
65
+ declare function toHex({ r, g, b, a }: Rgba): string;
66
+ /**
67
+ * Render for DISPLAY in the value input.
68
+ *
69
+ * **Not necessarily valid CSS** — `hsb()` is not a CSS function at all, which is exactly why the
70
+ * FORMAT never reaches `value.color`: if the dropdown wrote its own notation into the value, then
71
+ * picking "HSB" would put `hsb(259 60% 85%)` where a caller's `style={{ background: value.color }}`
72
+ * expects a colour, and nothing would render. `hsl()` IS valid CSS, so that bug would break two of
73
+ * the five formats and spare three — worse than breaking all five, because which one an app hits
74
+ * depends on which format it happens to choose. One canonical output, five display notations.
75
+ */
76
+ declare function formatColor(rgba: Rgba, format: ColorFormat): string;
77
+ /** Stops in ramp order. The offsets ARE the identity, so sorting is the only ordering there is. */
78
+ declare function sortStops(stops: readonly GradientStop[]): GradientStop[];
79
+ /**
80
+ * The colour the ramp actually shows at `offset` — a linear RGBA interpolation between the two
81
+ * neighbouring stops.
82
+ *
83
+ * **This is what a click on empty track must insert.** Taking the nearest stop's colour instead adds
84
+ * a RED stop in the middle of a red→blue ramp, where the eye is looking at purple; the new stop then
85
+ * visibly changes the gradient it was supposed to leave alone. Interpolating means adding a stop is a
86
+ * no-op until the user moves it, which is the only behaviour that reads as "add a stop here".
87
+ *
88
+ * Interpolates in premultiplied-free sRGB, matching what the browser paints for a plain
89
+ * `linear-gradient` — not oklab. Matching the paint is the point; being perceptually better than the
90
+ * paint would put the inserted stop's colour visibly beside the ramp it came from.
91
+ */
92
+ declare function sampleStops(stops: readonly GradientStop[], offset: number): string;
93
+ /**
94
+ * Flip the ramp end for end — the "Reverse" control.
95
+ *
96
+ * The ANGLE is deliberately untouched: reversing is about which colour is where, and rotating 180°
97
+ * instead would move the gradient's direction on screen as well, which is a different edit the
98
+ * direction area already offers.
99
+ */
100
+ declare function reverseStops(stops: readonly GradientStop[]): GradientStop[];
101
+ /**
102
+ * Re-shape a value for the other tab: a solid becomes a two-stop linear gradient seeded from it, a
103
+ * gradient becomes its FIRST stop's colour.
104
+ *
105
+ * **Deliberately lossy in that direction.** A gradient has no single colour, and stop 0 is the one
106
+ * answer a user can predict from the swatch in front of them. It is also why the picker STASHES the
107
+ * tab it leaves rather than converting both ways: `gradient → solid → gradient` is not the identity,
108
+ * so converting on the way back would silently delete stops.
109
+ */
110
+ declare function convertKind(value: ColorPickerValue, to: ColorKind): ColorPickerValue;
111
+ /** Serialize a value to CSS. Total — every value has a rendering. */
112
+ declare function toCss(value: ColorPickerValue): string;
113
+ /**
114
+ * Parse CSS back into a value. **Partial, and says so.**
115
+ *
116
+ * Solids parse fully. Gradients parse only in the narrow form {@link toCss} emits — `<n>deg` or
117
+ * `from <n>deg` followed by colour-and-percentage stops. Four shapes are refused BY NAME rather than
118
+ * mis-parsed, each with a warning saying which one it was: a keyword direction (`to bottom right`), an
119
+ * interpolation hint (`in oklab`), a radial shape or position (`circle at 30% 40%`), and a
120
+ * bare-percentage colour hint between two stops.
121
+ *
122
+ * That asymmetry is the price of holding the value as a union instead of a string, and it is the right
123
+ * price: the alternative re-serialized the caller's own CSS on every reopen. **A round trip through
124
+ * `radial`/`diamond` normalises the angle to 0**, because neither carries one in CSS — the value can
125
+ * hold an angle those types do not render, and the string cannot.
126
+ */
127
+ declare function parseCss(css: string): ColorPickerValue | null;
128
+
129
+ export { COLOR_FORMATS as C, type GradientStop as G, type ColorFormat as a, type ColorKind as b, type ColorPickerValue as c, type GradientType as d, convertKind as e, formatColor as f, parseCss as g, sortStops as h, toHex as i, parseColor as p, reverseStops as r, sampleStops as s, toCss as t };
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { M as MultiDisplay } from './multi-value-CJb_tnvi.js';
3
3
  import { O as OptionList, L as ListboxOption, a as ListboxAction } from './options-CPEIgjtd.js';
4
- import { d as ComboboxLabels } from './labels-DPrh0se9.js';
4
+ import { f as ComboboxLabels } from './labels-C992bt7G.js';
5
5
  import { ComboboxRootProps as ComboboxRootProps$1 } from '@base-ui/react/combobox';
6
6
 
7
7
  type ComboboxSize = "sm" | "md" | "lg";