@proyecto-viviana/solid-stately 0.5.1 → 0.6.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/LICENSE-APACHE-2.0 +201 -0
  2. package/NOTICE +91 -0
  3. package/dist/autocomplete/createAutocompleteState.d.ts +2 -1
  4. package/dist/autocomplete/createAutocompleteState.d.ts.map +1 -0
  5. package/dist/autocomplete/index.d.ts +1 -0
  6. package/dist/autocomplete/index.d.ts.map +1 -0
  7. package/dist/calendar/IncompleteDate.d.ts +2 -1
  8. package/dist/calendar/IncompleteDate.d.ts.map +1 -0
  9. package/dist/calendar/createCalendarState.d.ts +7 -8
  10. package/dist/calendar/createCalendarState.d.ts.map +1 -0
  11. package/dist/calendar/createDateFieldState.d.ts +4 -20
  12. package/dist/calendar/createDateFieldState.d.ts.map +1 -0
  13. package/dist/calendar/createDatePickerState.d.ts +2 -7
  14. package/dist/calendar/createDatePickerState.d.ts.map +1 -0
  15. package/dist/calendar/createRangeCalendarState.d.ts +7 -7
  16. package/dist/calendar/createRangeCalendarState.d.ts.map +1 -0
  17. package/dist/calendar/createTimeFieldState.d.ts +4 -23
  18. package/dist/calendar/createTimeFieldState.d.ts.map +1 -0
  19. package/dist/calendar/index.d.ts +1 -0
  20. package/dist/calendar/index.d.ts.map +1 -0
  21. package/dist/calendar/intl/index.d.ts +1 -0
  22. package/dist/calendar/intl/index.d.ts.map +1 -0
  23. package/dist/checkbox/createCheckboxGroupState.d.ts +1 -0
  24. package/dist/checkbox/createCheckboxGroupState.d.ts.map +1 -0
  25. package/dist/checkbox/index.d.ts +1 -0
  26. package/dist/checkbox/index.d.ts.map +1 -0
  27. package/dist/collections/ListCollection.d.ts +5 -0
  28. package/dist/collections/ListCollection.d.ts.map +1 -0
  29. package/dist/collections/createListState.d.ts +2 -6
  30. package/dist/collections/createListState.d.ts.map +1 -0
  31. package/dist/collections/createMenuState.d.ts +30 -13
  32. package/dist/collections/createMenuState.d.ts.map +1 -0
  33. package/dist/collections/createSelectionState.d.ts +2 -5
  34. package/dist/collections/createSelectionState.d.ts.map +1 -0
  35. package/dist/collections/getChildNodes.d.ts +6 -3
  36. package/dist/collections/getChildNodes.d.ts.map +1 -0
  37. package/dist/collections/index.d.ts +2 -1
  38. package/dist/collections/index.d.ts.map +1 -0
  39. package/dist/collections/types.d.ts +36 -2
  40. package/dist/collections/types.d.ts.map +1 -0
  41. package/dist/color/Color.d.ts +7 -1
  42. package/dist/color/Color.d.ts.map +1 -0
  43. package/dist/color/createColorAreaState.d.ts +2 -5
  44. package/dist/color/createColorAreaState.d.ts.map +1 -0
  45. package/dist/color/createColorFieldState.d.ts +2 -5
  46. package/dist/color/createColorFieldState.d.ts.map +1 -0
  47. package/dist/color/createColorSliderState.d.ts +2 -5
  48. package/dist/color/createColorSliderState.d.ts.map +1 -0
  49. package/dist/color/createColorWheelState.d.ts +2 -5
  50. package/dist/color/createColorWheelState.d.ts.map +1 -0
  51. package/dist/color/getColorChannels.d.ts +3 -0
  52. package/dist/color/getColorChannels.d.ts.map +1 -0
  53. package/dist/color/index.d.ts +2 -1
  54. package/dist/color/index.d.ts.map +1 -0
  55. package/dist/color/intl/index.d.ts +1 -0
  56. package/dist/color/intl/index.d.ts.map +1 -0
  57. package/dist/color/types.d.ts +2 -1
  58. package/dist/color/types.d.ts.map +1 -0
  59. package/dist/combobox/createComboBoxState.d.ts +4 -8
  60. package/dist/combobox/createComboBoxState.d.ts.map +1 -0
  61. package/dist/combobox/index.d.ts +1 -0
  62. package/dist/combobox/index.d.ts.map +1 -0
  63. package/dist/data/createAsyncList.d.ts +1 -7
  64. package/dist/data/createAsyncList.d.ts.map +1 -0
  65. package/dist/data/createListData.d.ts +1 -6
  66. package/dist/data/createListData.d.ts.map +1 -0
  67. package/dist/data/createTreeData.d.ts +1 -6
  68. package/dist/data/createTreeData.d.ts.map +1 -0
  69. package/dist/data/index.d.ts +1 -0
  70. package/dist/data/index.d.ts.map +1 -0
  71. package/dist/datepicker/index.d.ts +1 -0
  72. package/dist/datepicker/index.d.ts.map +1 -0
  73. package/dist/disclosure/createDisclosureState.d.ts +2 -5
  74. package/dist/disclosure/createDisclosureState.d.ts.map +1 -0
  75. package/dist/disclosure/index.d.ts +1 -0
  76. package/dist/disclosure/index.d.ts.map +1 -0
  77. package/dist/dnd/createDragState.d.ts +2 -6
  78. package/dist/dnd/createDragState.d.ts.map +1 -0
  79. package/dist/dnd/createDraggableCollectionState.d.ts +39 -10
  80. package/dist/dnd/createDraggableCollectionState.d.ts.map +1 -0
  81. package/dist/dnd/createDropState.d.ts +2 -6
  82. package/dist/dnd/createDropState.d.ts.map +1 -0
  83. package/dist/dnd/createDroppableCollectionState.d.ts +28 -11
  84. package/dist/dnd/createDroppableCollectionState.d.ts.map +1 -0
  85. package/dist/dnd/index.d.ts +3 -2
  86. package/dist/dnd/index.d.ts.map +1 -0
  87. package/dist/dnd/types.d.ts +17 -0
  88. package/dist/dnd/types.d.ts.map +1 -0
  89. package/dist/flags/flags.d.ts +5 -0
  90. package/dist/flags/flags.d.ts.map +1 -0
  91. package/dist/form/createFormValidationState.d.ts +2 -9
  92. package/{src → dist}/form/createFormValidationState.d.ts.map +1 -1
  93. package/dist/form/index.d.ts +1 -0
  94. package/dist/form/index.d.ts.map +1 -0
  95. package/dist/grid/createGridState.d.ts +3 -2
  96. package/dist/grid/createGridState.d.ts.map +1 -0
  97. package/dist/grid/index.d.ts +1 -0
  98. package/dist/grid/index.d.ts.map +1 -0
  99. package/dist/grid/types.d.ts +23 -1
  100. package/dist/grid/types.d.ts.map +1 -0
  101. package/dist/index.d.ts +4 -2
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +2030 -593
  104. package/dist/index.js.map +1 -1
  105. package/dist/menu/index.d.ts +2 -1
  106. package/dist/menu/index.d.ts.map +1 -0
  107. package/dist/numberfield/createNumberFieldState.d.ts +31 -6
  108. package/dist/numberfield/createNumberFieldState.d.ts.map +1 -0
  109. package/dist/numberfield/index.d.ts +1 -0
  110. package/dist/numberfield/index.d.ts.map +1 -0
  111. package/dist/overlays/createOverlayTriggerState.d.ts +12 -1
  112. package/dist/overlays/createOverlayTriggerState.d.ts.map +1 -0
  113. package/dist/overlays/index.d.ts +1 -0
  114. package/dist/overlays/index.d.ts.map +1 -0
  115. package/dist/private/flags/flags.js +26 -0
  116. package/dist/private/flags/flags.js.map +1 -0
  117. package/dist/radio/createRadioGroupState.d.ts +1 -0
  118. package/dist/radio/createRadioGroupState.d.ts.map +1 -0
  119. package/dist/radio/index.d.ts +1 -0
  120. package/dist/radio/index.d.ts.map +1 -0
  121. package/dist/searchfield/createSearchFieldState.d.ts +2 -5
  122. package/dist/searchfield/createSearchFieldState.d.ts.map +1 -0
  123. package/dist/searchfield/index.d.ts +1 -0
  124. package/dist/searchfield/index.d.ts.map +1 -0
  125. package/dist/select/createSelectState.d.ts +17 -6
  126. package/dist/select/createSelectState.d.ts.map +1 -0
  127. package/dist/select/index.d.ts +1 -0
  128. package/dist/select/index.d.ts.map +1 -0
  129. package/dist/selection/Selection.d.ts +2 -1
  130. package/dist/selection/Selection.d.ts.map +1 -0
  131. package/dist/selection/SelectionManager.d.ts +1 -19
  132. package/dist/selection/SelectionManager.d.ts.map +1 -0
  133. package/dist/selection/createMultipleSelectionState.d.ts +2 -13
  134. package/dist/selection/createMultipleSelectionState.d.ts.map +1 -0
  135. package/dist/selection/index.d.ts +1 -0
  136. package/dist/selection/index.d.ts.map +1 -0
  137. package/dist/slider/createSliderState.d.ts +2 -5
  138. package/dist/slider/createSliderState.d.ts.map +1 -0
  139. package/dist/slider/index.d.ts +1 -0
  140. package/dist/slider/index.d.ts.map +1 -0
  141. package/dist/ssr/index.d.ts +2 -7
  142. package/dist/ssr/index.d.ts.map +1 -0
  143. package/dist/steplist/createStepListState.d.ts +2 -5
  144. package/dist/steplist/createStepListState.d.ts.map +1 -0
  145. package/dist/steplist/index.d.ts +1 -0
  146. package/dist/steplist/index.d.ts.map +1 -0
  147. package/dist/table/TableCollection.d.ts +1 -0
  148. package/dist/table/TableCollection.d.ts.map +1 -0
  149. package/dist/table/createTableColumnResizeState.d.ts +2 -9
  150. package/dist/table/createTableColumnResizeState.d.ts.map +1 -0
  151. package/dist/table/createTableState.d.ts +2 -5
  152. package/dist/table/createTableState.d.ts.map +1 -0
  153. package/dist/table/createTreeGridState.d.ts +2 -8
  154. package/dist/table/createTreeGridState.d.ts.map +1 -0
  155. package/dist/table/index.d.ts +1 -0
  156. package/dist/table/index.d.ts.map +1 -0
  157. package/dist/table/types.d.ts +35 -1
  158. package/dist/table/types.d.ts.map +1 -0
  159. package/dist/tabs/createTabListState.d.ts +2 -5
  160. package/dist/tabs/createTabListState.d.ts.map +1 -0
  161. package/dist/tabs/index.d.ts +1 -0
  162. package/dist/tabs/index.d.ts.map +1 -0
  163. package/dist/textfield/createTextFieldState.d.ts +1 -0
  164. package/dist/textfield/createTextFieldState.d.ts.map +1 -0
  165. package/dist/textfield/index.d.ts +1 -0
  166. package/dist/textfield/index.d.ts.map +1 -0
  167. package/dist/toast/createToastState.d.ts +2 -5
  168. package/dist/toast/createToastState.d.ts.map +1 -0
  169. package/dist/toast/index.d.ts +1 -0
  170. package/dist/toast/index.d.ts.map +1 -0
  171. package/dist/toggle/createToggleGroupState.d.ts +1 -0
  172. package/dist/toggle/createToggleGroupState.d.ts.map +1 -0
  173. package/dist/toggle/createToggleState.d.ts +1 -0
  174. package/dist/toggle/createToggleState.d.ts.map +1 -0
  175. package/dist/toggle/index.d.ts +1 -0
  176. package/dist/toggle/index.d.ts.map +1 -0
  177. package/dist/tokenfield/TokenFieldValue.d.ts +72 -0
  178. package/dist/tokenfield/TokenFieldValue.d.ts.map +1 -0
  179. package/dist/tokenfield/createTokenFieldState.d.ts +33 -0
  180. package/dist/tokenfield/createTokenFieldState.d.ts.map +1 -0
  181. package/dist/tokenfield/index.d.ts +3 -0
  182. package/dist/tokenfield/index.d.ts.map +1 -0
  183. package/dist/tooltip/createTooltipTriggerState.d.ts +9 -8
  184. package/dist/tooltip/createTooltipTriggerState.d.ts.map +1 -0
  185. package/dist/tooltip/index.d.ts +1 -0
  186. package/dist/tooltip/index.d.ts.map +1 -0
  187. package/dist/tree/TreeCollection.d.ts +1 -0
  188. package/dist/tree/TreeCollection.d.ts.map +1 -0
  189. package/dist/tree/createTreeState.d.ts +2 -7
  190. package/{src → dist}/tree/createTreeState.d.ts.map +1 -1
  191. package/dist/tree/index.d.ts +1 -0
  192. package/dist/tree/index.d.ts.map +1 -0
  193. package/dist/tree/types.d.ts +19 -1
  194. package/dist/tree/types.d.ts.map +1 -0
  195. package/dist/utils/index.d.ts +3 -1
  196. package/dist/utils/index.d.ts.map +1 -0
  197. package/dist/utils/owner.d.ts +9 -0
  198. package/dist/utils/owner.d.ts.map +1 -0
  199. package/dist/utils/reactivity.d.ts +19 -0
  200. package/dist/utils/reactivity.d.ts.map +1 -0
  201. package/package.json +21 -9
  202. package/src/autocomplete/createAutocompleteState.ts +18 -4
  203. package/src/calendar/IncompleteDate.ts +15 -1
  204. package/src/calendar/createCalendarState.ts +194 -79
  205. package/src/calendar/createDateFieldState.ts +45 -31
  206. package/src/calendar/createDatePickerState.ts +32 -14
  207. package/src/calendar/createRangeCalendarState.ts +134 -73
  208. package/src/calendar/createTimeFieldState.ts +25 -6
  209. package/src/calendar/intl/index.ts +37 -2
  210. package/src/checkbox/createCheckboxGroupState.ts +29 -13
  211. package/src/collections/ListCollection.ts +31 -0
  212. package/src/collections/createListState.ts +23 -6
  213. package/src/collections/createMenuState.ts +59 -14
  214. package/src/collections/createSelectionState.ts +32 -12
  215. package/src/collections/getChildNodes.ts +20 -3
  216. package/src/collections/index.ts +2 -0
  217. package/src/collections/types.ts +35 -2
  218. package/src/color/Color.ts +61 -22
  219. package/src/color/createColorAreaState.ts +29 -4
  220. package/src/color/createColorFieldState.ts +37 -11
  221. package/src/color/createColorSliderState.ts +36 -7
  222. package/src/color/createColorWheelState.ts +20 -4
  223. package/src/color/getColorChannels.ts +16 -0
  224. package/src/color/index.ts +1 -0
  225. package/src/color/intl/index.ts +38 -3
  226. package/src/color/types.ts +1 -1
  227. package/src/combobox/createComboBoxState.ts +178 -195
  228. package/src/data/createAsyncList.ts +22 -2
  229. package/src/data/createListData.ts +19 -2
  230. package/src/data/createTreeData.ts +19 -3
  231. package/src/disclosure/createDisclosureState.ts +40 -19
  232. package/src/dnd/createDragState.ts +22 -4
  233. package/src/dnd/createDraggableCollectionState.ts +137 -10
  234. package/src/dnd/createDropState.ts +21 -3
  235. package/src/dnd/createDroppableCollectionState.ts +117 -11
  236. package/src/dnd/index.ts +4 -0
  237. package/src/dnd/types.ts +16 -0
  238. package/src/flags/flags.ts +25 -0
  239. package/src/form/createFormValidationState.ts +54 -36
  240. package/src/grid/createGridState.ts +187 -109
  241. package/src/grid/types.ts +22 -1
  242. package/src/index.ts +15 -0
  243. package/src/menu/index.ts +2 -0
  244. package/src/numberfield/createNumberFieldState.ts +153 -66
  245. package/src/overlays/createOverlayTriggerState.ts +31 -4
  246. package/src/radio/createRadioGroupState.ts +19 -5
  247. package/src/searchfield/createSearchFieldState.ts +18 -3
  248. package/src/select/createSelectState.ts +73 -8
  249. package/src/selection/Selection.ts +15 -1
  250. package/src/selection/SelectionManager.ts +14 -0
  251. package/src/selection/createMultipleSelectionState.ts +44 -25
  252. package/src/slider/createSliderState.ts +20 -5
  253. package/src/ssr/index.ts +27 -4
  254. package/src/steplist/createStepListState.ts +38 -17
  255. package/src/table/TableCollection.ts +14 -0
  256. package/src/table/createTableColumnResizeState.ts +20 -3
  257. package/src/table/createTableState.ts +22 -1
  258. package/src/table/createTreeGridState.ts +21 -4
  259. package/src/table/types.ts +36 -3
  260. package/src/tabs/createTabListState.ts +77 -34
  261. package/src/textfield/createTextFieldState.ts +17 -3
  262. package/src/toast/createToastState.ts +28 -3
  263. package/src/toggle/createToggleGroupState.ts +20 -5
  264. package/src/toggle/createToggleState.ts +19 -4
  265. package/src/tokenfield/TokenFieldValue.ts +440 -0
  266. package/src/tokenfield/createTokenFieldState.ts +88 -0
  267. package/src/tokenfield/index.ts +14 -0
  268. package/src/tooltip/createTooltipTriggerState.ts +49 -13
  269. package/src/tree/TreeCollection.ts +14 -0
  270. package/src/tree/createTreeState.ts +62 -35
  271. package/src/tree/types.ts +18 -1
  272. package/src/utils/index.ts +9 -1
  273. package/src/utils/owner.ts +20 -0
  274. package/src/utils/reactivity.ts +45 -1
  275. package/src/autocomplete/createAutocompleteState.d.ts +0 -48
  276. package/src/autocomplete/createAutocompleteState.d.ts.map +0 -1
  277. package/src/autocomplete/index.d.ts +0 -6
  278. package/src/autocomplete/index.d.ts.map +0 -1
  279. package/src/calendar/createCalendarState.d.ts +0 -152
  280. package/src/calendar/createCalendarState.d.ts.map +0 -1
  281. package/src/calendar/createDateFieldState.d.ts +0 -145
  282. package/src/calendar/createDateFieldState.d.ts.map +0 -1
  283. package/src/calendar/createRangeCalendarState.d.ts +0 -171
  284. package/src/calendar/createRangeCalendarState.d.ts.map +0 -1
  285. package/src/calendar/createTimeFieldState.d.ts +0 -97
  286. package/src/calendar/createTimeFieldState.d.ts.map +0 -1
  287. package/src/calendar/index.d.ts +0 -80
  288. package/src/calendar/index.d.ts.map +0 -1
  289. package/src/checkbox/createCheckboxGroupState.d.ts +0 -73
  290. package/src/checkbox/createCheckboxGroupState.d.ts.map +0 -1
  291. package/src/checkbox/index.d.ts +0 -6
  292. package/src/checkbox/index.d.ts.map +0 -1
  293. package/src/collections/ListCollection.d.ts +0 -40
  294. package/src/collections/ListCollection.d.ts.map +0 -1
  295. package/src/collections/createListState.d.ts +0 -94
  296. package/src/collections/createListState.d.ts.map +0 -1
  297. package/src/collections/createMenuState.d.ts +0 -55
  298. package/src/collections/createMenuState.d.ts.map +0 -1
  299. package/src/collections/createSelectionState.d.ts +0 -89
  300. package/src/collections/createSelectionState.d.ts.map +0 -1
  301. package/src/collections/index.d.ts +0 -38
  302. package/src/collections/index.d.ts.map +0 -1
  303. package/src/collections/types.d.ts +0 -147
  304. package/src/collections/types.d.ts.map +0 -1
  305. package/src/color/Color.d.ts +0 -43
  306. package/src/color/Color.d.ts.map +0 -1
  307. package/src/color/createColorAreaState.d.ts +0 -78
  308. package/src/color/createColorAreaState.d.ts.map +0 -1
  309. package/src/color/createColorFieldState.d.ts +0 -57
  310. package/src/color/createColorFieldState.d.ts.map +0 -1
  311. package/src/color/createColorSliderState.d.ts +0 -69
  312. package/src/color/createColorSliderState.d.ts.map +0 -1
  313. package/src/color/createColorWheelState.d.ts +0 -53
  314. package/src/color/createColorWheelState.d.ts.map +0 -1
  315. package/src/color/index.d.ts +0 -39
  316. package/src/color/index.d.ts.map +0 -1
  317. package/src/color/types.d.ts +0 -111
  318. package/src/color/types.d.ts.map +0 -1
  319. package/src/combobox/createComboBoxState.d.ts +0 -127
  320. package/src/combobox/createComboBoxState.d.ts.map +0 -1
  321. package/src/combobox/index.d.ts +0 -13
  322. package/src/combobox/index.d.ts.map +0 -1
  323. package/src/disclosure/createDisclosureState.d.ts +0 -68
  324. package/src/disclosure/createDisclosureState.d.ts.map +0 -1
  325. package/src/disclosure/index.d.ts +0 -10
  326. package/src/disclosure/index.d.ts.map +0 -1
  327. package/src/dnd/createDragState.d.ts +0 -68
  328. package/src/dnd/createDragState.d.ts.map +0 -1
  329. package/src/dnd/createDraggableCollectionState.d.ts +0 -68
  330. package/src/dnd/createDraggableCollectionState.d.ts.map +0 -1
  331. package/src/dnd/createDropState.d.ts +0 -80
  332. package/src/dnd/createDropState.d.ts.map +0 -1
  333. package/src/dnd/createDroppableCollectionState.d.ts +0 -107
  334. package/src/dnd/createDroppableCollectionState.d.ts.map +0 -1
  335. package/src/dnd/index.d.ts +0 -60
  336. package/src/dnd/index.d.ts.map +0 -1
  337. package/src/dnd/types.d.ts +0 -277
  338. package/src/dnd/types.d.ts.map +0 -1
  339. package/src/form/createFormValidationState.d.ts +0 -102
  340. package/src/form/index.d.ts +0 -16
  341. package/src/form/index.d.ts.map +0 -1
  342. package/src/grid/createGridState.d.ts +0 -15
  343. package/src/grid/createGridState.d.ts.map +0 -1
  344. package/src/grid/index.d.ts +0 -7
  345. package/src/grid/index.d.ts.map +0 -1
  346. package/src/grid/types.d.ts +0 -163
  347. package/src/grid/types.d.ts.map +0 -1
  348. package/src/index.d.ts +0 -311
  349. package/src/index.d.ts.map +0 -1
  350. package/src/numberfield/createNumberFieldState.d.ts +0 -67
  351. package/src/numberfield/createNumberFieldState.d.ts.map +0 -1
  352. package/src/numberfield/index.d.ts +0 -6
  353. package/src/numberfield/index.d.ts.map +0 -1
  354. package/src/overlays/createOverlayTriggerState.d.ts +0 -34
  355. package/src/overlays/createOverlayTriggerState.d.ts.map +0 -1
  356. package/src/overlays/index.d.ts +0 -6
  357. package/src/overlays/index.d.ts.map +0 -1
  358. package/src/radio/createRadioGroupState.d.ts +0 -79
  359. package/src/radio/createRadioGroupState.d.ts.map +0 -1
  360. package/src/radio/index.d.ts +0 -7
  361. package/src/radio/index.d.ts.map +0 -1
  362. package/src/searchfield/createSearchFieldState.d.ts +0 -27
  363. package/src/searchfield/createSearchFieldState.d.ts.map +0 -1
  364. package/src/searchfield/index.d.ts +0 -3
  365. package/src/searchfield/index.d.ts.map +0 -1
  366. package/src/select/createSelectState.d.ts +0 -75
  367. package/src/select/createSelectState.d.ts.map +0 -1
  368. package/src/select/index.d.ts +0 -2
  369. package/src/select/index.d.ts.map +0 -1
  370. package/src/slider/createSliderState.d.ts +0 -72
  371. package/src/slider/createSliderState.d.ts.map +0 -1
  372. package/src/slider/index.d.ts +0 -3
  373. package/src/slider/index.d.ts.map +0 -1
  374. package/src/ssr/index.d.ts +0 -28
  375. package/src/ssr/index.d.ts.map +0 -1
  376. package/src/table/TableCollection.d.ts +0 -54
  377. package/src/table/TableCollection.d.ts.map +0 -1
  378. package/src/table/createTableState.d.ts +0 -15
  379. package/src/table/createTableState.d.ts.map +0 -1
  380. package/src/table/index.d.ts +0 -18
  381. package/src/table/index.d.ts.map +0 -1
  382. package/src/table/types.d.ts +0 -145
  383. package/src/table/types.d.ts.map +0 -1
  384. package/src/tabs/createTabListState.d.ts +0 -70
  385. package/src/tabs/createTabListState.d.ts.map +0 -1
  386. package/src/tabs/index.d.ts +0 -8
  387. package/src/tabs/index.d.ts.map +0 -1
  388. package/src/textfield/createTextFieldState.d.ts +0 -32
  389. package/src/textfield/createTextFieldState.d.ts.map +0 -1
  390. package/src/textfield/index.d.ts +0 -6
  391. package/src/textfield/index.d.ts.map +0 -1
  392. package/src/toast/createToastState.d.ts +0 -129
  393. package/src/toast/createToastState.d.ts.map +0 -1
  394. package/src/toast/index.d.ts +0 -12
  395. package/src/toast/index.d.ts.map +0 -1
  396. package/src/toggle/createToggleState.d.ts +0 -34
  397. package/src/toggle/createToggleState.d.ts.map +0 -1
  398. package/src/toggle/index.d.ts +0 -2
  399. package/src/toggle/index.d.ts.map +0 -1
  400. package/src/tooltip/createTooltipTriggerState.d.ts +0 -39
  401. package/src/tooltip/createTooltipTriggerState.d.ts.map +0 -1
  402. package/src/tooltip/index.d.ts +0 -7
  403. package/src/tooltip/index.d.ts.map +0 -1
  404. package/src/tree/TreeCollection.d.ts +0 -43
  405. package/src/tree/TreeCollection.d.ts.map +0 -1
  406. package/src/tree/createTreeState.d.ts +0 -17
  407. package/src/tree/index.d.ts +0 -13
  408. package/src/tree/index.d.ts.map +0 -1
  409. package/src/tree/types.d.ts +0 -162
  410. package/src/tree/types.d.ts.map +0 -1
  411. package/src/utils/index.d.ts +0 -2
  412. package/src/utils/index.d.ts.map +0 -1
  413. package/src/utils/reactivity.d.ts +0 -28
  414. package/src/utils/reactivity.d.ts.map +0 -1
@@ -1,69 +0,0 @@
1
- /**
2
- * ColorSlider state management.
3
- * Based on @react-stately/color useColorSliderState.
4
- */
5
- import { type Accessor } from "solid-js";
6
- import type { Color, ColorChannel } from "./types";
7
- export interface ColorSliderStateOptions {
8
- /** The current color value (controlled). */
9
- value?: Color | string;
10
- /** The default color value (uncontrolled). */
11
- defaultValue?: Color | string;
12
- /** Handler called when the color changes. */
13
- onChange?: (color: Color) => void;
14
- /** Handler called when dragging ends. */
15
- onChangeEnd?: (color: Color) => void;
16
- /** The color channel this slider controls. */
17
- channel: ColorChannel;
18
- /** Whether the slider is disabled. */
19
- isDisabled?: boolean;
20
- /** The locale for formatting. */
21
- locale?: string;
22
- }
23
- export interface ColorSliderState {
24
- /** The current color value. */
25
- readonly value: Color;
26
- /** Whether the slider is being dragged. */
27
- readonly isDragging: boolean;
28
- /** The color channel being controlled. */
29
- readonly channel: ColorChannel;
30
- /** The step value for the channel. */
31
- readonly step: number;
32
- /** The page step value for the channel. */
33
- readonly pageSize: number;
34
- /** The minimum value for the channel. */
35
- readonly minValue: number;
36
- /** The maximum value for the channel. */
37
- readonly maxValue: number;
38
- /** Whether the slider is disabled. */
39
- readonly isDisabled: boolean;
40
- /** Get the current channel value. */
41
- getThumbValue(): number;
42
- /** Get the minimum percent. */
43
- getThumbMinValue(): number;
44
- /** Get the maximum percent. */
45
- getThumbMaxValue(): number;
46
- /** Get the thumb value as a percentage. */
47
- getThumbPercent(): number;
48
- /** Set the channel value. */
49
- setThumbValue(value: number): void;
50
- /** Set the thumb value from a percentage (0-1). */
51
- setThumbPercent(percent: number): void;
52
- /** Increment the channel value. */
53
- incrementThumb(stepSize?: number): void;
54
- /** Decrement the channel value. */
55
- decrementThumb(stepSize?: number): void;
56
- /** Set the dragging state. */
57
- setDragging(isDragging: boolean): void;
58
- /** Get the display color (with alpha = 1). */
59
- getDisplayColor(): Color;
60
- /** Get the formatted value label. */
61
- getThumbValueLabel(): string;
62
- }
63
- /**
64
- * Creates state for a color slider.
65
- */
66
- export declare function createColorSliderState(
67
- options: Accessor<ColorSliderStateOptions>,
68
- ): ColorSliderState;
69
- //# sourceMappingURL=createColorSliderState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createColorSliderState.d.ts","sourceRoot":"","sources":["createColorSliderState.ts"],"names":[],"mappings":"AAAA;;;GAGG;A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M,CAAC;IAC3B,2CAA2C;IAC3C,eAAe,IAAI,MAAM,CAAC;IAC1B,6BAA6B;IAC7B,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,mDAAmD;IACnD,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,mCAAmC;IACnC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,mCAAmC;IACnC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,8BAA8B;IAC9B,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC,8CAA8C;IAC9C,eAAe,IAAI,KAAK,CAAC;IACzB,qCAAqC;IACrC,kBAAkB,IAAI,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GACzC,gBAAgB,CAuKlB"}
@@ -1,53 +0,0 @@
1
- /**
2
- * ColorWheel state management.
3
- * Based on @react-stately/color useColorWheelState.
4
- */
5
- import { type Accessor } from "solid-js";
6
- import type { Color } from "./types";
7
- export interface ColorWheelStateOptions {
8
- /** The current color value (controlled). */
9
- value?: Color | string;
10
- /** The default color value (uncontrolled). */
11
- defaultValue?: Color | string;
12
- /** Handler called when the color changes. */
13
- onChange?: (color: Color) => void;
14
- /** Handler called when dragging ends. */
15
- onChangeEnd?: (color: Color) => void;
16
- /** Whether the wheel is disabled. */
17
- isDisabled?: boolean;
18
- }
19
- export interface ColorWheelState {
20
- /** The current color value. */
21
- readonly value: Color;
22
- /** Whether the wheel is being dragged. */
23
- readonly isDragging: boolean;
24
- /** Whether the wheel is disabled. */
25
- readonly isDisabled: boolean;
26
- /** Step value for hue changes. */
27
- readonly step: number;
28
- /** Page step value for hue changes. */
29
- readonly pageStep: number;
30
- /** Get the current hue value (0-360). */
31
- getHue(): number;
32
- /** Set the hue value. */
33
- setHue(value: number): void;
34
- /** Set hue from an angle in radians. */
35
- setHueFromAngle(angle: number): void;
36
- /** Get the thumb angle in radians (0 = right, increases counterclockwise). */
37
- getThumbAngle(): number;
38
- /** Increment hue value. */
39
- increment(stepSize?: number): void;
40
- /** Decrement hue value. */
41
- decrement(stepSize?: number): void;
42
- /** Set the dragging state. */
43
- setDragging(isDragging: boolean): void;
44
- /** Get the display color (with full saturation/brightness for wheel). */
45
- getDisplayColor(): Color;
46
- }
47
- /**
48
- * Creates state for a color wheel (circular hue picker).
49
- */
50
- export declare function createColorWheelState(
51
- options: Accessor<ColorWheelStateOptions>,
52
- ): ColorWheelState;
53
- //# sourceMappingURL=createColorWheelState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createColorWheelState.d.ts","sourceRoot":"","sources":["createColorWheelState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAgB,MAAM,SAAS,CAAC;AAGnD,MAAM,WAAW,sBAAsB;IACrC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC9B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,yCAAyC;IACzC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACrC,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,qCAAqC;IACrC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,yCAAyC;IACzC,MAAM,IAAI,MAAM,CAAC;IACjB,yBAAyB;IACzB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wCAAwC;IACxC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,8EAA8E;IAC9E,aAAa,IAAI,MAAM,CAAC;IACxB,2BAA2B;IAC3B,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,2BAA2B;IAC3B,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,8BAA8B;IAC9B,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC,yEAAyE;IACzE,eAAe,IAAI,KAAK,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GACxC,eAAe,CAyJjB"}
@@ -1,39 +0,0 @@
1
- /**
2
- * Color state management exports.
3
- */
4
- export type {
5
- Color,
6
- ColorFormat,
7
- ColorSpace,
8
- ColorChannel,
9
- ColorChannelRange,
10
- ColorAxes,
11
- } from "./types";
12
- export {
13
- parseColor,
14
- normalizeColor,
15
- createRGBColor,
16
- createHSLColor,
17
- createHSBColor,
18
- } from "./Color";
19
- export {
20
- createColorSliderState,
21
- type ColorSliderStateOptions,
22
- type ColorSliderState,
23
- } from "./createColorSliderState";
24
- export {
25
- createColorAreaState,
26
- type ColorAreaStateOptions,
27
- type ColorAreaState,
28
- } from "./createColorAreaState";
29
- export {
30
- createColorWheelState,
31
- type ColorWheelStateOptions,
32
- type ColorWheelState,
33
- } from "./createColorWheelState";
34
- export {
35
- createColorFieldState,
36
- type ColorFieldStateOptions,
37
- type ColorFieldState,
38
- } from "./createColorFieldState";
39
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,SAAS,GACV,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,GACf,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,sBAAsB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,oBAAoB,EACpB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,GACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,MAAM,yBAAyB,CAAC"}
@@ -1,111 +0,0 @@
1
- /**
2
- * Color types for color picker components.
3
- * Based on @react-stately/color.
4
- */
5
- /**
6
- * Supported color formats.
7
- */
8
- export type ColorFormat = "hex" | "hexa" | "rgb" | "rgba" | "hsl" | "hsla" | "hsb" | "hsba";
9
- /**
10
- * Color spaces.
11
- */
12
- export type ColorSpace = "rgb" | "hsl" | "hsb";
13
- /**
14
- * Color channels.
15
- */
16
- export type ColorChannel =
17
- | "hue"
18
- | "saturation"
19
- | "brightness"
20
- | "lightness"
21
- | "red"
22
- | "green"
23
- | "blue"
24
- | "alpha";
25
- /**
26
- * Range for a color channel.
27
- */
28
- export interface ColorChannelRange {
29
- /** Minimum value. */
30
- minValue: number;
31
- /** Maximum value. */
32
- maxValue: number;
33
- /** Step for keyboard increment. */
34
- step: number;
35
- /** Page step for larger increments. */
36
- pageSize: number;
37
- }
38
- /**
39
- * Color axes for a color space.
40
- */
41
- export interface ColorAxes {
42
- /** X-axis channel. */
43
- xChannel: ColorChannel;
44
- /** Y-axis channel. */
45
- yChannel: ColorChannel;
46
- /** Z-axis channel (the one not on x or y). */
47
- zChannel: ColorChannel;
48
- }
49
- /**
50
- * Color interface representing a color value.
51
- */
52
- export interface Color {
53
- /** Convert to a different format. */
54
- toFormat(format: ColorFormat): Color;
55
- /** Convert to a CSS string. */
56
- toString(format?: ColorFormat | "css"): string;
57
- /** Clone this color. */
58
- clone(): Color;
59
- /** Get the hex value as an integer. */
60
- toHexInt(): number;
61
- /** Get the value of a specific channel. */
62
- getChannelValue(channel: ColorChannel): number;
63
- /** Create a new color with a channel value changed. */
64
- withChannelValue(channel: ColorChannel, value: number): Color;
65
- /** Get the range for a channel. */
66
- getChannelRange(channel: ColorChannel): ColorChannelRange;
67
- /** Get the localized name of a channel. */
68
- getChannelName(channel: ColorChannel, locale: string): string;
69
- /** Get the format options for a channel. */
70
- getChannelFormatOptions(channel: ColorChannel): Intl.NumberFormatOptions;
71
- /** Format the value of a channel. */
72
- formatChannelValue(channel: ColorChannel, locale: string): string;
73
- /** Get the color space. */
74
- getColorSpace(): ColorSpace;
75
- /** Get the axes for a color space. */
76
- getColorSpaceAxes(xyChannels?: { xChannel?: ColorChannel; yChannel?: ColorChannel }): ColorAxes;
77
- /** Get all channels for this color space. */
78
- getColorChannels(): [ColorChannel, ColorChannel, ColorChannel];
79
- /** Get a human-readable color name. */
80
- getColorName(locale: string): string;
81
- /** Get the hue name (e.g., "red", "blue"). */
82
- getHueName(locale: string): string;
83
- }
84
- /**
85
- * RGB color value.
86
- */
87
- export interface RGBColor {
88
- red: number;
89
- green: number;
90
- blue: number;
91
- alpha: number;
92
- }
93
- /**
94
- * HSL color value.
95
- */
96
- export interface HSLColor {
97
- hue: number;
98
- saturation: number;
99
- lightness: number;
100
- alpha: number;
101
- }
102
- /**
103
- * HSB color value.
104
- */
105
- export interface HSBColor {
106
- hue: number;
107
- saturation: number;
108
- brightness: number;
109
- alpha: number;
110
- }
111
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,KAAK,GACL,OAAO,GACP,MAAM,GACN,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,sBAAsB;IACtB,QAAQ,EAAE,YAAY,CAAC;IACvB,sBAAsB;IACtB,QAAQ,EAAE,YAAY,CAAC;IACvB,8CAA8C;IAC9C,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,qCAAqC;IACrC,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,KAAK,CAAC;IACrC,+BAA+B;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;IAC/C,wBAAwB;IACxB,KAAK,IAAI,KAAK,CAAC;IACf,uCAAuC;IACvC,QAAQ,IAAI,MAAM,CAAC;IACnB,2CAA2C;IA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AAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,127 +0,0 @@
1
- /**
2
- * State management for ComboBox components.
3
- * Based on @react-stately/combobox useComboBoxState.
4
- *
5
- * ComboBox combines a text input with a dropdown list, allowing users to
6
- * either type to filter options or select from a list.
7
- */
8
- import { type Accessor } from "solid-js";
9
- import { type MaybeAccessor } from "../utils";
10
- import type { Key, CollectionNode, Collection, FocusStrategy } from "../collections/types";
11
- export type MenuTriggerAction = "focus" | "input" | "manual";
12
- export type { FocusStrategy } from "../collections/types";
13
- export type FilterFn = (textValue: string, inputValue: string) => boolean;
14
- export interface ComboBoxStateProps<T = unknown> {
15
- /** The items to display in the combobox dropdown. */
16
- items?: T[];
17
- /** Default items when uncontrolled. */
18
- defaultItems?: T[];
19
- /** Function to get the key for an item. */
20
- getKey?: (item: T) => Key;
21
- /** Function to get the text value for an item. */
22
- getTextValue?: (item: T) => string;
23
- /** Function to check if an item is disabled. */
24
- getDisabled?: (item: T) => boolean;
25
- /** Keys of disabled items. */
26
- disabledKeys?: Iterable<Key>;
27
- /** The currently selected key (controlled). */
28
- selectedKey?: Key | null;
29
- /** The default selected key (uncontrolled). */
30
- defaultSelectedKey?: Key | null;
31
- /** Handler called when the selection changes. */
32
- onSelectionChange?: (key: Key | null) => void;
33
- /** The current input value (controlled). */
34
- inputValue?: string;
35
- /** The default input value (uncontrolled). */
36
- defaultInputValue?: string;
37
- /** Handler called when the input value changes. */
38
- onInputChange?: (value: string) => void;
39
- /** Whether the combobox is open (controlled). */
40
- isOpen?: boolean;
41
- /** Whether the combobox is open by default (uncontrolled). */
42
- defaultOpen?: boolean;
43
- /** Handler called when the open state changes. */
44
- onOpenChange?: (isOpen: boolean, trigger?: MenuTriggerAction) => void;
45
- /** Whether the combobox is disabled. */
46
- isDisabled?: boolean;
47
- /** Whether the combobox is read-only. */
48
- isReadOnly?: boolean;
49
- /** Whether the combobox is required. */
50
- isRequired?: boolean;
51
- /** The filter function to use when filtering items. */
52
- defaultFilter?: FilterFn;
53
- /** Whether to allow the menu to open when there are no items. */
54
- allowsEmptyCollection?: boolean;
55
- /** Whether to allow custom values that don't match any option. */
56
- allowsCustomValue?: boolean;
57
- /** What triggers the menu to open. */
58
- menuTrigger?: MenuTriggerAction;
59
- /** Whether to close the menu on blur. */
60
- shouldCloseOnBlur?: boolean;
61
- }
62
- export interface ComboBoxState<T = unknown> {
63
- /** The collection of items (may be filtered). */
64
- readonly collection: Accessor<Collection<T>>;
65
- /** Whether the combobox dropdown is open. */
66
- readonly isOpen: Accessor<boolean>;
67
- /** Open the combobox dropdown. */
68
- open(focusStrategy?: FocusStrategy | null, trigger?: MenuTriggerAction): void;
69
- /** Close the combobox dropdown. */
70
- close(): void;
71
- /** Toggle the combobox dropdown. */
72
- toggle(focusStrategy?: FocusStrategy | null, trigger?: MenuTriggerAction): void;
73
- /** The currently selected key. */
74
- readonly selectedKey: Accessor<Key | null>;
75
- /** The default selected key. */
76
- readonly defaultSelectedKey: Key | null;
77
- /** The currently selected item. */
78
- readonly selectedItem: Accessor<CollectionNode<T> | null>;
79
- /** Set the selected key. */
80
- setSelectedKey(key: Key | null): void;
81
- /** The current input value. */
82
- readonly inputValue: Accessor<string>;
83
- /** The default input value. */
84
- readonly defaultInputValue: string;
85
- /** Set the input value. */
86
- setInputValue(value: string): void;
87
- /** The currently focused key in the list. */
88
- readonly focusedKey: Accessor<Key | null>;
89
- /** Set the focused key. */
90
- setFocusedKey(key: Key | null): void;
91
- /** Whether the combobox input has focus. */
92
- readonly isFocused: Accessor<boolean>;
93
- /** Set whether the combobox has focus. */
94
- setFocused(isFocused: boolean): void;
95
- /** The focus strategy to use when opening. */
96
- readonly focusStrategy: Accessor<FocusStrategy | null>;
97
- /** Commit the current selection (select focused item or custom value). */
98
- commit(): void;
99
- /** Revert input to the selected item's text and close menu. */
100
- revert(): void;
101
- /** Whether a specific key is disabled. */
102
- isKeyDisabled(key: Key): boolean;
103
- /** Select a key and close the menu (for ListState compatibility). */
104
- select(key: Key): void;
105
- /** The selection mode (always 'single' for combobox). */
106
- readonly selectionMode: Accessor<"single">;
107
- /** Check if a key is selected. */
108
- isSelected(key: Key): boolean;
109
- /** Whether the combobox is disabled. */
110
- readonly isDisabled: boolean;
111
- /** Whether the combobox is read-only. */
112
- readonly isReadOnly: boolean;
113
- /** Whether the combobox is required. */
114
- readonly isRequired: boolean;
115
- }
116
- /**
117
- * Default filter function that does case-insensitive "contains" matching.
118
- */
119
- export declare const defaultContainsFilter: FilterFn;
120
- /**
121
- * Creates state for a combobox component.
122
- * Combines list state with input value management and filtering.
123
- */
124
- export declare function createComboBoxState<T = unknown>(
125
- props: MaybeAccessor<ComboBoxStateProps<T>>,
126
- ): ComboBoxState<T>;
127
- //# sourceMappingURL=createComboBoxState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createComboBoxState.d.ts","sourceRoot":"","sources":["createComboBoxState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAA0C,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAGtD,OAAO,KAAK,EAAE,GAAG,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAM3F,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAG7D,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,QAAQ,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;AAE1E,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO;IAC7C,qDAAqD;IACrD,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C,CAAC,CAuZlB"}
@@ -1,13 +0,0 @@
1
- /**
2
- * ComboBox state management for Solid Stately.
3
- */
4
- export {
5
- createComboBoxState,
6
- defaultContainsFilter,
7
- type ComboBoxState,
8
- type ComboBoxStateProps,
9
- type FilterFn,
10
- type MenuTriggerAction,
11
- type FocusStrategy,
12
- } from "./createComboBoxState";
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB,MAAM,uBAAuB,CAAC"}
@@ -1,68 +0,0 @@
1
- /**
2
- * Disclosure state management for SolidJS
3
- * Based on @react-stately/disclosure useDisclosureState and useDisclosureGroupState
4
- */
5
- import { type Accessor } from "solid-js";
6
- import { type MaybeAccessor } from "../utils";
7
- export interface DisclosureStateProps {
8
- /** Whether the disclosure is expanded (controlled). */
9
- isExpanded?: boolean;
10
- /** Whether the disclosure is expanded by default (uncontrolled). */
11
- defaultExpanded?: boolean;
12
- /** Handler that is called when the disclosure expanded state changes. */
13
- onExpandedChange?: (isExpanded: boolean) => void;
14
- }
15
- export interface DisclosureState {
16
- /** Whether the disclosure is currently expanded. */
17
- readonly isExpanded: Accessor<boolean>;
18
- /** Sets whether the disclosure is expanded. */
19
- setExpanded(isExpanded: boolean): void;
20
- /** Expand the disclosure. */
21
- expand(): void;
22
- /** Collapse the disclosure. */
23
- collapse(): void;
24
- /** Toggles the disclosure's visibility. */
25
- toggle(): void;
26
- }
27
- /**
28
- * Manages state for a disclosure widget. Tracks whether the disclosure is expanded,
29
- * and provides methods to toggle this state.
30
- */
31
- export declare function createDisclosureState(
32
- props?: MaybeAccessor<DisclosureStateProps>,
33
- ): DisclosureState;
34
- export type Key = string | number;
35
- export interface DisclosureGroupStateProps {
36
- /** Whether multiple items can be expanded at the same time. */
37
- allowsMultipleExpanded?: boolean;
38
- /** Whether all items are disabled. */
39
- isDisabled?: boolean;
40
- /** The currently expanded keys in the group (controlled). */
41
- expandedKeys?: Iterable<Key>;
42
- /** The initial expanded keys in the group (uncontrolled). */
43
- defaultExpandedKeys?: Iterable<Key>;
44
- /** Handler that is called when items are expanded or collapsed. */
45
- onExpandedChange?: (keys: Set<Key>) => void;
46
- }
47
- export interface DisclosureGroupState {
48
- /** Whether multiple items can be expanded at the same time. */
49
- readonly allowsMultipleExpanded: boolean;
50
- /** Whether all items are disabled. */
51
- readonly isDisabled: boolean;
52
- /** A set of keys for items that are expanded. */
53
- readonly expandedKeys: Accessor<Set<Key>>;
54
- /** Toggles the expanded state for an item by its key. */
55
- toggleKey(key: Key): void;
56
- /** Replaces the set of expanded keys. */
57
- setExpandedKeys(keys: Set<Key>): void;
58
- /** Check if a specific key is expanded. */
59
- isExpanded(key: Key): boolean;
60
- }
61
- /**
62
- * Manages state for a group of disclosures, e.g. an accordion.
63
- * It supports both single and multiple expanded items.
64
- */
65
- export declare function createDisclosureGroupState(
66
- props?: MaybeAccessor<DisclosureGroupStateProps>,
67
- ): DisclosureGroupState;
68
- //# sourceMappingURL=createDisclosureState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createDisclosureState.d.ts","sourceRoot":"","sources":["createDisclosureState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA8B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAMtD,MAAM,WAAW,oBAAoB;IACnC,uDAAuD;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oEAAoE;IACpE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAA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AAG,CAAC,GAAG,IAAI,CAAC;IACtC,2CAA2C;IAC3C,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,GAAE,aAAa,CAAC,yBAAyB,CAAM,GACnD,oBAAoB,CA6EtB"}
@@ -1,10 +0,0 @@
1
- export {
2
- createDisclosureState,
3
- createDisclosureGroupState,
4
- type DisclosureStateProps,
5
- type DisclosureState,
6
- type DisclosureGroupStateProps,
7
- type DisclosureGroupState,
8
- type Key,
9
- } from "./createDisclosureState";
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,GAAG,GACT,MAAM,yBAAyB,CAAC"}
@@ -1,68 +0,0 @@
1
- /**
2
- * Drag state management for solid-stately.
3
- *
4
- * Provides reactive state for drag operations.
5
- */
6
- import { type Accessor } from "solid-js";
7
- import type {
8
- DragItem,
9
- DragStartEvent,
10
- DragMoveEvent,
11
- DragEndEvent,
12
- DropOperation,
13
- DragPreviewRenderer,
14
- } from "./types";
15
- export interface DragStateOptions {
16
- /** A function that returns the items being dragged. */
17
- getItems: () => DragItem[];
18
- /** Function that returns the allowed drop operations. */
19
- getAllowedDropOperations?: () => DropOperation[];
20
- /** Handler that is called when a drag operation is started. */
21
- onDragStart?: (e: DragStartEvent) => void;
22
- /** Handler that is called when the drag is moved. */
23
- onDragMove?: (e: DragMoveEvent) => void;
24
- /** Handler that is called when the drag operation ends. */
25
- onDragEnd?: (e: DragEndEvent) => void;
26
- /** Whether the drag operation is disabled. */
27
- isDisabled?: boolean;
28
- /** Whether there is a separate drag button affordance. */
29
- hasDragButton?: boolean;
30
- /** Preview renderer function ref. */
31
- preview?: {
32
- current: DragPreviewRenderer | null;
33
- };
34
- }
35
- export interface DragState {
36
- /** Whether an element is currently being dragged. */
37
- readonly isDragging: boolean;
38
- /** Whether drag is disabled. */
39
- readonly isDisabled: boolean;
40
- /** Start a drag operation. */
41
- startDrag(x: number, y: number): void;
42
- /** Update drag position. */
43
- moveDrag(x: number, y: number): void;
44
- /** End a drag operation. */
45
- endDrag(x: number, y: number, dropOperation: DropOperation): void;
46
- /** Cancel a drag operation. */
47
- cancelDrag(): void;
48
- /** Get the items being dragged. */
49
- getItems(): DragItem[];
50
- /** Get allowed drop operations. */
51
- getAllowedDropOperations(): DropOperation[];
52
- /** Whether there is a drag button. */
53
- readonly hasDragButton: boolean;
54
- /** Preview renderer. */
55
- readonly preview:
56
- | {
57
- current: DragPreviewRenderer | null;
58
- }
59
- | undefined;
60
- }
61
- /**
62
- * Creates drag state for managing drag operations.
63
- *
64
- * @param props - Accessor returning drag state options
65
- * @returns Drag state object
66
- */
67
- export declare function createDragState(props: Accessor<DragStateOptions>): DragState;
68
- //# sourceMappingURL=createDragState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createDragState.d.ts","sourceRoot":"","sources":["createDragState.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,aAAa,EACb,YAAY,EACZ,aAAa,EACb,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,gBAAgB;IAC/B,uDAAuD;IACvD,QAAQ,EAAE,MAAM,QAAQ,EAAE,CAAC;IAC3B,yDAAyD;IACzD,wBAAwB,CAAC,EAAE,MAAM,aAAa,EAAE,CAAC;IACjD,+DAA+D;IAC/D,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,qDAAqD;IACrD,UAAU,CAAC,EAA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