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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,18 +1,17 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import*as React from'react';import*as NavigationMenuPrimitive from'@radix-ui/react-navigation-menu';import {cva}from'class-variance-authority';import {ChevronDown}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const NavigationMenu = React.forwardRef(({
1
+ import*as React from'react';import*as NavigationMenuPrimitive from'@radix-ui/react-navigation-menu';import {cva}from'class-variance-authority';import {ChevronDown}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const NavigationMenu = React.forwardRef(({
2
2
  className,
3
3
  children,
4
4
  ...props
5
- }, ref) => jsxs(NavigationMenuPrimitive.Root, {
5
+ }, ref) => React.createElement(NavigationMenuPrimitive.Root, {
6
6
  ref: ref,
7
7
  className: cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className),
8
- ...props,
9
- children: [children, jsx(NavigationMenuViewport, {})]
10
- }));
8
+ ...props
9
+ }, children, React.createElement(NavigationMenuViewport, null)));
11
10
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
12
11
  const NavigationMenuList = React.forwardRef(({
13
12
  className,
14
13
  ...props
15
- }, ref) => jsx(NavigationMenuPrimitive.List, {
14
+ }, ref) => React.createElement(NavigationMenuPrimitive.List, {
16
15
  ref: ref,
17
16
  className: cn('group flex flex-1 list-none items-center justify-center space-x-1', className),
18
17
  ...props
@@ -24,20 +23,19 @@ const NavigationMenuTrigger = React.forwardRef(({
24
23
  className,
25
24
  children,
26
25
  ...props
27
- }, ref) => jsxs(NavigationMenuPrimitive.Trigger, {
26
+ }, ref) => React.createElement(NavigationMenuPrimitive.Trigger, {
28
27
  ref: ref,
29
28
  className: cn(navigationMenuTriggerStyle(), 'group', className),
30
- ...props,
31
- children: [children, ' ', jsx(ChevronDown, {
32
- className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
33
- "aria-hidden": "true"
34
- })]
35
- }));
29
+ ...props
30
+ }, children, ' ', React.createElement(ChevronDown, {
31
+ className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
32
+ "aria-hidden": "true"
33
+ })));
36
34
  NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
37
35
  const NavigationMenuContent = React.forwardRef(({
38
36
  className,
39
37
  ...props
40
- }, ref) => jsx(NavigationMenuPrimitive.Content, {
38
+ }, ref) => React.createElement(NavigationMenuPrimitive.Content, {
41
39
  ref: ref,
42
40
  className: cn('left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ', className),
43
41
  ...props
@@ -47,24 +45,22 @@ const NavigationMenuLink = NavigationMenuPrimitive.Link;
47
45
  const NavigationMenuViewport = React.forwardRef(({
48
46
  className,
49
47
  ...props
50
- }, ref) => jsx("div", {
51
- className: cn('absolute left-0 top-full flex justify-center'),
52
- children: jsx(NavigationMenuPrimitive.Viewport, {
53
- className: cn('origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]', className),
54
- ref: ref,
55
- ...props
56
- })
57
- }));
48
+ }, ref) => React.createElement("div", {
49
+ className: cn('absolute left-0 top-full flex justify-center')
50
+ }, React.createElement(NavigationMenuPrimitive.Viewport, {
51
+ className: cn('origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]', className),
52
+ ref: ref,
53
+ ...props
54
+ })));
58
55
  NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
59
56
  const NavigationMenuIndicator = React.forwardRef(({
60
57
  className,
61
58
  ...props
62
- }, ref) => jsx(NavigationMenuPrimitive.Indicator, {
59
+ }, ref) => React.createElement(NavigationMenuPrimitive.Indicator, {
63
60
  ref: ref,
64
61
  className: cn('top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in', className),
65
- ...props,
66
- children: jsx("div", {
67
- className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"
68
- })
69
- }));
62
+ ...props
63
+ }, React.createElement("div", {
64
+ className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"
65
+ })));
70
66
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;export{NavigationMenu,NavigationMenuContent,NavigationMenuIndicator,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NavigationMenuViewport,navigationMenuTriggerStyle};//# sourceMappingURL=navigation-menu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.js","sources":["../../src/shardui/navigation-menu.tsx"],"sourcesContent":[null],"names":["_jsxs"],"mappings":"sUAwCA,MAAA,cAAM,GAAA,KAAA,CAAA,UAAqB,CAAA,CAAA;AAkB3B,EAAA,SAAA;AAeA,EAAA,QAAA;AAEA,EAAA,GAAA;AAiBA,CAAA,EAAA,GAAA,KAAAA,IAAM,CAAA,uBAAuB,CAAA,IAAA,EAAA;AAiB7B,EAAA,GAAA,EAAO,GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"navigation-menu.js","sources":["../../src/shardui/navigation-menu.tsx"],"sourcesContent":[null],"names":[],"mappings":"6RAoCA,MAAA,cAAM,GAAA,KAAA,CAAA,UAAA,CAA0B,CAAA;AAIhC,EAAA,SAAA;AAkBA,EAAA,QAAA;AAeA,EAAA,GAAA;AAEA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAA,CAAA,uBAAsB,CAAA,IAAA,EAAA;AAiB5B,EAAA,GAAA,EAAA,GAAA;AAiBA,EAAA,SACI,EAAA,EAAA,CAAA,iEAGA,EAAA,SAAkB,CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ButtonProps } from './button';
3
3
  declare const Pagination: {
4
- ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
4
+ ({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
@@ -10,19 +10,19 @@ type PaginationLinkProps = {
10
10
  isActive?: boolean;
11
11
  } & Pick<ButtonProps, 'size'> & React.ComponentProps<'a'>;
12
12
  declare const PaginationLink: {
13
- ({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
13
+ ({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  declare const PaginationPrevious: {
17
- ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
17
+ ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
18
18
  displayName: string;
19
19
  };
20
20
  declare const PaginationNext: {
21
- ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
21
+ ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
22
22
  displayName: string;
23
23
  };
24
24
  declare const PaginationEllipsis: {
25
- ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
25
+ ({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
26
26
  displayName: string;
27
27
  };
28
28
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
@@ -1,7 +1,7 @@
1
- import {jsx,jsxs}from'react/jsx-runtime';import*as React from'react';import {MoreHorizontal,ChevronRight,ChevronLeft}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {buttonVariants}from'./button.js';const Pagination = ({
1
+ import*as React from'react';import {MoreHorizontal,ChevronRight,ChevronLeft}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {buttonVariants}from'./button.js';const Pagination = ({
2
2
  className,
3
3
  ...props
4
- }) => jsx("nav", {
4
+ }) => React.createElement("nav", {
5
5
  role: "navigation",
6
6
  "aria-label": "pagination",
7
7
  className: cn('mx-auto flex w-full justify-center', className),
@@ -11,7 +11,7 @@ Pagination.displayName = 'Pagination';
11
11
  const PaginationContent = React.forwardRef(({
12
12
  className,
13
13
  ...props
14
- }, ref) => jsx("ul", {
14
+ }, ref) => React.createElement("ul", {
15
15
  ref: ref,
16
16
  className: cn('flex flex-row items-center gap-1', className),
17
17
  ...props
@@ -20,7 +20,7 @@ PaginationContent.displayName = 'PaginationContent';
20
20
  const PaginationItem = React.forwardRef(({
21
21
  className,
22
22
  ...props
23
- }, ref) => jsx("li", {
23
+ }, ref) => React.createElement("li", {
24
24
  ref: ref,
25
25
  className: cn('', className),
26
26
  ...props
@@ -31,7 +31,7 @@ const PaginationLink = ({
31
31
  isActive,
32
32
  size = 'icon',
33
33
  ...props
34
- }) => jsx("a", {
34
+ }) => React.createElement("a", {
35
35
  "aria-current": isActive ? 'page' : undefined,
36
36
  className: cn(buttonVariants({
37
37
  variant: isActive ? 'outline' : 'ghost',
@@ -43,45 +43,37 @@ PaginationLink.displayName = 'PaginationLink';
43
43
  const PaginationPrevious = ({
44
44
  className,
45
45
  ...props
46
- }) => jsxs(PaginationLink, {
46
+ }) => React.createElement(PaginationLink, {
47
47
  "aria-label": "Go to previous page",
48
48
  size: "default",
49
49
  className: cn('gap-1 pl-2.5', className),
50
- ...props,
51
- children: [jsx(ChevronLeft, {
52
- className: "h-4 w-4"
53
- }), jsx("span", {
54
- children: "Previous"
55
- })]
56
- });
50
+ ...props
51
+ }, React.createElement(ChevronLeft, {
52
+ className: "h-4 w-4"
53
+ }), React.createElement("span", null, "Previous"));
57
54
  PaginationPrevious.displayName = 'PaginationPrevious';
58
55
  const PaginationNext = ({
59
56
  className,
60
57
  ...props
61
- }) => jsxs(PaginationLink, {
58
+ }) => React.createElement(PaginationLink, {
62
59
  "aria-label": "Go to next page",
63
60
  size: "default",
64
61
  className: cn('gap-1 pr-2.5', className),
65
- ...props,
66
- children: [jsx("span", {
67
- children: "Next"
68
- }), jsx(ChevronRight, {
69
- className: "h-4 w-4"
70
- })]
71
- });
62
+ ...props
63
+ }, React.createElement("span", null, "Next"), React.createElement(ChevronRight, {
64
+ className: "h-4 w-4"
65
+ }));
72
66
  PaginationNext.displayName = 'PaginationNext';
73
67
  const PaginationEllipsis = ({
74
68
  className,
75
69
  ...props
76
- }) => jsxs("span", {
70
+ }) => React.createElement("span", {
77
71
  "aria-hidden": true,
78
72
  className: cn('flex h-9 w-9 items-center justify-center', className),
79
- ...props,
80
- children: [jsx(MoreHorizontal, {
81
- className: "h-4 w-4"
82
- }), jsx("span", {
83
- className: "sr-only",
84
- children: "More pages"
85
- })]
86
- });
73
+ ...props
74
+ }, React.createElement(MoreHorizontal, {
75
+ className: "h-4 w-4"
76
+ }), React.createElement("span", {
77
+ className: "sr-only"
78
+ }, "More pages"));
87
79
  PaginationEllipsis.displayName = 'PaginationEllipsis';export{Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious};//# sourceMappingURL=pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.js","sources":["../../src/shardui/pagination.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"wRAaE,MAAA,UAAA,GAAA,CAAA;AAGF,EAAA,SAAA;AAOA,EAAA,GAAA;AAKA,CAAA;MACI,EAAA,YAAW;AACd,EAAA,YAAQ,EAAA,YAAmB;AAG5B,EAAA,aAAM,CAAA,oCAAc,EAAA,SAAA,CAAA;;;UAYlB,CAAA,WAAA,GAAA,YAAA;AAGF,MAAA,iBAAM,GAAA,KAAA,CAAkB,UAAA,CAAA,CAAA;AAA6B,EAAA,SAAA;;CAUpD,EAAC,GAAA,KAAAA,GAAA,CAAA,IAAA,EAAA;AAGF,EAAA,GAAA,EAAA;AAAiD,EAAA,SAAA,EAAA,EAAA,CAAA,kCAAoB,EAAC;;CAKrE,CAAC;AAGF,iBAAM,CAAA,WAAA,GAAkB,mBAAA;AAA6B,MAAA,cAAA,GAAA,KAAA,CAAA,UAAM,CAAA,CAAA;;EAKzD,GAAA;AAGF,CAAA,EAAA,GAAA,KACIA,GAAA,CAAA,IAAU,EACV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"pagination.js","sources":["../../src/shardui/pagination.tsx"],"sourcesContent":[null],"names":[],"mappings":";EAaE,SAAA;AAGF,EAAA,GAAA;AAOA,CAAA,KAAA,KAAA,CAAA,aAAM,CAAA,KAAc,EAAA;AAKpB,EAAA;cACa,EAAE,YAAQ;AACtB,EAAA,SAAQ,EAAA,EAAA,CAAA,oCACe,EAAC,SAAK,CAAA;AAE9B,EAAA,GAAA;;;AAYE,MAAA,iBAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAGF,EAAA;AAAqD,EAAA,GAAA;;EAUnD,GAAA,EAAA,GAAA;AAGF,EAAA,aAAM,CAAA,kCAAc,EAAA,SAAA,CAAA;AAA6B,EAAA,GAAA;;iBAK/C,CAAA,WAAA,GAAA,mBAAA;AAGF,MAAA,cAAM,GAAA,KAAA,CAAA,UAAkB,CAAA,CAAA;AAA6B,EAAA,SAAA;;CAKpD,EAAC,GAAA,KAAA,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA;AAGF,EAAA,GAAA,EAAO,GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,17 +1,15 @@
1
- import {jsx}from'react/jsx-runtime';import*as React from'react';import*as PopoverPrimitive from'@radix-ui/react-popover';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Popover = PopoverPrimitive.Root;
1
+ import*as React from'react';import*as PopoverPrimitive from'@radix-ui/react-popover';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Popover = PopoverPrimitive.Root;
2
2
  const PopoverTrigger = PopoverPrimitive.Trigger;
3
3
  const PopoverContent = React.forwardRef(({
4
4
  className,
5
5
  align = 'center',
6
6
  sideOffset = 4,
7
7
  ...props
8
- }, ref) => jsx(PopoverPrimitive.Portal, {
9
- children: jsx(PopoverPrimitive.Content, {
10
- ref: ref,
11
- align: align,
12
- sideOffset: sideOffset,
13
- className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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),
14
- ...props
15
- })
16
- }));
8
+ }, ref) => React.createElement(PopoverPrimitive.Portal, null, React.createElement(PopoverPrimitive.Content, {
9
+ ref: ref,
10
+ align: align,
11
+ sideOffset: sideOffset,
12
+ className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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),
13
+ ...props
14
+ })));
17
15
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;export{Popover,PopoverContent,PopoverTrigger};//# sourceMappingURL=popover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","sources":["../../src/shardui/popover.tsx"],"sourcesContent":[null],"names":[],"mappings":"gOASA,MAAA,OAAA,GAAM,gBAAc,CAAA;AAmBpB,MAAA,iCAAkC,CAAA;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"popover.js","sources":["../../src/shardui/popover.tsx"],"sourcesContent":[null],"names":[],"mappings":"4LAOA,MAAA,OAAA,GAAM,gBAAc,CAAA;AAEpB,MAAA,cAAM,GAAA,gBAAc,CAAA;AAmBpB,MAAA,iCAAkC,CAAA,CAAA;;;;;;;;;;;;"}
@@ -1,16 +1,15 @@
1
- import {jsx}from'react/jsx-runtime';import*as React from'react';import*as ProgressPrimitive from'@radix-ui/react-progress';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Progress = React.forwardRef(({
1
+ import*as React from'react';import*as ProgressPrimitive from'@radix-ui/react-progress';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Progress = React.forwardRef(({
2
2
  className,
3
3
  value,
4
4
  ...props
5
- }, ref) => jsx(ProgressPrimitive.Root, {
5
+ }, ref) => React.createElement(ProgressPrimitive.Root, {
6
6
  ref: ref,
7
7
  className: cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className),
8
- ...props,
9
- children: jsx(ProgressPrimitive.Indicator, {
10
- className: "h-full w-full flex-1 bg-primary transition-all",
11
- style: {
12
- transform: `translateX(-${100 - (value || 0)}%)`
13
- }
14
- })
15
- }));
8
+ ...props
9
+ }, React.createElement(ProgressPrimitive.Indicator, {
10
+ className: "h-full w-full flex-1 bg-primary transition-all",
11
+ style: {
12
+ transform: `translateX(-${100 - (value || 0)}%)`
13
+ }
14
+ })));
16
15
  Progress.displayName = ProgressPrimitive.Root.displayName;export{Progress};//# sourceMappingURL=progress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"progress.js","sources":["../../src/shardui/progress.tsx"],"sourcesContent":[null],"names":[],"mappings":"8LAsBA,MAAA,QAAS,GAAQ,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
- import {jsx}from'react/jsx-runtime';import*as React from'react';import*as RadioGroupPrimitive from'@radix-ui/react-radio-group';import {Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const RadioGroup = React.forwardRef(({
1
+ import*as React from'react';import*as RadioGroupPrimitive from'@radix-ui/react-radio-group';import {Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const RadioGroup = React.forwardRef(({
2
2
  className,
3
3
  ...props
4
4
  }, ref) => {
5
- return jsx(RadioGroupPrimitive.Root, {
5
+ return React.createElement(RadioGroupPrimitive.Root, {
6
6
  className: cn('grid gap-2', className),
7
7
  ...props,
8
8
  ref: ref
@@ -13,16 +13,14 @@ const RadioGroupItem = React.forwardRef(({
13
13
  className,
14
14
  ...props
15
15
  }, ref) => {
16
- return jsx(RadioGroupPrimitive.Item, {
16
+ return React.createElement(RadioGroupPrimitive.Item, {
17
17
  ref: ref,
18
18
  className: cn('aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className),
19
- ...props,
20
- children: jsx(RadioGroupPrimitive.Indicator, {
21
- className: "flex items-center justify-center",
22
- children: jsx(Circle, {
23
- className: "h-2.5 w-2.5 fill-current text-current"
24
- })
25
- })
26
- });
19
+ ...props
20
+ }, React.createElement(RadioGroupPrimitive.Indicator, {
21
+ className: "flex items-center justify-center"
22
+ }, React.createElement(Circle, {
23
+ className: "h-2.5 w-2.5 fill-current text-current"
24
+ })));
27
25
  });
28
26
  RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;export{RadioGroup,RadioGroupItem};//# sourceMappingURL=radio-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"radio-group.js","sources":["../../src/shardui/radio-group.tsx"],"sourcesContent":[null],"names":[],"mappings":"qOAmCA,MAAA,UAAS,GAAU,KAAE,CAAA,UAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import * as ResizablePrimitive from 'react-resizable-panels';
2
- declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLProgressElement | HTMLTitleElement | HTMLDialogElement | HTMLFormElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOutputElement | HTMLPreElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
3
+ declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React.JSX.Element;
4
+ declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
5
  className?: string | undefined;
5
6
  collapsedSize?: number | undefined;
6
7
  collapsible?: boolean | undefined;
@@ -16,9 +17,9 @@ declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<imp
16
17
  tagName?: keyof HTMLElementTagNameMap | undefined;
17
18
  } & {
18
19
  children?: import("react").ReactNode;
19
- } & import("react").RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
20
+ } & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
20
21
  declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
21
22
  withHandle?: boolean;
22
- }) => import("react/jsx-runtime").JSX.Element;
23
+ }) => React.JSX.Element;
23
24
  export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
24
25
  //# sourceMappingURL=resizable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/shardui/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,4CAK/G,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;4EAA2B,CAAC;AAEhD,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,4CAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/shardui/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,sBAK/G,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;kEAA2B,CAAC;AAEhD,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,sBAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
- import {jsx}from'react/jsx-runtime';import {GripVertical}from'lucide-react';import*as ResizablePrimitive from'react-resizable-panels';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'react';import'fast-deep-equal/react.js';const ResizablePanelGroup = ({
1
+ import {GripVertical}from'lucide-react';import React__default from'react';import*as ResizablePrimitive from'react-resizable-panels';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ResizablePanelGroup = ({
2
2
  className,
3
3
  ...props
4
- }) => jsx(ResizablePrimitive.PanelGroup, {
4
+ }) => React__default.createElement(ResizablePrimitive.PanelGroup, {
5
5
  className: cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className),
6
6
  ...props
7
7
  });
@@ -10,13 +10,11 @@ const ResizableHandle = ({
10
10
  withHandle,
11
11
  className,
12
12
  ...props
13
- }) => jsx(ResizablePrimitive.PanelResizeHandle, {
13
+ }) => React__default.createElement(ResizablePrimitive.PanelResizeHandle, {
14
14
  className: cn('relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90', className),
15
- ...props,
16
- children: withHandle && jsx("div", {
17
- className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
18
- children: jsx(GripVertical, {
19
- className: "h-2.5 w-2.5"
20
- })
21
- })
22
- });export{ResizableHandle,ResizablePanel,ResizablePanelGroup};//# sourceMappingURL=resizable.js.map
15
+ ...props
16
+ }, withHandle && React__default.createElement("div", {
17
+ className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border"
18
+ }, React__default.createElement(GripVertical, {
19
+ className: "h-2.5 w-2.5"
20
+ })));export{ResizableHandle,ResizablePanel,ResizablePanelGroup};//# sourceMappingURL=resizable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.js","sources":["../../src/shardui/resizable.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;AAcA,EAAA,QAAA,EAAA,UAAM,IAAAA,GAAe,CAAA,KAAI,EAAA;IAKrB,SAAA,EAAW,2EAAU;AACxB,IAAA,QAAA,EAAAA,GAAA,CAAA,YAAA,EAAA;AAgBD,MAAA,SAAS,EAAA;;;"}
1
+ {"version":3,"file":"resizable.js","sources":["../../src/shardui/resizable.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,EAAA,SAAA,EAAA;iBAKI,CAAA,aAAa,CAAA,YAAQ,EAAA;AACxB,EAAA,SAAA,EAAA;AAgBD,CAAA,CAAA,CAAA"}
@@ -1,28 +1,25 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import*as React from'react';import*as ScrollAreaPrimitive from'@radix-ui/react-scroll-area';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ScrollArea = React.forwardRef(({
1
+ import*as React from'react';import*as ScrollAreaPrimitive from'@radix-ui/react-scroll-area';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ScrollArea = React.forwardRef(({
2
2
  className,
3
3
  children,
4
4
  ...props
5
- }, ref) => jsxs(ScrollAreaPrimitive.Root, {
5
+ }, ref) => React.createElement(ScrollAreaPrimitive.Root, {
6
6
  ref: ref,
7
7
  className: cn('relative overflow-hidden', className),
8
- ...props,
9
- children: [jsx(ScrollAreaPrimitive.Viewport, {
10
- className: "h-full w-full rounded-[inherit]",
11
- children: children
12
- }), jsx(ScrollBar, {}), jsx(ScrollAreaPrimitive.Corner, {})]
13
- }));
8
+ ...props
9
+ }, React.createElement(ScrollAreaPrimitive.Viewport, {
10
+ className: "h-full w-full rounded-[inherit]"
11
+ }, children), React.createElement(ScrollBar, null), React.createElement(ScrollAreaPrimitive.Corner, null)));
14
12
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
15
13
  const ScrollBar = React.forwardRef(({
16
14
  className,
17
15
  orientation = 'vertical',
18
16
  ...props
19
- }, ref) => jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
17
+ }, ref) => React.createElement(ScrollAreaPrimitive.ScrollAreaScrollbar, {
20
18
  ref: ref,
21
19
  orientation: orientation,
22
20
  className: cn('flex touch-none select-none transition-colors', orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent p-[1px]', orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent p-[1px]', className),
23
- ...props,
24
- children: jsx(ScrollAreaPrimitive.ScrollAreaThumb, {
25
- className: "relative flex-1 rounded-full bg-border"
26
- })
27
- }));
21
+ ...props
22
+ }, React.createElement(ScrollAreaPrimitive.ScrollAreaThumb, {
23
+ className: "relative flex-1 rounded-full bg-border"
24
+ })));
28
25
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;export{ScrollArea,ScrollBar};//# sourceMappingURL=scroll-area.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-area.js","sources":["../../src/shardui/scroll-area.tsx"],"sourcesContent":[null],"names":[],"mappings":"4OAuCA,MAAA,UAAS,GAAU,KAAE,CAAA,UAAY,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"scroll-area.js","sources":["../../src/shardui/scroll-area.tsx"],"sourcesContent":[null],"names":[],"mappings":"mMAmBA,MAAA,UAAM,GAAA,KAAS,CAAA,UAAA,CAAA,CAAA;AAoBf,EAAA,SAAS;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,68 +1,60 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import*as React from'react';import*as SelectPrimitive from'@radix-ui/react-select';import {ChevronDown,ChevronUp,Check}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Select = SelectPrimitive.Root;
1
+ import*as React from'react';import*as SelectPrimitive from'@radix-ui/react-select';import {ChevronDown,ChevronUp,Check}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Select = SelectPrimitive.Root;
2
2
  const SelectGroup = SelectPrimitive.Group;
3
3
  const SelectValue = SelectPrimitive.Value;
4
4
  const SelectTrigger = React.forwardRef(({
5
5
  className,
6
6
  children,
7
7
  ...props
8
- }, ref) => jsxs(SelectPrimitive.Trigger, {
8
+ }, ref) => React.createElement(SelectPrimitive.Trigger, {
9
9
  ref: ref,
10
10
  className: cn('flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className),
11
- ...props,
12
- children: [children, jsx(SelectPrimitive.Icon, {
13
- asChild: true,
14
- children: jsx(ChevronDown, {
15
- className: "h-4 w-4 opacity-50"
16
- })
17
- })]
18
- }));
11
+ ...props
12
+ }, children, React.createElement(SelectPrimitive.Icon, {
13
+ asChild: true
14
+ }, React.createElement(ChevronDown, {
15
+ className: "h-4 w-4 opacity-50"
16
+ }))));
19
17
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
20
18
  const SelectScrollUpButton = React.forwardRef(({
21
19
  className,
22
20
  ...props
23
- }, ref) => jsx(SelectPrimitive.ScrollUpButton, {
21
+ }, ref) => React.createElement(SelectPrimitive.ScrollUpButton, {
24
22
  ref: ref,
25
23
  className: cn('flex cursor-default items-center justify-center py-1', className),
26
- ...props,
27
- children: jsx(ChevronUp, {
28
- className: "h-4 w-4"
29
- })
30
- }));
24
+ ...props
25
+ }, React.createElement(ChevronUp, {
26
+ className: "h-4 w-4"
27
+ })));
31
28
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
32
29
  const SelectScrollDownButton = React.forwardRef(({
33
30
  className,
34
31
  ...props
35
- }, ref) => jsx(SelectPrimitive.ScrollDownButton, {
32
+ }, ref) => React.createElement(SelectPrimitive.ScrollDownButton, {
36
33
  ref: ref,
37
34
  className: cn('flex cursor-default items-center justify-center py-1', className),
38
- ...props,
39
- children: jsx(ChevronDown, {
40
- className: "h-4 w-4"
41
- })
42
- }));
35
+ ...props
36
+ }, React.createElement(ChevronDown, {
37
+ className: "h-4 w-4"
38
+ })));
43
39
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
44
40
  const SelectContent = React.forwardRef(({
45
41
  className,
46
42
  children,
47
43
  position = 'popper',
48
44
  ...props
49
- }, ref) => jsx(SelectPrimitive.Portal, {
50
- children: jsxs(SelectPrimitive.Content, {
51
- ref: ref,
52
- className: cn('relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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', position === 'popper' && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
53
- position: position,
54
- ...props,
55
- children: [jsx(SelectScrollUpButton, {}), jsx(SelectPrimitive.Viewport, {
56
- className: cn('p-1', position === 'popper' && 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]'),
57
- children: children
58
- }), jsx(SelectScrollDownButton, {})]
59
- })
60
- }));
45
+ }, ref) => React.createElement(SelectPrimitive.Portal, null, React.createElement(SelectPrimitive.Content, {
46
+ ref: ref,
47
+ className: cn('relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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', position === 'popper' && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
48
+ position: position,
49
+ ...props
50
+ }, React.createElement(SelectScrollUpButton, null), React.createElement(SelectPrimitive.Viewport, {
51
+ className: cn('p-1', position === 'popper' && 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]')
52
+ }, children), React.createElement(SelectScrollDownButton, null))));
61
53
  SelectContent.displayName = SelectPrimitive.Content.displayName;
62
54
  const SelectLabel = React.forwardRef(({
63
55
  className,
64
56
  ...props
65
- }, ref) => jsx(SelectPrimitive.Label, {
57
+ }, ref) => React.createElement(SelectPrimitive.Label, {
66
58
  ref: ref,
67
59
  className: cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className),
68
60
  ...props
@@ -72,26 +64,20 @@ const SelectItem = React.forwardRef(({
72
64
  className,
73
65
  children,
74
66
  ...props
75
- }, ref) => jsxs(SelectPrimitive.Item, {
67
+ }, ref) => React.createElement(SelectPrimitive.Item, {
76
68
  ref: ref,
77
69
  className: cn('relative flex w-full 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(SelectPrimitive.ItemIndicator, {
82
- children: jsx(Check, {
83
- className: "h-4 w-4"
84
- })
85
- })
86
- }), jsx(SelectPrimitive.ItemText, {
87
- children: children
88
- })]
89
- }));
70
+ ...props
71
+ }, React.createElement("span", {
72
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
73
+ }, React.createElement(SelectPrimitive.ItemIndicator, null, React.createElement(Check, {
74
+ className: "h-4 w-4"
75
+ }))), React.createElement(SelectPrimitive.ItemText, null, children)));
90
76
  SelectItem.displayName = SelectPrimitive.Item.displayName;
91
77
  const SelectSeparator = React.forwardRef(({
92
78
  className,
93
79
  ...props
94
- }, ref) => jsx(SelectPrimitive.Separator, {
80
+ }, ref) => React.createElement(SelectPrimitive.Separator, {
95
81
  ref: ref,
96
82
  className: cn('-mx-1 my-1 h-px bg-muted', className),
97
83
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"select.js","sources":["../../src/shardui/select.tsx"],"sourcesContent":[null],"names":[],"mappings":"0RAYA,MAAA,MAAA,GAAM,eAAa,CAAA;AAoBnB,MAAA,WAAM,GAAA,eAAoB,CAAA;AAc1B,MAAA,WAAM,GAAA,eAAA,CAAsB;AAc5B,MAAA,aAAM,GAAA,KAAa,CAAA,UAAA,CAAA,CAAA;AAgCnB,EAAA,SAAA;AAQA,EAAA,QAAA;AAuBA,EAAA,GAAA;AAQA,CAAA,EAAA,GAAA,SACU,CACN,eACA,CAAA,OAAA,EAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"select.js","sources":["../../src/shardui/select.tsx"],"sourcesContent":[null],"names":[],"mappings":"iPAUA,MAAA,MAAA,GAAM,eAAW,CAAA;AAEjB,MAAA,WAAM,GAAA,eAAa,CAAA;AAoBnB,MAAA,WAAM,GAAA,eAAoB,CAAA;AAc1B,MAAA,aAAM,GAAA,KAAA,CAAA,UAAsB,CAAA,CAAA;AAc5B,EAAA,SAAA;AAgCA,EAAA,QAAA;AAQA,EAAA,GAAA;AAuBA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAe,CAAA,eAAA,CAAA,OAAA,EAAA;AAQrB,EAAA,GAAA,EAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,9 @@
1
- import {jsx}from'react/jsx-runtime';import*as React from'react';import*as SeparatorPrimitive from'@radix-ui/react-separator';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Separator = React.forwardRef(({
1
+ import*as React from'react';import*as SeparatorPrimitive from'@radix-ui/react-separator';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Separator = React.forwardRef(({
2
2
  className,
3
3
  orientation = 'horizontal',
4
4
  decorative = true,
5
5
  ...props
6
- }, ref) => jsx(SeparatorPrimitive.Root, {
6
+ }, ref) => React.createElement(SeparatorPrimitive.Root, {
7
7
  ref: ref,
8
8
  decorative: decorative,
9
9
  orientation: orientation,
@@ -1 +1 @@
1
- {"version":3,"file":"separator.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"separator.js","sources":["../../src/shardui/separator.tsx"],"sourcesContent":[null],"names":[],"mappings":"gMAuBA,MAAA,SAAS,GAAS,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;"}