@weasel-js/ui 0.5.0 → 0.5.1

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 (297) hide show
  1. package/dist/color/oklch.d.ts +14 -0
  2. package/dist/color/oklch.d.ts.map +1 -0
  3. package/dist/components/ActionBar/ActionBar.d.ts +36 -0
  4. package/dist/components/ActionBar/ActionBar.d.ts.map +1 -0
  5. package/dist/components/ActionBar/index.d.ts +3 -0
  6. package/dist/components/ActionBar/index.d.ts.map +1 -0
  7. package/dist/components/ActionsBar/ActionsBar.d.ts +20 -0
  8. package/dist/components/ActionsBar/ActionsBar.d.ts.map +1 -0
  9. package/dist/components/ActionsBar/index.d.ts +3 -0
  10. package/dist/components/ActionsBar/index.d.ts.map +1 -0
  11. package/dist/components/Badge/Badge.d.ts +50 -0
  12. package/dist/components/Badge/Badge.d.ts.map +1 -0
  13. package/dist/components/Badge/bases/ChamferedRect.d.ts +8 -0
  14. package/dist/components/Badge/bases/ChamferedRect.d.ts.map +1 -0
  15. package/dist/components/Badge/bases/OctantBSpline.d.ts +71 -0
  16. package/dist/components/Badge/bases/OctantBSpline.d.ts.map +1 -0
  17. package/dist/components/Badge/bases/OctantSpline.d.ts +79 -0
  18. package/dist/components/Badge/bases/OctantSpline.d.ts.map +1 -0
  19. package/dist/components/Badge/bases/Polygon.d.ts +8 -0
  20. package/dist/components/Badge/bases/Polygon.d.ts.map +1 -0
  21. package/dist/components/Badge/bases/Powerline.d.ts +13 -0
  22. package/dist/components/Badge/bases/Powerline.d.ts.map +1 -0
  23. package/dist/components/Badge/bases/Puzzle.d.ts +15 -0
  24. package/dist/components/Badge/bases/Puzzle.d.ts.map +1 -0
  25. package/dist/components/Badge/bases/Quatrefoil.d.ts +46 -0
  26. package/dist/components/Badge/bases/Quatrefoil.d.ts.map +1 -0
  27. package/dist/components/Badge/bases/Ribbon.d.ts +12 -0
  28. package/dist/components/Badge/bases/Ribbon.d.ts.map +1 -0
  29. package/dist/components/Badge/bases/RoundedRect.d.ts +14 -0
  30. package/dist/components/Badge/bases/RoundedRect.d.ts.map +1 -0
  31. package/dist/components/Badge/bases/edgeProfiles.d.ts +6 -0
  32. package/dist/components/Badge/bases/edgeProfiles.d.ts.map +1 -0
  33. package/dist/components/Badge/bases/index.d.ts +24 -0
  34. package/dist/components/Badge/bases/index.d.ts.map +1 -0
  35. package/dist/components/Badge/bases/polygonSampler.d.ts +4 -0
  36. package/dist/components/Badge/bases/polygonSampler.d.ts.map +1 -0
  37. package/dist/components/Badge/bases/types.d.ts +69 -0
  38. package/dist/components/Badge/bases/types.d.ts.map +1 -0
  39. package/dist/components/Badge/effects/Aqua.d.ts +49 -0
  40. package/dist/components/Badge/effects/Aqua.d.ts.map +1 -0
  41. package/dist/components/Badge/effects/Bevel.d.ts +11 -0
  42. package/dist/components/Badge/effects/Bevel.d.ts.map +1 -0
  43. package/dist/components/Badge/effects/Bevel2.d.ts +11 -0
  44. package/dist/components/Badge/effects/Bevel2.d.ts.map +1 -0
  45. package/dist/components/Badge/effects/Bites.d.ts +10 -0
  46. package/dist/components/Badge/effects/Bites.d.ts.map +1 -0
  47. package/dist/components/Badge/effects/Metal.d.ts +41 -0
  48. package/dist/components/Badge/effects/Metal.d.ts.map +1 -0
  49. package/dist/components/Badge/effects/Outline.d.ts +17 -0
  50. package/dist/components/Badge/effects/Outline.d.ts.map +1 -0
  51. package/dist/components/Badge/effects/Perforations.d.ts +11 -0
  52. package/dist/components/Badge/effects/Perforations.d.ts.map +1 -0
  53. package/dist/components/Badge/effects/Puffs.d.ts +10 -0
  54. package/dist/components/Badge/effects/Puffs.d.ts.map +1 -0
  55. package/dist/components/Badge/effects/Rivets.d.ts +13 -0
  56. package/dist/components/Badge/effects/Rivets.d.ts.map +1 -0
  57. package/dist/components/Badge/effects/Scallops.d.ts +10 -0
  58. package/dist/components/Badge/effects/Scallops.d.ts.map +1 -0
  59. package/dist/components/Badge/effects/Shadow.d.ts +11 -0
  60. package/dist/components/Badge/effects/Shadow.d.ts.map +1 -0
  61. package/dist/components/Badge/effects/Sheen.d.ts +10 -0
  62. package/dist/components/Badge/effects/Sheen.d.ts.map +1 -0
  63. package/dist/components/Badge/effects/Spikes.d.ts +20 -0
  64. package/dist/components/Badge/effects/Spikes.d.ts.map +1 -0
  65. package/dist/components/Badge/effects/Sunbeams.d.ts +29 -0
  66. package/dist/components/Badge/effects/Sunbeams.d.ts.map +1 -0
  67. package/dist/components/Badge/effects/Woodgrain.d.ts +12 -0
  68. package/dist/components/Badge/effects/Woodgrain.d.ts.map +1 -0
  69. package/dist/components/Badge/effects/index.d.ts +40 -0
  70. package/dist/components/Badge/effects/index.d.ts.map +1 -0
  71. package/dist/components/Badge/effects/rangeMask.d.ts +13 -0
  72. package/dist/components/Badge/effects/rangeMask.d.ts.map +1 -0
  73. package/dist/components/Badge/index.d.ts +4 -0
  74. package/dist/components/Badge/index.d.ts.map +1 -0
  75. package/dist/components/Badge/shapeControls.d.ts +29 -0
  76. package/dist/components/Badge/shapeControls.d.ts.map +1 -0
  77. package/dist/components/Badge/shapes/Beavis.d.ts +11 -0
  78. package/dist/components/Badge/shapes/Beavis.d.ts.map +1 -0
  79. package/dist/components/Badge/shapes/Cloud.d.ts +11 -0
  80. package/dist/components/Badge/shapes/Cloud.d.ts.map +1 -0
  81. package/dist/components/Badge/shapes/Coffin.d.ts +12 -0
  82. package/dist/components/Badge/shapes/Coffin.d.ts.map +1 -0
  83. package/dist/components/Badge/shapes/Crest.d.ts +8 -0
  84. package/dist/components/Badge/shapes/Crest.d.ts.map +1 -0
  85. package/dist/components/Badge/shapes/Hexagon.d.ts +10 -0
  86. package/dist/components/Badge/shapes/Hexagon.d.ts.map +1 -0
  87. package/dist/components/Badge/shapes/House.d.ts +9 -0
  88. package/dist/components/Badge/shapes/House.d.ts.map +1 -0
  89. package/dist/components/Badge/shapes/Notched.d.ts +10 -0
  90. package/dist/components/Badge/shapes/Notched.d.ts.map +1 -0
  91. package/dist/components/Badge/shapes/Perforated.d.ts +8 -0
  92. package/dist/components/Badge/shapes/Perforated.d.ts.map +1 -0
  93. package/dist/components/Badge/shapes/Pill.d.ts +4 -0
  94. package/dist/components/Badge/shapes/Pill.d.ts.map +1 -0
  95. package/dist/components/Badge/shapes/Plain.d.ts +4 -0
  96. package/dist/components/Badge/shapes/Plain.d.ts.map +1 -0
  97. package/dist/components/Badge/shapes/Plaque.d.ts +12 -0
  98. package/dist/components/Badge/shapes/Plaque.d.ts.map +1 -0
  99. package/dist/components/Badge/shapes/Postage.d.ts +9 -0
  100. package/dist/components/Badge/shapes/Postage.d.ts.map +1 -0
  101. package/dist/components/Badge/shapes/Quatrefoil.d.ts +19 -0
  102. package/dist/components/Badge/shapes/Quatrefoil.d.ts.map +1 -0
  103. package/dist/components/Badge/shapes/Receipt.d.ts +9 -0
  104. package/dist/components/Badge/shapes/Receipt.d.ts.map +1 -0
  105. package/dist/components/Badge/shapes/Ribbon.d.ts +13 -0
  106. package/dist/components/Badge/shapes/Ribbon.d.ts.map +1 -0
  107. package/dist/components/Badge/shapes/Scalloped.d.ts +9 -0
  108. package/dist/components/Badge/shapes/Scalloped.d.ts.map +1 -0
  109. package/dist/components/Badge/shapes/Shield.d.ts +11 -0
  110. package/dist/components/Badge/shapes/Shield.d.ts.map +1 -0
  111. package/dist/components/Badge/shapes/Sparkler.d.ts +10 -0
  112. package/dist/components/Badge/shapes/Sparkler.d.ts.map +1 -0
  113. package/dist/components/Badge/shapes/Square.d.ts +8 -0
  114. package/dist/components/Badge/shapes/Square.d.ts.map +1 -0
  115. package/dist/components/Badge/shapes/Starburst.d.ts +11 -0
  116. package/dist/components/Badge/shapes/Starburst.d.ts.map +1 -0
  117. package/dist/components/Badge/shapes/Urn.d.ts +4 -0
  118. package/dist/components/Badge/shapes/Urn.d.ts.map +1 -0
  119. package/dist/components/Badge/shapes/Wood.d.ts +4 -0
  120. package/dist/components/Badge/shapes/Wood.d.ts.map +1 -0
  121. package/dist/components/Badge/shapes/index.d.ts +46 -0
  122. package/dist/components/Badge/shapes/index.d.ts.map +1 -0
  123. package/dist/components/Badge/types.d.ts +39 -0
  124. package/dist/components/Badge/types.d.ts.map +1 -0
  125. package/dist/components/Button/Button.d.ts +29 -0
  126. package/dist/components/Button/Button.d.ts.map +1 -0
  127. package/dist/components/Button/index.d.ts +3 -0
  128. package/dist/components/Button/index.d.ts.map +1 -0
  129. package/dist/components/Callout/Callout.d.ts +67 -0
  130. package/dist/components/Callout/Callout.d.ts.map +1 -0
  131. package/dist/components/Callout/index.d.ts +3 -0
  132. package/dist/components/Callout/index.d.ts.map +1 -0
  133. package/dist/components/Checkbox/Checkbox.d.ts +15 -0
  134. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  135. package/dist/components/Checkbox/index.d.ts +3 -0
  136. package/dist/components/Checkbox/index.d.ts.map +1 -0
  137. package/dist/components/ColorField/ColorField.d.ts +28 -0
  138. package/dist/components/ColorField/ColorField.d.ts.map +1 -0
  139. package/dist/components/ColorField/index.d.ts +2 -0
  140. package/dist/components/ColorField/index.d.ts.map +1 -0
  141. package/dist/components/ComboBox/ComboBox.d.ts +36 -0
  142. package/dist/components/ComboBox/ComboBox.d.ts.map +1 -0
  143. package/dist/components/ComboBox/index.d.ts +3 -0
  144. package/dist/components/ComboBox/index.d.ts.map +1 -0
  145. package/dist/components/CurveEditor/CurveEditor.d.ts +41 -0
  146. package/dist/components/CurveEditor/CurveEditor.d.ts.map +1 -0
  147. package/dist/components/CurveEditor/LayeredCurveEditor.d.ts +40 -0
  148. package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -0
  149. package/dist/components/CurveEditor/catmullRom.d.ts +35 -0
  150. package/dist/components/CurveEditor/catmullRom.d.ts.map +1 -0
  151. package/dist/components/CurveEditor/createFunctionLayer.d.ts +72 -0
  152. package/dist/components/CurveEditor/createFunctionLayer.d.ts.map +1 -0
  153. package/dist/components/CurveEditor/hitTest.d.ts +29 -0
  154. package/dist/components/CurveEditor/hitTest.d.ts.map +1 -0
  155. package/dist/components/CurveEditor/index.d.ts +7 -0
  156. package/dist/components/CurveEditor/index.d.ts.map +1 -0
  157. package/dist/components/CurveEditor/interpolation.d.ts +15 -0
  158. package/dist/components/CurveEditor/interpolation.d.ts.map +1 -0
  159. package/dist/components/CurveEditor/layerTypes.d.ts +103 -0
  160. package/dist/components/CurveEditor/layerTypes.d.ts.map +1 -0
  161. package/dist/components/CurveEditor/monotone.d.ts +25 -0
  162. package/dist/components/CurveEditor/monotone.d.ts.map +1 -0
  163. package/dist/components/CurveEditor/setCurveOp.d.ts +35 -0
  164. package/dist/components/CurveEditor/setCurveOp.d.ts.map +1 -0
  165. package/dist/components/DataGrid/DataGrid.d.ts +34 -0
  166. package/dist/components/DataGrid/DataGrid.d.ts.map +1 -0
  167. package/dist/components/DataGrid/index.d.ts +3 -0
  168. package/dist/components/DataGrid/index.d.ts.map +1 -0
  169. package/dist/components/Dialog/Dialog.d.ts +29 -0
  170. package/dist/components/Dialog/Dialog.d.ts.map +1 -0
  171. package/dist/components/Dialog/index.d.ts +3 -0
  172. package/dist/components/Dialog/index.d.ts.map +1 -0
  173. package/dist/components/Field/Field.d.ts +25 -0
  174. package/dist/components/Field/Field.d.ts.map +1 -0
  175. package/dist/components/Field/index.d.ts +3 -0
  176. package/dist/components/Field/index.d.ts.map +1 -0
  177. package/dist/components/Input/Input.d.ts +28 -0
  178. package/dist/components/Input/Input.d.ts.map +1 -0
  179. package/dist/components/Input/index.d.ts +3 -0
  180. package/dist/components/Input/index.d.ts.map +1 -0
  181. package/dist/components/Keycaps/Keycap.d.ts +34 -0
  182. package/dist/components/Keycaps/Keycap.d.ts.map +1 -0
  183. package/dist/components/Keycaps/Keycaps.d.ts +29 -0
  184. package/dist/components/Keycaps/Keycaps.d.ts.map +1 -0
  185. package/dist/components/Keycaps/index.d.ts +8 -0
  186. package/dist/components/Keycaps/index.d.ts.map +1 -0
  187. package/dist/components/Keycaps/keyGlyph.d.ts +7 -0
  188. package/dist/components/Keycaps/keyGlyph.d.ts.map +1 -0
  189. package/dist/components/Keycaps/keySpecsFromMods.d.ts +81 -0
  190. package/dist/components/Keycaps/keySpecsFromMods.d.ts.map +1 -0
  191. package/dist/components/NumberField/NumberField.d.ts +25 -0
  192. package/dist/components/NumberField/NumberField.d.ts.map +1 -0
  193. package/dist/components/NumberField/index.d.ts +3 -0
  194. package/dist/components/NumberField/index.d.ts.map +1 -0
  195. package/dist/components/OptionsBar/OptionsBar.d.ts +25 -0
  196. package/dist/components/OptionsBar/OptionsBar.d.ts.map +1 -0
  197. package/dist/components/OptionsBar/index.d.ts +3 -0
  198. package/dist/components/OptionsBar/index.d.ts.map +1 -0
  199. package/dist/components/Plot2D/Plot2D.d.ts +60 -0
  200. package/dist/components/Plot2D/Plot2D.d.ts.map +1 -0
  201. package/dist/components/Plot2D/geometry.d.ts +24 -0
  202. package/dist/components/Plot2D/geometry.d.ts.map +1 -0
  203. package/dist/components/Plot2D/index.d.ts +3 -0
  204. package/dist/components/Plot2D/index.d.ts.map +1 -0
  205. package/dist/components/PointPlotter/PointPlotter.d.ts +51 -0
  206. package/dist/components/PointPlotter/PointPlotter.d.ts.map +1 -0
  207. package/dist/components/PointPlotter/index.d.ts +2 -0
  208. package/dist/components/PointPlotter/index.d.ts.map +1 -0
  209. package/dist/components/Powerline/Powerline.d.ts +32 -0
  210. package/dist/components/Powerline/Powerline.d.ts.map +1 -0
  211. package/dist/components/Powerline/index.d.ts +5 -0
  212. package/dist/components/Powerline/index.d.ts.map +1 -0
  213. package/dist/components/Prefs/PrefsDialog.d.ts +21 -0
  214. package/dist/components/Prefs/PrefsDialog.d.ts.map +1 -0
  215. package/dist/components/Prefs/PrefsForm.d.ts +42 -0
  216. package/dist/components/Prefs/PrefsForm.d.ts.map +1 -0
  217. package/dist/components/Prefs/index.d.ts +4 -0
  218. package/dist/components/Prefs/index.d.ts.map +1 -0
  219. package/dist/components/Prefs/schema.d.ts +85 -0
  220. package/dist/components/Prefs/schema.d.ts.map +1 -0
  221. package/dist/components/RadioGroup/RadioGroup.d.ts +16 -0
  222. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -0
  223. package/dist/components/RadioGroup/index.d.ts +3 -0
  224. package/dist/components/RadioGroup/index.d.ts.map +1 -0
  225. package/dist/components/RangeSlider/RangeSlider.d.ts +18 -0
  226. package/dist/components/RangeSlider/RangeSlider.d.ts.map +1 -0
  227. package/dist/components/RangeSlider/index.d.ts +3 -0
  228. package/dist/components/RangeSlider/index.d.ts.map +1 -0
  229. package/dist/components/Select/Select.d.ts +39 -0
  230. package/dist/components/Select/Select.d.ts.map +1 -0
  231. package/dist/components/Select/index.d.ts +3 -0
  232. package/dist/components/Select/index.d.ts.map +1 -0
  233. package/dist/components/SelectionPanel/SelectionPanel.d.ts +46 -0
  234. package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -0
  235. package/dist/components/SelectionPanel/index.d.ts +3 -0
  236. package/dist/components/SelectionPanel/index.d.ts.map +1 -0
  237. package/dist/components/SelectionPanel/model.d.ts +43 -0
  238. package/dist/components/SelectionPanel/model.d.ts.map +1 -0
  239. package/dist/components/Sidebar/Sidebar.d.ts +31 -0
  240. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
  241. package/dist/components/Sidebar/index.d.ts +3 -0
  242. package/dist/components/Sidebar/index.d.ts.map +1 -0
  243. package/dist/components/SidebarPanel/SidebarPanel.d.ts +35 -0
  244. package/dist/components/SidebarPanel/SidebarPanel.d.ts.map +1 -0
  245. package/dist/components/SidebarPanel/index.d.ts +3 -0
  246. package/dist/components/SidebarPanel/index.d.ts.map +1 -0
  247. package/dist/components/Slider/Slider.d.ts +43 -0
  248. package/dist/components/Slider/Slider.d.ts.map +1 -0
  249. package/dist/components/Slider/index.d.ts +3 -0
  250. package/dist/components/Slider/index.d.ts.map +1 -0
  251. package/dist/components/Switch/Switch.d.ts +11 -0
  252. package/dist/components/Switch/Switch.d.ts.map +1 -0
  253. package/dist/components/Switch/index.d.ts +3 -0
  254. package/dist/components/Switch/index.d.ts.map +1 -0
  255. package/dist/components/Tabs/Tabs.d.ts +22 -0
  256. package/dist/components/Tabs/Tabs.d.ts.map +1 -0
  257. package/dist/components/Tabs/index.d.ts +3 -0
  258. package/dist/components/Tabs/index.d.ts.map +1 -0
  259. package/dist/components/Toast/Toast.d.ts +18 -0
  260. package/dist/components/Toast/Toast.d.ts.map +1 -0
  261. package/dist/components/Toast/index.d.ts +5 -0
  262. package/dist/components/Toast/index.d.ts.map +1 -0
  263. package/dist/components/Toast/queue.d.ts +56 -0
  264. package/dist/components/Toast/queue.d.ts.map +1 -0
  265. package/dist/components/ToggleBar/ToggleBar.d.ts +35 -0
  266. package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -0
  267. package/dist/components/ToggleBar/index.d.ts +3 -0
  268. package/dist/components/ToggleBar/index.d.ts.map +1 -0
  269. package/dist/components/ToolButton/ToolButton.d.ts +41 -0
  270. package/dist/components/ToolButton/ToolButton.d.ts.map +1 -0
  271. package/dist/components/ToolButton/index.d.ts +3 -0
  272. package/dist/components/ToolButton/index.d.ts.map +1 -0
  273. package/dist/components/ToolGroup/ToolGroup.d.ts +25 -0
  274. package/dist/components/ToolGroup/ToolGroup.d.ts.map +1 -0
  275. package/dist/components/ToolGroup/index.d.ts +3 -0
  276. package/dist/components/ToolGroup/index.d.ts.map +1 -0
  277. package/dist/components/ToolPalette/ToolPalette.d.ts +27 -0
  278. package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -0
  279. package/dist/components/ToolPalette/formatShortcut.d.ts +17 -0
  280. package/dist/components/ToolPalette/formatShortcut.d.ts.map +1 -0
  281. package/dist/components/ToolPalette/index.d.ts +4 -0
  282. package/dist/components/ToolPalette/index.d.ts.map +1 -0
  283. package/dist/components/Tooltip/Tooltip.d.ts +24 -0
  284. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
  285. package/dist/components/Tooltip/index.d.ts +3 -0
  286. package/dist/components/Tooltip/index.d.ts.map +1 -0
  287. package/dist/dlog.d.ts +33 -0
  288. package/dist/dlog.d.ts.map +1 -0
  289. package/dist/format/number.d.ts +13 -0
  290. package/dist/format/number.d.ts.map +1 -0
  291. package/dist/index.d.ts +44 -0
  292. package/dist/index.d.ts.map +1 -0
  293. package/dist/paintGradientTrack.d.ts +15 -0
  294. package/dist/paintGradientTrack.d.ts.map +1 -0
  295. package/dist/useReorderDragList.d.ts +35 -0
  296. package/dist/useReorderDragList.d.ts.map +1 -0
  297. package/package.json +2 -2
@@ -0,0 +1,12 @@
1
+ import type { ShapeModule } from '../types';
2
+ export type PlaqueCorner = 'tl' | 'tr' | 'bl' | 'br';
3
+ export interface PlaqueParams {
4
+ bevelWidth?: number;
5
+ lightFrom?: PlaqueCorner;
6
+ rivetRadius?: number;
7
+ rivetInset?: number;
8
+ sheenIntensity?: number;
9
+ }
10
+ declare const Plaque: ShapeModule<PlaqueParams>;
11
+ export default Plaque;
12
+ //# sourceMappingURL=Plaque.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plaque.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Plaque.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAC;AAE9D,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAErD,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAUD,QAAA,MAAM,MAAM,EAAE,WAAW,CAAC,YAAY,CAgBrC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ShapeModule } from '../types';
2
+ export interface PostageParams {
3
+ biteRadius?: number;
4
+ biteSpacing?: number;
5
+ irregularity?: number;
6
+ }
7
+ declare const Postage: ShapeModule<PostageParams>;
8
+ export default Postage;
9
+ //# sourceMappingURL=Postage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Postage.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Postage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAC;AAE9D,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,QAAA,MAAM,OAAO,EAAE,WAAW,CAAC,aAAa,CAiBvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { ShapeModule } from '../types';
2
+ export interface QuatrefoilParams {
3
+ spikeR?: number;
4
+ lobeR?: number;
5
+ valleyR?: number;
6
+ valleyAt?: number;
7
+ spikeCurvature?: number;
8
+ spikeBend?: number;
9
+ spikeTipErosion?: number;
10
+ lobeCurvature?: number;
11
+ lobeBend?: number;
12
+ lobeTipErosion?: number;
13
+ valleySmooth?: number;
14
+ rotation?: number;
15
+ samples?: number;
16
+ }
17
+ declare const Quatrefoil: ShapeModule<QuatrefoilParams>;
18
+ export default Quatrefoil;
19
+ //# sourceMappingURL=Quatrefoil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Quatrefoil.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Quatrefoil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAC;AAE9D,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAkBD,QAAA,MAAM,UAAU,EAAE,WAAW,CAAC,gBAAgB,CAQ7C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ShapeModule } from '../types';
2
+ export interface ReceiptParams {
3
+ teeth?: number;
4
+ tearDepth?: number;
5
+ sideToTopRatio?: number;
6
+ }
7
+ declare const Receipt: ShapeModule<ReceiptParams>;
8
+ export default Receipt;
9
+ //# sourceMappingURL=Receipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Receipt.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Receipt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAyBD,QAAA,MAAM,OAAO,EAAE,WAAW,CAAC,aAAa,CAsBvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ShapeModule } from '../types';
2
+ export type RibbonEnd = 'inward' | 'outward' | 'flat';
3
+ export interface RibbonParams {
4
+ left?: RibbonEnd;
5
+ right?: RibbonEnd;
6
+ /** Taper depth in CSS px. The actual pointer width stays fixed regardless
7
+ * of badge width — the underlying base recomputes viewBox vertices at
8
+ * build time using the rendered box dimensions. */
9
+ taperWidth?: number;
10
+ }
11
+ declare const Ribbon: ShapeModule<RibbonParams>;
12
+ export default Ribbon;
13
+ //# sourceMappingURL=Ribbon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ribbon.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Ribbon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;wDAEoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAID,QAAA,MAAM,MAAM,EAAE,WAAW,CAAC,YAAY,CAUrC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ShapeModule } from '../types';
2
+ export interface ScallopedParams {
3
+ scallopRadius?: number;
4
+ scallopSpacing?: number;
5
+ irregularity?: number;
6
+ }
7
+ declare const Scalloped: ShapeModule<ScallopedParams>;
8
+ export default Scalloped;
9
+ //# sourceMappingURL=Scalloped.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scalloped.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Scalloped.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAC;AAE9D,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,QAAA,MAAM,SAAS,EAAE,WAAW,CAAC,eAAe,CAiB3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { ShapeModule } from '../types';
2
+ export interface ShieldParams {
3
+ pointDepth?: number;
4
+ shoulderY?: number;
5
+ curveTightness?: number;
6
+ /** 0..1 fraction of max top-corner rounding. */
7
+ erosion?: number;
8
+ }
9
+ declare const Shield: ShapeModule<ShieldParams>;
10
+ export default Shield;
11
+ //# sourceMappingURL=Shield.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Shield.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Shield.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AA6DD,QAAA,MAAM,MAAM,EAAE,WAAW,CAAC,YAAY,CAKrC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ShapeModule } from '../types';
2
+ export interface SparklerParams {
3
+ points?: number;
4
+ outerR?: number;
5
+ innerR?: number;
6
+ rotation?: number;
7
+ }
8
+ declare const Sparkler: ShapeModule<SparklerParams>;
9
+ export default Sparkler;
10
+ //# sourceMappingURL=Sparkler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sparkler.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Sparkler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAyBD,QAAA,MAAM,QAAQ,EAAE,WAAW,CAAC,cAAc,CAgBzC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ShapeModule } from '../types';
2
+ export interface SquareParams {
3
+ /** 0..1 fraction of the maximum corner rounding (1 = full pill). */
4
+ erosion?: number;
5
+ }
6
+ declare const Square: ShapeModule<SquareParams>;
7
+ export default Square;
8
+ //# sourceMappingURL=Square.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Square.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Square.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAC;AAE9D,MAAM,WAAW,YAAY;IAC3B,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,QAAA,MAAM,MAAM,EAAE,WAAW,CAAC,YAAY,CAQrC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { ShapeModule } from '../types';
2
+ export interface StarburstParams {
3
+ points?: number;
4
+ outerR?: number;
5
+ innerR?: number;
6
+ rotation?: number;
7
+ erosion?: number;
8
+ }
9
+ declare const Starburst: ShapeModule<StarburstParams>;
10
+ export default Starburst;
11
+ //# sourceMappingURL=Starburst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Starburst.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Starburst.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AA8CD,QAAA,MAAM,SAAS,EAAE,WAAW,CAAC,eAAe,CAgB3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ShapeModule } from '../types';
2
+ declare const Urn: ShapeModule;
3
+ export default Urn;
4
+ //# sourceMappingURL=Urn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Urn.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Urn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAI5C,QAAA,MAAM,GAAG,EAAE,WAYV,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ShapeModule } from '../types';
2
+ declare const Wood: ShapeModule;
3
+ export default Wood;
4
+ //# sourceMappingURL=Wood.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Wood.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/Wood.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAI5C,QAAA,MAAM,IAAI,EAAE,WAyBX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,46 @@
1
+ import type { BadgeShape, ShapeModule } from '../types';
2
+ import { type SquareParams } from './Square';
3
+ import { type NotchedParams } from './Notched';
4
+ import { type PerforatedParams } from './Perforated';
5
+ import { type HexagonParams } from './Hexagon';
6
+ import { type StarburstParams } from './Starburst';
7
+ import { type ScallopedParams } from './Scalloped';
8
+ import { type ShieldParams } from './Shield';
9
+ import { type RibbonParams } from './Ribbon';
10
+ import { type BeavisParams } from './Beavis';
11
+ import { type SparklerParams } from './Sparkler';
12
+ import { type PostageParams } from './Postage';
13
+ import { type CloudParams } from './Cloud';
14
+ import { type HouseParams } from './House';
15
+ import { type PlaqueParams } from './Plaque';
16
+ import { type CrestParams } from './Crest';
17
+ import { type CoffinParams } from './Coffin';
18
+ import { type ReceiptParams } from './Receipt';
19
+ import { type QuatrefoilParams } from './Quatrefoil';
20
+ export interface BadgeShapeParams {
21
+ pill: Record<string, never>;
22
+ plain: Record<string, never>;
23
+ square: SquareParams;
24
+ notched: NotchedParams;
25
+ perforated: PerforatedParams;
26
+ hexagon: HexagonParams;
27
+ starburst: StarburstParams;
28
+ scalloped: ScallopedParams;
29
+ shield: ShieldParams;
30
+ ribbon: RibbonParams;
31
+ beavis: BeavisParams;
32
+ sparkler: SparklerParams;
33
+ postage: PostageParams;
34
+ cloud: CloudParams;
35
+ house: HouseParams;
36
+ plaque: PlaqueParams;
37
+ crest: CrestParams;
38
+ urn: Record<string, never>;
39
+ coffin: CoffinParams;
40
+ receipt: ReceiptParams;
41
+ wood: Record<string, never>;
42
+ quatrefoil: QuatrefoilParams;
43
+ }
44
+ export declare const SHAPES: Record<BadgeShape, ShapeModule<any>>;
45
+ export declare const ALL_SHAPES: BadgeShape[];
46
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/shapes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGxD,OAAe,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACrD,OAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AACxD,OAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AACxD,OAAkB,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAkB,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAe,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACrD,OAAe,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACrD,OAAe,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACrD,OAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AACxD,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAClD,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAClD,OAAe,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACrD,OAAc,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAElD,OAAe,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACrD,OAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAExD,OAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEjE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,OAAO,EAAE,aAAa,CAAC;IACvB,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,eAAe,CAAC;IAC3B,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,KAAK,EAAE,WAAW,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC3B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC5B,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG,CAAC,CAuBvD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,EAMlC,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { ReactNode } from 'react';
2
+ export type BadgeShape = 'pill' | 'plain' | 'square' | 'notched' | 'perforated' | 'hexagon' | 'starburst' | 'scalloped' | 'shield' | 'ribbon' | 'beavis' | 'sparkler' | 'postage' | 'cloud' | 'house' | 'plaque' | 'crest' | 'urn' | 'coffin' | 'receipt' | 'wood' | 'quatrefoil';
3
+ export type BadgeTone = 'accent' | 'info' | 'warn' | 'danger' | 'muted' | 'neutral' | 'custom';
4
+ export type BadgeVariant = 'outline' | 'solid' | 'subtle';
5
+ export type BadgeSize = 'sm' | 'md';
6
+ export interface ShapeRenderProps<P = Record<string, never>> {
7
+ variant: BadgeVariant;
8
+ focused: boolean;
9
+ params: P;
10
+ /** 0..1 phase offset applied to perimeter patterns when the badge has `crawl` enabled. */
11
+ phase: number;
12
+ }
13
+ export interface ShapeInsets {
14
+ top: number;
15
+ right: number;
16
+ bottom: number;
17
+ left: number;
18
+ }
19
+ /** Compose-mode descriptor a ShapeModule can produce to route rendering through base + effects.
20
+ * Strings reference the shape's BadgeBase/BadgeEffect keys; see bases/index.ts and effects/index.ts. */
21
+ export interface ShapeComposeSpec {
22
+ base: string;
23
+ baseParams?: Record<string, unknown>;
24
+ effects?: {
25
+ type: string;
26
+ params?: Record<string, unknown>;
27
+ }[];
28
+ }
29
+ export interface ShapeModule<P = Record<string, never>> {
30
+ /** Provide a Component for legacy SVG rendering OR a compose() returning a base+effects spec. At least one is required. */
31
+ Component?: (props: ShapeRenderProps<P>) => ReactNode;
32
+ compose?: (params: P) => ShapeComposeSpec;
33
+ insets: ShapeInsets | ((params: P) => ShapeInsets);
34
+ stretches: boolean;
35
+ defaultAspect?: number;
36
+ renderMode?: 'svg' | 'css';
37
+ defaults?: P;
38
+ }
39
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAClB,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,GACtD,SAAS,GACT,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAC1D,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GACrD,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,CAAC;AAEnE,MAAM,MAAM,SAAS,GACjB,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3E,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC1D,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpC,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IACzD,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,CAAC,CAAC;IACV,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AAEzF;yGACyG;AACzG,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,EAAE,CAAC;CAChE;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IACpD,2HAA2H;IAC3H,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;IACtD,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,gBAAgB,CAAC;IAC1C,MAAM,EAAE,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,WAAW,CAAC,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,CAAC;CACd"}
@@ -0,0 +1,29 @@
1
+ import { type ButtonHTMLAttributes, type ReactNode } from 'react';
2
+ export type ButtonVariant = 'primary' | 'secondary' | 'ghost';
3
+ export type ButtonSize = 'sm' | 'md';
4
+ type ButtonBase = {
5
+ variant?: ButtonVariant;
6
+ size?: ButtonSize;
7
+ disabled?: boolean;
8
+ loading?: boolean;
9
+ leadingIcon?: ReactNode;
10
+ trailingIcon?: ReactNode;
11
+ fullWidth?: boolean;
12
+ type?: 'button' | 'submit' | 'reset';
13
+ className?: string;
14
+ style?: ButtonHTMLAttributes<HTMLButtonElement>['style'];
15
+ children?: ReactNode;
16
+ onClick?: ButtonHTMLAttributes<HTMLButtonElement>['onClick'];
17
+ };
18
+ type ButtonRegular = ButtonBase & {
19
+ iconOnly?: false;
20
+ ariaLabel?: string;
21
+ };
22
+ type ButtonIconOnly = ButtonBase & {
23
+ iconOnly: true;
24
+ ariaLabel: string;
25
+ };
26
+ export type ButtonProps = ButtonRegular | ButtonIconOnly;
27
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
28
+ export {};
29
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAGxF,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,KAAK,UAAU,GAAG;IAChB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,CAAC;IACzD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC;CAC9D,CAAC;AAEF,KAAK,aAAa,GAAG,UAAU,GAAG;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,cAAc,GAAG,UAAU,GAAG;IACjC,QAAQ,EAAE,IAAI,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AA2BzD,eAAO,MAAM,MAAM,2GA2DjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Button } from './Button';
2
+ export type { ButtonProps, ButtonVariant, ButtonSize } from './Button';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { type ReactNode, type RefObject } from 'react';
2
+ import { DialogTrigger, type PopoverProps as RACPopoverProps } from 'react-aria-components';
3
+ export type CalloutTone = 'info' | 'warning' | 'danger';
4
+ /**
5
+ * Composition wrapper for press-to-open callouts:
6
+ * `<CalloutTrigger><Pressable>…</Pressable><Callout>…</Callout></CalloutTrigger>`.
7
+ * Re-exported RAC DialogTrigger — non-RAC trigger elements must be wrapped
8
+ * in `<Pressable>` from react-aria-components.
9
+ * In composed mode, put `defaultOpen` on `CalloutTrigger`, not `Callout` —
10
+ * RAC detaches to local open state on the trigger, not the popover.
11
+ */
12
+ export { DialogTrigger as CalloutTrigger };
13
+ export type CalloutProps = Omit<RACPopoverProps, 'children' | 'className' | 'isNonModal' | 'triggerRef'> & {
14
+ children?: ReactNode;
15
+ className?: string;
16
+ /** Optional heading rendered above the body. */
17
+ title?: ReactNode;
18
+ /** Footer slot — typically action buttons. */
19
+ footer?: ReactNode;
20
+ /** Accent tone for border + arrow. Default `info`. */
21
+ tone?: CalloutTone;
22
+ /**
23
+ * `true` — blocks interaction with the rest of the app until dismissed;
24
+ * inner dialog is `role="alertdialog"`. `false` (default) — non-blocking:
25
+ * the app stays interactive; Esc / outside click / close button dismiss.
26
+ */
27
+ modal?: boolean;
28
+ /**
29
+ * Show the × button. Defaults to `!modal`. In programmatic
30
+ * `triggerRef`/`anchorRect` modes the close button requires either
31
+ * controlled open (`isOpen` + `onOpenChange`) or `onDismiss`; with only
32
+ * `defaultOpen` it has no open-state setter to call and cannot close.
33
+ */
34
+ showCloseButton?: boolean;
35
+ /**
36
+ * The user asked for this callout to go away — the × button or Escape.
37
+ *
38
+ * Distinct from `onOpenChange`, which a non-modal popover *also* fires when
39
+ * interaction or focus merely leaves it. On a canvas that's every click on
40
+ * the artwork, so a consumer that pins `isOpen` and treats `onOpenChange`
41
+ * as dismissal retires messages nobody read. Use this instead: it fires
42
+ * only on a deliberate act, and never on incidental focus loss.
43
+ */
44
+ onDismiss?: () => void;
45
+ /** Anchor to an arbitrary element (programmatic use, with `isOpen`). */
46
+ triggerRef?: RefObject<Element | null>;
47
+ /**
48
+ * Anchor to a client-coordinate rect — e.g. a scene node's on-screen box.
49
+ * The callout re-anchors whenever this rect changes, so a consumer that
50
+ * recomputes it on pan, zoom, or scene edits keeps the arrow on its target.
51
+ * Takes precedence over `triggerRef`.
52
+ */
53
+ anchorRect?: {
54
+ x: number;
55
+ y: number;
56
+ width: number;
57
+ height: number;
58
+ };
59
+ };
60
+ /**
61
+ * Anchored callout with an arrow pointing at its source — a trigger
62
+ * element, an arbitrary `triggerRef`, or a client-space `anchorRect`.
63
+ * Wraps React Aria Popover + Dialog; positioning, collision flipping,
64
+ * dismissal, and focus behavior come from the underlying primitives.
65
+ */
66
+ export declare function Callout(props: CalloutProps): import("react/jsx-runtime").JSX.Element;
67
+ //# sourceMappingURL=Callout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Callout.d.ts","sourceRoot":"","sources":["../../../src/components/Callout/Callout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9F,OAAO,EACL,aAAa,EAKb,KAAK,YAAY,IAAI,eAAe,EACrC,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAExD;;;;;;;GAOG;AACH,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,eAAe,EACf,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,CACvD,GAAG;IACF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,sDAAsD;IACtD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,wEAAwE;IACxE,UAAU,CAAC,EAAE,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IACvC;;;;;OAKG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACtE,CAAC;AAQF;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,2CA2I1C"}
@@ -0,0 +1,3 @@
1
+ export { Callout, CalloutTrigger } from './Callout';
2
+ export type { CalloutProps, CalloutTone } from './Callout';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Callout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACpD,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type CheckboxProps as RACCheckboxProps } from 'react-aria-components';
3
+ export type CheckboxProps = Omit<RACCheckboxProps, 'children' | 'className'> & {
4
+ children?: ReactNode;
5
+ className?: string;
6
+ };
7
+ /**
8
+ * Single checkbox wrapping React Aria's Checkbox. Supports indeterminate
9
+ * via `isIndeterminate`. The label is supplied as children.
10
+ */
11
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<RACCheckboxProps, "children" | "className"> & {
12
+ children?: ReactNode;
13
+ className?: string;
14
+ } & import("react").RefAttributes<HTMLLabelElement>>;
15
+ //# sourceMappingURL=Checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAC7D,OAAO,EAEL,KAAK,aAAa,IAAI,gBAAgB,EACvC,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG;IAC7E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ;eARR,SAAS;gBACR,MAAM;oDAyClB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Checkbox } from './Checkbox';
2
+ export type { CheckboxProps } from './Checkbox';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,28 @@
1
+ export interface ColorFieldProps {
2
+ /** Current color, `#rrggbb` or `#rrggbbaa`. Omit when `mixed`. */
3
+ value?: string;
4
+ /** Indeterminate presentation (multi-selection with differing colors):
5
+ * checkered chip, empty value. The first color edit produces a real
6
+ * value; the opacity slider stays disabled until then (an alpha-only
7
+ * edit would otherwise commit a value composed against the
8
+ * placeholder black). */
9
+ mixed?: boolean;
10
+ /** Show the opacity slider; emitted values are `#rrggbbaa`. */
11
+ alpha?: boolean;
12
+ /** Live value during interaction (picker drag, slider drag). Optional —
13
+ * wire it for live preview; omit it for commit-only consumers. */
14
+ onInput?: (hex: string) => void;
15
+ /** Committed value — picker close (blur) or slider release. One call
16
+ * per user gesture; pair with an undoable write. */
17
+ onChange: (hex: string) => void;
18
+ 'aria-label'?: string;
19
+ className?: string;
20
+ }
21
+ /**
22
+ * Compact color editor: native color input + optional opacity slider.
23
+ * Commit semantics are gesture-based (see `onChange`) because native
24
+ * color/range inputs fire `change` continuously during interaction —
25
+ * commit-on-change would emit one undo entry per tick.
26
+ */
27
+ export declare function ColorField(props: ColorFieldProps): import("react/jsx-runtime").JSX.Element;
28
+ //# sourceMappingURL=ColorField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorField.d.ts","sourceRoot":"","sources":["../../../src/components/ColorField/ColorField.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC9B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;8BAI0B;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;uEACmE;IACnE,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC;yDACqD;IACrD,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CA4EhD"}
@@ -0,0 +1,2 @@
1
+ export { ColorField, type ColorFieldProps } from './ColorField';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ColorField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,36 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type ComboBoxProps as RACComboBoxProps, type ListBoxItemProps as RACListBoxItemProps, type ValidationResult } from 'react-aria-components';
3
+ export type ComboBoxOption = {
4
+ value: string;
5
+ label: ReactNode;
6
+ textValue?: string;
7
+ isDisabled?: boolean;
8
+ };
9
+ type Key = string | number;
10
+ export type ComboBoxProps<T extends Key = string> = Omit<RACComboBoxProps<object>, 'children' | 'className' | 'selectedKey' | 'defaultSelectedKey' | 'onSelectionChange'> & {
11
+ label?: ReactNode;
12
+ description?: ReactNode;
13
+ errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
14
+ placeholder?: string;
15
+ options?: ReadonlyArray<ComboBoxOption & {
16
+ value: T;
17
+ }>;
18
+ children?: ReactNode;
19
+ selectedKey?: T | null;
20
+ defaultSelectedKey?: T;
21
+ onSelectionChange?: (key: T | null) => void;
22
+ emptyLabel?: ReactNode;
23
+ className?: string;
24
+ };
25
+ /**
26
+ * Filterable single-select wrapping React Aria's ComboBox. The user can
27
+ * type to filter; selection commits to `onSelectionChange`. When no value
28
+ * is in the input, selection clears (key becomes null).
29
+ */
30
+ export declare function ComboBox<T extends Key = string>(props: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
31
+ export type ComboBoxItemProps = Omit<RACListBoxItemProps, 'className'> & {
32
+ className?: string;
33
+ };
34
+ export declare function ComboBoxItem({ className, ...rest }: ComboBoxItemProps): import("react/jsx-runtime").JSX.Element;
35
+ export {};
36
+ //# sourceMappingURL=ComboBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAUL,KAAK,aAAa,IAAI,gBAAgB,EACtC,KAAK,gBAAgB,IAAI,mBAAmB,EAC5C,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAI/B,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,KAAK,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3B,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,GAAG,GAAG,MAAM,IAAI,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,oBAAoB,GAAG,mBAAmB,CAAC,GAAG;IAC1K,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE,gBAAgB,KAAK,SAAS,CAAC,CAAC;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC,cAAc,GAAG;QAAE,KAAK,EAAE,CAAC,CAAA;KAAE,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACvB,kBAAkB,CAAC,EAAE,CAAC,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5C,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,GAAG,GAAG,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,2CAoDvE;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,mBAAmB,EAAE,WAAW,CAAC,GAAG;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,iBAAiB,2CAErE"}
@@ -0,0 +1,3 @@
1
+ export { ComboBox, ComboBoxItem } from './ComboBox';
2
+ export type { ComboBoxProps, ComboBoxItemProps, ComboBoxOption } from './ComboBox';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Back-compat wrapper around `LayeredCurveEditor` that preserves the
3
+ * original single-curve API. New consumers wanting multi-layer
4
+ * composition should reach for `LayeredCurveEditor` + `createFunctionLayer`
5
+ * directly.
6
+ */
7
+ import { type CSSProperties, type ReactNode } from 'react';
8
+ import { type GridSettings, type AxesSettings } from '../Plot2D';
9
+ import type { InterpolationMode } from './interpolation';
10
+ import { type ControlPoint, type CurveDomain, type EndpointMode, type AddPointMode, type CurveSettings, type FillSettings, type AnchorRenderProps } from './createFunctionLayer';
11
+ export type { GridSettings, AxesSettings };
12
+ export type { ControlPoint, CurveDomain, EndpointMode, AddPointMode, CurveSettings, FillSettings, AnchorRenderProps, };
13
+ export interface CurveEditorProps {
14
+ value: readonly ControlPoint[];
15
+ onChange: (next: ControlPoint[]) => void;
16
+ onChangeCommit?: (next: ControlPoint[], prev: readonly ControlPoint[]) => void;
17
+ domain?: CurveDomain;
18
+ interpolation?: InterpolationMode;
19
+ endpoints?: EndpointMode;
20
+ xRange?: readonly [number, number];
21
+ yRange?: readonly [number, number];
22
+ width: number;
23
+ height: number;
24
+ grid?: GridSettings | false | null;
25
+ axes?: AxesSettings | false | null;
26
+ curve?: CurveSettings | false | null;
27
+ fill?: FillSettings | false | null;
28
+ hideNonInteractive?: boolean;
29
+ constrain?: 'none' | 'function';
30
+ history?: boolean;
31
+ minPoints?: number;
32
+ maxPoints?: number;
33
+ addPointMode?: AddPointMode;
34
+ renderAnchor?: (info: AnchorRenderProps) => ReactNode;
35
+ /** Extra SVG content rendered behind the curve and anchors. */
36
+ decorations?: ReactNode;
37
+ className?: string;
38
+ style?: CSSProperties;
39
+ }
40
+ export declare function CurveEditor(props: CurveEditorProps): import("react/jsx-runtime").JSX.Element;
41
+ //# sourceMappingURL=CurveEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurveEditor.d.ts","sourceRoot":"","sources":["../../../src/components/CurveEditor/CurveEditor.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAC;AAG/B,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAC3C,YAAY,EACV,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EACrD,aAAa,EAAE,YAAY,EAAE,iBAAiB,GAC/C,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,YAAY,EAAE,KAAK,IAAI,CAAC;IAC/E,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,aAAa,GAAG,KAAK,GAAG,IAAI,CAAC;IACrC,IAAI,CAAC,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI,CAAC;IACnC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,SAAS,CAAC;IACtD,+DAA+D;IAC/D,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA4GlD"}