@zag-js/color-picker 0.8.0 → 0.9.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.
@@ -9,22 +9,22 @@ type Point = {
9
9
  };
10
10
  declare const dom: {
11
11
  getRootNode: (ctx: {
12
- getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
13
- }) => ShadowRoot | Document;
12
+ getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
13
+ }) => Document | ShadowRoot;
14
14
  getDoc: (ctx: {
15
- getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
15
+ getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
16
16
  }) => Document;
17
17
  getWin: (ctx: {
18
- getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
18
+ getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
19
19
  }) => Window & typeof globalThis;
20
20
  getActiveElement: (ctx: {
21
- getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
21
+ getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
22
22
  }) => HTMLElement | null;
23
23
  getById: <T extends HTMLElement = HTMLElement>(ctx: {
24
- getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
24
+ getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
25
25
  }, id: string) => T | null;
26
26
  queryById: <T_1 extends HTMLElement = HTMLElement>(ctx: {
27
- getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
27
+ getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
28
28
  }, id: string) => T_1;
29
29
  } & {
30
30
  getContentId: (ctx: MachineContext) => string;
@@ -1,5 +1,6 @@
1
+ import * as _zag_js_color_utils_src_types from '@zag-js/color-utils/src/types';
1
2
  import { Color, ColorChannel } from '@zag-js/color-utils';
2
3
 
3
- declare function getChannelDisplayColor(color: Color, channel: ColorChannel): Color;
4
+ declare function getChannelDisplayColor(color: Color, channel: ColorChannel): _zag_js_color_utils_src_types.ColorType;
4
5
 
5
6
  export { getChannelDisplayColor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/color-picker",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Core logic for the color-picker widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@zag-js/core": "0.7.0",
31
- "@zag-js/anatomy": "0.1.4",
31
+ "@zag-js/anatomy": "0.9.0",
32
32
  "@zag-js/dom-query": "0.1.4",
33
33
  "@zag-js/dom-event": "0.8.0",
34
34
  "@zag-js/utils": "0.3.4",