@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,64 @@
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 c in r)__webpack_require__.o(r,c)&&!__webpack_require__.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:r[c]})},__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__,{CheckboxGroup:()=>CheckboxGroup,CheckboxGroupItem:()=>CheckboxGroupItem});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_lucide_react_namespaceObject=require("lucide-react"),checkbox_group_cjs_namespaceObject=require("../primitives/checkbox-group.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants");function CheckboxGroup({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)(checkbox_group_cjs_namespaceObject.Root,{className:(0,tailwind_variants_namespaceObject.cn)("grid gap-2",e),"data-slot":"checkbox-group",...r})}function CheckboxGroupItem({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)(checkbox_group_cjs_namespaceObject.Item,{className:(0,tailwind_variants_namespaceObject.cn)("border-input text-primary-foreground hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:aria-checked:ring-primary/20 dark:focus-visible:aria-checked:ring-primary/40 aria-checked:border-primary aria-checked:bg-primary aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-checked:aria-invalid:bg-destructive hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 dark:bg-input/30 peer flex size-4 shrink-0 items-center justify-center rounded-sm border shadow-xs outline-hidden transition focus-visible:ring-3 disabled:opacity-50",e),"data-slot":"checkbox-group-item",...r,children:(0,jsx_runtime_namespaceObject.jsx)(checkbox_group_cjs_namespaceObject.CheckboxGroupIndicator,{className:"flex items-center justify-center text-current transition-none","data-slot":"checkbox-group-indicator",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckIcon,{className:"size-3.5"})})})}for(var __webpack_i__ in exports.CheckboxGroup=__webpack_exports__.CheckboxGroup,exports.CheckboxGroupItem=__webpack_exports__.CheckboxGroupItem,__webpack_exports__)-1===["CheckboxGroup","CheckboxGroupItem"].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
+ CheckboxGroup: ()=>CheckboxGroup,
29
+ CheckboxGroupItem: ()=>CheckboxGroupItem
30
+ });
31
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
32
+ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
33
+ const external_lucide_react_namespaceObject = require("lucide-react");
34
+ const checkbox_group_cjs_namespaceObject = require("../primitives/checkbox-group.cjs");
35
+ function CheckboxGroup({ className, ...props }) {
36
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(checkbox_group_cjs_namespaceObject.Root, {
37
+ className: (0, tailwind_variants_namespaceObject.cn)("grid gap-2", className),
38
+ "data-slot": "checkbox-group",
39
+ ...props
40
+ });
41
+ }
42
+ function CheckboxGroupItem({ className, ...props }) {
43
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(checkbox_group_cjs_namespaceObject.Item, {
44
+ className: (0, tailwind_variants_namespaceObject.cn)("peer flex size-4 shrink-0 items-center justify-center rounded-sm border border-input text-primary-foreground shadow-xs outline-hidden transition hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50 aria-checked:border-primary aria-checked:bg-primary focus-visible:aria-checked:ring-primary/20 aria-invalid:border-destructive aria-invalid:ring-destructive/20 hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 aria-checked:aria-invalid:bg-destructive dark:bg-input/30 dark:focus-visible:aria-checked:ring-primary/40 dark:aria-invalid:ring-destructive/40", className),
45
+ "data-slot": "checkbox-group-item",
46
+ ...props,
47
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(checkbox_group_cjs_namespaceObject.CheckboxGroupIndicator, {
48
+ className: "flex items-center justify-center text-current transition-none",
49
+ "data-slot": "checkbox-group-indicator",
50
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckIcon, {
51
+ className: "size-3.5"
52
+ })
53
+ })
54
+ });
55
+ }
56
+ exports.CheckboxGroup = __webpack_exports__.CheckboxGroup;
57
+ exports.CheckboxGroupItem = __webpack_exports__.CheckboxGroupItem;
58
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
59
+ "CheckboxGroup",
60
+ "CheckboxGroupItem"
61
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
62
+ Object.defineProperty(exports, '__esModule', {
63
+ value: true
64
+ });
@@ -1,2 +1,27 @@
1
1
  "use client";
2
- import{jsx as r}from"react/jsx-runtime";import{CheckIcon as i}from"lucide-react";import{CheckboxGroupIndicator as e,Item as a,Root as t}from"../primitives/checkbox-group.js";import{cn as o}from"@codefast/tailwind-variants";function c({className:i,...e}){return r(t,{className:o("grid gap-2",i),"data-slot":"checkbox-group",...e})}function d({className:t,...c}){return r(a,{className:o("border-input text-primary-foreground hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:aria-checked:ring-primary/20 dark:focus-visible:aria-checked:ring-primary/40 aria-checked:border-primary aria-checked:bg-primary aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-checked:aria-invalid:bg-destructive hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 dark:bg-input/30 peer flex size-4 shrink-0 items-center justify-center rounded-sm border shadow-xs outline-hidden transition focus-visible:ring-3 disabled:opacity-50",t),"data-slot":"checkbox-group-item",...c,children:r(e,{className:"flex items-center justify-center text-current transition-none","data-slot":"checkbox-group-indicator",children:r(i,{className:"size-3.5"})})})}export{c as CheckboxGroup,d as CheckboxGroupItem};
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { cn } from "@codefast/tailwind-variants";
4
+ import { CheckIcon } from "lucide-react";
5
+ import { CheckboxGroupIndicator, Item, Root } from "../primitives/checkbox-group.js";
6
+ function CheckboxGroup({ className, ...props }) {
7
+ return /*#__PURE__*/ jsx(Root, {
8
+ className: cn("grid gap-2", className),
9
+ "data-slot": "checkbox-group",
10
+ ...props
11
+ });
12
+ }
13
+ function CheckboxGroupItem({ className, ...props }) {
14
+ return /*#__PURE__*/ jsx(Item, {
15
+ className: cn("peer flex size-4 shrink-0 items-center justify-center rounded-sm border border-input text-primary-foreground shadow-xs outline-hidden transition hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50 aria-checked:border-primary aria-checked:bg-primary focus-visible:aria-checked:ring-primary/20 aria-invalid:border-destructive aria-invalid:ring-destructive/20 hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 aria-checked:aria-invalid:bg-destructive dark:bg-input/30 dark:focus-visible:aria-checked:ring-primary/40 dark:aria-invalid:ring-destructive/40", className),
16
+ "data-slot": "checkbox-group-item",
17
+ ...props,
18
+ children: /*#__PURE__*/ jsx(CheckboxGroupIndicator, {
19
+ className: "flex items-center justify-center text-current transition-none",
20
+ "data-slot": "checkbox-group-indicator",
21
+ children: /*#__PURE__*/ jsx(CheckIcon, {
22
+ className: "size-3.5"
23
+ })
24
+ })
25
+ });
26
+ }
27
+ export { CheckboxGroup, CheckboxGroupItem };
@@ -1,2 +1,54 @@
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__,{Checkbox:()=>Checkbox});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_lucide_react_namespaceObject=require("lucide-react"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_checkbox_namespaceObject=require("@radix-ui/react-checkbox");function Checkbox({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Root,{className:(0,tailwind_variants_namespaceObject.cn)("border-input text-primary-foreground hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-ring/50 aria-checked:focus-visible:ring-primary/20 dark:aria-checked:focus-visible:ring-primary/40 aria-checked:border-primary aria-checked:aria-invalid:bg-destructive aria-checked:bg-primary aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 dark:bg-input/30 peer flex size-4 shrink-0 items-center justify-center rounded-sm border shadow-xs outline-hidden transition focus-visible:ring-3 disabled:opacity-50",e),"data-slot":"checkbox",...r,children:(0,jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Indicator,{className:"flex items-center justify-center text-current transition-none","data-slot":"checkbox-indicator",children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckIcon,{className:"size-3.5"})})})}for(var __webpack_i__ in exports.Checkbox=__webpack_exports__.Checkbox,__webpack_exports__)-1===["Checkbox"].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
+ Checkbox: ()=>Checkbox
29
+ });
30
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
+ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
32
+ const react_checkbox_namespaceObject = require("@radix-ui/react-checkbox");
33
+ const external_lucide_react_namespaceObject = require("lucide-react");
34
+ function Checkbox({ className, ...props }) {
35
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Root, {
36
+ className: (0, tailwind_variants_namespaceObject.cn)("peer flex size-4 shrink-0 items-center justify-center rounded-sm border border-input text-primary-foreground shadow-xs outline-hidden transition hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50 aria-checked:border-primary aria-checked:bg-primary aria-checked:focus-visible:ring-primary/20 aria-invalid:border-destructive aria-invalid:ring-destructive/20 hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 aria-checked:aria-invalid:bg-destructive dark:bg-input/30 dark:aria-checked:focus-visible:ring-primary/40 dark:aria-invalid:ring-destructive/40", className),
37
+ "data-slot": "checkbox",
38
+ ...props,
39
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_checkbox_namespaceObject.Indicator, {
40
+ className: "flex items-center justify-center text-current transition-none",
41
+ "data-slot": "checkbox-indicator",
42
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckIcon, {
43
+ className: "size-3.5"
44
+ })
45
+ })
46
+ });
47
+ }
48
+ exports.Checkbox = __webpack_exports__.Checkbox;
49
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
50
+ "Checkbox"
51
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
52
+ Object.defineProperty(exports, '__esModule', {
53
+ value: true
54
+ });
@@ -1,2 +1,20 @@
1
1
  "use client";
2
- import{jsx as r}from"react/jsx-runtime";import{CheckIcon as i}from"lucide-react";import{cn as e}from"@codefast/tailwind-variants";import{Indicator as a,Root as t}from"@radix-ui/react-checkbox";function c({className:c,...d}){return r(t,{className:e("border-input text-primary-foreground hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-ring/50 aria-checked:focus-visible:ring-primary/20 dark:aria-checked:focus-visible:ring-primary/40 aria-checked:border-primary aria-checked:aria-invalid:bg-destructive aria-checked:bg-primary aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 dark:bg-input/30 peer flex size-4 shrink-0 items-center justify-center rounded-sm border shadow-xs outline-hidden transition focus-visible:ring-3 disabled:opacity-50",c),"data-slot":"checkbox",...d,children:r(a,{className:"flex items-center justify-center text-current transition-none","data-slot":"checkbox-indicator",children:r(i,{className:"size-3.5"})})})}export{c as Checkbox};
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { cn } from "@codefast/tailwind-variants";
4
+ import { Indicator, Root } from "@radix-ui/react-checkbox";
5
+ import { CheckIcon } from "lucide-react";
6
+ function Checkbox({ className, ...props }) {
7
+ return /*#__PURE__*/ jsx(Root, {
8
+ className: cn("peer flex size-4 shrink-0 items-center justify-center rounded-sm border border-input text-primary-foreground shadow-xs outline-hidden transition hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50 aria-checked:border-primary aria-checked:bg-primary aria-checked:focus-visible:ring-primary/20 aria-invalid:border-destructive aria-invalid:ring-destructive/20 hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 aria-checked:aria-invalid:bg-destructive dark:bg-input/30 dark:aria-checked:focus-visible:ring-primary/40 dark:aria-invalid:ring-destructive/40", className),
9
+ "data-slot": "checkbox",
10
+ ...props,
11
+ children: /*#__PURE__*/ jsx(Indicator, {
12
+ className: "flex items-center justify-center text-current transition-none",
13
+ "data-slot": "checkbox-indicator",
14
+ children: /*#__PURE__*/ jsx(CheckIcon, {
15
+ className: "size-3.5"
16
+ })
17
+ })
18
+ });
19
+ }
20
+ export { Checkbox };
@@ -1,2 +1,62 @@
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__,{Collapsible:()=>Collapsible,CollapsibleContent:()=>CollapsibleContent,CollapsibleTrigger:()=>CollapsibleTrigger});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_collapsible_namespaceObject=require("@radix-ui/react-collapsible");function Collapsible({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.Root,{"data-slot":"collapsible",...e})}function CollapsibleTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function CollapsibleContent({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.CollapsibleContent,{"data-slot":"collapsible-content",...e})}for(var __webpack_i__ in exports.Collapsible=__webpack_exports__.Collapsible,exports.CollapsibleContent=__webpack_exports__.CollapsibleContent,exports.CollapsibleTrigger=__webpack_exports__.CollapsibleTrigger,__webpack_exports__)-1===["Collapsible","CollapsibleContent","CollapsibleTrigger"].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
+ Collapsible: ()=>Collapsible,
29
+ CollapsibleContent: ()=>CollapsibleContent,
30
+ CollapsibleTrigger: ()=>CollapsibleTrigger
31
+ });
32
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
33
+ const react_collapsible_namespaceObject = require("@radix-ui/react-collapsible");
34
+ function Collapsible({ ...props }) {
35
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.Root, {
36
+ "data-slot": "collapsible",
37
+ ...props
38
+ });
39
+ }
40
+ function CollapsibleTrigger({ ...props }) {
41
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.CollapsibleTrigger, {
42
+ "data-slot": "collapsible-trigger",
43
+ ...props
44
+ });
45
+ }
46
+ function CollapsibleContent({ ...props }) {
47
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_collapsible_namespaceObject.CollapsibleContent, {
48
+ "data-slot": "collapsible-content",
49
+ ...props
50
+ });
51
+ }
52
+ exports.Collapsible = __webpack_exports__.Collapsible;
53
+ exports.CollapsibleContent = __webpack_exports__.CollapsibleContent;
54
+ exports.CollapsibleTrigger = __webpack_exports__.CollapsibleTrigger;
55
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
56
+ "Collapsible",
57
+ "CollapsibleContent",
58
+ "CollapsibleTrigger"
59
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
60
+ Object.defineProperty(exports, '__esModule', {
61
+ value: true
62
+ });
@@ -1,2 +1,22 @@
1
1
  "use client";
2
- import{jsx as l}from"react/jsx-runtime";import{CollapsibleContent as o,CollapsibleTrigger as t,Root as e}from"@radix-ui/react-collapsible";function a({...o}){return l(e,{"data-slot":"collapsible",...o})}function i({...o}){return l(t,{"data-slot":"collapsible-trigger",...o})}function r({...t}){return l(o,{"data-slot":"collapsible-content",...t})}export{a as Collapsible,r as CollapsibleContent,i as CollapsibleTrigger};
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { CollapsibleContent, CollapsibleTrigger, Root } from "@radix-ui/react-collapsible";
4
+ function Collapsible({ ...props }) {
5
+ return /*#__PURE__*/ jsx(Root, {
6
+ "data-slot": "collapsible",
7
+ ...props
8
+ });
9
+ }
10
+ function collapsible_CollapsibleTrigger({ ...props }) {
11
+ return /*#__PURE__*/ jsx(CollapsibleTrigger, {
12
+ "data-slot": "collapsible-trigger",
13
+ ...props
14
+ });
15
+ }
16
+ function collapsible_CollapsibleContent({ ...props }) {
17
+ return /*#__PURE__*/ jsx(CollapsibleContent, {
18
+ "data-slot": "collapsible-content",
19
+ ...props
20
+ });
21
+ }
22
+ export { Collapsible, collapsible_CollapsibleContent as CollapsibleContent, collapsible_CollapsibleTrigger as CollapsibleTrigger };
@@ -1,2 +1,168 @@
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 t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__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__,{Command:()=>Command,CommandEmpty:()=>CommandEmpty,CommandGroup:()=>CommandGroup,CommandShortcut:()=>CommandShortcut,CommandSeparator:()=>CommandSeparator,CommandDialog:()=>CommandDialog,CommandInput:()=>CommandInput,CommandItem:()=>CommandItem,CommandList:()=>CommandList,CommandLoading:()=>CommandLoading});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_cmdk_namespaceObject=require("cmdk"),external_lucide_react_namespaceObject=require("lucide-react"),external_dialog_cjs_namespaceObject=require("./dialog.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_visually_hidden_namespaceObject=require("@radix-ui/react-visually-hidden");function Command({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command,{className:(0,tailwind_variants_namespaceObject.cn)("bg-popover text-popover-foreground flex flex-col overflow-hidden rounded-[inherit] outline-hidden",e),"data-slot":"command",...a})}function CommandDialog({children:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.Dialog,{"data-slot":"command-dialog",...a,children:(0,jsx_runtime_namespaceObject.jsxs)(external_dialog_cjs_namespaceObject.DialogContent,{className:"rounded-t-lg sm:rounded-lg","data-slot":"command-dialog-content",children:[(0,jsx_runtime_namespaceObject.jsxs)(react_visually_hidden_namespaceObject.VisuallyHidden,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogTitle,{children:"Search command"}),(0,jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogDescription,{children:"Use the search bar to find and select the desired command."})]}),(0,jsx_runtime_namespaceObject.jsx)(Command,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",children:e})]})})}function CommandInput({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsxs)("div",{"cmdk-input-wrapper":!0,className:"flex items-center gap-2 border-b px-3","data-slot":"command-input-wrapper",children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Input,{className:(0,tailwind_variants_namespaceObject.cn)("placeholder:text-muted-foreground flex h-10 w-full text-base outline-hidden disabled:opacity-50 md:text-sm",e),"data-slot":"command-input",...a})]})}function CommandList({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.List,{className:(0,tailwind_variants_namespaceObject.cn)("max-h-75 overflow-x-hidden overflow-y-auto",e),"data-slot":"command-list",...a})}function CommandEmpty({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Empty,{className:(0,tailwind_variants_namespaceObject.cn)("py-6 text-center text-sm",e),"data-slot":"command-empty",...a})}function CommandGroup({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Group,{className:(0,tailwind_variants_namespaceObject.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),"data-slot":"command-group",...a})}function CommandSeparator({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Separator,{className:(0,tailwind_variants_namespaceObject.cn)("bg-border -mx-1 h-px",e),"data-slot":"command-separator",...a})}function CommandItem({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Item,{className:(0,tailwind_variants_namespaceObject.cn)("aria-selected:bg-accent aria-selected:text-accent-foreground group/command-item [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),"data-slot":"command-item",...a})}function CommandLoading({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Loading,{className:(0,tailwind_variants_namespaceObject.cn)("flex justify-center p-2",e),"data-slot":"command-loading",...a})}function CommandShortcut({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("span",{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground ml-auto text-xs tracking-widest",e),"data-slot":"command-shortcut",...a})}for(var __webpack_i__ in exports.Command=__webpack_exports__.Command,exports.CommandDialog=__webpack_exports__.CommandDialog,exports.CommandEmpty=__webpack_exports__.CommandEmpty,exports.CommandGroup=__webpack_exports__.CommandGroup,exports.CommandInput=__webpack_exports__.CommandInput,exports.CommandItem=__webpack_exports__.CommandItem,exports.CommandList=__webpack_exports__.CommandList,exports.CommandLoading=__webpack_exports__.CommandLoading,exports.CommandSeparator=__webpack_exports__.CommandSeparator,exports.CommandShortcut=__webpack_exports__.CommandShortcut,__webpack_exports__)-1===["Command","CommandDialog","CommandEmpty","CommandGroup","CommandInput","CommandItem","CommandList","CommandLoading","CommandSeparator","CommandShortcut"].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
+ Command: ()=>Command,
29
+ CommandEmpty: ()=>CommandEmpty,
30
+ CommandGroup: ()=>CommandGroup,
31
+ CommandShortcut: ()=>CommandShortcut,
32
+ CommandSeparator: ()=>CommandSeparator,
33
+ CommandDialog: ()=>CommandDialog,
34
+ CommandInput: ()=>CommandInput,
35
+ CommandItem: ()=>CommandItem,
36
+ CommandList: ()=>CommandList,
37
+ CommandLoading: ()=>CommandLoading
38
+ });
39
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
40
+ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
41
+ const react_visually_hidden_namespaceObject = require("@radix-ui/react-visually-hidden");
42
+ const external_cmdk_namespaceObject = require("cmdk");
43
+ const external_lucide_react_namespaceObject = require("lucide-react");
44
+ const external_dialog_cjs_namespaceObject = require("./dialog.cjs");
45
+ function Command({ className, ...props }) {
46
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command, {
47
+ className: (0, tailwind_variants_namespaceObject.cn)("flex flex-col overflow-hidden rounded-[inherit] bg-popover text-popover-foreground outline-hidden", className),
48
+ "data-slot": "command",
49
+ ...props
50
+ });
51
+ }
52
+ function CommandDialog({ children, ...props }) {
53
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.Dialog, {
54
+ "data-slot": "command-dialog",
55
+ ...props,
56
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_dialog_cjs_namespaceObject.DialogContent, {
57
+ className: "rounded-t-lg sm:rounded-lg",
58
+ "data-slot": "command-dialog-content",
59
+ children: [
60
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_visually_hidden_namespaceObject.VisuallyHidden, {
61
+ children: [
62
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogTitle, {
63
+ children: "Search command"
64
+ }),
65
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogDescription, {
66
+ children: "Use the search bar to find and select the desired command."
67
+ })
68
+ ]
69
+ }),
70
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Command, {
71
+ className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",
72
+ children: children
73
+ })
74
+ ]
75
+ })
76
+ });
77
+ }
78
+ function CommandInput({ className, ...props }) {
79
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
80
+ "cmdk-input-wrapper": true,
81
+ className: "flex items-center gap-2 border-b px-3",
82
+ "data-slot": "command-input-wrapper",
83
+ children: [
84
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.SearchIcon, {
85
+ className: "size-4 shrink-0 opacity-50"
86
+ }),
87
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Input, {
88
+ className: (0, tailwind_variants_namespaceObject.cn)("flex h-10 w-full text-base outline-hidden placeholder:text-muted-foreground disabled:opacity-50 md:text-sm", className),
89
+ "data-slot": "command-input",
90
+ ...props
91
+ })
92
+ ]
93
+ });
94
+ }
95
+ function CommandList({ className, ...props }) {
96
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.List, {
97
+ className: (0, tailwind_variants_namespaceObject.cn)("max-h-75 overflow-x-hidden overflow-y-auto", className),
98
+ "data-slot": "command-list",
99
+ ...props
100
+ });
101
+ }
102
+ function CommandEmpty({ className, ...props }) {
103
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Empty, {
104
+ className: (0, tailwind_variants_namespaceObject.cn)("py-6 text-center text-sm", className),
105
+ "data-slot": "command-empty",
106
+ ...props
107
+ });
108
+ }
109
+ function CommandGroup({ className, ...props }) {
110
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Group, {
111
+ className: (0, tailwind_variants_namespaceObject.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className),
112
+ "data-slot": "command-group",
113
+ ...props
114
+ });
115
+ }
116
+ function CommandSeparator({ className, ...props }) {
117
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Separator, {
118
+ className: (0, tailwind_variants_namespaceObject.cn)("-mx-1 h-px bg-border", className),
119
+ "data-slot": "command-separator",
120
+ ...props
121
+ });
122
+ }
123
+ function CommandItem({ className, ...props }) {
124
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Item, {
125
+ className: (0, tailwind_variants_namespaceObject.cn)("group/command-item relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", className),
126
+ "data-slot": "command-item",
127
+ ...props
128
+ });
129
+ }
130
+ function CommandLoading({ className, ...props }) {
131
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Loading, {
132
+ className: (0, tailwind_variants_namespaceObject.cn)("flex justify-center p-2", className),
133
+ "data-slot": "command-loading",
134
+ ...props
135
+ });
136
+ }
137
+ function CommandShortcut({ className, ...props }) {
138
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
139
+ className: (0, tailwind_variants_namespaceObject.cn)("ml-auto text-xs tracking-widest text-muted-foreground", className),
140
+ "data-slot": "command-shortcut",
141
+ ...props
142
+ });
143
+ }
144
+ exports.Command = __webpack_exports__.Command;
145
+ exports.CommandDialog = __webpack_exports__.CommandDialog;
146
+ exports.CommandEmpty = __webpack_exports__.CommandEmpty;
147
+ exports.CommandGroup = __webpack_exports__.CommandGroup;
148
+ exports.CommandInput = __webpack_exports__.CommandInput;
149
+ exports.CommandItem = __webpack_exports__.CommandItem;
150
+ exports.CommandList = __webpack_exports__.CommandList;
151
+ exports.CommandLoading = __webpack_exports__.CommandLoading;
152
+ exports.CommandSeparator = __webpack_exports__.CommandSeparator;
153
+ exports.CommandShortcut = __webpack_exports__.CommandShortcut;
154
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
155
+ "Command",
156
+ "CommandDialog",
157
+ "CommandEmpty",
158
+ "CommandGroup",
159
+ "CommandInput",
160
+ "CommandItem",
161
+ "CommandList",
162
+ "CommandLoading",
163
+ "CommandSeparator",
164
+ "CommandShortcut"
165
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
166
+ Object.defineProperty(exports, '__esModule', {
167
+ value: true
168
+ });
@@ -1,2 +1,107 @@
1
1
  "use client";
2
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Command as o}from"cmdk";import{SearchIcon as a}from"lucide-react";import{Dialog as d,DialogContent as n,DialogDescription as r,DialogTitle as m}from"./dialog.js";import{cn as i}from"@codefast/tailwind-variants";import{VisuallyHidden as c}from"@radix-ui/react-visually-hidden";function s({className:t,...a}){return e(o,{className:i("bg-popover text-popover-foreground flex flex-col overflow-hidden rounded-[inherit] outline-hidden",t),"data-slot":"command",...a})}function u({children:o,...a}){return e(d,{"data-slot":"command-dialog",...a,children:t(n,{className:"rounded-t-lg sm:rounded-lg","data-slot":"command-dialog-content",children:[t(c,{children:[e(m,{children:"Search command"}),e(r,{children:"Use the search bar to find and select the desired command."})]}),e(s,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",children:o})]})})}function l({className:d,...n}){return t("div",{"cmdk-input-wrapper":!0,className:"flex items-center gap-2 border-b px-3","data-slot":"command-input-wrapper",children:[e(a,{className:"size-4 shrink-0 opacity-50"}),e(o.Input,{className:i("placeholder:text-muted-foreground flex h-10 w-full text-base outline-hidden disabled:opacity-50 md:text-sm",d),"data-slot":"command-input",...n})]})}function p({className:t,...a}){return e(o.List,{className:i("max-h-75 overflow-x-hidden overflow-y-auto",t),"data-slot":"command-list",...a})}function g({className:t,...a}){return e(o.Empty,{className:i("py-6 text-center text-sm",t),"data-slot":"command-empty",...a})}function f({className:t,...a}){return e(o.Group,{className:i("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),"data-slot":"command-group",...a})}function h({className:t,...a}){return e(o.Separator,{className:i("bg-border -mx-1 h-px",t),"data-slot":"command-separator",...a})}function x({className:t,...a}){return e(o.Item,{className:i("aria-selected:bg-accent aria-selected:text-accent-foreground group/command-item [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),"data-slot":"command-item",...a})}function k({className:t,...a}){return e(o.Loading,{className:i("flex justify-center p-2",t),"data-slot":"command-loading",...a})}function _({className:t,...o}){return e("span",{className:i("text-muted-foreground ml-auto text-xs tracking-widest",t),"data-slot":"command-shortcut",...o})}export{s as Command,u as CommandDialog,g as CommandEmpty,f as CommandGroup,l as CommandInput,x as CommandItem,p as CommandList,k as CommandLoading,h as CommandSeparator,_ as CommandShortcut};
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@codefast/tailwind-variants";
4
+ import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
5
+ import { Command } from "cmdk";
6
+ import { SearchIcon } from "lucide-react";
7
+ import { Dialog, DialogContent, DialogDescription, DialogTitle } from "./dialog.js";
8
+ function command_Command({ className, ...props }) {
9
+ return /*#__PURE__*/ jsx(Command, {
10
+ className: cn("flex flex-col overflow-hidden rounded-[inherit] bg-popover text-popover-foreground outline-hidden", className),
11
+ "data-slot": "command",
12
+ ...props
13
+ });
14
+ }
15
+ function CommandDialog({ children, ...props }) {
16
+ return /*#__PURE__*/ jsx(Dialog, {
17
+ "data-slot": "command-dialog",
18
+ ...props,
19
+ children: /*#__PURE__*/ jsxs(DialogContent, {
20
+ className: "rounded-t-lg sm:rounded-lg",
21
+ "data-slot": "command-dialog-content",
22
+ children: [
23
+ /*#__PURE__*/ jsxs(VisuallyHidden, {
24
+ children: [
25
+ /*#__PURE__*/ jsx(DialogTitle, {
26
+ children: "Search command"
27
+ }),
28
+ /*#__PURE__*/ jsx(DialogDescription, {
29
+ children: "Use the search bar to find and select the desired command."
30
+ })
31
+ ]
32
+ }),
33
+ /*#__PURE__*/ jsx(command_Command, {
34
+ className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",
35
+ children: children
36
+ })
37
+ ]
38
+ })
39
+ });
40
+ }
41
+ function CommandInput({ className, ...props }) {
42
+ return /*#__PURE__*/ jsxs("div", {
43
+ "cmdk-input-wrapper": true,
44
+ className: "flex items-center gap-2 border-b px-3",
45
+ "data-slot": "command-input-wrapper",
46
+ children: [
47
+ /*#__PURE__*/ jsx(SearchIcon, {
48
+ className: "size-4 shrink-0 opacity-50"
49
+ }),
50
+ /*#__PURE__*/ jsx(Command.Input, {
51
+ className: cn("flex h-10 w-full text-base outline-hidden placeholder:text-muted-foreground disabled:opacity-50 md:text-sm", className),
52
+ "data-slot": "command-input",
53
+ ...props
54
+ })
55
+ ]
56
+ });
57
+ }
58
+ function CommandList({ className, ...props }) {
59
+ return /*#__PURE__*/ jsx(Command.List, {
60
+ className: cn("max-h-75 overflow-x-hidden overflow-y-auto", className),
61
+ "data-slot": "command-list",
62
+ ...props
63
+ });
64
+ }
65
+ function CommandEmpty({ className, ...props }) {
66
+ return /*#__PURE__*/ jsx(Command.Empty, {
67
+ className: cn("py-6 text-center text-sm", className),
68
+ "data-slot": "command-empty",
69
+ ...props
70
+ });
71
+ }
72
+ function CommandGroup({ className, ...props }) {
73
+ return /*#__PURE__*/ jsx(Command.Group, {
74
+ className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className),
75
+ "data-slot": "command-group",
76
+ ...props
77
+ });
78
+ }
79
+ function CommandSeparator({ className, ...props }) {
80
+ return /*#__PURE__*/ jsx(Command.Separator, {
81
+ className: cn("-mx-1 h-px bg-border", className),
82
+ "data-slot": "command-separator",
83
+ ...props
84
+ });
85
+ }
86
+ function CommandItem({ className, ...props }) {
87
+ return /*#__PURE__*/ jsx(Command.Item, {
88
+ className: cn("group/command-item relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", className),
89
+ "data-slot": "command-item",
90
+ ...props
91
+ });
92
+ }
93
+ function CommandLoading({ className, ...props }) {
94
+ return /*#__PURE__*/ jsx(Command.Loading, {
95
+ className: cn("flex justify-center p-2", className),
96
+ "data-slot": "command-loading",
97
+ ...props
98
+ });
99
+ }
100
+ function CommandShortcut({ className, ...props }) {
101
+ return /*#__PURE__*/ jsx("span", {
102
+ className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
103
+ "data-slot": "command-shortcut",
104
+ ...props
105
+ });
106
+ }
107
+ export { command_Command as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut };