@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
@@ -1,4 +1,4 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import*as React from'react';import*as DropdownMenuPrimitive from'@radix-ui/react-dropdown-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 DropdownMenu = DropdownMenuPrimitive.Root;
1
+ import*as React from'react';import*as DropdownMenuPrimitive from'@radix-ui/react-dropdown-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 DropdownMenu = DropdownMenuPrimitive.Root;
2
2
  const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
3
3
  const DropdownMenuGroup = DropdownMenuPrimitive.Group;
4
4
  const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
@@ -9,19 +9,18 @@ const DropdownMenuSubTrigger = React.forwardRef(({
9
9
  inset,
10
10
  children,
11
11
  ...props
12
- }, ref) => jsxs(DropdownMenuPrimitive.SubTrigger, {
12
+ }, ref) => React.createElement(DropdownMenuPrimitive.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 data-[state=open]:bg-accent', 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
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
21
20
  const DropdownMenuSubContent = React.forwardRef(({
22
21
  className,
23
22
  ...props
24
- }, ref) => jsx(DropdownMenuPrimitive.SubContent, {
23
+ }, ref) => React.createElement(DropdownMenuPrimitive.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-lg 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
@@ -31,20 +30,18 @@ const DropdownMenuContent = React.forwardRef(({
31
30
  className,
32
31
  sideOffset = 4,
33
32
  ...props
34
- }, ref) => jsx(DropdownMenuPrimitive.Portal, {
35
- children: jsx(DropdownMenuPrimitive.Content, {
36
- ref: ref,
37
- sideOffset: sideOffset,
38
- 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),
39
- ...props
40
- })
41
- }));
33
+ }, ref) => React.createElement(DropdownMenuPrimitive.Portal, null, React.createElement(DropdownMenuPrimitive.Content, {
34
+ ref: ref,
35
+ sideOffset: sideOffset,
36
+ 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),
37
+ ...props
38
+ })));
42
39
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
43
40
  const DropdownMenuItem = React.forwardRef(({
44
41
  className,
45
42
  inset,
46
43
  ...props
47
- }, ref) => jsx(DropdownMenuPrimitive.Item, {
44
+ }, ref) => React.createElement(DropdownMenuPrimitive.Item, {
48
45
  ref: ref,
49
46
  className: cn('relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', inset && 'pl-8', className),
50
47
  ...props
@@ -55,44 +52,36 @@ const DropdownMenuCheckboxItem = React.forwardRef(({
55
52
  children,
56
53
  checked,
57
54
  ...props
58
- }, ref) => jsxs(DropdownMenuPrimitive.CheckboxItem, {
55
+ }, ref) => React.createElement(DropdownMenuPrimitive.CheckboxItem, {
59
56
  ref: ref,
60
57
  className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
61
58
  checked: checked,
62
- ...props,
63
- children: [jsx("span", {
64
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
65
- children: jsx(DropdownMenuPrimitive.ItemIndicator, {
66
- children: jsx(Check, {
67
- className: "h-4 w-4"
68
- })
69
- })
70
- }), children]
71
- }));
59
+ ...props
60
+ }, React.createElement("span", {
61
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
62
+ }, React.createElement(DropdownMenuPrimitive.ItemIndicator, null, React.createElement(Check, {
63
+ className: "h-4 w-4"
64
+ }))), children));
72
65
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
73
66
  const DropdownMenuRadioItem = React.forwardRef(({
74
67
  className,
75
68
  children,
76
69
  ...props
77
- }, ref) => jsxs(DropdownMenuPrimitive.RadioItem, {
70
+ }, ref) => React.createElement(DropdownMenuPrimitive.RadioItem, {
78
71
  ref: ref,
79
72
  className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
80
- ...props,
81
- children: [jsx("span", {
82
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
83
- children: jsx(DropdownMenuPrimitive.ItemIndicator, {
84
- children: jsx(Circle, {
85
- className: "h-2 w-2 fill-current"
86
- })
87
- })
88
- }), children]
89
- }));
73
+ ...props
74
+ }, React.createElement("span", {
75
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
76
+ }, React.createElement(DropdownMenuPrimitive.ItemIndicator, null, React.createElement(Circle, {
77
+ className: "h-2 w-2 fill-current"
78
+ }))), children));
90
79
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
91
80
  const DropdownMenuLabel = React.forwardRef(({
92
81
  className,
93
82
  inset,
94
83
  ...props
95
- }, ref) => jsx(DropdownMenuPrimitive.Label, {
84
+ }, ref) => React.createElement(DropdownMenuPrimitive.Label, {
96
85
  ref: ref,
97
86
  className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
98
87
  ...props
@@ -101,7 +90,7 @@ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
101
90
  const DropdownMenuSeparator = React.forwardRef(({
102
91
  className,
103
92
  ...props
104
- }, ref) => jsx(DropdownMenuPrimitive.Separator, {
93
+ }, ref) => React.createElement(DropdownMenuPrimitive.Separator, {
105
94
  ref: ref,
106
95
  className: cn('-mx-1 my-1 h-px bg-muted', className),
107
96
  ...props
@@ -111,7 +100,7 @@ const DropdownMenuShortcut = ({
111
100
  className,
112
101
  ...props
113
102
  }) => {
114
- return jsx("span", {
103
+ return React.createElement("span", {
115
104
  className: cn('ml-auto text-xs tracking-widest opacity-60', className),
116
105
  ...props
117
106
  });
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.js","sources":["../../src/shardui/dropdown-menu.tsx"],"sourcesContent":[null],"names":["_jsxs"],"mappings":"qSAYA,MAAA,YAAM,GAAA,qBAAkB,CAAA;AAExB,MAAA,mBAAM,GAAA,qBAAe,CAAA;AAErB,MAAA,iBAAM,GAAA,qBAAsB,CAAA;AAE5B,MAAA,kBAAM,GAAA,qBAAsB,CAAA;qBAGL,GAAA,qBAAA,CAAA;oDAepB,CAAA;AAGH,MAAA,sBAAM,GAAA,KAAsB,CAAA,UAAA,CAAA,CAAA;AAe5B,EAAA,SAAA;AAkBA,EAAA,KAAA;;;AAkBA,CAAA,EAAA,GAAA,KAAAA,IAAM,CAAA,qBAAwB,CAAA,UAAA,EAAA;AAuB9B,EAAA,GAAA,EAAA,GAAA;AAsBA,EAAA,aAAM,CAAA,sIAAiB,EAAA,KAAA,IAAA,MAAA,EAAA,SAAA,CAAA;;uCAWrB,EAAC;AAGH,IAAA,SAAA,EAAM;AAQN,GAAA,CAAA;AAAuD,CAAA,CAAA;;AAErD,MAAA,sBAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAGF,EAAA,SACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"dropdown-menu.js","sources":["../../src/shardui/dropdown-menu.tsx"],"sourcesContent":[null],"names":[],"mappings":"4PAUA,MAAA,YAAM,GAAA,qBAAiB,CAAA;AAEvB,MAAA,mBAAM,GAAA,qBAAkB,CAAA;AAExB,MAAA,iBAAM,GAAA,qBAAe,CAAA;AAErB,MAAA,kBAAM,GAAA,qBAAsB,CAAA;AAE5B,MAAA,eAAM,GAAA,qBAAsB,CAAA;4BAGL,GAAA,qBAAA,CAAA;+CAepB,CAAA,CAAA;AAGH,EAAA,SAAA;AAeA,EAAA,KAAA;AAkBA,EAAA;;oDAeG,CAAA,UAAA,EAAA;AAGH,EAAA,GAAA,EAAA,GAAA;AAuBA,EAAA,SAAA,EAAA,EAAM,CAAA,sIAAqB,EAAA,KAAA,IAAA,MAAA,EAAA,SAAA,CAAA;AAsB3B,EAAA,GAAA;aAGgB,KAAA,CAAO,aAAA,CAAA,YAAA,EAAA;;AAWvB,CAAA,CAAA,CAAA;AAQA,sBAAM,CAAA,WAAoB,GAAA,qBAAA,CAAA,UAAA,CAAA,WAAA;AAA6B,MAAA,sBAAA,GAAA,KAAM,CAAA,UAAA,CAAA,CAAA;;EAE3D,GAAA;AAGF,CAAA,EAAA,GAAA,KACI,KAAA,CAAA,aACA,CAAA,qBACA,CAAA,UAAmB,EACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import * as LabelPrimitive from '@radix-ui/react-label';
3
3
  import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
4
4
  declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
5
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
6
6
  declare const useFormField: () => {
7
7
  invalid: boolean;
8
8
  isDirty: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/shardui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAc,eAAe,EAAE,SAAS,EAAE,WAAW,EAAgC,MAAM,iBAAiB,CAAC;AAKpH,QAAA,MAAM,IAAI,4MAAe,CAAC;AAW1B,QAAA,MAAM,SAAS,GACX,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EACjE,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAQF,QAAA,MAAM,QAAQ,6GAUb,CAAC;AAGF,QAAA,MAAM,SAAS,yJAOb,CAAC;AAGH,QAAA,MAAM,WAAW,8JAchB,CAAC;AAGF,QAAA,MAAM,eAAe,yHAQpB,CAAC;AAGF,QAAA,MAAM,WAAW,yHAoBhB,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/shardui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAc,eAAe,EAAE,SAAS,EAAE,WAAW,EAAgC,MAAM,iBAAiB,CAAC;AAKpH,QAAA,MAAM,IAAI,4MAAe,CAAC;AAW1B,QAAA,MAAM,SAAS,GACX,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EACjE,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,sBAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAQF,QAAA,MAAM,QAAQ,6GAUb,CAAC;AAGF,QAAA,MAAM,SAAS,yJAOb,CAAC;AAGH,QAAA,MAAM,WAAW,8JAchB,CAAC;AAGF,QAAA,MAAM,eAAe,yHAQpB,CAAC;AAGF,QAAA,MAAM,WAAW,yHAoBhB,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
@@ -1,16 +1,15 @@
1
- import {jsx}from'react/jsx-runtime';import*as React from'react';import {Slot}from'@radix-ui/react-slot';import {useFormContext,FormProvider,Controller}from'react-hook-form';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {Label}from'./label.js';const Form = FormProvider;
1
+ import*as React from'react';import {Slot}from'@radix-ui/react-slot';import {useFormContext,FormProvider,Controller}from'react-hook-form';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {Label}from'./label.js';const Form = FormProvider;
2
2
  const FormFieldContext = React.createContext({});
3
3
  const FormField = ({
4
4
  ...props
5
5
  }) => {
6
- return jsx(FormFieldContext.Provider, {
6
+ return React.createElement(FormFieldContext.Provider, {
7
7
  value: {
8
8
  name: props.name
9
- },
10
- children: jsx(Controller, {
11
- ...props
12
- })
13
- });
9
+ }
10
+ }, React.createElement(Controller, {
11
+ ...props
12
+ }));
14
13
  };
15
14
  const useFormField = () => {
16
15
  const fieldContext = React.useContext(FormFieldContext);
@@ -41,16 +40,15 @@ const FormItem = React.forwardRef(({
41
40
  ...props
42
41
  }, ref) => {
43
42
  const id = React.useId();
44
- return jsx(FormItemContext.Provider, {
43
+ return React.createElement(FormItemContext.Provider, {
45
44
  value: {
46
45
  id
47
- },
48
- children: jsx("div", {
49
- ref: ref,
50
- className: cn('space-y-2', className),
51
- ...props
52
- })
53
- });
46
+ }
47
+ }, React.createElement("div", {
48
+ ref: ref,
49
+ className: cn('space-y-2', className),
50
+ ...props
51
+ }));
54
52
  });
55
53
  FormItem.displayName = 'FormItem';
56
54
  const FormLabel = React.forwardRef(({
@@ -61,7 +59,7 @@ const FormLabel = React.forwardRef(({
61
59
  error,
62
60
  formItemId
63
61
  } = useFormField();
64
- return jsx(Label, {
62
+ return React.createElement(Label, {
65
63
  ref: ref,
66
64
  className: cn(error && 'text-destructive', className),
67
65
  htmlFor: formItemId,
@@ -78,7 +76,7 @@ const FormControl = React.forwardRef(({
78
76
  formDescriptionId,
79
77
  formMessageId
80
78
  } = useFormField();
81
- return jsx(Slot, {
79
+ return React.createElement(Slot, {
82
80
  ref: ref,
83
81
  id: formItemId,
84
82
  "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
@@ -94,7 +92,7 @@ const FormDescription = React.forwardRef(({
94
92
  const {
95
93
  formDescriptionId
96
94
  } = useFormField();
97
- return jsx("p", {
95
+ return React.createElement("p", {
98
96
  ref: ref,
99
97
  id: formDescriptionId,
100
98
  className: cn('text-sm text-muted-foreground', className),
@@ -115,12 +113,11 @@ const FormMessage = React.forwardRef(({
115
113
  if (!body) {
116
114
  return null;
117
115
  }
118
- return jsx("p", {
116
+ return React.createElement("p", {
119
117
  ref: ref,
120
118
  id: formMessageId,
121
119
  className: cn('text-sm font-medium text-destructive', className),
122
- ...props,
123
- children: body
124
- });
120
+ ...props
121
+ }, body);
125
122
  });
126
123
  FormMessage.displayName = 'FormMessage';export{Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage,useFormField};//# sourceMappingURL=form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.js","sources":["../../src/shardui/form.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;MAqDE,GAAA;AAQF,KAAA;AAaA,GAAA,CAAA;AAUA;AAiBA,MAAA,YAAM,GAAA,MAAA;AAWN,EAAA,MAAA,YAAM,GAAA,KAAW,CAAA,UAAA,CAAA,gBAAA,CAAA;AAuBjB,EAAA,iBAAS,GAAY,KAAM,CAAA,UAAU,CAAE,eAAW,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"form.js","sources":["../../src/shardui/form.tsx"],"sourcesContent":[null],"names":[],"mappings":"+QAgCA,MAAA;;;;;;;;;;;GAqBE,CAAA,CAAA;AAQF;AAaA,MAAA,YAAM,GAAA,MAAS;AAUf,EAAA,MAAA,YAAM,GAAA,KAAW,CAAA,UAAA,CAAA,gBAAA,CAAA;AAiBjB,EAAA,MAAA,WAAM,GAAA,KAAA,CAAA,UAAe,CAAA,eAAA,CAAA;AAWrB,EAAA,MAAA;AAuBA,IAAA,aAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,11 +1,11 @@
1
- import {jsx}from'react/jsx-runtime';import*as React from'react';import*as HoverCardPrimitive from'@radix-ui/react-hover-card';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const HoverCard = HoverCardPrimitive.Root;
1
+ import*as React from'react';import*as HoverCardPrimitive from'@radix-ui/react-hover-card';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const HoverCard = HoverCardPrimitive.Root;
2
2
  const HoverCardTrigger = HoverCardPrimitive.Trigger;
3
3
  const HoverCardContent = React.forwardRef(({
4
4
  className,
5
5
  align = 'center',
6
6
  sideOffset = 4,
7
7
  ...props
8
- }, ref) => jsx(HoverCardPrimitive.Content, {
8
+ }, ref) => React.createElement(HoverCardPrimitive.Content, {
9
9
  ref: ref,
10
10
  align: align,
11
11
  sideOffset: sideOffset,
@@ -1 +1 @@
1
- {"version":3,"file":"hover-card.js","sources":["../../src/shardui/hover-card.tsx"],"sourcesContent":[null],"names":[],"mappings":"qOASA,MAAA,SAAM,GAAA,kBAAgB,CAAA;AAiBtB,MAAA,qCAAsC,CAAA;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"hover-card.js","sources":["../../src/shardui/hover-card.tsx"],"sourcesContent":[null],"names":[],"mappings":"iMAOA,MAAA,SAAM,GAAA,kBAAgB,CAAA;AAEtB,MAAA,gBAAM,GAAA,kBAAgB,CAAA;AAiBtB,MAAA,mCAAsC,CAAA,CAAA;;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
- import {jsx,jsxs}from'react/jsx-runtime';import*as React from'react';import {OTPInput,OTPInputContext}from'input-otp';import {Dot}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const InputOTP = React.forwardRef(({
1
+ import*as React from'react';import {OTPInput,OTPInputContext}from'input-otp';import {Dot}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const InputOTP = React.forwardRef(({
2
2
  className,
3
3
  containerClassName,
4
4
  ...props
5
- }, ref) => jsx(OTPInput, {
5
+ }, ref) => React.createElement(OTPInput, {
6
6
  ref: ref,
7
7
  containerClassName: cn('flex items-center gap-2 has-[:disabled]:opacity-50', containerClassName),
8
8
  className: cn('disabled:cursor-not-allowed', className),
@@ -12,7 +12,7 @@ InputOTP.displayName = 'InputOTP';
12
12
  const InputOTPGroup = React.forwardRef(({
13
13
  className,
14
14
  ...props
15
- }, ref) => jsx("div", {
15
+ }, ref) => React.createElement("div", {
16
16
  ref: ref,
17
17
  className: cn('flex items-center', className),
18
18
  ...props
@@ -29,25 +29,22 @@ const InputOTPSlot = React.forwardRef(({
29
29
  hasFakeCaret,
30
30
  isActive
31
31
  } = inputOTPContext.slots[index];
32
- return jsxs("div", {
32
+ return React.createElement("div", {
33
33
  ref: ref,
34
34
  className: cn('relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md', isActive && 'z-10 ring-2 ring-ring ring-offset-background', className),
35
- ...props,
36
- children: [char, hasFakeCaret && jsx("div", {
37
- className: "pointer-events-none absolute inset-0 flex items-center justify-center",
38
- children: jsx("div", {
39
- className: "h-4 w-px animate-caret-blink bg-foreground duration-1000"
40
- })
41
- })]
42
- });
35
+ ...props
36
+ }, char, hasFakeCaret && React.createElement("div", {
37
+ className: "pointer-events-none absolute inset-0 flex items-center justify-center"
38
+ }, React.createElement("div", {
39
+ className: "h-4 w-px animate-caret-blink bg-foreground duration-1000"
40
+ })));
43
41
  });
44
42
  InputOTPSlot.displayName = 'InputOTPSlot';
45
43
  const InputOTPSeparator = React.forwardRef(({
46
44
  ...props
47
- }, ref) => jsx("div", {
45
+ }, ref) => React.createElement("div", {
48
46
  ref: ref,
49
47
  role: "separator",
50
- ...props,
51
- children: jsx(Dot, {})
52
- }));
48
+ ...props
49
+ }, React.createElement(Dot, null)));
53
50
  InputOTPSeparator.displayName = 'InputOTPSeparator';export{InputOTP,InputOTPGroup,InputOTPSeparator,InputOTPSlot};//# sourceMappingURL=input-otp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-otp.js","sources":["../../src/shardui/input-otp.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;oBAYK,EAAA;;;;;;;;;AAML,EAAA,GAAA;AAKA,CAAA,EAAA,GAAA;uBAE2D,GAAA,KAAA,CAAA,UAAA,CAAA,eAAA,CAAA;;AA0B3D,IAAA,IAAA;AASA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"input-otp.js","sources":["../../src/shardui/input-otp.tsx"],"sourcesContent":[null],"names":[],"mappings":";;oBAYY;;;;;;;;;;;;;;;;;;;;;;AAMZ,CAAA,EAAA,GAAA,KAAA;AAKA,EAAA,MAAA,eAAM,GAAY,KAAA,CAAA,UAAA,CAAA,eAAA,CAAA;;;AA4BlB,IAAA,YAAM;AASN,IAAA;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,9 @@
1
- import {jsx}from'react/jsx-runtime';import*as React from'react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Input = React.forwardRef(({
1
+ import*as React from'react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Input = React.forwardRef(({
2
2
  className,
3
3
  type,
4
4
  ...props
5
5
  }, ref) => {
6
- return jsx("input", {
6
+ return React.createElement("input", {
7
7
  type: type,
8
8
  className: cn('flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className),
9
9
  ref: ref,
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"input.js","sources":["../../src/shardui/input.tsx"],"sourcesContent":[null],"names":[],"mappings":"mIAqBA,MAAA,KAAS,GAAK,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as LabelPrimitive from '@radix-ui/react-label';
3
3
  import { type VariantProps } from 'class-variance-authority';
4
- declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLLabelElement>>;
4
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLLabelElement>>;
5
5
  export { Label };
6
6
  //# sourceMappingURL=label.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/shardui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,QAAA,MAAM,KAAK,gPAKT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/shardui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,QAAA,MAAM,KAAK,qPAKT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import {jsx}from'react/jsx-runtime';import*as React from'react';import*as LabelPrimitive from'@radix-ui/react-label';import {cva}from'class-variance-authority';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
1
+ import*as React from'react';import*as LabelPrimitive from'@radix-ui/react-label';import {cva}from'class-variance-authority';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
2
2
  const Label = React.forwardRef(({
3
3
  className,
4
4
  ...props
5
- }, ref) => jsx(LabelPrimitive.Root, {
5
+ }, ref) => React.createElement(LabelPrimitive.Root, {
6
6
  ref: ref,
7
7
  className: cn(labelVariants(), className),
8
8
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"label.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"file":"label.js","sources":["../../src/shardui/label.tsx"],"sourcesContent":[null],"names":[],"mappings":"mOAgBA,MAAA,aAAiB,GAAA,GAAA,CAAA,4FAAA,CAAA;;;;;;;;;"}
@@ -27,7 +27,7 @@ declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitiv
27
27
  } & React.RefAttributes<HTMLDivElement>>;
28
28
  declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
29
29
  declare const MenubarShortcut: {
30
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
30
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
31
31
  displayname: string;
32
32
  };
33
33
  export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
@@ -1,4 +1,4 @@
1
- import {jsx,jsxs}from'react/jsx-runtime';import*as React from'react';import*as MenubarPrimitive from'@radix-ui/react-menubar';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 MenubarMenu = MenubarPrimitive.Menu;
1
+ import*as React from'react';import*as MenubarPrimitive from'@radix-ui/react-menubar';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 MenubarMenu = MenubarPrimitive.Menu;
2
2
  const MenubarGroup = MenubarPrimitive.Group;
3
3
  const MenubarPortal = MenubarPrimitive.Portal;
4
4
  const MenubarSub = MenubarPrimitive.Sub;
@@ -6,7 +6,7 @@ const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
6
6
  const Menubar = React.forwardRef(({
7
7
  className,
8
8
  ...props
9
- }, ref) => jsx(MenubarPrimitive.Root, {
9
+ }, ref) => React.createElement(MenubarPrimitive.Root, {
10
10
  ref: ref,
11
11
  className: cn('flex h-10 items-center space-x-1 rounded-md border bg-background p-1', className),
12
12
  ...props
@@ -15,7 +15,7 @@ Menubar.displayName = MenubarPrimitive.Root.displayName;
15
15
  const MenubarTrigger = React.forwardRef(({
16
16
  className,
17
17
  ...props
18
- }, ref) => jsx(MenubarPrimitive.Trigger, {
18
+ }, ref) => React.createElement(MenubarPrimitive.Trigger, {
19
19
  ref: ref,
20
20
  className: cn('flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', className),
21
21
  ...props
@@ -26,19 +26,18 @@ const MenubarSubTrigger = React.forwardRef(({
26
26
  inset,
27
27
  children,
28
28
  ...props
29
- }, ref) => jsxs(MenubarPrimitive.SubTrigger, {
29
+ }, ref) => React.createElement(MenubarPrimitive.SubTrigger, {
30
30
  ref: ref,
31
31
  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),
32
- ...props,
33
- children: [children, jsx(ChevronRight, {
34
- className: "ml-auto h-4 w-4"
35
- })]
36
- }));
32
+ ...props
33
+ }, children, React.createElement(ChevronRight, {
34
+ className: "ml-auto h-4 w-4"
35
+ })));
37
36
  MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
38
37
  const MenubarSubContent = React.forwardRef(({
39
38
  className,
40
39
  ...props
41
- }, ref) => jsx(MenubarPrimitive.SubContent, {
40
+ }, ref) => React.createElement(MenubarPrimitive.SubContent, {
42
41
  ref: ref,
43
42
  className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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),
44
43
  ...props
@@ -50,22 +49,20 @@ const MenubarContent = React.forwardRef(({
50
49
  alignOffset = -4,
51
50
  sideOffset = 8,
52
51
  ...props
53
- }, ref) => jsx(MenubarPrimitive.Portal, {
54
- children: jsx(MenubarPrimitive.Content, {
55
- ref: ref,
56
- align: align,
57
- alignOffset: alignOffset,
58
- sideOffset: sideOffset,
59
- className: cn('z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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),
60
- ...props
61
- })
62
- }));
52
+ }, ref) => React.createElement(MenubarPrimitive.Portal, null, React.createElement(MenubarPrimitive.Content, {
53
+ ref: ref,
54
+ align: align,
55
+ alignOffset: alignOffset,
56
+ sideOffset: sideOffset,
57
+ className: cn('z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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),
58
+ ...props
59
+ })));
63
60
  MenubarContent.displayName = MenubarPrimitive.Content.displayName;
64
61
  const MenubarItem = React.forwardRef(({
65
62
  className,
66
63
  inset,
67
64
  ...props
68
- }, ref) => jsx(MenubarPrimitive.Item, {
65
+ }, ref) => React.createElement(MenubarPrimitive.Item, {
69
66
  ref: ref,
70
67
  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),
71
68
  ...props
@@ -76,44 +73,36 @@ const MenubarCheckboxItem = React.forwardRef(({
76
73
  children,
77
74
  checked,
78
75
  ...props
79
- }, ref) => jsxs(MenubarPrimitive.CheckboxItem, {
76
+ }, ref) => React.createElement(MenubarPrimitive.CheckboxItem, {
80
77
  ref: ref,
81
78
  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),
82
79
  checked: checked,
83
- ...props,
84
- children: [jsx("span", {
85
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
86
- children: jsx(MenubarPrimitive.ItemIndicator, {
87
- children: jsx(Check, {
88
- className: "h-4 w-4"
89
- })
90
- })
91
- }), children]
92
- }));
80
+ ...props
81
+ }, React.createElement("span", {
82
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
83
+ }, React.createElement(MenubarPrimitive.ItemIndicator, null, React.createElement(Check, {
84
+ className: "h-4 w-4"
85
+ }))), children));
93
86
  MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
94
87
  const MenubarRadioItem = React.forwardRef(({
95
88
  className,
96
89
  children,
97
90
  ...props
98
- }, ref) => jsxs(MenubarPrimitive.RadioItem, {
91
+ }, ref) => React.createElement(MenubarPrimitive.RadioItem, {
99
92
  ref: ref,
100
93
  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),
101
- ...props,
102
- children: [jsx("span", {
103
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
104
- children: jsx(MenubarPrimitive.ItemIndicator, {
105
- children: jsx(Circle, {
106
- className: "h-2 w-2 fill-current"
107
- })
108
- })
109
- }), children]
110
- }));
94
+ ...props
95
+ }, React.createElement("span", {
96
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
97
+ }, React.createElement(MenubarPrimitive.ItemIndicator, null, React.createElement(Circle, {
98
+ className: "h-2 w-2 fill-current"
99
+ }))), children));
111
100
  MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
112
101
  const MenubarLabel = React.forwardRef(({
113
102
  className,
114
103
  inset,
115
104
  ...props
116
- }, ref) => jsx(MenubarPrimitive.Label, {
105
+ }, ref) => React.createElement(MenubarPrimitive.Label, {
117
106
  ref: ref,
118
107
  className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
119
108
  ...props
@@ -122,7 +111,7 @@ MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
122
111
  const MenubarSeparator = React.forwardRef(({
123
112
  className,
124
113
  ...props
125
- }, ref) => jsx(MenubarPrimitive.Separator, {
114
+ }, ref) => React.createElement(MenubarPrimitive.Separator, {
126
115
  ref: ref,
127
116
  className: cn('-mx-1 my-1 h-px bg-muted', className),
128
117
  ...props
@@ -132,7 +121,7 @@ const MenubarShortcut = ({
132
121
  className,
133
122
  ...props
134
123
  }) => {
135
- return jsx("span", {
124
+ return React.createElement("span", {
136
125
  className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
137
126
  ...props
138
127
  });
@@ -1 +1 @@
1
- {"version":3,"file":"menubar.js","sources":["../../src/shardui/menubar.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;AAM0C,MAAA,aAAA,GAAA,gBAAA,CAAA;AAE1C,MAAA,UAAM,GAAA,gBAAY,CAAA;AAElB,MAAA,iBAAM,GAAA,gBAAa,CAAA;AAEnB,MAAA,OAAA,GAAM,KAAA,CAAA,UAAU,CAAA,CAAA;AAEhB,EAAA,SAAA;AAEA,EAAA,GAAA;AAYA,CAAA,EAAA,GAAA,KAAAA,GAAM,CAAA,gBAAc,CAAA,IAAA,EAAA;AAepB,EAAA,GAAA,EAAA;aAGgB,EAAA,CAAA,sEAAO,EAAA,SAAA,CAAA;;AAkBvB,CAAA,CAAA;AAeA,OAAA,CAAA,WAAM,GAAA,gBAAc,CAAA,IAAA,CAAA,WAAA;AAoBpB,MAAA,cAAM,GAAA,KAAW,CAAA,UAAA,CAAA,CAAA;;;AAkBjB,CAAA,EAAA,GAAA,KAAAA,GAAM,CAAA,gBAAA,CAAmB,OAAA,EAAA;AAuBzB,EAAA,GAAA,EAAA,GAAA;AAsBA,EAAA,aAAM,CAAA,wNAAY,EAAA,SAAA,CAAA;;;AAclB,cAAM,CAAA,WAAA,GAAA,gBAAgB,CAAA,OAAA,CAAA,WAAA;AAQtB,MAAA,iBAAM,GAAA,KAAe,CAAA,UAAA,CAAA,CAAA;AAA6B,EAAA,SAAA;;EAEhD,QAAA;AAGF,EAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"menubar.js","sources":["../../src/shardui/menubar.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;AAM0C,MAAA,UAAA,GAAA,gBAAA,CAAA;AAE1C,MAAA,iBAAM,GAAY,gBAAA,CAAA;AAElB,MAAA,OAAA,GAAM,KAAA,CAAA,UAAa,CAAA,CAAA;AAEnB,EAAA,SAAA;AAEA,EAAA,GAAA;AAEA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAO,CAAA,gBAAA,CAAA,IAAA,EAAA;AAYb,EAAA,GAAA,EAAA,GAAA;AAeA,EAAA,aAAM,CAAA,sEAAiB,EAAA,SAAA,CAAA;;;AAqBvB,OAAA,CAAA,WAAM,GAAA,gBAAiB,CAAA,IAAA,CAAA,WAAA;AAevB,MAAA,cAAM,GAAA,KAAc,CAAA,UAAA,CAAA,CAAA;AAoBpB,EAAA;;+CAeG,CAAA,OAAA,EAAA;AAGH,EAAA,GAAA,EAAA,GAAA;AAuBA,EAAA,SAAA,EAAA,EAAM,CAAA,wNAmBH,EAAA,SAAA,CAAA;AAGH,EAAA,GAAA;;6CAWG,CAAA,OAAA,CAAA,WAAA;AAGH,MAAA,iBAAM,GAAA,KAAgB,CAAA,UAAA,CAAA,CAAA;AAQtB,EAAA;AAAkD,EAAA,KAAA;;EAEhD,GAAA;AAGF,CAAA,EAAA,GAAA,KACI,KAAO,CAAA,cAEP,gBACA,CAAA,UAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,7 +3,7 @@ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
3
3
  declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
4
4
  declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
5
5
  declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
6
- declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp) => string;
6
+ declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/dist/types").ClassProp) => string;
7
7
  declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
8
  declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/shardui/navigation-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAM3E,QAAA,MAAM,cAAc,iKAYlB,CAAC;AAGH,QAAA,MAAM,kBAAkB,+KAStB,CAAC;AAGH,QAAA,MAAM,kBAAkB,uHAA+B,CAAC;AAExD,QAAA,MAAM,0BAA0B,wEAE/B,CAAC;AAEF,QAAA,MAAM,qBAAqB,oLAezB,CAAC;AAGH,QAAA,MAAM,qBAAqB,8KAYzB,CAAC;AAGH,QAAA,MAAM,kBAAkB,2HAA+B,CAAC;AAExD,QAAA,MAAM,sBAAsB,+KAc1B,CAAC;AAGH,QAAA,MAAM,uBAAuB,gLAc3B,CAAC;AAGH,OAAO,EACH,0BAA0B,EAC1B,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,GACzB,CAAC"}
1
+ {"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/shardui/navigation-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAM3E,QAAA,MAAM,cAAc,iKAYlB,CAAC;AAGH,QAAA,MAAM,kBAAkB,+KAStB,CAAC;AAGH,QAAA,MAAM,kBAAkB,uHAA+B,CAAC;AAExD,QAAA,MAAM,0BAA0B,6EAE/B,CAAC;AAEF,QAAA,MAAM,qBAAqB,oLAezB,CAAC;AAGH,QAAA,MAAM,qBAAqB,8KAYzB,CAAC;AAGH,QAAA,MAAM,kBAAkB,2HAA+B,CAAC;AAExD,QAAA,MAAM,sBAAsB,+KAc1B,CAAC;AAGH,QAAA,MAAM,uBAAuB,gLAc3B,CAAC;AAGH,OAAO,EACH,0BAA0B,EAC1B,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,GACzB,CAAC"}