@zag-js/color-picker 0.53.0 → 0.54.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.
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1429 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1405 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
- package/src/color-picker.connect.ts +164 -142
- package/src/color-picker.types.ts +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -243,13 +243,13 @@ interface MachineApi<T extends PropTypes = PropTypes> {
|
|
|
243
243
|
* Function to open or close the color picker
|
|
244
244
|
*/
|
|
245
245
|
setOpen(open: boolean): void;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
246
|
+
getRootProps(): T["element"];
|
|
247
|
+
getLabelProps(): T["element"];
|
|
248
|
+
getControlProps(): T["element"];
|
|
249
|
+
getTriggerProps(): T["button"];
|
|
250
|
+
getPositionerProps(): T["element"];
|
|
251
|
+
getContentProps(): T["element"];
|
|
252
|
+
getHiddenInputProps(): T["input"];
|
|
253
253
|
getAreaProps(props?: AreaProps): T["element"];
|
|
254
254
|
getAreaBackgroundProps(props?: AreaProps): T["element"];
|
|
255
255
|
getAreaThumbProps(props?: AreaProps): T["element"];
|
|
@@ -258,14 +258,14 @@ interface MachineApi<T extends PropTypes = PropTypes> {
|
|
|
258
258
|
getChannelSliderThumbProps(props: ChannelProps): T["element"];
|
|
259
259
|
getChannelInputProps(props: ChannelInputProps): T["input"];
|
|
260
260
|
getTransparencyGridProps(props?: TransparencyGridProps): T["element"];
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
getEyeDropperTriggerProps(): T["button"];
|
|
262
|
+
getSwatchGroupProps(): T["element"];
|
|
263
263
|
getSwatchTriggerProps(props: SwatchTriggerProps): T["button"];
|
|
264
264
|
getSwatchTriggerState(props: SwatchTriggerProps): SwatchTriggerState;
|
|
265
265
|
getSwatchProps(props: SwatchProps): T["element"];
|
|
266
266
|
getSwatchIndicatorProps(props: SwatchProps): T["element"];
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
getFormatSelectProps(): T["select"];
|
|
268
|
+
getFormatTriggerProps(): T["button"];
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): MachineApi<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -243,13 +243,13 @@ interface MachineApi<T extends PropTypes = PropTypes> {
|
|
|
243
243
|
* Function to open or close the color picker
|
|
244
244
|
*/
|
|
245
245
|
setOpen(open: boolean): void;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
246
|
+
getRootProps(): T["element"];
|
|
247
|
+
getLabelProps(): T["element"];
|
|
248
|
+
getControlProps(): T["element"];
|
|
249
|
+
getTriggerProps(): T["button"];
|
|
250
|
+
getPositionerProps(): T["element"];
|
|
251
|
+
getContentProps(): T["element"];
|
|
252
|
+
getHiddenInputProps(): T["input"];
|
|
253
253
|
getAreaProps(props?: AreaProps): T["element"];
|
|
254
254
|
getAreaBackgroundProps(props?: AreaProps): T["element"];
|
|
255
255
|
getAreaThumbProps(props?: AreaProps): T["element"];
|
|
@@ -258,14 +258,14 @@ interface MachineApi<T extends PropTypes = PropTypes> {
|
|
|
258
258
|
getChannelSliderThumbProps(props: ChannelProps): T["element"];
|
|
259
259
|
getChannelInputProps(props: ChannelInputProps): T["input"];
|
|
260
260
|
getTransparencyGridProps(props?: TransparencyGridProps): T["element"];
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
getEyeDropperTriggerProps(): T["button"];
|
|
262
|
+
getSwatchGroupProps(): T["element"];
|
|
263
263
|
getSwatchTriggerProps(props: SwatchTriggerProps): T["button"];
|
|
264
264
|
getSwatchTriggerState(props: SwatchTriggerProps): SwatchTriggerState;
|
|
265
265
|
getSwatchProps(props: SwatchProps): T["element"];
|
|
266
266
|
getSwatchIndicatorProps(props: SwatchProps): T["element"];
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
getFormatSelectProps(): T["select"];
|
|
268
|
+
getFormatTriggerProps(): T["button"];
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): MachineApi<T>;
|