@destyler/color-picker 0.2.1-beta.3 → 0.2.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/dist/index.d.mts CHANGED
@@ -7,7 +7,7 @@ import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
7
7
  import { CommonProperties, DirectionProperty, NormalizeProps, Orientation, PropTypes, RequiredBy } from "@destyler/types";
8
8
 
9
9
  //#region src/anatomy.d.ts
10
- declare const anatomy: _destyler_anatomy0.Anatomy<"root" | "label" | "control" | "trigger" | "positioner" | "content" | "area" | "areaThumb" | "valueText" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
10
+ declare const anatomy: _destyler_anatomy0.AnatomyInstance<"root" | "label" | "control" | "trigger" | "positioner" | "content" | "area" | "areaThumb" | "valueText" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
11
11
  //#endregion
12
12
  //#region src/types.d.ts
13
13
  type ExtendedColorChannel = ColorChannel | 'hex' | 'css';
package/dist/index.mjs CHANGED
@@ -7,32 +7,7 @@ import { compact, tryCatch } from "@destyler/utils";
7
7
  import { createMachine, guards } from "@destyler/xstate";
8
8
 
9
9
  //#region src/anatomy.ts
10
- const anatomy = createAnatomy("color-picker", [
11
- "root",
12
- "label",
13
- "control",
14
- "trigger",
15
- "positioner",
16
- "content",
17
- "area",
18
- "areaThumb",
19
- "valueText",
20
- "areaBackground",
21
- "channelSlider",
22
- "channelSliderLabel",
23
- "channelSliderTrack",
24
- "channelSliderThumb",
25
- "channelSliderValueText",
26
- "channelInput",
27
- "transparencyGrid",
28
- "swatchGroup",
29
- "swatchTrigger",
30
- "swatchIndicator",
31
- "swatch",
32
- "eyeDropperTrigger",
33
- "formatTrigger",
34
- "formatSelect"
35
- ]);
10
+ const anatomy = createAnatomy("color-picker").parts("root", "label", "control", "trigger", "positioner", "content", "area", "areaThumb", "valueText", "areaBackground", "channelSlider", "channelSliderLabel", "channelSliderTrack", "channelSliderThumb", "channelSliderValueText", "channelInput", "transparencyGrid", "swatchGroup", "swatchTrigger", "swatchIndicator", "swatch", "eyeDropperTrigger", "formatTrigger", "formatSelect");
36
11
  const parts = anatomy.build();
37
12
 
38
13
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@destyler/color-picker",
3
3
  "type": "module",
4
- "version": "0.2.1-beta.3",
4
+ "version": "0.2.2",
5
5
  "description": "a component that allows users to select a color from a color picker.",
6
6
  "author": "Elone Hoo <elonehoo@gmail.com>",
7
7
  "license": "MIT",
@@ -22,14 +22,14 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@destyler/color": "0.2.1-beta.3",
26
- "@destyler/anatomy": "0.2.1-beta.3",
27
- "@destyler/dismissable": "0.2.1-beta.3",
28
- "@destyler/dom": "0.2.1-beta.3",
29
- "@destyler/popper": "0.2.1-beta.3",
30
- "@destyler/types": "0.2.1-beta.3",
31
- "@destyler/utils": "0.2.1-beta.3",
32
- "@destyler/xstate": "0.2.1-beta.3"
25
+ "@destyler/color": "0.2.2",
26
+ "@destyler/anatomy": "0.2.2",
27
+ "@destyler/dismissable": "0.2.2",
28
+ "@destyler/dom": "0.2.2",
29
+ "@destyler/utils": "0.2.2",
30
+ "@destyler/types": "0.2.2",
31
+ "@destyler/xstate": "0.2.2",
32
+ "@destyler/popper": "0.2.2"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"