@yamada-ui/color-picker 1.0.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.
Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +28 -0
  3. package/dist/alpha-slider.d.mts +62 -0
  4. package/dist/alpha-slider.d.ts +62 -0
  5. package/dist/alpha-slider.js +438 -0
  6. package/dist/alpha-slider.mjs +8 -0
  7. package/dist/chunk-3EO2XBIZ.mjs +54 -0
  8. package/dist/chunk-3KASGDAY.mjs +122 -0
  9. package/dist/chunk-3N443XSV.mjs +105 -0
  10. package/dist/chunk-73BVTMII.mjs +73 -0
  11. package/dist/chunk-7QGCTVDG.mjs +66 -0
  12. package/dist/chunk-DTB2Z3IJ.mjs +278 -0
  13. package/dist/chunk-EMWFECJD.mjs +123 -0
  14. package/dist/chunk-HNVFOSAM.mjs +210 -0
  15. package/dist/chunk-KJS52X4M.mjs +330 -0
  16. package/dist/chunk-MAHWFXUG.mjs +294 -0
  17. package/dist/chunk-N2GG5L7Q.mjs +39 -0
  18. package/dist/chunk-NR2XCTSD.mjs +430 -0
  19. package/dist/chunk-PTTNJPGJ.mjs +98 -0
  20. package/dist/chunk-PVWIBTBL.mjs +67 -0
  21. package/dist/chunk-TFQ62YSQ.mjs +68 -0
  22. package/dist/chunk-U6OJ4TDG.mjs +127 -0
  23. package/dist/color-input.d.mts +79 -0
  24. package/dist/color-input.d.ts +79 -0
  25. package/dist/color-input.js +2283 -0
  26. package/dist/color-input.mjs +21 -0
  27. package/dist/color-picker-body.d.mts +38 -0
  28. package/dist/color-picker-body.d.ts +38 -0
  29. package/dist/color-picker-body.js +794 -0
  30. package/dist/color-picker-body.mjs +14 -0
  31. package/dist/color-picker-channels.d.mts +20 -0
  32. package/dist/color-picker-channels.d.ts +20 -0
  33. package/dist/color-picker-channels.js +101 -0
  34. package/dist/color-picker-channels.mjs +10 -0
  35. package/dist/color-picker-eye-dropper.d.mts +10 -0
  36. package/dist/color-picker-eye-dropper.d.ts +10 -0
  37. package/dist/color-picker-eye-dropper.js +88 -0
  38. package/dist/color-picker-eye-dropper.mjs +10 -0
  39. package/dist/color-picker-sliders.d.mts +30 -0
  40. package/dist/color-picker-sliders.d.ts +30 -0
  41. package/dist/color-picker-sliders.js +590 -0
  42. package/dist/color-picker-sliders.mjs +11 -0
  43. package/dist/color-picker-swatches.d.mts +34 -0
  44. package/dist/color-picker-swatches.d.ts +34 -0
  45. package/dist/color-picker-swatches.js +195 -0
  46. package/dist/color-picker-swatches.mjs +9 -0
  47. package/dist/color-picker.d.mts +59 -0
  48. package/dist/color-picker.d.ts +59 -0
  49. package/dist/color-picker.js +1790 -0
  50. package/dist/color-picker.mjs +19 -0
  51. package/dist/color-swatch.d.mts +36 -0
  52. package/dist/color-swatch.d.ts +36 -0
  53. package/dist/color-swatch.js +124 -0
  54. package/dist/color-swatch.mjs +6 -0
  55. package/dist/hue-slider.d.mts +56 -0
  56. package/dist/hue-slider.d.ts +56 -0
  57. package/dist/hue-slider.js +409 -0
  58. package/dist/hue-slider.mjs +8 -0
  59. package/dist/index.d.mts +23 -0
  60. package/dist/index.d.ts +23 -0
  61. package/dist/index.js +2295 -0
  62. package/dist/index.mjs +36 -0
  63. package/dist/saturation-slider.d.mts +33 -0
  64. package/dist/saturation-slider.d.ts +33 -0
  65. package/dist/saturation-slider.js +414 -0
  66. package/dist/saturation-slider.mjs +7 -0
  67. package/dist/use-color-input.d.mts +90 -0
  68. package/dist/use-color-input.d.ts +90 -0
  69. package/dist/use-color-input.js +340 -0
  70. package/dist/use-color-input.mjs +10 -0
  71. package/dist/use-color-picker.d.mts +131 -0
  72. package/dist/use-color-picker.d.ts +131 -0
  73. package/dist/use-color-picker.js +472 -0
  74. package/dist/use-color-picker.mjs +11 -0
  75. package/dist/use-color-slider.d.mts +69 -0
  76. package/dist/use-color-slider.d.ts +69 -0
  77. package/dist/use-color-slider.js +321 -0
  78. package/dist/use-color-slider.mjs +7 -0
  79. package/dist/use-saturation-slider.d.mts +77 -0
  80. package/dist/use-saturation-slider.d.ts +77 -0
  81. package/dist/use-saturation-slider.js +302 -0
  82. package/dist/use-saturation-slider.mjs +6 -0
  83. package/package.json +88 -0
@@ -0,0 +1,21 @@
1
+ import {
2
+ ColorInput
3
+ } from "./chunk-HNVFOSAM.mjs";
4
+ import "./chunk-KJS52X4M.mjs";
5
+ import "./chunk-EMWFECJD.mjs";
6
+ import "./chunk-3KASGDAY.mjs";
7
+ import "./chunk-MAHWFXUG.mjs";
8
+ import "./chunk-73BVTMII.mjs";
9
+ import "./chunk-PVWIBTBL.mjs";
10
+ import "./chunk-3EO2XBIZ.mjs";
11
+ import "./chunk-7QGCTVDG.mjs";
12
+ import "./chunk-PTTNJPGJ.mjs";
13
+ import "./chunk-U6OJ4TDG.mjs";
14
+ import "./chunk-DTB2Z3IJ.mjs";
15
+ import "./chunk-TFQ62YSQ.mjs";
16
+ import "./chunk-3N443XSV.mjs";
17
+ import "./chunk-NR2XCTSD.mjs";
18
+ import "./chunk-N2GG5L7Q.mjs";
19
+ export {
20
+ ColorInput
21
+ };
@@ -0,0 +1,38 @@
1
+ import * as _yamada_ui_core from '@yamada-ui/core';
2
+ import { HTMLUIProps } from '@yamada-ui/core';
3
+ import { ForwardedRef } from 'react';
4
+ import { ColorPickerEyeDropperProps } from './color-picker-eye-dropper.mjs';
5
+ import { ColorPickerSlidersProps } from './color-picker-sliders.mjs';
6
+ import '@yamada-ui/button';
7
+ import '@yamada-ui/icon';
8
+ import './alpha-slider.mjs';
9
+ import './use-color-slider.mjs';
10
+ import '@yamada-ui/form-control';
11
+ import './hue-slider.mjs';
12
+
13
+ type ColorPickerBodyOptions = {
14
+ /**
15
+ * If `true`, display the result component.
16
+ *
17
+ * @default true
18
+ */
19
+ withResult?: boolean;
20
+ /**
21
+ * If `true` display the eye dropper component.
22
+ *
23
+ * @default true
24
+ */
25
+ withEyeDropper?: boolean;
26
+ /**
27
+ * Ref for the eye dropper component.
28
+ */
29
+ eyeDropperRef?: ForwardedRef<HTMLButtonElement>;
30
+ /**
31
+ * Props for the eye dropper component.
32
+ */
33
+ eyeDropperProps?: ColorPickerEyeDropperProps;
34
+ };
35
+ type ColorPickerBodyProps = Omit<HTMLUIProps<"div">, "children"> & ColorPickerBodyOptions & Pick<ColorPickerSlidersProps, "hueSliderRef" | "hueSliderProps" | "alphaSliderRef" | "alphaSliderProps">;
36
+ declare const ColorPickerBody: _yamada_ui_core.Component<"div", ColorPickerBodyProps>;
37
+
38
+ export { ColorPickerBody, type ColorPickerBodyProps };
@@ -0,0 +1,38 @@
1
+ import * as _yamada_ui_core from '@yamada-ui/core';
2
+ import { HTMLUIProps } from '@yamada-ui/core';
3
+ import { ForwardedRef } from 'react';
4
+ import { ColorPickerEyeDropperProps } from './color-picker-eye-dropper.js';
5
+ import { ColorPickerSlidersProps } from './color-picker-sliders.js';
6
+ import '@yamada-ui/button';
7
+ import '@yamada-ui/icon';
8
+ import './alpha-slider.js';
9
+ import './use-color-slider.js';
10
+ import '@yamada-ui/form-control';
11
+ import './hue-slider.js';
12
+
13
+ type ColorPickerBodyOptions = {
14
+ /**
15
+ * If `true`, display the result component.
16
+ *
17
+ * @default true
18
+ */
19
+ withResult?: boolean;
20
+ /**
21
+ * If `true` display the eye dropper component.
22
+ *
23
+ * @default true
24
+ */
25
+ withEyeDropper?: boolean;
26
+ /**
27
+ * Ref for the eye dropper component.
28
+ */
29
+ eyeDropperRef?: ForwardedRef<HTMLButtonElement>;
30
+ /**
31
+ * Props for the eye dropper component.
32
+ */
33
+ eyeDropperProps?: ColorPickerEyeDropperProps;
34
+ };
35
+ type ColorPickerBodyProps = Omit<HTMLUIProps<"div">, "children"> & ColorPickerBodyOptions & Pick<ColorPickerSlidersProps, "hueSliderRef" | "hueSliderProps" | "alphaSliderRef" | "alphaSliderProps">;
36
+ declare const ColorPickerBody: _yamada_ui_core.Component<"div", ColorPickerBodyProps>;
37
+
38
+ export { ColorPickerBody, type ColorPickerBodyProps };