@weasel-js/ui 1.4.2 → 1.4.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 (218) hide show
  1. package/dist/chunks/{ActionBar-D4N1o4LB.js → ActionBar-DxGp3WuZ.js} +2 -2
  2. package/dist/chunks/{ActionBar-D4N1o4LB.js.map → ActionBar-DxGp3WuZ.js.map} +1 -1
  3. package/dist/chunks/{ActionsBar-C2oXIJk-.js → ActionsBar-D1VFreoj.js} +3 -3
  4. package/dist/chunks/{ActionsBar-C2oXIJk-.js.map → ActionsBar-D1VFreoj.js.map} +1 -1
  5. package/dist/chunks/{Badge-7yQseqZb.js → Badge-Bf8Rd1R6.js} +1 -1
  6. package/dist/chunks/{Badge-7yQseqZb.js.map → Badge-Bf8Rd1R6.js.map} +1 -1
  7. package/dist/chunks/{BandEditor-CqiMlSF9.js → BandEditor-CUlbOlJi.js} +1 -1
  8. package/dist/chunks/{BandEditor-CqiMlSF9.js.map → BandEditor-CUlbOlJi.js.map} +1 -1
  9. package/dist/chunks/Button-CExdkQcU.js +90 -0
  10. package/dist/chunks/{Button-0OdcoOMx.js.map → Button-CExdkQcU.js.map} +1 -1
  11. package/dist/chunks/Callout-Dvt6lqVn.js +122 -0
  12. package/dist/chunks/Callout-Dvt6lqVn.js.map +1 -0
  13. package/dist/chunks/{Checkbox-CkcngYWa.js → Checkbox-D-pVpobU.js} +1 -1
  14. package/dist/chunks/{Checkbox-CkcngYWa.js.map → Checkbox-D-pVpobU.js.map} +1 -1
  15. package/dist/chunks/{ColorField-CCBSv8dp.js → ColorField-C20aRvCg.js} +2 -2
  16. package/dist/chunks/{ColorField-CCBSv8dp.js.map → ColorField-C20aRvCg.js.map} +1 -1
  17. package/dist/chunks/ComboBox-BBRRWvdc.js +107 -0
  18. package/dist/chunks/ComboBox-BBRRWvdc.js.map +1 -0
  19. package/dist/chunks/{CurveEditor-BNbP2wgq.js → CurveEditor-DtjdpJVB.js} +2 -2
  20. package/dist/chunks/{CurveEditor-BNbP2wgq.js.map → CurveEditor-DtjdpJVB.js.map} +1 -1
  21. package/dist/chunks/{DataGrid-CiJGbgok.js → DataGrid-BVdDMZkQ.js} +2 -2
  22. package/dist/chunks/{DataGrid-CiJGbgok.js.map → DataGrid-BVdDMZkQ.js.map} +1 -1
  23. package/dist/chunks/{DetentSlider-C6RTsiPi.js → DetentSlider-BpD7bgjN.js} +2 -2
  24. package/dist/chunks/{DetentSlider-C6RTsiPi.js.map → DetentSlider-BpD7bgjN.js.map} +1 -1
  25. package/dist/chunks/Dialog-CYBLjwbd.js +61 -0
  26. package/dist/chunks/Dialog-CYBLjwbd.js.map +1 -0
  27. package/dist/chunks/{Disclosure-aSX2CZlw.js → Disclosure-DiA6UKdM.js} +1 -1
  28. package/dist/chunks/{Disclosure-aSX2CZlw.js.map → Disclosure-DiA6UKdM.js.map} +1 -1
  29. package/dist/chunks/{DragHandleGlyph-C6GJyfnm.js → DragHandleGlyph-CppAz4_8.js} +1 -1
  30. package/dist/chunks/{DragHandleGlyph-C6GJyfnm.js.map → DragHandleGlyph-CppAz4_8.js.map} +1 -1
  31. package/dist/chunks/{Field-BUroh92b.js → Field-dzlxOGxT.js} +1 -1
  32. package/dist/chunks/{Field-BUroh92b.js.map → Field-dzlxOGxT.js.map} +1 -1
  33. package/dist/chunks/{FontFamilySelect-xjOHQMsK.js → FontFamilySelect-DIJ4phXz.js} +2 -2
  34. package/dist/chunks/{FontFamilySelect-xjOHQMsK.js.map → FontFamilySelect-DIJ4phXz.js.map} +1 -1
  35. package/dist/chunks/{GradientEditor-D1IVEkHO.js → GradientEditor-BLpAtMDK.js} +4 -4
  36. package/dist/chunks/{GradientEditor-D1IVEkHO.js.map → GradientEditor-BLpAtMDK.js.map} +1 -1
  37. package/dist/chunks/{InlineRange-DG2dvtb4.js → InlineRange-CcfzY80y.js} +2 -2
  38. package/dist/chunks/{InlineRange-DG2dvtb4.js.map → InlineRange-CcfzY80y.js.map} +1 -1
  39. package/dist/chunks/{Input-CxMANia3.js → Input-CoKOtyD0.js} +2 -2
  40. package/dist/chunks/{Input-CxMANia3.js.map → Input-CoKOtyD0.js.map} +1 -1
  41. package/dist/chunks/{ItemList-BcdHAah3.js → ItemList-BZJQReXD.js} +1 -1
  42. package/dist/chunks/{ItemList-BcdHAah3.js.map → ItemList-BZJQReXD.js.map} +1 -1
  43. package/dist/chunks/{Keycaps-D-UGWDrt.js → Keycaps-DSeq6QWH.js} +1 -1
  44. package/dist/chunks/{Keycaps-D-UGWDrt.js.map → Keycaps-DSeq6QWH.js.map} +1 -1
  45. package/dist/chunks/{LayerStack-DQnWSOVC.js → LayerStack-DOylrQcm.js} +3 -3
  46. package/dist/chunks/{LayerStack-DQnWSOVC.js.map → LayerStack-DOylrQcm.js.map} +1 -1
  47. package/dist/chunks/{NumberField-DLw4UmF3.js → NumberField-DBowmOfe.js} +2 -2
  48. package/dist/chunks/{NumberField-DLw4UmF3.js.map → NumberField-DBowmOfe.js.map} +1 -1
  49. package/dist/chunks/{OptionsBar-BXyk_5gT.js → OptionsBar-D_Cd3ZYs.js} +3 -3
  50. package/dist/chunks/{OptionsBar-BXyk_5gT.js.map → OptionsBar-D_Cd3ZYs.js.map} +1 -1
  51. package/dist/chunks/{PaintInput-DCgWtKxw.js → PaintInput-B7AScmHN.js} +5 -5
  52. package/dist/chunks/{PaintInput-DCgWtKxw.js.map → PaintInput-B7AScmHN.js.map} +1 -1
  53. package/dist/chunks/{PatternPicker-CPFEhpXD.js → PatternPicker-Ba22Bf4L.js} +2 -2
  54. package/dist/chunks/{PatternPicker-CPFEhpXD.js.map → PatternPicker-Ba22Bf4L.js.map} +1 -1
  55. package/dist/chunks/{Plot2D-BtI_c25q.js → Plot2D-C97pO13t.js} +1 -1
  56. package/dist/chunks/{Plot2D-BtI_c25q.js.map → Plot2D-C97pO13t.js.map} +1 -1
  57. package/dist/chunks/{PointPlotter-B-DvXjkL.js → PointPlotter-CbDKVggs.js} +2 -2
  58. package/dist/chunks/{PointPlotter-B-DvXjkL.js.map → PointPlotter-CbDKVggs.js.map} +1 -1
  59. package/dist/chunks/{Powerline-CJYCbqSc.js → Powerline-BaHDJlcO.js} +2 -2
  60. package/dist/chunks/{Powerline-CJYCbqSc.js.map → Powerline-BaHDJlcO.js.map} +1 -1
  61. package/dist/chunks/Prefs-4JSEtuU-.js +294 -0
  62. package/dist/chunks/Prefs-4JSEtuU-.js.map +1 -0
  63. package/dist/chunks/{Properties-fLSEE65J.js → Properties-BpUYKi7-.js} +129 -117
  64. package/dist/chunks/Properties-BpUYKi7-.js.map +1 -0
  65. package/dist/chunks/{RadioGroup-VGAaLYaR.js → RadioGroup-B2_LUgDp.js} +2 -2
  66. package/dist/chunks/{RadioGroup-VGAaLYaR.js.map → RadioGroup-B2_LUgDp.js.map} +1 -1
  67. package/dist/chunks/{RangeSlider-DefoAOsh.js → RangeSlider-S2R3zA8N.js} +8 -8
  68. package/dist/chunks/RangeSlider-S2R3zA8N.js.map +1 -0
  69. package/dist/chunks/{ResizeHandle-DMJdqRud.js → ResizeHandle-BrCO0JrH.js} +1 -1
  70. package/dist/chunks/{ResizeHandle-DMJdqRud.js.map → ResizeHandle-BrCO0JrH.js.map} +1 -1
  71. package/dist/chunks/Select-CacMfs4v.js +124 -0
  72. package/dist/chunks/Select-CacMfs4v.js.map +1 -0
  73. package/dist/chunks/{SelectionPanel-BwBevj5F.js → SelectionPanel-C59wavdA.js} +203 -202
  74. package/dist/chunks/SelectionPanel-C59wavdA.js.map +1 -0
  75. package/dist/chunks/{Sidebar-CeSRkWKK.js → Sidebar-BvwjZiFm.js} +1 -1
  76. package/dist/chunks/{Sidebar-CeSRkWKK.js.map → Sidebar-BvwjZiFm.js.map} +1 -1
  77. package/dist/chunks/{SidebarPanel-BWIiJv7M.js → SidebarPanel-D5Ua2vyP.js} +2 -2
  78. package/dist/chunks/{SidebarPanel-BWIiJv7M.js.map → SidebarPanel-D5Ua2vyP.js.map} +1 -1
  79. package/dist/chunks/{Slider-X6WcO-6s.js → Slider-Bs-KSYgQ.js} +15 -15
  80. package/dist/chunks/Slider-Bs-KSYgQ.js.map +1 -0
  81. package/dist/chunks/{StatusBar-COyPUoEs.js → StatusBar-Bqv4D0dW.js} +1 -1
  82. package/dist/chunks/{StatusBar-COyPUoEs.js.map → StatusBar-Bqv4D0dW.js.map} +1 -1
  83. package/dist/chunks/{Switch-Y097LD1L.js → Switch-C4NU-me1.js} +1 -1
  84. package/dist/chunks/{Switch-Y097LD1L.js.map → Switch-C4NU-me1.js.map} +1 -1
  85. package/dist/chunks/{Tabs-BDzkqWDE.js → Tabs-BT3CDkoQ.js} +1 -1
  86. package/dist/chunks/{Tabs-BDzkqWDE.js.map → Tabs-BT3CDkoQ.js.map} +1 -1
  87. package/dist/chunks/{Timeline-D9xQBdKN.js → Timeline-Bz806JbE.js} +2 -2
  88. package/dist/chunks/{Timeline-D9xQBdKN.js.map → Timeline-Bz806JbE.js.map} +1 -1
  89. package/dist/chunks/{Toast-DX0iLdC3.js → Toast-B7ylq7fz.js} +1 -1
  90. package/dist/chunks/{Toast-DX0iLdC3.js.map → Toast-B7ylq7fz.js.map} +1 -1
  91. package/dist/chunks/{ToggleBar-fQGk_Wf_.js → ToggleBar-Bxwv6xvj.js} +2 -2
  92. package/dist/chunks/{ToggleBar-fQGk_Wf_.js.map → ToggleBar-Bxwv6xvj.js.map} +1 -1
  93. package/dist/chunks/{ToolButton-DpqTcgLa.js → ToolButton-CtDkqUIc.js} +2 -2
  94. package/dist/chunks/{ToolButton-DpqTcgLa.js.map → ToolButton-CtDkqUIc.js.map} +1 -1
  95. package/dist/chunks/{ToolGroup-DOrObiiA.js → ToolGroup-zDtqt0QJ.js} +1 -1
  96. package/dist/chunks/{ToolGroup-DOrObiiA.js.map → ToolGroup-zDtqt0QJ.js.map} +1 -1
  97. package/dist/chunks/{ToolOptionsBar-f6b5u99i.js → ToolOptionsBar-B2xPWzJf.js} +1 -1
  98. package/dist/chunks/{ToolOptionsBar-f6b5u99i.js.map → ToolOptionsBar-B2xPWzJf.js.map} +1 -1
  99. package/dist/chunks/{ToolPalette-B_Zjw6dC.js → ToolPalette-BbrMHfQ9.js} +5 -5
  100. package/dist/chunks/{ToolPalette-B_Zjw6dC.js.map → ToolPalette-BbrMHfQ9.js.map} +1 -1
  101. package/dist/chunks/Tooltip-BHre_vbI.js +42 -0
  102. package/dist/chunks/Tooltip-BHre_vbI.js.map +1 -0
  103. package/dist/chunks/{keyGlyph-L5bsDQe5.js → keyGlyph-Bp0wnLHn.js} +1 -1
  104. package/dist/chunks/{keyGlyph-L5bsDQe5.js.map → keyGlyph-Bp0wnLHn.js.map} +1 -1
  105. package/dist/chunks/{number-Dy633mrx.js → number-Bv1nbhOJ.js} +1 -1
  106. package/dist/chunks/{number-Dy633mrx.js.map → number-Bv1nbhOJ.js.map} +1 -1
  107. package/dist/chunks/portalHost-CjpCnuGU.js +28 -0
  108. package/dist/chunks/portalHost-CjpCnuGU.js.map +1 -0
  109. package/dist/chunks/range.module-CvSfABmu.js +8 -0
  110. package/dist/chunks/range.module-CvSfABmu.js.map +1 -0
  111. package/dist/chunks/schema-CtWwGbqJ.js +41 -0
  112. package/dist/chunks/schema-CtWwGbqJ.js.map +1 -0
  113. package/dist/chunks/{segmentedControl.module-pcPOsNey.js → segmentedControl.module-BgvAPkSZ.js} +1 -1
  114. package/dist/chunks/{segmentedControl.module-pcPOsNey.js.map → segmentedControl.module-BgvAPkSZ.js.map} +1 -1
  115. package/dist/chunks/{useReorderDragList-C2fhvbU1.js → useReorderDragList-CSQGd7zQ.js} +1 -1
  116. package/dist/chunks/{useReorderDragList-C2fhvbU1.js.map → useReorderDragList-CSQGd7zQ.js.map} +1 -1
  117. package/dist/chunks/{useRovingTabIndex-DqXFNDaD.js → useRovingTabIndex-Dkpf_KhN.js} +1 -1
  118. package/dist/chunks/{useRovingTabIndex-DqXFNDaD.js.map → useRovingTabIndex-Dkpf_KhN.js.map} +1 -1
  119. package/dist/components/ActionBar/index.js +1 -1
  120. package/dist/components/ActionsBar/index.js +1 -1
  121. package/dist/components/Badge/index.js +1 -1
  122. package/dist/components/BandEditor/index.js +1 -1
  123. package/dist/components/Button/Button.d.ts +5 -0
  124. package/dist/components/Button/Button.d.ts.map +1 -1
  125. package/dist/components/Button/index.js +1 -1
  126. package/dist/components/Callout/Callout.d.ts +2 -1
  127. package/dist/components/Callout/Callout.d.ts.map +1 -1
  128. package/dist/components/Callout/index.js +1 -1
  129. package/dist/components/Checkbox/index.js +1 -1
  130. package/dist/components/ColorField/index.js +1 -1
  131. package/dist/components/ComboBox/ComboBox.d.ts +9 -2
  132. package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
  133. package/dist/components/ComboBox/index.js +1 -1
  134. package/dist/components/CurveEditor/index.js +1 -1
  135. package/dist/components/DataGrid/index.js +1 -1
  136. package/dist/components/DetentSlider/index.js +1 -1
  137. package/dist/components/Dialog/Dialog.d.ts +2 -1
  138. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  139. package/dist/components/Dialog/index.js +1 -1
  140. package/dist/components/Disclosure/index.js +1 -1
  141. package/dist/components/DragHandleGlyph/index.js +1 -1
  142. package/dist/components/Field/index.js +1 -1
  143. package/dist/components/FontFamilySelect/index.js +1 -1
  144. package/dist/components/GradientEditor/index.js +1 -1
  145. package/dist/components/InlineRange/index.js +1 -1
  146. package/dist/components/Input/index.js +1 -1
  147. package/dist/components/ItemList/index.js +1 -1
  148. package/dist/components/Keycaps/index.js +2 -2
  149. package/dist/components/LayerStack/index.js +1 -1
  150. package/dist/components/NumberField/index.js +1 -1
  151. package/dist/components/OptionsBar/index.js +1 -1
  152. package/dist/components/PaintInput/index.js +1 -1
  153. package/dist/components/PatternPicker/index.js +1 -1
  154. package/dist/components/Plot2D/index.js +1 -1
  155. package/dist/components/PointPlotter/index.js +1 -1
  156. package/dist/components/Powerline/index.js +2 -2
  157. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
  158. package/dist/components/Prefs/index.d.ts +1 -1
  159. package/dist/components/Prefs/index.d.ts.map +1 -1
  160. package/dist/components/Prefs/index.js +3 -2
  161. package/dist/components/Prefs/schema.d.ts +17 -1
  162. package/dist/components/Prefs/schema.d.ts.map +1 -1
  163. package/dist/components/Properties/PropertyPanel.d.ts +27 -2
  164. package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
  165. package/dist/components/Properties/index.js +1 -1
  166. package/dist/components/RadioGroup/index.js +1 -1
  167. package/dist/components/RangeSlider/RangeSlider.d.ts +5 -0
  168. package/dist/components/RangeSlider/RangeSlider.d.ts.map +1 -1
  169. package/dist/components/RangeSlider/index.js +1 -1
  170. package/dist/components/ResizeHandle/index.js +1 -1
  171. package/dist/components/Select/Select.d.ts +2 -1
  172. package/dist/components/Select/Select.d.ts.map +1 -1
  173. package/dist/components/Select/index.js +1 -1
  174. package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
  175. package/dist/components/SelectionPanel/index.js +1 -1
  176. package/dist/components/Sidebar/index.js +1 -1
  177. package/dist/components/SidebarPanel/index.js +1 -1
  178. package/dist/components/Slider/index.js +1 -1
  179. package/dist/components/StatusBar/index.js +1 -1
  180. package/dist/components/Switch/index.js +1 -1
  181. package/dist/components/Tabs/index.js +1 -1
  182. package/dist/components/Timeline/index.js +1 -1
  183. package/dist/components/Toast/index.js +1 -1
  184. package/dist/components/ToggleBar/index.js +1 -1
  185. package/dist/components/ToolButton/index.js +1 -1
  186. package/dist/components/ToolGroup/index.js +1 -1
  187. package/dist/components/ToolOptionsBar/index.js +1 -1
  188. package/dist/components/ToolPalette/index.js +1 -1
  189. package/dist/components/Tooltip/Tooltip.d.ts +2 -1
  190. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  191. package/dist/components/Tooltip/index.js +1 -1
  192. package/dist/index.d.ts +1 -0
  193. package/dist/index.d.ts.map +1 -1
  194. package/dist/index.js +63 -61
  195. package/dist/index.js.map +1 -1
  196. package/dist/overlays/portalHost.d.ts +55 -0
  197. package/dist/overlays/portalHost.d.ts.map +1 -0
  198. package/dist/style.css +1 -1
  199. package/package.json +6 -6
  200. package/dist/chunks/Button-0OdcoOMx.js +0 -87
  201. package/dist/chunks/Callout-63z0T-w3.js +0 -116
  202. package/dist/chunks/Callout-63z0T-w3.js.map +0 -1
  203. package/dist/chunks/ComboBox-TnIrRldB.js +0 -89
  204. package/dist/chunks/ComboBox-TnIrRldB.js.map +0 -1
  205. package/dist/chunks/Dialog-D8pVzsw8.js +0 -59
  206. package/dist/chunks/Dialog-D8pVzsw8.js.map +0 -1
  207. package/dist/chunks/Prefs-BqnwyjmH.js +0 -300
  208. package/dist/chunks/Prefs-BqnwyjmH.js.map +0 -1
  209. package/dist/chunks/Properties-fLSEE65J.js.map +0 -1
  210. package/dist/chunks/RangeSlider-DefoAOsh.js.map +0 -1
  211. package/dist/chunks/Select-DGafwTF0.js +0 -121
  212. package/dist/chunks/Select-DGafwTF0.js.map +0 -1
  213. package/dist/chunks/SelectionPanel-BwBevj5F.js.map +0 -1
  214. package/dist/chunks/Slider-X6WcO-6s.js.map +0 -1
  215. package/dist/chunks/Tooltip-Bq8Hvj4r.js +0 -40
  216. package/dist/chunks/Tooltip-Bq8Hvj4r.js.map +0 -1
  217. package/dist/chunks/range.module-CO59aXEH.js +0 -8
  218. package/dist/chunks/range.module-CO59aXEH.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,78 +1,80 @@
1
1
  import { n as e, t } from "./chunks/dlog-CMYiRF3Q.js";
2
2
  import { n, t as r } from "./chunks/Icon-DBXtBB1f.js";
3
3
  import { $ as i, A as a, B as o, C as s, D as c, E as ee, F as te, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, T as S, U as C, V as w, W as T, X as E, Y as D, Z as O, _ as k, a as A, at as j, b as M, c as N, ct as P, d as F, dt as I, et as L, f as R, ft as z, g as B, h as V, i as H, it as U, j as W, k as G, l as K, lt as q, m as J, n as Y, nt as X, o as Z, ot as Q, p as ne, q as re, r as ie, rt as ae, s as oe, st as se, t as ce, tt as le, u as ue, ut as de, v as fe, w as pe, x as me, y as he, z as ge } from "./chunks/icons-BV27dhKB.js";
4
- import { a as _e, i as ve, n as ye, o as be, r as xe, s as Se, t as Ce } from "./chunks/Prefs-BqnwyjmH.js";
5
- import { n as we, t as Te } from "./chunks/Tooltip-Bq8Hvj4r.js";
6
- import { t as Ee } from "./chunks/ActionBar-D4N1o4LB.js";
7
- import { n as De, t as Oe } from "./chunks/Badge-7yQseqZb.js";
4
+ import { i as _e, n as ve, r as ye, t as be } from "./chunks/Prefs-4JSEtuU-.js";
5
+ import { n as xe, r as Se, t as Ce } from "./chunks/portalHost-CjpCnuGU.js";
6
+ import { n as we, t as Te } from "./chunks/Tooltip-BHre_vbI.js";
7
+ import { t as Ee } from "./chunks/ActionBar-DxGp3WuZ.js";
8
+ import { n as De, t as Oe } from "./chunks/Badge-Bf8Rd1R6.js";
8
9
  import "./components/Badge/index.js";
9
- import { t as ke } from "./chunks/Button-0OdcoOMx.js";
10
- import { t as Ae } from "./chunks/useReorderDragList-C2fhvbU1.js";
11
- import { t as je } from "./chunks/DataGrid-CiJGbgok.js";
12
- import { n as Me, t as Ne } from "./chunks/Disclosure-aSX2CZlw.js";
13
- import { t as Pe } from "./chunks/DragHandleGlyph-C6GJyfnm.js";
14
- import { a as Fe, i as Ie, n as Le, o as Re, r as ze, t as Be } from "./chunks/Keycaps-D-UGWDrt.js";
15
- import { t as Ve } from "./chunks/keyGlyph-L5bsDQe5.js";
16
- import { t as He } from "./chunks/LayerStack-DQnWSOVC.js";
17
- import { t as Ue } from "./chunks/Slider-X6WcO-6s.js";
18
- import { i as We, n as Ge, r as Ke, t as qe } from "./chunks/number-Dy633mrx.js";
19
- import { t as Je } from "./chunks/ItemList-BcdHAah3.js";
20
- import { t as Ye } from "./chunks/ToggleBar-fQGk_Wf_.js";
21
- import { t as Xe } from "./chunks/useRovingTabIndex-DqXFNDaD.js";
22
- import { t as Ze } from "./chunks/OptionsBar-BXyk_5gT.js";
23
- import { t as Qe } from "./chunks/ActionsBar-C2oXIJk-.js";
24
- import { t as $e } from "./chunks/ToolOptionsBar-f6b5u99i.js";
25
- import { t as et } from "./chunks/InlineRange-DG2dvtb4.js";
26
- import { t as tt } from "./chunks/ColorField-CCBSv8dp.js";
27
- import { i as nt, n as rt, r as it, t as $ } from "./chunks/GradientEditor-D1IVEkHO.js";
28
- import { n as at, t as ot } from "./chunks/PatternPicker-CPFEhpXD.js";
29
- import { t as st } from "./chunks/PaintInput-DCgWtKxw.js";
30
- import { t as ct } from "./chunks/Powerline-CJYCbqSc.js";
31
- import { t as lt } from "./chunks/Checkbox-CkcngYWa.js";
32
- import { n as ut, t as dt } from "./chunks/Field-BUroh92b.js";
33
- import { t as ft } from "./chunks/Input-CxMANia3.js";
34
- import { t as pt } from "./chunks/NumberField-DLw4UmF3.js";
35
- import { n as mt, t as ht } from "./chunks/RadioGroup-VGAaLYaR.js";
36
- import { t as gt } from "./chunks/RangeSlider-DefoAOsh.js";
37
- import { n as _t, t as vt } from "./chunks/Select-DGafwTF0.js";
38
- import { t as yt } from "./chunks/Switch-Y097LD1L.js";
39
- import { t as bt } from "./chunks/Dialog-D8pVzsw8.js";
40
- import { n as xt, r as St, t as Ct } from "./chunks/Plot2D-BtI_c25q.js";
41
- import { a as wt, i as Tt, n as Et, o as Dt, r as Ot, t as kt } from "./chunks/CurveEditor-BNbP2wgq.js";
42
- import { a as At, c as jt, d as Mt, f as Nt, g as Pt, h as Ft, i as It, l as Lt, m as Rt, n as zt, o as Bt, p as Vt, r as Ht, s as Ut, t as Wt, u as Gt } from "./chunks/Properties-fLSEE65J.js";
43
- import { t as Kt } from "./chunks/FontFamilySelect-xjOHQMsK.js";
44
- import { a as qt, c as Jt, i as Yt, n as Xt, o as Zt, r as Qt, s as $t, t as en } from "./chunks/SelectionPanel-BwBevj5F.js";
45
- import { t as tn } from "./chunks/ResizeHandle-DMJdqRud.js";
46
- import { t as nn } from "./chunks/Sidebar-CeSRkWKK.js";
47
- import { t as rn } from "./chunks/SidebarPanel-BWIiJv7M.js";
48
- import { n as an, r as on, t as sn } from "./chunks/StatusBar-COyPUoEs.js";
49
- import { t as cn } from "./chunks/ToolButton-DpqTcgLa.js";
50
- import { t as ln } from "./chunks/ToolGroup-DOrObiiA.js";
51
- import { n as un, r as dn, t as fn } from "./chunks/ToolPalette-B_Zjw6dC.js";
10
+ import { t as ke } from "./chunks/Button-CExdkQcU.js";
11
+ import { t as Ae } from "./chunks/useReorderDragList-CSQGd7zQ.js";
12
+ import { t as je } from "./chunks/DataGrid-BVdDMZkQ.js";
13
+ import { n as Me, t as Ne } from "./chunks/Disclosure-DiA6UKdM.js";
14
+ import { t as Pe } from "./chunks/DragHandleGlyph-CppAz4_8.js";
15
+ import { a as Fe, i as Ie, n as Le, o as Re, r as ze, t as Be } from "./chunks/Keycaps-DSeq6QWH.js";
16
+ import { t as Ve } from "./chunks/keyGlyph-Bp0wnLHn.js";
17
+ import { t as He } from "./chunks/LayerStack-DOylrQcm.js";
18
+ import { t as Ue } from "./chunks/Slider-Bs-KSYgQ.js";
19
+ import { i as We, n as Ge, r as Ke, t as qe } from "./chunks/number-Bv1nbhOJ.js";
20
+ import { t as Je } from "./chunks/ItemList-BZJQReXD.js";
21
+ import { t as Ye } from "./chunks/ToggleBar-Bxwv6xvj.js";
22
+ import { t as Xe } from "./chunks/useRovingTabIndex-Dkpf_KhN.js";
23
+ import { t as Ze } from "./chunks/OptionsBar-D_Cd3ZYs.js";
24
+ import { t as Qe } from "./chunks/ActionsBar-D1VFreoj.js";
25
+ import { t as $e } from "./chunks/ToolOptionsBar-B2xPWzJf.js";
26
+ import { t as et } from "./chunks/InlineRange-CcfzY80y.js";
27
+ import { t as tt } from "./chunks/ColorField-C20aRvCg.js";
28
+ import { i as nt, n as rt, r as it, t as at } from "./chunks/GradientEditor-BLpAtMDK.js";
29
+ import { n as ot, t as st } from "./chunks/PatternPicker-Ba22Bf4L.js";
30
+ import { t as ct } from "./chunks/PaintInput-B7AScmHN.js";
31
+ import { t as $ } from "./chunks/Powerline-BaHDJlcO.js";
32
+ import { t as lt } from "./chunks/Checkbox-D-pVpobU.js";
33
+ import { n as ut, t as dt } from "./chunks/Field-dzlxOGxT.js";
34
+ import { n as ft, t as pt } from "./chunks/Select-CacMfs4v.js";
35
+ import { t as mt } from "./chunks/FontFamilySelect-DIJ4phXz.js";
36
+ import { t as ht } from "./chunks/Input-CoKOtyD0.js";
37
+ import { t as gt } from "./chunks/NumberField-DBowmOfe.js";
38
+ import { n as _t, t as vt } from "./chunks/RadioGroup-B2_LUgDp.js";
39
+ import { t as yt } from "./chunks/RangeSlider-S2R3zA8N.js";
40
+ import { t as bt } from "./chunks/Switch-C4NU-me1.js";
41
+ import { i as xt, n as St, r as Ct, t as wt } from "./chunks/schema-CtWwGbqJ.js";
42
+ import { t as Tt } from "./chunks/Dialog-CYBLjwbd.js";
43
+ import { n as Et, r as Dt, t as Ot } from "./chunks/Plot2D-C97pO13t.js";
44
+ import { a as kt, i as At, n as jt, o as Mt, r as Nt, t as Pt } from "./chunks/CurveEditor-DtjdpJVB.js";
45
+ import { a as Ft, c as It, d as Lt, f as Rt, g as zt, h as Bt, i as Vt, l as Ht, m as Ut, n as Wt, o as Gt, p as Kt, r as qt, s as Jt, t as Yt, u as Xt } from "./chunks/Properties-BpUYKi7-.js";
46
+ import { a as Zt, c as Qt, i as $t, n as en, o as tn, r as nn, s as rn, t as an } from "./chunks/SelectionPanel-C59wavdA.js";
47
+ import { t as on } from "./chunks/ResizeHandle-BrCO0JrH.js";
48
+ import { t as sn } from "./chunks/Sidebar-BvwjZiFm.js";
49
+ import { t as cn } from "./chunks/SidebarPanel-D5Ua2vyP.js";
50
+ import { n as ln, r as un, t as dn } from "./chunks/StatusBar-Bqv4D0dW.js";
51
+ import { t as fn } from "./chunks/ToolButton-CtDkqUIc.js";
52
+ import { t as pn } from "./chunks/ToolGroup-zDtqt0QJ.js";
53
+ import { n as mn, r as hn, t as gn } from "./chunks/ToolPalette-BbrMHfQ9.js";
52
54
  import "./components/Field/index.js";
53
- import { i as pn, n as mn, r as hn, t as gn } from "./chunks/Tabs-BDzkqWDE.js";
54
- import { n as _n, t as vn } from "./chunks/ComboBox-TnIrRldB.js";
55
- import { t as yn } from "./chunks/DetentSlider-C6RTsiPi.js";
56
- import { n as bn, t as xn } from "./chunks/Callout-63z0T-w3.js";
57
- import { a as Sn, i as Cn, n as wn, r as Tn, t as En } from "./chunks/Toast-DX0iLdC3.js";
58
- import { t as Dn } from "./chunks/PointPlotter-B-DvXjkL.js";
59
- import { n as On, r as kn, t as An } from "./chunks/BandEditor-CqiMlSF9.js";
60
- import { a as jn, c as Mn, i as Nn, l as Pn, n as Fn, o as In, r as Ln, s as Rn, t as zn } from "./chunks/Timeline-D9xQBdKN.js";
61
- import { oklabToSrgbU8 as Bn, oklchToOklab as Vn, rgbaToHex as Hn } from "@weasel-js/core";
55
+ import { i as _n, n as vn, r as yn, t as bn } from "./chunks/Tabs-BT3CDkoQ.js";
56
+ import { n as xn, t as Sn } from "./chunks/ComboBox-BBRRWvdc.js";
57
+ import { t as Cn } from "./chunks/DetentSlider-BpD7bgjN.js";
58
+ import { n as wn, t as Tn } from "./chunks/Callout-Dvt6lqVn.js";
59
+ import { a as En, i as Dn, n as On, r as kn, t as An } from "./chunks/Toast-B7ylq7fz.js";
60
+ import { t as jn } from "./chunks/PointPlotter-CbDKVggs.js";
61
+ import { n as Mn, r as Nn, t as Pn } from "./chunks/BandEditor-CUlbOlJi.js";
62
+ import { a as Fn, c as In, i as Ln, l as Rn, n as zn, o as Bn, r as Vn, s as Hn, t as Un } from "./chunks/Timeline-Bz806JbE.js";
63
+ import { oklabToSrgbU8 as Wn, oklchToOklab as Gn, rgbaToHex as Kn } from "@weasel-js/core";
62
64
  //#region src/color/oklch.ts
63
- function Un(e, t, n) {
64
- let [r, i, a] = Vn(e, t, n * Math.PI / 180), [o, s, c] = Bn(r, i, a);
65
- return Hn([
65
+ function qn(e, t, n) {
66
+ let [r, i, a] = Gn(e, t, n * Math.PI / 180), [o, s, c] = Wn(r, i, a);
67
+ return Kn([
66
68
  o / 255,
67
69
  s / 255,
68
70
  c / 255
69
71
  ]);
70
72
  }
71
- function Wn(e, t) {
73
+ function Jn(e, t) {
72
74
  let [n, r] = t.lRange;
73
75
  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));
74
76
  }
75
77
  //#endregion
76
- export { Ee as ActionBar, Qe as ActionsBar, ce as AddIcon, zn as AnimatedTimeline, Y as ArrowIcon, Oe as Badge, An as BandEditor, ie as BusyIcon, ke as Button, xn as Callout, bn as CalloutTrigger, lt as Checkbox, At as CheckboxRow, H as ChevronIcon, A as CloneIcon, Z as CloseIcon, oe as CollapseIcon, tt as ColorField, Bt as ColorRow, vn as ComboBox, _n as ComboBoxItem, N as CompareIcon, K as CrosshairIcon, Et as CurveEditor, Pt as CurveField, je as DataGrid, ue as DeleteIcon, yn as DetentSlider, bt as Dialog, Ne as Disclosure, Me as DisclosureRow, Pe as DragHandleGlyph, In as EASING_NAMES, De as EDGE_PROFILES, jn as EasingPicker, zt as EffectCard, Ht as EffectCardList, F as EllipseIcon, R as ErrorIcon, ne as ExpandIcon, J as ExportIcon, V as EyedropperIcon, dt as Field, B as FilterIcon, k as FitIcon, Kt as FontFamilySelect, fe as FullscreenIcon, it as GradientEditor, rt as GradientHandles, he as GridIcon, M as HandIcon, me as HiddenIcon, n as ICON_PATHS, r as Icon, x as ImageIcon, s as InfoIcon, et as InlineRange, ft as Input, Je as ItemList, Fe as KeyCap, Ie as KeySequence, pe as LassoIcon, He as LayerStack, Ot as LayeredCurveEditor, S as LayersIcon, ee as LayoutColumnsIcon, c as LayoutGridIcon, _ as LayoutRowsIcon, G as LineIcon, a as LinkIcon, W as LockIcon, h as LoupeIcon, qe as MINUS_SIGN, Xt as MIXED, g as MeasureIcon, v as ModeAutoIcon, te as ModeDarkIcon, d as ModeLightIcon, pt as NumberField, Ut as NumberRow, Ze as OptionsBar, st as PaintInput, m as PanIcon, ot as PatternPicker, b as PauseIcon, ge as PenIcon, o as PencilIcon, w as PinIcon, u as PlayIcon, Ct as Plot2D, Dn as PointPlotter, C as PolygonIcon, ct as Powerline, Ce as PrefsDialog, ye as PrefsForm, Wt as PropertyGroup, jt as PropertyList, Lt as PropertyPanel, Gt as PropertyRow, Mt as PropertySpan, ht as Radio, mt as RadioGroup, T as RandomizeIcon, gt as RangeSlider, l as RectIcon, p as RedoIcon, re as RefreshIcon, f as RemoveIcon, D as ResetIcon, tn as ResizeHandle, $ as SceneGradientHandles, E as SearchIcon, vt as Select, O as SelectIcon, _t as SelectItem, Nt as SelectRow, en as SelectionPanel, nn as Sidebar, rn as SidebarPanel, Ue as Slider, Vt as SliderRow, y as SnapIcon, i as SnapshotIcon, L as SortIcon, le as StarIcon, sn as StatusBar, an as StatusBarItem, on as StatusBarSpacer, X as StepIcon, ae as StopIcon, It as Subpanel, yt as Switch, gn as Tab, mn as TabList, hn as TabPanel, pn as Tabs, U as TextIcon, Rt as TextRow, Fn as Timeline, wn as ToastQueue, En as ToastRegion, Ye as ToggleBar, Ft as ToggleRow, cn as ToolButton, ln as ToolGroup, $e as ToolOptionsBar, fn as ToolPalette, Te as Tooltip, we as TooltipTrigger, Ln as Transport, j as TuneIcon, Q as UndoIcon, se as UnknownIcon, P as UnlockIcon, q as VisibleIcon, de as WarningIcon, I as ZoomInIcon, z as ZoomOutIcon, Qt as aggregateValue, Wn as chromaAt, Yt as classifyKind, Tt as createFunctionLayer, kt as createSetCurveOp, Tn as createToastQueue, Cn as defaultToastQueue, Be as detectPlatform, t as dlog, Rn as easingBezier, Mn as easingLabel, qt as effectiveSections, ut as fieldClasses, Ge as formatNumber, un as formatShortcut, dn as formatShortcutParts, Ke as formatZoom, wt as functionLayerState, Re as inferKeycapKind, e as isDebugEnabled, xe as isPrefLeaf, Ve as keyGlyph, Le as keySpecFromKey, ze as keySpecsFromMods, Zt as kindBreakdown, On as linearScale, kn as logScale, xt as modelToPlot, $t as nodeValueAt, Un as oklchToHex, nt as paintGradientTrack, We as parseSignedNumber, St as plotToModel, ve as prefValueAtPath, Nn as samePath, Dt as sampleByInterpolation, Pn as sampleEasing, at as seedPattern, Jt as setAtPath, be as solidColorOf, Se as strokeColorOf, Sn as toast, Ae as useReorderDragList, Xe as useRovingTabIndex, _e as visiblePrefSubtree };
78
+ export { Ee as ActionBar, Qe as ActionsBar, ce as AddIcon, Un as AnimatedTimeline, Y as ArrowIcon, Oe as Badge, Pn as BandEditor, ie as BusyIcon, ke as Button, Tn as Callout, wn as CalloutTrigger, lt as Checkbox, Ft as CheckboxRow, H as ChevronIcon, A as CloneIcon, Z as CloseIcon, oe as CollapseIcon, tt as ColorField, Gt as ColorRow, Sn as ComboBox, xn as ComboBoxItem, N as CompareIcon, K as CrosshairIcon, jt as CurveEditor, zt as CurveField, je as DataGrid, ue as DeleteIcon, Cn as DetentSlider, Tt as Dialog, Ne as Disclosure, Me as DisclosureRow, Pe as DragHandleGlyph, Bn as EASING_NAMES, De as EDGE_PROFILES, Fn as EasingPicker, Wt as EffectCard, qt as EffectCardList, F as EllipseIcon, R as ErrorIcon, ne as ExpandIcon, J as ExportIcon, V as EyedropperIcon, dt as Field, B as FilterIcon, k as FitIcon, mt as FontFamilySelect, fe as FullscreenIcon, it as GradientEditor, rt as GradientHandles, he as GridIcon, M as HandIcon, me as HiddenIcon, n as ICON_PATHS, r as Icon, x as ImageIcon, s as InfoIcon, et as InlineRange, ht as Input, Je as ItemList, Fe as KeyCap, Ie as KeySequence, pe as LassoIcon, He as LayerStack, Nt as LayeredCurveEditor, S as LayersIcon, ee as LayoutColumnsIcon, c as LayoutGridIcon, _ as LayoutRowsIcon, G as LineIcon, a as LinkIcon, W as LockIcon, h as LoupeIcon, qe as MINUS_SIGN, en as MIXED, g as MeasureIcon, v as ModeAutoIcon, te as ModeDarkIcon, d as ModeLightIcon, gt as NumberField, Jt as NumberRow, Ze as OptionsBar, Ce as OverlayPortalProvider, ct as PaintInput, m as PanIcon, st as PatternPicker, b as PauseIcon, ge as PenIcon, o as PencilIcon, w as PinIcon, u as PlayIcon, Ot as Plot2D, jn as PointPlotter, C as PolygonIcon, $ as Powerline, be as PrefsDialog, ve as PrefsForm, Yt as PropertyGroup, It as PropertyList, Ht as PropertyPanel, Xt as PropertyRow, Lt as PropertySpan, vt as Radio, _t as RadioGroup, T as RandomizeIcon, yt as RangeSlider, l as RectIcon, p as RedoIcon, re as RefreshIcon, f as RemoveIcon, D as ResetIcon, on as ResizeHandle, at as SceneGradientHandles, E as SearchIcon, pt as Select, O as SelectIcon, ft as SelectItem, Rt as SelectRow, an as SelectionPanel, sn as Sidebar, cn as SidebarPanel, Ue as Slider, Kt as SliderRow, y as SnapIcon, i as SnapshotIcon, L as SortIcon, le as StarIcon, dn as StatusBar, ln as StatusBarItem, un as StatusBarSpacer, X as StepIcon, ae as StopIcon, Vt as Subpanel, bt as Switch, bn as Tab, vn as TabList, yn as TabPanel, _n as Tabs, U as TextIcon, Ut as TextRow, zn as Timeline, On as ToastQueue, An as ToastRegion, Ye as ToggleBar, Bt as ToggleRow, fn as ToolButton, pn as ToolGroup, $e as ToolOptionsBar, gn as ToolPalette, Te as Tooltip, we as TooltipTrigger, Vn as Transport, j as TuneIcon, Q as UndoIcon, se as UnknownIcon, P as UnlockIcon, q as VisibleIcon, de as WarningIcon, I as ZoomInIcon, z as ZoomOutIcon, nn as aggregateValue, Jn as chromaAt, $t as classifyKind, At as createFunctionLayer, Pt as createSetCurveOp, kn as createToastQueue, Dn as defaultToastQueue, Be as detectPlatform, t as dlog, Hn as easingBezier, In as easingLabel, Zt as effectiveSections, ut as fieldClasses, Ge as formatNumber, mn as formatShortcut, hn as formatShortcutParts, Ke as formatZoom, kt as functionLayerState, Re as inferKeycapKind, e as isDebugEnabled, wt as isPrefLeaf, Ve as keyGlyph, Le as keySpecFromKey, ze as keySpecsFromMods, tn as kindBreakdown, Mn as linearScale, Nn as logScale, Et as modelToPlot, xe as nearestPortalHost, rn as nodeValueAt, qn as oklchToHex, nt as paintGradientTrack, We as parseSignedNumber, Dt as plotToModel, St as prefDisplayBounds, Ct as prefValueAtPath, Ln as samePath, Mt as sampleByInterpolation, Rn as sampleEasing, ot as seedPattern, Qt as setAtPath, ye as solidColorOf, _e as strokeColorOf, En as toast, Se as useOverlayPortal, Ae as useReorderDragList, Xe as useRovingTabIndex, xt as visiblePrefSubtree };
77
79
 
78
80
  //# 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\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
+ {"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"}
@@ -0,0 +1,55 @@
1
+ import { type ReactElement, type ReactNode } from 'react';
2
+ /**
3
+ * The nearest element `from` sits inside that can host a portalled overlay,
4
+ * or `null` when there is none and the body is the only answer.
5
+ */
6
+ export declare function nearestPortalHost(from: Element | null | undefined): HTMLElement | null;
7
+ /** Props for {@link OverlayPortalProvider}. */
8
+ export interface OverlayPortalProviderProps {
9
+ /** Where overlays in this subtree portal. `null` means `document.body`. */
10
+ container: Element | null;
11
+ children: ReactNode;
12
+ }
13
+ /**
14
+ * Sets the portal container for every weasel overlay rendered below it,
15
+ * overriding the nearest-themed-ancestor default. An individual overlay's
16
+ * own `portalContainer` prop still wins.
17
+ */
18
+ export declare function OverlayPortalProvider({ container, children }: OverlayPortalProviderProps): import("react/jsx-runtime").JSX.Element;
19
+ /** The `portalContainer` prop every weasel overlay accepts. */
20
+ export interface OverlayPortalProps {
21
+ /**
22
+ * Where the overlay's portal mounts. Defaults to the nearest ancestor of
23
+ * the overlay's own position that carries a weasel theme, so the overlay
24
+ * resolves the same `--wzl-*` tokens as the control it belongs to. Pass
25
+ * `null` for `document.body`.
26
+ */
27
+ portalContainer?: Element | null;
28
+ }
29
+ /** React Aria props minus the portal key a weasel overlay owns. */
30
+ export type WithoutPortalTarget<T> = Omit<T, 'UNSTABLE_portalContainer'>;
31
+ /** Spread onto the React Aria overlay. The unstable key is spelled here and
32
+ * nowhere else in the package, so an upstream rename lands in one file. */
33
+ export interface OverlayPortalTarget {
34
+ UNSTABLE_portalContainer: Element | undefined;
35
+ }
36
+ /**
37
+ * Resolves where an overlay should portal, and the anchor that answers it.
38
+ *
39
+ * The result goes to React Aria as `UNSTABLE_portalContainer`. Its documented
40
+ * replacement, `UNSAFE_PortalProvider`, is not re-exported by
41
+ * react-aria-components 1.18, and reaching past it to `react-aria` for the
42
+ * provider risks a second copy of that package whose context the overlays
43
+ * never read — a failure that shows up as an unthemed overlay, not an error.
44
+ *
45
+ * Render `anchor` at the component's own position in the tree — outside the
46
+ * portal — and spread `portalProps` onto the React Aria overlay. The anchor
47
+ * is what "nearest themed ancestor" is measured from; the first render has
48
+ * none yet, so an overlay that mounts already open lands in its host on the
49
+ * following render, before paint.
50
+ */
51
+ export declare function useOverlayPortal(explicit?: Element | null): {
52
+ anchor: ReactElement;
53
+ portalProps: OverlayPortalTarget;
54
+ };
55
+ //# sourceMappingURL=portalHost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portalHost.d.ts","sourceRoot":"","sources":["../../src/overlays/portalHost.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAW/F;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAEtF;AAKD,+CAA+C;AAC/C,MAAM,WAAW,0BAA0B;IACzC,2EAA2E;IAC3E,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,0BAA0B,2CAIxF;AAED,+DAA+D;AAC/D,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAClC;AAED,mEAAmE;AACnE,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,0BAA0B,CAAC,CAAC;AAEzE;4EAC4E;AAC5E,MAAM,WAAW,mBAAmB;IAClC,wBAAwB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG;IAC3D,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAeA"}