@zag-js/color-picker 0.37.0 → 0.37.2
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/package.json +14 -14
- package/src/color-picker.props.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/color-picker",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.2",
|
|
4
4
|
"description": "Core logic for the color-picker widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@zag-js/core": "0.37.
|
|
32
|
-
"@zag-js/anatomy": "0.37.
|
|
33
|
-
"@zag-js/dom-query": "0.37.
|
|
34
|
-
"@zag-js/tabbable": "0.37.
|
|
35
|
-
"@zag-js/dismissable": "0.37.
|
|
36
|
-
"@zag-js/dom-event": "0.37.
|
|
37
|
-
"@zag-js/utils": "0.37.
|
|
38
|
-
"@zag-js/form-utils": "0.37.
|
|
39
|
-
"@zag-js/color-utils": "0.37.
|
|
40
|
-
"@zag-js/visually-hidden": "0.37.
|
|
41
|
-
"@zag-js/popper": "0.37.
|
|
42
|
-
"@zag-js/text-selection": "0.37.
|
|
43
|
-
"@zag-js/types": "0.37.
|
|
31
|
+
"@zag-js/core": "0.37.2",
|
|
32
|
+
"@zag-js/anatomy": "0.37.2",
|
|
33
|
+
"@zag-js/dom-query": "0.37.2",
|
|
34
|
+
"@zag-js/tabbable": "0.37.2",
|
|
35
|
+
"@zag-js/dismissable": "0.37.2",
|
|
36
|
+
"@zag-js/dom-event": "0.37.2",
|
|
37
|
+
"@zag-js/utils": "0.37.2",
|
|
38
|
+
"@zag-js/form-utils": "0.37.2",
|
|
39
|
+
"@zag-js/color-utils": "0.37.2",
|
|
40
|
+
"@zag-js/visually-hidden": "0.37.2",
|
|
41
|
+
"@zag-js/popper": "0.37.2",
|
|
42
|
+
"@zag-js/text-selection": "0.37.2",
|
|
43
|
+
"@zag-js/types": "0.37.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"clean-package": "2.2.0"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createProps } from "@zag-js/types"
|
|
2
|
+
import { createSplitProps } from "@zag-js/utils"
|
|
2
3
|
import type {
|
|
3
4
|
AreaProps,
|
|
4
5
|
ChannelProps,
|
|
@@ -32,13 +33,19 @@ export const props = createProps<UserDefinedContext>()([
|
|
|
32
33
|
"readOnly",
|
|
33
34
|
"value",
|
|
34
35
|
])
|
|
36
|
+
export const splitProps = createSplitProps<Partial<UserDefinedContext>>(props)
|
|
35
37
|
|
|
36
38
|
export const areaProps = createProps<AreaProps>()(["xChannel", "yChannel"])
|
|
39
|
+
export const splitAreaProps = createSplitProps<AreaProps>(areaProps)
|
|
37
40
|
|
|
38
41
|
export const channelProps = createProps<ChannelProps>()(["channel", "orientation"])
|
|
42
|
+
export const splitChannelProps = createSplitProps<ChannelProps>(channelProps)
|
|
39
43
|
|
|
40
44
|
export const swatchTriggerProps = createProps<SwatchTriggerProps>()(["value", "disabled"])
|
|
45
|
+
export const splitSwatchTriggerProps = createSplitProps<SwatchTriggerProps>(swatchTriggerProps)
|
|
41
46
|
|
|
42
47
|
export const swatchProps = createProps<SwatchProps>()(["value", "respectAlpha"])
|
|
48
|
+
export const splitSwatchProps = createSplitProps<SwatchProps>(swatchProps)
|
|
43
49
|
|
|
44
50
|
export const transparencyGridProps = createProps<TransparencyGridProps>()(["size"])
|
|
51
|
+
export const splitTransparencyGridProps = createSplitProps<TransparencyGridProps>(transparencyGridProps)
|