@szum-tech/design-system 3.13.0 → 3.14.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 (92) hide show
  1. package/dist/chunk-4IGU5SVP.js +54 -0
  2. package/dist/{chunk-XJZOANXX.cjs → chunk-6HX7ETL3.cjs} +1 -1
  3. package/dist/chunk-B4M7Q5KX.cjs +25 -0
  4. package/dist/{chunk-S2BCU6WG.cjs → chunk-CAIAZGSW.cjs} +5 -4
  5. package/dist/chunk-EOTQVIA5.js +993 -0
  6. package/dist/chunk-EZCWHR56.cjs +2355 -0
  7. package/dist/chunk-G24PWQKG.js +20 -0
  8. package/dist/chunk-GEDBA3JU.cjs +49 -0
  9. package/dist/chunk-IZU3KULT.js +41 -0
  10. package/dist/{chunk-KQ6QE7BT.cjs → chunk-MNDQXDV4.cjs} +4 -4
  11. package/dist/chunk-N4TYSZSU.cjs +44 -0
  12. package/dist/chunk-OZSNSRLV.cjs +1027 -0
  13. package/dist/{chunk-DL54DIMD.js → chunk-Q2MJKFIE.js} +2 -1
  14. package/dist/chunk-S3ZUFD6U.js +23 -0
  15. package/dist/{chunk-WXZE35FK.js → chunk-VK2FJ65F.js} +1 -1
  16. package/dist/chunk-VL3TPVSB.js +2299 -0
  17. package/dist/{chunk-E5TYGWGE.js → chunk-XKCLVPUC.js} +1 -1
  18. package/dist/{chunk-XIQUR62A.cjs → chunk-XY3ZNUWR.cjs} +32 -20
  19. package/dist/color-picker.types-GI7dq2Ig.d.cts +42 -0
  20. package/dist/color-picker.types-GI7dq2Ig.d.ts +42 -0
  21. package/dist/components/badge-overflow/index.cjs +3 -2
  22. package/dist/components/badge-overflow/index.js +2 -1
  23. package/dist/components/button/index.cjs +17 -14
  24. package/dist/components/button/index.d.cts +1 -0
  25. package/dist/components/button/index.d.ts +1 -0
  26. package/dist/components/button/index.js +16 -13
  27. package/dist/components/carousel/index.cjs +18 -15
  28. package/dist/components/carousel/index.d.cts +1 -0
  29. package/dist/components/carousel/index.d.ts +1 -0
  30. package/dist/components/carousel/index.js +16 -13
  31. package/dist/components/color-picker/index.cjs +88 -0
  32. package/dist/components/color-picker/index.d.cts +71 -0
  33. package/dist/components/color-picker/index.d.ts +71 -0
  34. package/dist/components/color-picker/index.js +39 -0
  35. package/dist/components/dialog/index.d.cts +1 -0
  36. package/dist/components/dialog/index.d.ts +1 -0
  37. package/dist/components/field/index.cjs +12 -12
  38. package/dist/components/field/index.js +2 -2
  39. package/dist/components/file-upload/index.cjs +60 -0
  40. package/dist/components/file-upload/index.d.cts +131 -0
  41. package/dist/components/file-upload/index.d.ts +131 -0
  42. package/dist/components/file-upload/index.js +3 -0
  43. package/dist/components/index.cjs +221 -94
  44. package/dist/components/index.d.cts +7 -1
  45. package/dist/components/index.d.ts +7 -1
  46. package/dist/components/index.js +16 -13
  47. package/dist/components/input/index.cjs +2 -2
  48. package/dist/components/input/index.js +1 -1
  49. package/dist/components/item/index.d.cts +1 -0
  50. package/dist/components/item/index.d.ts +1 -0
  51. package/dist/components/masonry/index.cjs +5 -4
  52. package/dist/components/masonry/index.js +3 -2
  53. package/dist/components/popover/index.cjs +35 -0
  54. package/dist/components/popover/index.d.cts +18 -0
  55. package/dist/components/popover/index.d.ts +18 -0
  56. package/dist/components/popover/index.js +2 -0
  57. package/dist/components/select/index.cjs +7 -7
  58. package/dist/components/select/index.d.cts +8 -14
  59. package/dist/components/select/index.d.ts +8 -14
  60. package/dist/components/select/index.js +1 -1
  61. package/dist/components/sheet/index.d.cts +2 -1
  62. package/dist/components/sheet/index.d.ts +2 -1
  63. package/dist/components/stepper/index.cjs +35 -32
  64. package/dist/components/stepper/index.d.cts +1 -0
  65. package/dist/components/stepper/index.d.ts +1 -0
  66. package/dist/components/stepper/index.js +16 -13
  67. package/dist/components/timeline/index.cjs +12 -11
  68. package/dist/components/timeline/index.d.cts +1 -0
  69. package/dist/components/timeline/index.d.ts +1 -0
  70. package/dist/components/timeline/index.js +3 -2
  71. package/dist/components/toaster/index.cjs +18 -15
  72. package/dist/components/toaster/index.js +16 -13
  73. package/dist/components/typing-text/index.d.cts +1 -0
  74. package/dist/components/typing-text/index.d.ts +1 -0
  75. package/dist/components/word-rotate/index.d.cts +1 -0
  76. package/dist/components/word-rotate/index.d.ts +1 -0
  77. package/dist/hooks/index.cjs +17 -8
  78. package/dist/hooks/index.d.cts +15 -4
  79. package/dist/hooks/index.d.ts +15 -4
  80. package/dist/hooks/index.js +2 -1
  81. package/dist/popover-trigger-Cf4PPj0z.d.cts +14 -0
  82. package/dist/popover-trigger-Cf4PPj0z.d.ts +14 -0
  83. package/dist/select-Bf6XQtt-.d.cts +12 -0
  84. package/dist/select-Bf6XQtt-.d.ts +12 -0
  85. package/package.json +1 -1
  86. package/dist/chunk-5AA4IE2T.cjs +0 -27
  87. package/dist/chunk-IDOJLUDL.cjs +0 -1065
  88. package/dist/chunk-SB5UG7OC.js +0 -41
  89. package/dist/chunk-U2HEQZMY.js +0 -1020
  90. package/dist/chunk-UGSNASZM.js +0 -25
  91. package/dist/{chunk-DTYX7CYN.cjs → chunk-GAZLMZBH.cjs} +1 -1
  92. package/dist/{chunk-3MH6P44N.js → chunk-K5QSMTKJ.js} +1 -1
@@ -48,7 +48,7 @@ function Select({
48
48
  "aria-invalid": triggerProps["aria-invalid"] || invalid ? true : void 0,
49
49
  "data-size": size,
50
50
  className: cn(
51
- "border-input dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none",
51
+ "border-input dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none",
52
52
  "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2",
53
53
  "disabled:cursor-not-allowed disabled:opacity-50",
54
54
  "aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React3 = require('react');
3
+ var React = require('react');
4
4
 
5
5
  function _interopNamespace(e) {
6
6
  if (e && e.__esModule) return e;
@@ -20,11 +20,11 @@ function _interopNamespace(e) {
20
20
  return Object.freeze(n);
21
21
  }
22
22
 
23
- var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
23
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
24
24
 
25
25
  // src/hooks/use-validation-log.tsx
26
26
  function useValidationLog({ check, scope, message }) {
27
- React3__namespace.useEffect(() => {
27
+ React__namespace.useEffect(() => {
28
28
  if (!check) {
29
29
  console.error(
30
30
  `%c[Szum Tech-Design System]%c
@@ -37,30 +37,42 @@ function useValidationLog({ check, scope, message }) {
37
37
  }
38
38
  }, [check, scope, message]);
39
39
  }
40
- function useLazyRef(fn) {
41
- const ref = React3__namespace.useRef(null);
42
- if (ref.current === null) {
43
- ref.current = fn();
40
+ function setRef(ref, value) {
41
+ if (typeof ref === "function") {
42
+ return ref(value);
43
+ }
44
+ if (ref !== null && ref !== void 0) {
45
+ ref.current = value;
44
46
  }
45
- return ref;
46
47
  }
47
- var useIsomorphicLayoutEffect = typeof window === "undefined" ? React3__namespace.useEffect : React3__namespace.useLayoutEffect;
48
-
49
- // src/hooks/use-composed-refs.tsx
50
- function useComposedRefs(...refs) {
48
+ function composeRefs(...refs) {
51
49
  return (node) => {
52
- refs.forEach((ref) => {
53
- if (!ref) return;
54
- if (typeof ref === "function") {
55
- ref(node);
56
- } else {
57
- ref.current = node;
50
+ let hasCleanup = false;
51
+ const cleanups = refs.map((ref) => {
52
+ const cleanup = setRef(ref, node);
53
+ if (!hasCleanup && typeof cleanup === "function") {
54
+ hasCleanup = true;
58
55
  }
56
+ return cleanup;
59
57
  });
58
+ if (hasCleanup) {
59
+ return () => {
60
+ for (let i = 0; i < cleanups.length; i++) {
61
+ const cleanup = cleanups[i];
62
+ if (typeof cleanup === "function") {
63
+ cleanup();
64
+ } else {
65
+ setRef(refs[i], null);
66
+ }
67
+ }
68
+ };
69
+ }
60
70
  };
61
71
  }
72
+ function useComposedRefs(...refs) {
73
+ return React__namespace.useCallback(composeRefs(...refs), refs);
74
+ }
62
75
 
76
+ exports.composeRefs = composeRefs;
63
77
  exports.useComposedRefs = useComposedRefs;
64
- exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
65
- exports.useLazyRef = useLazyRef;
66
78
  exports.useValidationLog = useValidationLog;
@@ -0,0 +1,42 @@
1
+ declare const COLOR_FORMATS: readonly ["hex", "rgb", "hsl", "hsb"];
2
+
3
+ type ColorFormat = (typeof COLOR_FORMATS)[number];
4
+ type Direction = "ltr" | "rtl";
5
+ type ColorValue = {
6
+ r: number;
7
+ g: number;
8
+ b: number;
9
+ a: number;
10
+ };
11
+ type HSVColorValue = {
12
+ h: number;
13
+ s: number;
14
+ v: number;
15
+ a: number;
16
+ };
17
+ /**
18
+ * @see https://gist.github.com/bkrmendy/f4582173f50fab209ddfef1377ab31e3
19
+ */
20
+ type EyeDropper = {
21
+ open: (options?: {
22
+ signal?: AbortSignal;
23
+ }) => Promise<{
24
+ sRGBHex: string;
25
+ }>;
26
+ };
27
+ declare global {
28
+ interface Window {
29
+ EyeDropper?: {
30
+ new (): EyeDropper;
31
+ };
32
+ }
33
+ }
34
+ type ColorPickerContextValue = {
35
+ dir: Direction;
36
+ disabled?: boolean;
37
+ inline?: boolean;
38
+ readOnly?: boolean;
39
+ required?: boolean;
40
+ };
41
+
42
+ export type { ColorFormat as C, Direction as D, EyeDropper as E, HSVColorValue as H, ColorPickerContextValue as a, ColorValue as b };
@@ -0,0 +1,42 @@
1
+ declare const COLOR_FORMATS: readonly ["hex", "rgb", "hsl", "hsb"];
2
+
3
+ type ColorFormat = (typeof COLOR_FORMATS)[number];
4
+ type Direction = "ltr" | "rtl";
5
+ type ColorValue = {
6
+ r: number;
7
+ g: number;
8
+ b: number;
9
+ a: number;
10
+ };
11
+ type HSVColorValue = {
12
+ h: number;
13
+ s: number;
14
+ v: number;
15
+ a: number;
16
+ };
17
+ /**
18
+ * @see https://gist.github.com/bkrmendy/f4582173f50fab209ddfef1377ab31e3
19
+ */
20
+ type EyeDropper = {
21
+ open: (options?: {
22
+ signal?: AbortSignal;
23
+ }) => Promise<{
24
+ sRGBHex: string;
25
+ }>;
26
+ };
27
+ declare global {
28
+ interface Window {
29
+ EyeDropper?: {
30
+ new (): EyeDropper;
31
+ };
32
+ }
33
+ }
34
+ type ColorPickerContextValue = {
35
+ dir: Direction;
36
+ disabled?: boolean;
37
+ inline?: boolean;
38
+ readOnly?: boolean;
39
+ required?: boolean;
40
+ };
41
+
42
+ export type { ColorFormat as C, Direction as D, EyeDropper as E, HSVColorValue as H, ColorPickerContextValue as a, ColorValue as b };
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkXIQUR62A_cjs = require('../../chunk-XIQUR62A.cjs');
3
+ var chunkXY3ZNUWR_cjs = require('../../chunk-XY3ZNUWR.cjs');
4
+ require('../../chunk-N4TYSZSU.cjs');
4
5
  var chunkH2BWO3SI_cjs = require('../../chunk-H2BWO3SI.cjs');
5
6
  var React = require('react');
6
7
  var radixUi = require('radix-ui');
@@ -49,7 +50,7 @@ function BadgeOverflow(props) {
49
50
  [getBadgeLabelProp]
50
51
  );
51
52
  const rootRef = React__namespace.useRef(null);
52
- const composedRef = chunkXIQUR62A_cjs.useComposedRefs(ref, rootRef);
53
+ const composedRef = chunkXY3ZNUWR_cjs.useComposedRefs(ref, rootRef);
53
54
  const measureRef = React__namespace.useRef(null);
54
55
  const [containerWidth, setContainerWidth] = React__namespace.useState(0);
55
56
  const [badgeGap, setBadgeGap] = React__namespace.useState(4);
@@ -1,4 +1,5 @@
1
- import { useComposedRefs } from '../../chunk-SB5UG7OC.js';
1
+ import { useComposedRefs } from '../../chunk-4IGU5SVP.js';
2
+ import '../../chunk-G24PWQKG.js';
2
3
  import { cn } from '../../chunk-ZD2QRAOX.js';
3
4
  import * as React from 'react';
4
5
  import { Slot } from 'radix-ui';
@@ -1,36 +1,39 @@
1
1
  'use strict';
2
2
 
3
- var chunkIDOJLUDL_cjs = require('../../chunk-IDOJLUDL.cjs');
3
+ var chunkEZCWHR56_cjs = require('../../chunk-EZCWHR56.cjs');
4
+ require('../../chunk-A7SBXO2Y.cjs');
4
5
  require('../../chunk-EUH466AL.cjs');
5
6
  require('../../chunk-DGWBE2Y3.cjs');
7
+ require('../../chunk-B4M7Q5KX.cjs');
8
+ require('../../chunk-3WSQRFUY.cjs');
6
9
  require('../../chunk-GYXQUTWZ.cjs');
7
10
  require('../../chunk-7OD2NBSV.cjs');
8
- require('../../chunk-YEFLGE3L.cjs');
9
11
  require('../../chunk-NU5UQPBX.cjs');
10
- require('../../chunk-KQ6QE7BT.cjs');
11
- require('../../chunk-A7SBXO2Y.cjs');
12
- require('../../chunk-S2BCU6WG.cjs');
13
- require('../../chunk-XENOUBSI.cjs');
12
+ require('../../chunk-YEFLGE3L.cjs');
13
+ require('../../chunk-MNDQXDV4.cjs');
14
+ require('../../chunk-CAIAZGSW.cjs');
15
+ require('../../chunk-GEDBA3JU.cjs');
14
16
  require('../../chunk-TH44JYXB.cjs');
17
+ require('../../chunk-XENOUBSI.cjs');
15
18
  require('../../chunk-UJX74PFK.cjs');
16
- require('../../chunk-XJZOANXX.cjs');
19
+ require('../../chunk-6HX7ETL3.cjs');
17
20
  require('../../chunk-375QAB65.cjs');
18
- require('../../chunk-3WSQRFUY.cjs');
19
21
  require('../../chunk-VK5EX3OG.cjs');
20
22
  require('../../chunk-CXHDWIGF.cjs');
21
- require('../../chunk-DTYX7CYN.cjs');
23
+ require('../../chunk-GAZLMZBH.cjs');
24
+ require('../../chunk-S3ANEJJ7.cjs');
25
+ require('../../chunk-OZSNSRLV.cjs');
22
26
  require('../../chunk-6X26XC6P.cjs');
23
- require('../../chunk-5AA4IE2T.cjs');
24
27
  require('../../chunk-CFJ44JVK.cjs');
25
28
  require('../../chunk-UIOBJSKZ.cjs');
26
- require('../../chunk-S3ANEJJ7.cjs');
27
29
  require('../../chunk-2WQJ36RD.cjs');
28
30
  require('../../chunk-ZVF7J4EI.cjs');
29
31
  require('../../chunk-2Y2ZCPNV.cjs');
30
- require('../../chunk-ULEEQ723.cjs');
31
32
  require('../../chunk-HCHVDUI6.cjs');
33
+ require('../../chunk-ULEEQ723.cjs');
32
34
  require('../../chunk-USIW3VT5.cjs');
33
- require('../../chunk-XIQUR62A.cjs');
35
+ require('../../chunk-XY3ZNUWR.cjs');
36
+ require('../../chunk-N4TYSZSU.cjs');
34
37
  require('../../chunk-X3ZT3KGX.cjs');
35
38
  require('../../chunk-3GNVQFCK.cjs');
36
39
  require('../../chunk-TMXVL5CV.cjs');
@@ -41,5 +44,5 @@ require('../../chunk-H2BWO3SI.cjs');
41
44
 
42
45
  Object.defineProperty(exports, "Button", {
43
46
  enumerable: true,
44
- get: function () { return chunkIDOJLUDL_cjs.Button; }
47
+ get: function () { return chunkEZCWHR56_cjs.Button; }
45
48
  });
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import '../../color-picker.types-GI7dq2Ig.cjs';
5
6
 
6
7
  type ButtonProps = React.ComponentProps<"button"> & {
7
8
  /**
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import '../../color-picker.types-GI7dq2Ig.js';
5
6
 
6
7
  type ButtonProps = React.ComponentProps<"button"> & {
7
8
  /**
@@ -1,34 +1,37 @@
1
- export { Button } from '../../chunk-U2HEQZMY.js';
1
+ export { Button } from '../../chunk-VL3TPVSB.js';
2
+ import '../../chunk-U7XZJQ4O.js';
2
3
  import '../../chunk-WMGJCB7O.js';
3
4
  import '../../chunk-K5AURCK5.js';
5
+ import '../../chunk-S3ZUFD6U.js';
6
+ import '../../chunk-P5IUC7HJ.js';
4
7
  import '../../chunk-IWF52DDE.js';
5
8
  import '../../chunk-X5O7GP4S.js';
6
- import '../../chunk-OCOCENE6.js';
7
9
  import '../../chunk-OQCNPNPS.js';
8
- import '../../chunk-WXZE35FK.js';
9
- import '../../chunk-U7XZJQ4O.js';
10
- import '../../chunk-DL54DIMD.js';
11
- import '../../chunk-4TRADSTP.js';
10
+ import '../../chunk-OCOCENE6.js';
11
+ import '../../chunk-VK2FJ65F.js';
12
+ import '../../chunk-Q2MJKFIE.js';
13
+ import '../../chunk-IZU3KULT.js';
12
14
  import '../../chunk-PBEZZMAB.js';
15
+ import '../../chunk-4TRADSTP.js';
13
16
  import '../../chunk-M7NIRB3U.js';
14
- import '../../chunk-E5TYGWGE.js';
17
+ import '../../chunk-XKCLVPUC.js';
15
18
  import '../../chunk-H5NHGMSQ.js';
16
- import '../../chunk-P5IUC7HJ.js';
17
19
  import '../../chunk-BTSHACKG.js';
18
20
  import '../../chunk-HNRVLRMN.js';
19
- import '../../chunk-3MH6P44N.js';
21
+ import '../../chunk-K5QSMTKJ.js';
22
+ import '../../chunk-I3RSTJP6.js';
23
+ import '../../chunk-EOTQVIA5.js';
20
24
  import '../../chunk-VT5GDGZJ.js';
21
- import '../../chunk-UGSNASZM.js';
22
25
  import '../../chunk-KGGCA634.js';
23
26
  import '../../chunk-XJIUGEPN.js';
24
- import '../../chunk-I3RSTJP6.js';
25
27
  import '../../chunk-YUMKV5TH.js';
26
28
  import '../../chunk-U3QKV7I4.js';
27
29
  import '../../chunk-6BSR3O2J.js';
28
- import '../../chunk-3RK5PCIC.js';
29
30
  import '../../chunk-5F2Y65JH.js';
31
+ import '../../chunk-3RK5PCIC.js';
30
32
  import '../../chunk-P4JIMFSL.js';
31
- import '../../chunk-SB5UG7OC.js';
33
+ import '../../chunk-4IGU5SVP.js';
34
+ import '../../chunk-G24PWQKG.js';
32
35
  import '../../chunk-B7RHEMZH.js';
33
36
  import '../../chunk-5MV54MWS.js';
34
37
  import '../../chunk-5MJPZUTO.js';
@@ -1,36 +1,39 @@
1
1
  'use strict';
2
2
 
3
- var chunkIDOJLUDL_cjs = require('../../chunk-IDOJLUDL.cjs');
3
+ var chunkEZCWHR56_cjs = require('../../chunk-EZCWHR56.cjs');
4
+ require('../../chunk-A7SBXO2Y.cjs');
4
5
  require('../../chunk-EUH466AL.cjs');
5
6
  require('../../chunk-DGWBE2Y3.cjs');
7
+ require('../../chunk-B4M7Q5KX.cjs');
8
+ require('../../chunk-3WSQRFUY.cjs');
6
9
  require('../../chunk-GYXQUTWZ.cjs');
7
10
  require('../../chunk-7OD2NBSV.cjs');
8
- require('../../chunk-YEFLGE3L.cjs');
9
11
  require('../../chunk-NU5UQPBX.cjs');
10
- require('../../chunk-KQ6QE7BT.cjs');
11
- require('../../chunk-A7SBXO2Y.cjs');
12
- require('../../chunk-S2BCU6WG.cjs');
13
- require('../../chunk-XENOUBSI.cjs');
12
+ require('../../chunk-YEFLGE3L.cjs');
13
+ require('../../chunk-MNDQXDV4.cjs');
14
+ require('../../chunk-CAIAZGSW.cjs');
15
+ require('../../chunk-GEDBA3JU.cjs');
14
16
  require('../../chunk-TH44JYXB.cjs');
17
+ require('../../chunk-XENOUBSI.cjs');
15
18
  require('../../chunk-UJX74PFK.cjs');
16
- require('../../chunk-XJZOANXX.cjs');
19
+ require('../../chunk-6HX7ETL3.cjs');
17
20
  require('../../chunk-375QAB65.cjs');
18
- require('../../chunk-3WSQRFUY.cjs');
19
21
  require('../../chunk-VK5EX3OG.cjs');
20
22
  require('../../chunk-CXHDWIGF.cjs');
21
- require('../../chunk-DTYX7CYN.cjs');
23
+ require('../../chunk-GAZLMZBH.cjs');
24
+ require('../../chunk-S3ANEJJ7.cjs');
25
+ require('../../chunk-OZSNSRLV.cjs');
22
26
  require('../../chunk-6X26XC6P.cjs');
23
- require('../../chunk-5AA4IE2T.cjs');
24
27
  require('../../chunk-CFJ44JVK.cjs');
25
28
  require('../../chunk-UIOBJSKZ.cjs');
26
- require('../../chunk-S3ANEJJ7.cjs');
27
29
  require('../../chunk-2WQJ36RD.cjs');
28
30
  require('../../chunk-ZVF7J4EI.cjs');
29
31
  require('../../chunk-2Y2ZCPNV.cjs');
30
- require('../../chunk-ULEEQ723.cjs');
31
32
  require('../../chunk-HCHVDUI6.cjs');
33
+ require('../../chunk-ULEEQ723.cjs');
32
34
  require('../../chunk-USIW3VT5.cjs');
33
- require('../../chunk-XIQUR62A.cjs');
35
+ require('../../chunk-XY3ZNUWR.cjs');
36
+ require('../../chunk-N4TYSZSU.cjs');
34
37
  require('../../chunk-X3ZT3KGX.cjs');
35
38
  require('../../chunk-3GNVQFCK.cjs');
36
39
  require('../../chunk-TMXVL5CV.cjs');
@@ -209,7 +212,7 @@ function CarouselItem({ className, ...props }) {
209
212
  function CarouselPrevious({ className, variant = "outline", size = "icon", ...props }) {
210
213
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
211
214
  return /* @__PURE__ */ jsxRuntime.jsxs(
212
- chunkIDOJLUDL_cjs.Button,
215
+ chunkEZCWHR56_cjs.Button,
213
216
  {
214
217
  "data-slot": "carousel-previous",
215
218
  variant,
@@ -232,7 +235,7 @@ function CarouselPrevious({ className, variant = "outline", size = "icon", ...pr
232
235
  function CarouselNext({ className, variant = "outline", size = "icon", ...props }) {
233
236
  const { orientation, scrollNext, canScrollNext } = useCarousel();
234
237
  return /* @__PURE__ */ jsxRuntime.jsxs(
235
- chunkIDOJLUDL_cjs.Button,
238
+ chunkEZCWHR56_cjs.Button,
236
239
  {
237
240
  "data-slot": "carousel-next",
238
241
  variant,
@@ -4,6 +4,7 @@ import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
4
4
  import { Button } from '../button/index.cjs';
5
5
  import 'class-variance-authority';
6
6
  import 'class-variance-authority/types';
7
+ import '../../color-picker.types-GI7dq2Ig.cjs';
7
8
 
8
9
  type CarouselApi = UseEmblaCarouselType[1];
9
10
  type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
@@ -4,6 +4,7 @@ import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
4
4
  import { Button } from '../button/index.js';
5
5
  import 'class-variance-authority';
6
6
  import 'class-variance-authority/types';
7
+ import '../../color-picker.types-GI7dq2Ig.js';
7
8
 
8
9
  type CarouselApi = UseEmblaCarouselType[1];
9
10
  type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
@@ -1,34 +1,37 @@
1
- import { Button } from '../../chunk-U2HEQZMY.js';
1
+ import { Button } from '../../chunk-VL3TPVSB.js';
2
+ import '../../chunk-U7XZJQ4O.js';
2
3
  import '../../chunk-WMGJCB7O.js';
3
4
  import '../../chunk-K5AURCK5.js';
5
+ import '../../chunk-S3ZUFD6U.js';
6
+ import '../../chunk-P5IUC7HJ.js';
4
7
  import '../../chunk-IWF52DDE.js';
5
8
  import '../../chunk-X5O7GP4S.js';
6
- import '../../chunk-OCOCENE6.js';
7
9
  import '../../chunk-OQCNPNPS.js';
8
- import '../../chunk-WXZE35FK.js';
9
- import '../../chunk-U7XZJQ4O.js';
10
- import '../../chunk-DL54DIMD.js';
11
- import '../../chunk-4TRADSTP.js';
10
+ import '../../chunk-OCOCENE6.js';
11
+ import '../../chunk-VK2FJ65F.js';
12
+ import '../../chunk-Q2MJKFIE.js';
13
+ import '../../chunk-IZU3KULT.js';
12
14
  import '../../chunk-PBEZZMAB.js';
15
+ import '../../chunk-4TRADSTP.js';
13
16
  import '../../chunk-M7NIRB3U.js';
14
- import '../../chunk-E5TYGWGE.js';
17
+ import '../../chunk-XKCLVPUC.js';
15
18
  import '../../chunk-H5NHGMSQ.js';
16
- import '../../chunk-P5IUC7HJ.js';
17
19
  import '../../chunk-BTSHACKG.js';
18
20
  import '../../chunk-HNRVLRMN.js';
19
- import '../../chunk-3MH6P44N.js';
21
+ import '../../chunk-K5QSMTKJ.js';
22
+ import '../../chunk-I3RSTJP6.js';
23
+ import '../../chunk-EOTQVIA5.js';
20
24
  import '../../chunk-VT5GDGZJ.js';
21
- import '../../chunk-UGSNASZM.js';
22
25
  import '../../chunk-KGGCA634.js';
23
26
  import '../../chunk-XJIUGEPN.js';
24
- import '../../chunk-I3RSTJP6.js';
25
27
  import '../../chunk-YUMKV5TH.js';
26
28
  import '../../chunk-U3QKV7I4.js';
27
29
  import '../../chunk-6BSR3O2J.js';
28
- import '../../chunk-3RK5PCIC.js';
29
30
  import '../../chunk-5F2Y65JH.js';
31
+ import '../../chunk-3RK5PCIC.js';
30
32
  import '../../chunk-P4JIMFSL.js';
31
- import '../../chunk-SB5UG7OC.js';
33
+ import '../../chunk-4IGU5SVP.js';
34
+ import '../../chunk-G24PWQKG.js';
32
35
  import '../../chunk-B7RHEMZH.js';
33
36
  import '../../chunk-5MV54MWS.js';
34
37
  import '../../chunk-5MJPZUTO.js';
@@ -0,0 +1,88 @@
1
+ 'use strict';
2
+
3
+ var chunkEZCWHR56_cjs = require('../../chunk-EZCWHR56.cjs');
4
+ require('../../chunk-A7SBXO2Y.cjs');
5
+ require('../../chunk-EUH466AL.cjs');
6
+ require('../../chunk-DGWBE2Y3.cjs');
7
+ require('../../chunk-B4M7Q5KX.cjs');
8
+ require('../../chunk-3WSQRFUY.cjs');
9
+ require('../../chunk-GYXQUTWZ.cjs');
10
+ require('../../chunk-7OD2NBSV.cjs');
11
+ require('../../chunk-NU5UQPBX.cjs');
12
+ require('../../chunk-YEFLGE3L.cjs');
13
+ require('../../chunk-MNDQXDV4.cjs');
14
+ require('../../chunk-CAIAZGSW.cjs');
15
+ require('../../chunk-GEDBA3JU.cjs');
16
+ require('../../chunk-TH44JYXB.cjs');
17
+ require('../../chunk-XENOUBSI.cjs');
18
+ require('../../chunk-UJX74PFK.cjs');
19
+ require('../../chunk-6HX7ETL3.cjs');
20
+ require('../../chunk-375QAB65.cjs');
21
+ require('../../chunk-VK5EX3OG.cjs');
22
+ require('../../chunk-CXHDWIGF.cjs');
23
+ require('../../chunk-GAZLMZBH.cjs');
24
+ require('../../chunk-S3ANEJJ7.cjs');
25
+ require('../../chunk-OZSNSRLV.cjs');
26
+ require('../../chunk-6X26XC6P.cjs');
27
+ require('../../chunk-CFJ44JVK.cjs');
28
+ require('../../chunk-UIOBJSKZ.cjs');
29
+ require('../../chunk-2WQJ36RD.cjs');
30
+ require('../../chunk-ZVF7J4EI.cjs');
31
+ require('../../chunk-2Y2ZCPNV.cjs');
32
+ require('../../chunk-HCHVDUI6.cjs');
33
+ require('../../chunk-ULEEQ723.cjs');
34
+ require('../../chunk-USIW3VT5.cjs');
35
+ require('../../chunk-XY3ZNUWR.cjs');
36
+ require('../../chunk-N4TYSZSU.cjs');
37
+ require('../../chunk-X3ZT3KGX.cjs');
38
+ require('../../chunk-3GNVQFCK.cjs');
39
+ require('../../chunk-TMXVL5CV.cjs');
40
+ require('../../chunk-4LNGZHF2.cjs');
41
+ require('../../chunk-H2BWO3SI.cjs');
42
+
43
+
44
+
45
+ Object.defineProperty(exports, "ColorPicker", {
46
+ enumerable: true,
47
+ get: function () { return chunkEZCWHR56_cjs.ColorPicker; }
48
+ });
49
+ Object.defineProperty(exports, "ColorPickerAlphaSlider", {
50
+ enumerable: true,
51
+ get: function () { return chunkEZCWHR56_cjs.ColorPickerAlphaSlider; }
52
+ });
53
+ Object.defineProperty(exports, "ColorPickerArea", {
54
+ enumerable: true,
55
+ get: function () { return chunkEZCWHR56_cjs.ColorPickerArea; }
56
+ });
57
+ Object.defineProperty(exports, "ColorPickerContent", {
58
+ enumerable: true,
59
+ get: function () { return chunkEZCWHR56_cjs.ColorPickerContent; }
60
+ });
61
+ Object.defineProperty(exports, "ColorPickerEyeDropper", {
62
+ enumerable: true,
63
+ get: function () { return chunkEZCWHR56_cjs.ColorPickerEyeDropper; }
64
+ });
65
+ Object.defineProperty(exports, "ColorPickerFormatSelect", {
66
+ enumerable: true,
67
+ get: function () { return chunkEZCWHR56_cjs.ColorPickerFormatSelect; }
68
+ });
69
+ Object.defineProperty(exports, "ColorPickerHueSlider", {
70
+ enumerable: true,
71
+ get: function () { return chunkEZCWHR56_cjs.ColorPickerHueSlider; }
72
+ });
73
+ Object.defineProperty(exports, "ColorPickerInput", {
74
+ enumerable: true,
75
+ get: function () { return chunkEZCWHR56_cjs.ColorPickerInput; }
76
+ });
77
+ Object.defineProperty(exports, "ColorPickerSwatch", {
78
+ enumerable: true,
79
+ get: function () { return chunkEZCWHR56_cjs.ColorPickerSwatch; }
80
+ });
81
+ Object.defineProperty(exports, "ColorPickerTrigger", {
82
+ enumerable: true,
83
+ get: function () { return chunkEZCWHR56_cjs.ColorPickerTrigger; }
84
+ });
85
+ Object.defineProperty(exports, "useColorPickerStore", {
86
+ enumerable: true,
87
+ get: function () { return chunkEZCWHR56_cjs.useColorPickerStore; }
88
+ });
@@ -0,0 +1,71 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { P as Popover, d as PopoverTrigger, a as PopoverContent } from '../../popover-trigger-Cf4PPj0z.cjs';
4
+ import { D as Direction, C as ColorFormat, b as ColorValue, H as HSVColorValue } from '../../color-picker.types-GI7dq2Ig.cjs';
5
+ export { a as ColorPickerContextValue, E as EyeDropper } from '../../color-picker.types-GI7dq2Ig.cjs';
6
+ import { Slider } from 'radix-ui';
7
+ import { Button } from '../button/index.cjs';
8
+ import { S as Select } from '../../select-Bf6XQtt-.cjs';
9
+ import { Input } from '../input/index.cjs';
10
+ import 'class-variance-authority';
11
+ import 'class-variance-authority/types';
12
+
13
+ type ColorPickerProps = Omit<React.ComponentProps<"div">, "onValueChange"> & Pick<React.ComponentProps<typeof Popover>, "defaultOpen" | "open" | "onOpenChange" | "modal"> & {
14
+ value?: string;
15
+ defaultValue?: string;
16
+ onValueChange?: (value: string) => void;
17
+ dir?: Direction;
18
+ format?: ColorFormat;
19
+ defaultFormat?: ColorFormat;
20
+ onFormatChange?: (format: ColorFormat) => void;
21
+ name?: string;
22
+ asChild?: boolean;
23
+ disabled?: boolean;
24
+ inline?: boolean;
25
+ readOnly?: boolean;
26
+ required?: boolean;
27
+ };
28
+ declare function ColorPicker(props: ColorPickerProps): react_jsx_runtime.JSX.Element;
29
+
30
+ type ColorPickerTriggerProps = React.ComponentProps<typeof PopoverTrigger>;
31
+ declare function ColorPickerTrigger(props: ColorPickerTriggerProps): react_jsx_runtime.JSX.Element;
32
+
33
+ type ColorPickerContentProps = React.ComponentProps<typeof PopoverContent>;
34
+ declare function ColorPickerContent(props: ColorPickerContentProps): react_jsx_runtime.JSX.Element;
35
+
36
+ type ColorPickerAreaProps = React.ComponentProps<"div"> & {
37
+ asChild?: boolean;
38
+ };
39
+ declare function ColorPickerArea(props: ColorPickerAreaProps): react_jsx_runtime.JSX.Element;
40
+
41
+ type ColorPickerHueSliderProps = React.ComponentProps<typeof Slider.Root>;
42
+ declare function ColorPickerHueSlider(props: ColorPickerHueSliderProps): react_jsx_runtime.JSX.Element;
43
+
44
+ type ColorPickerAlphaSliderProps = React.ComponentProps<typeof Slider.Root>;
45
+ declare function ColorPickerAlphaSlider(props: ColorPickerAlphaSliderProps): react_jsx_runtime.JSX.Element;
46
+
47
+ type ColorPickerSwatchProps = React.ComponentProps<"div"> & {
48
+ asChild?: boolean;
49
+ };
50
+ declare function ColorPickerSwatch(props: ColorPickerSwatchProps): react_jsx_runtime.JSX.Element;
51
+
52
+ type ColorPickerEyeDropperProps = React.ComponentProps<typeof Button>;
53
+ declare function ColorPickerEyeDropper(props: ColorPickerEyeDropperProps): react_jsx_runtime.JSX.Element;
54
+
55
+ type ColorPickerFormatSelectProps = Omit<React.ComponentProps<typeof Select>, "value" | "onValueChange">;
56
+ declare function ColorPickerFormatSelect(props: ColorPickerFormatSelectProps): react_jsx_runtime.JSX.Element;
57
+
58
+ type ColorPickerInputProps = Omit<React.ComponentProps<typeof Input>, "value" | "onChange" | "color"> & {
59
+ withoutAlpha?: boolean;
60
+ };
61
+ declare function ColorPickerInput(props: ColorPickerInputProps): react_jsx_runtime.JSX.Element;
62
+
63
+ type ColorPickerStoreState = {
64
+ color: ColorValue;
65
+ hsv: HSVColorValue;
66
+ open: boolean;
67
+ format: ColorFormat;
68
+ };
69
+ declare function useColorPickerStore<U>(selector: (state: ColorPickerStoreState) => U): U;
70
+
71
+ export { ColorFormat, ColorPicker, ColorPickerAlphaSlider, type ColorPickerAlphaSliderProps, ColorPickerArea, type ColorPickerAreaProps, ColorPickerContent, type ColorPickerContentProps, ColorPickerEyeDropper, type ColorPickerEyeDropperProps, ColorPickerFormatSelect, type ColorPickerFormatSelectProps, ColorPickerHueSlider, type ColorPickerHueSliderProps, ColorPickerInput, type ColorPickerInputProps, type ColorPickerProps, ColorPickerSwatch, type ColorPickerSwatchProps, ColorPickerTrigger, type ColorPickerTriggerProps, ColorValue, Direction, HSVColorValue, useColorPickerStore };