@admin-layout/tailwind-ui 10.1.1-alpha.8 → 12.0.16-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 (254) hide show
  1. package/lib/components/Button/Button.d.ts +13 -0
  2. package/lib/components/Button/Button.d.ts.map +1 -0
  3. package/lib/components/Button/Button.js +50 -0
  4. package/lib/components/Button/Button.js.map +1 -0
  5. package/lib/components/DatePicker/DatePicker.d.ts +5 -0
  6. package/lib/components/DatePicker/DatePicker.d.ts.map +1 -0
  7. package/lib/components/DatePicker/DatePicker.js +218 -0
  8. package/lib/components/DatePicker/DatePicker.js.map +1 -0
  9. package/lib/components/DatePicker/index.d.ts +3 -0
  10. package/lib/components/DatePicker/index.d.ts.map +1 -0
  11. package/lib/components/DatePicker/machine.d.ts +3 -0
  12. package/lib/components/DatePicker/machine.d.ts.map +1 -0
  13. package/lib/components/DatePicker/machine.js +95 -0
  14. package/lib/components/DatePicker/machine.js.map +1 -0
  15. package/lib/components/DatePicker/types.d.ts +34 -0
  16. package/lib/components/DatePicker/types.d.ts.map +1 -0
  17. package/lib/components/DatePicker/utils.d.ts +25 -0
  18. package/lib/components/DatePicker/utils.d.ts.map +1 -0
  19. package/lib/components/DatePicker/utils.js +28 -0
  20. package/lib/components/DatePicker/utils.js.map +1 -0
  21. package/lib/components/ThemeProvider/ThemeProvider.d.ts +14 -0
  22. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  23. package/lib/components/ThemeProvider/ThemeProvider.js +96 -0
  24. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -0
  25. package/lib/components/ThemeProvider/ThemeToggle.d.ts +7 -0
  26. package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +1 -0
  27. package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
  28. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
  29. package/lib/components/ThemeProvider/index.d.ts +4 -0
  30. package/lib/components/ThemeProvider/index.d.ts.map +1 -0
  31. package/lib/components/ThemeProvider/types.d.ts +25 -0
  32. package/lib/components/ThemeProvider/types.d.ts.map +1 -0
  33. package/lib/components/index.d.ts +3 -0
  34. package/lib/components/index.d.ts.map +1 -1
  35. package/lib/hooks/useTheme.d.ts +2 -0
  36. package/lib/hooks/useTheme.d.ts.map +1 -0
  37. package/lib/hooks/useTheme.js +7 -0
  38. package/lib/hooks/useTheme.js.map +1 -0
  39. package/lib/index.d.ts +2 -0
  40. package/lib/index.d.ts.map +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/shardui/accordion.d.ts +8 -0
  43. package/lib/shardui/accordion.d.ts.map +1 -0
  44. package/lib/shardui/accordion.js +40 -0
  45. package/lib/shardui/accordion.js.map +1 -0
  46. package/lib/shardui/alert-dialog.d.ts +21 -0
  47. package/lib/shardui/alert-dialog.d.ts.map +1 -0
  48. package/lib/shardui/alert-dialog.js +77 -0
  49. package/lib/shardui/alert-dialog.js.map +1 -0
  50. package/lib/shardui/alert.d.ts +9 -0
  51. package/lib/shardui/alert.d.ts.map +1 -0
  52. package/lib/shardui/alert.js +42 -0
  53. package/lib/shardui/alert.js.map +1 -0
  54. package/lib/shardui/aspect-ratio.d.ts +4 -0
  55. package/lib/shardui/aspect-ratio.d.ts.map +1 -0
  56. package/lib/shardui/aspect-ratio.js +1 -0
  57. package/lib/shardui/aspect-ratio.js.map +1 -0
  58. package/lib/shardui/avatar.d.ts +7 -0
  59. package/lib/shardui/avatar.d.ts.map +1 -0
  60. package/lib/shardui/avatar.js +27 -0
  61. package/lib/shardui/avatar.js.map +1 -0
  62. package/lib/shardui/badge.d.ts +10 -0
  63. package/lib/shardui/badge.d.ts.map +1 -0
  64. package/lib/shardui/badge.js +25 -0
  65. package/lib/shardui/badge.js.map +1 -0
  66. package/lib/shardui/breadcrumb.d.ts +20 -0
  67. package/lib/shardui/breadcrumb.d.ts.map +1 -0
  68. package/lib/shardui/breadcrumb.js +79 -0
  69. package/lib/shardui/breadcrumb.js.map +1 -0
  70. package/lib/shardui/button.d.ts +12 -0
  71. package/lib/shardui/button.d.ts.map +1 -0
  72. package/lib/shardui/button.js +41 -0
  73. package/lib/shardui/button.js.map +1 -0
  74. package/lib/shardui/calendar.d.ts +9 -0
  75. package/lib/shardui/calendar.d.ts.map +1 -0
  76. package/lib/shardui/calendar.js +53 -0
  77. package/lib/shardui/calendar.js.map +1 -0
  78. package/lib/shardui/card.d.ts +9 -0
  79. package/lib/shardui/card.d.ts.map +1 -0
  80. package/lib/shardui/card.js +54 -0
  81. package/lib/shardui/card.js.map +1 -0
  82. package/lib/shardui/carousel.d.ts +19 -0
  83. package/lib/shardui/carousel.d.ts.map +1 -0
  84. package/lib/shardui/carousel.js +176 -0
  85. package/lib/shardui/carousel.js.map +1 -0
  86. package/lib/shardui/chart.d.ts +63 -0
  87. package/lib/shardui/chart.d.ts.map +1 -0
  88. package/lib/shardui/chart.js +197 -0
  89. package/lib/shardui/chart.js.map +1 -0
  90. package/lib/shardui/checkbox.d.ts +5 -0
  91. package/lib/shardui/checkbox.d.ts.map +1 -0
  92. package/lib/shardui/checkbox.js +15 -0
  93. package/lib/shardui/checkbox.js.map +1 -0
  94. package/lib/shardui/collapsible.d.ts +6 -0
  95. package/lib/shardui/collapsible.d.ts.map +1 -0
  96. package/lib/shardui/collapsible.js +3 -0
  97. package/lib/shardui/collapsible.js.map +1 -0
  98. package/lib/shardui/command.d.ts +83 -0
  99. package/lib/shardui/command.d.ts.map +1 -0
  100. package/lib/shardui/command.js +91 -0
  101. package/lib/shardui/command.js.map +1 -0
  102. package/lib/shardui/context-menu.d.ts +28 -0
  103. package/lib/shardui/context-menu.d.ts.map +1 -0
  104. package/lib/shardui/context-menu.js +117 -0
  105. package/lib/shardui/context-menu.js.map +1 -0
  106. package/lib/shardui/dialog.d.ts +20 -0
  107. package/lib/shardui/dialog.d.ts.map +1 -0
  108. package/lib/shardui/dialog.js +67 -0
  109. package/lib/shardui/dialog.js.map +1 -0
  110. package/lib/shardui/drawer.d.ts +23 -0
  111. package/lib/shardui/drawer.d.ts.map +1 -0
  112. package/lib/shardui/drawer.js +69 -0
  113. package/lib/shardui/drawer.js.map +1 -0
  114. package/lib/shardui/dropdown-menu.d.ts +28 -0
  115. package/lib/shardui/dropdown-menu.d.ts.map +1 -0
  116. package/lib/shardui/dropdown-menu.js +119 -0
  117. package/lib/shardui/dropdown-menu.js.map +1 -0
  118. package/lib/shardui/form.d.ts +24 -0
  119. package/lib/shardui/form.d.ts.map +1 -0
  120. package/lib/shardui/form.js +126 -0
  121. package/lib/shardui/form.js.map +1 -0
  122. package/lib/shardui/hover-card.d.ts +7 -0
  123. package/lib/shardui/hover-card.d.ts.map +1 -0
  124. package/lib/shardui/hover-card.js +15 -0
  125. package/lib/shardui/hover-card.js.map +1 -0
  126. package/lib/shardui/index.d.ts +50 -0
  127. package/lib/shardui/index.d.ts.map +1 -0
  128. package/lib/shardui/input-otp.d.ts +35 -0
  129. package/lib/shardui/input-otp.d.ts.map +1 -0
  130. package/lib/shardui/input-otp.js +53 -0
  131. package/lib/shardui/input-otp.js.map +1 -0
  132. package/lib/shardui/input.d.ts +4 -0
  133. package/lib/shardui/input.d.ts.map +1 -0
  134. package/lib/shardui/input.js +13 -0
  135. package/lib/shardui/input.js.map +1 -0
  136. package/lib/shardui/label.d.ts +6 -0
  137. package/lib/shardui/label.d.ts.map +1 -0
  138. package/lib/shardui/label.js +10 -0
  139. package/lib/shardui/label.js.map +1 -0
  140. package/lib/shardui/menubar.d.ts +34 -0
  141. package/lib/shardui/menubar.d.ts.map +1 -0
  142. package/lib/shardui/menubar.js +140 -0
  143. package/lib/shardui/menubar.js.map +1 -0
  144. package/lib/shardui/navigation-menu.d.ts +13 -0
  145. package/lib/shardui/navigation-menu.d.ts.map +1 -0
  146. package/lib/shardui/navigation-menu.js +70 -0
  147. package/lib/shardui/navigation-menu.js.map +1 -0
  148. package/lib/shardui/pagination.d.ts +29 -0
  149. package/lib/shardui/pagination.d.ts.map +1 -0
  150. package/lib/shardui/pagination.js +87 -0
  151. package/lib/shardui/pagination.js.map +1 -0
  152. package/lib/shardui/popover.d.ts +7 -0
  153. package/lib/shardui/popover.d.ts.map +1 -0
  154. package/lib/shardui/popover.js +17 -0
  155. package/lib/shardui/popover.js.map +1 -0
  156. package/lib/shardui/progress.d.ts +5 -0
  157. package/lib/shardui/progress.d.ts.map +1 -0
  158. package/lib/shardui/progress.js +16 -0
  159. package/lib/shardui/progress.js.map +1 -0
  160. package/lib/shardui/radio-group.d.ts +6 -0
  161. package/lib/shardui/radio-group.d.ts.map +1 -0
  162. package/lib/shardui/radio-group.js +28 -0
  163. package/lib/shardui/radio-group.js.map +1 -0
  164. package/lib/shardui/resizable.d.ts +24 -0
  165. package/lib/shardui/resizable.d.ts.map +1 -0
  166. package/lib/shardui/resizable.js +22 -0
  167. package/lib/shardui/resizable.js.map +1 -0
  168. package/lib/shardui/scroll-area.d.ts +6 -0
  169. package/lib/shardui/scroll-area.d.ts.map +1 -0
  170. package/lib/shardui/scroll-area.js +28 -0
  171. package/lib/shardui/scroll-area.js.map +1 -0
  172. package/lib/shardui/select.d.ts +14 -0
  173. package/lib/shardui/select.d.ts.map +1 -0
  174. package/lib/shardui/select.js +99 -0
  175. package/lib/shardui/select.js.map +1 -0
  176. package/lib/shardui/separator.d.ts +5 -0
  177. package/lib/shardui/separator.d.ts.map +1 -0
  178. package/lib/shardui/separator.js +13 -0
  179. package/lib/shardui/separator.js.map +1 -0
  180. package/lib/shardui/sheet.d.ts +26 -0
  181. package/lib/shardui/sheet.d.ts.map +1 -0
  182. package/lib/shardui/sheet.js +84 -0
  183. package/lib/shardui/sheet.js.map +1 -0
  184. package/lib/shardui/sidebar.d.ts +67 -0
  185. package/lib/shardui/sidebar.d.ts.map +1 -0
  186. package/lib/shardui/sidebar.js +490 -0
  187. package/lib/shardui/sidebar.js.map +1 -0
  188. package/lib/shardui/skeleton.d.ts +3 -0
  189. package/lib/shardui/skeleton.d.ts.map +1 -0
  190. package/lib/shardui/skeleton.js +9 -0
  191. package/lib/shardui/skeleton.js.map +1 -0
  192. package/lib/shardui/slider.d.ts +5 -0
  193. package/lib/shardui/slider.d.ts.map +1 -0
  194. package/lib/shardui/slider.js +17 -0
  195. package/lib/shardui/slider.js.map +1 -0
  196. package/lib/shardui/sonner.d.ts +5 -0
  197. package/lib/shardui/sonner.d.ts.map +1 -0
  198. package/lib/shardui/sonner.js +20 -0
  199. package/lib/shardui/sonner.js.map +1 -0
  200. package/lib/shardui/switch.d.ts +5 -0
  201. package/lib/shardui/switch.d.ts.map +1 -0
  202. package/lib/shardui/switch.js +12 -0
  203. package/lib/shardui/switch.js.map +1 -0
  204. package/lib/shardui/table.d.ts +11 -0
  205. package/lib/shardui/table.d.ts.map +1 -0
  206. package/lib/shardui/table.js +75 -0
  207. package/lib/shardui/table.js.map +1 -0
  208. package/lib/shardui/tabs.d.ts +8 -0
  209. package/lib/shardui/tabs.d.ts.map +1 -0
  210. package/lib/shardui/tabs.js +28 -0
  211. package/lib/shardui/tabs.js.map +1 -0
  212. package/lib/shardui/textarea.d.ts +6 -0
  213. package/lib/shardui/textarea.d.ts.map +1 -0
  214. package/lib/shardui/textarea.js +11 -0
  215. package/lib/shardui/textarea.js.map +1 -0
  216. package/lib/shardui/toast.d.ts +16 -0
  217. package/lib/shardui/toast.d.ts.map +1 -0
  218. package/lib/shardui/toast.js +75 -0
  219. package/lib/shardui/toast.js.map +1 -0
  220. package/lib/shardui/toaster.d.ts +2 -0
  221. package/lib/shardui/toaster.d.ts.map +1 -0
  222. package/lib/shardui/toaster.js +26 -0
  223. package/lib/shardui/toaster.js.map +1 -0
  224. package/lib/shardui/toggle-group.d.ts +13 -0
  225. package/lib/shardui/toggle-group.d.ts.map +1 -0
  226. package/lib/shardui/toggle-group.js +42 -0
  227. package/lib/shardui/toggle-group.js.map +1 -0
  228. package/lib/shardui/toggle.d.ts +13 -0
  229. package/lib/shardui/toggle.d.ts.map +1 -0
  230. package/lib/shardui/toggle.js +32 -0
  231. package/lib/shardui/toggle.js.map +1 -0
  232. package/lib/shardui/tooltip.d.ts +8 -0
  233. package/lib/shardui/tooltip.d.ts.map +1 -0
  234. package/lib/shardui/tooltip.js +14 -0
  235. package/lib/shardui/tooltip.js.map +1 -0
  236. package/lib/shardui/use-toast.d.ts +3 -0
  237. package/lib/shardui/use-toast.d.ts.map +1 -0
  238. package/lib/utils/hooks/use-mobile.d.ts +2 -0
  239. package/lib/utils/hooks/use-mobile.d.ts.map +1 -0
  240. package/lib/utils/hooks/use-mobile.js +14 -0
  241. package/lib/utils/hooks/use-mobile.js.map +1 -0
  242. package/lib/utils/hooks/use-toast.d.ts +45 -0
  243. package/lib/utils/hooks/use-toast.d.ts.map +1 -0
  244. package/lib/utils/hooks/use-toast.js +133 -0
  245. package/lib/utils/hooks/use-toast.js.map +1 -0
  246. package/lib/utils/index.d.ts +7 -1
  247. package/lib/utils/index.d.ts.map +1 -1
  248. package/lib/utils/isBrowser/index.js +1 -0
  249. package/lib/utils/isBrowser/index.js.map +1 -0
  250. package/lib/utils/util.d.ts +3 -0
  251. package/lib/utils/util.d.ts.map +1 -0
  252. package/lib/utils/util.js +3 -0
  253. package/lib/utils/util.js.map +1 -0
  254. package/package.json +7 -3
@@ -0,0 +1,53 @@
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';const InputOTP = React.forwardRef(({
2
+ className,
3
+ containerClassName,
4
+ ...props
5
+ }, ref) => jsx(OTPInput, {
6
+ ref: ref,
7
+ containerClassName: cn('flex items-center gap-2 has-[:disabled]:opacity-50', containerClassName),
8
+ className: cn('disabled:cursor-not-allowed', className),
9
+ ...props
10
+ }));
11
+ InputOTP.displayName = 'InputOTP';
12
+ const InputOTPGroup = React.forwardRef(({
13
+ className,
14
+ ...props
15
+ }, ref) => jsx("div", {
16
+ ref: ref,
17
+ className: cn('flex items-center', className),
18
+ ...props
19
+ }));
20
+ InputOTPGroup.displayName = 'InputOTPGroup';
21
+ const InputOTPSlot = React.forwardRef(({
22
+ index,
23
+ className,
24
+ ...props
25
+ }, ref) => {
26
+ const inputOTPContext = React.useContext(OTPInputContext);
27
+ const {
28
+ char,
29
+ hasFakeCaret,
30
+ isActive
31
+ } = inputOTPContext.slots[index];
32
+ return jsxs("div", {
33
+ ref: ref,
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
+ });
43
+ });
44
+ InputOTPSlot.displayName = 'InputOTPSlot';
45
+ const InputOTPSeparator = React.forwardRef(({
46
+ ...props
47
+ }, ref) => jsx("div", {
48
+ ref: ref,
49
+ role: "separator",
50
+ ...props,
51
+ children: jsx(Dot, {})
52
+ }));
53
+ InputOTPSeparator.displayName = 'InputOTPSeparator';export{InputOTP,InputOTPGroup,InputOTPSeparator,InputOTPSlot};//# sourceMappingURL=input-otp.js.map
@@ -0,0 +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,IAAO;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
3
+ export { Input };
4
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/shardui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,KAAK,8KAcV,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,13 @@
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';const Input = React.forwardRef(({
2
+ className,
3
+ type,
4
+ ...props
5
+ }, ref) => {
6
+ return jsx("input", {
7
+ type: type,
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
+ ref: ref,
10
+ ...props
11
+ });
12
+ });
13
+ Input.displayName = 'Input';export{Input};//# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import * as LabelPrimitive from '@radix-ui/react-label';
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>>;
5
+ export { Label };
6
+ //# sourceMappingURL=label.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,10 @@
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';const labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
2
+ const Label = React.forwardRef(({
3
+ className,
4
+ ...props
5
+ }, ref) => jsx(LabelPrimitive.Root, {
6
+ ref: ref,
7
+ className: cn(labelVariants(), className),
8
+ ...props
9
+ }));
10
+ Label.displayName = LabelPrimitive.Root.displayName;export{Label};//# sourceMappingURL=label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,34 @@
1
+ import * as React from 'react';
2
+ import * as MenubarPrimitive from '@radix-ui/react-menubar';
3
+ declare const MenubarMenu: {
4
+ (props: MenubarPrimitive.MenubarMenuProps & {
5
+ __scopeMenubar?: import("@radix-ui/react-context").Scope;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ displayName: string;
8
+ };
9
+ declare const MenubarGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
10
+ declare const MenubarPortal: React.FC<MenubarPrimitive.MenubarPortalProps>;
11
+ declare const MenubarSub: React.FC<MenubarPrimitive.MenubarSubProps>;
12
+ declare const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
13
+ declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
15
+ declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
16
+ inset?: boolean;
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ declare const MenubarItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
21
+ inset?: boolean;
22
+ } & React.RefAttributes<HTMLDivElement>>;
23
+ declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
24
+ declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
+ declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
26
+ inset?: boolean;
27
+ } & React.RefAttributes<HTMLDivElement>>;
28
+ declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
29
+ declare const MenubarShortcut: {
30
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
31
+ displayname: string;
32
+ };
33
+ export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
34
+ //# sourceMappingURL=menubar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menubar.d.ts","sourceRoot":"","sources":["../../src/shardui/menubar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAK5D,QAAA,MAAM,WAAW;;;;;CAAwB,CAAC;AAE1C,QAAA,MAAM,YAAY,2GAAyB,CAAC;AAE5C,QAAA,MAAM,aAAa,+CAA0B,CAAC;AAE9C,QAAA,MAAM,UAAU,4CAAuB,CAAC;AAExC,QAAA,MAAM,iBAAiB,gHAA8B,CAAC;AAEtD,QAAA,MAAM,OAAO,yJASX,CAAC;AAGH,QAAA,MAAM,cAAc,sKAYlB,CAAC;AAGH,QAAA,MAAM,iBAAiB;YAGP,OAAO;wCAerB,CAAC;AAGH,QAAA,MAAM,iBAAiB,mKAYrB,CAAC;AAGH,QAAA,MAAM,cAAc,gKAiBlB,CAAC;AAGH,QAAA,MAAM,WAAW;YAGD,OAAO;wCAYrB,CAAC;AAGH,QAAA,MAAM,mBAAmB,qKAoBvB,CAAC;AAGH,QAAA,MAAM,gBAAgB,kKAmBpB,CAAC;AAGH,QAAA,MAAM,YAAY;YAGF,OAAO;wCAQrB,CAAC;AAGH,QAAA,MAAM,gBAAgB,kKAKpB,CAAC;AAGH,QAAA,MAAM,eAAe;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAEtF,CAAC;AAGF,OAAO,EACH,OAAO,EACP,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,eAAe,GAClB,CAAC"}
@@ -0,0 +1,140 @@
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';const MenubarMenu = MenubarPrimitive.Menu;
2
+ const MenubarGroup = MenubarPrimitive.Group;
3
+ const MenubarPortal = MenubarPrimitive.Portal;
4
+ const MenubarSub = MenubarPrimitive.Sub;
5
+ const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
6
+ const Menubar = React.forwardRef(({
7
+ className,
8
+ ...props
9
+ }, ref) => jsx(MenubarPrimitive.Root, {
10
+ ref: ref,
11
+ className: cn('flex h-10 items-center space-x-1 rounded-md border bg-background p-1', className),
12
+ ...props
13
+ }));
14
+ Menubar.displayName = MenubarPrimitive.Root.displayName;
15
+ const MenubarTrigger = React.forwardRef(({
16
+ className,
17
+ ...props
18
+ }, ref) => jsx(MenubarPrimitive.Trigger, {
19
+ ref: ref,
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
+ ...props
22
+ }));
23
+ MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
24
+ const MenubarSubTrigger = React.forwardRef(({
25
+ className,
26
+ inset,
27
+ children,
28
+ ...props
29
+ }, ref) => jsxs(MenubarPrimitive.SubTrigger, {
30
+ ref: ref,
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
+ }));
37
+ MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
38
+ const MenubarSubContent = React.forwardRef(({
39
+ className,
40
+ ...props
41
+ }, ref) => jsx(MenubarPrimitive.SubContent, {
42
+ ref: ref,
43
+ 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
+ ...props
45
+ }));
46
+ MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
47
+ const MenubarContent = React.forwardRef(({
48
+ className,
49
+ align = 'start',
50
+ alignOffset = -4,
51
+ sideOffset = 8,
52
+ ...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
+ }));
63
+ MenubarContent.displayName = MenubarPrimitive.Content.displayName;
64
+ const MenubarItem = React.forwardRef(({
65
+ className,
66
+ inset,
67
+ ...props
68
+ }, ref) => jsx(MenubarPrimitive.Item, {
69
+ ref: ref,
70
+ 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
+ ...props
72
+ }));
73
+ MenubarItem.displayName = MenubarPrimitive.Item.displayName;
74
+ const MenubarCheckboxItem = React.forwardRef(({
75
+ className,
76
+ children,
77
+ checked,
78
+ ...props
79
+ }, ref) => jsxs(MenubarPrimitive.CheckboxItem, {
80
+ ref: ref,
81
+ 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
+ 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
+ }));
93
+ MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
94
+ const MenubarRadioItem = React.forwardRef(({
95
+ className,
96
+ children,
97
+ ...props
98
+ }, ref) => jsxs(MenubarPrimitive.RadioItem, {
99
+ ref: ref,
100
+ 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
+ }));
111
+ MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
112
+ const MenubarLabel = React.forwardRef(({
113
+ className,
114
+ inset,
115
+ ...props
116
+ }, ref) => jsx(MenubarPrimitive.Label, {
117
+ ref: ref,
118
+ className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
119
+ ...props
120
+ }));
121
+ MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
122
+ const MenubarSeparator = React.forwardRef(({
123
+ className,
124
+ ...props
125
+ }, ref) => jsx(MenubarPrimitive.Separator, {
126
+ ref: ref,
127
+ className: cn('-mx-1 my-1 h-px bg-muted', className),
128
+ ...props
129
+ }));
130
+ MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
131
+ const MenubarShortcut = ({
132
+ className,
133
+ ...props
134
+ }) => {
135
+ return jsx("span", {
136
+ className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
137
+ ...props
138
+ });
139
+ };
140
+ MenubarShortcut.displayname = 'MenubarShortcut';export{Menubar,MenubarCheckboxItem,MenubarContent,MenubarGroup,MenubarItem,MenubarLabel,MenubarMenu,MenubarPortal,MenubarRadioGroup,MenubarRadioItem,MenubarSeparator,MenubarShortcut,MenubarSub,MenubarSubContent,MenubarSubTrigger,MenubarTrigger};//# sourceMappingURL=menubar.js.map
@@ -0,0 +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,UAAkB,GAAA,gBAAA,CAAA;AAElB,MAAA,iBAAmB,GAAA,gBAAA,CAAA;AAEnB,MAAA,OAAA,GAAgB,KAAA,CAAA,UAAA,CAAA,CAAA;AAEhB,EAAA,SAAA;AAEA,EAAA,GAAA;AAYA,CAAA,EAAA,GAAA,KAAAA,GAAoB,CAAA,gBAAA,CAAA,IAAA,EAAA;AAepB,EAAA,GAAA,EAAA;aAGuB,EAAA,CAAA,sEAAA,EAAA,SAAA,CAAA;;AAkBvB,CAAA,CAAA;AAeA,OAAA,CAAA,WAAoB,GAAA,gBAAA,CAAA,IAAA,CAAA,WAAA;AAoBpB,MAAA,cAAiB,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;;;AAkBjB,CAAA,EAAA,GAAA,KAAAA,GAAyB,CAAA,gBAAA,CAAA,OAAA,EAAA;AAuBzB,EAAA,GAAA,EAAA,GAAA;AAsBA,EAAA,aAAkB,CAAA,wNAAA,EAAA,SAAA,CAAA;;;AAclB,cAAM,CAAgB,WAAA,GAAA,gBAAA,CAAA,OAAA,CAAA,WAAA;AAQtB,MAAA,iBAAqB,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAA6B,EAAA,SAAA;;EAEhD,QAAA;AAGF,EAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
3
+ declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
4
+ declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
5
+ declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
6
+ declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp) => string;
7
+ declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
+ declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
10
+ declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ export { navigationMenuTriggerStyle, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, };
13
+ //# sourceMappingURL=navigation-menu.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,70 @@
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';const NavigationMenu = React.forwardRef(({
2
+ className,
3
+ children,
4
+ ...props
5
+ }, ref) => jsxs(NavigationMenuPrimitive.Root, {
6
+ ref: ref,
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
+ }));
11
+ NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
12
+ const NavigationMenuList = React.forwardRef(({
13
+ className,
14
+ ...props
15
+ }, ref) => jsx(NavigationMenuPrimitive.List, {
16
+ ref: ref,
17
+ className: cn('group flex flex-1 list-none items-center justify-center space-x-1', className),
18
+ ...props
19
+ }));
20
+ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
21
+ const NavigationMenuItem = NavigationMenuPrimitive.Item;
22
+ const navigationMenuTriggerStyle = cva('group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50');
23
+ const NavigationMenuTrigger = React.forwardRef(({
24
+ className,
25
+ children,
26
+ ...props
27
+ }, ref) => jsxs(NavigationMenuPrimitive.Trigger, {
28
+ ref: ref,
29
+ 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
+ }));
36
+ NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
37
+ const NavigationMenuContent = React.forwardRef(({
38
+ className,
39
+ ...props
40
+ }, ref) => jsx(NavigationMenuPrimitive.Content, {
41
+ ref: ref,
42
+ 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
+ ...props
44
+ }));
45
+ NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
46
+ const NavigationMenuLink = NavigationMenuPrimitive.Link;
47
+ const NavigationMenuViewport = React.forwardRef(({
48
+ className,
49
+ ...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
+ }));
58
+ NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
59
+ const NavigationMenuIndicator = React.forwardRef(({
60
+ className,
61
+ ...props
62
+ }, ref) => jsx(NavigationMenuPrimitive.Indicator, {
63
+ ref: ref,
64
+ 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
+ }));
70
+ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;export{NavigationMenu,NavigationMenuContent,NavigationMenuIndicator,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NavigationMenuViewport,navigationMenuTriggerStyle};//# sourceMappingURL=navigation-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-menu.js","sources":["../../src/shardui/navigation-menu.tsx"],"sourcesContent":[null],"names":["_jsxs"],"mappings":"mUAwCA,MAAA,cAA2B,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAkB3B,EAAA,SAAA;AAeA,EAAA,QAAA;AAEA,EAAA,GAAA;AAiBA,CAAA,EAAA,GAAA,KAAAA,IAA6B,CAAA,uBAAA,CAAA,IAAA,EAAA;AAiB7B,EAAA,GAAA,EAAO,GACuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ import { ButtonProps } from './button';
3
+ declare const Pagination: {
4
+ ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
8
+ declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
9
+ type PaginationLinkProps = {
10
+ isActive?: boolean;
11
+ } & Pick<ButtonProps, 'size'> & React.ComponentProps<'a'>;
12
+ declare const PaginationLink: {
13
+ ({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const PaginationPrevious: {
17
+ ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ declare const PaginationNext: {
21
+ ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
22
+ displayName: string;
23
+ };
24
+ declare const PaginationEllipsis: {
25
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
26
+ displayName: string;
27
+ };
28
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
29
+ //# sourceMappingURL=pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/shardui/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAkB,MAAM,UAAU,CAAC;AAEvD,QAAA,MAAM,UAAU;8BAA6B,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;;CAOvE,CAAC;AAGF,QAAA,MAAM,iBAAiB,yKAItB,CAAC;AAGF,QAAA,MAAM,cAAc,kKAElB,CAAC;AAGH,KAAK,mBAAmB,GAAG;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GACzB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AAE9B,QAAA,MAAM,cAAc;8CAAsD,mBAAmB;;CAY5F,CAAC;AAGF,QAAA,MAAM,kBAAkB;8BAA6B,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC;;CAU/F,CAAC;AAGF,QAAA,MAAM,cAAc;8BAA6B,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC;;CAK3F,CAAC;AAGF,QAAA,MAAM,kBAAkB;8BAA6B,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC;;CAKhF,CAAC;AAGF,OAAO,EACH,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,GACrB,CAAC"}
@@ -0,0 +1,87 @@
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';import {buttonVariants}from'./button.js';const Pagination = ({
2
+ className,
3
+ ...props
4
+ }) => jsx("nav", {
5
+ role: "navigation",
6
+ "aria-label": "pagination",
7
+ className: cn('mx-auto flex w-full justify-center', className),
8
+ ...props
9
+ });
10
+ Pagination.displayName = 'Pagination';
11
+ const PaginationContent = React.forwardRef(({
12
+ className,
13
+ ...props
14
+ }, ref) => jsx("ul", {
15
+ ref: ref,
16
+ className: cn('flex flex-row items-center gap-1', className),
17
+ ...props
18
+ }));
19
+ PaginationContent.displayName = 'PaginationContent';
20
+ const PaginationItem = React.forwardRef(({
21
+ className,
22
+ ...props
23
+ }, ref) => jsx("li", {
24
+ ref: ref,
25
+ className: cn('', className),
26
+ ...props
27
+ }));
28
+ PaginationItem.displayName = 'PaginationItem';
29
+ const PaginationLink = ({
30
+ className,
31
+ isActive,
32
+ size = 'icon',
33
+ ...props
34
+ }) => jsx("a", {
35
+ "aria-current": isActive ? 'page' : undefined,
36
+ className: cn(buttonVariants({
37
+ variant: isActive ? 'outline' : 'ghost',
38
+ size
39
+ }), className),
40
+ ...props
41
+ });
42
+ PaginationLink.displayName = 'PaginationLink';
43
+ const PaginationPrevious = ({
44
+ className,
45
+ ...props
46
+ }) => jsxs(PaginationLink, {
47
+ "aria-label": "Go to previous page",
48
+ size: "default",
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
+ });
57
+ PaginationPrevious.displayName = 'PaginationPrevious';
58
+ const PaginationNext = ({
59
+ className,
60
+ ...props
61
+ }) => jsxs(PaginationLink, {
62
+ "aria-label": "Go to next page",
63
+ size: "default",
64
+ 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
+ });
72
+ PaginationNext.displayName = 'PaginationNext';
73
+ const PaginationEllipsis = ({
74
+ className,
75
+ ...props
76
+ }) => jsxs("span", {
77
+ "aria-hidden": true,
78
+ 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
+ });
87
+ PaginationEllipsis.displayName = 'PaginationEllipsis';export{Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious};//# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","sources":["../../src/shardui/pagination.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"qRAaE,MAAA,UAAA,GAAA,CAAA;AAGF,EAAA,SAAA;AAOA,EAAA,GAAA;AAKA,CAAA;MACY,EAAA,YAAG;AACd,EAAA,YAAmB,EAAA,YAAQ;AAG5B,EAAA,aAAoB,CAAA,oCAAA,EAAA,SAAA,CAAA;;;UAYlB,CAAA,WAAA,GAAA,YAAA;AAGF,MAAA,iBAAwB,GAAA,KAAA,CAAA,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,iBAAwB,CAAA,WAAA,GAAA,mBAAA;AAA6B,MAAA,cAAA,GAAA,KAAA,CAAA,UAAM,CAAA,CAAA;;EAKzD,GAAA;AAGF,CAAA,EAAA,GAAA,KACIA,GAAA,CAAA,IACA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
3
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ export { Popover, PopoverTrigger, PopoverContent };
7
+ //# sourceMappingURL=popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/shardui/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAI5D,QAAA,MAAM,OAAO,yCAAwB,CAAC;AAEtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,gKAgBlB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,17 @@
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';const Popover = PopoverPrimitive.Root;
2
+ const PopoverTrigger = PopoverPrimitive.Trigger;
3
+ const PopoverContent = React.forwardRef(({
4
+ className,
5
+ align = 'center',
6
+ sideOffset = 4,
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
+ }));
17
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;export{Popover,PopoverContent,PopoverTrigger};//# sourceMappingURL=popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.js","sources":["../../src/shardui/popover.tsx"],"sourcesContent":[null],"names":[],"mappings":"6NASA,MAAA,OAAA,GAAoB,gBAAA,CAAA;AAmBpB,MAAA,iCAAkC,CAAA;;;;;;;;;;;;;;;"}
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
3
+ declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export { Progress };
5
+ //# sourceMappingURL=progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/shardui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAI9D,QAAA,MAAM,QAAQ,2JAcZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,16 @@
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';const Progress = React.forwardRef(({
2
+ className,
3
+ value,
4
+ ...props
5
+ }, ref) => jsx(ProgressPrimitive.Root, {
6
+ ref: ref,
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
+ }));
16
+ Progress.displayName = ProgressPrimitive.Root.displayName;export{Progress};//# sourceMappingURL=progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ export { RadioGroup, RadioGroupItem };
6
+ //# sourceMappingURL=radio-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/shardui/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAKnE,QAAA,MAAM,UAAU,+JAKd,CAAC;AAGH,QAAA,MAAM,cAAc,yKAkBlB,CAAC;AAGH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,28 @@
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';const RadioGroup = React.forwardRef(({
2
+ className,
3
+ ...props
4
+ }, ref) => {
5
+ return jsx(RadioGroupPrimitive.Root, {
6
+ className: cn('grid gap-2', className),
7
+ ...props,
8
+ ref: ref
9
+ });
10
+ });
11
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
12
+ const RadioGroupItem = React.forwardRef(({
13
+ className,
14
+ ...props
15
+ }, ref) => {
16
+ return jsx(RadioGroupPrimitive.Item, {
17
+ ref: ref,
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
+ });
27
+ });
28
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;export{RadioGroup,RadioGroupItem};//# sourceMappingURL=radio-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}