@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,132 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/breadcrumb/index.tsx
6
+ import * as React from "react";
7
+ import { Slot } from "@radix-ui/react-slot";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var Breadcrumb = React.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
10
+ Breadcrumb.displayName = "Breadcrumb";
11
+ var BreadcrumbList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
12
+ "ol",
13
+ {
14
+ ref,
15
+ className: cn(
16
+ "flex flex-wrap items-center gap-1.5 break-words text-sm text-[var(--axis-text-secondary)] sm:gap-2.5",
17
+ className
18
+ ),
19
+ ...props
20
+ }
21
+ ));
22
+ BreadcrumbList.displayName = "BreadcrumbList";
23
+ var BreadcrumbItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
24
+ "li",
25
+ {
26
+ ref,
27
+ className: cn("inline-flex items-center gap-1.5", className),
28
+ ...props
29
+ }
30
+ ));
31
+ BreadcrumbItem.displayName = "BreadcrumbItem";
32
+ var BreadcrumbLink = React.forwardRef(({ asChild, className, ...props }, ref) => {
33
+ const Comp = asChild ? Slot : "a";
34
+ return /* @__PURE__ */ jsx(
35
+ Comp,
36
+ {
37
+ ref,
38
+ className: cn(
39
+ "transition-colors hover:text-[var(--axis-text-primary)]",
40
+ className
41
+ ),
42
+ ...props
43
+ }
44
+ );
45
+ });
46
+ BreadcrumbLink.displayName = "BreadcrumbLink";
47
+ var BreadcrumbPage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
48
+ "span",
49
+ {
50
+ ref,
51
+ role: "link",
52
+ "aria-disabled": "true",
53
+ "aria-current": "page",
54
+ className: cn("font-normal text-[var(--axis-text-primary)]", className),
55
+ ...props
56
+ }
57
+ ));
58
+ BreadcrumbPage.displayName = "BreadcrumbPage";
59
+ var BreadcrumbSeparator = ({
60
+ children,
61
+ className,
62
+ ...props
63
+ }) => /* @__PURE__ */ jsx(
64
+ "li",
65
+ {
66
+ role: "presentation",
67
+ "aria-hidden": "true",
68
+ className: cn("[&>svg]:h-3.5 [&>svg]:w-3.5", className),
69
+ ...props,
70
+ children: children ?? /* @__PURE__ */ jsx(
71
+ "svg",
72
+ {
73
+ xmlns: "http://www.w3.org/2000/svg",
74
+ width: "16",
75
+ height: "16",
76
+ viewBox: "0 0 24 24",
77
+ fill: "none",
78
+ stroke: "currentColor",
79
+ strokeWidth: "2",
80
+ strokeLinecap: "round",
81
+ strokeLinejoin: "round",
82
+ children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
83
+ }
84
+ )
85
+ }
86
+ );
87
+ BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
88
+ var BreadcrumbEllipsis = ({
89
+ className,
90
+ ...props
91
+ }) => /* @__PURE__ */ jsxs(
92
+ "span",
93
+ {
94
+ role: "presentation",
95
+ "aria-hidden": "true",
96
+ className: cn("flex h-9 w-9 items-center justify-center", className),
97
+ ...props,
98
+ children: [
99
+ /* @__PURE__ */ jsxs(
100
+ "svg",
101
+ {
102
+ xmlns: "http://www.w3.org/2000/svg",
103
+ width: "16",
104
+ height: "16",
105
+ viewBox: "0 0 24 24",
106
+ fill: "none",
107
+ stroke: "currentColor",
108
+ strokeWidth: "2",
109
+ strokeLinecap: "round",
110
+ strokeLinejoin: "round",
111
+ children: [
112
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "1" }),
113
+ /* @__PURE__ */ jsx("circle", { cx: "19", cy: "12", r: "1" }),
114
+ /* @__PURE__ */ jsx("circle", { cx: "5", cy: "12", r: "1" })
115
+ ]
116
+ }
117
+ ),
118
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
119
+ ]
120
+ }
121
+ );
122
+ BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
123
+
124
+ export {
125
+ Breadcrumb,
126
+ BreadcrumbList,
127
+ BreadcrumbItem,
128
+ BreadcrumbLink,
129
+ BreadcrumbPage,
130
+ BreadcrumbSeparator,
131
+ BreadcrumbEllipsis
132
+ };
@@ -0,0 +1,53 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/button/index.tsx
6
+ import * as React from "react";
7
+ import { Slot } from "@radix-ui/react-slot";
8
+ import { cva } from "class-variance-authority";
9
+ import { jsx } from "react/jsx-runtime";
10
+ var buttonVariants = cva(
11
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
12
+ {
13
+ variants: {
14
+ variant: {
15
+ default: "bg-[var(--axis-button-bg-default)] text-[var(--axis-button-text-default)] hover:bg-[var(--axis-button-bg-hover)] active:bg-[var(--axis-button-bg-active)] focus-visible:ring-[var(--axis-button-border-focus)]",
16
+ secondary: "bg-[var(--axis-button-secondary-bg-default)] text-[var(--axis-button-secondary-text-default)] hover:bg-[var(--axis-button-secondary-bg-hover)] active:bg-[var(--axis-button-secondary-bg-active)]",
17
+ ghost: "bg-[var(--axis-button-ghost-bg-default)] text-[var(--axis-button-ghost-text-default)] hover:bg-[var(--axis-button-ghost-bg-hover)] active:bg-[var(--axis-button-ghost-bg-active)]",
18
+ destructive: "bg-[var(--axis-button-destructive-bg-default)] text-[var(--axis-button-destructive-text-default)] hover:bg-[var(--axis-button-destructive-bg-hover)] active:bg-[var(--axis-button-destructive-bg-active)]",
19
+ outline: "border border-[var(--axis-border-default)] bg-transparent hover:bg-[var(--axis-surface-secondary)] text-[var(--axis-text-primary)]",
20
+ link: "text-[var(--axis-text-brand)] underline-offset-4 hover:underline"
21
+ },
22
+ size: {
23
+ sm: "h-8 px-3 text-xs",
24
+ default: "h-10 px-4 py-2",
25
+ lg: "h-12 px-6 text-base",
26
+ icon: "h-10 w-10"
27
+ }
28
+ },
29
+ defaultVariants: {
30
+ variant: "default",
31
+ size: "default"
32
+ }
33
+ }
34
+ );
35
+ var Button = React.forwardRef(
36
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
37
+ const Comp = asChild ? Slot : "button";
38
+ return /* @__PURE__ */ jsx(
39
+ Comp,
40
+ {
41
+ className: cn(buttonVariants({ variant, size, className })),
42
+ ref,
43
+ ...props
44
+ }
45
+ );
46
+ }
47
+ );
48
+ Button.displayName = "Button";
49
+
50
+ export {
51
+ buttonVariants,
52
+ Button
53
+ };
@@ -0,0 +1,58 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/tabs/index.tsx
6
+ import * as React from "react";
7
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var Tabs = TabsPrimitive.Root;
10
+ var TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
11
+ TabsPrimitive.List,
12
+ {
13
+ ref,
14
+ className: cn(
15
+ "inline-flex h-10 items-center justify-center rounded-md p-1",
16
+ "bg-[var(--axis-surface-secondary)] text-[var(--axis-text-secondary)]",
17
+ className
18
+ ),
19
+ ...props
20
+ }
21
+ ));
22
+ TabsList.displayName = "TabsList";
23
+ var TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
24
+ TabsPrimitive.Trigger,
25
+ {
26
+ ref,
27
+ className: cn(
28
+ "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all",
29
+ "ring-offset-[var(--axis-surface-default)]",
30
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
31
+ "disabled:pointer-events-none disabled:opacity-50",
32
+ "data-[state=active]:bg-[var(--axis-surface-default)] data-[state=active]:text-[var(--axis-text-primary)] data-[state=active]:shadow-sm",
33
+ className
34
+ ),
35
+ ...props
36
+ }
37
+ ));
38
+ TabsTrigger.displayName = "TabsTrigger";
39
+ var TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
40
+ TabsPrimitive.Content,
41
+ {
42
+ ref,
43
+ className: cn(
44
+ "mt-2 ring-offset-[var(--axis-surface-default)]",
45
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
46
+ className
47
+ ),
48
+ ...props
49
+ }
50
+ ));
51
+ TabsContent.displayName = "TabsContent";
52
+
53
+ export {
54
+ Tabs,
55
+ TabsList,
56
+ TabsTrigger,
57
+ TabsContent
58
+ };
@@ -0,0 +1,11 @@
1
+ // src/collapsible/index.tsx
2
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
3
+ var Collapsible = CollapsiblePrimitive.Root;
4
+ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
5
+ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
6
+
7
+ export {
8
+ Collapsible,
9
+ CollapsibleTrigger2 as CollapsibleTrigger,
10
+ CollapsibleContent2 as CollapsibleContent
11
+ };
@@ -0,0 +1,71 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/card/index.tsx
6
+ import * as React from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+ var Card = React.forwardRef(
9
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
10
+ "div",
11
+ {
12
+ ref,
13
+ className: cn(
14
+ "rounded-lg border bg-[var(--axis-card-bg-default)] border-[var(--axis-card-border-default)] shadow-sm",
15
+ className
16
+ ),
17
+ ...props
18
+ }
19
+ )
20
+ );
21
+ Card.displayName = "Card";
22
+ var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
23
+ "div",
24
+ {
25
+ ref,
26
+ className: cn("flex flex-col space-y-1.5 p-6", className),
27
+ ...props
28
+ }
29
+ ));
30
+ CardHeader.displayName = "CardHeader";
31
+ var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
32
+ "h3",
33
+ {
34
+ ref,
35
+ className: cn(
36
+ "text-2xl font-semibold leading-none tracking-tight text-[var(--axis-text-primary)]",
37
+ className
38
+ ),
39
+ ...props
40
+ }
41
+ ));
42
+ CardTitle.displayName = "CardTitle";
43
+ var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
44
+ "p",
45
+ {
46
+ ref,
47
+ className: cn("text-sm text-[var(--axis-text-secondary)]", className),
48
+ ...props
49
+ }
50
+ ));
51
+ CardDescription.displayName = "CardDescription";
52
+ var CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
53
+ CardContent.displayName = "CardContent";
54
+ var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
55
+ "div",
56
+ {
57
+ ref,
58
+ className: cn("flex items-center p-6 pt-0", className),
59
+ ...props
60
+ }
61
+ ));
62
+ CardFooter.displayName = "CardFooter";
63
+
64
+ export {
65
+ Card,
66
+ CardHeader,
67
+ CardTitle,
68
+ CardDescription,
69
+ CardContent,
70
+ CardFooter
71
+ };
@@ -0,0 +1,42 @@
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
+ success: "border-transparent bg-[var(--axis-badge-success-bg)] text-[var(--axis-badge-success-text)]",
16
+ warning: "border-transparent bg-[var(--axis-badge-warning-bg)] text-[var(--axis-badge-warning-text)]",
17
+ error: "border-transparent bg-[var(--axis-badge-error-bg)] text-[var(--axis-badge-error-text)]",
18
+ info: "border-transparent bg-[var(--axis-badge-info-bg)] text-[var(--axis-badge-info-text)]",
19
+ outline: "border-[var(--axis-border-default)] text-[var(--axis-text-primary)]"
20
+ }
21
+ },
22
+ defaultVariants: {
23
+ variant: "default"
24
+ }
25
+ }
26
+ );
27
+ var Badge = React.forwardRef(
28
+ ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
29
+ "div",
30
+ {
31
+ ref,
32
+ className: cn(badgeVariants({ variant }), className),
33
+ ...props
34
+ }
35
+ )
36
+ );
37
+ Badge.displayName = "Badge";
38
+
39
+ export {
40
+ badgeVariants,
41
+ Badge
42
+ };
@@ -0,0 +1,10 @@
1
+ // src/utils.ts
2
+ import { clsx } from "clsx";
3
+ import { twMerge } from "tailwind-merge";
4
+ function cn(...inputs) {
5
+ return twMerge(clsx(inputs));
6
+ }
7
+
8
+ export {
9
+ cn
10
+ };
@@ -0,0 +1,37 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/tooltip/index.tsx
6
+ import * as React from "react";
7
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var TooltipProvider = TooltipPrimitive.Provider;
10
+ var Tooltip = TooltipPrimitive.Root;
11
+ var TooltipTrigger = TooltipPrimitive.Trigger;
12
+ var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
13
+ TooltipPrimitive.Content,
14
+ {
15
+ ref,
16
+ sideOffset,
17
+ className: cn(
18
+ "z-50 overflow-hidden rounded-md bg-[var(--axis-surface-inverse)] px-3 py-1.5 text-xs text-[var(--axis-text-inverse)]",
19
+ "animate-in fade-in-0 zoom-in-95",
20
+ "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
21
+ "data-[side=bottom]:slide-in-from-top-2",
22
+ "data-[side=left]:slide-in-from-right-2",
23
+ "data-[side=right]:slide-in-from-left-2",
24
+ "data-[side=top]:slide-in-from-bottom-2",
25
+ className
26
+ ),
27
+ ...props
28
+ }
29
+ ) }));
30
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
31
+
32
+ export {
33
+ TooltipProvider,
34
+ Tooltip,
35
+ TooltipTrigger,
36
+ TooltipContent
37
+ };
@@ -0,0 +1,37 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/switch/index.tsx
6
+ import * as React from "react";
7
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
10
+ SwitchPrimitive.Root,
11
+ {
12
+ className: cn(
13
+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
14
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--axis-surface-primary)]",
15
+ "disabled:cursor-not-allowed disabled:opacity-50",
16
+ "data-[state=checked]:bg-[var(--axis-interactive-primary)]",
17
+ "data-[state=unchecked]:bg-[var(--axis-surface-tertiary)]",
18
+ className
19
+ ),
20
+ ...props,
21
+ ref,
22
+ children: /* @__PURE__ */ jsx(
23
+ SwitchPrimitive.Thumb,
24
+ {
25
+ className: cn(
26
+ "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform",
27
+ "data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
28
+ )
29
+ }
30
+ )
31
+ }
32
+ ));
33
+ Switch.displayName = "Switch";
34
+
35
+ export {
36
+ Switch
37
+ };
@@ -0,0 +1,43 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-PJO7WJ4G.mjs";
4
+
5
+ // src/scroll-area/index.tsx
6
+ import * as React from "react";
7
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
10
+ ScrollAreaPrimitive.Root,
11
+ {
12
+ ref,
13
+ className: cn("relative overflow-hidden", className),
14
+ ...props,
15
+ children: [
16
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
17
+ /* @__PURE__ */ jsx(ScrollBar, {}),
18
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
19
+ ]
20
+ }
21
+ ));
22
+ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
23
+ var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
24
+ ScrollAreaPrimitive.ScrollAreaScrollbar,
25
+ {
26
+ ref,
27
+ orientation,
28
+ className: cn(
29
+ "flex touch-none select-none transition-colors",
30
+ orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
31
+ orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
32
+ className
33
+ ),
34
+ ...props,
35
+ children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-[var(--axis-border-default)]" })
36
+ }
37
+ ));
38
+ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
39
+
40
+ export {
41
+ ScrollArea,
42
+ ScrollBar
43
+ };