@web-my-money/primitives 1.0.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 (196) hide show
  1. package/dist/accordion/index.d.mts +9 -0
  2. package/dist/accordion/index.d.ts +9 -0
  3. package/dist/accordion/index.js +99 -0
  4. package/dist/accordion/index.mjs +14 -0
  5. package/dist/alert-dialog/index.d.mts +22 -0
  6. package/dist/alert-dialog/index.d.ts +22 -0
  7. package/dist/alert-dialog/index.js +206 -0
  8. package/dist/alert-dialog/index.mjs +29 -0
  9. package/dist/avatar/index.d.mts +23 -0
  10. package/dist/avatar/index.d.ts +23 -0
  11. package/dist/avatar/index.js +133 -0
  12. package/dist/avatar/index.mjs +10 -0
  13. package/dist/badge/index.d.mts +15 -0
  14. package/dist/badge/index.d.ts +15 -0
  15. package/dist/badge/index.js +96 -0
  16. package/dist/badge/index.mjs +10 -0
  17. package/dist/breadcrumb/index.d.mts +20 -0
  18. package/dist/breadcrumb/index.d.ts +20 -0
  19. package/dist/breadcrumb/index.js +126 -0
  20. package/dist/breadcrumb/index.mjs +20 -0
  21. package/dist/button/index.d.mts +12 -0
  22. package/dist/button/index.d.ts +12 -0
  23. package/dist/button/index.js +88 -0
  24. package/dist/button/index.mjs +10 -0
  25. package/dist/calendar/index.d.mts +29 -0
  26. package/dist/calendar/index.d.ts +29 -0
  27. package/dist/calendar/index.js +191 -0
  28. package/dist/calendar/index.mjs +9 -0
  29. package/dist/card/index.d.mts +13 -0
  30. package/dist/card/index.d.ts +13 -0
  31. package/dist/card/index.js +141 -0
  32. package/dist/card/index.mjs +19 -0
  33. package/dist/carousel/index.d.mts +20 -0
  34. package/dist/carousel/index.d.ts +20 -0
  35. package/dist/carousel/index.js +236 -0
  36. package/dist/carousel/index.mjs +19 -0
  37. package/dist/checkbox/index.d.mts +6 -0
  38. package/dist/checkbox/index.d.ts +6 -0
  39. package/dist/checkbox/index.js +63 -0
  40. package/dist/checkbox/index.mjs +8 -0
  41. package/dist/chunk-32LEHNCH.mjs +155 -0
  42. package/dist/chunk-3ZJ4L43B.mjs +92 -0
  43. package/dist/chunk-4KQNZMKT.mjs +47 -0
  44. package/dist/chunk-4W6U222X.mjs +113 -0
  45. package/dist/chunk-556SM2PJ.mjs +40 -0
  46. package/dist/chunk-5LYTCNI6.mjs +127 -0
  47. package/dist/chunk-5N7LGYZK.mjs +137 -0
  48. package/dist/chunk-6OG237U6.mjs +54 -0
  49. package/dist/chunk-7TMIJ7HZ.mjs +149 -0
  50. package/dist/chunk-DTENOVQN.mjs +44 -0
  51. package/dist/chunk-DUGW62XX.mjs +143 -0
  52. package/dist/chunk-DWLKKYIU.mjs +156 -0
  53. package/dist/chunk-DYCSGLM5.mjs +32 -0
  54. package/dist/chunk-DZPJV6MN.mjs +66 -0
  55. package/dist/chunk-FT72MNAV.mjs +25 -0
  56. package/dist/chunk-FV6JTZAK.mjs +30 -0
  57. package/dist/chunk-GLD4KQD3.mjs +90 -0
  58. package/dist/chunk-GWVW5OI6.mjs +106 -0
  59. package/dist/chunk-JWCA4M7E.mjs +160 -0
  60. package/dist/chunk-K4UYYX45.mjs +199 -0
  61. package/dist/chunk-KVQKOJNU.mjs +52 -0
  62. package/dist/chunk-LPMRBQLR.mjs +120 -0
  63. package/dist/chunk-M6HSM6GV.mjs +68 -0
  64. package/dist/chunk-NE5LEVMC.mjs +201 -0
  65. package/dist/chunk-NGWDLZ6E.mjs +33 -0
  66. package/dist/chunk-NH5ZVHAV.mjs +36 -0
  67. package/dist/chunk-PFXSPRVI.mjs +65 -0
  68. package/dist/chunk-PJO7WJ4G.mjs +10 -0
  69. package/dist/chunk-PTXZWR7Y.mjs +76 -0
  70. package/dist/chunk-SG747CBC.mjs +34 -0
  71. package/dist/chunk-UDQDW22Y.mjs +71 -0
  72. package/dist/chunk-UGOA6M4S.mjs +120 -0
  73. package/dist/chunk-UXU54FBX.mjs +63 -0
  74. package/dist/chunk-WYBX5VJ4.mjs +49 -0
  75. package/dist/chunk-Y7DNVOKO.mjs +57 -0
  76. package/dist/chunk-YNOS3JA2.mjs +29 -0
  77. package/dist/chunk-YPTARV3T.mjs +57 -0
  78. package/dist/chunk-YYFQVSPV.mjs +17 -0
  79. package/dist/chunk-ZR3J34NX.mjs +85 -0
  80. package/dist/collapsible/index.d.mts +8 -0
  81. package/dist/collapsible/index.d.ts +8 -0
  82. package/dist/collapsible/index.js +64 -0
  83. package/dist/collapsible/index.mjs +12 -0
  84. package/dist/combobox/index.d.mts +18 -0
  85. package/dist/combobox/index.d.ts +18 -0
  86. package/dist/combobox/index.js +198 -0
  87. package/dist/combobox/index.mjs +32 -0
  88. package/dist/context-menu/index.d.mts +16 -0
  89. package/dist/context-menu/index.d.ts +16 -0
  90. package/dist/context-menu/index.js +177 -0
  91. package/dist/context-menu/index.mjs +28 -0
  92. package/dist/date-range-input/index.d.mts +17 -0
  93. package/dist/date-range-input/index.d.ts +17 -0
  94. package/dist/date-range-input/index.js +284 -0
  95. package/dist/date-range-input/index.mjs +11 -0
  96. package/dist/dialog/index.d.mts +19 -0
  97. package/dist/dialog/index.d.ts +19 -0
  98. package/dist/dialog/index.js +240 -0
  99. package/dist/dialog/index.mjs +27 -0
  100. package/dist/dropdown-menu/index.d.mts +16 -0
  101. package/dist/dropdown-menu/index.d.ts +16 -0
  102. package/dist/dropdown-menu/index.js +189 -0
  103. package/dist/dropdown-menu/index.mjs +28 -0
  104. package/dist/field/index.d.mts +24 -0
  105. package/dist/field/index.d.ts +24 -0
  106. package/dist/field/index.js +88 -0
  107. package/dist/field/index.mjs +16 -0
  108. package/dist/hover-card/index.d.mts +8 -0
  109. package/dist/hover-card/index.d.ts +8 -0
  110. package/dist/hover-card/index.js +79 -0
  111. package/dist/hover-card/index.mjs +12 -0
  112. package/dist/index.d.mts +73 -0
  113. package/dist/index.d.ts +73 -0
  114. package/dist/index.js +3167 -0
  115. package/dist/index.mjs +452 -0
  116. package/dist/input/index.d.mts +5 -0
  117. package/dist/input/index.d.ts +5 -0
  118. package/dist/input/index.js +54 -0
  119. package/dist/input/index.mjs +7 -0
  120. package/dist/kbd/index.d.mts +8 -0
  121. package/dist/kbd/index.d.ts +8 -0
  122. package/dist/kbd/index.js +64 -0
  123. package/dist/kbd/index.mjs +9 -0
  124. package/dist/lightbox/index.d.mts +17 -0
  125. package/dist/lightbox/index.d.ts +17 -0
  126. package/dist/lightbox/index.js +151 -0
  127. package/dist/lightbox/index.mjs +24 -0
  128. package/dist/pagination/index.d.mts +33 -0
  129. package/dist/pagination/index.d.ts +33 -0
  130. package/dist/pagination/index.js +212 -0
  131. package/dist/pagination/index.mjs +25 -0
  132. package/dist/popover/index.d.mts +11 -0
  133. package/dist/popover/index.d.ts +11 -0
  134. package/dist/popover/index.js +120 -0
  135. package/dist/popover/index.mjs +18 -0
  136. package/dist/progress/index.d.mts +6 -0
  137. package/dist/progress/index.d.ts +6 -0
  138. package/dist/progress/index.js +60 -0
  139. package/dist/progress/index.mjs +8 -0
  140. package/dist/radio-group/index.d.mts +8 -0
  141. package/dist/radio-group/index.d.ts +8 -0
  142. package/dist/radio-group/index.js +71 -0
  143. package/dist/radio-group/index.mjs +10 -0
  144. package/dist/resizable/index.d.mts +10 -0
  145. package/dist/resizable/index.d.ts +10 -0
  146. package/dist/resizable/index.js +80 -0
  147. package/dist/resizable/index.mjs +12 -0
  148. package/dist/scroll-area/index.d.mts +6 -0
  149. package/dist/scroll-area/index.d.ts +6 -0
  150. package/dist/scroll-area/index.js +74 -0
  151. package/dist/scroll-area/index.mjs +8 -0
  152. package/dist/select/index.d.mts +17 -0
  153. package/dist/select/index.d.ts +17 -0
  154. package/dist/select/index.js +238 -0
  155. package/dist/select/index.mjs +26 -0
  156. package/dist/separator/index.d.mts +6 -0
  157. package/dist/separator/index.d.ts +6 -0
  158. package/dist/separator/index.js +59 -0
  159. package/dist/separator/index.mjs +8 -0
  160. package/dist/sheet/index.d.mts +38 -0
  161. package/dist/sheet/index.d.ts +38 -0
  162. package/dist/sheet/index.js +212 -0
  163. package/dist/sheet/index.mjs +27 -0
  164. package/dist/skeleton/index.d.mts +17 -0
  165. package/dist/skeleton/index.d.ts +17 -0
  166. package/dist/skeleton/index.js +80 -0
  167. package/dist/skeleton/index.mjs +11 -0
  168. package/dist/slide-over/index.d.mts +92 -0
  169. package/dist/slide-over/index.d.ts +92 -0
  170. package/dist/slide-over/index.js +298 -0
  171. package/dist/slide-over/index.mjs +31 -0
  172. package/dist/slider/index.d.mts +6 -0
  173. package/dist/slider/index.d.ts +6 -0
  174. package/dist/slider/index.js +47 -0
  175. package/dist/slider/index.mjs +8 -0
  176. package/dist/switch/index.d.mts +8 -0
  177. package/dist/switch/index.d.ts +8 -0
  178. package/dist/switch/index.js +66 -0
  179. package/dist/switch/index.mjs +8 -0
  180. package/dist/tabs/index.d.mts +9 -0
  181. package/dist/tabs/index.d.ts +9 -0
  182. package/dist/tabs/index.js +96 -0
  183. package/dist/tabs/index.mjs +14 -0
  184. package/dist/toast/index.d.mts +19 -0
  185. package/dist/toast/index.d.ts +19 -0
  186. package/dist/toast/index.js +107 -0
  187. package/dist/toast/index.mjs +10 -0
  188. package/dist/toggle/index.d.mts +14 -0
  189. package/dist/toggle/index.d.ts +14 -0
  190. package/dist/toggle/index.js +89 -0
  191. package/dist/toggle/index.mjs +12 -0
  192. package/dist/tooltip/index.d.mts +9 -0
  193. package/dist/tooltip/index.d.ts +9 -0
  194. package/dist/tooltip/index.js +101 -0
  195. package/dist/tooltip/index.mjs +14 -0
  196. package/package.json +235 -0
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/progress/index.tsx
22
+ var progress_exports = {};
23
+ __export(progress_exports, {
24
+ Progress: () => Progress
25
+ });
26
+ module.exports = __toCommonJS(progress_exports);
27
+ var import_progress = require("@base-ui/react/progress");
28
+
29
+ // src/utils.ts
30
+ var import_clsx = require("clsx");
31
+ var import_tailwind_merge = require("tailwind-merge");
32
+ function cn(...inputs) {
33
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
34
+ }
35
+
36
+ // src/progress/index.tsx
37
+ var import_jsx_runtime = require("react/jsx-runtime");
38
+ function Progress({
39
+ className,
40
+ value,
41
+ ...props
42
+ }) {
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_progress.Progress.Root, { "data-slot": "progress", value, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
44
+ import_progress.Progress.Track,
45
+ {
46
+ className: cn("relative h-2 w-full overflow-hidden rounded-full bg-muted", className),
47
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
48
+ import_progress.Progress.Indicator,
49
+ {
50
+ "data-slot": "progress-indicator",
51
+ className: "h-full rounded-full bg-primary transition-[width] duration-300 ease-out"
52
+ }
53
+ )
54
+ }
55
+ ) });
56
+ }
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ Progress
60
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ Progress
4
+ } from "../chunk-FV6JTZAK.mjs";
5
+ import "../chunk-PJO7WJ4G.mjs";
6
+ export {
7
+ Progress
8
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
3
+ import { Radio } from '@base-ui/react/radio';
4
+
5
+ declare function RadioGroup({ className, ...props }: RadioGroup$1.Props): React.JSX.Element;
6
+ declare function RadioGroupItem({ className, ...props }: Radio.Root.Props): React.JSX.Element;
7
+
8
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
3
+ import { Radio } from '@base-ui/react/radio';
4
+
5
+ declare function RadioGroup({ className, ...props }: RadioGroup$1.Props): React.JSX.Element;
6
+ declare function RadioGroupItem({ className, ...props }: Radio.Root.Props): React.JSX.Element;
7
+
8
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/radio-group/index.tsx
22
+ var radio_group_exports = {};
23
+ __export(radio_group_exports, {
24
+ RadioGroup: () => RadioGroup,
25
+ RadioGroupItem: () => RadioGroupItem
26
+ });
27
+ module.exports = __toCommonJS(radio_group_exports);
28
+ var import_radio_group = require("@base-ui/react/radio-group");
29
+ var import_radio = require("@base-ui/react/radio");
30
+
31
+ // src/utils.ts
32
+ var import_clsx = require("clsx");
33
+ var import_tailwind_merge = require("tailwind-merge");
34
+ function cn(...inputs) {
35
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
36
+ }
37
+
38
+ // src/radio-group/index.tsx
39
+ var import_jsx_runtime = require("react/jsx-runtime");
40
+ function RadioGroup({ className, ...props }) {
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
42
+ import_radio_group.RadioGroup,
43
+ {
44
+ "data-slot": "radio-group",
45
+ className: cn("flex flex-col gap-2.5", className),
46
+ ...props
47
+ }
48
+ );
49
+ }
50
+ function RadioGroupItem({ className, ...props }) {
51
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
52
+ import_radio.Radio.Root,
53
+ {
54
+ "data-slot": "radio-group-item",
55
+ className: cn(
56
+ "flex size-4 shrink-0 items-center justify-center rounded-full border border-border bg-background outline-none",
57
+ "data-checked:border-primary data-checked:bg-primary",
58
+ "focus-visible:ring-2 focus-visible:ring-ring",
59
+ "data-disabled:opacity-50 data-disabled:cursor-not-allowed",
60
+ className
61
+ ),
62
+ ...props,
63
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_radio.Radio.Indicator, { className: "size-1.5 rounded-full bg-primary-foreground data-unchecked:hidden" })
64
+ }
65
+ );
66
+ }
67
+ // Annotate the CommonJS export names for ESM import in node:
68
+ 0 && (module.exports = {
69
+ RadioGroup,
70
+ RadioGroupItem
71
+ });
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import {
3
+ RadioGroup,
4
+ RadioGroupItem
5
+ } from "../chunk-556SM2PJ.mjs";
6
+ import "../chunk-PJO7WJ4G.mjs";
7
+ export {
8
+ RadioGroup,
9
+ RadioGroupItem
10
+ };
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { PanelResizeHandleProps, PanelProps, PanelGroupProps } from 'react-resizable-panels';
3
+
4
+ declare function ResizablePanelGroup({ className, ...props }: PanelGroupProps): React.JSX.Element;
5
+ declare function ResizablePanel({ ...props }: PanelProps): React.JSX.Element;
6
+ declare function ResizableHandle({ withHandle, className, ...props }: PanelResizeHandleProps & {
7
+ withHandle?: boolean;
8
+ }): React.JSX.Element;
9
+
10
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { PanelResizeHandleProps, PanelProps, PanelGroupProps } from 'react-resizable-panels';
3
+
4
+ declare function ResizablePanelGroup({ className, ...props }: PanelGroupProps): React.JSX.Element;
5
+ declare function ResizablePanel({ ...props }: PanelProps): React.JSX.Element;
6
+ declare function ResizableHandle({ withHandle, className, ...props }: PanelResizeHandleProps & {
7
+ withHandle?: boolean;
8
+ }): React.JSX.Element;
9
+
10
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/resizable/index.tsx
22
+ var resizable_exports = {};
23
+ __export(resizable_exports, {
24
+ ResizableHandle: () => ResizableHandle,
25
+ ResizablePanel: () => ResizablePanel,
26
+ ResizablePanelGroup: () => ResizablePanelGroup
27
+ });
28
+ module.exports = __toCommonJS(resizable_exports);
29
+ var import_lucide_react = require("lucide-react");
30
+ var import_react_resizable_panels = require("react-resizable-panels");
31
+
32
+ // src/utils.ts
33
+ var import_clsx = require("clsx");
34
+ var import_tailwind_merge = require("tailwind-merge");
35
+ function cn(...inputs) {
36
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
37
+ }
38
+
39
+ // src/resizable/index.tsx
40
+ var import_jsx_runtime = require("react/jsx-runtime");
41
+ function ResizablePanelGroup({ className, ...props }) {
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
43
+ import_react_resizable_panels.PanelGroup,
44
+ {
45
+ "data-slot": "resizable-panel-group",
46
+ className: cn(
47
+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
48
+ className
49
+ ),
50
+ ...props
51
+ }
52
+ );
53
+ }
54
+ function ResizablePanel({ ...props }) {
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_resizable_panels.Panel, { "data-slot": "resizable-panel", ...props });
56
+ }
57
+ function ResizableHandle({
58
+ withHandle,
59
+ className,
60
+ ...props
61
+ }) {
62
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
63
+ import_react_resizable_panels.PanelResizeHandle,
64
+ {
65
+ "data-slot": "resizable-handle",
66
+ className: cn(
67
+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2",
68
+ className
69
+ ),
70
+ ...props,
71
+ children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border border-border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.GripVertical, { className: "size-2.5" }) })
72
+ }
73
+ );
74
+ }
75
+ // Annotate the CommonJS export names for ESM import in node:
76
+ 0 && (module.exports = {
77
+ ResizableHandle,
78
+ ResizablePanel,
79
+ ResizablePanelGroup
80
+ });
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import {
3
+ ResizableHandle,
4
+ ResizablePanel,
5
+ ResizablePanelGroup
6
+ } from "../chunk-KVQKOJNU.mjs";
7
+ import "../chunk-PJO7WJ4G.mjs";
8
+ export {
9
+ ResizableHandle,
10
+ ResizablePanel,
11
+ ResizablePanelGroup
12
+ };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
3
+
4
+ declare function ScrollArea({ className, children, ...props }: ScrollArea$1.Root.Props): React.JSX.Element;
5
+
6
+ export { ScrollArea };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
3
+
4
+ declare function ScrollArea({ className, children, ...props }: ScrollArea$1.Root.Props): React.JSX.Element;
5
+
6
+ export { ScrollArea };
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/scroll-area/index.tsx
22
+ var scroll_area_exports = {};
23
+ __export(scroll_area_exports, {
24
+ ScrollArea: () => ScrollArea
25
+ });
26
+ module.exports = __toCommonJS(scroll_area_exports);
27
+ var import_scroll_area = require("@base-ui/react/scroll-area");
28
+
29
+ // src/utils.ts
30
+ var import_clsx = require("clsx");
31
+ var import_tailwind_merge = require("tailwind-merge");
32
+ function cn(...inputs) {
33
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
34
+ }
35
+
36
+ // src/scroll-area/index.tsx
37
+ var import_jsx_runtime = require("react/jsx-runtime");
38
+ function ScrollArea({
39
+ className,
40
+ children,
41
+ ...props
42
+ }) {
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
44
+ import_scroll_area.ScrollArea.Root,
45
+ {
46
+ "data-slot": "scroll-area",
47
+ className: cn("relative overflow-hidden", className),
48
+ ...props,
49
+ children: [
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_scroll_area.ScrollArea.Viewport, { className: "size-full rounded-[inherit] outline-none", children }),
51
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
52
+ import_scroll_area.ScrollArea.Scrollbar,
53
+ {
54
+ orientation: "vertical",
55
+ className: "flex w-2 touch-none select-none p-0.5 transition-opacity data-[orientation=vertical]:h-full",
56
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_scroll_area.ScrollArea.Thumb, { className: "relative flex-1 rounded-full bg-border" })
57
+ }
58
+ ),
59
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
60
+ import_scroll_area.ScrollArea.Scrollbar,
61
+ {
62
+ orientation: "horizontal",
63
+ className: "flex h-2 touch-none select-none p-0.5 transition-opacity",
64
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_scroll_area.ScrollArea.Thumb, { className: "relative flex-1 rounded-full bg-border" })
65
+ }
66
+ )
67
+ ]
68
+ }
69
+ );
70
+ }
71
+ // Annotate the CommonJS export names for ESM import in node:
72
+ 0 && (module.exports = {
73
+ ScrollArea
74
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ ScrollArea
4
+ } from "../chunk-DTENOVQN.mjs";
5
+ import "../chunk-PJO7WJ4G.mjs";
6
+ export {
7
+ ScrollArea
8
+ };
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { Select as Select$1 } from '@base-ui/react/select';
3
+
4
+ declare const Select: typeof Select$1.Root;
5
+ declare function SelectGroup({ className, ...props }: Select$1.Group.Props): React.JSX.Element;
6
+ declare function SelectValue({ className, ...props }: Select$1.Value.Props): React.JSX.Element;
7
+ declare function SelectTrigger({ className, size, children, ...props }: Select$1.Trigger.Props & {
8
+ size?: "sm" | "default";
9
+ }): React.JSX.Element;
10
+ declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: Select$1.Popup.Props & Pick<Select$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">): React.JSX.Element;
11
+ declare function SelectLabel({ className, ...props }: Select$1.GroupLabel.Props): React.JSX.Element;
12
+ declare function SelectItem({ className, children, ...props }: Select$1.Item.Props): React.JSX.Element;
13
+ declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): React.JSX.Element;
14
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollUpArrow>): React.JSX.Element;
15
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownArrow>): React.JSX.Element;
16
+
17
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { Select as Select$1 } from '@base-ui/react/select';
3
+
4
+ declare const Select: typeof Select$1.Root;
5
+ declare function SelectGroup({ className, ...props }: Select$1.Group.Props): React.JSX.Element;
6
+ declare function SelectValue({ className, ...props }: Select$1.Value.Props): React.JSX.Element;
7
+ declare function SelectTrigger({ className, size, children, ...props }: Select$1.Trigger.Props & {
8
+ size?: "sm" | "default";
9
+ }): React.JSX.Element;
10
+ declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: Select$1.Popup.Props & Pick<Select$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">): React.JSX.Element;
11
+ declare function SelectLabel({ className, ...props }: Select$1.GroupLabel.Props): React.JSX.Element;
12
+ declare function SelectItem({ className, children, ...props }: Select$1.Item.Props): React.JSX.Element;
13
+ declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): React.JSX.Element;
14
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollUpArrow>): React.JSX.Element;
15
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownArrow>): React.JSX.Element;
16
+
17
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -0,0 +1,238 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/select/index.tsx
22
+ var select_exports = {};
23
+ __export(select_exports, {
24
+ Select: () => Select,
25
+ SelectContent: () => SelectContent,
26
+ SelectGroup: () => SelectGroup,
27
+ SelectItem: () => SelectItem,
28
+ SelectLabel: () => SelectLabel,
29
+ SelectScrollDownButton: () => SelectScrollDownButton,
30
+ SelectScrollUpButton: () => SelectScrollUpButton,
31
+ SelectSeparator: () => SelectSeparator,
32
+ SelectTrigger: () => SelectTrigger,
33
+ SelectValue: () => SelectValue
34
+ });
35
+ module.exports = __toCommonJS(select_exports);
36
+ var import_select = require("@base-ui/react/select");
37
+
38
+ // src/utils.ts
39
+ var import_clsx = require("clsx");
40
+ var import_tailwind_merge = require("tailwind-merge");
41
+ function cn(...inputs) {
42
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
43
+ }
44
+
45
+ // src/select/index.tsx
46
+ var import_lucide_react = require("lucide-react");
47
+ var import_jsx_runtime = require("react/jsx-runtime");
48
+ var Select = import_select.Select.Root;
49
+ function SelectGroup({ className, ...props }) {
50
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51
+ import_select.Select.Group,
52
+ {
53
+ "data-slot": "select-group",
54
+ className: cn("scroll-my-1 p-1", className),
55
+ ...props
56
+ }
57
+ );
58
+ }
59
+ function SelectValue({ className, ...props }) {
60
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
61
+ import_select.Select.Value,
62
+ {
63
+ "data-slot": "select-value",
64
+ className: cn("flex flex-1 text-left", className),
65
+ ...props
66
+ }
67
+ );
68
+ }
69
+ function SelectTrigger({
70
+ className,
71
+ size = "default",
72
+ children,
73
+ ...props
74
+ }) {
75
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
76
+ import_select.Select.Trigger,
77
+ {
78
+ "data-slot": "select-trigger",
79
+ "data-size": size,
80
+ className: cn(
81
+ "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
82
+ className
83
+ ),
84
+ ...props,
85
+ children: [
86
+ children,
87
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
88
+ import_select.Select.Icon,
89
+ {
90
+ render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronDownIcon, { className: "pointer-events-none size-4 text-muted-foreground" })
91
+ }
92
+ )
93
+ ]
94
+ }
95
+ );
96
+ }
97
+ function SelectContent({
98
+ className,
99
+ children,
100
+ side = "bottom",
101
+ sideOffset = 4,
102
+ align = "center",
103
+ alignOffset = 0,
104
+ alignItemWithTrigger = true,
105
+ ...props
106
+ }) {
107
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
108
+ import_select.Select.Positioner,
109
+ {
110
+ side,
111
+ sideOffset,
112
+ align,
113
+ alignOffset,
114
+ alignItemWithTrigger,
115
+ className: "isolate z-50",
116
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
117
+ import_select.Select.Popup,
118
+ {
119
+ "data-slot": "select-content",
120
+ "data-align-trigger": alignItemWithTrigger,
121
+ className: cn(
122
+ "relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
123
+ className
124
+ ),
125
+ ...props,
126
+ children: [
127
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollUpButton, {}),
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.List, { children }),
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollDownButton, {})
130
+ ]
131
+ }
132
+ )
133
+ }
134
+ ) });
135
+ }
136
+ function SelectLabel({
137
+ className,
138
+ ...props
139
+ }) {
140
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
141
+ import_select.Select.GroupLabel,
142
+ {
143
+ "data-slot": "select-label",
144
+ className: cn("px-1.5 py-1 text-xs text-muted-foreground", className),
145
+ ...props
146
+ }
147
+ );
148
+ }
149
+ function SelectItem({
150
+ className,
151
+ children,
152
+ ...props
153
+ }) {
154
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
155
+ import_select.Select.Item,
156
+ {
157
+ "data-slot": "select-item",
158
+ className: cn(
159
+ "relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
160
+ className
161
+ ),
162
+ ...props,
163
+ children: [
164
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
165
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
166
+ import_select.Select.ItemIndicator,
167
+ {
168
+ render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
169
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CheckIcon, { className: "pointer-events-none" })
170
+ }
171
+ )
172
+ ]
173
+ }
174
+ );
175
+ }
176
+ function SelectSeparator({
177
+ className,
178
+ ...props
179
+ }) {
180
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
181
+ import_select.Select.Separator,
182
+ {
183
+ "data-slot": "select-separator",
184
+ className: cn(
185
+ "pointer-events-none -mx-1 my-1 h-px bg-border",
186
+ className
187
+ ),
188
+ ...props
189
+ }
190
+ );
191
+ }
192
+ function SelectScrollUpButton({
193
+ className,
194
+ ...props
195
+ }) {
196
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
197
+ import_select.Select.ScrollUpArrow,
198
+ {
199
+ "data-slot": "select-scroll-up-button",
200
+ className: cn(
201
+ "top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
202
+ className
203
+ ),
204
+ ...props,
205
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronUpIcon, {})
206
+ }
207
+ );
208
+ }
209
+ function SelectScrollDownButton({
210
+ className,
211
+ ...props
212
+ }) {
213
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
214
+ import_select.Select.ScrollDownArrow,
215
+ {
216
+ "data-slot": "select-scroll-down-button",
217
+ className: cn(
218
+ "bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
219
+ className
220
+ ),
221
+ ...props,
222
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronDownIcon, {})
223
+ }
224
+ );
225
+ }
226
+ // Annotate the CommonJS export names for ESM import in node:
227
+ 0 && (module.exports = {
228
+ Select,
229
+ SelectContent,
230
+ SelectGroup,
231
+ SelectItem,
232
+ SelectLabel,
233
+ SelectScrollDownButton,
234
+ SelectScrollUpButton,
235
+ SelectSeparator,
236
+ SelectTrigger,
237
+ SelectValue
238
+ });