@axis-ds/ui-react 1.1.2 → 1.2.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 (41) hide show
  1. package/LICENSE +21 -0
  2. package/dist/alert/index.d.mts +1 -1
  3. package/dist/alert/index.d.ts +1 -1
  4. package/dist/avatar/index.d.mts +1 -1
  5. package/dist/avatar/index.d.ts +1 -1
  6. package/dist/badge/index.d.mts +1 -1
  7. package/dist/badge/index.d.ts +1 -1
  8. package/dist/button/index.d.mts +2 -2
  9. package/dist/button/index.d.ts +2 -2
  10. package/dist/chunk-S7LWOK76.mjs +42 -0
  11. package/dist/index.js +29 -15
  12. package/dist/index.mjs +26 -26
  13. package/dist/progress/index.d.mts +2 -2
  14. package/dist/progress/index.d.ts +2 -2
  15. package/dist/slider/index.js +29 -15
  16. package/dist/slider/index.mjs +1 -1
  17. package/dist/toast/index.d.mts +1 -1
  18. package/dist/toast/index.d.ts +1 -1
  19. package/dist/toggle/index.d.mts +2 -2
  20. package/dist/toggle/index.d.ts +2 -2
  21. package/package.json +134 -99
  22. package/dist/chunk-3I222KOY.mjs +0 -123
  23. package/dist/chunk-54Y3KUM5.mjs +0 -28
  24. package/dist/chunk-7OPZAWBW.mjs +0 -58
  25. package/dist/chunk-A5FJHFJQ.mjs +0 -210
  26. package/dist/chunk-APUPJHAQ.mjs +0 -43
  27. package/dist/chunk-AUXVXNU2.mjs +0 -105
  28. package/dist/chunk-B2GWR74O.mjs +0 -144
  29. package/dist/chunk-CTWUJDKA.mjs +0 -49
  30. package/dist/chunk-EJNQRWUO.mjs +0 -29
  31. package/dist/chunk-F6RLUX3E.mjs +0 -37
  32. package/dist/chunk-HYW3HTBA.mjs +0 -31
  33. package/dist/chunk-IOOOCHIG.mjs +0 -49
  34. package/dist/chunk-JJY2MCTX.mjs +0 -25
  35. package/dist/chunk-JQV5IP5Z.mjs +0 -28
  36. package/dist/chunk-NFFXJB2O.mjs +0 -11
  37. package/dist/chunk-OIQGWWAS.mjs +0 -42
  38. package/dist/chunk-PUERRSNI.mjs +0 -37
  39. package/dist/chunk-Q4WL74ZY.mjs +0 -43
  40. package/dist/chunk-RBVNJKEQ.mjs +0 -210
  41. package/dist/chunk-SPUFU4HC.mjs +0 -139
@@ -1,210 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-PJO7WJ4G.mjs";
4
-
5
- // src/dropdown-menu/index.tsx
6
- import * as React from "react";
7
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- var DropdownMenu = DropdownMenuPrimitive.Root;
10
- var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
11
- var DropdownMenuGroup = DropdownMenuPrimitive.Group;
12
- var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
13
- var DropdownMenuSub = DropdownMenuPrimitive.Sub;
14
- var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
15
- var DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
16
- DropdownMenuPrimitive.SubTrigger,
17
- {
18
- ref,
19
- className: cn(
20
- "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none",
21
- "focus:bg-[var(--axis-surface-secondary)]",
22
- "data-[state=open]:bg-[var(--axis-surface-secondary)]",
23
- "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
24
- inset && "pl-8",
25
- className
26
- ),
27
- ...props,
28
- children: [
29
- children,
30
- /* @__PURE__ */ jsx(
31
- "svg",
32
- {
33
- xmlns: "http://www.w3.org/2000/svg",
34
- width: "16",
35
- height: "16",
36
- viewBox: "0 0 24 24",
37
- fill: "none",
38
- stroke: "currentColor",
39
- strokeWidth: "2",
40
- strokeLinecap: "round",
41
- strokeLinejoin: "round",
42
- className: "ml-auto",
43
- children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
44
- }
45
- )
46
- ]
47
- }
48
- ));
49
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
50
- var DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
51
- DropdownMenuPrimitive.SubContent,
52
- {
53
- ref,
54
- className: cn(
55
- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-primary)] p-1 text-[var(--axis-text-primary)] shadow-lg",
56
- "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",
57
- className
58
- ),
59
- ...props
60
- }
61
- ));
62
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
63
- var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
64
- DropdownMenuPrimitive.Content,
65
- {
66
- ref,
67
- sideOffset,
68
- className: cn(
69
- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-primary)] p-1 text-[var(--axis-text-primary)] shadow-md",
70
- "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",
71
- className
72
- ),
73
- ...props
74
- }
75
- ) }));
76
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
77
- var DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
78
- DropdownMenuPrimitive.Item,
79
- {
80
- ref,
81
- className: cn(
82
- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors",
83
- "focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
84
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
85
- "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
86
- inset && "pl-8",
87
- className
88
- ),
89
- ...props
90
- }
91
- ));
92
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
93
- var DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
94
- DropdownMenuPrimitive.CheckboxItem,
95
- {
96
- ref,
97
- className: cn(
98
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors",
99
- "focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
100
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
101
- className
102
- ),
103
- checked,
104
- ...props,
105
- children: [
106
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(
107
- "svg",
108
- {
109
- xmlns: "http://www.w3.org/2000/svg",
110
- width: "16",
111
- height: "16",
112
- viewBox: "0 0 24 24",
113
- fill: "none",
114
- stroke: "currentColor",
115
- strokeWidth: "2",
116
- strokeLinecap: "round",
117
- strokeLinejoin: "round",
118
- children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
119
- }
120
- ) }) }),
121
- children
122
- ]
123
- }
124
- ));
125
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
126
- var DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
127
- DropdownMenuPrimitive.RadioItem,
128
- {
129
- ref,
130
- className: cn(
131
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors",
132
- "focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
133
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
134
- className
135
- ),
136
- ...props,
137
- children: [
138
- /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(
139
- "svg",
140
- {
141
- xmlns: "http://www.w3.org/2000/svg",
142
- width: "8",
143
- height: "8",
144
- viewBox: "0 0 8 8",
145
- fill: "currentColor",
146
- children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "4" })
147
- }
148
- ) }) }),
149
- children
150
- ]
151
- }
152
- ));
153
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
154
- var DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
155
- DropdownMenuPrimitive.Label,
156
- {
157
- ref,
158
- className: cn(
159
- "px-2 py-1.5 text-sm font-semibold",
160
- inset && "pl-8",
161
- className
162
- ),
163
- ...props
164
- }
165
- ));
166
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
167
- var DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
168
- DropdownMenuPrimitive.Separator,
169
- {
170
- ref,
171
- className: cn(
172
- "-mx-1 my-1 h-px bg-[var(--axis-border-default)]",
173
- className
174
- ),
175
- ...props
176
- }
177
- ));
178
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
179
- var DropdownMenuShortcut = ({
180
- className,
181
- ...props
182
- }) => /* @__PURE__ */ jsx(
183
- "span",
184
- {
185
- className: cn(
186
- "ml-auto text-xs tracking-widest text-[var(--axis-text-tertiary)]",
187
- className
188
- ),
189
- ...props
190
- }
191
- );
192
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
193
-
194
- export {
195
- DropdownMenu,
196
- DropdownMenuTrigger,
197
- DropdownMenuGroup,
198
- DropdownMenuPortal,
199
- DropdownMenuSub,
200
- DropdownMenuRadioGroup,
201
- DropdownMenuSubTrigger,
202
- DropdownMenuSubContent,
203
- DropdownMenuContent,
204
- DropdownMenuItem,
205
- DropdownMenuCheckboxItem,
206
- DropdownMenuRadioItem,
207
- DropdownMenuLabel,
208
- DropdownMenuSeparator,
209
- DropdownMenuShortcut
210
- };
@@ -1,43 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-PJO7WJ4G.mjs";
4
-
5
- // src/toggle/index.tsx
6
- import * as React from "react";
7
- import * as TogglePrimitive from "@radix-ui/react-toggle";
8
- import { cva } from "class-variance-authority";
9
- import { jsx } from "react/jsx-runtime";
10
- var toggleVariants = cva(
11
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-[var(--axis-surface-primary)] transition-colors hover:bg-[var(--axis-surface-secondary)] hover:text-[var(--axis-text-secondary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-ring)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-[var(--axis-surface-secondary)] data-[state=on]:text-[var(--axis-text-primary)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
12
- {
13
- variants: {
14
- variant: {
15
- default: "bg-transparent",
16
- outline: "border border-[var(--axis-border-default)] bg-transparent hover:bg-[var(--axis-surface-secondary)] hover:text-[var(--axis-text-primary)]"
17
- },
18
- size: {
19
- default: "h-10 px-3 min-w-10",
20
- sm: "h-9 px-2.5 min-w-9",
21
- lg: "h-11 px-5 min-w-11"
22
- }
23
- },
24
- defaultVariants: {
25
- variant: "default",
26
- size: "default"
27
- }
28
- }
29
- );
30
- var Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
31
- TogglePrimitive.Root,
32
- {
33
- ref,
34
- className: cn(toggleVariants({ variant, size, className })),
35
- ...props
36
- }
37
- ));
38
- Toggle.displayName = TogglePrimitive.Root.displayName;
39
-
40
- export {
41
- toggleVariants,
42
- Toggle
43
- };
@@ -1,105 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-PJO7WJ4G.mjs";
4
-
5
- // src/dialog/index.tsx
6
- import * as React from "react";
7
- import * as DialogPrimitive from "@radix-ui/react-dialog";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- var Dialog = DialogPrimitive.Root;
10
- var DialogTrigger = DialogPrimitive.Trigger;
11
- var DialogPortal = DialogPrimitive.Portal;
12
- var DialogClose = DialogPrimitive.Close;
13
- var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
14
- DialogPrimitive.Overlay,
15
- {
16
- ref,
17
- className: cn(
18
- "fixed inset-0 z-50 bg-[var(--axis-dialog-overlay-bg)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
19
- className
20
- ),
21
- ...props
22
- }
23
- ));
24
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
25
- var DialogContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
26
- /* @__PURE__ */ jsx(DialogOverlay, {}),
27
- /* @__PURE__ */ jsx(
28
- DialogPrimitive.Content,
29
- {
30
- ref,
31
- className: cn(
32
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200",
33
- "bg-[var(--axis-dialog-content-bg)] border-[var(--axis-dialog-content-border)]",
34
- "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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
35
- "sm:rounded-lg",
36
- className
37
- ),
38
- ...props,
39
- children
40
- }
41
- )
42
- ] }));
43
- DialogContent.displayName = DialogPrimitive.Content.displayName;
44
- var DialogHeader = ({
45
- className,
46
- ...props
47
- }) => /* @__PURE__ */ jsx(
48
- "div",
49
- {
50
- className: cn(
51
- "flex flex-col space-y-1.5 text-center sm:text-left",
52
- className
53
- ),
54
- ...props
55
- }
56
- );
57
- DialogHeader.displayName = "DialogHeader";
58
- var DialogFooter = ({
59
- className,
60
- ...props
61
- }) => /* @__PURE__ */ jsx(
62
- "div",
63
- {
64
- className: cn(
65
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
66
- className
67
- ),
68
- ...props
69
- }
70
- );
71
- DialogFooter.displayName = "DialogFooter";
72
- var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
73
- DialogPrimitive.Title,
74
- {
75
- ref,
76
- className: cn(
77
- "text-lg font-semibold leading-none tracking-tight text-[var(--axis-text-primary)]",
78
- className
79
- ),
80
- ...props
81
- }
82
- ));
83
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
84
- var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
85
- DialogPrimitive.Description,
86
- {
87
- ref,
88
- className: cn("text-sm text-[var(--axis-text-secondary)]", className),
89
- ...props
90
- }
91
- ));
92
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
93
-
94
- export {
95
- Dialog,
96
- DialogTrigger,
97
- DialogPortal,
98
- DialogClose,
99
- DialogOverlay,
100
- DialogContent,
101
- DialogHeader,
102
- DialogFooter,
103
- DialogTitle,
104
- DialogDescription
105
- };
@@ -1,144 +0,0 @@
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 = SelectPrimitive.Trigger.displayName;
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 = SelectPrimitive.Content.displayName;
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 = SelectPrimitive.Label.displayName;
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 = SelectPrimitive.Item.displayName;
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 = SelectPrimitive.Separator.displayName;
134
-
135
- export {
136
- Select,
137
- SelectGroup,
138
- SelectValue,
139
- SelectTrigger,
140
- SelectContent,
141
- SelectLabel,
142
- SelectItem,
143
- SelectSeparator
144
- };
@@ -1,49 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-PJO7WJ4G.mjs";
4
-
5
- // src/radio-group/index.tsx
6
- import * as React from "react";
7
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
8
- import { jsx } from "react/jsx-runtime";
9
- var RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
10
- RadioGroupPrimitive.Root,
11
- {
12
- className: cn("grid gap-2", className),
13
- ...props,
14
- ref
15
- }
16
- ));
17
- RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
18
- var RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
19
- RadioGroupPrimitive.Item,
20
- {
21
- ref,
22
- className: cn(
23
- "aspect-square h-4 w-4 rounded-full border border-[var(--axis-border-default)]",
24
- "ring-offset-[var(--axis-surface-primary)]",
25
- "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-ring)] focus-visible:ring-offset-2",
26
- "disabled:cursor-not-allowed disabled:opacity-50",
27
- "data-[state=checked]:border-[var(--axis-interactive-primary)] data-[state=checked]:text-[var(--axis-interactive-primary)]",
28
- className
29
- ),
30
- ...props,
31
- children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
32
- "svg",
33
- {
34
- xmlns: "http://www.w3.org/2000/svg",
35
- width: "8",
36
- height: "8",
37
- viewBox: "0 0 8 8",
38
- fill: "currentColor",
39
- children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "4" })
40
- }
41
- ) })
42
- }
43
- ));
44
- RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
45
-
46
- export {
47
- RadioGroup,
48
- RadioGroupItem
49
- };
@@ -1,29 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-PJO7WJ4G.mjs";
4
-
5
- // src/separator/index.tsx
6
- import * as React from "react";
7
- import * as SeparatorPrimitive from "@radix-ui/react-separator";
8
- import { jsx } from "react/jsx-runtime";
9
- var Separator = React.forwardRef(
10
- ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
11
- SeparatorPrimitive.Root,
12
- {
13
- ref,
14
- decorative,
15
- orientation,
16
- className: cn(
17
- "shrink-0 bg-[var(--axis-border-default)]",
18
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
19
- className
20
- ),
21
- ...props
22
- }
23
- )
24
- );
25
- Separator.displayName = SeparatorPrimitive.Root.displayName;
26
-
27
- export {
28
- Separator
29
- };
@@ -1,37 +0,0 @@
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 = SwitchPrimitive.Root.displayName;
34
-
35
- export {
36
- Switch
37
- };
@@ -1,31 +0,0 @@
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 = PopoverPrimitive.Content.displayName;
26
-
27
- export {
28
- Popover,
29
- PopoverTrigger,
30
- PopoverContent
31
- };