@codefast/ui 0.3.9 → 0.3.11-canary.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 (210) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +277 -167
  3. package/dist/components/accordion.cjs +97 -1
  4. package/dist/components/accordion.js +51 -1
  5. package/dist/components/alert-dialog.cjs +155 -1
  6. package/dist/components/alert-dialog.d.ts +2 -2
  7. package/dist/components/alert-dialog.js +94 -1
  8. package/dist/components/alert.cjs +84 -1
  9. package/dist/components/alert.d.ts +1 -1
  10. package/dist/components/alert.js +41 -1
  11. package/dist/components/aspect-ratio.cjs +43 -1
  12. package/dist/components/aspect-ratio.js +9 -1
  13. package/dist/components/avatar.cjs +65 -1
  14. package/dist/components/avatar.js +25 -1
  15. package/dist/components/badge.cjs +66 -1
  16. package/dist/components/badge.d.ts +1 -1
  17. package/dist/components/badge.js +29 -1
  18. package/dist/components/breadcrumb.cjs +124 -1
  19. package/dist/components/breadcrumb.js +72 -1
  20. package/dist/components/button-group.cjs +86 -1
  21. package/dist/components/button-group.d.ts +1 -1
  22. package/dist/components/button-group.js +43 -1
  23. package/dist/components/button.cjs +92 -1
  24. package/dist/components/button.d.ts +1 -1
  25. package/dist/components/button.js +55 -1
  26. package/dist/components/calendar.cjs +150 -1
  27. package/dist/components/calendar.d.ts +11 -18
  28. package/dist/components/calendar.js +113 -1
  29. package/dist/components/card.cjs +105 -1
  30. package/dist/components/card.js +53 -1
  31. package/dist/components/carousel.cjs +210 -1
  32. package/dist/components/carousel.d.ts +1 -1
  33. package/dist/components/carousel.js +151 -1
  34. package/dist/components/chart.cjs +250 -3
  35. package/dist/components/chart.d.ts +5 -4
  36. package/dist/components/chart.js +198 -3
  37. package/dist/components/checkbox-cards.cjs +69 -1
  38. package/dist/components/checkbox-cards.js +32 -1
  39. package/dist/components/checkbox-group.cjs +63 -1
  40. package/dist/components/checkbox-group.js +26 -1
  41. package/dist/components/checkbox.cjs +53 -1
  42. package/dist/components/checkbox.js +19 -1
  43. package/dist/components/collapsible.cjs +61 -1
  44. package/dist/components/collapsible.js +21 -1
  45. package/dist/components/command.cjs +167 -1
  46. package/dist/components/command.js +106 -1
  47. package/dist/components/context-menu.cjs +218 -1
  48. package/dist/components/context-menu.js +142 -1
  49. package/dist/components/dialog.cjs +164 -1
  50. package/dist/components/dialog.d.ts +2 -2
  51. package/dist/components/dialog.js +106 -1
  52. package/dist/components/drawer.cjs +143 -1
  53. package/dist/components/drawer.d.ts +1 -1
  54. package/dist/components/drawer.js +85 -1
  55. package/dist/components/dropdown-menu.cjs +221 -1
  56. package/dist/components/dropdown-menu.js +145 -1
  57. package/dist/components/empty.cjs +113 -1
  58. package/dist/components/empty.d.ts +1 -1
  59. package/dist/components/empty.js +61 -1
  60. package/dist/components/field.cjs +193 -1
  61. package/dist/components/field.d.ts +1 -1
  62. package/dist/components/field.js +129 -1
  63. package/dist/components/form.cjs +151 -1
  64. package/dist/components/form.d.ts +3 -3
  65. package/dist/components/form.js +96 -1
  66. package/dist/components/hover-card.cjs +77 -1
  67. package/dist/components/hover-card.js +34 -1
  68. package/dist/components/input-group.cjs +155 -1
  69. package/dist/components/input-group.d.ts +1 -1
  70. package/dist/components/input-group.js +97 -1
  71. package/dist/components/input-number.cjs +98 -1
  72. package/dist/components/input-number.js +64 -1
  73. package/dist/components/input-otp.cjs +101 -1
  74. package/dist/components/input-otp.js +49 -1
  75. package/dist/components/input-password.cjs +71 -1
  76. package/dist/components/input-password.js +37 -1
  77. package/dist/components/input-search.cjs +80 -1
  78. package/dist/components/input-search.js +46 -1
  79. package/dist/components/input.cjs +45 -1
  80. package/dist/components/input.js +11 -1
  81. package/dist/components/item.cjs +186 -1
  82. package/dist/components/item.d.ts +1 -1
  83. package/dist/components/item.js +119 -1
  84. package/dist/components/kbd.cjs +54 -1
  85. package/dist/components/kbd.js +17 -1
  86. package/dist/components/label.cjs +45 -1
  87. package/dist/components/label.js +11 -1
  88. package/dist/components/menubar.cjs +232 -1
  89. package/dist/components/menubar.js +153 -1
  90. package/dist/components/native-select.cjs +75 -1
  91. package/dist/components/native-select.js +35 -1
  92. package/dist/components/navigation-menu.cjs +146 -2
  93. package/dist/components/navigation-menu.js +94 -2
  94. package/dist/components/pagination.cjs +138 -1
  95. package/dist/components/pagination.d.ts +1 -1
  96. package/dist/components/pagination.js +86 -1
  97. package/dist/components/popover.cjs +86 -1
  98. package/dist/components/popover.js +40 -1
  99. package/dist/components/progress-circle.cjs +184 -1
  100. package/dist/components/progress-circle.d.ts +1 -1
  101. package/dist/components/progress-circle.js +147 -1
  102. package/dist/components/progress.cjs +52 -1
  103. package/dist/components/progress.js +18 -1
  104. package/dist/components/radio-cards.cjs +66 -1
  105. package/dist/components/radio-cards.js +29 -1
  106. package/dist/components/radio-group.cjs +59 -1
  107. package/dist/components/radio-group.js +22 -1
  108. package/dist/components/radio.cjs +47 -1
  109. package/dist/components/radio.js +13 -1
  110. package/dist/components/resizable.cjs +71 -1
  111. package/dist/components/resizable.d.ts +6 -6
  112. package/dist/components/resizable.js +31 -1
  113. package/dist/components/scroll-area.cjs +140 -1
  114. package/dist/components/scroll-area.d.ts +1 -1
  115. package/dist/components/scroll-area.js +100 -1
  116. package/dist/components/select.cjs +180 -1
  117. package/dist/components/select.d.ts +2 -2
  118. package/dist/components/select.js +119 -1
  119. package/dist/components/separator.cjs +82 -1
  120. package/dist/components/separator.d.ts +1 -1
  121. package/dist/components/separator.js +42 -1
  122. package/dist/components/sheet.cjs +184 -1
  123. package/dist/components/sheet.d.ts +2 -2
  124. package/dist/components/sheet.js +123 -1
  125. package/dist/components/sidebar.cjs +506 -1
  126. package/dist/components/sidebar.d.ts +1 -1
  127. package/dist/components/sidebar.js +400 -1
  128. package/dist/components/skeleton.cjs +44 -1
  129. package/dist/components/skeleton.js +10 -1
  130. package/dist/components/slider.cjs +79 -1
  131. package/dist/components/slider.js +45 -1
  132. package/dist/components/sonner.cjs +57 -1
  133. package/dist/components/sonner.js +17 -1
  134. package/dist/components/spinner.cjs +75 -1
  135. package/dist/components/spinner.js +41 -1
  136. package/dist/components/switch.cjs +49 -1
  137. package/dist/components/switch.js +15 -1
  138. package/dist/components/table.cjs +118 -1
  139. package/dist/components/table.js +63 -1
  140. package/dist/components/tabs.cjs +75 -1
  141. package/dist/components/tabs.d.ts +1 -1
  142. package/dist/components/tabs.js +32 -1
  143. package/dist/components/textarea.cjs +44 -1
  144. package/dist/components/textarea.js +10 -1
  145. package/dist/components/toggle-group.cjs +90 -1
  146. package/dist/components/toggle-group.d.ts +8 -10
  147. package/dist/components/toggle-group.js +53 -1
  148. package/dist/components/toggle.cjs +71 -1
  149. package/dist/components/toggle.d.ts +8 -10
  150. package/dist/components/toggle.js +34 -1
  151. package/dist/components/tooltip.cjs +90 -1
  152. package/dist/components/tooltip.js +44 -1
  153. package/dist/css/amber.css +95 -1
  154. package/dist/css/blue.css +95 -1
  155. package/dist/css/cyan.css +95 -1
  156. package/dist/css/emerald.css +95 -1
  157. package/dist/css/fuchsia.css +95 -1
  158. package/dist/css/gray.css +95 -1
  159. package/dist/css/green.css +95 -1
  160. package/dist/css/indigo.css +95 -1
  161. package/dist/css/lime.css +95 -1
  162. package/dist/css/neutral.css +95 -1
  163. package/dist/css/orange.css +95 -1
  164. package/dist/css/pink.css +95 -1
  165. package/dist/css/preset.css +118 -1
  166. package/dist/css/purple.css +95 -1
  167. package/dist/css/red.css +95 -1
  168. package/dist/css/rose.css +95 -1
  169. package/dist/css/sky.css +95 -1
  170. package/dist/css/slate.css +95 -1
  171. package/dist/css/stone.css +95 -1
  172. package/dist/css/style.css +3 -1
  173. package/dist/css/teal.css +95 -1
  174. package/dist/css/violet.css +95 -1
  175. package/dist/css/yellow.css +95 -1
  176. package/dist/css/zinc.css +95 -1
  177. package/dist/hooks/use-animated-value.cjs +74 -1
  178. package/dist/hooks/use-animated-value.d.ts +9 -10
  179. package/dist/hooks/use-animated-value.js +40 -1
  180. package/dist/hooks/use-copy-to-clipboard.cjs +57 -1
  181. package/dist/hooks/use-copy-to-clipboard.d.ts +17 -0
  182. package/dist/hooks/use-copy-to-clipboard.js +23 -1
  183. package/dist/hooks/use-is-mobile.cjs +39 -1
  184. package/dist/hooks/use-is-mobile.d.ts +15 -6
  185. package/dist/hooks/use-is-mobile.js +5 -1
  186. package/dist/hooks/use-media-query.cjs +56 -1
  187. package/dist/hooks/use-media-query.d.ts +11 -3
  188. package/dist/hooks/use-media-query.js +22 -1
  189. package/dist/hooks/use-mutation-observer.cjs +56 -1
  190. package/dist/hooks/use-mutation-observer.d.ts +7 -11
  191. package/dist/hooks/use-mutation-observer.js +22 -1
  192. package/dist/hooks/use-pagination.cjs +92 -1
  193. package/dist/hooks/use-pagination.d.ts +12 -10
  194. package/dist/hooks/use-pagination.js +55 -1
  195. package/dist/index.cjs +1081 -1
  196. package/dist/index.d.ts +4 -5
  197. package/dist/index.js +69 -1
  198. package/dist/primitives/checkbox-group.cjs +151 -1
  199. package/dist/primitives/checkbox-group.d.ts +1 -1
  200. package/dist/primitives/checkbox-group.js +99 -1
  201. package/dist/primitives/input-number.cjs +439 -1
  202. package/dist/primitives/input-number.d.ts +1 -1
  203. package/dist/primitives/input-number.js +381 -1
  204. package/dist/primitives/input.cjs +99 -1
  205. package/dist/primitives/input.d.ts +1 -1
  206. package/dist/primitives/input.js +53 -1
  207. package/dist/primitives/progress-circle.cjs +198 -1
  208. package/dist/primitives/progress-circle.d.ts +1 -1
  209. package/dist/primitives/progress-circle.js +128 -1
  210. package/package.json +405 -62
@@ -1,2 +1,66 @@
1
+ "use strict";
1
2
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var _ in a)__webpack_require__.o(a,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:a[_]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AvatarFallback:()=>AvatarFallback,Avatar:()=>Avatar,AvatarImage:()=>AvatarImage});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_avatar_namespaceObject=require("@radix-ui/react-avatar");function Avatar({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Root,{className:(0,tailwind_variants_namespaceObject.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),"data-slot":"avatar",...a})}function AvatarImage({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Image,{className:(0,tailwind_variants_namespaceObject.cn)("aspect-square size-full",e),"data-slot":"avatar-image",...a})}function AvatarFallback({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Fallback,{className:(0,tailwind_variants_namespaceObject.cn)("bg-muted flex size-full items-center justify-center rounded-full",e),"data-slot":"avatar-fallback",...a})}for(var __webpack_i__ in exports.Avatar=__webpack_exports__.Avatar,exports.AvatarFallback=__webpack_exports__.AvatarFallback,exports.AvatarImage=__webpack_exports__.AvatarImage,__webpack_exports__)-1===["Avatar","AvatarFallback","AvatarImage"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
+ var __webpack_require__ = {};
4
+ (()=>{
5
+ __webpack_require__.d = (exports1, definition)=>{
6
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
+ enumerable: true,
8
+ get: definition[key]
9
+ });
10
+ };
11
+ })();
12
+ (()=>{
13
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
14
+ })();
15
+ (()=>{
16
+ __webpack_require__.r = (exports1)=>{
17
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
18
+ value: 'Module'
19
+ });
20
+ Object.defineProperty(exports1, '__esModule', {
21
+ value: true
22
+ });
23
+ };
24
+ })();
25
+ var __webpack_exports__ = {};
26
+ __webpack_require__.r(__webpack_exports__);
27
+ __webpack_require__.d(__webpack_exports__, {
28
+ AvatarFallback: ()=>AvatarFallback,
29
+ Avatar: ()=>Avatar,
30
+ AvatarImage: ()=>AvatarImage
31
+ });
32
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
33
+ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
34
+ const react_avatar_namespaceObject = require("@radix-ui/react-avatar");
35
+ function Avatar({ className, ...props }) {
36
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Root, {
37
+ className: (0, tailwind_variants_namespaceObject.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
38
+ "data-slot": "avatar",
39
+ ...props
40
+ });
41
+ }
42
+ function AvatarImage({ className, ...props }) {
43
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Image, {
44
+ className: (0, tailwind_variants_namespaceObject.cn)("aspect-square size-full", className),
45
+ "data-slot": "avatar-image",
46
+ ...props
47
+ });
48
+ }
49
+ function AvatarFallback({ className, ...props }) {
50
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Fallback, {
51
+ className: (0, tailwind_variants_namespaceObject.cn)("flex size-full items-center justify-center rounded-full bg-muted", className),
52
+ "data-slot": "avatar-fallback",
53
+ ...props
54
+ });
55
+ }
56
+ exports.Avatar = __webpack_exports__.Avatar;
57
+ exports.AvatarFallback = __webpack_exports__.AvatarFallback;
58
+ exports.AvatarImage = __webpack_exports__.AvatarImage;
59
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
60
+ "Avatar",
61
+ "AvatarFallback",
62
+ "AvatarImage"
63
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
64
+ Object.defineProperty(exports, '__esModule', {
65
+ value: true
66
+ });
@@ -1,2 +1,26 @@
1
1
  "use client";
2
- import{jsx as a}from"react/jsx-runtime";import{cn as t}from"@codefast/tailwind-variants";import{Fallback as r,Image as e,Root as l}from"@radix-ui/react-avatar";function i({className:r,...e}){return a(l,{className:t("relative flex size-8 shrink-0 overflow-hidden rounded-full",r),"data-slot":"avatar",...e})}function s({className:r,...l}){return a(e,{className:t("aspect-square size-full",r),"data-slot":"avatar-image",...l})}function n({className:e,...l}){return a(r,{className:t("bg-muted flex size-full items-center justify-center rounded-full",e),"data-slot":"avatar-fallback",...l})}export{i as Avatar,n as AvatarFallback,s as AvatarImage};
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { cn } from "@codefast/tailwind-variants";
4
+ import { Fallback, Image, Root } from "@radix-ui/react-avatar";
5
+ function Avatar({ className, ...props }) {
6
+ return /*#__PURE__*/ jsx(Root, {
7
+ className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
8
+ "data-slot": "avatar",
9
+ ...props
10
+ });
11
+ }
12
+ function AvatarImage({ className, ...props }) {
13
+ return /*#__PURE__*/ jsx(Image, {
14
+ className: cn("aspect-square size-full", className),
15
+ "data-slot": "avatar-image",
16
+ ...props
17
+ });
18
+ }
19
+ function AvatarFallback({ className, ...props }) {
20
+ return /*#__PURE__*/ jsx(Fallback, {
21
+ className: cn("flex size-full items-center justify-center rounded-full bg-muted", className),
22
+ "data-slot": "avatar-fallback",
23
+ ...props
24
+ });
25
+ }
26
+ export { Avatar, AvatarFallback, AvatarImage };
@@ -1,2 +1,67 @@
1
+ "use strict";
1
2
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var a in r)__webpack_require__.o(r,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Badge:()=>Badge,badgeVariants:()=>badgeVariants});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_slot_namespaceObject=require("@radix-ui/react-slot"),badgeVariants=(0,tailwind_variants_namespaceObject.tv)({base:"focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden inline-flex w-fit shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium transition [&>svg]:size-3 [&>svg]:shrink-0",defaultVariants:{variant:"default"},variants:{variant:{default:"bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent",destructive:"bg-destructive dark:bg-destructive/60 [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border-transparent text-white",outline:"bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [a&]:hover:border-ring/60 focus-visible:border-ring",secondary:"bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent"}}});function Badge({asChild:e,className:r,variant:a,...t}){let _=e?react_slot_namespaceObject.Slot:"span";return(0,jsx_runtime_namespaceObject.jsx)(_,{className:badgeVariants({className:r,variant:a}),"data-slot":"badge",...t})}for(var __webpack_i__ in exports.Badge=__webpack_exports__.Badge,exports.badgeVariants=__webpack_exports__.badgeVariants,__webpack_exports__)-1===["Badge","badgeVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
+ var __webpack_require__ = {};
4
+ (()=>{
5
+ __webpack_require__.d = (exports1, definition)=>{
6
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
+ enumerable: true,
8
+ get: definition[key]
9
+ });
10
+ };
11
+ })();
12
+ (()=>{
13
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
14
+ })();
15
+ (()=>{
16
+ __webpack_require__.r = (exports1)=>{
17
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
18
+ value: 'Module'
19
+ });
20
+ Object.defineProperty(exports1, '__esModule', {
21
+ value: true
22
+ });
23
+ };
24
+ })();
25
+ var __webpack_exports__ = {};
26
+ __webpack_require__.r(__webpack_exports__);
27
+ __webpack_require__.d(__webpack_exports__, {
28
+ Badge: ()=>Badge,
29
+ badgeVariants: ()=>badgeVariants
30
+ });
31
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
32
+ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
33
+ const react_slot_namespaceObject = require("@radix-ui/react-slot");
34
+ const badgeVariants = (0, tailwind_variants_namespaceObject.tv)({
35
+ base: "inline-flex w-fit shrink-0 items-center justify-center gap-2 rounded-md border px-1.5 py-0.5 text-xs font-medium whitespace-nowrap outline-hidden transition focus-visible:ring-3 focus-visible:ring-ring/50 [&>svg]:size-3 [&>svg]:shrink-0",
36
+ defaultVariants: {
37
+ variant: "default"
38
+ },
39
+ variants: {
40
+ variant: {
41
+ default: "border-transparent bg-primary text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 [a&]:hover:bg-primary/80",
42
+ destructive: "border-transparent bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",
43
+ outline: "border-input bg-background focus-visible:border-ring [a&]:hover:border-ring/60 [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
44
+ secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/80"
45
+ }
46
+ }
47
+ });
48
+ function Badge({ asChild, className, variant, ...props }) {
49
+ const Component = asChild ? react_slot_namespaceObject.Slot : "span";
50
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, {
51
+ className: badgeVariants({
52
+ className,
53
+ variant
54
+ }),
55
+ "data-slot": "badge",
56
+ ...props
57
+ });
58
+ }
59
+ exports.Badge = __webpack_exports__.Badge;
60
+ exports.badgeVariants = __webpack_exports__.badgeVariants;
61
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
62
+ "Badge",
63
+ "badgeVariants"
64
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
65
+ Object.defineProperty(exports, '__esModule', {
66
+ value: true
67
+ });
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, JSX } from "react";
2
1
  import type { VariantProps } from "@codefast/tailwind-variants";
2
+ import type { ComponentProps, JSX } from "react";
3
3
  declare const badgeVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
4
4
  variant: {
5
5
  default: string;
@@ -1,2 +1,30 @@
1
1
  "use client";
2
- import{jsx as r}from"react/jsx-runtime";import{tv as e}from"@codefast/tailwind-variants";import{Slot as t}from"@radix-ui/react-slot";let i=e({base:"focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden inline-flex w-fit shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium transition [&>svg]:size-3 [&>svg]:shrink-0",defaultVariants:{variant:"default"},variants:{variant:{default:"bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent",destructive:"bg-destructive dark:bg-destructive/60 [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border-transparent text-white",outline:"bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [a&]:hover:border-ring/60 focus-visible:border-ring",secondary:"bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent"}}});function a({asChild:e,className:a,variant:n,...s}){return r(e?t:"span",{className:i({className:a,variant:n}),"data-slot":"badge",...s})}export{a as Badge,i as badgeVariants};
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { tv } from "@codefast/tailwind-variants";
4
+ import { Slot } from "@radix-ui/react-slot";
5
+ const badgeVariants = tv({
6
+ base: "inline-flex w-fit shrink-0 items-center justify-center gap-2 rounded-md border px-1.5 py-0.5 text-xs font-medium whitespace-nowrap outline-hidden transition focus-visible:ring-3 focus-visible:ring-ring/50 [&>svg]:size-3 [&>svg]:shrink-0",
7
+ defaultVariants: {
8
+ variant: "default"
9
+ },
10
+ variants: {
11
+ variant: {
12
+ default: "border-transparent bg-primary text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 [a&]:hover:bg-primary/80",
13
+ destructive: "border-transparent bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",
14
+ outline: "border-input bg-background focus-visible:border-ring [a&]:hover:border-ring/60 [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
15
+ secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/80"
16
+ }
17
+ }
18
+ });
19
+ function Badge({ asChild, className, variant, ...props }) {
20
+ const Component = asChild ? Slot : "span";
21
+ return /*#__PURE__*/ jsx(Component, {
22
+ className: badgeVariants({
23
+ className,
24
+ variant
25
+ }),
26
+ "data-slot": "badge",
27
+ ...props
28
+ });
29
+ }
30
+ export { Badge, badgeVariants };
@@ -1,2 +1,125 @@
1
+ "use strict";
1
2
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var a in r)__webpack_require__.o(r,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BreadcrumbPage:()=>BreadcrumbPage,BreadcrumbSeparator:()=>BreadcrumbSeparator,BreadcrumbItem:()=>BreadcrumbItem,BreadcrumbEllipsis:()=>BreadcrumbEllipsis,BreadcrumbLink:()=>BreadcrumbLink,Breadcrumb:()=>Breadcrumb,BreadcrumbList:()=>BreadcrumbList});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_lucide_react_namespaceObject=require("lucide-react"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_slot_namespaceObject=require("@radix-ui/react-slot");function Breadcrumb({...e}){return(0,jsx_runtime_namespaceObject.jsx)("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function BreadcrumbList({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("ol",{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2",e),"data-slot":"breadcrumb-list",...r})}function BreadcrumbItem({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("li",{className:(0,tailwind_variants_namespaceObject.cn)("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...r})}function BreadcrumbLink({asChild:e,className:r,...a}){let t=e?react_slot_namespaceObject.Slot:"a";return(0,jsx_runtime_namespaceObject.jsx)(t,{className:(0,tailwind_variants_namespaceObject.cn)("hover:text-foreground transition-colors",r),"data-slot":"breadcrumb-link",...a})}function BreadcrumbPage({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("span",{"aria-current":"page","aria-disabled":"true",className:(0,tailwind_variants_namespaceObject.cn)("text-foreground font-normal",e),"data-slot":"breadcrumb-page",role:"link",tabIndex:0,...r})}function BreadcrumbSeparator({children:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("li",{"aria-hidden":"true","data-slot":"breadcrumb-separator",role:"presentation",...r,children:e??(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon,{className:"size-3.5"})})}function BreadcrumbEllipsis({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsxs)("span",{"aria-hidden":"true",className:(0,tailwind_variants_namespaceObject.cn)("flex size-4 items-center justify-center",e),"data-slot":"breadcrumb-ellipsis",role:"presentation",...r,children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EllipsisIcon,{className:"size-4"}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"More"})]})}for(var __webpack_i__ in exports.Breadcrumb=__webpack_exports__.Breadcrumb,exports.BreadcrumbEllipsis=__webpack_exports__.BreadcrumbEllipsis,exports.BreadcrumbItem=__webpack_exports__.BreadcrumbItem,exports.BreadcrumbLink=__webpack_exports__.BreadcrumbLink,exports.BreadcrumbList=__webpack_exports__.BreadcrumbList,exports.BreadcrumbPage=__webpack_exports__.BreadcrumbPage,exports.BreadcrumbSeparator=__webpack_exports__.BreadcrumbSeparator,__webpack_exports__)-1===["Breadcrumb","BreadcrumbEllipsis","BreadcrumbItem","BreadcrumbLink","BreadcrumbList","BreadcrumbPage","BreadcrumbSeparator"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
+ var __webpack_require__ = {};
4
+ (()=>{
5
+ __webpack_require__.d = (exports1, definition)=>{
6
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
+ enumerable: true,
8
+ get: definition[key]
9
+ });
10
+ };
11
+ })();
12
+ (()=>{
13
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
14
+ })();
15
+ (()=>{
16
+ __webpack_require__.r = (exports1)=>{
17
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
18
+ value: 'Module'
19
+ });
20
+ Object.defineProperty(exports1, '__esModule', {
21
+ value: true
22
+ });
23
+ };
24
+ })();
25
+ var __webpack_exports__ = {};
26
+ __webpack_require__.r(__webpack_exports__);
27
+ __webpack_require__.d(__webpack_exports__, {
28
+ BreadcrumbPage: ()=>BreadcrumbPage,
29
+ BreadcrumbSeparator: ()=>BreadcrumbSeparator,
30
+ BreadcrumbItem: ()=>BreadcrumbItem,
31
+ BreadcrumbEllipsis: ()=>BreadcrumbEllipsis,
32
+ BreadcrumbLink: ()=>BreadcrumbLink,
33
+ Breadcrumb: ()=>Breadcrumb,
34
+ BreadcrumbList: ()=>BreadcrumbList
35
+ });
36
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
37
+ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
38
+ const react_slot_namespaceObject = require("@radix-ui/react-slot");
39
+ const external_lucide_react_namespaceObject = require("lucide-react");
40
+ function Breadcrumb({ ...props }) {
41
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("nav", {
42
+ "aria-label": "breadcrumb",
43
+ "data-slot": "breadcrumb",
44
+ ...props
45
+ });
46
+ }
47
+ function BreadcrumbList({ className, ...props }) {
48
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("ol", {
49
+ className: (0, tailwind_variants_namespaceObject.cn)("flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2", className),
50
+ "data-slot": "breadcrumb-list",
51
+ ...props
52
+ });
53
+ }
54
+ function BreadcrumbItem({ className, ...props }) {
55
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("li", {
56
+ className: (0, tailwind_variants_namespaceObject.cn)("inline-flex items-center gap-1.5", className),
57
+ "data-slot": "breadcrumb-item",
58
+ ...props
59
+ });
60
+ }
61
+ function BreadcrumbLink({ asChild, className, ...props }) {
62
+ const Component = asChild ? react_slot_namespaceObject.Slot : "a";
63
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, {
64
+ className: (0, tailwind_variants_namespaceObject.cn)("transition-colors hover:text-foreground", className),
65
+ "data-slot": "breadcrumb-link",
66
+ ...props
67
+ });
68
+ }
69
+ function BreadcrumbPage({ className, ...props }) {
70
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
71
+ "aria-current": "page",
72
+ "aria-disabled": "true",
73
+ className: (0, tailwind_variants_namespaceObject.cn)("font-normal text-foreground", className),
74
+ "data-slot": "breadcrumb-page",
75
+ ...props
76
+ });
77
+ }
78
+ function BreadcrumbSeparator({ children, ...props }) {
79
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("li", {
80
+ "aria-hidden": "true",
81
+ "data-slot": "breadcrumb-separator",
82
+ role: "presentation",
83
+ ...props,
84
+ children: children ?? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon, {
85
+ className: "size-3.5"
86
+ })
87
+ });
88
+ }
89
+ function BreadcrumbEllipsis({ className, ...props }) {
90
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
91
+ "aria-hidden": "true",
92
+ className: (0, tailwind_variants_namespaceObject.cn)("flex size-4 items-center justify-center", className),
93
+ "data-slot": "breadcrumb-ellipsis",
94
+ role: "presentation",
95
+ ...props,
96
+ children: [
97
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EllipsisIcon, {
98
+ className: "size-4"
99
+ }),
100
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
101
+ className: "sr-only",
102
+ children: "More"
103
+ })
104
+ ]
105
+ });
106
+ }
107
+ exports.Breadcrumb = __webpack_exports__.Breadcrumb;
108
+ exports.BreadcrumbEllipsis = __webpack_exports__.BreadcrumbEllipsis;
109
+ exports.BreadcrumbItem = __webpack_exports__.BreadcrumbItem;
110
+ exports.BreadcrumbLink = __webpack_exports__.BreadcrumbLink;
111
+ exports.BreadcrumbList = __webpack_exports__.BreadcrumbList;
112
+ exports.BreadcrumbPage = __webpack_exports__.BreadcrumbPage;
113
+ exports.BreadcrumbSeparator = __webpack_exports__.BreadcrumbSeparator;
114
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
115
+ "Breadcrumb",
116
+ "BreadcrumbEllipsis",
117
+ "BreadcrumbItem",
118
+ "BreadcrumbLink",
119
+ "BreadcrumbList",
120
+ "BreadcrumbPage",
121
+ "BreadcrumbSeparator"
122
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
123
+ Object.defineProperty(exports, '__esModule', {
124
+ value: true
125
+ });
@@ -1,2 +1,73 @@
1
1
  "use client";
2
- import{jsx as r,jsxs as e}from"react/jsx-runtime";import{ChevronRightIcon as a,EllipsisIcon as t}from"lucide-react";import{cn as n}from"@codefast/tailwind-variants";import{Slot as i}from"@radix-ui/react-slot";function s({...e}){return r("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function o({className:e,...a}){return r("ol",{className:n("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2",e),"data-slot":"breadcrumb-list",...a})}function l({className:e,...a}){return r("li",{className:n("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...a})}function c({asChild:e,className:a,...t}){return r(e?i:"a",{className:n("hover:text-foreground transition-colors",a),"data-slot":"breadcrumb-link",...t})}function d({className:e,...a}){return r("span",{"aria-current":"page","aria-disabled":"true",className:n("text-foreground font-normal",e),"data-slot":"breadcrumb-page",role:"link",tabIndex:0,...a})}function m({children:e,...t}){return r("li",{"aria-hidden":"true","data-slot":"breadcrumb-separator",role:"presentation",...t,children:e??r(a,{className:"size-3.5"})})}function u({className:a,...i}){return e("span",{"aria-hidden":"true",className:n("flex size-4 items-center justify-center",a),"data-slot":"breadcrumb-ellipsis",role:"presentation",...i,children:[r(t,{className:"size-4"}),r("span",{className:"sr-only",children:"More"})]})}export{s as Breadcrumb,u as BreadcrumbEllipsis,l as BreadcrumbItem,c as BreadcrumbLink,o as BreadcrumbList,d as BreadcrumbPage,m as BreadcrumbSeparator};
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@codefast/tailwind-variants";
4
+ import { Slot } from "@radix-ui/react-slot";
5
+ import { ChevronRightIcon, EllipsisIcon } from "lucide-react";
6
+ function Breadcrumb({ ...props }) {
7
+ return /*#__PURE__*/ jsx("nav", {
8
+ "aria-label": "breadcrumb",
9
+ "data-slot": "breadcrumb",
10
+ ...props
11
+ });
12
+ }
13
+ function BreadcrumbList({ className, ...props }) {
14
+ return /*#__PURE__*/ jsx("ol", {
15
+ className: cn("flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2", className),
16
+ "data-slot": "breadcrumb-list",
17
+ ...props
18
+ });
19
+ }
20
+ function BreadcrumbItem({ className, ...props }) {
21
+ return /*#__PURE__*/ jsx("li", {
22
+ className: cn("inline-flex items-center gap-1.5", className),
23
+ "data-slot": "breadcrumb-item",
24
+ ...props
25
+ });
26
+ }
27
+ function BreadcrumbLink({ asChild, className, ...props }) {
28
+ const Component = asChild ? Slot : "a";
29
+ return /*#__PURE__*/ jsx(Component, {
30
+ className: cn("transition-colors hover:text-foreground", className),
31
+ "data-slot": "breadcrumb-link",
32
+ ...props
33
+ });
34
+ }
35
+ function BreadcrumbPage({ className, ...props }) {
36
+ return /*#__PURE__*/ jsx("span", {
37
+ "aria-current": "page",
38
+ "aria-disabled": "true",
39
+ className: cn("font-normal text-foreground", className),
40
+ "data-slot": "breadcrumb-page",
41
+ ...props
42
+ });
43
+ }
44
+ function BreadcrumbSeparator({ children, ...props }) {
45
+ return /*#__PURE__*/ jsx("li", {
46
+ "aria-hidden": "true",
47
+ "data-slot": "breadcrumb-separator",
48
+ role: "presentation",
49
+ ...props,
50
+ children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {
51
+ className: "size-3.5"
52
+ })
53
+ });
54
+ }
55
+ function BreadcrumbEllipsis({ className, ...props }) {
56
+ return /*#__PURE__*/ jsxs("span", {
57
+ "aria-hidden": "true",
58
+ className: cn("flex size-4 items-center justify-center", className),
59
+ "data-slot": "breadcrumb-ellipsis",
60
+ role: "presentation",
61
+ ...props,
62
+ children: [
63
+ /*#__PURE__*/ jsx(EllipsisIcon, {
64
+ className: "size-4"
65
+ }),
66
+ /*#__PURE__*/ jsx("span", {
67
+ className: "sr-only",
68
+ children: "More"
69
+ })
70
+ ]
71
+ });
72
+ }
73
+ export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
@@ -1,2 +1,87 @@
1
+ "use strict";
1
2
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ButtonGroup:()=>ButtonGroup,ButtonGroupSeparator:()=>ButtonGroupSeparator,buttonGroupVariants:()=>buttonGroupVariants,ButtonGroupText:()=>ButtonGroupText});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_separator_cjs_namespaceObject=require("./separator.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_slot_namespaceObject=require("@radix-ui/react-slot"),buttonGroupVariants=(0,tailwind_variants_namespaceObject.tv)({base:(0,tailwind_variants_namespaceObject.cn)("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2","[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit","[&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>input]:flex-1","has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg"),defaultVariants:{orientation:"horizontal"},variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}}});function ButtonGroup({className:e,orientation:t,...r}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)(buttonGroupVariants({orientation:t}),e),"data-orientation":t,"data-slot":"button-group",role:"group",...r})}function ButtonGroupText({asChild:e=!1,className:t,...r}){let a=e?react_slot_namespaceObject.Slot:"div";return(0,jsx_runtime_namespaceObject.jsx)(a,{className:(0,tailwind_variants_namespaceObject.cn)("bg-muted flex items-center gap-2 rounded-lg border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",t),...r})}function ButtonGroupSeparator({className:e,orientation:t="vertical",...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{className:(0,tailwind_variants_namespaceObject.cn)("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",e),"data-slot":"button-group-separator",orientation:t,...r})}for(var __webpack_i__ in exports.ButtonGroup=__webpack_exports__.ButtonGroup,exports.ButtonGroupSeparator=__webpack_exports__.ButtonGroupSeparator,exports.ButtonGroupText=__webpack_exports__.ButtonGroupText,exports.buttonGroupVariants=__webpack_exports__.buttonGroupVariants,__webpack_exports__)-1===["ButtonGroup","ButtonGroupSeparator","ButtonGroupText","buttonGroupVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
+ var __webpack_require__ = {};
4
+ (()=>{
5
+ __webpack_require__.d = (exports1, definition)=>{
6
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
+ enumerable: true,
8
+ get: definition[key]
9
+ });
10
+ };
11
+ })();
12
+ (()=>{
13
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
14
+ })();
15
+ (()=>{
16
+ __webpack_require__.r = (exports1)=>{
17
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
18
+ value: 'Module'
19
+ });
20
+ Object.defineProperty(exports1, '__esModule', {
21
+ value: true
22
+ });
23
+ };
24
+ })();
25
+ var __webpack_exports__ = {};
26
+ __webpack_require__.r(__webpack_exports__);
27
+ __webpack_require__.d(__webpack_exports__, {
28
+ ButtonGroup: ()=>ButtonGroup,
29
+ ButtonGroupSeparator: ()=>ButtonGroupSeparator,
30
+ buttonGroupVariants: ()=>buttonGroupVariants,
31
+ ButtonGroupText: ()=>ButtonGroupText
32
+ });
33
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
34
+ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
35
+ const react_slot_namespaceObject = require("@radix-ui/react-slot");
36
+ const external_separator_cjs_namespaceObject = require("./separator.cjs");
37
+ const buttonGroupVariants = (0, tailwind_variants_namespaceObject.tv)({
38
+ base: (0, tailwind_variants_namespaceObject.cn)("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2", "[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit", "[&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>input]:flex-1", "has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg"),
39
+ defaultVariants: {
40
+ orientation: "horizontal"
41
+ },
42
+ variants: {
43
+ orientation: {
44
+ horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
45
+ vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
46
+ }
47
+ }
48
+ });
49
+ function ButtonGroup({ className, orientation, ...props }) {
50
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
51
+ className: (0, tailwind_variants_namespaceObject.cn)(buttonGroupVariants({
52
+ orientation
53
+ }), className),
54
+ "data-orientation": orientation,
55
+ "data-slot": "button-group",
56
+ role: "group",
57
+ ...props
58
+ });
59
+ }
60
+ function ButtonGroupText({ asChild = false, className, ...props }) {
61
+ const Component = asChild ? react_slot_namespaceObject.Slot : "div";
62
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, {
63
+ className: (0, tailwind_variants_namespaceObject.cn)("flex items-center gap-2 rounded-lg border bg-muted px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className),
64
+ ...props
65
+ });
66
+ }
67
+ function ButtonGroupSeparator({ className, orientation = "vertical", ...props }) {
68
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator, {
69
+ className: (0, tailwind_variants_namespaceObject.cn)("relative !m-0 self-stretch bg-input data-[orientation=vertical]:h-auto", className),
70
+ "data-slot": "button-group-separator",
71
+ orientation: orientation,
72
+ ...props
73
+ });
74
+ }
75
+ exports.ButtonGroup = __webpack_exports__.ButtonGroup;
76
+ exports.ButtonGroupSeparator = __webpack_exports__.ButtonGroupSeparator;
77
+ exports.ButtonGroupText = __webpack_exports__.ButtonGroupText;
78
+ exports.buttonGroupVariants = __webpack_exports__.buttonGroupVariants;
79
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
80
+ "ButtonGroup",
81
+ "ButtonGroupSeparator",
82
+ "ButtonGroupText",
83
+ "buttonGroupVariants"
84
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
85
+ Object.defineProperty(exports, '__esModule', {
86
+ value: true
87
+ });
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, JSX } from "react";
2
1
  import type { VariantProps } from "@codefast/tailwind-variants";
2
+ import type { ComponentProps, JSX } from "react";
3
3
  import { Separator } from "./separator";
4
4
  declare const buttonGroupVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
5
5
  orientation: {
@@ -1,2 +1,44 @@
1
1
  "use client";
2
- import{jsx as t}from"react/jsx-runtime";import{Separator as o}from"./separator.js";import{cn as r,tv as e}from"@codefast/tailwind-variants";import{Slot as a}from"@radix-ui/react-slot";let n=e({base:r("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2","[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit","[&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>input]:flex-1","has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg"),defaultVariants:{orientation:"horizontal"},variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}}});function i({className:o,orientation:e,...a}){return t("div",{className:r(n({orientation:e}),o),"data-orientation":e,"data-slot":"button-group",role:"group",...a})}function s({asChild:o=!1,className:e,...n}){return t(o?a:"div",{className:r("bg-muted flex items-center gap-2 rounded-lg border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...n})}function l({className:e,orientation:a="vertical",...n}){return t(o,{className:r("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",e),"data-slot":"button-group-separator",orientation:a,...n})}export{i as ButtonGroup,l as ButtonGroupSeparator,s as ButtonGroupText,n as buttonGroupVariants};
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { cn, tv } from "@codefast/tailwind-variants";
4
+ import { Slot } from "@radix-ui/react-slot";
5
+ import { Separator } from "./separator.js";
6
+ const buttonGroupVariants = tv({
7
+ base: cn("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2", "[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit", "[&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>input]:flex-1", "has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg"),
8
+ defaultVariants: {
9
+ orientation: "horizontal"
10
+ },
11
+ variants: {
12
+ orientation: {
13
+ horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
14
+ vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
15
+ }
16
+ }
17
+ });
18
+ function ButtonGroup({ className, orientation, ...props }) {
19
+ return /*#__PURE__*/ jsx("div", {
20
+ className: cn(buttonGroupVariants({
21
+ orientation
22
+ }), className),
23
+ "data-orientation": orientation,
24
+ "data-slot": "button-group",
25
+ role: "group",
26
+ ...props
27
+ });
28
+ }
29
+ function ButtonGroupText({ asChild = false, className, ...props }) {
30
+ const Component = asChild ? Slot : "div";
31
+ return /*#__PURE__*/ jsx(Component, {
32
+ className: cn("flex items-center gap-2 rounded-lg border bg-muted px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className),
33
+ ...props
34
+ });
35
+ }
36
+ function ButtonGroupSeparator({ className, orientation = "vertical", ...props }) {
37
+ return /*#__PURE__*/ jsx(Separator, {
38
+ className: cn("relative !m-0 self-stretch bg-input data-[orientation=vertical]:h-auto", className),
39
+ "data-slot": "button-group-separator",
40
+ orientation: orientation,
41
+ ...props
42
+ });
43
+ }
44
+ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };