@szum-tech/design-system 3.4.0 → 3.5.1

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 (39) hide show
  1. package/dist/{chunk-Y6EVJSAH.cjs → chunk-3ZRMIVJM.cjs} +6 -0
  2. package/dist/chunk-5Q3H4MOX.js +123 -0
  3. package/dist/chunk-6WGZMVJT.cjs +132 -0
  4. package/dist/{chunk-777F7WSJ.js → chunk-FN24XAO4.js} +1 -1
  5. package/dist/{chunk-U4AWAABZ.js → chunk-O7QFYWMK.js} +6 -0
  6. package/dist/chunk-PBEZZMAB.js +25 -0
  7. package/dist/chunk-TH44JYXB.cjs +27 -0
  8. package/dist/{chunk-P2MKLQQK.cjs → chunk-UPL5LJOP.cjs} +3 -3
  9. package/dist/components/badge/index.cjs +2 -2
  10. package/dist/components/badge/index.js +1 -1
  11. package/dist/components/button/index.cjs +10 -9
  12. package/dist/components/button/index.js +9 -8
  13. package/dist/components/dialog/index.cjs +9 -9
  14. package/dist/components/dialog/index.d.cts +13 -12
  15. package/dist/components/dialog/index.d.ts +13 -12
  16. package/dist/components/dialog/index.js +1 -1
  17. package/dist/components/field/index.cjs +11 -11
  18. package/dist/components/field/index.js +1 -1
  19. package/dist/components/index.cjs +80 -75
  20. package/dist/components/index.d.cts +1 -0
  21. package/dist/components/index.d.ts +1 -0
  22. package/dist/components/index.js +9 -8
  23. package/dist/components/progress/index.cjs +12 -0
  24. package/dist/components/progress/index.d.cts +8 -0
  25. package/dist/components/progress/index.d.ts +8 -0
  26. package/dist/components/progress/index.js +3 -0
  27. package/dist/components/select/index.cjs +7 -7
  28. package/dist/components/select/index.js +1 -1
  29. package/dist/components/stepper/index.cjs +28 -27
  30. package/dist/components/stepper/index.js +9 -8
  31. package/dist/components/toaster/index.cjs +11 -10
  32. package/dist/components/toaster/index.js +9 -8
  33. package/package.json +28 -36
  34. package/dist/chunk-AGVEKVWD.js +0 -78
  35. package/dist/chunk-PH4LO5TE.cjs +0 -87
  36. /package/dist/{chunk-PAHTQUQC.js → chunk-6VC76QIP.js} +0 -0
  37. /package/dist/{chunk-6U4URFAI.js → chunk-KYFNEU4K.js} +0 -0
  38. /package/dist/{chunk-NT3AA6QQ.cjs → chunk-RDYKJP7U.cjs} +0 -0
  39. /package/dist/{chunk-H3CLI4CJ.cjs → chunk-YTVV2IUF.cjs} +0 -0
@@ -3749,6 +3749,12 @@ function RemoveScrollSideCar(props) {
3749
3749
  if ("touches" in event && moveDirection === "h" && target.type === "range") {
3750
3750
  return false;
3751
3751
  }
3752
+ var selection = window.getSelection();
3753
+ var anchorNode = selection && selection.anchorNode;
3754
+ var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;
3755
+ if (isTouchingSelection) {
3756
+ return false;
3757
+ }
3752
3758
  var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
3753
3759
  if (!canBeScrolledInMainDirection) {
3754
3760
  return true;
@@ -0,0 +1,123 @@
1
+ import { cn } from './chunk-ZD2QRAOX.js';
2
+ import { Dialog as Dialog$1 } from 'radix-ui';
3
+ import { jsx, jsxs } from 'react/jsx-runtime';
4
+ import { XIcon } from 'lucide-react';
5
+ import { twMerge } from 'tailwind-merge';
6
+ import { cva } from 'class-variance-authority';
7
+
8
+ function Dialog(props) {
9
+ return /* @__PURE__ */ jsx(Dialog$1.Root, { "data-slot": "dialog", ...props });
10
+ }
11
+ function DialogClose(props) {
12
+ return /* @__PURE__ */ jsx(Dialog$1.Close, { "data-slot": "dialog-close", ...props });
13
+ }
14
+ var dialogContentVariants = cva(
15
+ [
16
+ "bg-background fixed top-[50%] left-[50%] z-50 grid w-full gap-4 rounded border border-border p-6 shadow-lg duration-200 translate-x-[-50%] translate-y-[-50%] max-w-[calc(100%-1rem)]",
17
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 "
18
+ ],
19
+ {
20
+ variants: {
21
+ width: {
22
+ xs: "w-xs",
23
+ sm: "w-sm",
24
+ md: "w-md",
25
+ lg: "w-lg",
26
+ xl: "w-xl",
27
+ "2xl": "w-2xl",
28
+ "3xl": "w-3xl",
29
+ "4xl": "w-4xl",
30
+ "5xl": "w-5xl",
31
+ "6xl": "w-6xl",
32
+ full: "w-full"
33
+ }
34
+ },
35
+ defaultVariants: {
36
+ width: "md"
37
+ }
38
+ }
39
+ );
40
+ function DialogContent({
41
+ className,
42
+ children,
43
+ width = "md",
44
+ showCloseButton = false,
45
+ ...props
46
+ }) {
47
+ return /* @__PURE__ */ jsxs(Dialog$1.Portal, { "data-slot": "dialog-portal", children: [
48
+ /* @__PURE__ */ jsx(
49
+ Dialog$1.Overlay,
50
+ {
51
+ "data-slot": "dialog-overlay",
52
+ className: "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-background/80 fixed inset-0 z-50 backdrop-blur-xs"
53
+ }
54
+ ),
55
+ /* @__PURE__ */ jsxs(
56
+ Dialog$1.Content,
57
+ {
58
+ "data-slot": "dialog-content",
59
+ className: twMerge(dialogContentVariants({ width }), className),
60
+ ...props,
61
+ children: [
62
+ children,
63
+ showCloseButton ? /* @__PURE__ */ jsxs(
64
+ Dialog$1.Close,
65
+ {
66
+ "data-slot": "dialog-close",
67
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
68
+ children: [
69
+ /* @__PURE__ */ jsx(XIcon, {}),
70
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
71
+ ]
72
+ }
73
+ ) : null
74
+ ]
75
+ }
76
+ )
77
+ ] });
78
+ }
79
+ function DialogTrigger({ ...props }) {
80
+ return /* @__PURE__ */ jsx(Dialog$1.Trigger, { "data-slot": "dialog-trigger", ...props });
81
+ }
82
+ function DialogHeader({ className, ...props }) {
83
+ return /* @__PURE__ */ jsx(
84
+ "div",
85
+ {
86
+ "data-slot": "dialog-header",
87
+ className: cn("flex flex-col gap-2 text-center sm:text-left", className),
88
+ ...props
89
+ }
90
+ );
91
+ }
92
+ function DialogFooter({ className, ...props }) {
93
+ return /* @__PURE__ */ jsx(
94
+ "div",
95
+ {
96
+ "data-slot": "dialog-footer",
97
+ className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
98
+ ...props
99
+ }
100
+ );
101
+ }
102
+ function DialogTitle({ className, ...props }) {
103
+ return /* @__PURE__ */ jsx(
104
+ Dialog$1.Title,
105
+ {
106
+ "data-slot": "dialog-title",
107
+ className: cn("text-lg leading-none font-semibold", className),
108
+ ...props
109
+ }
110
+ );
111
+ }
112
+ function DialogDescription({ className, ...props }) {
113
+ return /* @__PURE__ */ jsx(
114
+ Dialog$1.Description,
115
+ {
116
+ "data-slot": "dialog-description",
117
+ className: cn("text-muted-foreground text-sm", className),
118
+ ...props
119
+ }
120
+ );
121
+ }
122
+
123
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger };
@@ -0,0 +1,132 @@
1
+ 'use strict';
2
+
3
+ var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
+ var radixUi = require('radix-ui');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var lucideReact = require('lucide-react');
7
+ var tailwindMerge = require('tailwind-merge');
8
+ var classVarianceAuthority = require('class-variance-authority');
9
+
10
+ function Dialog(props) {
11
+ return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Root, { "data-slot": "dialog", ...props });
12
+ }
13
+ function DialogClose(props) {
14
+ return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Close, { "data-slot": "dialog-close", ...props });
15
+ }
16
+ var dialogContentVariants = classVarianceAuthority.cva(
17
+ [
18
+ "bg-background fixed top-[50%] left-[50%] z-50 grid w-full gap-4 rounded border border-border p-6 shadow-lg duration-200 translate-x-[-50%] translate-y-[-50%] max-w-[calc(100%-1rem)]",
19
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 "
20
+ ],
21
+ {
22
+ variants: {
23
+ width: {
24
+ xs: "w-xs",
25
+ sm: "w-sm",
26
+ md: "w-md",
27
+ lg: "w-lg",
28
+ xl: "w-xl",
29
+ "2xl": "w-2xl",
30
+ "3xl": "w-3xl",
31
+ "4xl": "w-4xl",
32
+ "5xl": "w-5xl",
33
+ "6xl": "w-6xl",
34
+ full: "w-full"
35
+ }
36
+ },
37
+ defaultVariants: {
38
+ width: "md"
39
+ }
40
+ }
41
+ );
42
+ function DialogContent({
43
+ className,
44
+ children,
45
+ width = "md",
46
+ showCloseButton = false,
47
+ ...props
48
+ }) {
49
+ return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Portal, { "data-slot": "dialog-portal", children: [
50
+ /* @__PURE__ */ jsxRuntime.jsx(
51
+ radixUi.Dialog.Overlay,
52
+ {
53
+ "data-slot": "dialog-overlay",
54
+ className: "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-background/80 fixed inset-0 z-50 backdrop-blur-xs"
55
+ }
56
+ ),
57
+ /* @__PURE__ */ jsxRuntime.jsxs(
58
+ radixUi.Dialog.Content,
59
+ {
60
+ "data-slot": "dialog-content",
61
+ className: tailwindMerge.twMerge(dialogContentVariants({ width }), className),
62
+ ...props,
63
+ children: [
64
+ children,
65
+ showCloseButton ? /* @__PURE__ */ jsxRuntime.jsxs(
66
+ radixUi.Dialog.Close,
67
+ {
68
+ "data-slot": "dialog-close",
69
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
70
+ children: [
71
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, {}),
72
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
73
+ ]
74
+ }
75
+ ) : null
76
+ ]
77
+ }
78
+ )
79
+ ] });
80
+ }
81
+ function DialogTrigger({ ...props }) {
82
+ return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Trigger, { "data-slot": "dialog-trigger", ...props });
83
+ }
84
+ function DialogHeader({ className, ...props }) {
85
+ return /* @__PURE__ */ jsxRuntime.jsx(
86
+ "div",
87
+ {
88
+ "data-slot": "dialog-header",
89
+ className: chunkH2BWO3SI_cjs.cn("flex flex-col gap-2 text-center sm:text-left", className),
90
+ ...props
91
+ }
92
+ );
93
+ }
94
+ function DialogFooter({ className, ...props }) {
95
+ return /* @__PURE__ */ jsxRuntime.jsx(
96
+ "div",
97
+ {
98
+ "data-slot": "dialog-footer",
99
+ className: chunkH2BWO3SI_cjs.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
100
+ ...props
101
+ }
102
+ );
103
+ }
104
+ function DialogTitle({ className, ...props }) {
105
+ return /* @__PURE__ */ jsxRuntime.jsx(
106
+ radixUi.Dialog.Title,
107
+ {
108
+ "data-slot": "dialog-title",
109
+ className: chunkH2BWO3SI_cjs.cn("text-lg leading-none font-semibold", className),
110
+ ...props
111
+ }
112
+ );
113
+ }
114
+ function DialogDescription({ className, ...props }) {
115
+ return /* @__PURE__ */ jsxRuntime.jsx(
116
+ radixUi.Dialog.Description,
117
+ {
118
+ "data-slot": "dialog-description",
119
+ className: chunkH2BWO3SI_cjs.cn("text-muted-foreground text-sm", className),
120
+ ...props
121
+ }
122
+ );
123
+ }
124
+
125
+ exports.Dialog = Dialog;
126
+ exports.DialogClose = DialogClose;
127
+ exports.DialogContent = DialogContent;
128
+ exports.DialogDescription = DialogDescription;
129
+ exports.DialogFooter = DialogFooter;
130
+ exports.DialogHeader = DialogHeader;
131
+ exports.DialogTitle = DialogTitle;
132
+ exports.DialogTrigger = DialogTrigger;
@@ -1,4 +1,4 @@
1
- import { useComposedRefs } from './chunk-U4AWAABZ.js';
1
+ import { useComposedRefs } from './chunk-O7QFYWMK.js';
2
2
  import { Spinner } from './chunk-P5IUC7HJ.js';
3
3
  import { useDirection, Direction } from './chunk-H5O5L6XT.js';
4
4
  import { useLazyRef, useIsomorphicLayoutEffect } from './chunk-DFD2WUOU.js';
@@ -3728,6 +3728,12 @@ function RemoveScrollSideCar(props) {
3728
3728
  if ("touches" in event && moveDirection === "h" && target.type === "range") {
3729
3729
  return false;
3730
3730
  }
3731
+ var selection = window.getSelection();
3732
+ var anchorNode = selection && selection.anchorNode;
3733
+ var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;
3734
+ if (isTouchingSelection) {
3735
+ return false;
3736
+ }
3731
3737
  var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
3732
3738
  if (!canBeScrolledInMainDirection) {
3733
3739
  return true;
@@ -0,0 +1,25 @@
1
+ import { cn } from './chunk-ZD2QRAOX.js';
2
+ import { Progress as Progress$1 } from 'radix-ui';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ function Progress({ className, value, ...props }) {
6
+ return /* @__PURE__ */ jsx(
7
+ Progress$1.Root,
8
+ {
9
+ "data-slot": "progress",
10
+ className: cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded", className),
11
+ value,
12
+ ...props,
13
+ children: /* @__PURE__ */ jsx(
14
+ Progress$1.Indicator,
15
+ {
16
+ "data-slot": "progress-indicator",
17
+ className: "bg-primary size-full flex-1 transition-all duration-500 ease-in-out",
18
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
19
+ }
20
+ )
21
+ }
22
+ );
23
+ }
24
+
25
+ export { Progress };
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
+ var radixUi = require('radix-ui');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ function Progress({ className, value, ...props }) {
8
+ return /* @__PURE__ */ jsxRuntime.jsx(
9
+ radixUi.Progress.Root,
10
+ {
11
+ "data-slot": "progress",
12
+ className: chunkH2BWO3SI_cjs.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded", className),
13
+ value,
14
+ ...props,
15
+ children: /* @__PURE__ */ jsxRuntime.jsx(
16
+ radixUi.Progress.Indicator,
17
+ {
18
+ "data-slot": "progress-indicator",
19
+ className: "bg-primary size-full flex-1 transition-all duration-500 ease-in-out",
20
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
21
+ }
22
+ )
23
+ }
24
+ );
25
+ }
26
+
27
+ exports.Progress = Progress;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkY6EVJSAH_cjs = require('./chunk-Y6EVJSAH.cjs');
3
+ var chunk3ZRMIVJM_cjs = require('./chunk-3ZRMIVJM.cjs');
4
4
  var chunk3WSQRFUY_cjs = require('./chunk-3WSQRFUY.cjs');
5
5
  var chunkEW6TE3N5_cjs = require('./chunk-EW6TE3N5.cjs');
6
6
  var chunk7EYMOUWG_cjs = require('./chunk-7EYMOUWG.cjs');
@@ -315,7 +315,7 @@ function StepperNav({ className, children, asChild, ref, ...listProps }) {
315
315
  const isClickFocusRef = React5__namespace.useRef(false);
316
316
  const itemsRef = React5__namespace.useRef(/* @__PURE__ */ new Map());
317
317
  const listRef = React5__namespace.useRef(null);
318
- const composedRef = chunkY6EVJSAH_cjs.useComposedRefs(ref, listRef);
318
+ const composedRef = chunk3ZRMIVJM_cjs.useComposedRefs(ref, listRef);
319
319
  const onItemFocus = React5__namespace.useCallback((tabStopId2) => {
320
320
  setTabStopId(tabStopId2);
321
321
  }, []);
@@ -533,7 +533,7 @@ function StepperTrigger({ asChild, disabled, className, ref, ...triggerProps })
533
533
  const isTabStop = focusContext.tabStopId === triggerId;
534
534
  const dataState = getDataState(value, itemValue, stepState, steps);
535
535
  const triggerRef = React5__namespace.useRef(null);
536
- const composedRef = chunkY6EVJSAH_cjs.useComposedRefs(ref, triggerRef);
536
+ const composedRef = chunk3ZRMIVJM_cjs.useComposedRefs(ref, triggerRef);
537
537
  const isArrowKeyPressedRef = React5__namespace.useRef(false);
538
538
  const isMouseClickRef = React5__namespace.useRef(false);
539
539
  React5__namespace.useEffect(() => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNT3AA6QQ_cjs = require('../../chunk-NT3AA6QQ.cjs');
3
+ var chunkRDYKJP7U_cjs = require('../../chunk-RDYKJP7U.cjs');
4
4
  require('../../chunk-H2BWO3SI.cjs');
5
5
  require('../../chunk-3376ZTRC.cjs');
6
6
 
@@ -8,5 +8,5 @@ require('../../chunk-3376ZTRC.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "Badge", {
10
10
  enumerable: true,
11
- get: function () { return chunkNT3AA6QQ_cjs.Badge; }
11
+ get: function () { return chunkRDYKJP7U_cjs.Badge; }
12
12
  });
@@ -1,3 +1,3 @@
1
- export { Badge } from '../../chunk-PAHTQUQC.js';
1
+ export { Badge } from '../../chunk-6VC76QIP.js';
2
2
  import '../../chunk-ZD2QRAOX.js';
3
3
  import '../../chunk-BYXBJQAS.js';
@@ -1,26 +1,27 @@
1
1
  'use strict';
2
2
 
3
- var chunkP2MKLQQK_cjs = require('../../chunk-P2MKLQQK.cjs');
3
+ var chunkUPL5LJOP_cjs = require('../../chunk-UPL5LJOP.cjs');
4
+ require('../../chunk-NU5UQPBX.cjs');
4
5
  require('../../chunk-GR37JJQK.cjs');
6
+ require('../../chunk-TH44JYXB.cjs');
5
7
  require('../../chunk-XENOUBSI.cjs');
6
- require('../../chunk-Y6EVJSAH.cjs');
8
+ require('../../chunk-3ZRMIVJM.cjs');
7
9
  require('../../chunk-GHV2TURY.cjs');
8
10
  require('../../chunk-3WSQRFUY.cjs');
9
- require('../../chunk-NU5UQPBX.cjs');
10
11
  require('../../chunk-2Y2ZCPNV.cjs');
11
12
  require('../../chunk-HCHVDUI6.cjs');
12
- require('../../chunk-PH4LO5TE.cjs');
13
- require('../../chunk-H3CLI4CJ.cjs');
14
- require('../../chunk-S3ANEJJ7.cjs');
13
+ require('../../chunk-6WGZMVJT.cjs');
15
14
  require('../../chunk-YWG7TML6.cjs');
15
+ require('../../chunk-YTVV2IUF.cjs');
16
+ require('../../chunk-S3ANEJJ7.cjs');
16
17
  require('../../chunk-5AA4IE2T.cjs');
17
18
  require('../../chunk-3DUJHGXE.cjs');
18
19
  require('../../chunk-UIOBJSKZ.cjs');
19
20
  require('../../chunk-EW6TE3N5.cjs');
20
21
  require('../../chunk-7EYMOUWG.cjs');
21
- require('../../chunk-I7AV5IQO.cjs');
22
22
  require('../../chunk-TMXVL5CV.cjs');
23
- require('../../chunk-NT3AA6QQ.cjs');
23
+ require('../../chunk-I7AV5IQO.cjs');
24
+ require('../../chunk-RDYKJP7U.cjs');
24
25
  require('../../chunk-H2BWO3SI.cjs');
25
26
  require('../../chunk-3376ZTRC.cjs');
26
27
 
@@ -28,5 +29,5 @@ require('../../chunk-3376ZTRC.cjs');
28
29
 
29
30
  Object.defineProperty(exports, "Button", {
30
31
  enumerable: true,
31
- get: function () { return chunkP2MKLQQK_cjs.Button; }
32
+ get: function () { return chunkUPL5LJOP_cjs.Button; }
32
33
  });
@@ -1,23 +1,24 @@
1
- export { Button } from '../../chunk-777F7WSJ.js';
1
+ export { Button } from '../../chunk-FN24XAO4.js';
2
+ import '../../chunk-OQCNPNPS.js';
2
3
  import '../../chunk-HJJPEVIH.js';
4
+ import '../../chunk-PBEZZMAB.js';
3
5
  import '../../chunk-4TRADSTP.js';
4
- import '../../chunk-U4AWAABZ.js';
6
+ import '../../chunk-O7QFYWMK.js';
5
7
  import '../../chunk-DTSFPOLX.js';
6
8
  import '../../chunk-P5IUC7HJ.js';
7
- import '../../chunk-OQCNPNPS.js';
8
9
  import '../../chunk-6BSR3O2J.js';
9
10
  import '../../chunk-5F2Y65JH.js';
10
- import '../../chunk-AGVEKVWD.js';
11
- import '../../chunk-6U4URFAI.js';
12
- import '../../chunk-I3RSTJP6.js';
11
+ import '../../chunk-5Q3H4MOX.js';
13
12
  import '../../chunk-UW6GOD7J.js';
13
+ import '../../chunk-KYFNEU4K.js';
14
+ import '../../chunk-I3RSTJP6.js';
14
15
  import '../../chunk-UGSNASZM.js';
15
16
  import '../../chunk-XV3AQ6NS.js';
16
17
  import '../../chunk-XJIUGEPN.js';
17
18
  import '../../chunk-H5O5L6XT.js';
18
19
  import '../../chunk-DFD2WUOU.js';
19
- import '../../chunk-NGVFYKAT.js';
20
20
  import '../../chunk-5MJPZUTO.js';
21
- import '../../chunk-PAHTQUQC.js';
21
+ import '../../chunk-NGVFYKAT.js';
22
+ import '../../chunk-6VC76QIP.js';
22
23
  import '../../chunk-ZD2QRAOX.js';
23
24
  import '../../chunk-BYXBJQAS.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkPH4LO5TE_cjs = require('../../chunk-PH4LO5TE.cjs');
3
+ var chunk6WGZMVJT_cjs = require('../../chunk-6WGZMVJT.cjs');
4
4
  require('../../chunk-H2BWO3SI.cjs');
5
5
  require('../../chunk-3376ZTRC.cjs');
6
6
 
@@ -8,33 +8,33 @@ require('../../chunk-3376ZTRC.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "Dialog", {
10
10
  enumerable: true,
11
- get: function () { return chunkPH4LO5TE_cjs.Dialog; }
11
+ get: function () { return chunk6WGZMVJT_cjs.Dialog; }
12
12
  });
13
13
  Object.defineProperty(exports, "DialogClose", {
14
14
  enumerable: true,
15
- get: function () { return chunkPH4LO5TE_cjs.DialogClose; }
15
+ get: function () { return chunk6WGZMVJT_cjs.DialogClose; }
16
16
  });
17
17
  Object.defineProperty(exports, "DialogContent", {
18
18
  enumerable: true,
19
- get: function () { return chunkPH4LO5TE_cjs.DialogContent; }
19
+ get: function () { return chunk6WGZMVJT_cjs.DialogContent; }
20
20
  });
21
21
  Object.defineProperty(exports, "DialogDescription", {
22
22
  enumerable: true,
23
- get: function () { return chunkPH4LO5TE_cjs.DialogDescription; }
23
+ get: function () { return chunk6WGZMVJT_cjs.DialogDescription; }
24
24
  });
25
25
  Object.defineProperty(exports, "DialogFooter", {
26
26
  enumerable: true,
27
- get: function () { return chunkPH4LO5TE_cjs.DialogFooter; }
27
+ get: function () { return chunk6WGZMVJT_cjs.DialogFooter; }
28
28
  });
29
29
  Object.defineProperty(exports, "DialogHeader", {
30
30
  enumerable: true,
31
- get: function () { return chunkPH4LO5TE_cjs.DialogHeader; }
31
+ get: function () { return chunk6WGZMVJT_cjs.DialogHeader; }
32
32
  });
33
33
  Object.defineProperty(exports, "DialogTitle", {
34
34
  enumerable: true,
35
- get: function () { return chunkPH4LO5TE_cjs.DialogTitle; }
35
+ get: function () { return chunk6WGZMVJT_cjs.DialogTitle; }
36
36
  });
37
37
  Object.defineProperty(exports, "DialogTrigger", {
38
38
  enumerable: true,
39
- get: function () { return chunkPH4LO5TE_cjs.DialogTrigger; }
39
+ get: function () { return chunk6WGZMVJT_cjs.DialogTrigger; }
40
40
  });
@@ -1,34 +1,35 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { Dialog as Dialog$1 } from 'radix-ui';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as class_variance_authority_types from 'class-variance-authority/types';
6
6
 
7
- type DialogProps = Dialog$1.DialogProps;
8
- declare const Dialog: React.FC<Dialog$1.DialogProps>;
7
+ type DialogProps = React.ComponentProps<typeof Dialog$1.Root>;
8
+ declare function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
9
9
 
10
- type DialogCloseProps = Dialog$1.DialogCloseProps;
11
- declare const DialogClose: React.ForwardRefExoticComponent<Dialog$1.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ type DialogCloseProps = React.ComponentProps<typeof Dialog$1.Close>;
11
+ declare function DialogClose(props: DialogCloseProps): react_jsx_runtime.JSX.Element;
12
12
 
13
13
  type DialogContentProps = React.ComponentProps<typeof Dialog$1.Content> & {
14
14
  width?: DialogContentWidth;
15
+ showCloseButton?: boolean;
15
16
  };
16
- declare function DialogContent({ className, children, width, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
17
+ declare function DialogContent({ className, children, width, showCloseButton, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
17
18
 
18
- declare const dialogContentStyles: (props?: ({
19
+ declare const dialogContentVariants: (props?: ({
19
20
  width?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full" | null | undefined;
20
21
  } & class_variance_authority_types.ClassProp) | undefined) => string;
21
22
 
22
- type DialogContentCvaProps = VariantProps<typeof dialogContentStyles>;
23
+ type DialogContentCvaProps = VariantProps<typeof dialogContentVariants>;
23
24
  type DialogContentWidth = NonNullable<DialogContentCvaProps["width"]>;
24
25
 
25
- type DialogTriggerProps = Dialog$1.DialogTriggerProps;
26
- declare const DialogTrigger: React.ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
26
+ type DialogTriggerProps = React.ComponentProps<typeof Dialog$1.Trigger>;
27
+ declare function DialogTrigger({ ...props }: DialogTriggerProps): react_jsx_runtime.JSX.Element;
27
28
 
28
- type DialogHeaderProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
29
+ type DialogHeaderProps = React.ComponentProps<"div">;
29
30
  declare function DialogHeader({ className, ...props }: DialogHeaderProps): react_jsx_runtime.JSX.Element;
30
31
 
31
- type DialogFooterProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
32
+ type DialogFooterProps = React.ComponentProps<"div">;
32
33
  declare function DialogFooter({ className, ...props }: DialogFooterProps): react_jsx_runtime.JSX.Element;
33
34
 
34
35
  type DialogTitleProps = React.ComponentProps<typeof Dialog$1.Title>;
@@ -1,34 +1,35 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { Dialog as Dialog$1 } from 'radix-ui';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as class_variance_authority_types from 'class-variance-authority/types';
6
6
 
7
- type DialogProps = Dialog$1.DialogProps;
8
- declare const Dialog: React.FC<Dialog$1.DialogProps>;
7
+ type DialogProps = React.ComponentProps<typeof Dialog$1.Root>;
8
+ declare function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
9
9
 
10
- type DialogCloseProps = Dialog$1.DialogCloseProps;
11
- declare const DialogClose: React.ForwardRefExoticComponent<Dialog$1.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ type DialogCloseProps = React.ComponentProps<typeof Dialog$1.Close>;
11
+ declare function DialogClose(props: DialogCloseProps): react_jsx_runtime.JSX.Element;
12
12
 
13
13
  type DialogContentProps = React.ComponentProps<typeof Dialog$1.Content> & {
14
14
  width?: DialogContentWidth;
15
+ showCloseButton?: boolean;
15
16
  };
16
- declare function DialogContent({ className, children, width, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
17
+ declare function DialogContent({ className, children, width, showCloseButton, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
17
18
 
18
- declare const dialogContentStyles: (props?: ({
19
+ declare const dialogContentVariants: (props?: ({
19
20
  width?: "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full" | null | undefined;
20
21
  } & class_variance_authority_types.ClassProp) | undefined) => string;
21
22
 
22
- type DialogContentCvaProps = VariantProps<typeof dialogContentStyles>;
23
+ type DialogContentCvaProps = VariantProps<typeof dialogContentVariants>;
23
24
  type DialogContentWidth = NonNullable<DialogContentCvaProps["width"]>;
24
25
 
25
- type DialogTriggerProps = Dialog$1.DialogTriggerProps;
26
- declare const DialogTrigger: React.ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
26
+ type DialogTriggerProps = React.ComponentProps<typeof Dialog$1.Trigger>;
27
+ declare function DialogTrigger({ ...props }: DialogTriggerProps): react_jsx_runtime.JSX.Element;
27
28
 
28
- type DialogHeaderProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
29
+ type DialogHeaderProps = React.ComponentProps<"div">;
29
30
  declare function DialogHeader({ className, ...props }: DialogHeaderProps): react_jsx_runtime.JSX.Element;
30
31
 
31
- type DialogFooterProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
32
+ type DialogFooterProps = React.ComponentProps<"div">;
32
33
  declare function DialogFooter({ className, ...props }: DialogFooterProps): react_jsx_runtime.JSX.Element;
33
34
 
34
35
  type DialogTitleProps = React.ComponentProps<typeof Dialog$1.Title>;
@@ -1,3 +1,3 @@
1
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '../../chunk-AGVEKVWD.js';
1
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '../../chunk-5Q3H4MOX.js';
2
2
  import '../../chunk-ZD2QRAOX.js';
3
3
  import '../../chunk-BYXBJQAS.js';