@admin-layout/tailwind-ui 12.0.16-alpha.93 → 12.2.1-alpha.3

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 (207) hide show
  1. package/lib/components/Button/Button.d.ts +1 -1
  2. package/lib/components/Button/Button.d.ts.map +1 -1
  3. package/lib/components/Button/Button.js +6 -7
  4. package/lib/components/Button/Button.js.map +1 -1
  5. package/lib/components/DatePicker/DatePicker.js +139 -157
  6. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  7. package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts +2 -1
  8. package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
  9. package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +2 -2
  10. package/lib/components/ErrorHandlers/ErrorBoundary.d.ts +2 -1
  11. package/lib/components/ErrorHandlers/ErrorBoundary.d.ts.map +1 -1
  12. package/lib/components/ErrorHandlers/ErrorBoundary.js +28 -35
  13. package/lib/components/ErrorHandlers/ErrorBoundary.js.map +1 -1
  14. package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts +2 -1
  15. package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts.map +1 -1
  16. package/lib/components/ErrorHandlers/LayoutErrorBoundary.js +15 -20
  17. package/lib/components/ErrorHandlers/LayoutErrorBoundary.js.map +1 -1
  18. package/lib/components/ErrorPages/403.d.ts +2 -1
  19. package/lib/components/ErrorPages/403.d.ts.map +1 -1
  20. package/lib/components/ErrorPages/403.js +18 -26
  21. package/lib/components/ErrorPages/403.js.map +1 -1
  22. package/lib/components/ErrorPages/404.d.ts +2 -1
  23. package/lib/components/ErrorPages/404.d.ts.map +1 -1
  24. package/lib/components/ErrorPages/404.js +18 -26
  25. package/lib/components/ErrorPages/404.js.map +1 -1
  26. package/lib/components/ErrorPages/500.d.ts +2 -1
  27. package/lib/components/ErrorPages/500.d.ts.map +1 -1
  28. package/lib/components/ErrorPages/500.js +18 -26
  29. package/lib/components/ErrorPages/500.js.map +1 -1
  30. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +2 -1
  31. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -1
  32. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +19 -24
  33. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -1
  34. package/lib/components/OTP/OTPInput.js +30 -32
  35. package/lib/components/OTP/OTPInput.js.map +1 -1
  36. package/lib/components/OTP/OTPVerification.js +55 -75
  37. package/lib/components/OTP/OTPVerification.js.map +1 -1
  38. package/lib/components/OTP/SingleInput.js +2 -2
  39. package/lib/components/OTP/SingleInput.js.map +1 -1
  40. package/lib/components/PageContainer/PageContainer.js +22 -29
  41. package/lib/components/PageContainer/PageContainer.js.map +1 -1
  42. package/lib/components/PageLoading/index.js +7 -8
  43. package/lib/components/PageLoading/index.js.map +1 -1
  44. package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +2 -1
  45. package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -1
  46. package/lib/components/ReactTable/Table.d.ts +2 -1
  47. package/lib/components/ReactTable/Table.d.ts.map +1 -1
  48. package/lib/components/ReactTable/Table.js +71 -92
  49. package/lib/components/ReactTable/Table.js.map +1 -1
  50. package/lib/components/ReactTable/TableFilters.d.ts +3 -2
  51. package/lib/components/ReactTable/TableFilters.d.ts.map +1 -1
  52. package/lib/components/ReactTable/TableFilters.js +34 -40
  53. package/lib/components/ReactTable/TableFilters.js.map +1 -1
  54. package/lib/components/Search/SearchInput.d.ts +2 -1
  55. package/lib/components/Search/SearchInput.d.ts.map +1 -1
  56. package/lib/components/Search/SearchInput.js +13 -14
  57. package/lib/components/Search/SearchInput.js.map +1 -1
  58. package/lib/components/Select/Select.d.ts +6 -6
  59. package/lib/components/Select/Select.d.ts.map +1 -1
  60. package/lib/components/Select/Select.js +45 -60
  61. package/lib/components/Select/Select.js.map +1 -1
  62. package/lib/components/Spin/index.js +11 -14
  63. package/lib/components/Spin/index.js.map +1 -1
  64. package/lib/components/ThemeProvider/ThemeProvider.js +4 -5
  65. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
  66. package/lib/components/ThemeProvider/ThemeToggle.js +24 -27
  67. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -1
  68. package/lib/hooks/useToast.d.ts +1 -1
  69. package/lib/hooks/useToast.d.ts.map +1 -1
  70. package/lib/hooks/useToast.js +37 -46
  71. package/lib/hooks/useToast.js.map +1 -1
  72. package/lib/shardui/accordion.js +16 -20
  73. package/lib/shardui/accordion.js.map +1 -1
  74. package/lib/shardui/alert-dialog.d.ts +2 -2
  75. package/lib/shardui/alert-dialog.js +13 -15
  76. package/lib/shardui/alert-dialog.js.map +1 -1
  77. package/lib/shardui/alert.d.ts +1 -1
  78. package/lib/shardui/alert.d.ts.map +1 -1
  79. package/lib/shardui/alert.js +4 -4
  80. package/lib/shardui/alert.js.map +1 -1
  81. package/lib/shardui/avatar.js +4 -4
  82. package/lib/shardui/avatar.js.map +1 -1
  83. package/lib/shardui/badge.d.ts +2 -2
  84. package/lib/shardui/badge.d.ts.map +1 -1
  85. package/lib/shardui/badge.js +2 -2
  86. package/lib/shardui/badge.js.map +1 -1
  87. package/lib/shardui/breadcrumb.d.ts +2 -2
  88. package/lib/shardui/breadcrumb.js +16 -19
  89. package/lib/shardui/breadcrumb.js.map +1 -1
  90. package/lib/shardui/button.d.ts +1 -1
  91. package/lib/shardui/button.d.ts.map +1 -1
  92. package/lib/shardui/button.js +2 -2
  93. package/lib/shardui/button.js.map +1 -1
  94. package/lib/shardui/calendar.d.ts +1 -1
  95. package/lib/shardui/calendar.d.ts.map +1 -1
  96. package/lib/shardui/calendar.js +4 -4
  97. package/lib/shardui/card.js +7 -7
  98. package/lib/shardui/card.js.map +1 -1
  99. package/lib/shardui/carousel.js +33 -40
  100. package/lib/shardui/carousel.js.map +1 -1
  101. package/lib/shardui/chart.d.ts +1 -1
  102. package/lib/shardui/chart.d.ts.map +1 -1
  103. package/lib/shardui/chart.js +66 -81
  104. package/lib/shardui/chart.js.map +1 -1
  105. package/lib/shardui/checkbox.js +8 -10
  106. package/lib/shardui/checkbox.js.map +1 -1
  107. package/lib/shardui/command.d.ts +2 -2
  108. package/lib/shardui/command.d.ts.map +1 -1
  109. package/lib/shardui/command.js +24 -28
  110. package/lib/shardui/command.js.map +1 -1
  111. package/lib/shardui/context-menu.d.ts +1 -1
  112. package/lib/shardui/context-menu.js +30 -41
  113. package/lib/shardui/context-menu.js.map +1 -1
  114. package/lib/shardui/dialog.d.ts +2 -2
  115. package/lib/shardui/dialog.js +17 -22
  116. package/lib/shardui/dialog.js.map +1 -1
  117. package/lib/shardui/drawer.d.ts +3 -3
  118. package/lib/shardui/drawer.js +14 -17
  119. package/lib/shardui/drawer.js.map +1 -1
  120. package/lib/shardui/dropdown-menu.d.ts +1 -1
  121. package/lib/shardui/dropdown-menu.js +31 -42
  122. package/lib/shardui/dropdown-menu.js.map +1 -1
  123. package/lib/shardui/form.d.ts +1 -1
  124. package/lib/shardui/form.d.ts.map +1 -1
  125. package/lib/shardui/form.js +19 -22
  126. package/lib/shardui/form.js.map +1 -1
  127. package/lib/shardui/hover-card.js +2 -2
  128. package/lib/shardui/hover-card.js.map +1 -1
  129. package/lib/shardui/input-otp.js +13 -16
  130. package/lib/shardui/input-otp.js.map +1 -1
  131. package/lib/shardui/input.js +2 -2
  132. package/lib/shardui/input.js.map +1 -1
  133. package/lib/shardui/label.d.ts +1 -1
  134. package/lib/shardui/label.d.ts.map +1 -1
  135. package/lib/shardui/label.js +2 -2
  136. package/lib/shardui/label.js.map +1 -1
  137. package/lib/shardui/menubar.d.ts +1 -1
  138. package/lib/shardui/menubar.js +35 -46
  139. package/lib/shardui/menubar.js.map +1 -1
  140. package/lib/shardui/navigation-menu.d.ts +1 -1
  141. package/lib/shardui/navigation-menu.d.ts.map +1 -1
  142. package/lib/shardui/navigation-menu.js +24 -28
  143. package/lib/shardui/navigation-menu.js.map +1 -1
  144. package/lib/shardui/pagination.d.ts +5 -5
  145. package/lib/shardui/pagination.js +22 -30
  146. package/lib/shardui/pagination.js.map +1 -1
  147. package/lib/shardui/popover.js +8 -10
  148. package/lib/shardui/popover.js.map +1 -1
  149. package/lib/shardui/progress.js +9 -10
  150. package/lib/shardui/progress.js.map +1 -1
  151. package/lib/shardui/radio-group.js +9 -11
  152. package/lib/shardui/radio-group.js.map +1 -1
  153. package/lib/shardui/resizable.d.ts +5 -4
  154. package/lib/shardui/resizable.d.ts.map +1 -1
  155. package/lib/shardui/resizable.js +9 -11
  156. package/lib/shardui/resizable.js.map +1 -1
  157. package/lib/shardui/scroll-area.js +11 -14
  158. package/lib/shardui/scroll-area.js.map +1 -1
  159. package/lib/shardui/select.js +35 -49
  160. package/lib/shardui/select.js.map +1 -1
  161. package/lib/shardui/separator.js +2 -2
  162. package/lib/shardui/separator.js.map +1 -1
  163. package/lib/shardui/sheet.d.ts +3 -3
  164. package/lib/shardui/sheet.d.ts.map +1 -1
  165. package/lib/shardui/sheet.js +19 -24
  166. package/lib/shardui/sheet.js.map +1 -1
  167. package/lib/shardui/sidebar.d.ts +1 -1
  168. package/lib/shardui/sidebar.d.ts.map +1 -1
  169. package/lib/shardui/sidebar.js +88 -104
  170. package/lib/shardui/sidebar.js.map +1 -1
  171. package/lib/shardui/skeleton.d.ts +2 -1
  172. package/lib/shardui/skeleton.d.ts.map +1 -1
  173. package/lib/shardui/skeleton.js +2 -2
  174. package/lib/shardui/skeleton.js.map +1 -1
  175. package/lib/shardui/slider.js +10 -12
  176. package/lib/shardui/slider.js.map +1 -1
  177. package/lib/shardui/sonner.d.ts +2 -1
  178. package/lib/shardui/sonner.d.ts.map +1 -1
  179. package/lib/shardui/sonner.js +2 -2
  180. package/lib/shardui/sonner.js.map +1 -1
  181. package/lib/shardui/switch.js +6 -7
  182. package/lib/shardui/switch.js.map +1 -1
  183. package/lib/shardui/table.js +15 -16
  184. package/lib/shardui/table.js.map +1 -1
  185. package/lib/shardui/tabs.js +4 -4
  186. package/lib/shardui/tabs.js.map +1 -1
  187. package/lib/shardui/textarea.js +2 -2
  188. package/lib/shardui/textarea.js.map +1 -1
  189. package/lib/shardui/toast.d.ts +1 -1
  190. package/lib/shardui/toast.d.ts.map +1 -1
  191. package/lib/shardui/toast.js +11 -12
  192. package/lib/shardui/toast.js.map +1 -1
  193. package/lib/shardui/toaster.d.ts +2 -1
  194. package/lib/shardui/toaster.d.ts.map +1 -1
  195. package/lib/shardui/toaster.js +14 -21
  196. package/lib/shardui/toaster.js.map +1 -1
  197. package/lib/shardui/toggle-group.d.ts +2 -2
  198. package/lib/shardui/toggle-group.d.ts.map +1 -1
  199. package/lib/shardui/toggle-group.js +12 -15
  200. package/lib/shardui/toggle-group.js.map +1 -1
  201. package/lib/shardui/toggle.d.ts +2 -2
  202. package/lib/shardui/toggle.d.ts.map +1 -1
  203. package/lib/shardui/toggle.js +2 -2
  204. package/lib/shardui/toggle.js.map +1 -1
  205. package/lib/shardui/tooltip.js +2 -2
  206. package/lib/shardui/tooltip.js.map +1 -1
  207. package/package.json +3 -3
@@ -19,7 +19,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
19
19
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
20
  interface CommandDialogProps extends DialogProps {
21
21
  }
22
- declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
22
+ declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React.JSX.Element;
23
23
  declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
24
24
  ref?: React.Ref<HTMLInputElement>;
25
25
  } & {
@@ -76,7 +76,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
76
76
  forceMount?: boolean;
77
77
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
78
78
  declare const CommandShortcut: {
79
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
79
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
80
80
  displayName: string;
81
81
  };
82
82
  export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/shardui/command.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAO1D,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAYX,CAAC;AAGH,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CAUhE,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;0FAehB,CAAC;AAIH,QAAA,MAAM,WAAW;;;;;;;;sFASf,CAAC;AAIH,QAAA,MAAM,YAAY;;;;;;uJAGqF,CAAC;AAIxG,QAAA,MAAM,YAAY;;;;;;;;;;sFAYhB,CAAC;AAIH,QAAA,MAAM,gBAAgB;;;;;;sFAKpB,CAAC;AAGH,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAYf,CAAC;AAIH,QAAA,MAAM,eAAe;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAEtF,CAAC;AAGF,OAAO,EACH,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACnB,CAAC"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/shardui/command.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAO1D,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAYX,CAAC;AAGH,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,sBAUhE,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;0FAehB,CAAC;AAIH,QAAA,MAAM,WAAW;;;;;;;;sFASf,CAAC;AAIH,QAAA,MAAM,YAAY;;;;;;uJAGqF,CAAC;AAIxG,QAAA,MAAM,YAAY;;;;;;;;;;sFAYhB,CAAC;AAIH,QAAA,MAAM,gBAAgB;;;;;;sFAKpB,CAAC;AAGH,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAYf,CAAC;AAIH,QAAA,MAAM,eAAe;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAEtF,CAAC;AAGF,OAAO,EACH,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACnB,CAAC"}
@@ -1,7 +1,7 @@
1
- import {jsx,jsxs}from'react/jsx-runtime';import*as React from'react';import {Command as Command$1}from'cmdk';import {Search}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {Dialog,DialogContent}from'./dialog.js';const Command = React.forwardRef(({
1
+ import*as React from'react';import {Command as Command$1}from'cmdk';import {Search}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {Dialog,DialogContent}from'./dialog.js';const Command = React.forwardRef(({
2
2
  className,
3
3
  ...props
4
- }, ref) => jsx(Command$1, {
4
+ }, ref) => React.createElement(Command$1, {
5
5
  ref: ref,
6
6
  className: cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', className),
7
7
  ...props
@@ -11,42 +11,38 @@ const CommandDialog = ({
11
11
  children,
12
12
  ...props
13
13
  }) => {
14
- return jsx(Dialog, {
15
- ...props,
16
- children: jsx(DialogContent, {
17
- className: "overflow-hidden p-0 shadow-lg",
18
- children: jsx(Command, {
19
- className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
20
- children: children
21
- })
22
- })
23
- });
14
+ return React.createElement(Dialog, {
15
+ ...props
16
+ }, React.createElement(DialogContent, {
17
+ className: "overflow-hidden p-0 shadow-lg"
18
+ }, React.createElement(Command, {
19
+ className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"
20
+ }, children)));
24
21
  };
25
22
  const CommandInput = React.forwardRef(({
26
23
  className,
27
24
  ...props
28
- }, ref) => jsxs("div", {
25
+ }, ref) => React.createElement("div", {
29
26
  className: "flex items-center border-b px-3",
30
- "cmdk-input-wrapper": "",
31
- children: [jsx(Search, {
32
- className: "mr-2 h-4 w-4 shrink-0 opacity-50"
33
- }), jsx(Command$1.Input, {
34
- ref: ref,
35
- className: cn('flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50', className),
36
- ...props
37
- })]
38
- }));
27
+ "cmdk-input-wrapper": ""
28
+ }, React.createElement(Search, {
29
+ className: "mr-2 h-4 w-4 shrink-0 opacity-50"
30
+ }), React.createElement(Command$1.Input, {
31
+ ref: ref,
32
+ className: cn('flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50', className),
33
+ ...props
34
+ })));
39
35
  CommandInput.displayName = Command$1.Input.displayName;
40
36
  const CommandList = React.forwardRef(({
41
37
  className,
42
38
  ...props
43
- }, ref) => jsx(Command$1.List, {
39
+ }, ref) => React.createElement(Command$1.List, {
44
40
  ref: ref,
45
41
  className: cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className),
46
42
  ...props
47
43
  }));
48
44
  CommandList.displayName = Command$1.List.displayName;
49
- const CommandEmpty = React.forwardRef((props, ref) => jsx(Command$1.Empty, {
45
+ const CommandEmpty = React.forwardRef((props, ref) => React.createElement(Command$1.Empty, {
50
46
  ref: ref,
51
47
  className: "py-6 text-center text-sm",
52
48
  ...props
@@ -55,7 +51,7 @@ CommandEmpty.displayName = Command$1.Empty.displayName;
55
51
  const CommandGroup = React.forwardRef(({
56
52
  className,
57
53
  ...props
58
- }, ref) => jsx(Command$1.Group, {
54
+ }, ref) => React.createElement(Command$1.Group, {
59
55
  ref: ref,
60
56
  className: cn('overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground', className),
61
57
  ...props
@@ -64,7 +60,7 @@ CommandGroup.displayName = Command$1.Group.displayName;
64
60
  const CommandSeparator = React.forwardRef(({
65
61
  className,
66
62
  ...props
67
- }, ref) => jsx(Command$1.Separator, {
63
+ }, ref) => React.createElement(Command$1.Separator, {
68
64
  ref: ref,
69
65
  className: cn('-mx-1 h-px bg-border', className),
70
66
  ...props
@@ -73,7 +69,7 @@ CommandSeparator.displayName = Command$1.Separator.displayName;
73
69
  const CommandItem = React.forwardRef(({
74
70
  className,
75
71
  ...props
76
- }, ref) => jsx(Command$1.Item, {
72
+ }, ref) => React.createElement(Command$1.Item, {
77
73
  ref: ref,
78
74
  className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50", className),
79
75
  ...props
@@ -83,7 +79,7 @@ const CommandShortcut = ({
83
79
  className,
84
80
  ...props
85
81
  }) => {
86
- return jsx("span", {
82
+ return React.createElement("span", {
87
83
  className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
88
84
  ...props
89
85
  });
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sources":["../../src/shardui/command.tsx"],"sourcesContent":[null],"names":["_jsx","CommandPrimitive"],"mappings":";;;;;;;;;;;;;AAuBA,EAAA,OAAAA,GAAU,CAAA,MAAA,EAAA;AAAyC,IAAA,GAAA,KAAA;AAEnD,IAAA,UAAMA,GAAA,CAAA,aAAiB,EAAA;AAYvB,MAAA,SAAM,EAAA,+BAAY;;;;;;;;AAmBlB,MAAA,YAAM,GAAA,KAAW,CAAA,UAAA,CAAA,CAAA;;;;;;;;;AAajB,IAAA,GAAA;;;;;;;AAOA,EAAA;;;;;;;;;;;AAgBA,EAAA,GAAA;;;;;;;AAQA,EAAA,GAAA,EAAA;;;;;;;;;;;;;AAgBA,gBAAM,CAAA,WAAA,GAAeC,SAAA,CAAA,SAAA,CAAA,WAAA;AAA6B,MAAA,WAAA,GAAA,KAAA,CAAA,UAAM,CAAA,CAAA;;EAEtD,GAAA;AAGF,CAAA,EAAA,GAAA,KACID,GAAA,CAAOC,SACM,CACb,IAAA,EAAA;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"command.js","sources":["../../src/shardui/command.tsx"],"sourcesContent":[null],"names":["CommandPrimitive"],"mappings":";;;;;;;;;;;;;;AAuBA,IAAA,GAAA;AAAmD,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA;AAEnD,IAAA,WAAM;AAYN,GAAA,EAAA,mBAAM,CAAA,OAAY,EAAA;;;;;;;;AAmBlB,EAAA,4CAAiB;;;;;;;;;AAajB,wBAAM,GAAYA,SAAA,CAAA,KAAA,CAAA,WAAA;;;;;;;AAOlB,EAAA,GAAA;;;;;;;;;;;AAgBA,EAAA,GAAA;;;;;;;AAQA,MAAA,gBAAM,GAAW,KAAA,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;;AAgBjB,EAAA,GAAA,EAAA;AAAkD,EAAA,SAAA,EAAA,EAAA,CAAA,yPAAqC,EAAA,SAAA,CAAA;;CAEtF,CAAC;AAGF,WACI,CAAA,uBAEA,CAAA,IACA,CAAA,WAAW;;;;;;;;;;"}
@@ -21,7 +21,7 @@ declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenu
21
21
  } & React.RefAttributes<HTMLDivElement>>;
22
22
  declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
23
  declare const ContextMenuShortcut: {
24
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
24
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
25
25
  displayName: string;
26
26
  };
27
27
  export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
@@ -1,4 +1,4 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import*as React from'react';import*as ContextMenuPrimitive from'@radix-ui/react-context-menu';import {ChevronRight,Check,Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ContextMenu = ContextMenuPrimitive.Root;
1
+ import*as React from'react';import*as ContextMenuPrimitive from'@radix-ui/react-context-menu';import {ChevronRight,Check,Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ContextMenu = ContextMenuPrimitive.Root;
2
2
  const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
3
3
  const ContextMenuGroup = ContextMenuPrimitive.Group;
4
4
  const ContextMenuPortal = ContextMenuPrimitive.Portal;
@@ -9,19 +9,18 @@ const ContextMenuSubTrigger = React.forwardRef(({
9
9
  inset,
10
10
  children,
11
11
  ...props
12
- }, ref) => jsxs(ContextMenuPrimitive.SubTrigger, {
12
+ }, ref) => React.createElement(ContextMenuPrimitive.SubTrigger, {
13
13
  ref: ref,
14
14
  className: cn('flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', inset && 'pl-8', className),
15
- ...props,
16
- children: [children, jsx(ChevronRight, {
17
- className: "ml-auto h-4 w-4"
18
- })]
19
- }));
15
+ ...props
16
+ }, children, React.createElement(ChevronRight, {
17
+ className: "ml-auto h-4 w-4"
18
+ })));
20
19
  ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
21
20
  const ContextMenuSubContent = React.forwardRef(({
22
21
  className,
23
22
  ...props
24
- }, ref) => jsx(ContextMenuPrimitive.SubContent, {
23
+ }, ref) => React.createElement(ContextMenuPrimitive.SubContent, {
25
24
  ref: ref,
26
25
  className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
27
26
  ...props
@@ -30,19 +29,17 @@ ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
30
29
  const ContextMenuContent = React.forwardRef(({
31
30
  className,
32
31
  ...props
33
- }, ref) => jsx(ContextMenuPrimitive.Portal, {
34
- children: jsx(ContextMenuPrimitive.Content, {
35
- ref: ref,
36
- className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
37
- ...props
38
- })
39
- }));
32
+ }, ref) => React.createElement(ContextMenuPrimitive.Portal, null, React.createElement(ContextMenuPrimitive.Content, {
33
+ ref: ref,
34
+ className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
35
+ ...props
36
+ })));
40
37
  ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
41
38
  const ContextMenuItem = React.forwardRef(({
42
39
  className,
43
40
  inset,
44
41
  ...props
45
- }, ref) => jsx(ContextMenuPrimitive.Item, {
42
+ }, ref) => React.createElement(ContextMenuPrimitive.Item, {
46
43
  ref: ref,
47
44
  className: cn('relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', inset && 'pl-8', className),
48
45
  ...props
@@ -53,44 +50,36 @@ const ContextMenuCheckboxItem = React.forwardRef(({
53
50
  children,
54
51
  checked,
55
52
  ...props
56
- }, ref) => jsxs(ContextMenuPrimitive.CheckboxItem, {
53
+ }, ref) => React.createElement(ContextMenuPrimitive.CheckboxItem, {
57
54
  ref: ref,
58
55
  className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
59
56
  checked: checked,
60
- ...props,
61
- children: [jsx("span", {
62
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
63
- children: jsx(ContextMenuPrimitive.ItemIndicator, {
64
- children: jsx(Check, {
65
- className: "h-4 w-4"
66
- })
67
- })
68
- }), children]
69
- }));
57
+ ...props
58
+ }, React.createElement("span", {
59
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
60
+ }, React.createElement(ContextMenuPrimitive.ItemIndicator, null, React.createElement(Check, {
61
+ className: "h-4 w-4"
62
+ }))), children));
70
63
  ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
71
64
  const ContextMenuRadioItem = React.forwardRef(({
72
65
  className,
73
66
  children,
74
67
  ...props
75
- }, ref) => jsxs(ContextMenuPrimitive.RadioItem, {
68
+ }, ref) => React.createElement(ContextMenuPrimitive.RadioItem, {
76
69
  ref: ref,
77
70
  className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
78
- ...props,
79
- children: [jsx("span", {
80
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
81
- children: jsx(ContextMenuPrimitive.ItemIndicator, {
82
- children: jsx(Circle, {
83
- className: "h-2 w-2 fill-current"
84
- })
85
- })
86
- }), children]
87
- }));
71
+ ...props
72
+ }, React.createElement("span", {
73
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
74
+ }, React.createElement(ContextMenuPrimitive.ItemIndicator, null, React.createElement(Circle, {
75
+ className: "h-2 w-2 fill-current"
76
+ }))), children));
88
77
  ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
89
78
  const ContextMenuLabel = React.forwardRef(({
90
79
  className,
91
80
  inset,
92
81
  ...props
93
- }, ref) => jsx(ContextMenuPrimitive.Label, {
82
+ }, ref) => React.createElement(ContextMenuPrimitive.Label, {
94
83
  ref: ref,
95
84
  className: cn('px-2 py-1.5 text-sm font-semibold text-foreground', inset && 'pl-8', className),
96
85
  ...props
@@ -99,7 +88,7 @@ ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
99
88
  const ContextMenuSeparator = React.forwardRef(({
100
89
  className,
101
90
  ...props
102
- }, ref) => jsx(ContextMenuPrimitive.Separator, {
91
+ }, ref) => React.createElement(ContextMenuPrimitive.Separator, {
103
92
  ref: ref,
104
93
  className: cn('-mx-1 my-1 h-px bg-border', className),
105
94
  ...props
@@ -109,7 +98,7 @@ const ContextMenuShortcut = ({
109
98
  className,
110
99
  ...props
111
100
  }) => {
112
- return jsx("span", {
101
+ return React.createElement("span", {
113
102
  className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
114
103
  ...props
115
104
  });
@@ -1 +1 @@
1
- {"version":3,"file":"context-menu.js","sources":["../../src/shardui/context-menu.tsx"],"sourcesContent":[null],"names":["_jsxs"],"mappings":"mSAYA,MAAA,WAAM,GAAA,oBAAiB,CAAA;AAEvB,MAAA,kBAAM,GAAA,oBAAc,CAAA;AAEpB,MAAA,gBAAM,GAAA,oBAAqB,CAAA;AAE3B,MAAA,iBAAM,GAAA,oBAAqB,CAAA;oBAGJ,GAAA,oBAAA,CAAA;kDAepB,CAAA;AAGH,MAAA,qBAAM,GAAA,KAAqB,CAAA,UAAA,CAAA,CAAA;AAe3B,EAAA,SAAA;AAiBA,EAAA,KAAA;;;AAkBA,CAAA,EAAA,GAAA,KAAAA,IAAM,CAAA,oBAAuB,CAAA,UAAA,EAAA;AAuB7B,EAAA,GAAA,EAAA,GAAA;AAsBA,EAAA,aAAM,CAAA,4MAAgB,EAAA,KAAA,IAAA,MAAA,EAAA,SAAA,CAAA;;uCAWpB,EAAC;AAGH,IAAA,SAAA,EAAM;AAQN,GAAA,CAAA;AAAsD,CAAA,CAAA;;AAEpD,MAAA,qBAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAGF,EAAA,SACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"context-menu.js","sources":["../../src/shardui/context-menu.tsx"],"sourcesContent":[null],"names":[],"mappings":"0PAUA,MAAA,WAAM,GAAA,oBAAgB,CAAA;AAEtB,MAAA,kBAAM,GAAA,oBAAiB,CAAA;AAEvB,MAAA,gBAAM,GAAA,oBAAc,CAAA;AAEpB,MAAA,iBAAM,GAAA,oBAAqB,CAAA;AAE3B,MAAA,cAAM,GAAA,oBAAqB,CAAA;2BAGJ,GAAA,oBAAA,CAAA;8CAepB,CAAA,CAAA;AAGH,EAAA,SAAA;AAeA,EAAA,KAAA;AAiBA,EAAA;;mDAeG,CAAA,UAAA,EAAA;AAGH,EAAA,GAAA,EAAA,GAAA;AAuBA,EAAA,SAAA,EAAA,EAAM,CAAA,4MAmBH,EAAA,KAAA,IAAA,MAAA,EAAA,SAAA,CAAA;AAGH,EAAA,GAAA;aAGgB,KAAA,CAAO,aAAA,CAAA,YAAA,EAAA;;AAWvB,CAAA,CAAA,CAAA;AAQA,qBAAM,CAAA,WAAmB,GAAA,oBAAA,CAAA,UAAA,CAAA,WAAA;AAA6B,MAAA,qBAAA,GAAA,KAAK,CAAC,UAAA,CAAA,CAAA;;EAE1D,GAAA;AAGF,CAAA,EAAA,GAAA,KACI,KAAA,CAAA,aACA,CAAA,oBACA,CAAA,UACA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -7,11 +7,11 @@ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.Dialo
7
7
  declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
8
  declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const DialogHeader: {
10
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  declare const DialogFooter: {
14
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
15
15
  displayName: string;
16
16
  };
17
17
  declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
@@ -1,10 +1,10 @@
1
- import {jsx,jsxs}from'react/jsx-runtime';import*as React from'react';import*as DialogPrimitive from'@radix-ui/react-dialog';import {X}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Dialog = DialogPrimitive.Root;
1
+ import*as React from'react';import*as DialogPrimitive from'@radix-ui/react-dialog';import {X}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Dialog = DialogPrimitive.Root;
2
2
  const DialogTrigger = DialogPrimitive.Trigger;
3
3
  const DialogPortal = DialogPrimitive.Portal;
4
4
  const DialogOverlay = React.forwardRef(({
5
5
  className,
6
6
  ...props
7
- }, ref) => jsx(DialogPrimitive.Overlay, {
7
+ }, ref) => React.createElement(DialogPrimitive.Overlay, {
8
8
  ref: ref,
9
9
  className: cn('fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className),
10
10
  ...props
@@ -14,27 +14,22 @@ const DialogContent = React.forwardRef(({
14
14
  className,
15
15
  children,
16
16
  ...props
17
- }, ref) => jsxs(DialogPortal, {
18
- children: [jsx(DialogOverlay, {}), jsxs(DialogPrimitive.Content, {
19
- ref: ref,
20
- className: cn('fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg', className),
21
- ...props,
22
- children: [children, jsxs(DialogPrimitive.Close, {
23
- className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
24
- children: [jsx(X, {
25
- className: "h-4 w-4"
26
- }), jsx("span", {
27
- className: "sr-only",
28
- children: "Close"
29
- })]
30
- })]
31
- })]
32
- }));
17
+ }, ref) => React.createElement(DialogPortal, null, React.createElement(DialogOverlay, null), React.createElement(DialogPrimitive.Content, {
18
+ ref: ref,
19
+ className: cn('fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg', className),
20
+ ...props
21
+ }, children, React.createElement(DialogPrimitive.Close, {
22
+ className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
23
+ }, React.createElement(X, {
24
+ className: "h-4 w-4"
25
+ }), React.createElement("span", {
26
+ className: "sr-only"
27
+ }, "Close")))));
33
28
  DialogContent.displayName = DialogPrimitive.Content.displayName;
34
29
  const DialogHeader = ({
35
30
  className,
36
31
  ...props
37
- }) => jsx("div", {
32
+ }) => React.createElement("div", {
38
33
  className: cn('flex flex-col space-y-1.5 text-center sm:text-left', className),
39
34
  ...props
40
35
  });
@@ -42,7 +37,7 @@ DialogHeader.displayName = 'DialogHeader';
42
37
  const DialogFooter = ({
43
38
  className,
44
39
  ...props
45
- }) => jsx("div", {
40
+ }) => React.createElement("div", {
46
41
  className: cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className),
47
42
  ...props
48
43
  });
@@ -50,7 +45,7 @@ DialogFooter.displayName = 'DialogFooter';
50
45
  const DialogTitle = React.forwardRef(({
51
46
  className,
52
47
  ...props
53
- }, ref) => jsx(DialogPrimitive.Title, {
48
+ }, ref) => React.createElement(DialogPrimitive.Title, {
54
49
  ref: ref,
55
50
  className: cn('text-lg font-semibold leading-none tracking-tight', className),
56
51
  ...props
@@ -59,7 +54,7 @@ DialogTitle.displayName = DialogPrimitive.Title.displayName;
59
54
  const DialogDescription = React.forwardRef(({
60
55
  className,
61
56
  ...props
62
- }, ref) => jsx(DialogPrimitive.Description, {
57
+ }, ref) => React.createElement(DialogPrimitive.Description, {
63
58
  ref: ref,
64
59
  className: cn('text-sm text-muted-foreground', className),
65
60
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.js","sources":["../../src/shardui/dialog.tsx"],"sourcesContent":[null],"names":[],"mappings":"gQAYA,MAAA,MAAA,GAAM,eAAW,CAAA;AAEjB,MAAA,aAAM,GAAA,eAAa,CAAA;AAenB,MAAA,YAAM,GAAA,eAAa,CAAA;AAwB4B,MAAA,aAAA,GAAA,KAAA,CAAA,UAAM,CAAA,CAAA;;EAEnD,GAAA;AAGF,CAAA,EAAA,GAAA,QAAM,CAAA,eAAY,CAAA,OAAA,EAAA;AAA6B,EAAA,GAAA,EAAA,GAAA;;EAE7C,GAAA;AAGF,CAAA,CAAA;AAYA,aAAA,CAAM,WAAA,GAAA,eAAiB,CAAA,OAAA,CAAA,WAAA;AAQvB,MAAA,aAEI,GAAA,KAAA,CAAA,UACA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"dialog.js","sources":["../../src/shardui/dialog.tsx"],"sourcesContent":[null],"names":[],"mappings":"uNAUA,MAAA,MAAA,GAAM,eAAY,CAAA;AAElB,MAAA,aAAM,GAAA,eAAW,CAAA;AAEjB,MAAA,YAAM,GAAA,eAAa,CAAA;AAuCnB,MAAA,aAAM,GAAA,KAAY,CAAA,UAAA,CAAA,CAAA;AAA6B,EAAA,SAAA;;CAE9C,EAAC,GAAA,KAAA,KAAA,CAAA,aAAA,CAAA,eAAA,CAAA,OAAA,EAAA;AAGF,EAAA,GAAA,EAAA;AAA+C,EAAA,SAAA,EAAA,EAAA,CAAA,yJAAoC,EAAA,SAAA,CAAA;;CAElF,CAAC;AAGF,aAAA,CAAM,WAAW,GAAA,eAAA,CAAA,OAAA,CAAA,WAAA;AAYjB,MAAA,aAAM,GAAA,KAAA,CAAA,UAAiB,CAAA,CAAA;AAQvB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Drawer as DrawerPrimitive } from 'vaul';
3
3
  declare const Drawer: {
4
- ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  declare const DrawerTrigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -10,11 +10,11 @@ declare const DrawerClose: React.ForwardRefExoticComponent<import("@radix-ui/rea
10
10
  declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
11
  declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const DrawerHeader: {
13
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  declare const DrawerFooter: {
17
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
17
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
18
18
  displayName: string;
19
19
  };
20
20
  declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
@@ -1,7 +1,7 @@
1
- import {jsx,jsxs}from'react/jsx-runtime';import*as React from'react';import {Drawer as Drawer$1}from'vaul';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Drawer = ({
1
+ import*as React from'react';import {Drawer as Drawer$1}from'vaul';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Drawer = ({
2
2
  shouldScaleBackground = true,
3
3
  ...props
4
- }) => jsx(Drawer$1.Root, {
4
+ }) => React.createElement(Drawer$1.Root, {
5
5
  shouldScaleBackground: shouldScaleBackground,
6
6
  ...props
7
7
  });
@@ -12,7 +12,7 @@ const DrawerClose = Drawer$1.Close;
12
12
  const DrawerOverlay = React.forwardRef(({
13
13
  className,
14
14
  ...props
15
- }, ref) => jsx(Drawer$1.Overlay, {
15
+ }, ref) => React.createElement(Drawer$1.Overlay, {
16
16
  ref: ref,
17
17
  className: cn('fixed inset-0 z-50 bg-black/80', className),
18
18
  ...props
@@ -22,21 +22,18 @@ const DrawerContent = React.forwardRef(({
22
22
  className,
23
23
  children,
24
24
  ...props
25
- }, ref) => jsxs(DrawerPortal, {
26
- children: [jsx(DrawerOverlay, {}), jsxs(Drawer$1.Content, {
27
- ref: ref,
28
- className: cn('fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background', className),
29
- ...props,
30
- children: [jsx("div", {
31
- className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"
32
- }), children]
33
- })]
34
- }));
25
+ }, ref) => React.createElement(DrawerPortal, null, React.createElement(DrawerOverlay, null), React.createElement(Drawer$1.Content, {
26
+ ref: ref,
27
+ className: cn('fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background', className),
28
+ ...props
29
+ }, React.createElement("div", {
30
+ className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"
31
+ }), children)));
35
32
  DrawerContent.displayName = 'DrawerContent';
36
33
  const DrawerHeader = ({
37
34
  className,
38
35
  ...props
39
- }) => jsx("div", {
36
+ }) => React.createElement("div", {
40
37
  className: cn('grid gap-1.5 p-4 text-center sm:text-left', className),
41
38
  ...props
42
39
  });
@@ -44,7 +41,7 @@ DrawerHeader.displayName = 'DrawerHeader';
44
41
  const DrawerFooter = ({
45
42
  className,
46
43
  ...props
47
- }) => jsx("div", {
44
+ }) => React.createElement("div", {
48
45
  className: cn('mt-auto flex flex-col gap-2 p-4', className),
49
46
  ...props
50
47
  });
@@ -52,7 +49,7 @@ DrawerFooter.displayName = 'DrawerFooter';
52
49
  const DrawerTitle = React.forwardRef(({
53
50
  className,
54
51
  ...props
55
- }, ref) => jsx(Drawer$1.Title, {
52
+ }, ref) => React.createElement(Drawer$1.Title, {
56
53
  ref: ref,
57
54
  className: cn('text-lg font-semibold leading-none tracking-tight', className),
58
55
  ...props
@@ -61,7 +58,7 @@ DrawerTitle.displayName = Drawer$1.Title.displayName;
61
58
  const DrawerDescription = React.forwardRef(({
62
59
  className,
63
60
  ...props
64
- }, ref) => jsx(Drawer$1.Description, {
61
+ }, ref) => React.createElement(Drawer$1.Description, {
65
62
  ref: ref,
66
63
  className: cn('text-sm text-muted-foreground', className),
67
64
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.js","sources":["../../src/shardui/drawer.tsx"],"sourcesContent":[null],"names":["_jsx","DrawerPrimitive"],"mappings":";EAOE,qBAAA,GAAA,IAAA;AAGF,EAAA,GAAA;AAEA,CAAA,KAAAA,GAAA,CAAAC,QAAkB,CAAA,IAAA,EAAA;AAElB,EAAA,qBAAM,EAAW,qBAAA;AAEjB,EAAA,GAAA;AAQA,CAAA;AAqBA,MAAA,CAAA,WAAM,GAAA,QAAY;AAA6B,MAAA,aAAA,GAAAA,QAAM,CAAA;;AAEnD,MAAA,WAAA,GAAAA,QAAA,CAAA;AAGF,MAAA,aAAM,GAAA,KAAY,CAAA,UAAA,CAAA,CAAA;AAA6B,EAAA,SAAA;;CAE9C,EAAC,GAAA,KAAAD,GAAA,CAAAC,QAAA,CAAA,OAAA,EAAA;AAGF,EAAA,GAAA,EAAA,GAAA;AAYA,EAAA,SAAA,EAAA,EAAM,CAAA,gCAAiB,EAAA,SAAA,CAAA;AAQvB,EAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"drawer.js","sources":["../../src/shardui/drawer.tsx"],"sourcesContent":[null],"names":["DrawerPrimitive"],"mappings":"yKAK4D,MAAA,MAAA,GAAA,CAAA;;EAE1D,GAAA;AAGF,CAAA,KAAA,KAAA,CAAA,aAAM,CAAAA,QAAa,CAAA,IAAA,EAAA;AAEnB,EAAA,qBAAM,EAAA,qBAAY;AAElB,EAAA,GAAA;AAEA,CAAA;AAQA,MAAA,CAAA,WAAM,GAAA,QAAa;AAqBnB,MAAA,aAAM,GAAAA,QAAY,CAAA;AAA6B,MAAA,YAAA,GAAAA,QAAM,CAAA;;AAEnD,MAAA,aAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAGF,EAAA;AAA+C,EAAA,GAAA;;EAE7C,GAAA,EAAA,GAAA;AAGF,EAAA,SAAA,EAAA,EAAM,CAAA,gCAAW,EAAA,SAAA,CAAA;AAYjB,EAAA,GAAA;AAQA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,7 +21,7 @@ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMe
21
21
  } & React.RefAttributes<HTMLDivElement>>;
22
22
  declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
23
  declare const DropdownMenuShortcut: {
24
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
24
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
25
25
  displayName: string;
26
26
  };
27
27
  export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };