@zag-js/color-picker 1.0.0 → 1.0.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.
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { CommonProperties, DirectionProperty, Orientation, PropTypes, RequiredBy
|
|
|
5
5
|
import { Color, ColorFormat, ColorChannel, ColorAxes } from '@zag-js/color-utils';
|
|
6
6
|
export { Color, ColorAxes, ColorChannel, ColorFormat, ColorType } from '@zag-js/color-utils';
|
|
7
7
|
import * as _zag_js_core from '@zag-js/core';
|
|
8
|
-
import { Service, EventObject } from '@zag-js/core';
|
|
8
|
+
import { Service, Machine, EventObject } from '@zag-js/core';
|
|
9
9
|
import { PositioningOptions } from '@zag-js/popper';
|
|
10
10
|
export { PositioningOptions } from '@zag-js/popper';
|
|
11
11
|
|
|
@@ -170,6 +170,7 @@ type ColorPickerSchema = {
|
|
|
170
170
|
guard: string;
|
|
171
171
|
};
|
|
172
172
|
type ColorPickerService = Service<ColorPickerSchema>;
|
|
173
|
+
type ColorPickerMachine = Machine<ColorPickerSchema>;
|
|
173
174
|
interface ChannelProps {
|
|
174
175
|
channel: ColorChannel;
|
|
175
176
|
orientation?: Orientation | undefined;
|
|
@@ -297,7 +298,7 @@ interface ColorPickerApi<T extends PropTypes = PropTypes> {
|
|
|
297
298
|
|
|
298
299
|
declare function connect<T extends PropTypes>(service: ColorPickerService, normalize: NormalizeProps<T>): ColorPickerApi<T>;
|
|
299
300
|
|
|
300
|
-
declare const machine: _zag_js_core.
|
|
301
|
+
declare const machine: _zag_js_core.Machine<ColorPickerSchema>;
|
|
301
302
|
|
|
302
303
|
declare const parse: (colorString: string) => Color;
|
|
303
304
|
|
|
@@ -314,4 +315,4 @@ declare const splitSwatchProps: <Props extends SwatchProps>(props: Props) => [Sw
|
|
|
314
315
|
declare const transparencyGridProps: "size"[];
|
|
315
316
|
declare const splitTransparencyGridProps: <Props extends TransparencyGridProps>(props: Props) => [TransparencyGridProps, Omit<Props, "size">];
|
|
316
317
|
|
|
317
|
-
export { type ColorPickerApi as Api, type AreaProps, type ChannelInputProps, type ChannelProps, type ChannelSliderProps, type ElementIds, type FormatChangeDetails, type OpenChangeDetails, type ColorPickerProps as Props, type ColorPickerService as Service, type SwatchProps, type SwatchTriggerProps, type SwatchTriggerState, type TransparencyGridProps, type ValueChangeDetails, anatomy, areaProps, channelProps, connect, machine, parse, props, splitAreaProps, splitChannelProps, splitProps, splitSwatchProps, splitSwatchTriggerProps, splitTransparencyGridProps, swatchProps, swatchTriggerProps, transparencyGridProps };
|
|
318
|
+
export { type ColorPickerApi as Api, type AreaProps, type ChannelInputProps, type ChannelProps, type ChannelSliderProps, type ElementIds, type FormatChangeDetails, type ColorPickerMachine as Machine, type OpenChangeDetails, type ColorPickerProps as Props, type ColorPickerService as Service, type SwatchProps, type SwatchTriggerProps, type SwatchTriggerState, type TransparencyGridProps, type ValueChangeDetails, anatomy, areaProps, channelProps, connect, machine, parse, props, splitAreaProps, splitChannelProps, splitProps, splitSwatchProps, splitSwatchTriggerProps, splitTransparencyGridProps, swatchProps, swatchTriggerProps, transparencyGridProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { CommonProperties, DirectionProperty, Orientation, PropTypes, RequiredBy
|
|
|
5
5
|
import { Color, ColorFormat, ColorChannel, ColorAxes } from '@zag-js/color-utils';
|
|
6
6
|
export { Color, ColorAxes, ColorChannel, ColorFormat, ColorType } from '@zag-js/color-utils';
|
|
7
7
|
import * as _zag_js_core from '@zag-js/core';
|
|
8
|
-
import { Service, EventObject } from '@zag-js/core';
|
|
8
|
+
import { Service, Machine, EventObject } from '@zag-js/core';
|
|
9
9
|
import { PositioningOptions } from '@zag-js/popper';
|
|
10
10
|
export { PositioningOptions } from '@zag-js/popper';
|
|
11
11
|
|
|
@@ -170,6 +170,7 @@ type ColorPickerSchema = {
|
|
|
170
170
|
guard: string;
|
|
171
171
|
};
|
|
172
172
|
type ColorPickerService = Service<ColorPickerSchema>;
|
|
173
|
+
type ColorPickerMachine = Machine<ColorPickerSchema>;
|
|
173
174
|
interface ChannelProps {
|
|
174
175
|
channel: ColorChannel;
|
|
175
176
|
orientation?: Orientation | undefined;
|
|
@@ -297,7 +298,7 @@ interface ColorPickerApi<T extends PropTypes = PropTypes> {
|
|
|
297
298
|
|
|
298
299
|
declare function connect<T extends PropTypes>(service: ColorPickerService, normalize: NormalizeProps<T>): ColorPickerApi<T>;
|
|
299
300
|
|
|
300
|
-
declare const machine: _zag_js_core.
|
|
301
|
+
declare const machine: _zag_js_core.Machine<ColorPickerSchema>;
|
|
301
302
|
|
|
302
303
|
declare const parse: (colorString: string) => Color;
|
|
303
304
|
|
|
@@ -314,4 +315,4 @@ declare const splitSwatchProps: <Props extends SwatchProps>(props: Props) => [Sw
|
|
|
314
315
|
declare const transparencyGridProps: "size"[];
|
|
315
316
|
declare const splitTransparencyGridProps: <Props extends TransparencyGridProps>(props: Props) => [TransparencyGridProps, Omit<Props, "size">];
|
|
316
317
|
|
|
317
|
-
export { type ColorPickerApi as Api, type AreaProps, type ChannelInputProps, type ChannelProps, type ChannelSliderProps, type ElementIds, type FormatChangeDetails, type OpenChangeDetails, type ColorPickerProps as Props, type ColorPickerService as Service, type SwatchProps, type SwatchTriggerProps, type SwatchTriggerState, type TransparencyGridProps, type ValueChangeDetails, anatomy, areaProps, channelProps, connect, machine, parse, props, splitAreaProps, splitChannelProps, splitProps, splitSwatchProps, splitSwatchTriggerProps, splitTransparencyGridProps, swatchProps, swatchTriggerProps, transparencyGridProps };
|
|
318
|
+
export { type ColorPickerApi as Api, type AreaProps, type ChannelInputProps, type ChannelProps, type ChannelSliderProps, type ElementIds, type FormatChangeDetails, type ColorPickerMachine as Machine, type OpenChangeDetails, type ColorPickerProps as Props, type ColorPickerService as Service, type SwatchProps, type SwatchTriggerProps, type SwatchTriggerState, type TransparencyGridProps, type ValueChangeDetails, anatomy, areaProps, channelProps, connect, machine, parse, props, splitAreaProps, splitChannelProps, splitProps, splitSwatchProps, splitSwatchTriggerProps, splitTransparencyGridProps, swatchProps, swatchTriggerProps, transparencyGridProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/color-picker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Core logic for the color-picker widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@zag-js/core": "1.0.
|
|
31
|
-
"@zag-js/anatomy": "1.0.
|
|
32
|
-
"@zag-js/dom-query": "1.0.
|
|
33
|
-
"@zag-js/dismissable": "1.0.
|
|
34
|
-
"@zag-js/utils": "1.0.
|
|
35
|
-
"@zag-js/color-utils": "1.0.
|
|
36
|
-
"@zag-js/popper": "1.0.
|
|
37
|
-
"@zag-js/types": "1.0.
|
|
30
|
+
"@zag-js/core": "1.0.1",
|
|
31
|
+
"@zag-js/anatomy": "1.0.1",
|
|
32
|
+
"@zag-js/dom-query": "1.0.1",
|
|
33
|
+
"@zag-js/dismissable": "1.0.1",
|
|
34
|
+
"@zag-js/utils": "1.0.1",
|
|
35
|
+
"@zag-js/color-utils": "1.0.1",
|
|
36
|
+
"@zag-js/popper": "1.0.1",
|
|
37
|
+
"@zag-js/types": "1.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"clean-package": "2.2.0"
|