@proyecto-viviana/solid-stately 0.1.5 → 0.2.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 (217) hide show
  1. package/{src → dist}/autocomplete/createAutocompleteState.d.ts +0 -1
  2. package/{src → dist}/autocomplete/index.d.ts +0 -1
  3. package/{src → dist}/calendar/createCalendarState.d.ts +0 -1
  4. package/{src → dist}/calendar/createDateFieldState.d.ts +0 -1
  5. package/{src → dist}/calendar/createRangeCalendarState.d.ts +0 -1
  6. package/{src → dist}/calendar/createTimeFieldState.d.ts +0 -1
  7. package/{src → dist}/calendar/index.d.ts +0 -1
  8. package/{src → dist}/checkbox/createCheckboxGroupState.d.ts +0 -1
  9. package/{src → dist}/checkbox/index.d.ts +0 -1
  10. package/{src → dist}/collections/ListCollection.d.ts +0 -1
  11. package/{src → dist}/collections/createListState.d.ts +0 -1
  12. package/{src → dist}/collections/createMenuState.d.ts +0 -1
  13. package/{src → dist}/collections/createSelectionState.d.ts +0 -1
  14. package/{src → dist}/collections/index.d.ts +0 -1
  15. package/{src → dist}/collections/types.d.ts +0 -1
  16. package/{src → dist}/color/Color.d.ts +0 -1
  17. package/{src → dist}/color/createColorAreaState.d.ts +0 -1
  18. package/{src → dist}/color/createColorFieldState.d.ts +0 -1
  19. package/{src → dist}/color/createColorSliderState.d.ts +0 -1
  20. package/{src → dist}/color/createColorWheelState.d.ts +0 -1
  21. package/{src → dist}/color/index.d.ts +0 -1
  22. package/{src → dist}/color/types.d.ts +0 -1
  23. package/{src → dist}/combobox/createComboBoxState.d.ts +0 -1
  24. package/{src → dist}/combobox/index.d.ts +0 -1
  25. package/{src → dist}/disclosure/createDisclosureState.d.ts +0 -1
  26. package/{src → dist}/disclosure/index.d.ts +0 -1
  27. package/{src → dist}/dnd/createDragState.d.ts +0 -1
  28. package/{src → dist}/dnd/createDraggableCollectionState.d.ts +0 -1
  29. package/{src → dist}/dnd/createDropState.d.ts +0 -1
  30. package/{src → dist}/dnd/createDroppableCollectionState.d.ts +0 -1
  31. package/{src → dist}/dnd/index.d.ts +0 -1
  32. package/{src → dist}/dnd/types.d.ts +0 -1
  33. package/{src → dist}/form/createFormValidationState.d.ts +0 -1
  34. package/{src → dist}/form/index.d.ts +0 -1
  35. package/{src → dist}/grid/createGridState.d.ts +0 -1
  36. package/{src → dist}/grid/index.d.ts +0 -1
  37. package/{src → dist}/grid/types.d.ts +0 -1
  38. package/dist/index.d.ts +25 -3363
  39. package/dist/index.js +2 -2
  40. package/dist/index.js.map +7 -1
  41. package/{src → dist}/numberfield/createNumberFieldState.d.ts +0 -1
  42. package/{src → dist}/numberfield/index.d.ts +0 -1
  43. package/{src → dist}/overlays/createOverlayTriggerState.d.ts +0 -1
  44. package/{src → dist}/overlays/index.d.ts +0 -1
  45. package/{src → dist}/radio/createRadioGroupState.d.ts +0 -1
  46. package/{src → dist}/radio/index.d.ts +0 -1
  47. package/{src → dist}/searchfield/createSearchFieldState.d.ts +0 -1
  48. package/{src → dist}/searchfield/index.d.ts +0 -1
  49. package/{src → dist}/select/createSelectState.d.ts +0 -1
  50. package/{src → dist}/select/index.d.ts +0 -1
  51. package/{src → dist}/slider/createSliderState.d.ts +0 -1
  52. package/{src → dist}/slider/index.d.ts +0 -1
  53. package/{src → dist}/ssr/index.d.ts +0 -1
  54. package/{src → dist}/table/TableCollection.d.ts +0 -1
  55. package/{src → dist}/table/createTableState.d.ts +0 -1
  56. package/{src → dist}/table/index.d.ts +0 -1
  57. package/{src → dist}/table/types.d.ts +0 -1
  58. package/{src → dist}/tabs/createTabListState.d.ts +0 -1
  59. package/{src → dist}/tabs/index.d.ts +0 -1
  60. package/{src → dist}/textfield/createTextFieldState.d.ts +0 -1
  61. package/{src → dist}/textfield/index.d.ts +0 -1
  62. package/{src → dist}/toast/createToastState.d.ts +0 -1
  63. package/{src → dist}/toast/index.d.ts +0 -1
  64. package/{src → dist}/toggle/createToggleState.d.ts +0 -1
  65. package/{src → dist}/toggle/index.d.ts +0 -1
  66. package/{src → dist}/tooltip/createTooltipTriggerState.d.ts +0 -1
  67. package/{src → dist}/tooltip/index.d.ts +0 -1
  68. package/{src → dist}/tree/TreeCollection.d.ts +0 -1
  69. package/{src → dist}/tree/createTreeState.d.ts +0 -1
  70. package/{src → dist}/tree/index.d.ts +0 -1
  71. package/{src → dist}/tree/types.d.ts +0 -1
  72. package/{src → dist}/utils/reactivity.d.ts +0 -1
  73. package/package.json +5 -7
  74. package/src/autocomplete/createAutocompleteState.d.ts.map +0 -1
  75. package/src/autocomplete/createAutocompleteState.ts +0 -90
  76. package/src/autocomplete/index.d.ts.map +0 -1
  77. package/src/autocomplete/index.ts +0 -5
  78. package/src/calendar/createCalendarState.d.ts.map +0 -1
  79. package/src/calendar/createCalendarState.ts +0 -461
  80. package/src/calendar/createDateFieldState.d.ts.map +0 -1
  81. package/src/calendar/createDateFieldState.ts +0 -562
  82. package/src/calendar/createRangeCalendarState.d.ts.map +0 -1
  83. package/src/calendar/createRangeCalendarState.ts +0 -535
  84. package/src/calendar/createTimeFieldState.d.ts.map +0 -1
  85. package/src/calendar/createTimeFieldState.ts +0 -483
  86. package/src/calendar/index.d.ts.map +0 -1
  87. package/src/calendar/index.ts +0 -81
  88. package/src/checkbox/createCheckboxGroupState.d.ts.map +0 -1
  89. package/src/checkbox/createCheckboxGroupState.ts +0 -193
  90. package/src/checkbox/index.d.ts.map +0 -1
  91. package/src/checkbox/index.ts +0 -5
  92. package/src/collections/ListCollection.d.ts.map +0 -1
  93. package/src/collections/ListCollection.ts +0 -146
  94. package/src/collections/createListState.d.ts.map +0 -1
  95. package/src/collections/createListState.ts +0 -264
  96. package/src/collections/createMenuState.d.ts.map +0 -1
  97. package/src/collections/createMenuState.ts +0 -106
  98. package/src/collections/createSelectionState.d.ts.map +0 -1
  99. package/src/collections/createSelectionState.ts +0 -336
  100. package/src/collections/index.d.ts.map +0 -1
  101. package/src/collections/index.ts +0 -46
  102. package/src/collections/types.d.ts.map +0 -1
  103. package/src/collections/types.ts +0 -169
  104. package/src/color/Color.d.ts.map +0 -1
  105. package/src/color/Color.ts +0 -951
  106. package/src/color/createColorAreaState.d.ts.map +0 -1
  107. package/src/color/createColorAreaState.ts +0 -293
  108. package/src/color/createColorFieldState.d.ts.map +0 -1
  109. package/src/color/createColorFieldState.ts +0 -292
  110. package/src/color/createColorSliderState.d.ts.map +0 -1
  111. package/src/color/createColorSliderState.ts +0 -241
  112. package/src/color/createColorWheelState.d.ts.map +0 -1
  113. package/src/color/createColorWheelState.ts +0 -211
  114. package/src/color/index.d.ts.map +0 -1
  115. package/src/color/index.ts +0 -47
  116. package/src/color/types.d.ts.map +0 -1
  117. package/src/color/types.ts +0 -127
  118. package/src/combobox/createComboBoxState.d.ts.map +0 -1
  119. package/src/combobox/createComboBoxState.ts +0 -703
  120. package/src/combobox/index.d.ts.map +0 -1
  121. package/src/combobox/index.ts +0 -13
  122. package/src/disclosure/createDisclosureState.d.ts.map +0 -1
  123. package/src/disclosure/createDisclosureState.ts +0 -193
  124. package/src/disclosure/index.d.ts.map +0 -1
  125. package/src/disclosure/index.ts +0 -9
  126. package/src/dnd/createDragState.d.ts.map +0 -1
  127. package/src/dnd/createDragState.ts +0 -153
  128. package/src/dnd/createDraggableCollectionState.d.ts.map +0 -1
  129. package/src/dnd/createDraggableCollectionState.ts +0 -165
  130. package/src/dnd/createDropState.d.ts.map +0 -1
  131. package/src/dnd/createDropState.ts +0 -212
  132. package/src/dnd/createDroppableCollectionState.d.ts.map +0 -1
  133. package/src/dnd/createDroppableCollectionState.ts +0 -357
  134. package/src/dnd/index.d.ts.map +0 -1
  135. package/src/dnd/index.ts +0 -76
  136. package/src/dnd/types.d.ts.map +0 -1
  137. package/src/dnd/types.ts +0 -317
  138. package/src/form/createFormValidationState.d.ts.map +0 -1
  139. package/src/form/createFormValidationState.ts +0 -389
  140. package/src/form/index.d.ts.map +0 -1
  141. package/src/form/index.ts +0 -15
  142. package/src/grid/createGridState.d.ts.map +0 -1
  143. package/src/grid/createGridState.ts +0 -327
  144. package/src/grid/index.d.ts.map +0 -1
  145. package/src/grid/index.ts +0 -13
  146. package/src/grid/types.d.ts.map +0 -1
  147. package/src/grid/types.ts +0 -179
  148. package/src/index.d.ts +0 -26
  149. package/src/index.d.ts.map +0 -1
  150. package/src/index.ts +0 -383
  151. package/src/numberfield/createNumberFieldState.d.ts.map +0 -1
  152. package/src/numberfield/createNumberFieldState.ts +0 -383
  153. package/src/numberfield/index.d.ts.map +0 -1
  154. package/src/numberfield/index.ts +0 -5
  155. package/src/overlays/createOverlayTriggerState.d.ts.map +0 -1
  156. package/src/overlays/createOverlayTriggerState.ts +0 -67
  157. package/src/overlays/index.d.ts.map +0 -1
  158. package/src/overlays/index.ts +0 -5
  159. package/src/radio/createRadioGroupState.d.ts.map +0 -1
  160. package/src/radio/createRadioGroupState.ts +0 -201
  161. package/src/radio/index.d.ts.map +0 -1
  162. package/src/radio/index.ts +0 -6
  163. package/src/searchfield/createSearchFieldState.d.ts.map +0 -1
  164. package/src/searchfield/createSearchFieldState.ts +0 -62
  165. package/src/searchfield/index.d.ts.map +0 -1
  166. package/src/searchfield/index.ts +0 -5
  167. package/src/select/createSelectState.d.ts.map +0 -1
  168. package/src/select/createSelectState.ts +0 -181
  169. package/src/select/index.d.ts.map +0 -1
  170. package/src/select/index.ts +0 -5
  171. package/src/slider/createSliderState.d.ts.map +0 -1
  172. package/src/slider/createSliderState.ts +0 -211
  173. package/src/slider/index.d.ts.map +0 -1
  174. package/src/slider/index.ts +0 -6
  175. package/src/ssr/index.d.ts.map +0 -1
  176. package/src/ssr/index.ts +0 -41
  177. package/src/table/TableCollection.d.ts.map +0 -1
  178. package/src/table/TableCollection.ts +0 -388
  179. package/src/table/createTableState.d.ts.map +0 -1
  180. package/src/table/createTableState.ts +0 -127
  181. package/src/table/index.d.ts.map +0 -1
  182. package/src/table/index.ts +0 -18
  183. package/src/table/types.d.ts.map +0 -1
  184. package/src/table/types.ts +0 -150
  185. package/src/tabs/createTabListState.d.ts.map +0 -1
  186. package/src/tabs/createTabListState.ts +0 -240
  187. package/src/tabs/index.d.ts.map +0 -1
  188. package/src/tabs/index.ts +0 -7
  189. package/src/textfield/createTextFieldState.d.ts.map +0 -1
  190. package/src/textfield/createTextFieldState.ts +0 -75
  191. package/src/textfield/index.d.ts.map +0 -1
  192. package/src/textfield/index.ts +0 -5
  193. package/src/toast/createToastState.d.ts.map +0 -1
  194. package/src/toast/createToastState.ts +0 -316
  195. package/src/toast/index.d.ts.map +0 -1
  196. package/src/toast/index.ts +0 -11
  197. package/src/toggle/createToggleState.d.ts.map +0 -1
  198. package/src/toggle/createToggleState.ts +0 -94
  199. package/src/toggle/index.d.ts.map +0 -1
  200. package/src/toggle/index.ts +0 -5
  201. package/src/tooltip/createTooltipTriggerState.d.ts.map +0 -1
  202. package/src/tooltip/createTooltipTriggerState.ts +0 -183
  203. package/src/tooltip/index.d.ts.map +0 -1
  204. package/src/tooltip/index.ts +0 -6
  205. package/src/tree/TreeCollection.d.ts.map +0 -1
  206. package/src/tree/TreeCollection.ts +0 -175
  207. package/src/tree/createTreeState.d.ts.map +0 -1
  208. package/src/tree/createTreeState.ts +0 -392
  209. package/src/tree/index.d.ts.map +0 -1
  210. package/src/tree/index.ts +0 -13
  211. package/src/tree/types.d.ts.map +0 -1
  212. package/src/tree/types.ts +0 -174
  213. package/src/utils/index.d.ts +0 -2
  214. package/src/utils/index.d.ts.map +0 -1
  215. package/src/utils/reactivity.d.ts.map +0 -1
  216. package/src/utils/reactivity.ts +0 -36
  217. /package/{src/utils/index.ts → dist/utils/index.d.ts} +0 -0
@@ -1,241 +0,0 @@
1
- /**
2
- * ColorSlider state management.
3
- * Based on @react-stately/color useColorSliderState.
4
- */
5
-
6
- import { createSignal, createMemo, type Accessor } from 'solid-js';
7
- import type { Color, ColorChannel } from './types';
8
- import { normalizeColor } from './Color';
9
-
10
- export interface ColorSliderStateOptions {
11
- /** The current color value (controlled). */
12
- value?: Color | string;
13
- /** The default color value (uncontrolled). */
14
- defaultValue?: Color | string;
15
- /** Handler called when the color changes. */
16
- onChange?: (color: Color) => void;
17
- /** Handler called when dragging ends. */
18
- onChangeEnd?: (color: Color) => void;
19
- /** The color channel this slider controls. */
20
- channel: ColorChannel;
21
- /** Whether the slider is disabled. */
22
- isDisabled?: boolean;
23
- /** The locale for formatting. */
24
- locale?: string;
25
- }
26
-
27
- export interface ColorSliderState {
28
- /** The current color value. */
29
- readonly value: Color;
30
- /** Whether the slider is being dragged. */
31
- readonly isDragging: boolean;
32
- /** The color channel being controlled. */
33
- readonly channel: ColorChannel;
34
- /** The step value for the channel. */
35
- readonly step: number;
36
- /** The page step value for the channel. */
37
- readonly pageSize: number;
38
- /** The minimum value for the channel. */
39
- readonly minValue: number;
40
- /** The maximum value for the channel. */
41
- readonly maxValue: number;
42
- /** Whether the slider is disabled. */
43
- readonly isDisabled: boolean;
44
-
45
- /** Get the current channel value. */
46
- getThumbValue(): number;
47
- /** Get the minimum percent. */
48
- getThumbMinValue(): number;
49
- /** Get the maximum percent. */
50
- getThumbMaxValue(): number;
51
- /** Get the thumb value as a percentage. */
52
- getThumbPercent(): number;
53
- /** Set the channel value. */
54
- setThumbValue(value: number): void;
55
- /** Set the thumb value from a percentage (0-1). */
56
- setThumbPercent(percent: number): void;
57
- /** Increment the channel value. */
58
- incrementThumb(stepSize?: number): void;
59
- /** Decrement the channel value. */
60
- decrementThumb(stepSize?: number): void;
61
- /** Set the dragging state. */
62
- setDragging(isDragging: boolean): void;
63
- /** Get the display color (with alpha = 1). */
64
- getDisplayColor(): Color;
65
- /** Get the formatted value label. */
66
- getThumbValueLabel(): string;
67
- }
68
-
69
- /**
70
- * Creates state for a color slider.
71
- */
72
- export function createColorSliderState(
73
- options: Accessor<ColorSliderStateOptions>
74
- ): ColorSliderState {
75
- const getOptions = () => options();
76
-
77
- // Internal value state
78
- const [internalValue, setInternalValue] = createSignal<Color | null>(null);
79
- const [isDragging, setIsDragging] = createSignal(false);
80
-
81
- // Initialize internal value
82
- const initValue = () => {
83
- const opts = getOptions();
84
- if (opts.defaultValue) {
85
- return normalizeColor(opts.defaultValue);
86
- }
87
- return null;
88
- };
89
-
90
- // Set initial value
91
- if (internalValue() === null) {
92
- const init = initValue();
93
- if (init) {
94
- setInternalValue(init);
95
- }
96
- }
97
-
98
- // Controlled vs uncontrolled value
99
- const value = createMemo(() => {
100
- const opts = getOptions();
101
- if (opts.value !== undefined) {
102
- return normalizeColor(opts.value);
103
- }
104
- return internalValue() ?? normalizeColor('#ff0000');
105
- });
106
-
107
- const channel = createMemo(() => getOptions().channel);
108
- const isDisabled = createMemo(() => getOptions().isDisabled ?? false);
109
- const locale = createMemo(() => getOptions().locale ?? 'en-US');
110
-
111
- // Get channel range
112
- const channelRange = createMemo(() => value().getChannelRange(channel()));
113
-
114
- const step = createMemo(() => channelRange().step);
115
- const pageSize = createMemo(() => channelRange().pageSize);
116
- const minValue = createMemo(() => channelRange().minValue);
117
- const maxValue = createMemo(() => channelRange().maxValue);
118
-
119
- // Update value
120
- const updateValue = (newColor: Color) => {
121
- const opts = getOptions();
122
-
123
- // Controlled mode
124
- if (opts.value !== undefined) {
125
- opts.onChange?.(newColor);
126
- return;
127
- }
128
-
129
- // Uncontrolled mode
130
- setInternalValue(newColor);
131
- opts.onChange?.(newColor);
132
- };
133
-
134
- // Get thumb value
135
- const getThumbValue = () => {
136
- return value().getChannelValue(channel());
137
- };
138
-
139
- // Get min/max values
140
- const getThumbMinValue = () => minValue();
141
- const getThumbMaxValue = () => maxValue();
142
-
143
- // Get thumb percent
144
- const getThumbPercent = () => {
145
- const val = getThumbValue();
146
- const min = minValue();
147
- const max = maxValue();
148
- return (val - min) / (max - min);
149
- };
150
-
151
- // Set thumb value
152
- const setThumbValue = (newValue: number) => {
153
- const clamped = Math.max(minValue(), Math.min(maxValue(), newValue));
154
- const rounded = Math.round(clamped / step()) * step();
155
- const newColor = value().withChannelValue(channel(), rounded);
156
- updateValue(newColor);
157
- };
158
-
159
- // Set thumb from percent
160
- const setThumbPercent = (percent: number) => {
161
- const min = minValue();
162
- const max = maxValue();
163
- const val = min + (max - min) * percent;
164
- setThumbValue(val);
165
- };
166
-
167
- // Increment
168
- const incrementThumb = (stepSize?: number) => {
169
- const s = stepSize ?? step();
170
- setThumbValue(getThumbValue() + s);
171
- };
172
-
173
- // Decrement
174
- const decrementThumb = (stepSize?: number) => {
175
- const s = stepSize ?? step();
176
- setThumbValue(getThumbValue() - s);
177
- };
178
-
179
- // Set dragging
180
- const setDraggingState = (dragging: boolean) => {
181
- const wasDragging = isDragging();
182
- setIsDragging(dragging);
183
-
184
- // Call onChangeEnd when dragging ends
185
- if (wasDragging && !dragging) {
186
- getOptions().onChangeEnd?.(value());
187
- }
188
- };
189
-
190
- // Get display color (alpha = 1)
191
- const getDisplayColor = () => {
192
- const v = value();
193
- return v.withChannelValue('alpha', 1);
194
- };
195
-
196
- // Get formatted value label
197
- const getThumbValueLabel = () => {
198
- const v = value();
199
- const ch = channel();
200
- const loc = locale();
201
- return v.formatChannelValue(ch, loc);
202
- };
203
-
204
- return {
205
- get value() {
206
- return value();
207
- },
208
- get isDragging() {
209
- return isDragging();
210
- },
211
- get channel() {
212
- return channel();
213
- },
214
- get step() {
215
- return step();
216
- },
217
- get pageSize() {
218
- return pageSize();
219
- },
220
- get minValue() {
221
- return minValue();
222
- },
223
- get maxValue() {
224
- return maxValue();
225
- },
226
- get isDisabled() {
227
- return isDisabled();
228
- },
229
- getThumbValue,
230
- getThumbMinValue,
231
- getThumbMaxValue,
232
- getThumbPercent,
233
- setThumbValue,
234
- setThumbPercent,
235
- incrementThumb,
236
- decrementThumb,
237
- setDragging: setDraggingState,
238
- getDisplayColor,
239
- getThumbValueLabel,
240
- };
241
- }
@@ -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,UAA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,eAAe,IAAI,KAAK,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GACxC,eAAe,CAyJjB"}
@@ -1,211 +0,0 @@
1
- /**
2
- * ColorWheel state management.
3
- * Based on @react-stately/color useColorWheelState.
4
- */
5
-
6
- import { createSignal, createMemo, type Accessor } from 'solid-js';
7
- import type { Color, ColorChannel } from './types';
8
- import { normalizeColor } from './Color';
9
-
10
- export interface ColorWheelStateOptions {
11
- /** The current color value (controlled). */
12
- value?: Color | string;
13
- /** The default color value (uncontrolled). */
14
- defaultValue?: Color | string;
15
- /** Handler called when the color changes. */
16
- onChange?: (color: Color) => void;
17
- /** Handler called when dragging ends. */
18
- onChangeEnd?: (color: Color) => void;
19
- /** Whether the wheel is disabled. */
20
- isDisabled?: boolean;
21
- }
22
-
23
- export interface ColorWheelState {
24
- /** The current color value. */
25
- readonly value: Color;
26
- /** Whether the wheel is being dragged. */
27
- readonly isDragging: boolean;
28
- /** Whether the wheel is disabled. */
29
- readonly isDisabled: boolean;
30
- /** Step value for hue changes. */
31
- readonly step: number;
32
- /** Page step value for hue changes. */
33
- readonly pageStep: number;
34
-
35
- /** Get the current hue value (0-360). */
36
- getHue(): number;
37
- /** Set the hue value. */
38
- setHue(value: number): void;
39
- /** Set hue from an angle in radians. */
40
- setHueFromAngle(angle: number): void;
41
- /** Get the thumb angle in radians (0 = right, increases counterclockwise). */
42
- getThumbAngle(): number;
43
- /** Increment hue value. */
44
- increment(stepSize?: number): void;
45
- /** Decrement hue value. */
46
- decrement(stepSize?: number): void;
47
- /** Set the dragging state. */
48
- setDragging(isDragging: boolean): void;
49
- /** Get the display color (with full saturation/brightness for wheel). */
50
- getDisplayColor(): Color;
51
- }
52
-
53
- /**
54
- * Creates state for a color wheel (circular hue picker).
55
- */
56
- export function createColorWheelState(
57
- options: Accessor<ColorWheelStateOptions>
58
- ): ColorWheelState {
59
- const getOptions = () => options();
60
-
61
- // Internal value state
62
- const [internalValue, setInternalValue] = createSignal<Color | null>(null);
63
- const [isDragging, setIsDragging] = createSignal(false);
64
-
65
- // Initialize internal value
66
- const initValue = () => {
67
- const opts = getOptions();
68
- if (opts.defaultValue) {
69
- return normalizeColor(opts.defaultValue);
70
- }
71
- return null;
72
- };
73
-
74
- // Set initial value
75
- if (internalValue() === null) {
76
- const init = initValue();
77
- if (init) {
78
- setInternalValue(init);
79
- }
80
- }
81
-
82
- // Controlled vs uncontrolled value
83
- const value = createMemo(() => {
84
- const opts = getOptions();
85
- if (opts.value !== undefined) {
86
- return normalizeColor(opts.value);
87
- }
88
- return internalValue() ?? normalizeColor('#ff0000');
89
- });
90
-
91
- const isDisabled = createMemo(() => getOptions().isDisabled ?? false);
92
-
93
- // Hue step and page step
94
- const hueRange = createMemo(() => value().getChannelRange('hue'));
95
- const step = createMemo(() => hueRange().step);
96
- const pageStep = createMemo(() => hueRange().pageSize);
97
-
98
- // Update value
99
- const updateValue = (newColor: Color) => {
100
- const opts = getOptions();
101
-
102
- // Controlled mode
103
- if (opts.value !== undefined) {
104
- opts.onChange?.(newColor);
105
- return;
106
- }
107
-
108
- // Uncontrolled mode
109
- setInternalValue(newColor);
110
- opts.onChange?.(newColor);
111
- };
112
-
113
- // Get hue value (0-360)
114
- const getHue = () => value().getChannelValue('hue');
115
-
116
- // Set hue value
117
- const setHue = (newValue: number) => {
118
- // Wrap hue to 0-360 range
119
- let hue = newValue % 360;
120
- if (hue < 0) hue += 360;
121
-
122
- // Round to step
123
- const range = hueRange();
124
- const rounded = Math.round(hue / range.step) * range.step;
125
-
126
- const newColor = value().withChannelValue('hue', rounded);
127
- updateValue(newColor);
128
- };
129
-
130
- // Set hue from angle (radians, 0 = right, counterclockwise)
131
- const setHueFromAngle = (angle: number) => {
132
- // Convert angle to degrees (0-360)
133
- // angle 0 = right (3 o'clock) = hue 0
134
- // angle increases counterclockwise
135
- let degrees = (angle * 180) / Math.PI;
136
- degrees = 360 - degrees; // Convert to clockwise
137
- if (degrees < 0) degrees += 360;
138
- if (degrees >= 360) degrees -= 360;
139
-
140
- setHue(degrees);
141
- };
142
-
143
- // Get thumb angle in radians
144
- const getThumbAngle = () => {
145
- const hue = getHue();
146
- // Convert hue to angle (radians)
147
- // hue 0 = angle 0 (right)
148
- // hue increases clockwise, angle increases counterclockwise
149
- const degrees = 360 - hue;
150
- return (degrees * Math.PI) / 180;
151
- };
152
-
153
- // Increment hue
154
- const increment = (stepSize?: number) => {
155
- const s = stepSize ?? step();
156
- setHue(getHue() + s);
157
- };
158
-
159
- // Decrement hue
160
- const decrement = (stepSize?: number) => {
161
- const s = stepSize ?? step();
162
- setHue(getHue() - s);
163
- };
164
-
165
- // Set dragging state
166
- const setDraggingState = (dragging: boolean) => {
167
- const wasDragging = isDragging();
168
- setIsDragging(dragging);
169
-
170
- // Call onChangeEnd when dragging ends
171
- if (wasDragging && !dragging) {
172
- getOptions().onChangeEnd?.(value());
173
- }
174
- };
175
-
176
- // Get display color (full saturation and brightness for wheel preview)
177
- const getDisplayColor = () => {
178
- // For display, we want the color at full saturation and brightness
179
- // to show the pure hue on the wheel
180
- return value()
181
- .withChannelValue('saturation', 100)
182
- .withChannelValue('brightness', 100)
183
- .withChannelValue('alpha', 1);
184
- };
185
-
186
- return {
187
- get value() {
188
- return value();
189
- },
190
- get isDragging() {
191
- return isDragging();
192
- },
193
- get isDisabled() {
194
- return isDisabled();
195
- },
196
- get step() {
197
- return step();
198
- },
199
- get pageStep() {
200
- return pageStep();
201
- },
202
- getHue,
203
- setHue,
204
- setHueFromAngle,
205
- getThumbAngle,
206
- increment,
207
- decrement,
208
- setDragging: setDraggingState,
209
- getDisplayColor,
210
- };
211
- }
@@ -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,47 +0,0 @@
1
- /**
2
- * Color state management exports.
3
- */
4
-
5
- // Types
6
- export type {
7
- Color,
8
- ColorFormat,
9
- ColorSpace,
10
- ColorChannel,
11
- ColorChannelRange,
12
- ColorAxes,
13
- } from './types';
14
-
15
- // Color class and utilities
16
- export {
17
- parseColor,
18
- normalizeColor,
19
- createRGBColor,
20
- createHSLColor,
21
- createHSBColor,
22
- } from './Color';
23
-
24
- // State hooks
25
- export {
26
- createColorSliderState,
27
- type ColorSliderStateOptions,
28
- type ColorSliderState,
29
- } from './createColorSliderState';
30
-
31
- export {
32
- createColorAreaState,
33
- type ColorAreaStateOptions,
34
- type ColorAreaState,
35
- } from './createColorAreaState';
36
-
37
- export {
38
- createColorWheelState,
39
- type ColorWheelStateOptions,
40
- type ColorWheelState,
41
- } from './createColorWheelState';
42
-
43
- export {
44
- createColorFieldState,
45
- type ColorFieldStateOptions,
46
- type ColorFieldState,
47
- } from './createColorFieldState';
@@ -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,KA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-
6
- /**
7
- * Supported color formats.
8
- */
9
- export type ColorFormat =
10
- | 'hex'
11
- | 'hexa'
12
- | 'rgb'
13
- | 'rgba'
14
- | 'hsl'
15
- | 'hsla'
16
- | 'hsb'
17
- | 'hsba';
18
-
19
- /**
20
- * Color spaces.
21
- */
22
- export type ColorSpace = 'rgb' | 'hsl' | 'hsb';
23
-
24
- /**
25
- * Color channels.
26
- */
27
- export type ColorChannel =
28
- | 'hue'
29
- | 'saturation'
30
- | 'brightness'
31
- | 'lightness'
32
- | 'red'
33
- | 'green'
34
- | 'blue'
35
- | 'alpha';
36
-
37
- /**
38
- * Range for a color channel.
39
- */
40
- export interface ColorChannelRange {
41
- /** Minimum value. */
42
- minValue: number;
43
- /** Maximum value. */
44
- maxValue: number;
45
- /** Step for keyboard increment. */
46
- step: number;
47
- /** Page step for larger increments. */
48
- pageSize: number;
49
- }
50
-
51
- /**
52
- * Color axes for a color space.
53
- */
54
- export interface ColorAxes {
55
- /** X-axis channel. */
56
- xChannel: ColorChannel;
57
- /** Y-axis channel. */
58
- yChannel: ColorChannel;
59
- /** Z-axis channel (the one not on x or y). */
60
- zChannel: ColorChannel;
61
- }
62
-
63
- /**
64
- * Color interface representing a color value.
65
- */
66
- export interface Color {
67
- /** Convert to a different format. */
68
- toFormat(format: ColorFormat): Color;
69
- /** Convert to a CSS string. */
70
- toString(format?: ColorFormat | 'css'): string;
71
- /** Clone this color. */
72
- clone(): Color;
73
- /** Get the hex value as an integer. */
74
- toHexInt(): number;
75
- /** Get the value of a specific channel. */
76
- getChannelValue(channel: ColorChannel): number;
77
- /** Create a new color with a channel value changed. */
78
- withChannelValue(channel: ColorChannel, value: number): Color;
79
- /** Get the range for a channel. */
80
- getChannelRange(channel: ColorChannel): ColorChannelRange;
81
- /** Get the localized name of a channel. */
82
- getChannelName(channel: ColorChannel, locale: string): string;
83
- /** Get the format options for a channel. */
84
- getChannelFormatOptions(channel: ColorChannel): Intl.NumberFormatOptions;
85
- /** Format the value of a channel. */
86
- formatChannelValue(channel: ColorChannel, locale: string): string;
87
- /** Get the color space. */
88
- getColorSpace(): ColorSpace;
89
- /** Get the axes for a color space. */
90
- getColorSpaceAxes(xyChannels?: { xChannel?: ColorChannel; yChannel?: ColorChannel }): ColorAxes;
91
- /** Get all channels for this color space. */
92
- getColorChannels(): [ColorChannel, ColorChannel, ColorChannel];
93
- /** Get a human-readable color name. */
94
- getColorName(locale: string): string;
95
- /** Get the hue name (e.g., "red", "blue"). */
96
- getHueName(locale: string): string;
97
- }
98
-
99
- /**
100
- * RGB color value.
101
- */
102
- export interface RGBColor {
103
- red: number;
104
- green: number;
105
- blue: number;
106
- alpha: number;
107
- }
108
-
109
- /**
110
- * HSL color value.
111
- */
112
- export interface HSLColor {
113
- hue: number;
114
- saturation: number;
115
- lightness: number;
116
- alpha: number;
117
- }
118
-
119
- /**
120
- * HSB color value.
121
- */
122
- export interface HSBColor {
123
- hue: number;
124
- saturation: number;
125
- brightness: number;
126
- alpha: number;
127
- }
@@ -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,KAAK,EA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