@customafk/lunas-ui 0.0.45 → 0.0.47

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 (149) hide show
  1. package/dist/{button-B7EgZzPl.d.cts → button-CpdBtQM2.d.cts} +4 -4
  2. package/dist/{button-CTgIEMGS.d.ts → button-Cv060uky.d.ts} +6 -6
  3. package/dist/{command-CtsfU8-n.d.cts → command-C5ZklUU1.d.ts} +12 -12
  4. package/dist/{command-BRV_7Zs4.d.ts → command-DVd5YgS5.d.cts} +12 -12
  5. package/dist/data-display/empty.d.cts +2 -2
  6. package/dist/data-display/empty.d.ts +2 -2
  7. package/dist/data-display/statistic.d.cts +2 -2
  8. package/dist/data-display/statistic.d.ts +2 -2
  9. package/dist/{dialog-C7RUCZNu.d.cts → dialog-CoH1pTBH.d.ts} +12 -12
  10. package/dist/{dialog-76EA0O7Y.d.ts → dialog-FTlFnjJF.d.cts} +12 -12
  11. package/dist/dialogs/detail-dialog/component/sidebar.d.cts +28 -28
  12. package/dist/dialogs/detail-dialog/component/sidebar.d.ts +4 -4
  13. package/dist/dialogs/form-dialog.cjs +1 -1
  14. package/dist/dialogs/form-dialog.cjs.map +1 -1
  15. package/dist/dialogs/form-dialog.d.cts +2 -2
  16. package/dist/dialogs/form-dialog.d.ts +2 -2
  17. package/dist/dialogs/form-dialog.js +1 -1
  18. package/dist/dialogs/form-dialog.js.map +1 -1
  19. package/dist/forms/combobox-field.d.cts +2 -2
  20. package/dist/forms/combobox-field.d.ts +2 -2
  21. package/dist/forms/date-field.d.cts +2 -2
  22. package/dist/forms/date-field.d.ts +2 -2
  23. package/dist/forms/form-wrapper.d.cts +2 -2
  24. package/dist/forms/form-wrapper.d.ts +2 -2
  25. package/dist/forms/multi-select-field.d.cts +2 -2
  26. package/dist/forms/multi-select-field.d.ts +2 -2
  27. package/dist/forms/number-field.d.cts +2 -2
  28. package/dist/forms/number-field.d.ts +2 -2
  29. package/dist/forms/password-field.d.cts +2 -2
  30. package/dist/forms/password-field.d.ts +2 -2
  31. package/dist/forms/select-field.d.cts +2 -2
  32. package/dist/forms/select-field.d.ts +2 -2
  33. package/dist/forms/switch-field.d.cts +2 -2
  34. package/dist/forms/switch-field.d.ts +2 -2
  35. package/dist/forms/text-field.d.ts +2 -2
  36. package/dist/forms/textarea-field.d.cts +2 -2
  37. package/dist/forms/textarea-field.d.ts +2 -2
  38. package/dist/{input-DfaMHsQo.d.ts → input-BWl5H7q7.d.cts} +3 -3
  39. package/dist/{input-Cng3uFxw.d.cts → input-BhbkfnN0.d.ts} +3 -3
  40. package/dist/layouts/app-layout/index.d.cts +3 -3
  41. package/dist/layouts/app-layout/index.d.ts +3 -3
  42. package/dist/layouts/flex.d.cts +5 -5
  43. package/dist/layouts/flex.d.ts +5 -5
  44. package/dist/layouts/grid.cjs +1 -1
  45. package/dist/layouts/grid.cjs.map +1 -1
  46. package/dist/layouts/grid.js +1 -1
  47. package/dist/layouts/grid.js.map +1 -1
  48. package/dist/layouts/main/index.d.ts +4 -4
  49. package/dist/{separator-WBRIEOFh.d.ts → separator-DxaLffrB.d.ts} +3 -3
  50. package/dist/{separator-D36UkGvg.d.cts → separator-kimYbMNz.d.cts} +3 -3
  51. package/dist/table/index.d.cts +2 -2
  52. package/dist/table/index.d.ts +2 -2
  53. package/dist/{toggle-DfC247hI.d.cts → toggle-B2KZVUXf.d.ts} +4 -4
  54. package/dist/{toggle-D2aRhQ67.d.ts → toggle-DG-wtPqG.d.cts} +5 -5
  55. package/dist/{tooltip-ClcR7d6G.d.cts → tooltip-BJeReTeQ.d.cts} +6 -6
  56. package/dist/{tooltip-WPrK6Am9.d.ts → tooltip-qTM9vL1r.d.ts} +6 -6
  57. package/dist/typography/paragraph.d.cts +2 -2
  58. package/dist/typography/paragraph.d.ts +2 -2
  59. package/dist/typography/title.d.cts +2 -2
  60. package/dist/typography/title.d.ts +2 -2
  61. package/dist/ui/alert-dialog.d.ts +12 -12
  62. package/dist/ui/alert.d.cts +6 -6
  63. package/dist/ui/alert.d.ts +4 -4
  64. package/dist/ui/aspect-ratio.d.cts +2 -2
  65. package/dist/ui/aspect-ratio.d.ts +2 -2
  66. package/dist/ui/avatar.d.cts +4 -4
  67. package/dist/ui/avatar.d.ts +4 -4
  68. package/dist/ui/badge.d.cts +3 -3
  69. package/dist/ui/badge.d.ts +5 -5
  70. package/dist/ui/breadcrumb.d.cts +8 -8
  71. package/dist/ui/breadcrumb.d.ts +8 -8
  72. package/dist/ui/button.d.cts +1 -1
  73. package/dist/ui/button.d.ts +1 -1
  74. package/dist/ui/calendar.d.cts +4 -4
  75. package/dist/ui/calendar.d.ts +4 -4
  76. package/dist/ui/card.d.cts +8 -8
  77. package/dist/ui/card.d.ts +8 -8
  78. package/dist/ui/carousel.d.cts +7 -7
  79. package/dist/ui/carousel.d.ts +7 -7
  80. package/dist/ui/collapsible.d.cts +4 -4
  81. package/dist/ui/collapsible.d.ts +4 -4
  82. package/dist/ui/command.d.cts +2 -2
  83. package/dist/ui/command.d.ts +2 -2
  84. package/dist/ui/context-menu.d.cts +16 -16
  85. package/dist/ui/context-menu.d.ts +16 -16
  86. package/dist/ui/dialog.d.cts +1 -1
  87. package/dist/ui/dialog.d.ts +1 -1
  88. package/dist/ui/dropdown-menu.d.cts +16 -16
  89. package/dist/ui/dropdown-menu.d.ts +16 -16
  90. package/dist/ui/file-uploader.d.cts +2 -2
  91. package/dist/ui/file-uploader.d.ts +2 -2
  92. package/dist/ui/form.d.ts +7 -7
  93. package/dist/ui/hover-card.d.cts +4 -4
  94. package/dist/ui/hover-card.d.ts +4 -4
  95. package/dist/ui/input-otp.d.cts +5 -5
  96. package/dist/ui/input-otp.d.ts +5 -5
  97. package/dist/ui/input.d.cts +1 -1
  98. package/dist/ui/input.d.ts +1 -1
  99. package/dist/ui/inputs/search-input.d.cts +3 -3
  100. package/dist/ui/inputs/search-input.d.ts +3 -3
  101. package/dist/ui/label.d.cts +2 -2
  102. package/dist/ui/label.d.ts +2 -2
  103. package/dist/ui/menubar.d.cts +17 -17
  104. package/dist/ui/menubar.d.ts +17 -17
  105. package/dist/ui/multi-select.d.cts +2 -2
  106. package/dist/ui/multi-select.d.ts +2 -2
  107. package/dist/ui/navigation-menu.d.cts +9 -9
  108. package/dist/ui/navigation-menu.d.ts +9 -9
  109. package/dist/ui/pagination.d.cts +9 -9
  110. package/dist/ui/pagination.d.ts +9 -9
  111. package/dist/ui/popover.d.cts +5 -5
  112. package/dist/ui/popover.d.ts +5 -5
  113. package/dist/ui/progress.d.cts +2 -2
  114. package/dist/ui/progress.d.ts +2 -2
  115. package/dist/ui/radio-group.d.cts +3 -3
  116. package/dist/ui/radio-group.d.ts +3 -3
  117. package/dist/ui/resizable.d.cts +4 -4
  118. package/dist/ui/resizable.d.ts +4 -4
  119. package/dist/ui/scroll-area.d.cts +3 -3
  120. package/dist/ui/scroll-area.d.ts +3 -3
  121. package/dist/ui/select.d.cts +11 -11
  122. package/dist/ui/select.d.ts +11 -11
  123. package/dist/ui/separator.d.cts +1 -1
  124. package/dist/ui/separator.d.ts +1 -1
  125. package/dist/ui/sheet.d.cts +9 -9
  126. package/dist/ui/sheet.d.ts +9 -9
  127. package/dist/ui/sidebar.d.cts +28 -28
  128. package/dist/ui/sidebar.d.ts +30 -30
  129. package/dist/ui/skeleton.d.cts +2 -2
  130. package/dist/ui/skeleton.d.ts +2 -2
  131. package/dist/ui/slider.d.cts +2 -2
  132. package/dist/ui/slider.d.ts +2 -2
  133. package/dist/ui/sonner.d.cts +2 -2
  134. package/dist/ui/sonner.d.ts +2 -2
  135. package/dist/ui/switch.d.cts +2 -2
  136. package/dist/ui/switch.d.ts +2 -2
  137. package/dist/ui/table.d.cts +9 -9
  138. package/dist/ui/table.d.ts +9 -9
  139. package/dist/ui/tabs.d.cts +5 -5
  140. package/dist/ui/tabs.d.ts +5 -5
  141. package/dist/ui/textarea.d.cts +2 -2
  142. package/dist/ui/textarea.d.ts +2 -2
  143. package/dist/ui/toggle-group.d.cts +4 -4
  144. package/dist/ui/toggle-group.d.ts +4 -4
  145. package/dist/ui/toggle.d.cts +1 -1
  146. package/dist/ui/toggle.d.ts +1 -1
  147. package/dist/ui/tooltip.d.cts +1 -1
  148. package/dist/ui/tooltip.d.ts +1 -1
  149. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import * as react_jsx_runtime68 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime67 from "react/jsx-runtime";
2
2
  import * as class_variance_authority_types1 from "class-variance-authority/types";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
 
5
5
  //#region packages/components/ui/button.d.ts
6
6
  declare const buttonVariants: (props?: ({
7
7
  variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
8
- color?: "muted" | "primary" | "secondary" | "success" | "important" | "info" | "warning" | "danger" | null | undefined;
8
+ color?: "primary" | "secondary" | "muted" | "success" | "important" | "info" | "warning" | "danger" | null | undefined;
9
9
  size?: "sm" | "lg" | "default" | "icon" | null | undefined;
10
10
  } & class_variance_authority_types1.ClassProp) | undefined) => string;
11
11
  declare function Button({
@@ -20,7 +20,7 @@ declare function Button({
20
20
  }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
21
21
  asChild?: boolean;
22
22
  isLoading?: boolean;
23
- }): react_jsx_runtime68.JSX.Element;
23
+ }): react_jsx_runtime67.JSX.Element;
24
24
  //#endregion
25
25
  export { Button, buttonVariants };
26
- //# sourceMappingURL=button-B7EgZzPl.d.cts.map
26
+ //# sourceMappingURL=button-CpdBtQM2.d.cts.map
@@ -1,13 +1,13 @@
1
- import * as react_jsx_runtime55 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime32 from "react/jsx-runtime";
2
2
  import { VariantProps } from "class-variance-authority";
3
- import * as class_variance_authority_types2 from "class-variance-authority/types";
3
+ import * as class_variance_authority_types0 from "class-variance-authority/types";
4
4
 
5
5
  //#region packages/components/ui/button.d.ts
6
6
  declare const buttonVariants: (props?: ({
7
7
  variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
8
- color?: "muted" | "primary" | "secondary" | "success" | "important" | "info" | "warning" | "danger" | null | undefined;
8
+ color?: "primary" | "secondary" | "muted" | "success" | "important" | "info" | "warning" | "danger" | null | undefined;
9
9
  size?: "sm" | "lg" | "default" | "icon" | null | undefined;
10
- } & class_variance_authority_types2.ClassProp) | undefined) => string;
10
+ } & class_variance_authority_types0.ClassProp) | undefined) => string;
11
11
  declare function Button({
12
12
  className,
13
13
  variant,
@@ -20,7 +20,7 @@ declare function Button({
20
20
  }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
21
21
  asChild?: boolean;
22
22
  isLoading?: boolean;
23
- }): react_jsx_runtime55.JSX.Element;
23
+ }): react_jsx_runtime32.JSX.Element;
24
24
  //#endregion
25
25
  export { Button, buttonVariants };
26
- //# sourceMappingURL=button-CTgIEMGS.d.ts.map
26
+ //# sourceMappingURL=button-Cv060uky.d.ts.map
@@ -1,12 +1,12 @@
1
- import { Dialog } from "./dialog-C7RUCZNu.cjs";
2
- import * as react_jsx_runtime69 from "react/jsx-runtime";
1
+ import { Dialog } from "./dialog-CoH1pTBH.js";
2
+ import * as react_jsx_runtime204 from "react/jsx-runtime";
3
3
  import { Command } from "cmdk";
4
4
 
5
5
  //#region packages/components/ui/command.d.ts
6
6
  declare function Command$1({
7
7
  className,
8
8
  ...props
9
- }: React.ComponentProps<typeof Command>): react_jsx_runtime69.JSX.Element;
9
+ }: React.ComponentProps<typeof Command>): react_jsx_runtime204.JSX.Element;
10
10
  declare function CommandDialog({
11
11
  title,
12
12
  description,
@@ -19,34 +19,34 @@ declare function CommandDialog({
19
19
  description?: string;
20
20
  className?: string;
21
21
  showCloseButton?: boolean;
22
- }): react_jsx_runtime69.JSX.Element;
22
+ }): react_jsx_runtime204.JSX.Element;
23
23
  declare function CommandInput({
24
24
  className,
25
25
  ...props
26
- }: React.ComponentProps<typeof Command.Input>): react_jsx_runtime69.JSX.Element;
26
+ }: React.ComponentProps<typeof Command.Input>): react_jsx_runtime204.JSX.Element;
27
27
  declare function CommandList({
28
28
  className,
29
29
  ...props
30
- }: React.ComponentProps<typeof Command.List>): react_jsx_runtime69.JSX.Element;
30
+ }: React.ComponentProps<typeof Command.List>): react_jsx_runtime204.JSX.Element;
31
31
  declare function CommandEmpty({
32
32
  ...props
33
- }: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime69.JSX.Element;
33
+ }: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime204.JSX.Element;
34
34
  declare function CommandGroup({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<typeof Command.Group>): react_jsx_runtime69.JSX.Element;
37
+ }: React.ComponentProps<typeof Command.Group>): react_jsx_runtime204.JSX.Element;
38
38
  declare function CommandSeparator({
39
39
  className,
40
40
  ...props
41
- }: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime69.JSX.Element;
41
+ }: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime204.JSX.Element;
42
42
  declare function CommandItem({
43
43
  className,
44
44
  ...props
45
- }: React.ComponentProps<typeof Command.Item>): react_jsx_runtime69.JSX.Element;
45
+ }: React.ComponentProps<typeof Command.Item>): react_jsx_runtime204.JSX.Element;
46
46
  declare function CommandShortcut({
47
47
  className,
48
48
  ...props
49
- }: React.ComponentProps<'span'>): react_jsx_runtime69.JSX.Element;
49
+ }: React.ComponentProps<'span'>): react_jsx_runtime204.JSX.Element;
50
50
  //#endregion
51
51
  export { Command$1 as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
52
- //# sourceMappingURL=command-CtsfU8-n.d.cts.map
52
+ //# sourceMappingURL=command-C5ZklUU1.d.ts.map
@@ -1,12 +1,12 @@
1
- import { Dialog } from "./dialog-76EA0O7Y.js";
2
- import * as react_jsx_runtime56 from "react/jsx-runtime";
1
+ import { Dialog } from "./dialog-FTlFnjJF.cjs";
2
+ import * as react_jsx_runtime68 from "react/jsx-runtime";
3
3
  import { Command } from "cmdk";
4
4
 
5
5
  //#region packages/components/ui/command.d.ts
6
6
  declare function Command$1({
7
7
  className,
8
8
  ...props
9
- }: React.ComponentProps<typeof Command>): react_jsx_runtime56.JSX.Element;
9
+ }: React.ComponentProps<typeof Command>): react_jsx_runtime68.JSX.Element;
10
10
  declare function CommandDialog({
11
11
  title,
12
12
  description,
@@ -19,34 +19,34 @@ declare function CommandDialog({
19
19
  description?: string;
20
20
  className?: string;
21
21
  showCloseButton?: boolean;
22
- }): react_jsx_runtime56.JSX.Element;
22
+ }): react_jsx_runtime68.JSX.Element;
23
23
  declare function CommandInput({
24
24
  className,
25
25
  ...props
26
- }: React.ComponentProps<typeof Command.Input>): react_jsx_runtime56.JSX.Element;
26
+ }: React.ComponentProps<typeof Command.Input>): react_jsx_runtime68.JSX.Element;
27
27
  declare function CommandList({
28
28
  className,
29
29
  ...props
30
- }: React.ComponentProps<typeof Command.List>): react_jsx_runtime56.JSX.Element;
30
+ }: React.ComponentProps<typeof Command.List>): react_jsx_runtime68.JSX.Element;
31
31
  declare function CommandEmpty({
32
32
  ...props
33
- }: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime56.JSX.Element;
33
+ }: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime68.JSX.Element;
34
34
  declare function CommandGroup({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<typeof Command.Group>): react_jsx_runtime56.JSX.Element;
37
+ }: React.ComponentProps<typeof Command.Group>): react_jsx_runtime68.JSX.Element;
38
38
  declare function CommandSeparator({
39
39
  className,
40
40
  ...props
41
- }: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime56.JSX.Element;
41
+ }: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime68.JSX.Element;
42
42
  declare function CommandItem({
43
43
  className,
44
44
  ...props
45
- }: React.ComponentProps<typeof Command.Item>): react_jsx_runtime56.JSX.Element;
45
+ }: React.ComponentProps<typeof Command.Item>): react_jsx_runtime68.JSX.Element;
46
46
  declare function CommandShortcut({
47
47
  className,
48
48
  ...props
49
- }: React.ComponentProps<'span'>): react_jsx_runtime56.JSX.Element;
49
+ }: React.ComponentProps<'span'>): react_jsx_runtime68.JSX.Element;
50
50
  //#endregion
51
51
  export { Command$1 as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
52
- //# sourceMappingURL=command-BRV_7Zs4.d.ts.map
52
+ //# sourceMappingURL=command-DVd5YgS5.d.cts.map
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/data-display/empty.d.ts
4
- declare const EmptyDisplay: () => react_jsx_runtime0.JSX.Element;
4
+ declare const EmptyDisplay: () => react_jsx_runtime5.JSX.Element;
5
5
  //#endregion
6
6
  export { EmptyDisplay };
7
7
  //# sourceMappingURL=empty.d.cts.map
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/data-display/empty.d.ts
4
- declare const EmptyDisplay: () => react_jsx_runtime0.JSX.Element;
4
+ declare const EmptyDisplay: () => react_jsx_runtime8.JSX.Element;
5
5
  //#endregion
6
6
  export { EmptyDisplay };
7
7
  //# sourceMappingURL=empty.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime2 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime37 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region packages/components/data-display/statistic.d.ts
@@ -23,7 +23,7 @@ declare const Statistic: React.MemoExoticComponent<({
23
23
  showTrailingZeros,
24
24
  size,
25
25
  value
26
- }: Props) => react_jsx_runtime2.JSX.Element>;
26
+ }: Props) => react_jsx_runtime37.JSX.Element>;
27
27
  //#endregion
28
28
  export { Statistic };
29
29
  //# sourceMappingURL=statistic.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime8 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/data-display/statistic.d.ts
5
5
  type Props = {
@@ -23,7 +23,7 @@ declare const Statistic: React.MemoExoticComponent<({
23
23
  showTrailingZeros,
24
24
  size,
25
25
  value
26
- }: Props) => react_jsx_runtime8.JSX.Element>;
26
+ }: Props) => react_jsx_runtime4.JSX.Element>;
27
27
  //#endregion
28
28
  export { Statistic };
29
29
  //# sourceMappingURL=statistic.d.ts.map
@@ -1,23 +1,23 @@
1
- import * as react_jsx_runtime98 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime59 from "react/jsx-runtime";
2
2
  import { Dialog } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/dialog.d.ts
5
5
  declare function Dialog$1({
6
6
  ...props
7
- }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime98.JSX.Element;
7
+ }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime59.JSX.Element;
8
8
  declare function DialogTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime98.JSX.Element;
10
+ }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime59.JSX.Element;
11
11
  declare function DialogPortal({
12
12
  ...props
13
- }: React.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime98.JSX.Element;
13
+ }: React.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime59.JSX.Element;
14
14
  declare function DialogClose({
15
15
  ...props
16
- }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime98.JSX.Element;
16
+ }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime59.JSX.Element;
17
17
  declare function DialogOverlay({
18
18
  className,
19
19
  ...props
20
- }: React.ComponentProps<typeof Dialog.Overlay>): react_jsx_runtime98.JSX.Element;
20
+ }: React.ComponentProps<typeof Dialog.Overlay>): react_jsx_runtime59.JSX.Element;
21
21
  declare function DialogContent({
22
22
  className,
23
23
  children,
@@ -25,23 +25,23 @@ declare function DialogContent({
25
25
  ...props
26
26
  }: React.ComponentProps<typeof Dialog.Content> & {
27
27
  showCloseButton?: boolean;
28
- }): react_jsx_runtime98.JSX.Element;
28
+ }): react_jsx_runtime59.JSX.Element;
29
29
  declare function DialogHeader({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<'div'>): react_jsx_runtime98.JSX.Element;
32
+ }: React.ComponentProps<'div'>): react_jsx_runtime59.JSX.Element;
33
33
  declare function DialogFooter({
34
34
  className,
35
35
  ...props
36
- }: React.ComponentProps<'div'>): react_jsx_runtime98.JSX.Element;
36
+ }: React.ComponentProps<'div'>): react_jsx_runtime59.JSX.Element;
37
37
  declare function DialogTitle({
38
38
  className,
39
39
  ...props
40
- }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime98.JSX.Element;
40
+ }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime59.JSX.Element;
41
41
  declare function DialogDescription({
42
42
  className,
43
43
  ...props
44
- }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime98.JSX.Element;
44
+ }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime59.JSX.Element;
45
45
  //#endregion
46
46
  export { Dialog$1 as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
47
- //# sourceMappingURL=dialog-C7RUCZNu.d.cts.map
47
+ //# sourceMappingURL=dialog-CoH1pTBH.d.ts.map
@@ -1,23 +1,23 @@
1
- import * as react_jsx_runtime144 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime57 from "react/jsx-runtime";
2
2
  import { Dialog } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/dialog.d.ts
5
5
  declare function Dialog$1({
6
6
  ...props
7
- }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime144.JSX.Element;
7
+ }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime57.JSX.Element;
8
8
  declare function DialogTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime144.JSX.Element;
10
+ }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime57.JSX.Element;
11
11
  declare function DialogPortal({
12
12
  ...props
13
- }: React.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime144.JSX.Element;
13
+ }: React.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime57.JSX.Element;
14
14
  declare function DialogClose({
15
15
  ...props
16
- }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime144.JSX.Element;
16
+ }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime57.JSX.Element;
17
17
  declare function DialogOverlay({
18
18
  className,
19
19
  ...props
20
- }: React.ComponentProps<typeof Dialog.Overlay>): react_jsx_runtime144.JSX.Element;
20
+ }: React.ComponentProps<typeof Dialog.Overlay>): react_jsx_runtime57.JSX.Element;
21
21
  declare function DialogContent({
22
22
  className,
23
23
  children,
@@ -25,23 +25,23 @@ declare function DialogContent({
25
25
  ...props
26
26
  }: React.ComponentProps<typeof Dialog.Content> & {
27
27
  showCloseButton?: boolean;
28
- }): react_jsx_runtime144.JSX.Element;
28
+ }): react_jsx_runtime57.JSX.Element;
29
29
  declare function DialogHeader({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<'div'>): react_jsx_runtime144.JSX.Element;
32
+ }: React.ComponentProps<'div'>): react_jsx_runtime57.JSX.Element;
33
33
  declare function DialogFooter({
34
34
  className,
35
35
  ...props
36
- }: React.ComponentProps<'div'>): react_jsx_runtime144.JSX.Element;
36
+ }: React.ComponentProps<'div'>): react_jsx_runtime57.JSX.Element;
37
37
  declare function DialogTitle({
38
38
  className,
39
39
  ...props
40
- }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime144.JSX.Element;
40
+ }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime57.JSX.Element;
41
41
  declare function DialogDescription({
42
42
  className,
43
43
  ...props
44
- }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime144.JSX.Element;
44
+ }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime57.JSX.Element;
45
45
  //#endregion
46
46
  export { Dialog$1 as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
47
- //# sourceMappingURL=dialog-76EA0O7Y.d.ts.map
47
+ //# sourceMappingURL=dialog-FTlFnjJF.d.cts.map
@@ -1,8 +1,8 @@
1
- import { Button } from "../../../button-B7EgZzPl.cjs";
2
- import { Input } from "../../../input-Cng3uFxw.cjs";
3
- import { Separator } from "../../../separator-D36UkGvg.cjs";
4
- import { TooltipContent } from "../../../tooltip-ClcR7d6G.cjs";
5
- import * as react_jsx_runtime235 from "react/jsx-runtime";
1
+ import { Button } from "../../../button-CpdBtQM2.cjs";
2
+ import { Input } from "../../../input-BWl5H7q7.cjs";
3
+ import { Separator } from "../../../separator-kimYbMNz.cjs";
4
+ import { TooltipContent } from "../../../tooltip-BJeReTeQ.cjs";
5
+ import * as react_jsx_runtime232 from "react/jsx-runtime";
6
6
  import React from "react";
7
7
  import * as class_variance_authority_types6 from "class-variance-authority/types";
8
8
  import { VariantProps } from "class-variance-authority";
@@ -30,7 +30,7 @@ declare function SidebarProvider({
30
30
  defaultOpen?: boolean;
31
31
  open?: boolean;
32
32
  onOpenChange?: (open: boolean) => void;
33
- }): react_jsx_runtime235.JSX.Element;
33
+ }): react_jsx_runtime232.JSX.Element;
34
34
  declare function Sidebar({
35
35
  side,
36
36
  variant,
@@ -42,70 +42,70 @@ declare function Sidebar({
42
42
  side?: 'left' | 'right';
43
43
  variant?: 'sidebar' | 'floating' | 'inset';
44
44
  collapsible?: 'offcanvas' | 'icon' | 'none';
45
- }): react_jsx_runtime235.JSX.Element;
45
+ }): react_jsx_runtime232.JSX.Element;
46
46
  declare function DetailDialogSidebarTrigger({
47
47
  className,
48
48
  onClick,
49
49
  ...props
50
- }: React.ComponentProps<typeof Button>): react_jsx_runtime235.JSX.Element;
50
+ }: React.ComponentProps<typeof Button>): react_jsx_runtime232.JSX.Element;
51
51
  declare function DetailDialogSidebarRail({
52
52
  className,
53
53
  ...props
54
- }: React.ComponentProps<'button'>): react_jsx_runtime235.JSX.Element;
54
+ }: React.ComponentProps<'button'>): react_jsx_runtime232.JSX.Element;
55
55
  declare function SidebarInset({
56
56
  className,
57
57
  ...props
58
- }: React.ComponentProps<'main'>): react_jsx_runtime235.JSX.Element;
58
+ }: React.ComponentProps<'main'>): react_jsx_runtime232.JSX.Element;
59
59
  declare function SidebarInput({
60
60
  className,
61
61
  ...props
62
- }: React.ComponentProps<typeof Input>): react_jsx_runtime235.JSX.Element;
62
+ }: React.ComponentProps<typeof Input>): react_jsx_runtime232.JSX.Element;
63
63
  declare function DetailDialogSidebarHeader({
64
64
  className,
65
65
  ...props
66
- }: React.ComponentProps<'div'>): react_jsx_runtime235.JSX.Element;
66
+ }: React.ComponentProps<'div'>): react_jsx_runtime232.JSX.Element;
67
67
  declare function DetailDialogSidebarFooter({
68
68
  className,
69
69
  ...props
70
- }: React.ComponentProps<'div'>): react_jsx_runtime235.JSX.Element;
70
+ }: React.ComponentProps<'div'>): react_jsx_runtime232.JSX.Element;
71
71
  declare function DetailDialogSidebarSeparator({
72
72
  className,
73
73
  ...props
74
- }: React.ComponentProps<typeof Separator>): react_jsx_runtime235.JSX.Element;
74
+ }: React.ComponentProps<typeof Separator>): react_jsx_runtime232.JSX.Element;
75
75
  declare function DetailDialogSidebarContent({
76
76
  className,
77
77
  ...props
78
- }: React.ComponentProps<'div'>): react_jsx_runtime235.JSX.Element;
78
+ }: React.ComponentProps<'div'>): react_jsx_runtime232.JSX.Element;
79
79
  declare function DetailDialogSidebarGroup({
80
80
  className,
81
81
  ...props
82
- }: React.ComponentProps<'div'>): react_jsx_runtime235.JSX.Element;
82
+ }: React.ComponentProps<'div'>): react_jsx_runtime232.JSX.Element;
83
83
  declare function DetailDialogSidebarGroupLabel({
84
84
  className,
85
85
  asChild,
86
86
  ...props
87
87
  }: React.ComponentProps<'div'> & {
88
88
  asChild?: boolean;
89
- }): react_jsx_runtime235.JSX.Element;
89
+ }): react_jsx_runtime232.JSX.Element;
90
90
  declare function DetailDialogSidebarGroupAction({
91
91
  className,
92
92
  asChild,
93
93
  ...props
94
94
  }: React.ComponentProps<'button'> & {
95
95
  asChild?: boolean;
96
- }): react_jsx_runtime235.JSX.Element;
96
+ }): react_jsx_runtime232.JSX.Element;
97
97
  declare function DetailDialogSidebarGroupContent({
98
98
  className,
99
99
  ...props
100
- }: React.ComponentProps<'div'>): react_jsx_runtime235.JSX.Element;
100
+ }: React.ComponentProps<'div'>): react_jsx_runtime232.JSX.Element;
101
101
  declare function DetailDialogSidebarMenu({
102
102
  className,
103
103
  ...props
104
- }: React.ComponentProps<'ul'>): react_jsx_runtime235.JSX.Element;
104
+ }: React.ComponentProps<'ul'>): react_jsx_runtime232.JSX.Element;
105
105
  declare function DetailDialogSidebarMenuItem({
106
106
  className,
107
107
  ...props
108
- }: React.ComponentProps<'li'>): react_jsx_runtime235.JSX.Element;
108
+ }: React.ComponentProps<'li'>): react_jsx_runtime232.JSX.Element;
109
109
  declare const sidebarMenuButtonVariants: (props?: ({
110
110
  variant?: "default" | "outline" | null | undefined;
111
111
  size?: "sm" | "lg" | "default" | null | undefined;
@@ -122,7 +122,7 @@ declare function DetailDialogSidebarMenuButton({
122
122
  asChild?: boolean;
123
123
  isActive?: boolean;
124
124
  tooltip?: string | React.ComponentProps<typeof TooltipContent>;
125
- } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime235.JSX.Element;
125
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime232.JSX.Element;
126
126
  declare function DetailDialogSidebarMenuAction({
127
127
  className,
128
128
  asChild,
@@ -131,26 +131,26 @@ declare function DetailDialogSidebarMenuAction({
131
131
  }: React.ComponentProps<'button'> & {
132
132
  asChild?: boolean;
133
133
  showOnHover?: boolean;
134
- }): react_jsx_runtime235.JSX.Element;
134
+ }): react_jsx_runtime232.JSX.Element;
135
135
  declare function DetailDialogSidebarMenuBadge({
136
136
  className,
137
137
  ...props
138
- }: React.ComponentProps<'div'>): react_jsx_runtime235.JSX.Element;
138
+ }: React.ComponentProps<'div'>): react_jsx_runtime232.JSX.Element;
139
139
  declare function DetailDialogSidebarMenuSkeleton({
140
140
  className,
141
141
  showIcon,
142
142
  ...props
143
143
  }: React.ComponentProps<'div'> & {
144
144
  showIcon?: boolean;
145
- }): react_jsx_runtime235.JSX.Element;
145
+ }): react_jsx_runtime232.JSX.Element;
146
146
  declare function DetailDialogSidebarMenuSub({
147
147
  className,
148
148
  ...props
149
- }: React.ComponentProps<'ul'>): react_jsx_runtime235.JSX.Element;
149
+ }: React.ComponentProps<'ul'>): react_jsx_runtime232.JSX.Element;
150
150
  declare function DetailDialogSidebarMenuSubItem({
151
151
  className,
152
152
  ...props
153
- }: React.ComponentProps<'li'>): react_jsx_runtime235.JSX.Element;
153
+ }: React.ComponentProps<'li'>): react_jsx_runtime232.JSX.Element;
154
154
  declare function DetailDialogSidebarMenuSubButton({
155
155
  asChild,
156
156
  size,
@@ -161,7 +161,7 @@ declare function DetailDialogSidebarMenuSubButton({
161
161
  asChild?: boolean;
162
162
  size?: 'sm' | 'md';
163
163
  isActive?: boolean;
164
- }): react_jsx_runtime235.JSX.Element;
164
+ }): react_jsx_runtime232.JSX.Element;
165
165
  //#endregion
166
166
  export { DetailDialogSidebarContent, DetailDialogSidebarFooter, DetailDialogSidebarGroup, DetailDialogSidebarGroupAction, DetailDialogSidebarGroupContent, DetailDialogSidebarGroupLabel, DetailDialogSidebarHeader, DetailDialogSidebarMenu, DetailDialogSidebarMenuAction, DetailDialogSidebarMenuBadge, DetailDialogSidebarMenuButton, DetailDialogSidebarMenuItem, DetailDialogSidebarMenuSkeleton, DetailDialogSidebarMenuSub, DetailDialogSidebarMenuSubButton, DetailDialogSidebarMenuSubItem, DetailDialogSidebarRail, DetailDialogSidebarSeparator, DetailDialogSidebarTrigger, Sidebar, SidebarInput, SidebarInset, SidebarProvider, useSidebar };
167
167
  //# sourceMappingURL=sidebar.d.cts.map
@@ -1,7 +1,7 @@
1
- import { Button } from "../../../button-CTgIEMGS.js";
2
- import { Input } from "../../../input-DfaMHsQo.js";
3
- import { Separator } from "../../../separator-WBRIEOFh.js";
4
- import { TooltipContent } from "../../../tooltip-WPrK6Am9.js";
1
+ import { Button } from "../../../button-Cv060uky.js";
2
+ import { Input } from "../../../input-BhbkfnN0.js";
3
+ import { Separator } from "../../../separator-DxaLffrB.js";
4
+ import { TooltipContent } from "../../../tooltip-qTM9vL1r.js";
5
5
  import React from "react";
6
6
  import * as react_jsx_runtime236 from "react/jsx-runtime";
7
7
  import { VariantProps } from "class-variance-authority";
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../utils-BsjVK5EW.cjs`),n=require(`../button-Cg9ZsZ68.cjs`);require(`../alert-dialog-Dp-m0Xsj.cjs`),require(`../error-dialog-D7FS_tBU.cjs`),require(`../label-B_2ZQn0X.cjs`),require(`../form-CU-tlomS.cjs`);const r=require(`../form-wrapper-CVkfJN7q.cjs`),i=require(`../dialog-CguMVyyd.cjs`),a=e.__toESM(require(`react/jsx-runtime`)),o=({form:e,open:o,isSubmitting:s=!1,isResetAfterSubmit:c=!0,disableSubmit:l=!1,title:u,description:d,className:f,onOpenChange:p,onSubmit:m,onError:h,onReset:g,children:_})=>(0,a.jsx)(i.Dialog,{open:o,onOpenChange:p,children:(0,a.jsxs)(i.DialogContent,{className:t.cn(`flex flex-col gap-0 border-none p-0`,f),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:[(0,a.jsxs)(i.DialogHeader,{className:`border-border-weak flex-0 gap-2 border-b p-6 pb-4`,children:[(0,a.jsx)(i.DialogTitle,{children:u||`Form Dialog`}),(0,a.jsx)(i.DialogDescription,{children:d||`This is a form dialog where you can add your form elements.`})]}),(0,a.jsxs)(r.FormWrapper,{form:e,isResetAfterSubmit:c,className:`flex flex-1 flex-col overflow-y-auto pt-4`,onSubmit:m,onError:h,children:[(0,a.jsx)(`main`,{className:`flex-1 overflow-y-auto px-6`,children:_}),(0,a.jsxs)(i.DialogFooter,{className:`border-border-weak border-t p-6 pt-4`,children:[(0,a.jsx)(n.Button,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-full rounded-full sm:w-30`,onClick:g,children:`Reset`}),(0,a.jsx)(n.Button,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:s,disabled:l,className:`w-full rounded-full sm:w-30`,children:`Submit`})]})]})]})});exports.FormDialog=o;
1
+ const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../utils-BsjVK5EW.cjs`),n=require(`../button-Cg9ZsZ68.cjs`);require(`../alert-dialog-Dp-m0Xsj.cjs`),require(`../error-dialog-D7FS_tBU.cjs`),require(`../label-B_2ZQn0X.cjs`),require(`../form-CU-tlomS.cjs`);const r=require(`../form-wrapper-CVkfJN7q.cjs`),i=require(`../dialog-CguMVyyd.cjs`),a=e.__toESM(require(`react/jsx-runtime`)),o=({form:e,open:o,isSubmitting:s=!1,isResetAfterSubmit:c=!0,disableSubmit:l=!1,title:u,description:d,className:f,onOpenChange:p,onSubmit:m,onError:h,onReset:g,children:_})=>(0,a.jsx)(i.Dialog,{open:o,onOpenChange:p,children:(0,a.jsxs)(i.DialogContent,{className:t.cn(`flex flex-col gap-0 border-none p-0`,f),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:[(0,a.jsxs)(i.DialogHeader,{className:`border-border-weak flex-0 gap-2 border-b p-6 pb-4`,children:[(0,a.jsx)(i.DialogTitle,{children:u||`Form Dialog`}),(0,a.jsx)(i.DialogDescription,{children:d||`This is a form dialog where you can add your form elements.`})]}),(0,a.jsxs)(r.FormWrapper,{form:e,isResetAfterSubmit:c,className:`flex flex-1 flex-col overflow-y-auto`,onSubmit:m,onError:h,children:[(0,a.jsx)(`div`,{className:`bg-muted-muted size-full p-2 inset-shadow-sm`,children:(0,a.jsx)(`main`,{className:`bg-card shadow-card size-full flex-1 overflow-y-auto rounded-md`,children:_})}),(0,a.jsxs)(i.DialogFooter,{className:`border-border-weak border-t p-6 pt-4`,children:[(0,a.jsx)(n.Button,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-full rounded-full sm:w-30`,onClick:g,children:`Reset`}),(0,a.jsx)(n.Button,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:s,disabled:l,className:`w-full rounded-full sm:w-30`,children:`Submit`})]})]})]})});exports.FormDialog=o;
2
2
  //# sourceMappingURL=form-dialog.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-dialog.cjs","names":["Dialog","DialogContent","cn","DialogHeader","DialogTitle","DialogDescription","FormWrapper","DialogFooter","Button"],"sources":["../../packages/components/dialogs/form-dialog.tsx"],"sourcesContent":["import type { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from 'react-hook-form'\n\nimport { cn } from '@/lib/utils'\n\nimport { FormWrapper } from '../forms/form-wrapper'\nimport { Button } from '../ui/button'\nimport { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '../ui/dialog'\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n form: UseFormProps<TFieldValues>\n\n open: boolean\n isSubmitting?: boolean\n isResetAfterSubmit?: boolean\n disableSubmit?: boolean\n title?: string\n description?: string\n className?: string\n\n onOpenChange: (open: boolean) => void\n onSubmit: (data: TFieldValues, formState: FormState<FieldValues>, dirtyFields: FormState<FieldValues>['dirtyFields']) => void | Promise<void>\n onError?: SubmitErrorHandler<TFieldValues>\n onReset?: () => void\n}\nexport const FormDialog = <TFieldValues extends FieldValues = FieldValues>({\n form,\n open,\n isSubmitting = false,\n isResetAfterSubmit = true,\n disableSubmit = false,\n title,\n description,\n className,\n\n onOpenChange,\n onSubmit,\n onError,\n onReset,\n children,\n}: React.PropsWithChildren<Props<TFieldValues>>) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent\n className={cn('flex flex-col gap-0 border-none p-0', className)}\n onInteractOutside={(e) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n <DialogHeader className=\"border-border-weak flex-0 gap-2 border-b p-6 pb-4\">\n <DialogTitle>{title || 'Form Dialog'}</DialogTitle>\n <DialogDescription>{description || 'This is a form dialog where you can add your form elements.'}</DialogDescription>\n </DialogHeader>\n <FormWrapper\n form={form}\n isResetAfterSubmit={isResetAfterSubmit}\n className=\"flex flex-1 flex-col overflow-y-auto pt-4\"\n onSubmit={onSubmit}\n onError={onError}\n >\n <main className=\"flex-1 overflow-y-auto px-6\">{children}</main>\n <DialogFooter className=\"border-border-weak border-t p-6 pt-4\">\n <Button tabIndex={-1} type=\"button\" variant=\"outline\" color=\"muted\" className=\"w-full rounded-full sm:w-30\" onClick={onReset}>\n Reset\n </Button>\n <Button autoFocus tabIndex={0} type=\"submit\" isLoading={isSubmitting} disabled={disableSubmit} className=\"w-full rounded-full sm:w-30\">\n Submit\n </Button>\n </DialogFooter>\n </FormWrapper>\n </DialogContent>\n </Dialog>\n )\n}\n"],"mappings":"+XAwBa,GAA8D,CACzE,OACA,OACA,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,QACA,cACA,YAEA,eACA,WACA,UACA,UACA,eAGE,EAAA,EAAA,KAACA,EAAAA,OAAAA,CAAa,OAAoB,yBAChC,EAAA,EAAA,MAACC,EAAAA,cAAAA,CACC,UAAWC,EAAAA,GAAG,sCAAuC,GACrD,kBAAoB,GAAM,CACxB,EAAE,iBACF,EAAE,8BAGJ,EAAA,EAAA,MAACC,EAAAA,aAAAA,CAAa,UAAU,+DACtB,EAAA,EAAA,KAACC,EAAAA,YAAAA,CAAAA,SAAa,GAAS,iBACvB,EAAA,EAAA,KAACC,EAAAA,kBAAAA,CAAAA,SAAmB,GAAe,oEAErC,EAAA,EAAA,MAACC,EAAAA,YAAAA,CACO,OACc,qBACpB,UAAU,4CACA,WACD,qBAET,EAAA,EAAA,KAAC,OAAA,CAAK,UAAU,8BAA+B,cAC/C,EAAA,EAAA,MAACC,EAAAA,aAAAA,CAAa,UAAU,kDACtB,EAAA,EAAA,KAACC,EAAAA,OAAAA,CAAO,SAAU,GAAI,KAAK,SAAS,QAAQ,UAAU,MAAM,QAAQ,UAAU,8BAA8B,QAAS,WAAS,WAG9H,EAAA,EAAA,KAACA,EAAAA,OAAAA,CAAO,UAAA,GAAU,SAAU,EAAG,KAAK,SAAS,UAAW,EAAc,SAAU,EAAe,UAAU,uCAA8B"}
1
+ {"version":3,"file":"form-dialog.cjs","names":["Dialog","DialogContent","cn","DialogHeader","DialogTitle","DialogDescription","FormWrapper","DialogFooter","Button"],"sources":["../../packages/components/dialogs/form-dialog.tsx"],"sourcesContent":["import type { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from 'react-hook-form'\n\nimport { cn } from '@/lib/utils'\n\nimport { FormWrapper } from '../forms/form-wrapper'\nimport { Button } from '../ui/button'\nimport { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '../ui/dialog'\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n form: UseFormProps<TFieldValues>\n\n open: boolean\n isSubmitting?: boolean\n isResetAfterSubmit?: boolean\n disableSubmit?: boolean\n title?: string\n description?: string\n className?: string\n\n onOpenChange: (open: boolean) => void\n onSubmit: (data: TFieldValues, formState: FormState<FieldValues>, dirtyFields: FormState<FieldValues>['dirtyFields']) => void | Promise<void>\n onError?: SubmitErrorHandler<TFieldValues>\n onReset?: () => void\n}\nexport const FormDialog = <TFieldValues extends FieldValues = FieldValues>({\n form,\n open,\n isSubmitting = false,\n isResetAfterSubmit = true,\n disableSubmit = false,\n title,\n description,\n className,\n\n onOpenChange,\n onSubmit,\n onError,\n onReset,\n children,\n}: React.PropsWithChildren<Props<TFieldValues>>) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent\n className={cn('flex flex-col gap-0 border-none p-0', className)}\n onInteractOutside={(e) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n <DialogHeader className=\"border-border-weak flex-0 gap-2 border-b p-6 pb-4\">\n <DialogTitle>{title || 'Form Dialog'}</DialogTitle>\n <DialogDescription>{description || 'This is a form dialog where you can add your form elements.'}</DialogDescription>\n </DialogHeader>\n <FormWrapper form={form} isResetAfterSubmit={isResetAfterSubmit} className=\"flex flex-1 flex-col overflow-y-auto\" onSubmit={onSubmit} onError={onError}>\n <div className=\"bg-muted-muted size-full p-2 inset-shadow-sm\">\n <main className=\"bg-card shadow-card size-full flex-1 overflow-y-auto rounded-md\">{children}</main>\n </div>\n <DialogFooter className=\"border-border-weak border-t p-6 pt-4\">\n <Button tabIndex={-1} type=\"button\" variant=\"outline\" color=\"muted\" className=\"w-full rounded-full sm:w-30\" onClick={onReset}>\n Reset\n </Button>\n <Button autoFocus tabIndex={0} type=\"submit\" isLoading={isSubmitting} disabled={disableSubmit} className=\"w-full rounded-full sm:w-30\">\n Submit\n </Button>\n </DialogFooter>\n </FormWrapper>\n </DialogContent>\n </Dialog>\n )\n}\n"],"mappings":"+XAwBa,GAA8D,CACzE,OACA,OACA,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,QACA,cACA,YAEA,eACA,WACA,UACA,UACA,eAGE,EAAA,EAAA,KAACA,EAAAA,OAAAA,CAAa,OAAoB,yBAChC,EAAA,EAAA,MAACC,EAAAA,cAAAA,CACC,UAAWC,EAAAA,GAAG,sCAAuC,GACrD,kBAAoB,GAAM,CACxB,EAAE,iBACF,EAAE,8BAGJ,EAAA,EAAA,MAACC,EAAAA,aAAAA,CAAa,UAAU,+DACtB,EAAA,EAAA,KAACC,EAAAA,YAAAA,CAAAA,SAAa,GAAS,iBACvB,EAAA,EAAA,KAACC,EAAAA,kBAAAA,CAAAA,SAAmB,GAAe,oEAErC,EAAA,EAAA,MAACC,EAAAA,YAAAA,CAAkB,OAA0B,qBAAoB,UAAU,uCAAiD,WAAmB,qBAC7I,EAAA,EAAA,KAAC,MAAA,CAAI,UAAU,yDACb,EAAA,EAAA,KAAC,OAAA,CAAK,UAAU,kEAAmE,gBAErF,EAAA,EAAA,MAACC,EAAAA,aAAAA,CAAa,UAAU,kDACtB,EAAA,EAAA,KAACC,EAAAA,OAAAA,CAAO,SAAU,GAAI,KAAK,SAAS,QAAQ,UAAU,MAAM,QAAQ,UAAU,8BAA8B,QAAS,WAAS,WAG9H,EAAA,EAAA,KAACA,EAAAA,OAAAA,CAAO,UAAA,GAAU,SAAU,EAAG,KAAK,SAAS,UAAW,EAAc,SAAU,EAAe,UAAU,uCAA8B"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/dialogs/form-dialog.d.ts
@@ -30,7 +30,7 @@ declare const FormDialog: <TFieldValues extends FieldValues = FieldValues>({
30
30
  onError,
31
31
  onReset,
32
32
  children
33
- }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime3.JSX.Element;
33
+ }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime0.JSX.Element;
34
34
  //#endregion
35
35
  export { FormDialog };
36
36
  //# sourceMappingURL=form-dialog.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
2
2
  import { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/dialogs/form-dialog.d.ts
@@ -30,7 +30,7 @@ declare const FormDialog: <TFieldValues extends FieldValues = FieldValues>({
30
30
  onError,
31
31
  onReset,
32
32
  children
33
- }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime5.JSX.Element;
33
+ }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime7.JSX.Element;
34
34
  //#endregion
35
35
  export { FormDialog };
36
36
  //# sourceMappingURL=form-dialog.d.ts.map
@@ -1,2 +1,2 @@
1
- import{cn as e}from"../utils-D9AH0PUV.js";import{Button as t}from"../button-tXV0dTFU.js";import"../alert-dialog-Cj5WqA7x.js";import"../error-dialog-CTPWuLNO.js";import"../label-D1XmKlc3.js";import"../form-63w5ez51.js";import{FormWrapper as n}from"../form-wrapper-pnkjBZnM.js";import{Dialog as r,DialogContent as i,DialogDescription as a,DialogFooter as o,DialogHeader as s,DialogTitle as c}from"../dialog-YTzM43YA.js";import{jsx as l,jsxs as u}from"react/jsx-runtime";const d=({form:d,open:f,isSubmitting:p=!1,isResetAfterSubmit:m=!0,disableSubmit:h=!1,title:g,description:_,className:v,onOpenChange:y,onSubmit:b,onError:x,onReset:S,children:C})=>l(r,{open:f,onOpenChange:y,children:u(i,{className:e(`flex flex-col gap-0 border-none p-0`,v),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:[u(s,{className:`border-border-weak flex-0 gap-2 border-b p-6 pb-4`,children:[l(c,{children:g||`Form Dialog`}),l(a,{children:_||`This is a form dialog where you can add your form elements.`})]}),u(n,{form:d,isResetAfterSubmit:m,className:`flex flex-1 flex-col overflow-y-auto pt-4`,onSubmit:b,onError:x,children:[l(`main`,{className:`flex-1 overflow-y-auto px-6`,children:C}),u(o,{className:`border-border-weak border-t p-6 pt-4`,children:[l(t,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-full rounded-full sm:w-30`,onClick:S,children:`Reset`}),l(t,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:p,disabled:h,className:`w-full rounded-full sm:w-30`,children:`Submit`})]})]})]})});export{d as FormDialog};
1
+ import{cn as e}from"../utils-D9AH0PUV.js";import{Button as t}from"../button-tXV0dTFU.js";import"../alert-dialog-Cj5WqA7x.js";import"../error-dialog-CTPWuLNO.js";import"../label-D1XmKlc3.js";import"../form-63w5ez51.js";import{FormWrapper as n}from"../form-wrapper-pnkjBZnM.js";import{Dialog as r,DialogContent as i,DialogDescription as a,DialogFooter as o,DialogHeader as s,DialogTitle as c}from"../dialog-YTzM43YA.js";import{jsx as l,jsxs as u}from"react/jsx-runtime";const d=({form:d,open:f,isSubmitting:p=!1,isResetAfterSubmit:m=!0,disableSubmit:h=!1,title:g,description:_,className:v,onOpenChange:y,onSubmit:b,onError:x,onReset:S,children:C})=>l(r,{open:f,onOpenChange:y,children:u(i,{className:e(`flex flex-col gap-0 border-none p-0`,v),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:[u(s,{className:`border-border-weak flex-0 gap-2 border-b p-6 pb-4`,children:[l(c,{children:g||`Form Dialog`}),l(a,{children:_||`This is a form dialog where you can add your form elements.`})]}),u(n,{form:d,isResetAfterSubmit:m,className:`flex flex-1 flex-col overflow-y-auto`,onSubmit:b,onError:x,children:[l(`div`,{className:`bg-muted-muted size-full p-2 inset-shadow-sm`,children:l(`main`,{className:`bg-card shadow-card size-full flex-1 overflow-y-auto rounded-md`,children:C})}),u(o,{className:`border-border-weak border-t p-6 pt-4`,children:[l(t,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-full rounded-full sm:w-30`,onClick:S,children:`Reset`}),l(t,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:p,disabled:h,className:`w-full rounded-full sm:w-30`,children:`Submit`})]})]})]})});export{d as FormDialog};
2
2
  //# sourceMappingURL=form-dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-dialog.js","names":[],"sources":["../../packages/components/dialogs/form-dialog.tsx"],"sourcesContent":["import type { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from 'react-hook-form'\n\nimport { cn } from '@/lib/utils'\n\nimport { FormWrapper } from '../forms/form-wrapper'\nimport { Button } from '../ui/button'\nimport { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '../ui/dialog'\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n form: UseFormProps<TFieldValues>\n\n open: boolean\n isSubmitting?: boolean\n isResetAfterSubmit?: boolean\n disableSubmit?: boolean\n title?: string\n description?: string\n className?: string\n\n onOpenChange: (open: boolean) => void\n onSubmit: (data: TFieldValues, formState: FormState<FieldValues>, dirtyFields: FormState<FieldValues>['dirtyFields']) => void | Promise<void>\n onError?: SubmitErrorHandler<TFieldValues>\n onReset?: () => void\n}\nexport const FormDialog = <TFieldValues extends FieldValues = FieldValues>({\n form,\n open,\n isSubmitting = false,\n isResetAfterSubmit = true,\n disableSubmit = false,\n title,\n description,\n className,\n\n onOpenChange,\n onSubmit,\n onError,\n onReset,\n children,\n}: React.PropsWithChildren<Props<TFieldValues>>) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent\n className={cn('flex flex-col gap-0 border-none p-0', className)}\n onInteractOutside={(e) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n <DialogHeader className=\"border-border-weak flex-0 gap-2 border-b p-6 pb-4\">\n <DialogTitle>{title || 'Form Dialog'}</DialogTitle>\n <DialogDescription>{description || 'This is a form dialog where you can add your form elements.'}</DialogDescription>\n </DialogHeader>\n <FormWrapper\n form={form}\n isResetAfterSubmit={isResetAfterSubmit}\n className=\"flex flex-1 flex-col overflow-y-auto pt-4\"\n onSubmit={onSubmit}\n onError={onError}\n >\n <main className=\"flex-1 overflow-y-auto px-6\">{children}</main>\n <DialogFooter className=\"border-border-weak border-t p-6 pt-4\">\n <Button tabIndex={-1} type=\"button\" variant=\"outline\" color=\"muted\" className=\"w-full rounded-full sm:w-30\" onClick={onReset}>\n Reset\n </Button>\n <Button autoFocus tabIndex={0} type=\"submit\" isLoading={isSubmitting} disabled={disableSubmit} className=\"w-full rounded-full sm:w-30\">\n Submit\n </Button>\n </DialogFooter>\n </FormWrapper>\n </DialogContent>\n </Dialog>\n )\n}\n"],"mappings":"odAwBA,MAAa,GAA8D,CACzE,OACA,OACA,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,QACA,cACA,YAEA,eACA,WACA,UACA,UACA,cAGE,EAAC,EAAA,CAAa,OAAoB,wBAChC,EAAC,EAAA,CACC,UAAW,EAAG,sCAAuC,GACrD,kBAAoB,GAAM,CACxB,EAAE,iBACF,EAAE,6BAGJ,EAAC,EAAA,CAAa,UAAU,8DACtB,EAAC,EAAA,CAAA,SAAa,GAAS,gBACvB,EAAC,EAAA,CAAA,SAAmB,GAAe,mEAErC,EAAC,EAAA,CACO,OACc,qBACpB,UAAU,4CACA,WACD,oBAET,EAAC,OAAA,CAAK,UAAU,8BAA+B,aAC/C,EAAC,EAAA,CAAa,UAAU,iDACtB,EAAC,EAAA,CAAO,SAAU,GAAI,KAAK,SAAS,QAAQ,UAAU,MAAM,QAAQ,UAAU,8BAA8B,QAAS,WAAS,UAG9H,EAAC,EAAA,CAAO,UAAA,GAAU,SAAU,EAAG,KAAK,SAAS,UAAW,EAAc,SAAU,EAAe,UAAU,uCAA8B"}
1
+ {"version":3,"file":"form-dialog.js","names":[],"sources":["../../packages/components/dialogs/form-dialog.tsx"],"sourcesContent":["import type { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from 'react-hook-form'\n\nimport { cn } from '@/lib/utils'\n\nimport { FormWrapper } from '../forms/form-wrapper'\nimport { Button } from '../ui/button'\nimport { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '../ui/dialog'\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n form: UseFormProps<TFieldValues>\n\n open: boolean\n isSubmitting?: boolean\n isResetAfterSubmit?: boolean\n disableSubmit?: boolean\n title?: string\n description?: string\n className?: string\n\n onOpenChange: (open: boolean) => void\n onSubmit: (data: TFieldValues, formState: FormState<FieldValues>, dirtyFields: FormState<FieldValues>['dirtyFields']) => void | Promise<void>\n onError?: SubmitErrorHandler<TFieldValues>\n onReset?: () => void\n}\nexport const FormDialog = <TFieldValues extends FieldValues = FieldValues>({\n form,\n open,\n isSubmitting = false,\n isResetAfterSubmit = true,\n disableSubmit = false,\n title,\n description,\n className,\n\n onOpenChange,\n onSubmit,\n onError,\n onReset,\n children,\n}: React.PropsWithChildren<Props<TFieldValues>>) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent\n className={cn('flex flex-col gap-0 border-none p-0', className)}\n onInteractOutside={(e) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n <DialogHeader className=\"border-border-weak flex-0 gap-2 border-b p-6 pb-4\">\n <DialogTitle>{title || 'Form Dialog'}</DialogTitle>\n <DialogDescription>{description || 'This is a form dialog where you can add your form elements.'}</DialogDescription>\n </DialogHeader>\n <FormWrapper form={form} isResetAfterSubmit={isResetAfterSubmit} className=\"flex flex-1 flex-col overflow-y-auto\" onSubmit={onSubmit} onError={onError}>\n <div className=\"bg-muted-muted size-full p-2 inset-shadow-sm\">\n <main className=\"bg-card shadow-card size-full flex-1 overflow-y-auto rounded-md\">{children}</main>\n </div>\n <DialogFooter className=\"border-border-weak border-t p-6 pt-4\">\n <Button tabIndex={-1} type=\"button\" variant=\"outline\" color=\"muted\" className=\"w-full rounded-full sm:w-30\" onClick={onReset}>\n Reset\n </Button>\n <Button autoFocus tabIndex={0} type=\"submit\" isLoading={isSubmitting} disabled={disableSubmit} className=\"w-full rounded-full sm:w-30\">\n Submit\n </Button>\n </DialogFooter>\n </FormWrapper>\n </DialogContent>\n </Dialog>\n )\n}\n"],"mappings":"odAwBA,MAAa,GAA8D,CACzE,OACA,OACA,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,QACA,cACA,YAEA,eACA,WACA,UACA,UACA,cAGE,EAAC,EAAA,CAAa,OAAoB,wBAChC,EAAC,EAAA,CACC,UAAW,EAAG,sCAAuC,GACrD,kBAAoB,GAAM,CACxB,EAAE,iBACF,EAAE,6BAGJ,EAAC,EAAA,CAAa,UAAU,8DACtB,EAAC,EAAA,CAAA,SAAa,GAAS,gBACvB,EAAC,EAAA,CAAA,SAAmB,GAAe,mEAErC,EAAC,EAAA,CAAkB,OAA0B,qBAAoB,UAAU,uCAAiD,WAAmB,oBAC7I,EAAC,MAAA,CAAI,UAAU,wDACb,EAAC,OAAA,CAAK,UAAU,kEAAmE,eAErF,EAAC,EAAA,CAAa,UAAU,iDACtB,EAAC,EAAA,CAAO,SAAU,GAAI,KAAK,SAAS,QAAQ,UAAU,MAAM,QAAQ,UAAU,8BAA8B,QAAS,WAAS,UAG9H,EAAC,EAAA,CAAO,UAAA,GAAU,SAAU,EAAG,KAAK,SAAS,UAAW,EAAc,SAAU,EAAe,UAAU,uCAA8B"}