@codefast/ui 0.3.9 → 0.3.10

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 (245) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/components/accordion.cjs +97 -1
  3. package/dist/components/accordion.d.ts +4 -4
  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 +11 -11
  7. package/dist/components/alert-dialog.js +94 -1
  8. package/dist/components/alert.cjs +84 -1
  9. package/dist/components/alert.d.ts +5 -5
  10. package/dist/components/alert.js +41 -1
  11. package/dist/components/aspect-ratio.cjs +43 -1
  12. package/dist/components/aspect-ratio.d.ts +2 -2
  13. package/dist/components/aspect-ratio.js +9 -1
  14. package/dist/components/avatar.cjs +65 -1
  15. package/dist/components/avatar.d.ts +2 -2
  16. package/dist/components/avatar.js +25 -1
  17. package/dist/components/badge.cjs +66 -1
  18. package/dist/components/badge.d.ts +3 -3
  19. package/dist/components/badge.js +29 -1
  20. package/dist/components/breadcrumb.cjs +126 -1
  21. package/dist/components/breadcrumb.d.ts +8 -8
  22. package/dist/components/breadcrumb.js +74 -1
  23. package/dist/components/button-group.cjs +86 -1
  24. package/dist/components/button-group.d.ts +5 -5
  25. package/dist/components/button-group.js +43 -1
  26. package/dist/components/button.cjs +92 -1
  27. package/dist/components/button.d.ts +6 -6
  28. package/dist/components/button.js +55 -1
  29. package/dist/components/calendar.cjs +150 -1
  30. package/dist/components/calendar.d.ts +12 -19
  31. package/dist/components/calendar.js +113 -1
  32. package/dist/components/card.cjs +105 -1
  33. package/dist/components/card.d.ts +8 -8
  34. package/dist/components/card.js +53 -1
  35. package/dist/components/carousel.cjs +210 -1
  36. package/dist/components/carousel.d.ts +10 -10
  37. package/dist/components/carousel.js +151 -1
  38. package/dist/components/chart.cjs +250 -3
  39. package/dist/components/chart.d.ts +9 -9
  40. package/dist/components/chart.js +198 -3
  41. package/dist/components/checkbox-cards.cjs +69 -1
  42. package/dist/components/checkbox-cards.d.ts +2 -2
  43. package/dist/components/checkbox-cards.js +32 -1
  44. package/dist/components/checkbox-group.cjs +63 -1
  45. package/dist/components/checkbox-group.d.ts +2 -2
  46. package/dist/components/checkbox-group.js +26 -1
  47. package/dist/components/checkbox.cjs +53 -1
  48. package/dist/components/checkbox.d.ts +2 -2
  49. package/dist/components/checkbox.js +19 -1
  50. package/dist/components/collapsible.cjs +61 -1
  51. package/dist/components/collapsible.d.ts +2 -2
  52. package/dist/components/collapsible.js +21 -1
  53. package/dist/components/command.cjs +167 -1
  54. package/dist/components/command.d.ts +4 -4
  55. package/dist/components/command.js +106 -1
  56. package/dist/components/context-menu.cjs +218 -1
  57. package/dist/components/context-menu.d.ts +4 -4
  58. package/dist/components/context-menu.js +142 -1
  59. package/dist/components/dialog.cjs +164 -1
  60. package/dist/components/dialog.d.ts +10 -10
  61. package/dist/components/dialog.js +106 -1
  62. package/dist/components/drawer.cjs +143 -1
  63. package/dist/components/drawer.d.ts +9 -9
  64. package/dist/components/drawer.js +85 -1
  65. package/dist/components/dropdown-menu.cjs +221 -1
  66. package/dist/components/dropdown-menu.d.ts +4 -4
  67. package/dist/components/dropdown-menu.js +145 -1
  68. package/dist/components/empty.cjs +113 -1
  69. package/dist/components/empty.d.ts +9 -9
  70. package/dist/components/empty.js +61 -1
  71. package/dist/components/field.cjs +193 -1
  72. package/dist/components/field.d.ts +14 -14
  73. package/dist/components/field.js +129 -1
  74. package/dist/components/form.cjs +151 -1
  75. package/dist/components/form.d.ts +10 -10
  76. package/dist/components/form.js +96 -1
  77. package/dist/components/hover-card.cjs +77 -1
  78. package/dist/components/hover-card.d.ts +2 -2
  79. package/dist/components/hover-card.js +34 -1
  80. package/dist/components/input-group.cjs +155 -1
  81. package/dist/components/input-group.d.ts +15 -15
  82. package/dist/components/input-group.js +97 -1
  83. package/dist/components/input-number.cjs +98 -1
  84. package/dist/components/input-number.d.ts +2 -2
  85. package/dist/components/input-number.js +64 -1
  86. package/dist/components/input-otp.cjs +101 -1
  87. package/dist/components/input-otp.d.ts +6 -6
  88. package/dist/components/input-otp.js +49 -1
  89. package/dist/components/input-password.cjs +71 -1
  90. package/dist/components/input-password.d.ts +3 -3
  91. package/dist/components/input-password.js +37 -1
  92. package/dist/components/input-search.cjs +80 -1
  93. package/dist/components/input-search.d.ts +3 -3
  94. package/dist/components/input-search.js +46 -1
  95. package/dist/components/input.cjs +45 -1
  96. package/dist/components/input.d.ts +2 -2
  97. package/dist/components/input.js +11 -1
  98. package/dist/components/item.cjs +186 -1
  99. package/dist/components/item.d.ts +12 -12
  100. package/dist/components/item.js +119 -1
  101. package/dist/components/kbd.cjs +54 -1
  102. package/dist/components/kbd.d.ts +3 -3
  103. package/dist/components/kbd.js +17 -1
  104. package/dist/components/label.cjs +45 -1
  105. package/dist/components/label.d.ts +2 -2
  106. package/dist/components/label.js +11 -1
  107. package/dist/components/menubar.cjs +232 -1
  108. package/dist/components/menubar.d.ts +4 -4
  109. package/dist/components/menubar.js +153 -1
  110. package/dist/components/native-select.cjs +75 -1
  111. package/dist/components/native-select.d.ts +4 -4
  112. package/dist/components/native-select.js +35 -1
  113. package/dist/components/navigation-menu.cjs +146 -2
  114. package/dist/components/navigation-menu.d.ts +2 -2
  115. package/dist/components/navigation-menu.js +94 -2
  116. package/dist/components/pagination.cjs +138 -1
  117. package/dist/components/pagination.d.ts +10 -10
  118. package/dist/components/pagination.js +86 -1
  119. package/dist/components/popover.cjs +86 -1
  120. package/dist/components/popover.d.ts +3 -3
  121. package/dist/components/popover.js +40 -1
  122. package/dist/components/progress-circle.cjs +184 -1
  123. package/dist/components/progress-circle.d.ts +5 -5
  124. package/dist/components/progress-circle.js +147 -1
  125. package/dist/components/progress.cjs +52 -1
  126. package/dist/components/progress.d.ts +2 -2
  127. package/dist/components/progress.js +18 -1
  128. package/dist/components/radio-cards.cjs +66 -1
  129. package/dist/components/radio-cards.d.ts +2 -2
  130. package/dist/components/radio-cards.js +29 -1
  131. package/dist/components/radio-group.cjs +59 -1
  132. package/dist/components/radio-group.d.ts +2 -2
  133. package/dist/components/radio-group.js +22 -1
  134. package/dist/components/radio.cjs +47 -1
  135. package/dist/components/radio.d.ts +2 -2
  136. package/dist/components/radio.js +13 -1
  137. package/dist/components/resizable.cjs +71 -1
  138. package/dist/components/resizable.d.ts +8 -8
  139. package/dist/components/resizable.js +31 -1
  140. package/dist/components/scroll-area.cjs +140 -1
  141. package/dist/components/scroll-area.d.ts +5 -5
  142. package/dist/components/scroll-area.js +100 -1
  143. package/dist/components/select.cjs +180 -1
  144. package/dist/components/select.d.ts +5 -5
  145. package/dist/components/select.js +119 -1
  146. package/dist/components/separator.cjs +82 -1
  147. package/dist/components/separator.d.ts +5 -5
  148. package/dist/components/separator.js +42 -1
  149. package/dist/components/sheet.cjs +184 -1
  150. package/dist/components/sheet.d.ts +9 -9
  151. package/dist/components/sheet.js +123 -1
  152. package/dist/components/sidebar.cjs +506 -1
  153. package/dist/components/sidebar.d.ts +31 -31
  154. package/dist/components/sidebar.js +400 -1
  155. package/dist/components/skeleton.cjs +44 -1
  156. package/dist/components/skeleton.d.ts +2 -2
  157. package/dist/components/skeleton.js +10 -1
  158. package/dist/components/slider.cjs +79 -1
  159. package/dist/components/slider.d.ts +2 -2
  160. package/dist/components/slider.js +45 -1
  161. package/dist/components/sonner.cjs +57 -1
  162. package/dist/components/sonner.d.ts +3 -3
  163. package/dist/components/sonner.js +17 -1
  164. package/dist/components/spinner.cjs +75 -1
  165. package/dist/components/spinner.d.ts +2 -2
  166. package/dist/components/spinner.js +41 -1
  167. package/dist/components/switch.cjs +49 -1
  168. package/dist/components/switch.d.ts +2 -2
  169. package/dist/components/switch.js +15 -1
  170. package/dist/components/table.cjs +118 -1
  171. package/dist/components/table.d.ts +9 -9
  172. package/dist/components/table.js +63 -1
  173. package/dist/components/tabs.cjs +75 -1
  174. package/dist/components/tabs.d.ts +3 -3
  175. package/dist/components/tabs.js +32 -1
  176. package/dist/components/textarea.cjs +44 -1
  177. package/dist/components/textarea.d.ts +2 -2
  178. package/dist/components/textarea.js +10 -1
  179. package/dist/components/toggle-group.cjs +90 -1
  180. package/dist/components/toggle-group.d.ts +10 -12
  181. package/dist/components/toggle-group.js +53 -1
  182. package/dist/components/toggle.cjs +71 -1
  183. package/dist/components/toggle.d.ts +10 -12
  184. package/dist/components/toggle.js +34 -1
  185. package/dist/components/tooltip.cjs +90 -1
  186. package/dist/components/tooltip.d.ts +3 -3
  187. package/dist/components/tooltip.js +44 -1
  188. package/dist/css/amber.css +95 -1
  189. package/dist/css/blue.css +95 -1
  190. package/dist/css/cyan.css +95 -1
  191. package/dist/css/emerald.css +95 -1
  192. package/dist/css/fuchsia.css +95 -1
  193. package/dist/css/gray.css +95 -1
  194. package/dist/css/green.css +95 -1
  195. package/dist/css/indigo.css +95 -1
  196. package/dist/css/lime.css +95 -1
  197. package/dist/css/neutral.css +95 -1
  198. package/dist/css/orange.css +95 -1
  199. package/dist/css/pink.css +95 -1
  200. package/dist/css/preset.css +118 -1
  201. package/dist/css/purple.css +95 -1
  202. package/dist/css/red.css +95 -1
  203. package/dist/css/rose.css +95 -1
  204. package/dist/css/sky.css +95 -1
  205. package/dist/css/slate.css +95 -1
  206. package/dist/css/stone.css +95 -1
  207. package/dist/css/style.css +3 -1
  208. package/dist/css/teal.css +95 -1
  209. package/dist/css/violet.css +95 -1
  210. package/dist/css/yellow.css +95 -1
  211. package/dist/css/zinc.css +95 -1
  212. package/dist/hooks/use-animated-value.cjs +74 -1
  213. package/dist/hooks/use-animated-value.d.ts +9 -10
  214. package/dist/hooks/use-animated-value.js +40 -1
  215. package/dist/hooks/use-copy-to-clipboard.cjs +57 -1
  216. package/dist/hooks/use-copy-to-clipboard.d.ts +18 -1
  217. package/dist/hooks/use-copy-to-clipboard.js +23 -1
  218. package/dist/hooks/use-is-mobile.cjs +39 -1
  219. package/dist/hooks/use-is-mobile.d.ts +15 -6
  220. package/dist/hooks/use-is-mobile.js +5 -1
  221. package/dist/hooks/use-media-query.cjs +56 -1
  222. package/dist/hooks/use-media-query.d.ts +11 -3
  223. package/dist/hooks/use-media-query.js +22 -1
  224. package/dist/hooks/use-mutation-observer.cjs +56 -1
  225. package/dist/hooks/use-mutation-observer.d.ts +8 -12
  226. package/dist/hooks/use-mutation-observer.js +22 -1
  227. package/dist/hooks/use-pagination.cjs +92 -1
  228. package/dist/hooks/use-pagination.d.ts +12 -10
  229. package/dist/hooks/use-pagination.js +55 -1
  230. package/dist/index.cjs +1081 -1
  231. package/dist/index.d.ts +130 -131
  232. package/dist/index.js +69 -1
  233. package/dist/primitives/checkbox-group.cjs +151 -1
  234. package/dist/primitives/checkbox-group.d.ts +11 -11
  235. package/dist/primitives/checkbox-group.js +99 -1
  236. package/dist/primitives/input-number.cjs +439 -1
  237. package/dist/primitives/input-number.d.ts +8 -8
  238. package/dist/primitives/input-number.js +381 -1
  239. package/dist/primitives/input.cjs +99 -1
  240. package/dist/primitives/input.d.ts +4 -4
  241. package/dist/primitives/input.js +53 -1
  242. package/dist/primitives/progress-circle.cjs +198 -1
  243. package/dist/primitives/progress-circle.d.ts +7 -7
  244. package/dist/primitives/progress-circle.js +128 -1
  245. package/package.json +385 -38
@@ -1 +1,41 @@
1
- import{jsx as t}from"react/jsx-runtime";import{cn as e,tv as r}from"@codefast/tailwind-variants";let a=r({base:"bg-card relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-xl border px-4 py-3 text-sm has-[>svg]:grid-cols-[--spacing(4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",defaultVariants:{variant:"default"},variants:{variant:{default:"text-card-foreground",destructive:"text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}}});function i({className:e,variant:r,...i}){return t("div",{className:a({className:e,variant:r}),"data-slot":"alert",role:"alert",...i})}function s({children:r,className:a,...i}){return t("div",{className:e("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",a),"data-slot":"alert-title",...i,children:r})}function l({className:r,...a}){return t("div",{className:e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",r),"data-slot":"alert-description",...a})}export{i as Alert,l as AlertDescription,s as AlertTitle,a as alertVariants};
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { cn, tv } from "@codefast/tailwind-variants";
3
+ const alertVariants = tv({
4
+ base: 'bg-card relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-xl border px-4 py-3 text-sm has-[>svg]:grid-cols-[--spacing(4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current',
5
+ defaultVariants: {
6
+ variant: 'default'
7
+ },
8
+ variants: {
9
+ variant: {
10
+ default: 'text-card-foreground',
11
+ destructive: "text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"
12
+ }
13
+ }
14
+ });
15
+ function Alert({ className, variant, ...props }) {
16
+ return /*#__PURE__*/ jsx("div", {
17
+ className: alertVariants({
18
+ className,
19
+ variant
20
+ }),
21
+ "data-slot": "alert",
22
+ role: "alert",
23
+ ...props
24
+ });
25
+ }
26
+ function AlertTitle({ children, className, ...props }) {
27
+ return /*#__PURE__*/ jsx("div", {
28
+ className: cn('col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight', className),
29
+ "data-slot": "alert-title",
30
+ ...props,
31
+ children: children
32
+ });
33
+ }
34
+ function AlertDescription({ className, ...props }) {
35
+ return /*#__PURE__*/ jsx("div", {
36
+ className: cn('text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed', className),
37
+ "data-slot": "alert-description",
38
+ ...props
39
+ });
40
+ }
41
+ export { Alert, AlertDescription, AlertTitle, alertVariants };
@@ -1,2 +1,44 @@
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,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__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__,{AspectRatio:()=>AspectRatio});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_aspect_ratio_namespaceObject=require("@radix-ui/react-aspect-ratio");function AspectRatio({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_aspect_ratio_namespaceObject.Root,{"data-slot":"aspect-ratio",...e})}for(var __webpack_i__ in exports.AspectRatio=__webpack_exports__.AspectRatio,__webpack_exports__)-1===["AspectRatio"].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
+ AspectRatio: ()=>AspectRatio
29
+ });
30
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
+ const react_aspect_ratio_namespaceObject = require("@radix-ui/react-aspect-ratio");
32
+ function AspectRatio({ ...props }) {
33
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_aspect_ratio_namespaceObject.Root, {
34
+ "data-slot": "aspect-ratio",
35
+ ...props
36
+ });
37
+ }
38
+ exports.AspectRatio = __webpack_exports__.AspectRatio;
39
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
40
+ "AspectRatio"
41
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
42
+ Object.defineProperty(exports, '__esModule', {
43
+ value: true
44
+ });
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, JSX } from "react";
2
- import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
1
+ import type { ComponentProps, JSX } from 'react';
2
+ import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
3
3
  type AspectRatioProps = ComponentProps<typeof AspectRatioPrimitive.Root>;
4
4
  declare function AspectRatio({ ...props }: AspectRatioProps): JSX.Element;
5
5
  export { AspectRatio };
@@ -1,2 +1,10 @@
1
1
  "use client";
2
- import{jsx as t}from"react/jsx-runtime";import{Root as r}from"@radix-ui/react-aspect-ratio";function a({...a}){return t(r,{"data-slot":"aspect-ratio",...a})}export{a as AspectRatio};
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { Root } from "@radix-ui/react-aspect-ratio";
4
+ function AspectRatio({ ...props }) {
5
+ return /*#__PURE__*/ jsx(Root, {
6
+ "data-slot": "aspect-ratio",
7
+ ...props
8
+ });
9
+ }
10
+ export { AspectRatio };
@@ -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)('bg-muted flex size-full items-center justify-center rounded-full', 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,5 +1,5 @@
1
- import type { ComponentProps, JSX } from "react";
2
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
1
+ import type { ComponentProps, JSX } from 'react';
2
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
3
3
  type AvatarProps = ComponentProps<typeof AvatarPrimitive.Root>;
4
4
  declare function Avatar({ className, ...props }: AvatarProps): JSX.Element;
5
5
  type AvatarImageProps = ComponentProps<typeof AvatarPrimitive.Image>;
@@ -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('bg-muted flex size-full items-center justify-center rounded-full', 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: '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',
36
+ defaultVariants: {
37
+ variant: 'default'
38
+ },
39
+ variants: {
40
+ variant: {
41
+ default: 'bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent',
42
+ 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',
43
+ outline: 'bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [a&]:hover:border-ring/60 focus-visible:border-ring',
44
+ secondary: 'bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent'
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
- import type { VariantProps } from "@codefast/tailwind-variants";
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;
@@ -8,7 +8,7 @@ declare const badgeVariants: import("@codefast/tailwind-variants").VariantFuncti
8
8
  secondary: string;
9
9
  };
10
10
  }, Record<string, never>>;
11
- interface BadgeProps extends ComponentProps<"span">, VariantProps<typeof badgeVariants> {
11
+ interface BadgeProps extends ComponentProps<'span'>, VariantProps<typeof badgeVariants> {
12
12
  asChild?: boolean;
13
13
  }
14
14
  declare function Badge({ asChild, className, variant, ...props }: BadgeProps): JSX.Element;
@@ -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: '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',
7
+ defaultVariants: {
8
+ variant: 'default'
9
+ },
10
+ variants: {
11
+ variant: {
12
+ default: 'bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent',
13
+ 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',
14
+ outline: 'bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [a&]:hover:border-ring/60 focus-visible:border-ring',
15
+ secondary: 'bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent'
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,127 @@
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)('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words 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)('hover:text-foreground transition-colors', 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)('text-foreground font-normal', className),
74
+ "data-slot": "breadcrumb-page",
75
+ role: "link",
76
+ tabIndex: 0,
77
+ ...props
78
+ });
79
+ }
80
+ function BreadcrumbSeparator({ children, ...props }) {
81
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("li", {
82
+ "aria-hidden": "true",
83
+ "data-slot": "breadcrumb-separator",
84
+ role: "presentation",
85
+ ...props,
86
+ children: children ?? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon, {
87
+ className: "size-3.5"
88
+ })
89
+ });
90
+ }
91
+ function BreadcrumbEllipsis({ className, ...props }) {
92
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
93
+ "aria-hidden": "true",
94
+ className: (0, tailwind_variants_namespaceObject.cn)('flex size-4 items-center justify-center', className),
95
+ "data-slot": "breadcrumb-ellipsis",
96
+ role: "presentation",
97
+ ...props,
98
+ children: [
99
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EllipsisIcon, {
100
+ className: "size-4"
101
+ }),
102
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
103
+ className: "sr-only",
104
+ children: "More"
105
+ })
106
+ ]
107
+ });
108
+ }
109
+ exports.Breadcrumb = __webpack_exports__.Breadcrumb;
110
+ exports.BreadcrumbEllipsis = __webpack_exports__.BreadcrumbEllipsis;
111
+ exports.BreadcrumbItem = __webpack_exports__.BreadcrumbItem;
112
+ exports.BreadcrumbLink = __webpack_exports__.BreadcrumbLink;
113
+ exports.BreadcrumbList = __webpack_exports__.BreadcrumbList;
114
+ exports.BreadcrumbPage = __webpack_exports__.BreadcrumbPage;
115
+ exports.BreadcrumbSeparator = __webpack_exports__.BreadcrumbSeparator;
116
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
117
+ "Breadcrumb",
118
+ "BreadcrumbEllipsis",
119
+ "BreadcrumbItem",
120
+ "BreadcrumbLink",
121
+ "BreadcrumbList",
122
+ "BreadcrumbPage",
123
+ "BreadcrumbSeparator"
124
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
125
+ Object.defineProperty(exports, '__esModule', {
126
+ value: true
127
+ });
@@ -1,21 +1,21 @@
1
- import type { ComponentProps, JSX, ReactNode } from "react";
2
- interface BreadcrumbProps extends ComponentProps<"nav"> {
1
+ import type { ComponentProps, JSX, ReactNode } from 'react';
2
+ interface BreadcrumbProps extends ComponentProps<'nav'> {
3
3
  separator?: ReactNode;
4
4
  }
5
5
  declare function Breadcrumb({ ...props }: BreadcrumbProps): JSX.Element;
6
- type BreadcrumbListProps = ComponentProps<"ol">;
6
+ type BreadcrumbListProps = ComponentProps<'ol'>;
7
7
  declare function BreadcrumbList({ className, ...props }: BreadcrumbListProps): JSX.Element;
8
- type BreadcrumbItemProps = ComponentProps<"li">;
8
+ type BreadcrumbItemProps = ComponentProps<'li'>;
9
9
  declare function BreadcrumbItem({ className, ...props }: BreadcrumbItemProps): JSX.Element;
10
- interface BreadcrumbLinkProps extends ComponentProps<"a"> {
10
+ interface BreadcrumbLinkProps extends ComponentProps<'a'> {
11
11
  asChild?: boolean;
12
12
  }
13
13
  declare function BreadcrumbLink({ asChild, className, ...props }: BreadcrumbLinkProps): JSX.Element;
14
- type BreadcrumbPageProps = ComponentProps<"span">;
14
+ type BreadcrumbPageProps = ComponentProps<'span'>;
15
15
  declare function BreadcrumbPage({ className, ...props }: BreadcrumbPageProps): JSX.Element;
16
- type BreadcrumbSeparatorProps = ComponentProps<"li">;
16
+ type BreadcrumbSeparatorProps = ComponentProps<'li'>;
17
17
  declare function BreadcrumbSeparator({ children, ...props }: BreadcrumbSeparatorProps): JSX.Element;
18
- type BreadcrumbEllipsisProps = ComponentProps<"span">;
18
+ type BreadcrumbEllipsisProps = ComponentProps<'span'>;
19
19
  declare function BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): JSX.Element;
20
20
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, };
21
21
  export type { BreadcrumbEllipsisProps, BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbListProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, };
@@ -1,2 +1,75 @@
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('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words 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('hover:text-foreground transition-colors', 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('text-foreground font-normal', className),
40
+ "data-slot": "breadcrumb-page",
41
+ role: "link",
42
+ tabIndex: 0,
43
+ ...props
44
+ });
45
+ }
46
+ function BreadcrumbSeparator({ children, ...props }) {
47
+ return /*#__PURE__*/ jsx("li", {
48
+ "aria-hidden": "true",
49
+ "data-slot": "breadcrumb-separator",
50
+ role: "presentation",
51
+ ...props,
52
+ children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {
53
+ className: "size-3.5"
54
+ })
55
+ });
56
+ }
57
+ function BreadcrumbEllipsis({ className, ...props }) {
58
+ return /*#__PURE__*/ jsxs("span", {
59
+ "aria-hidden": "true",
60
+ className: cn('flex size-4 items-center justify-center', className),
61
+ "data-slot": "breadcrumb-ellipsis",
62
+ role: "presentation",
63
+ ...props,
64
+ children: [
65
+ /*#__PURE__*/ jsx(EllipsisIcon, {
66
+ className: "size-4"
67
+ }),
68
+ /*#__PURE__*/ jsx("span", {
69
+ className: "sr-only",
70
+ children: "More"
71
+ })
72
+ ]
73
+ });
74
+ }
75
+ export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };