@weasel-js/ui 1.0.2 → 1.0.4

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 (226) hide show
  1. package/dist/chunks/{ActionBar-GThu74LC.js → ActionBar-BvPEd_GW.js} +2 -2
  2. package/dist/chunks/ActionBar-BvPEd_GW.js.map +1 -0
  3. package/dist/chunks/ActionsBar-9aR5N3lU.js.map +1 -1
  4. package/dist/chunks/Badge-DZQqAV4d.js.map +1 -1
  5. package/dist/chunks/BandEditor-D3i6l299.js +248 -0
  6. package/dist/chunks/BandEditor-D3i6l299.js.map +1 -0
  7. package/dist/chunks/Button-9QNIYugK.js.map +1 -1
  8. package/dist/chunks/{Callout-CFqG5xho.js → Callout-NSOjza6G.js} +2 -1
  9. package/dist/chunks/Callout-NSOjza6G.js.map +1 -0
  10. package/dist/chunks/Checkbox-KQ5L8APP.js.map +1 -1
  11. package/dist/chunks/ColorField-ykpiD3XU.js.map +1 -1
  12. package/dist/chunks/{ComboBox-DpxsFVBy.js → ComboBox-ONQISwtI.js} +3 -2
  13. package/dist/chunks/ComboBox-ONQISwtI.js.map +1 -0
  14. package/dist/chunks/{CurveEditor-fRctbmoV.js → CurveEditor-SmwwvrsA.js} +4 -4
  15. package/dist/chunks/CurveEditor-SmwwvrsA.js.map +1 -0
  16. package/dist/chunks/DataGrid-DZQ4Chbd.js +210 -0
  17. package/dist/chunks/DataGrid-DZQ4Chbd.js.map +1 -0
  18. package/dist/chunks/{Dialog-3FCd_gYi.js → Dialog-CqwdJv_t.js} +2 -1
  19. package/dist/chunks/Dialog-CqwdJv_t.js.map +1 -0
  20. package/dist/chunks/Field-VQwmrIna.js.map +1 -1
  21. package/dist/chunks/{GradientEditor-BL5kg7a_.js → GradientEditor-B2x7STav.js} +29 -9
  22. package/dist/chunks/GradientEditor-B2x7STav.js.map +1 -0
  23. package/dist/chunks/Input-DpkwYtUY.js.map +1 -1
  24. package/dist/chunks/Keycaps-CFX7UAj8.js.map +1 -1
  25. package/dist/chunks/NumberField-BbzI0GtU.js.map +1 -1
  26. package/dist/chunks/OptionsBar-CHvH4n4u.js.map +1 -1
  27. package/dist/chunks/Plot2D-CEnhzodm.js.map +1 -1
  28. package/dist/chunks/{PointPlotter-R8hguJPq.js → PointPlotter-BUIse9c4.js} +2 -2
  29. package/dist/chunks/PointPlotter-BUIse9c4.js.map +1 -0
  30. package/dist/chunks/Powerline-Dd9Ukhcl.js.map +1 -1
  31. package/dist/chunks/{Prefs-lgI4x4jF.js → Prefs-BMR9wMiZ.js} +4 -4
  32. package/dist/chunks/Prefs-BMR9wMiZ.js.map +1 -0
  33. package/dist/chunks/RadioGroup-CIpHr3g6.js.map +1 -1
  34. package/dist/chunks/RangeSlider-CaDogGTj.js.map +1 -1
  35. package/dist/chunks/{ResizeHandle-CCQ2y87y.js → ResizeHandle-BOpmtOOj.js} +2 -2
  36. package/dist/chunks/ResizeHandle-BOpmtOOj.js.map +1 -0
  37. package/dist/chunks/{Select-BE3Y1NrH.js → Select-CHsuQCp0.js} +2 -2
  38. package/dist/chunks/Select-CHsuQCp0.js.map +1 -0
  39. package/dist/chunks/{SelectionPanel-Zaw8tYQH.js → SelectionPanel-D_wk_8ZN.js} +2 -2
  40. package/dist/chunks/SelectionPanel-D_wk_8ZN.js.map +1 -0
  41. package/dist/chunks/Sidebar-DP_nyJze.js.map +1 -1
  42. package/dist/chunks/{SidebarPanel-BpD0ptyg.js → SidebarPanel-BVTQ1ZyM.js} +2 -2
  43. package/dist/chunks/SidebarPanel-BVTQ1ZyM.js.map +1 -0
  44. package/dist/chunks/Slider-DcHnSK5g.js +234 -0
  45. package/dist/chunks/Slider-DcHnSK5g.js.map +1 -0
  46. package/dist/chunks/StatusBar-DBO0E0Yd.js.map +1 -1
  47. package/dist/chunks/Switch-JyVSSAzC.js.map +1 -1
  48. package/dist/chunks/Tabs-Df0sDomx.js.map +1 -1
  49. package/dist/chunks/Toast-DFw4IrD_.js.map +1 -1
  50. package/dist/chunks/ToggleBar-BP1zFcvg.js.map +1 -1
  51. package/dist/chunks/{ToolButton-DpT-mukU.js → ToolButton-ClPz5L6j.js} +2 -2
  52. package/dist/chunks/ToolButton-ClPz5L6j.js.map +1 -0
  53. package/dist/chunks/ToolGroup-BTIwd4U4.js.map +1 -1
  54. package/dist/chunks/ToolOptionsBar-JvmY7iNe.js.map +1 -1
  55. package/dist/chunks/{ToolPalette-DPn0owno.js → ToolPalette-DAiVhdtV.js} +2 -2
  56. package/dist/chunks/ToolPalette-DAiVhdtV.js.map +1 -0
  57. package/dist/chunks/{Tooltip-Clgn4trm.js → Tooltip-DXJbdR5B.js} +2 -1
  58. package/dist/chunks/Tooltip-DXJbdR5B.js.map +1 -0
  59. package/dist/chunks/useRovingTabIndex-DBZtq4IH.js.map +1 -1
  60. package/dist/color/oklch.d.ts +12 -0
  61. package/dist/color/oklch.d.ts.map +1 -1
  62. package/dist/components/ActionBar/ActionBar.d.ts +1 -0
  63. package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
  64. package/dist/components/ActionBar/index.js +1 -1
  65. package/dist/components/ActionsBar/ActionsBar.d.ts +15 -0
  66. package/dist/components/ActionsBar/ActionsBar.d.ts.map +1 -1
  67. package/dist/components/Badge/Badge.d.ts +14 -0
  68. package/dist/components/Badge/Badge.d.ts.map +1 -1
  69. package/dist/components/Badge/bases/edgeProfiles.d.ts +8 -0
  70. package/dist/components/Badge/bases/edgeProfiles.d.ts.map +1 -1
  71. package/dist/components/Badge/types.d.ts +11 -0
  72. package/dist/components/Badge/types.d.ts.map +1 -1
  73. package/dist/components/BandEditor/BandEditor.d.ts +56 -0
  74. package/dist/components/BandEditor/BandEditor.d.ts.map +1 -0
  75. package/dist/components/BandEditor/bands.d.ts +45 -0
  76. package/dist/components/BandEditor/bands.d.ts.map +1 -0
  77. package/dist/components/BandEditor/index.d.ts +4 -0
  78. package/dist/components/BandEditor/index.d.ts.map +1 -0
  79. package/dist/components/BandEditor/index.js +2 -0
  80. package/dist/components/BandEditor/scale.d.ts +25 -0
  81. package/dist/components/BandEditor/scale.d.ts.map +1 -0
  82. package/dist/components/Button/Button.d.ts +13 -0
  83. package/dist/components/Button/Button.d.ts.map +1 -1
  84. package/dist/components/Callout/Callout.d.ts +2 -0
  85. package/dist/components/Callout/Callout.d.ts.map +1 -1
  86. package/dist/components/Callout/index.js +1 -1
  87. package/dist/components/Checkbox/Checkbox.d.ts +4 -0
  88. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  89. package/dist/components/ColorField/ColorField.d.ts +4 -0
  90. package/dist/components/ColorField/ColorField.d.ts.map +1 -1
  91. package/dist/components/ComboBox/ComboBox.d.ts +11 -0
  92. package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
  93. package/dist/components/ComboBox/index.js +1 -1
  94. package/dist/components/CurveEditor/CurveEditor.d.ts +14 -2
  95. package/dist/components/CurveEditor/CurveEditor.d.ts.map +1 -1
  96. package/dist/components/CurveEditor/LayeredCurveEditor.d.ts +15 -0
  97. package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -1
  98. package/dist/components/CurveEditor/createFunctionLayer.d.ts +39 -0
  99. package/dist/components/CurveEditor/createFunctionLayer.d.ts.map +1 -1
  100. package/dist/components/CurveEditor/index.js +1 -1
  101. package/dist/components/CurveEditor/layerTypes.d.ts +5 -0
  102. package/dist/components/CurveEditor/layerTypes.d.ts.map +1 -1
  103. package/dist/components/CurveEditor/setCurveOp.d.ts +4 -0
  104. package/dist/components/CurveEditor/setCurveOp.d.ts.map +1 -1
  105. package/dist/components/DataGrid/DataGrid.d.ts +12 -0
  106. package/dist/components/DataGrid/DataGrid.d.ts.map +1 -1
  107. package/dist/components/DataGrid/index.js +1 -1
  108. package/dist/components/Dialog/Dialog.d.ts +1 -0
  109. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  110. package/dist/components/Dialog/index.js +1 -1
  111. package/dist/components/Field/Field.d.ts +9 -0
  112. package/dist/components/Field/Field.d.ts.map +1 -1
  113. package/dist/components/GradientEditor/GradientEditor.d.ts +4 -0
  114. package/dist/components/GradientEditor/GradientEditor.d.ts.map +1 -1
  115. package/dist/components/GradientEditor/GradientHandles.d.ts +4 -0
  116. package/dist/components/GradientEditor/GradientHandles.d.ts.map +1 -1
  117. package/dist/components/GradientEditor/index.js +1 -1
  118. package/dist/components/Input/Input.d.ts +1 -0
  119. package/dist/components/Input/Input.d.ts.map +1 -1
  120. package/dist/components/Keycaps/Keycap.d.ts +10 -0
  121. package/dist/components/Keycaps/Keycap.d.ts.map +1 -1
  122. package/dist/components/Keycaps/Keycaps.d.ts +2 -0
  123. package/dist/components/Keycaps/Keycaps.d.ts.map +1 -1
  124. package/dist/components/Keycaps/keySpecsFromMods.d.ts +2 -0
  125. package/dist/components/Keycaps/keySpecsFromMods.d.ts.map +1 -1
  126. package/dist/components/NumberField/NumberField.d.ts +9 -0
  127. package/dist/components/NumberField/NumberField.d.ts.map +1 -1
  128. package/dist/components/OptionsBar/OptionsBar.d.ts +12 -0
  129. package/dist/components/OptionsBar/OptionsBar.d.ts.map +1 -1
  130. package/dist/components/Plot2D/Plot2D.d.ts +14 -0
  131. package/dist/components/Plot2D/Plot2D.d.ts.map +1 -1
  132. package/dist/components/Plot2D/geometry.d.ts +10 -0
  133. package/dist/components/Plot2D/geometry.d.ts.map +1 -1
  134. package/dist/components/PointPlotter/PointPlotter.d.ts +3 -2
  135. package/dist/components/PointPlotter/PointPlotter.d.ts.map +1 -1
  136. package/dist/components/PointPlotter/index.js +1 -1
  137. package/dist/components/Powerline/Powerline.d.ts +13 -0
  138. package/dist/components/Powerline/Powerline.d.ts.map +1 -1
  139. package/dist/components/Prefs/PrefsDialog.d.ts +4 -0
  140. package/dist/components/Prefs/PrefsDialog.d.ts.map +1 -1
  141. package/dist/components/Prefs/PrefsForm.d.ts +6 -0
  142. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
  143. package/dist/components/Prefs/index.js +1 -1
  144. package/dist/components/Prefs/schema.d.ts +17 -0
  145. package/dist/components/Prefs/schema.d.ts.map +1 -1
  146. package/dist/components/RadioGroup/RadioGroup.d.ts +8 -0
  147. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  148. package/dist/components/RangeSlider/RangeSlider.d.ts +1 -0
  149. package/dist/components/RangeSlider/RangeSlider.d.ts.map +1 -1
  150. package/dist/components/ResizeHandle/ResizeHandle.d.ts +7 -3
  151. package/dist/components/ResizeHandle/ResizeHandle.d.ts.map +1 -1
  152. package/dist/components/ResizeHandle/index.js +1 -1
  153. package/dist/components/Select/Select.d.ts +11 -0
  154. package/dist/components/Select/Select.d.ts.map +1 -1
  155. package/dist/components/Select/index.js +1 -1
  156. package/dist/components/SelectionPanel/SelectionPanel.d.ts +6 -0
  157. package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
  158. package/dist/components/SelectionPanel/index.js +1 -1
  159. package/dist/components/SelectionPanel/model.d.ts +12 -0
  160. package/dist/components/SelectionPanel/model.d.ts.map +1 -1
  161. package/dist/components/Sidebar/Sidebar.d.ts +1 -0
  162. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
  163. package/dist/components/SidebarPanel/SidebarPanel.d.ts +1 -0
  164. package/dist/components/SidebarPanel/SidebarPanel.d.ts.map +1 -1
  165. package/dist/components/SidebarPanel/index.js +1 -1
  166. package/dist/components/Slider/Slider.d.ts +43 -2
  167. package/dist/components/Slider/Slider.d.ts.map +1 -1
  168. package/dist/components/Slider/index.js +1 -1
  169. package/dist/components/StatusBar/StatusBar.d.ts +2 -0
  170. package/dist/components/StatusBar/StatusBar.d.ts.map +1 -1
  171. package/dist/components/Switch/Switch.d.ts +11 -0
  172. package/dist/components/Switch/Switch.d.ts.map +1 -1
  173. package/dist/components/Tabs/Tabs.d.ts +11 -0
  174. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  175. package/dist/components/Toast/Toast.d.ts +2 -0
  176. package/dist/components/Toast/Toast.d.ts.map +1 -1
  177. package/dist/components/Toast/queue.d.ts +7 -0
  178. package/dist/components/Toast/queue.d.ts.map +1 -1
  179. package/dist/components/ToggleBar/ToggleBar.d.ts +16 -0
  180. package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
  181. package/dist/components/ToolButton/ToolButton.d.ts +1 -0
  182. package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
  183. package/dist/components/ToolButton/index.js +1 -1
  184. package/dist/components/ToolGroup/ToolGroup.d.ts +1 -0
  185. package/dist/components/ToolGroup/ToolGroup.d.ts.map +1 -1
  186. package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts +1 -0
  187. package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts.map +1 -1
  188. package/dist/components/ToolPalette/ToolPalette.d.ts +9 -0
  189. package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
  190. package/dist/components/ToolPalette/index.js +1 -1
  191. package/dist/components/Tooltip/Tooltip.d.ts +5 -0
  192. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  193. package/dist/components/Tooltip/index.js +1 -1
  194. package/dist/format/number.d.ts +4 -0
  195. package/dist/format/number.d.ts.map +1 -1
  196. package/dist/index.d.ts +1 -0
  197. package/dist/index.d.ts.map +1 -1
  198. package/dist/index.js +24 -23
  199. package/dist/index.js.map +1 -1
  200. package/dist/paintGradientTrack.d.ts +13 -0
  201. package/dist/paintGradientTrack.d.ts.map +1 -1
  202. package/dist/style.css +1 -1
  203. package/dist/useReorderDragList.d.ts +23 -0
  204. package/dist/useReorderDragList.d.ts.map +1 -1
  205. package/dist/useRovingTabIndex.d.ts +5 -0
  206. package/dist/useRovingTabIndex.d.ts.map +1 -1
  207. package/package.json +2 -2
  208. package/dist/chunks/ActionBar-GThu74LC.js.map +0 -1
  209. package/dist/chunks/Callout-CFqG5xho.js.map +0 -1
  210. package/dist/chunks/ComboBox-DpxsFVBy.js.map +0 -1
  211. package/dist/chunks/CurveEditor-fRctbmoV.js.map +0 -1
  212. package/dist/chunks/DataGrid-BQklXGRl.js +0 -186
  213. package/dist/chunks/DataGrid-BQklXGRl.js.map +0 -1
  214. package/dist/chunks/Dialog-3FCd_gYi.js.map +0 -1
  215. package/dist/chunks/GradientEditor-BL5kg7a_.js.map +0 -1
  216. package/dist/chunks/PointPlotter-R8hguJPq.js.map +0 -1
  217. package/dist/chunks/Prefs-lgI4x4jF.js.map +0 -1
  218. package/dist/chunks/ResizeHandle-CCQ2y87y.js.map +0 -1
  219. package/dist/chunks/Select-BE3Y1NrH.js.map +0 -1
  220. package/dist/chunks/SelectionPanel-Zaw8tYQH.js.map +0 -1
  221. package/dist/chunks/SidebarPanel-BpD0ptyg.js.map +0 -1
  222. package/dist/chunks/Slider-Di2kNqVy.js +0 -221
  223. package/dist/chunks/Slider-Di2kNqVy.js.map +0 -1
  224. package/dist/chunks/ToolButton-DpT-mukU.js.map +0 -1
  225. package/dist/chunks/ToolPalette-DPn0owno.js.map +0 -1
  226. package/dist/chunks/Tooltip-Clgn4trm.js.map +0 -1
@@ -1,30 +1,63 @@
1
1
  import { type ReactElement, type ReactNode } from 'react';
2
+ /**
3
+ * Passed to a custom thumb renderer: the thumb box in CSS px, and whether
4
+ * this thumb is the one being dragged.
5
+ */
2
6
  export type ThumbRenderCtx = {
3
7
  width: number;
4
8
  height: number;
5
9
  isActive: boolean;
6
10
  };
11
+ /**
12
+ * A thumb's appearance — one of the two built-in shapes, or a custom
13
+ * renderer.
14
+ */
7
15
  export type ThumbShape = 'round' | 'notched' | {
8
16
  render: (ctx: ThumbRenderCtx) => ReactNode;
9
17
  };
18
+ /**
19
+ * One handle on a {@link Slider}. `bounds` narrows the range this particular
20
+ * thumb may move within, either fixed or computed from the current thumb
21
+ * list.
22
+ */
10
23
  export type Thumb = {
11
24
  value: number;
12
25
  label?: string;
13
26
  shape?: ThumbShape;
14
27
  bounds?: [number, number] | ((ctx: BoundsCtx) => [number, number]);
15
28
  };
29
+ /**
30
+ * Passed to a thumb's `bounds` function: the full thumb list and this thumb's
31
+ * index in it, so a bound can be expressed relative to its neighbors.
32
+ */
16
33
  export type BoundsCtx = {
17
34
  thumbs: readonly Thumb[];
18
35
  index: number;
19
36
  };
37
+ /**
38
+ * Passed to `renderTrack`: the track's width in CSS px and a mapping from a
39
+ * slider value to its 0..1 position along the track.
40
+ */
20
41
  export type TrackCtx = {
21
42
  trackWidth: number;
22
43
  valueToFraction: (v: number) => number;
23
44
  };
45
+ /**
46
+ * Props for {@link Slider}.
47
+ *
48
+ * `onInput` fires continuously through a drag; `onChange` fires once when it
49
+ * ends and is the one to write to history.
50
+ *
51
+ * `constraint: 'ordered'` keeps thumbs from crossing each other. Supplying
52
+ * `onAddThumb` makes a click on empty track create a thumb, and supplying
53
+ * `onRemoveThumb` lets a right-click or a drag off the track remove one —
54
+ * both callbacks can decline by returning `null`/`false`. `allowShiftAll`
55
+ * makes shift-drag translate every thumb together.
56
+ */
24
57
  export type SliderProps<T extends Thumb = Thumb> = {
25
58
  thumbs: readonly T[];
26
- onChange: (next: T[]) => void;
27
- onCommit?: (next: T[]) => void;
59
+ onInput: (next: T[]) => void;
60
+ onChange?: (next: T[]) => void;
28
61
  min: number;
29
62
  max: number;
30
63
  step?: number;
@@ -39,5 +72,13 @@ export type SliderProps<T extends Thumb = Thumb> = {
39
72
  ariaLabel?: string;
40
73
  className?: string;
41
74
  };
75
+ /**
76
+ * Multi-thumb slider over a shared track. The thumb list is fully controlled:
77
+ * every change, live or committed, arrives as a whole new array.
78
+ *
79
+ * Thumbs are draggable, and arrow/Home/End move the focused thumb — those
80
+ * keystrokes fire `onInput` and `onChange` together, since there is no
81
+ * in-flight state to buffer.
82
+ */
42
83
  export declare function Slider<T extends Thumb = Thumb>(props: SliderProps<T>): ReactElement;
43
84
  //# sourceMappingURL=Slider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiK,KAAK,YAAY,EAAE,KAAK,SAAS,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c,GAAG,aAAa,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAyCF;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,YAAY,CA4TnF"}
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/Slider-Di2kNqVy.js";
1
+ import { t as e } from "../../chunks/Slider-DcHnSK5g.js";
2
2
  export { e as Slider };
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
+ /** Props for {@link StatusBar}. */
2
3
  export interface StatusBarProps {
3
4
  /**
4
5
  * Accessible label for the bar. Deliberately not a live region — a status
@@ -20,6 +21,7 @@ export interface StatusBarProps {
20
21
  * `<StatusBarItem>` and `<StatusBarSpacer>`.
21
22
  */
22
23
  export declare function StatusBar(props: StatusBarProps): import("react/jsx-runtime").JSX.Element;
24
+ /** Props for {@link StatusBarItem}. */
23
25
  export interface StatusBarItemProps {
24
26
  /**
25
27
  * Hover text. Items that carry one also get a `help` cursor, so the
@@ -1 +1 @@
1
- {"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBar/StatusBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,cAAc;IAC7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAO9C;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,sCAAsC;AACtC,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAKtD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,4CAE9B"}
1
+ {"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBar/StatusBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAO9C;AAED,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,sCAAsC;AACtC,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAKtD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,4CAE9B"}
@@ -1,9 +1,20 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type SwitchProps as RACSwitchProps } from 'react-aria-components';
3
+ /**
4
+ * Props for {@link Switch}, on top of React Aria's `Switch` props. The label
5
+ * is passed as children.
6
+ */
3
7
  export type SwitchProps = Omit<RACSwitchProps, 'children' | 'className'> & {
4
8
  children?: ReactNode;
5
9
  className?: string;
6
10
  };
11
+ /**
12
+ * On/off toggle wrapping React Aria's Switch, skinned against the `--wzl-*`
13
+ * tokens. Use for a setting that takes effect immediately; use `Checkbox`
14
+ * for one that is submitted with a form.
15
+ *
16
+ * `ref` forwards to the underlying label element.
17
+ */
7
18
  export declare const Switch: import("react").ForwardRefExoticComponent<Omit<RACSwitchProps, "children" | "className"> & {
8
19
  children?: ReactNode;
9
20
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EAEL,KAAK,WAAW,IAAI,cAAc,EACnC,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IACzE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,MAAM;eAJN,SAAS;gBACR,MAAM;oDAoBlB,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EAEL,KAAK,WAAW,IAAI,cAAc,EACnC,MAAM,uBAAuB,CAAC;AAG/B;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IACzE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,MAAM;eAXN,SAAS;gBACR,MAAM;oDA2BlB,CAAC"}
@@ -1,22 +1,33 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { type TabsProps as RACTabsProps, type TabListProps as RACTabListProps, type TabProps as RACTabProps, type TabPanelProps as RACTabPanelProps } from 'react-aria-components';
3
+ /** Props for {@link Tabs}, on top of React Aria's `Tabs` props. */
3
4
  export type TabsProps = Omit<RACTabsProps, 'className' | 'children'> & {
4
5
  children?: ReactNode;
5
6
  className?: string;
6
7
  };
8
+ /**
9
+ * Tab set wrapping React Aria's Tabs, skinned against the `--wzl-*` tokens.
10
+ * Holds a {@link TabList} and one {@link TabPanel} per tab.
11
+ */
7
12
  export declare function Tabs({ children, className, ...rest }: TabsProps): import("react/jsx-runtime").JSX.Element;
13
+ /** Props for {@link TabList}, on top of React Aria's `TabList` props. */
8
14
  export type TabListProps<T extends object> = Omit<RACTabListProps<T>, 'className'> & {
9
15
  className?: string;
10
16
  };
17
+ /** The row of tab buttons inside a {@link Tabs}. */
11
18
  export declare function TabList<T extends object>({ className, ...rest }: TabListProps<T>): import("react/jsx-runtime").JSX.Element;
19
+ /** Props for {@link Tab}, on top of React Aria's `Tab` props. */
12
20
  export type TabProps = Omit<RACTabProps, 'className' | 'children'> & {
13
21
  children?: ReactNode;
14
22
  className?: string;
15
23
  };
24
+ /** One tab button. Its `id` selects the {@link TabPanel} it reveals. */
16
25
  export declare function Tab({ children, className, ...rest }: TabProps): import("react/jsx-runtime").JSX.Element;
26
+ /** Props for {@link TabPanel}, on top of React Aria's `TabPanel` props. */
17
27
  export type TabPanelProps = Omit<RACTabPanelProps, 'className' | 'children'> & {
18
28
  children?: ReactNode;
19
29
  className?: string;
20
30
  };
31
+ /** The content shown for the {@link Tab} whose `id` matches this panel's. */
21
32
  export declare function TabPanel({ children, className, ...rest }: TabPanelProps): import("react/jsx-runtime").JSX.Element;
22
33
  //# sourceMappingURL=Tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAKL,KAAK,SAAS,IAAI,YAAY,EAC9B,KAAK,YAAY,IAA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B,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IAC7E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,6EAA6E;AAC7E,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,2CAMvE"}
@@ -1,6 +1,8 @@
1
1
  import { type ToastQueue } from './queue';
2
2
  import './toastViewTransitions.css';
3
+ /** Screen corner a toast stack anchors to. */
3
4
  export type ToastPlacement = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
5
+ /** Props for {@link ToastRegion}. */
4
6
  export interface ToastRegionProps {
5
7
  /** Queue to render. Defaults to the module-level `defaultToastQueue`. */
6
8
  queue?: ToastQueue;
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAiC,KAAK,UAAU,EAAkB,MAAM,SAAS,CAAC;AAEzF,OAAO,4BAA4B,CAAC;AAEpC,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,CAAC;AAEvF,MAAM,WAAW,gBAAgB;IAC/B,yEAAyE;IACzE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgBD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA+BlD"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAiC,KAAK,UAAU,EAAkB,MAAM,SAAS,CAAC;AAEzF,OAAO,4BAA4B,CAAC;AAEpC,8CAA8C;AAC9C,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,CAAC;AAEvF,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,yEAAyE;IACzE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgBD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA+BlD"}
@@ -1,4 +1,5 @@
1
1
  import { UNSTABLE_ToastQueue } from 'react-aria-components';
2
+ /** Severity of a toast, driving its accent color and icon. */
2
3
  export type ToastTone = 'info' | 'success' | 'warning' | 'error';
3
4
  /** Kit-owned payload rendered inside each toast. */
4
5
  export interface ToastContent {
@@ -6,6 +7,7 @@ export interface ToastContent {
6
7
  description?: string;
7
8
  tone: ToastTone;
8
9
  }
10
+ /** Options for a single toast. */
9
11
  export interface ToastOptions {
10
12
  description?: string;
11
13
  /**
@@ -34,6 +36,11 @@ export declare class ToastQueue {
34
36
  /** Dismiss every queued toast. */
35
37
  clear(): void;
36
38
  }
39
+ /**
40
+ * Creates an independent toast queue. Most apps use the module-level
41
+ * `defaultToastQueue` that `toast()` writes to; make your own when a surface
42
+ * needs its own stack, and pass it to `ToastRegion`.
43
+ */
37
44
  export declare function createToastQueue(): ToastQueue;
38
45
  /**
39
46
  * Folder-internal bridge to the wrapped RAC queue for `ToastRegion`.
@@ -1 +1 @@
1
- {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEjE,oDAAoD;AACpD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACr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M,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACrD,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACrD,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CACpD,CAAC;AAMF,oFAAoF;AACpF,eAAO,MAAM,KAAK,EAAE,OAKlB,CAAC"}
@@ -1,11 +1,14 @@
1
1
  import { type ReactElement, type ReactNode } from 'react';
2
+ /** One segment of a {@link ToggleBar}, identified by its `value`. */
2
3
  export type ToggleBarItem<V extends string | number = string> = {
3
4
  value: V;
4
5
  label?: ReactNode;
5
6
  ariaLabel?: string;
6
7
  disabled?: boolean;
7
8
  };
9
+ /** Segment height and type scale for a {@link ToggleBar}. */
8
10
  export type ToggleBarSize = 'sm' | 'md';
11
+ /** Visual treatment of a {@link ToggleBar}. */
9
12
  export type ToggleBarVariant = 'default' | 'minimal';
10
13
  type CommonProps = {
11
14
  ariaLabel?: string;
@@ -18,6 +21,11 @@ type CommonProps = {
18
21
  * selection becomes a flat accent. For dense diagnostic surfaces. */
19
22
  variant?: ToggleBarVariant;
20
23
  };
24
+ /**
25
+ * Props for {@link ToggleBar}, discriminated on `mode`. Single mode is
26
+ * controlled by one value or `null`; multiple mode by an array, and only it
27
+ * accepts `mixedValues`.
28
+ */
21
29
  export type ToggleBarProps<V extends string | number = string> = (CommonProps & {
22
30
  mode?: 'single';
23
31
  items: readonly ToggleBarItem<V>[];
@@ -47,6 +55,14 @@ export type ToggleBarProps<V extends string | number = string> = (CommonProps &
47
55
  mixedValues?: readonly V[];
48
56
  onChange: (next: V[]) => void;
49
57
  });
58
+ /**
59
+ * Segmented control for choosing among a fixed set of values — one of them
60
+ * (`mode: 'single'`, the default) or any number (`mode: 'multiple'`).
61
+ *
62
+ * Single mode ignores a click on the already-selected segment unless
63
+ * `allowDeselect` is set. Arrow keys move focus without changing the value;
64
+ * Space and Enter commit.
65
+ */
50
66
  export declare function ToggleBar<V extends string | number = string>(props: ToggleBarProps<V>): ReactElement;
51
67
  export {};
52
68
  //# sourceMappingURL=ToggleBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleBar.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleBar/ToggleBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI9E,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI;IAC9D,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,CAAC;AACxC,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAAC;AAErD,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;4EACwE;IACxE,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;0EACsE;IACtE,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,IACzD,CAAC,WAAW,GAAG;IACb,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IACnC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACnC,aAAa,CAAC,EAAE,OAA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AAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,IACzD,CAAC,WAAW,GAAG;IACb,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IACnC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACnC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC,GACF,CAAC,WAAW,GAAG;IACb,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IACnC,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;CAC/B,CAAC,CAAC;AAEP;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,YAAY,CAqGpG"}
@@ -1,4 +1,5 @@
1
1
  import type { KeyboardEvent, ReactNode } from 'react';
2
+ /** Props for {@link ToolButton}. */
2
3
  export interface ToolButtonProps {
3
4
  /** Icon node (typically an SVG component). */
4
5
  icon: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"ToolButton.d.ts","sourceRoot":"","sources":["../../../src/components/ToolButton/ToolButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,WAAW,eAAe;IAC9B,8CAA8C;IAC9C,IAAI,EAAE,SAAS,CAAC;IAChB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,OAAO,IAAI,IAAI,CAAC;IAChB;oCACgC;IAChC,SAAS,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CA4BhD"}
1
+ {"version":3,"file":"ToolButton.d.ts","sourceRoot":"","sources":["../../../src/components/ToolButton/ToolButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,oCAAoC;AACpC,MAAM,WAAW,eAAe;IAC9B,8CAA8C;IAC9C,IAAI,EAAE,SAAS,CAAC;IAChB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,OAAO,IAAI,IAAI,CAAC;IAChB;oCACgC;IAChC,SAAS,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CA4BhD"}
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/ToolButton-DpT-mukU.js";
1
+ import { t as e } from "../../chunks/ToolButton-ClPz5L6j.js";
2
2
  export { e as ToolButton };
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
+ /** Props for {@link ToolGroup}. */
2
3
  export interface ToolGroupProps {
3
4
  children: ReactNode;
4
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ToolGroup.d.ts","sourceRoot":"","sources":["../../../src/components/ToolGroup/ToolGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAS9C"}
1
+ {"version":3,"file":"ToolGroup.d.ts","sourceRoot":"","sources":["../../../src/components/ToolGroup/ToolGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAS9C"}
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
+ /** Props for {@link ToolOptionsBar}. */
2
3
  export interface ToolOptionsBarProps {
3
4
  /**
4
5
  * Context label for the row — e.g. the active tool's name. Rendered
@@ -1 +1 @@
1
- {"version":3,"file":"ToolOptionsBar.d.ts","sourceRoot":"","sources":["../../../src/components/ToolOptionsBar/ToolOptionsBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CASxD"}
1
+ {"version":3,"file":"ToolOptionsBar.d.ts","sourceRoot":"","sources":["../../../src/components/ToolOptionsBar/ToolOptionsBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,wCAAwC;AACxC,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CASxD"}
@@ -1,6 +1,7 @@
1
1
  import type { ToolsApi } from '@weasel-js/core';
2
2
  import { type ModeRegistry } from '@weasel-js/modes';
3
3
  import { type ShortcutInput } from './formatShortcut';
4
+ /** Props for {@link ToolPalette}. */
4
5
  export interface ToolPaletteProps {
5
6
  tools: ToolsApi;
6
7
  orientation?: 'vertical' | 'horizontal';
@@ -23,5 +24,13 @@ export interface ToolPaletteProps {
23
24
  */
24
25
  groupOrder?: readonly string[];
25
26
  }
27
+ /**
28
+ * Toolbar of the registered tools, split into separator-divided groups by
29
+ * each tool's presentation group and navigable by arrow keys. Clicking a
30
+ * button makes that tool active.
31
+ *
32
+ * Given a `modeRegistry`, tools whose capabilities the current mode does not
33
+ * allow render greyed out and inert rather than disappearing.
34
+ */
26
35
  export declare function ToolPalette(props: ToolPaletteProps): import("react/jsx-runtime").JSX.Element;
27
36
  //# sourceMappingURL=ToolPalette.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolPalette.d.ts","sourceRoot":"","sources":["../../../src/components/ToolPalette/ToolPalette.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAK3E,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA8CtE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;kEAE8D;IAC9D,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,aAAa,GAAG,SAAS,CAAC;IAC/D;;;;;OAKG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA0ElD"}
1
+ {"version":3,"file":"ToolPalette.d.ts","sourceRoot":"","sources":["../../../src/components/ToolPalette/ToolPalette.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAK3E,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA8CtE,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;kEAE8D;IAC9D,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,aAAa,GAAG,SAAS,CAAC;IAC/D;;;;;OAKG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA0ElD"}
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "../../chunks/ToolPalette-DPn0owno.js";
1
+ import { n as e, r as t, t as n } from "../../chunks/ToolPalette-DAiVhdtV.js";
2
2
  export { n as ToolPalette, e as formatShortcut, t as formatShortcutParts };
@@ -1,5 +1,9 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { type TooltipProps as RACTooltipProps, type TooltipTriggerComponentProps } from 'react-aria-components';
3
+ /**
4
+ * Props for {@link TooltipTrigger} — React Aria's `TooltipTrigger` props
5
+ * unchanged.
6
+ */
3
7
  export type TooltipTriggerProps = TooltipTriggerComponentProps;
4
8
  /**
5
9
  * TooltipTrigger with kit defaults: ~600 ms open delay, instant close.
@@ -12,6 +16,7 @@ export type TooltipTriggerProps = TooltipTriggerComponentProps;
12
16
  * Escape handlers (deselect, cancel gesture) see only the second press.
13
17
  */
14
18
  export declare function TooltipTrigger(props: TooltipTriggerProps): import("react/jsx-runtime").JSX.Element;
19
+ /** Props for {@link Tooltip}, on top of React Aria's `Tooltip` props. */
15
20
  export type TooltipProps = Omit<RACTooltipProps, 'children' | 'className'> & {
16
21
  children?: ReactNode;
17
22
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAIL,KAAK,YAAY,IAAI,eAAe,EACpC,KAAK,4BAA4B,EAClC,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,mBAAmB,GAAG,4BAA4B,CAAC;AAE/D;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAGxD;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IAC3E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,2CAiB1C"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAIL,KAAK,YAAY,IAAI,eAAe,EACpC,KAAK,4BAA4B,EAClC,MAAM,uBAAuB,CAAC;AAG/B;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,4BAA4B,CAAC;AAE/D;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAGxD;AAED,yEAAyE;AACzE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IAC3E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,2CAkB1C"}
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/Tooltip-Clgn4trm.js";
1
+ import { n as e, t } from "../../chunks/Tooltip-DXJbdR5B.js";
2
2
  export { t as Tooltip, e as TooltipTrigger };
@@ -9,5 +9,9 @@
9
9
  * glyph doesn't get confused with a bullet or list dash.
10
10
  */
11
11
  export declare const MINUS_SIGN = "\u2212";
12
+ /**
13
+ * Formats a number for display, substituting {@link MINUS_SIGN} for the ASCII
14
+ * hyphen `toLocaleString` emits. Non-finite values stringify as-is.
15
+ */
12
16
  export declare function formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
13
17
  //# sourceMappingURL=number.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/format/number.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,WAAM,CAAC;AAE9B,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAKtF"}
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/format/number.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,WAAM,CAAC;AAE9B;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAKtF"}
package/dist/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export * from './components/CurveEditor';
38
38
  export * from './components/PointPlotter';
39
39
  export * from './components/ColorField';
40
40
  export * from './components/GradientEditor';
41
+ export * from './components/BandEditor';
41
42
  export { paintGradientTrack } from './paintGradientTrack';
42
43
  export type { GradientTrackOpts } from './paintGradientTrack';
43
44
  export { oklchToHex, chromaAt } from './color/oklch';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;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sB,CAAC"}
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { a as e, i as t, n, r, t as i } from "./chunks/Plot2D-CEnhzodm.js";
2
- import { n as a, t as o } from "./chunks/Tooltip-Clgn4trm.js";
3
- import { t as s } from "./chunks/ActionBar-GThu74LC.js";
2
+ import { n as a, t as o } from "./chunks/Tooltip-DXJbdR5B.js";
3
+ import { t as s } from "./chunks/ActionBar-BvPEd_GW.js";
4
4
  import { n as c, t as ee } from "./chunks/Badge-DZQqAV4d.js";
5
5
  import "./components/Badge/index.js";
6
6
  import { t as l } from "./chunks/Button-9QNIYugK.js";
7
- import { n as u, t as d } from "./chunks/DataGrid-BQklXGRl.js";
7
+ import { n as u, t as d } from "./chunks/DataGrid-DZQ4Chbd.js";
8
8
  import { a as f, i as p, n as m, o as h, r as g, t as _ } from "./chunks/Keycaps-CFX7UAj8.js";
9
9
  import { t as v } from "./chunks/keyGlyph-BDH5fqkO.js";
10
- import { n as y, r as b, t as x } from "./chunks/Slider-Di2kNqVy.js";
10
+ import { n as y, r as b, t as x } from "./chunks/Slider-DcHnSK5g.js";
11
11
  import { t as S } from "./chunks/ToggleBar-BP1zFcvg.js";
12
12
  import { t as C } from "./chunks/useRovingTabIndex-DBZtq4IH.js";
13
13
  import { t as w } from "./chunks/OptionsBar-CHvH4n4u.js";
@@ -21,41 +21,42 @@ import { t as M } from "./chunks/Input-DpkwYtUY.js";
21
21
  import { t as N } from "./chunks/NumberField-BbzI0GtU.js";
22
22
  import { n as P, t as F } from "./chunks/RadioGroup-CIpHr3g6.js";
23
23
  import { t as I } from "./chunks/RangeSlider-CaDogGTj.js";
24
- import { n as L, t as R } from "./chunks/Select-BE3Y1NrH.js";
24
+ import { n as L, t as R } from "./chunks/Select-CHsuQCp0.js";
25
25
  import { t as z } from "./chunks/Switch-JyVSSAzC.js";
26
- import { a as B, i as V, n as H, r as U, t as W } from "./chunks/Prefs-lgI4x4jF.js";
27
- import { t as G } from "./chunks/Dialog-3FCd_gYi.js";
28
- import { a as K, c as q, i as J, n as Y, o as X, r as Z, s as Q, t as te } from "./chunks/SelectionPanel-Zaw8tYQH.js";
29
- import { t as ne } from "./chunks/ResizeHandle-CCQ2y87y.js";
26
+ import { a as B, i as V, n as H, r as U, t as W } from "./chunks/Prefs-BMR9wMiZ.js";
27
+ import { t as G } from "./chunks/Dialog-CqwdJv_t.js";
28
+ import { a as K, c as q, i as J, n as Y, o as X, r as Z, s as Q, t as te } from "./chunks/SelectionPanel-D_wk_8ZN.js";
29
+ import { t as ne } from "./chunks/ResizeHandle-BOpmtOOj.js";
30
30
  import { t as re } from "./chunks/Sidebar-DP_nyJze.js";
31
- import { t as ie } from "./chunks/SidebarPanel-BpD0ptyg.js";
31
+ import { t as ie } from "./chunks/SidebarPanel-BVTQ1ZyM.js";
32
32
  import { n as ae, r as oe, t as se } from "./chunks/StatusBar-DBO0E0Yd.js";
33
- import { t as ce } from "./chunks/ToolButton-DpT-mukU.js";
33
+ import { t as ce } from "./chunks/ToolButton-ClPz5L6j.js";
34
34
  import { t as le } from "./chunks/ToolGroup-BTIwd4U4.js";
35
- import { n as ue, r as de, t as fe } from "./chunks/ToolPalette-DPn0owno.js";
35
+ import { n as ue, r as de, t as fe } from "./chunks/ToolPalette-DAiVhdtV.js";
36
36
  import "./components/Field/index.js";
37
37
  import { i as pe, n as me, r as he, t as ge } from "./chunks/Tabs-Df0sDomx.js";
38
- import { n as _e, t as ve } from "./chunks/ComboBox-DpxsFVBy.js";
39
- import { n as ye, t as be } from "./chunks/Callout-CFqG5xho.js";
38
+ import { n as _e, t as ve } from "./chunks/ComboBox-ONQISwtI.js";
39
+ import { n as ye, t as be } from "./chunks/Callout-NSOjza6G.js";
40
40
  import { a as xe, i as Se, n as Ce, r as we, t as Te } from "./chunks/Toast-DFw4IrD_.js";
41
- import { a as Ee, i as De, n as $, o as Oe, r as ke, t as Ae } from "./chunks/CurveEditor-fRctbmoV.js";
42
- import { t as je } from "./chunks/PointPlotter-R8hguJPq.js";
43
- import { n as Me, r as Ne, t as Pe } from "./chunks/GradientEditor-BL5kg7a_.js";
44
- import { oklabToSrgbU8 as Fe, oklchToOklab as Ie, rgbaToHex as Le } from "@weasel-js/core";
41
+ import { a as Ee, i as De, n as Oe, o as ke, r as Ae, t as je } from "./chunks/CurveEditor-SmwwvrsA.js";
42
+ import { t as Me } from "./chunks/PointPlotter-BUIse9c4.js";
43
+ import { n as Ne, r as Pe, t as $ } from "./chunks/GradientEditor-B2x7STav.js";
44
+ import { n as Fe, r as Ie, t as Le } from "./chunks/BandEditor-D3i6l299.js";
45
+ import { oklabToSrgbU8 as Re, oklchToOklab as ze, rgbaToHex as Be } from "@weasel-js/core";
45
46
  //#region src/color/oklch.ts
46
- function Re(e, t, n) {
47
- let [r, i, a] = Ie(e, t, n * Math.PI / 180), [o, s, c] = Fe(r, i, a);
48
- return Le([
47
+ function Ve(e, t, n) {
48
+ let [r, i, a] = ze(e, t, n * Math.PI / 180), [o, s, c] = Re(r, i, a);
49
+ return Be([
49
50
  o / 255,
50
51
  s / 255,
51
52
  c / 255
52
53
  ]);
53
54
  }
54
- function ze(e, t) {
55
+ function He(e, t) {
55
56
  let [n, r] = t.lRange;
56
57
  return e <= n ? t.cBot : e >= r ? t.cTop : e <= t.midL ? t.cBot + (t.cPeak - t.cBot) * ((e - n) / (t.midL - n)) : t.cPeak + (t.cTop - t.cPeak) * ((e - t.midL) / (r - t.midL));
57
58
  }
58
59
  //#endregion
59
- export { s as ActionBar, T as ActionsBar, ee as Badge, l as Button, be as Callout, ye as CalloutTrigger, O as Checkbox, k as ColorField, ve as ComboBox, _e as ComboBoxItem, $ as CurveEditor, d as DataGrid, G as Dialog, c as EDGE_PROFILES, j as Field, Me as GradientEditor, Pe as GradientHandles, M as Input, f as KeyCap, p as KeySequence, ke as LayeredCurveEditor, y as MINUS_SIGN, Y as MIXED, N as NumberField, w as OptionsBar, i as Plot2D, je as PointPlotter, D as Powerline, W as PrefsDialog, H as PrefsForm, F as Radio, P as RadioGroup, I as RangeSlider, ne as ResizeHandle, R as Select, L as SelectItem, te as SelectionPanel, re as Sidebar, ie as SidebarPanel, x as Slider, se as StatusBar, ae as StatusBarItem, oe as StatusBarSpacer, z as Switch, ge as Tab, me as TabList, he as TabPanel, pe as Tabs, Ce as ToastQueue, Te as ToastRegion, S as ToggleBar, ce as ToolButton, le as ToolGroup, E as ToolOptionsBar, fe as ToolPalette, o as Tooltip, a as TooltipTrigger, Z as aggregateValue, ze as chromaAt, J as classifyKind, De as createFunctionLayer, Ae as createSetCurveOp, we as createToastQueue, Se as defaultToastQueue, _ as detectPlatform, t as dlog, K as effectiveSections, A as fieldClasses, b as formatNumber, ue as formatShortcut, de as formatShortcutParts, Ee as functionLayerState, h as inferKeycapKind, e as isDebugEnabled, U as isPrefLeaf, v as keyGlyph, m as keySpecFromKey, g as keySpecsFromMods, X as kindBreakdown, n as modelToPlot, Q as nodeValueAt, Re as oklchToHex, Ne as paintGradientTrack, r as plotToModel, V as prefValueAtPath, Oe as sampleByInterpolation, q as setAtPath, xe as toast, u as useReorderDragList, C as useRovingTabIndex, B as visiblePrefSubtree };
60
+ export { s as ActionBar, T as ActionsBar, ee as Badge, Le as BandEditor, l as Button, be as Callout, ye as CalloutTrigger, O as Checkbox, k as ColorField, ve as ComboBox, _e as ComboBoxItem, Oe as CurveEditor, d as DataGrid, G as Dialog, c as EDGE_PROFILES, j as Field, Ne as GradientEditor, $ as GradientHandles, M as Input, f as KeyCap, p as KeySequence, Ae as LayeredCurveEditor, y as MINUS_SIGN, Y as MIXED, N as NumberField, w as OptionsBar, i as Plot2D, Me as PointPlotter, D as Powerline, W as PrefsDialog, H as PrefsForm, F as Radio, P as RadioGroup, I as RangeSlider, ne as ResizeHandle, R as Select, L as SelectItem, te as SelectionPanel, re as Sidebar, ie as SidebarPanel, x as Slider, se as StatusBar, ae as StatusBarItem, oe as StatusBarSpacer, z as Switch, ge as Tab, me as TabList, he as TabPanel, pe as Tabs, Ce as ToastQueue, Te as ToastRegion, S as ToggleBar, ce as ToolButton, le as ToolGroup, E as ToolOptionsBar, fe as ToolPalette, o as Tooltip, a as TooltipTrigger, Z as aggregateValue, He as chromaAt, J as classifyKind, De as createFunctionLayer, je as createSetCurveOp, we as createToastQueue, Se as defaultToastQueue, _ as detectPlatform, t as dlog, K as effectiveSections, A as fieldClasses, b as formatNumber, ue as formatShortcut, de as formatShortcutParts, Ee as functionLayerState, h as inferKeycapKind, e as isDebugEnabled, U as isPrefLeaf, v as keyGlyph, m as keySpecFromKey, g as keySpecsFromMods, X as kindBreakdown, Fe as linearScale, Ie as logScale, n as modelToPlot, Q as nodeValueAt, Ve as oklchToHex, Pe as paintGradientTrack, r as plotToModel, V as prefValueAtPath, ke as sampleByInterpolation, q as setAtPath, xe as toast, u as useReorderDragList, C as useRovingTabIndex, B as visiblePrefSubtree };
60
61
 
61
62
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/color/oklch.ts"],"sourcesContent":["// OKLCH math from Björn Ottosson: https://bottosson.github.io/posts/oklab/\nimport { oklchToOklab, oklabToSrgbU8, rgbaToHex } from '@weasel-js/core';\n\nexport type ChromaCurve = {\n lRange: [number, number];\n midL: number;\n cBot: number;\n cPeak: number;\n cTop: number;\n};\n\nexport type ChromaCurvePoint = { L: number; C: number };\n\nexport function oklchToHex(L: number, C: number, Hdeg: number): string {\n // Delegate to the kit's OKLab pipeline (kit angle unit is radians) →\n // gamut-clipped u8 sRGB → `#rrggbb`.\n const [l, a, b] = oklchToOklab(L, C, (Hdeg * Math.PI) / 180);\n const [r, g, bl] = oklabToSrgbU8(l, a, b);\n return rgbaToHex([r / 255, g / 255, bl / 255]);\n}\n\nexport function chromaAt(L: number, curve: ChromaCurve): number {\n const [lo, hi] = curve.lRange;\n if (L <= lo) return curve.cBot;\n if (L >= hi) return curve.cTop;\n if (L <= curve.midL) return curve.cBot + (curve.cPeak - curve.cBot) * ((L - lo) / (curve.midL - lo));\n return curve.cPeak + (curve.cTop - curve.cPeak) * ((L - curve.midL) / (hi - curve.midL));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,SAAgB,GAAW,GAAW,GAAW,GAAsB;CAGrE,IAAM,CAAC,GAAG,GAAG,KAAK,GAAa,GAAG,GAAI,IAAO,KAAK,KAAM,IAAI,EACtD,CAAC,GAAG,GAAG,KAAM,GAAc,GAAG,GAAG,EAAE;AACzC,QAAO,GAAU;EAAC,IAAI;EAAK,IAAI;EAAK,IAAK;EAAI,CAAC;;AAGhD,SAAgB,GAAS,GAAW,GAA4B;CAC9D,IAAM,CAAC,GAAI,KAAM,EAAM;AAIvB,QAHI,KAAK,IAAW,EAAM,OACtB,KAAK,IAAW,EAAM,OACtB,KAAK,EAAM,OAAa,EAAM,QAAQ,EAAM,QAAQ,EAAM,UAAU,IAAI,MAAO,EAAM,OAAO,MACzF,EAAM,SAAS,EAAM,OAAO,EAAM,WAAW,IAAI,EAAM,SAAS,IAAK,EAAM"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/color/oklch.ts"],"sourcesContent":["// OKLCH math from Björn Ottosson: https://bottosson.github.io/posts/oklab/\nimport { oklchToOklab, oklabToSrgbU8, rgbaToHex } from '@weasel-js/core';\n\n/**\n * A chroma envelope over lightness, as three linear segments: flat at `cBot`\n * below `lRange[0]`, rising to `cPeak` at `midL`, falling to `cTop` at\n * `lRange[1]`, flat beyond. Keeps a color ramp inside gamut at the light and\n * dark ends while staying saturated through the middle.\n */\nexport type ChromaCurve = {\n lRange: [number, number];\n midL: number;\n cBot: number;\n cPeak: number;\n cTop: number;\n};\n\n/** A single lightness/chroma sample. */\nexport type ChromaCurvePoint = { L: number; C: number };\n\n/**\n * Converts an OKLCH color to a gamut-clipped `#rrggbb` string. Hue is in\n * degrees, unlike the kit's OKLab helpers which take radians.\n */\nexport function oklchToHex(L: number, C: number, Hdeg: number): string {\n // Delegate to the kit's OKLab pipeline (kit angle unit is radians) →\n // gamut-clipped u8 sRGB → `#rrggbb`.\n const [l, a, b] = oklchToOklab(L, C, (Hdeg * Math.PI) / 180);\n const [r, g, bl] = oklabToSrgbU8(l, a, b);\n return rgbaToHex([r / 255, g / 255, bl / 255]);\n}\n\n/** Evaluates a {@link ChromaCurve} at a lightness, clamping outside its range. */\nexport function chromaAt(L: number, curve: ChromaCurve): number {\n const [lo, hi] = curve.lRange;\n if (L <= lo) return curve.cBot;\n if (L >= hi) return curve.cTop;\n if (L <= curve.midL) return curve.cBot + (curve.cPeak - curve.cBot) * ((L - lo) / (curve.midL - lo));\n return curve.cPeak + (curve.cTop - curve.cPeak) * ((L - curve.midL) / (hi - curve.midL));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,SAAgB,GAAW,GAAW,GAAW,GAAsB;CAGrE,IAAM,CAAC,GAAG,GAAG,KAAK,GAAa,GAAG,GAAI,IAAO,KAAK,KAAM,IAAI,EACtD,CAAC,GAAG,GAAG,KAAM,GAAc,GAAG,GAAG,EAAE;AACzC,QAAO,GAAU;EAAC,IAAI;EAAK,IAAI;EAAK,IAAK;EAAI,CAAC;;AAIhD,SAAgB,GAAS,GAAW,GAA4B;CAC9D,IAAM,CAAC,GAAI,KAAM,EAAM;AAIvB,QAHI,KAAK,IAAW,EAAM,OACtB,KAAK,IAAW,EAAM,OACtB,KAAK,EAAM,OAAa,EAAM,QAAQ,EAAM,QAAQ,EAAM,UAAU,IAAI,MAAO,EAAM,OAAO,MACzF,EAAM,SAAS,EAAM,OAAO,EAAM,WAAW,IAAI,EAAM,SAAS,IAAK,EAAM"}
@@ -1,5 +1,13 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { TrackCtx } from './components/Slider';
3
+ /**
4
+ * Options for {@link paintGradientTrack}.
5
+ *
6
+ * `gradient` maps a normalized position along the track (0 to 1) to a CSS
7
+ * color; `samples` is how many stops the resulting linear-gradient uses.
8
+ * `activeRange`, given in the slider's own value units, keeps that span at
9
+ * full strength and dims + hatches the rest.
10
+ */
3
11
  export type GradientTrackOpts = {
4
12
  gradient: (t: number) => string;
5
13
  samples?: number;
@@ -11,5 +19,10 @@ export type GradientTrackOpts = {
11
19
  dim?: number;
12
20
  };
13
21
  };
22
+ /**
23
+ * Builds a `Slider` `renderTrack` function that paints the track as a
24
+ * sampled color gradient, optionally dimming and hatching the portions
25
+ * outside an active range.
26
+ */
14
27
  export declare function paintGradientTrack(opts: GradientTrackOpts): (ctx: TrackCtx) => ReactNode;
15
28
  //# sourceMappingURL=paintGradientTrack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paintGradientTrack.d.ts","sourceRoot":"","sources":["../src/paintGradientTrack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC;AAIF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,GAAG,CAAC,GAAG,EAAE,QAAQ,KAAK,SAAS,CAuCxF"}
1
+ {"version":3,"file":"paintGradientTrack.d.ts","sourceRoot":"","sources":["../src/paintGradientTrack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,OAAO,CA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