@zag-js/color-picker 0.0.0-dev-20230605141821 → 0.0.0-dev-20230605143941
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/color-picker.types.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/color-picker.types.ts +3 -1
- package/src/index.ts +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color, ColorAxes, ColorChannel } from "@zag-js/color-utils";
|
|
1
|
+
import { Color, type ColorAxes, type ColorChannel } from "@zag-js/color-utils";
|
|
2
2
|
import type { StateMachine as S } from "@zag-js/core";
|
|
3
3
|
import type { CommonProperties, Context, Orientation, RequiredBy } from "@zag-js/types";
|
|
4
4
|
export type ColorChannelProps = {
|
|
@@ -96,4 +96,4 @@ export type MachineState = {
|
|
|
96
96
|
};
|
|
97
97
|
export type State = S.State<MachineContext, MachineState>;
|
|
98
98
|
export type Send = S.Send<S.AnyEventObject>;
|
|
99
|
-
export {};
|
|
99
|
+
export type { Color, ColorChannel };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { anatomy } from "./color-picker.anatomy";
|
|
2
2
|
export { connect } from "./color-picker.connect";
|
|
3
3
|
export { machine } from "./color-picker.machine";
|
|
4
|
-
export type { ColorAreaProps, ColorChannelProps, ColorSwatchProps, UserDefinedContext as Context, } from "./color-picker.types";
|
|
4
|
+
export type { Color, ColorAreaProps, ColorChannel, ColorChannelProps, ColorSwatchProps, UserDefinedContext as Context, } from "./color-picker.types";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/color-picker",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230605143941",
|
|
4
4
|
"description": "Core logic for the color-picker widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@zag-js/core": "0.0.0-dev-
|
|
32
|
-
"@zag-js/anatomy": "0.0.0-dev-
|
|
33
|
-
"@zag-js/dom-query": "0.0.0-dev-
|
|
34
|
-
"@zag-js/dom-event": "0.0.0-dev-
|
|
35
|
-
"@zag-js/utils": "0.0.0-dev-
|
|
36
|
-
"@zag-js/color-utils": "0.0.0-dev-
|
|
37
|
-
"@zag-js/numeric-range": "0.0.0-dev-
|
|
38
|
-
"@zag-js/text-selection": "0.0.0-dev-
|
|
39
|
-
"@zag-js/types": "0.0.0-dev-
|
|
31
|
+
"@zag-js/core": "0.0.0-dev-20230605143941",
|
|
32
|
+
"@zag-js/anatomy": "0.0.0-dev-20230605143941",
|
|
33
|
+
"@zag-js/dom-query": "0.0.0-dev-20230605143941",
|
|
34
|
+
"@zag-js/dom-event": "0.0.0-dev-20230605143941",
|
|
35
|
+
"@zag-js/utils": "0.0.0-dev-20230605143941",
|
|
36
|
+
"@zag-js/color-utils": "0.0.0-dev-20230605143941",
|
|
37
|
+
"@zag-js/numeric-range": "0.0.0-dev-20230605143941",
|
|
38
|
+
"@zag-js/text-selection": "0.0.0-dev-20230605143941",
|
|
39
|
+
"@zag-js/types": "0.0.0-dev-20230605143941"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"clean-package": "2.2.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color, ColorAxes, ColorChannel } from "@zag-js/color-utils"
|
|
1
|
+
import { Color, type ColorAxes, type ColorChannel } from "@zag-js/color-utils"
|
|
2
2
|
import type { StateMachine as S } from "@zag-js/core"
|
|
3
3
|
import type { CommonProperties, Context, Orientation, RequiredBy } from "@zag-js/types"
|
|
4
4
|
|
|
@@ -111,3 +111,5 @@ export type MachineState = {
|
|
|
111
111
|
export type State = S.State<MachineContext, MachineState>
|
|
112
112
|
|
|
113
113
|
export type Send = S.Send<S.AnyEventObject>
|
|
114
|
+
|
|
115
|
+
export type { Color, ColorChannel }
|
package/src/index.ts
CHANGED
|
@@ -2,7 +2,9 @@ export { anatomy } from "./color-picker.anatomy"
|
|
|
2
2
|
export { connect } from "./color-picker.connect"
|
|
3
3
|
export { machine } from "./color-picker.machine"
|
|
4
4
|
export type {
|
|
5
|
+
Color,
|
|
5
6
|
ColorAreaProps,
|
|
7
|
+
ColorChannel,
|
|
6
8
|
ColorChannelProps,
|
|
7
9
|
ColorSwatchProps,
|
|
8
10
|
UserDefinedContext as Context,
|