@axis-ds/ui-react 1.1.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 (177) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -0
  3. package/dist/accordion/index.d.mts +13 -0
  4. package/dist/accordion/index.d.ts +13 -0
  5. package/dist/accordion/index.js +111 -0
  6. package/dist/accordion/index.mjs +13 -0
  7. package/dist/alert/index.d.mts +21 -0
  8. package/dist/alert/index.d.ts +21 -0
  9. package/dist/alert/index.js +104 -0
  10. package/dist/alert/index.mjs +13 -0
  11. package/dist/avatar/index.d.mts +26 -0
  12. package/dist/avatar/index.d.ts +26 -0
  13. package/dist/avatar/index.js +97 -0
  14. package/dist/avatar/index.mjs +9 -0
  15. package/dist/badge/index.d.mts +17 -0
  16. package/dist/badge/index.d.ts +17 -0
  17. package/dist/badge/index.js +84 -0
  18. package/dist/badge/index.mjs +9 -0
  19. package/dist/breadcrumb/index.d.mts +34 -0
  20. package/dist/breadcrumb/index.d.ts +34 -0
  21. package/dist/breadcrumb/index.js +177 -0
  22. package/dist/breadcrumb/index.mjs +19 -0
  23. package/dist/button/index.d.mts +21 -0
  24. package/dist/button/index.d.ts +21 -0
  25. package/dist/button/index.js +93 -0
  26. package/dist/button/index.mjs +9 -0
  27. package/dist/card/index.d.mts +19 -0
  28. package/dist/card/index.d.ts +19 -0
  29. package/dist/card/index.js +115 -0
  30. package/dist/card/index.mjs +17 -0
  31. package/dist/checkbox/index.d.mts +10 -0
  32. package/dist/checkbox/index.d.ts +10 -0
  33. package/dist/checkbox/index.js +88 -0
  34. package/dist/checkbox/index.mjs +7 -0
  35. package/dist/chunk-3H7DF7QZ.mjs +49 -0
  36. package/dist/chunk-3I222KOY.mjs +123 -0
  37. package/dist/chunk-3N6NG7VT.mjs +11 -0
  38. package/dist/chunk-4AWNSTZH.mjs +57 -0
  39. package/dist/chunk-4JQWQF3H.mjs +25 -0
  40. package/dist/chunk-54Y3KUM5.mjs +28 -0
  41. package/dist/chunk-5PIG7LWJ.mjs +139 -0
  42. package/dist/chunk-6TRDXC4W.mjs +69 -0
  43. package/dist/chunk-7OPZAWBW.mjs +58 -0
  44. package/dist/chunk-A5FJHFJQ.mjs +210 -0
  45. package/dist/chunk-AEBHTW7E.mjs +29 -0
  46. package/dist/chunk-AJERK2UH.mjs +49 -0
  47. package/dist/chunk-APUPJHAQ.mjs +43 -0
  48. package/dist/chunk-AUXVXNU2.mjs +105 -0
  49. package/dist/chunk-B2GWR74O.mjs +144 -0
  50. package/dist/chunk-CTWUJDKA.mjs +49 -0
  51. package/dist/chunk-E2C7WDLA.mjs +108 -0
  52. package/dist/chunk-ECF2JRI5.mjs +43 -0
  53. package/dist/chunk-EJNQRWUO.mjs +29 -0
  54. package/dist/chunk-F6RLUX3E.mjs +37 -0
  55. package/dist/chunk-FMXB7UCT.mjs +27 -0
  56. package/dist/chunk-HQB5TO4N.mjs +28 -0
  57. package/dist/chunk-HYW3HTBA.mjs +31 -0
  58. package/dist/chunk-IOOOCHIG.mjs +49 -0
  59. package/dist/chunk-IXLVGZWU.mjs +105 -0
  60. package/dist/chunk-JJY2MCTX.mjs +25 -0
  61. package/dist/chunk-JM45JPSK.mjs +43 -0
  62. package/dist/chunk-JQV5IP5Z.mjs +28 -0
  63. package/dist/chunk-KAIB45YN.mjs +132 -0
  64. package/dist/chunk-MARIIZN7.mjs +53 -0
  65. package/dist/chunk-NEZK6NO5.mjs +58 -0
  66. package/dist/chunk-NFFXJB2O.mjs +11 -0
  67. package/dist/chunk-O5SM54HW.mjs +71 -0
  68. package/dist/chunk-OIQGWWAS.mjs +42 -0
  69. package/dist/chunk-PJO7WJ4G.mjs +10 -0
  70. package/dist/chunk-PUERRSNI.mjs +37 -0
  71. package/dist/chunk-Q3KALTWT.mjs +37 -0
  72. package/dist/chunk-Q4WL74ZY.mjs +43 -0
  73. package/dist/chunk-RBVNJKEQ.mjs +210 -0
  74. package/dist/chunk-SCH6SFLB.mjs +37 -0
  75. package/dist/chunk-SLQ756Q7.mjs +36 -0
  76. package/dist/chunk-SPUFU4HC.mjs +139 -0
  77. package/dist/chunk-SR3JZW6T.mjs +210 -0
  78. package/dist/chunk-TD5OLTUB.mjs +62 -0
  79. package/dist/chunk-WVWKKHBP.mjs +44 -0
  80. package/dist/chunk-XHILRI24.mjs +111 -0
  81. package/dist/chunk-XW4HTSUY.mjs +123 -0
  82. package/dist/chunk-YKZAU3UV.mjs +144 -0
  83. package/dist/chunk-YVJ7BL4T.mjs +81 -0
  84. package/dist/chunk-ZU6FMFB5.mjs +31 -0
  85. package/dist/collapsible/index.d.mts +11 -0
  86. package/dist/collapsible/index.d.ts +11 -0
  87. package/dist/collapsible/index.js +47 -0
  88. package/dist/collapsible/index.mjs +10 -0
  89. package/dist/command/index.d.mts +86 -0
  90. package/dist/command/index.d.ts +86 -0
  91. package/dist/command/index.js +168 -0
  92. package/dist/command/index.mjs +19 -0
  93. package/dist/dialog/index.d.mts +32 -0
  94. package/dist/dialog/index.d.ts +32 -0
  95. package/dist/dialog/index.js +153 -0
  96. package/dist/dialog/index.mjs +25 -0
  97. package/dist/dropdown-menu/index.d.mts +57 -0
  98. package/dist/dropdown-menu/index.d.ts +57 -0
  99. package/dist/dropdown-menu/index.js +263 -0
  100. package/dist/dropdown-menu/index.mjs +35 -0
  101. package/dist/index.d.mts +60 -0
  102. package/dist/index.d.ts +60 -0
  103. package/dist/index.js +2029 -0
  104. package/dist/index.mjs +308 -0
  105. package/dist/input/index.d.mts +14 -0
  106. package/dist/input/index.d.ts +14 -0
  107. package/dist/input/index.js +75 -0
  108. package/dist/input/index.mjs +7 -0
  109. package/dist/label/index.d.mts +16 -0
  110. package/dist/label/index.d.ts +16 -0
  111. package/dist/label/index.js +64 -0
  112. package/dist/label/index.mjs +7 -0
  113. package/dist/popover/index.d.mts +11 -0
  114. package/dist/popover/index.d.ts +11 -0
  115. package/dist/popover/index.js +72 -0
  116. package/dist/popover/index.mjs +11 -0
  117. package/dist/progress/index.d.mts +27 -0
  118. package/dist/progress/index.d.ts +27 -0
  119. package/dist/progress/index.js +122 -0
  120. package/dist/progress/index.mjs +11 -0
  121. package/dist/radio-group/index.d.mts +9 -0
  122. package/dist/radio-group/index.d.ts +9 -0
  123. package/dist/radio-group/index.js +89 -0
  124. package/dist/radio-group/index.mjs +9 -0
  125. package/dist/scroll-area/index.d.mts +9 -0
  126. package/dist/scroll-area/index.d.ts +9 -0
  127. package/dist/scroll-area/index.js +83 -0
  128. package/dist/scroll-area/index.mjs +9 -0
  129. package/dist/select/index.d.mts +21 -0
  130. package/dist/select/index.d.ts +21 -0
  131. package/dist/select/index.js +190 -0
  132. package/dist/select/index.mjs +21 -0
  133. package/dist/separator/index.d.mts +13 -0
  134. package/dist/separator/index.d.ts +13 -0
  135. package/dist/separator/index.js +68 -0
  136. package/dist/separator/index.mjs +7 -0
  137. package/dist/sheet/index.d.mts +43 -0
  138. package/dist/sheet/index.d.ts +43 -0
  139. package/dist/sheet/index.js +187 -0
  140. package/dist/sheet/index.mjs +25 -0
  141. package/dist/skeleton/index.d.mts +9 -0
  142. package/dist/skeleton/index.d.ts +9 -0
  143. package/dist/skeleton/index.js +66 -0
  144. package/dist/skeleton/index.mjs +7 -0
  145. package/dist/slider/index.d.mts +7 -0
  146. package/dist/slider/index.d.ts +7 -0
  147. package/dist/slider/index.js +67 -0
  148. package/dist/slider/index.mjs +7 -0
  149. package/dist/switch/index.d.mts +7 -0
  150. package/dist/switch/index.d.ts +7 -0
  151. package/dist/switch/index.js +76 -0
  152. package/dist/switch/index.mjs +7 -0
  153. package/dist/table/index.d.mts +20 -0
  154. package/dist/table/index.d.ts +20 -0
  155. package/dist/table/index.js +157 -0
  156. package/dist/table/index.mjs +21 -0
  157. package/dist/tabs/index.d.mts +13 -0
  158. package/dist/tabs/index.d.ts +13 -0
  159. package/dist/tabs/index.js +100 -0
  160. package/dist/tabs/index.mjs +13 -0
  161. package/dist/textarea/index.d.mts +6 -0
  162. package/dist/textarea/index.d.ts +6 -0
  163. package/dist/textarea/index.js +67 -0
  164. package/dist/textarea/index.mjs +7 -0
  165. package/dist/toast/index.d.mts +23 -0
  166. package/dist/toast/index.d.ts +23 -0
  167. package/dist/toast/index.js +153 -0
  168. package/dist/toast/index.mjs +19 -0
  169. package/dist/toggle/index.d.mts +16 -0
  170. package/dist/toggle/index.d.ts +16 -0
  171. package/dist/toggle/index.js +83 -0
  172. package/dist/toggle/index.mjs +9 -0
  173. package/dist/tooltip/index.d.mts +13 -0
  174. package/dist/tooltip/index.d.ts +13 -0
  175. package/dist/tooltip/index.js +79 -0
  176. package/dist/tooltip/index.mjs +13 -0
  177. package/package.json +206 -0
@@ -0,0 +1,44 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/badge/index.tsx
6
+ import * as React from "react";
7
+ import { cva } from "class-variance-authority";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var badgeVariants = cva(
10
+ "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2",
11
+ {
12
+ variants: {
13
+ variant: {
14
+ default: "border-transparent bg-[var(--axis-badge-default-bg)] text-[var(--axis-badge-default-text)]",
15
+ secondary: "border-transparent bg-[var(--axis-bg-muted)] text-[var(--axis-text-secondary)]",
16
+ destructive: "border-transparent bg-[var(--axis-badge-error-bg)] text-[var(--axis-badge-error-text)]",
17
+ success: "border-transparent bg-[var(--axis-badge-success-bg)] text-[var(--axis-badge-success-text)]",
18
+ warning: "border-transparent bg-[var(--axis-badge-warning-bg)] text-[var(--axis-badge-warning-text)]",
19
+ error: "border-transparent bg-[var(--axis-badge-error-bg)] text-[var(--axis-badge-error-text)]",
20
+ info: "border-transparent bg-[var(--axis-badge-info-bg)] text-[var(--axis-badge-info-text)]",
21
+ outline: "border-[var(--axis-border-default)] text-[var(--axis-text-primary)]"
22
+ }
23
+ },
24
+ defaultVariants: {
25
+ variant: "default"
26
+ }
27
+ }
28
+ );
29
+ var Badge = React.forwardRef(
30
+ ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
31
+ "div",
32
+ {
33
+ ref,
34
+ className: cn(badgeVariants({ variant }), className),
35
+ ...props
36
+ }
37
+ )
38
+ );
39
+ Badge.displayName = "Badge";
40
+
41
+ export {
42
+ badgeVariants,
43
+ Badge
44
+ };
@@ -0,0 +1,111 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/table/index.tsx
6
+ import * as React from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+ var Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
9
+ "table",
10
+ {
11
+ ref,
12
+ className: cn(
13
+ "w-full caption-bottom text-sm text-[var(--axis-text-primary)]",
14
+ className
15
+ ),
16
+ ...props
17
+ }
18
+ ) }));
19
+ Table.displayName = "Table";
20
+ var TableHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
21
+ "thead",
22
+ {
23
+ ref,
24
+ className: cn("[&_tr]:border-b", className),
25
+ ...props
26
+ }
27
+ ));
28
+ TableHeader.displayName = "TableHeader";
29
+ var TableBody = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
30
+ "tbody",
31
+ {
32
+ ref,
33
+ className: cn("[&_tr:last-child]:border-0", className),
34
+ ...props
35
+ }
36
+ ));
37
+ TableBody.displayName = "TableBody";
38
+ var TableFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
39
+ "tfoot",
40
+ {
41
+ ref,
42
+ className: cn(
43
+ "border-t bg-[var(--axis-surface-secondary)] font-medium [&>tr]:last:border-b-0",
44
+ className
45
+ ),
46
+ ...props
47
+ }
48
+ ));
49
+ TableFooter.displayName = "TableFooter";
50
+ var TableRow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
51
+ "tr",
52
+ {
53
+ ref,
54
+ className: cn(
55
+ "border-b border-[var(--axis-border-default)] transition-colors",
56
+ "hover:bg-[var(--axis-surface-secondary)]",
57
+ "data-[state=selected]:bg-[var(--axis-surface-tertiary)]",
58
+ className
59
+ ),
60
+ ...props
61
+ }
62
+ ));
63
+ TableRow.displayName = "TableRow";
64
+ var TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
65
+ "th",
66
+ {
67
+ ref,
68
+ className: cn(
69
+ "h-12 px-4 text-left align-middle font-medium text-[var(--axis-text-secondary)]",
70
+ "[&:has([role=checkbox])]:pr-0",
71
+ className
72
+ ),
73
+ ...props
74
+ }
75
+ ));
76
+ TableHead.displayName = "TableHead";
77
+ var TableCell = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
78
+ "td",
79
+ {
80
+ ref,
81
+ className: cn(
82
+ "p-4 align-middle [&:has([role=checkbox])]:pr-0",
83
+ className
84
+ ),
85
+ ...props
86
+ }
87
+ ));
88
+ TableCell.displayName = "TableCell";
89
+ var TableCaption = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
90
+ "caption",
91
+ {
92
+ ref,
93
+ className: cn(
94
+ "mt-4 text-sm text-[var(--axis-text-secondary)]",
95
+ className
96
+ ),
97
+ ...props
98
+ }
99
+ ));
100
+ TableCaption.displayName = "TableCaption";
101
+
102
+ export {
103
+ Table,
104
+ TableHeader,
105
+ TableBody,
106
+ TableFooter,
107
+ TableRow,
108
+ TableHead,
109
+ TableCell,
110
+ TableCaption
111
+ };
@@ -0,0 +1,123 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/command/index.tsx
6
+ import * as React from "react";
7
+ import { Command as CommandPrimitive } from "cmdk";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
10
+ CommandPrimitive,
11
+ {
12
+ ref,
13
+ className: cn(
14
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-[var(--axis-surface-primary)] text-[var(--axis-text-primary)]",
15
+ className
16
+ ),
17
+ ...props
18
+ }
19
+ ));
20
+ Command.displayName = "Command";
21
+ var CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b border-[var(--axis-border-default)] px-3", children: [
22
+ /* @__PURE__ */ jsxs(
23
+ "svg",
24
+ {
25
+ xmlns: "http://www.w3.org/2000/svg",
26
+ width: "16",
27
+ height: "16",
28
+ viewBox: "0 0 24 24",
29
+ fill: "none",
30
+ stroke: "currentColor",
31
+ strokeWidth: "2",
32
+ strokeLinecap: "round",
33
+ strokeLinejoin: "round",
34
+ className: "mr-2 h-4 w-4 shrink-0 opacity-50",
35
+ children: [
36
+ /* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
37
+ /* @__PURE__ */ jsx("path", { d: "m21 21-4.3-4.3" })
38
+ ]
39
+ }
40
+ ),
41
+ /* @__PURE__ */ jsx(
42
+ CommandPrimitive.Input,
43
+ {
44
+ ref,
45
+ className: cn(
46
+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none",
47
+ "placeholder:text-[var(--axis-text-tertiary)]",
48
+ "disabled:cursor-not-allowed disabled:opacity-50",
49
+ className
50
+ ),
51
+ ...props
52
+ }
53
+ )
54
+ ] }));
55
+ CommandInput.displayName = "CommandInput";
56
+ var CommandList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
57
+ CommandPrimitive.List,
58
+ {
59
+ ref,
60
+ className: cn(
61
+ "max-h-[300px] overflow-y-auto overflow-x-hidden",
62
+ className
63
+ ),
64
+ ...props
65
+ }
66
+ ));
67
+ CommandList.displayName = "CommandList";
68
+ var CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(
69
+ CommandPrimitive.Empty,
70
+ {
71
+ ref,
72
+ className: "py-6 text-center text-sm text-[var(--axis-text-secondary)]",
73
+ ...props
74
+ }
75
+ ));
76
+ CommandEmpty.displayName = "CommandEmpty";
77
+ var CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
78
+ CommandPrimitive.Group,
79
+ {
80
+ ref,
81
+ className: cn(
82
+ "overflow-hidden p-1 text-[var(--axis-text-primary)]",
83
+ "[&_[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-[var(--axis-text-secondary)]",
84
+ className
85
+ ),
86
+ ...props
87
+ }
88
+ ));
89
+ CommandGroup.displayName = "CommandGroup";
90
+ var CommandSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
91
+ CommandPrimitive.Separator,
92
+ {
93
+ ref,
94
+ className: cn("-mx-1 h-px bg-[var(--axis-border-default)]", className),
95
+ ...props
96
+ }
97
+ ));
98
+ CommandSeparator.displayName = "CommandSeparator";
99
+ var CommandItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
100
+ CommandPrimitive.Item,
101
+ {
102
+ ref,
103
+ className: cn(
104
+ "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",
105
+ "data-[selected=true]:bg-[var(--axis-surface-secondary)] data-[selected=true]:text-[var(--axis-text-primary)]",
106
+ "data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
107
+ "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
108
+ className
109
+ ),
110
+ ...props
111
+ }
112
+ ));
113
+ CommandItem.displayName = "CommandItem";
114
+
115
+ export {
116
+ Command,
117
+ CommandInput,
118
+ CommandList,
119
+ CommandEmpty,
120
+ CommandGroup,
121
+ CommandSeparator,
122
+ CommandItem
123
+ };
@@ -0,0 +1,144 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/select/index.tsx
6
+ import * as React from "react";
7
+ import * as SelectPrimitive from "@radix-ui/react-select";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var Select = SelectPrimitive.Root;
10
+ var SelectGroup = SelectPrimitive.Group;
11
+ var SelectValue = SelectPrimitive.Value;
12
+ var SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
13
+ SelectPrimitive.Trigger,
14
+ {
15
+ ref,
16
+ className: cn(
17
+ "flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm",
18
+ "bg-[var(--axis-input-bg-default)] border-[var(--axis-input-border-default)]",
19
+ "placeholder:text-[var(--axis-input-text-placeholder)]",
20
+ "hover:border-[var(--axis-input-border-hover)]",
21
+ "focus:outline-none focus:ring-2 focus:ring-[var(--axis-input-border-focus)] focus:ring-offset-2",
22
+ "disabled:cursor-not-allowed disabled:opacity-50",
23
+ "[&>span]:line-clamp-1",
24
+ className
25
+ ),
26
+ ...props,
27
+ children: [
28
+ children,
29
+ /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(
30
+ "svg",
31
+ {
32
+ className: "h-4 w-4 opacity-50",
33
+ fill: "none",
34
+ stroke: "currentColor",
35
+ viewBox: "0 0 24 24",
36
+ children: /* @__PURE__ */ jsx(
37
+ "path",
38
+ {
39
+ strokeLinecap: "round",
40
+ strokeLinejoin: "round",
41
+ strokeWidth: 2,
42
+ d: "M19 9l-7 7-7-7"
43
+ }
44
+ )
45
+ }
46
+ ) })
47
+ ]
48
+ }
49
+ ));
50
+ SelectTrigger.displayName = "SelectTrigger";
51
+ var SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx(
52
+ SelectPrimitive.Content,
53
+ {
54
+ ref,
55
+ className: cn(
56
+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",
57
+ "bg-[var(--axis-surface-default)] border-[var(--axis-border-default)]",
58
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
59
+ position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
60
+ className
61
+ ),
62
+ position,
63
+ ...props,
64
+ children: /* @__PURE__ */ jsx(
65
+ SelectPrimitive.Viewport,
66
+ {
67
+ className: cn(
68
+ "p-1",
69
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
70
+ ),
71
+ children
72
+ }
73
+ )
74
+ }
75
+ ) }));
76
+ SelectContent.displayName = "SelectContent";
77
+ var SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
78
+ SelectPrimitive.Label,
79
+ {
80
+ ref,
81
+ className: cn(
82
+ "py-1.5 pl-8 pr-2 text-sm font-semibold text-[var(--axis-text-secondary)]",
83
+ className
84
+ ),
85
+ ...props
86
+ }
87
+ ));
88
+ SelectLabel.displayName = "SelectLabel";
89
+ var SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
90
+ SelectPrimitive.Item,
91
+ {
92
+ ref,
93
+ className: cn(
94
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
95
+ "text-[var(--axis-text-primary)]",
96
+ "focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
97
+ "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
98
+ className
99
+ ),
100
+ ...props,
101
+ children: [
102
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(
103
+ "svg",
104
+ {
105
+ className: "h-4 w-4",
106
+ fill: "none",
107
+ stroke: "currentColor",
108
+ viewBox: "0 0 24 24",
109
+ children: /* @__PURE__ */ jsx(
110
+ "path",
111
+ {
112
+ strokeLinecap: "round",
113
+ strokeLinejoin: "round",
114
+ strokeWidth: 2,
115
+ d: "M5 13l4 4L19 7"
116
+ }
117
+ )
118
+ }
119
+ ) }) }),
120
+ /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
121
+ ]
122
+ }
123
+ ));
124
+ SelectItem.displayName = "SelectItem";
125
+ var SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
126
+ SelectPrimitive.Separator,
127
+ {
128
+ ref,
129
+ className: cn("-mx-1 my-1 h-px bg-[var(--axis-border-default)]", className),
130
+ ...props
131
+ }
132
+ ));
133
+ SelectSeparator.displayName = "SelectSeparator";
134
+
135
+ export {
136
+ Select,
137
+ SelectGroup,
138
+ SelectValue,
139
+ SelectTrigger,
140
+ SelectContent,
141
+ SelectLabel,
142
+ SelectItem,
143
+ SelectSeparator
144
+ };
@@ -0,0 +1,81 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/progress/index.tsx
6
+ import * as React from "react";
7
+ import { cva } from "class-variance-authority";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var progressVariants = cva(
10
+ "relative h-2 w-full overflow-hidden rounded-full bg-[var(--axis-surface-tertiary)]",
11
+ {
12
+ variants: {
13
+ size: {
14
+ sm: "h-1",
15
+ default: "h-2",
16
+ lg: "h-3"
17
+ }
18
+ },
19
+ defaultVariants: {
20
+ size: "default"
21
+ }
22
+ }
23
+ );
24
+ var progressIndicatorVariants = cva(
25
+ "h-full w-full flex-1 transition-all duration-300 ease-in-out",
26
+ {
27
+ variants: {
28
+ variant: {
29
+ default: "bg-[var(--axis-brand-500)]",
30
+ success: "bg-[var(--axis-green-500)]",
31
+ warning: "bg-[var(--axis-yellow-500)]",
32
+ destructive: "bg-[var(--axis-red-500)]"
33
+ }
34
+ },
35
+ defaultVariants: {
36
+ variant: "default"
37
+ }
38
+ }
39
+ );
40
+ var Progress = React.forwardRef(
41
+ ({
42
+ className,
43
+ value = 0,
44
+ max = 100,
45
+ size,
46
+ variant,
47
+ indeterminate = false,
48
+ ...props
49
+ }, ref) => {
50
+ const percentage = Math.min(Math.max(value / max * 100, 0), 100);
51
+ return /* @__PURE__ */ jsx(
52
+ "div",
53
+ {
54
+ ref,
55
+ role: "progressbar",
56
+ "aria-valuemin": 0,
57
+ "aria-valuemax": max,
58
+ "aria-valuenow": indeterminate ? void 0 : value,
59
+ className: cn(progressVariants({ size }), className),
60
+ ...props,
61
+ children: /* @__PURE__ */ jsx(
62
+ "div",
63
+ {
64
+ className: cn(
65
+ progressIndicatorVariants({ variant }),
66
+ indeterminate && "animate-progress-indeterminate"
67
+ ),
68
+ style: indeterminate ? void 0 : { transform: `translateX(-${100 - percentage}%)` }
69
+ }
70
+ )
71
+ }
72
+ );
73
+ }
74
+ );
75
+ Progress.displayName = "Progress";
76
+
77
+ export {
78
+ progressVariants,
79
+ progressIndicatorVariants,
80
+ Progress
81
+ };
@@ -0,0 +1,31 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/popover/index.tsx
6
+ import * as React from "react";
7
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var Popover = PopoverPrimitive.Root;
10
+ var PopoverTrigger = PopoverPrimitive.Trigger;
11
+ var PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
12
+ PopoverPrimitive.Content,
13
+ {
14
+ ref,
15
+ align,
16
+ sideOffset,
17
+ className: cn(
18
+ "z-50 w-72 rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-primary)] p-4 text-[var(--axis-text-primary)] shadow-md outline-none",
19
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
20
+ className
21
+ ),
22
+ ...props
23
+ }
24
+ ) }));
25
+ PopoverContent.displayName = "PopoverContent";
26
+
27
+ export {
28
+ Popover,
29
+ PopoverTrigger,
30
+ PopoverContent
31
+ };
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
3
+
4
+ /** 콘텐츠를 펼치거나 접을 수 있는 접이식 루트 컴포넌트 */
5
+ declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
6
+ /** 접이식 영역의 펼침/접힘을 토글하는 트리거 */
7
+ declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
+ /** 접이식 영역의 펼쳐지는 콘텐츠 */
9
+ declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
10
+
11
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger };
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
3
+
4
+ /** 콘텐츠를 펼치거나 접을 수 있는 접이식 루트 컴포넌트 */
5
+ declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
6
+ /** 접이식 영역의 펼침/접힘을 토글하는 트리거 */
7
+ declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
+ /** 접이식 영역의 펼쳐지는 콘텐츠 */
9
+ declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
10
+
11
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/collapsible/index.tsx
31
+ var collapsible_exports = {};
32
+ __export(collapsible_exports, {
33
+ Collapsible: () => Collapsible,
34
+ CollapsibleContent: () => CollapsibleContent,
35
+ CollapsibleTrigger: () => CollapsibleTrigger
36
+ });
37
+ module.exports = __toCommonJS(collapsible_exports);
38
+ var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
39
+ var Collapsible = CollapsiblePrimitive.Root;
40
+ var CollapsibleTrigger = CollapsiblePrimitive.Trigger;
41
+ var CollapsibleContent = CollapsiblePrimitive.Content;
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ Collapsible,
45
+ CollapsibleContent,
46
+ CollapsibleTrigger
47
+ });
@@ -0,0 +1,10 @@
1
+ import {
2
+ Collapsible,
3
+ CollapsibleContent,
4
+ CollapsibleTrigger
5
+ } from "../chunk-3N6NG7VT.mjs";
6
+ export {
7
+ Collapsible,
8
+ CollapsibleContent,
9
+ CollapsibleTrigger
10
+ };