@zag-js/color-picker 1.43.2 → 1.43.3

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.
@@ -4,7 +4,7 @@ import { Service, EventObject, Machine } from '@zag-js/core';
4
4
  import { InteractOutsideHandlers } from '@zag-js/dismissable';
5
5
  import { PositioningOptions } from '@zag-js/popper';
6
6
  export { PositioningOptions } from '@zag-js/popper';
7
- import { RequiredBy, CommonProperties, DirectionProperty, Partial, Orientation, PropTypes } from '@zag-js/types';
7
+ import { RequiredBy, CommonProperties, DirectionProperty, Orientation, PropTypes } from '@zag-js/types';
8
8
 
9
9
  type ExtendedColorChannel = ColorChannel | "hex" | "css";
10
10
  interface EyeDropper {
@@ -32,23 +32,23 @@ interface OpenChangeDetails {
32
32
  interface FormatChangeDetails {
33
33
  format: ColorFormat;
34
34
  }
35
- type ElementIds = Partial<{
36
- root: string;
37
- control: string;
38
- trigger: string;
39
- label: string;
40
- input: string;
41
- hiddenInput: string;
42
- content: string;
43
- area: string;
44
- areaGradient: string;
45
- positioner: string;
46
- formatSelect: string;
47
- areaThumb: string;
48
- channelInput: (id: string) => string;
49
- channelSliderTrack: (id: ColorChannel) => string;
50
- channelSliderThumb: (id: ColorChannel) => string;
51
- }>;
35
+ interface ElementIds {
36
+ root?: string | undefined;
37
+ control?: string | undefined;
38
+ trigger?: string | undefined;
39
+ label?: string | undefined;
40
+ input?: string | undefined;
41
+ hiddenInput?: string | undefined;
42
+ content?: string | undefined;
43
+ area?: string | undefined;
44
+ areaGradient?: string | undefined;
45
+ positioner?: string | undefined;
46
+ formatSelect?: string | undefined;
47
+ areaThumb?: string | undefined;
48
+ channelInput?: ((id: string) => string) | undefined;
49
+ channelSliderTrack?: ((id: ColorChannel) => string) | undefined;
50
+ channelSliderThumb?: ((id: ColorChannel) => string) | undefined;
51
+ }
52
52
  interface ColorPickerProps extends CommonProperties, DirectionProperty, InteractOutsideHandlers {
53
53
  /**
54
54
  * The ids of the elements in the color picker. Useful for composition.
@@ -4,7 +4,7 @@ import { Service, EventObject, Machine } from '@zag-js/core';
4
4
  import { InteractOutsideHandlers } from '@zag-js/dismissable';
5
5
  import { PositioningOptions } from '@zag-js/popper';
6
6
  export { PositioningOptions } from '@zag-js/popper';
7
- import { RequiredBy, CommonProperties, DirectionProperty, Partial, Orientation, PropTypes } from '@zag-js/types';
7
+ import { RequiredBy, CommonProperties, DirectionProperty, Orientation, PropTypes } from '@zag-js/types';
8
8
 
9
9
  type ExtendedColorChannel = ColorChannel | "hex" | "css";
10
10
  interface EyeDropper {
@@ -32,23 +32,23 @@ interface OpenChangeDetails {
32
32
  interface FormatChangeDetails {
33
33
  format: ColorFormat;
34
34
  }
35
- type ElementIds = Partial<{
36
- root: string;
37
- control: string;
38
- trigger: string;
39
- label: string;
40
- input: string;
41
- hiddenInput: string;
42
- content: string;
43
- area: string;
44
- areaGradient: string;
45
- positioner: string;
46
- formatSelect: string;
47
- areaThumb: string;
48
- channelInput: (id: string) => string;
49
- channelSliderTrack: (id: ColorChannel) => string;
50
- channelSliderThumb: (id: ColorChannel) => string;
51
- }>;
35
+ interface ElementIds {
36
+ root?: string | undefined;
37
+ control?: string | undefined;
38
+ trigger?: string | undefined;
39
+ label?: string | undefined;
40
+ input?: string | undefined;
41
+ hiddenInput?: string | undefined;
42
+ content?: string | undefined;
43
+ area?: string | undefined;
44
+ areaGradient?: string | undefined;
45
+ positioner?: string | undefined;
46
+ formatSelect?: string | undefined;
47
+ areaThumb?: string | undefined;
48
+ channelInput?: ((id: string) => string) | undefined;
49
+ channelSliderTrack?: ((id: ColorChannel) => string) | undefined;
50
+ channelSliderThumb?: ((id: ColorChannel) => string) | undefined;
51
+ }
52
52
  interface ColorPickerProps extends CommonProperties, DirectionProperty, InteractOutsideHandlers {
53
53
  /**
54
54
  * The ids of the elements in the color picker. Useful for composition.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/color-picker",
3
- "version": "1.43.2",
3
+ "version": "1.43.3",
4
4
  "description": "Core logic for the color-picker widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -30,14 +30,14 @@
30
30
  "url": "https://github.com/chakra-ui/zag/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@zag-js/core": "1.43.2",
34
- "@zag-js/anatomy": "1.43.2",
35
- "@zag-js/dom-query": "1.43.2",
36
- "@zag-js/dismissable": "1.43.2",
37
- "@zag-js/utils": "1.43.2",
38
- "@zag-js/color-utils": "1.43.2",
39
- "@zag-js/popper": "1.43.2",
40
- "@zag-js/types": "1.43.2"
33
+ "@zag-js/core": "1.43.3",
34
+ "@zag-js/anatomy": "1.43.3",
35
+ "@zag-js/dom-query": "1.43.3",
36
+ "@zag-js/dismissable": "1.43.3",
37
+ "@zag-js/utils": "1.43.3",
38
+ "@zag-js/color-utils": "1.43.3",
39
+ "@zag-js/popper": "1.43.3",
40
+ "@zag-js/types": "1.43.3"
41
41
  },
42
42
  "devDependencies": {
43
43
  "clean-package": "2.2.0"