@axis-ds/ui-react 1.4.0 → 1.5.1
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.
- package/README.md +46 -1
- package/dist/accordion/index.js +9 -27
- package/dist/accordion/index.mjs +58 -7
- package/dist/alert/index.js +9 -27
- package/dist/alert/index.mjs +54 -7
- package/dist/avatar/avatar.d.mts +24 -0
- package/dist/avatar/avatar.d.ts +24 -0
- package/dist/avatar/avatar.js +70 -0
- package/dist/{chunk-OQGMQL2A.mjs → avatar/avatar.mjs} +5 -26
- package/dist/avatar/index.d.mts +5 -26
- package/dist/avatar/index.d.ts +5 -26
- package/dist/avatar/index.js +4 -78
- package/dist/avatar/index.mjs +2 -5
- package/dist/avatar/variants.d.mts +14 -0
- package/dist/avatar/variants.d.ts +14 -0
- package/dist/avatar/variants.js +44 -0
- package/dist/avatar/variants.mjs +20 -0
- package/dist/badge/index.js +5 -23
- package/dist/badge/index.mjs +35 -5
- package/dist/breadcrumb/index.js +15 -33
- package/dist/breadcrumb/index.mjs +118 -10
- package/dist/button/index.js +5 -23
- package/dist/button/index.mjs +44 -5
- package/dist/card/index.js +13 -31
- package/dist/card/index.mjs +58 -9
- package/dist/checkbox/index.js +5 -23
- package/dist/checkbox/index.mjs +41 -4
- package/dist/collapsible/index.js +3 -5
- package/dist/collapsible/index.mjs +4 -5
- package/dist/command/index.d.mts +7 -7
- package/dist/command/index.d.ts +7 -7
- package/dist/command/index.js +16 -33
- package/dist/command/index.mjs +110 -10
- package/dist/dialog/index.js +18 -36
- package/dist/dialog/index.mjs +88 -13
- package/dist/dropdown-menu/index.js +26 -44
- package/dist/dropdown-menu/index.mjs +188 -18
- package/dist/index.d.mts +4 -10
- package/dist/index.d.ts +4 -10
- package/dist/index.js +153 -1907
- package/dist/index.mjs +105 -150
- package/dist/input/index.js +4 -22
- package/dist/input/index.mjs +28 -4
- package/dist/label/index.js +5 -23
- package/dist/label/index.mjs +17 -4
- package/dist/popover/index.js +6 -24
- package/dist/popover/index.mjs +21 -6
- package/dist/progress/index.js +7 -25
- package/dist/progress/index.mjs +71 -6
- package/dist/radio-group/index.js +6 -24
- package/dist/radio-group/index.mjs +40 -5
- package/dist/scroll-area/index.js +6 -24
- package/dist/scroll-area/index.mjs +34 -5
- package/dist/select/index.js +16 -34
- package/dist/select/index.mjs +129 -11
- package/dist/separator/index.js +4 -22
- package/dist/separator/index.mjs +21 -4
- package/dist/sheet/index.js +19 -37
- package/dist/sheet/index.mjs +122 -13
- package/dist/skeleton/index.js +4 -22
- package/dist/skeleton/index.mjs +19 -4
- package/dist/slider/index.js +4 -22
- package/dist/slider/index.mjs +34 -4
- package/dist/switch/index.js +5 -23
- package/dist/switch/index.mjs +29 -4
- package/dist/table/index.js +18 -36
- package/dist/table/index.mjs +96 -11
- package/dist/tabs/index.js +9 -27
- package/dist/tabs/index.mjs +47 -7
- package/dist/textarea/index.js +4 -22
- package/dist/textarea/index.mjs +20 -4
- package/dist/toast/index.js +16 -34
- package/dist/toast/index.mjs +94 -10
- package/dist/toggle/index.js +5 -23
- package/dist/toggle/index.mjs +34 -5
- package/dist/tooltip/index.js +7 -25
- package/dist/tooltip/index.mjs +26 -7
- package/dist/utils.d.mts +9 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.js +40 -0
- package/dist/{chunk-ZIF4PLK3.mjs → utils.mjs} +2 -4
- package/package.json +99 -5
- package/dist/chunk-22MWNPDF.mjs +0 -44
- package/dist/chunk-2OEPKE4D.mjs +0 -69
- package/dist/chunk-2XNUJNTG.mjs +0 -43
- package/dist/chunk-3N6NG7VT.mjs +0 -11
- package/dist/chunk-4I2F2NLP.mjs +0 -111
- package/dist/chunk-4PT43LON.mjs +0 -31
- package/dist/chunk-5NWFAQBM.mjs +0 -36
- package/dist/chunk-5Z2R3IHJ.mjs +0 -28
- package/dist/chunk-AY4B3RRN.mjs +0 -144
- package/dist/chunk-C5O47K7L.mjs +0 -71
- package/dist/chunk-CNU6645Y.mjs +0 -42
- package/dist/chunk-CY72AGI2.mjs +0 -105
- package/dist/chunk-DRFCNDVQ.mjs +0 -27
- package/dist/chunk-F2WSIT7F.mjs +0 -49
- package/dist/chunk-FZFREHAE.mjs +0 -139
- package/dist/chunk-HKYKDQ6C.mjs +0 -81
- package/dist/chunk-IS7NER3O.mjs +0 -37
- package/dist/chunk-MOBW7BKD.mjs +0 -49
- package/dist/chunk-PJX5UF3Y.mjs +0 -25
- package/dist/chunk-QXQWVRXN.mjs +0 -53
- package/dist/chunk-RFB4IABR.mjs +0 -108
- package/dist/chunk-SO2QSRGV.mjs +0 -58
- package/dist/chunk-TA62Q7YX.mjs +0 -37
- package/dist/chunk-TB33GTWS.mjs +0 -43
- package/dist/chunk-YI5OZRUB.mjs +0 -132
- package/dist/chunk-YZDRNV46.mjs +0 -210
- package/dist/chunk-Z4P43F5J.mjs +0 -65
- package/dist/chunk-Z65ZMFDH.mjs +0 -123
- package/dist/chunk-ZW6GY5PO.mjs +0 -29
package/dist/index.mjs
CHANGED
|
@@ -1,187 +1,142 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
TableCaption,
|
|
8
|
-
TableCell,
|
|
9
|
-
TableFooter,
|
|
10
|
-
TableHead,
|
|
11
|
-
TableHeader,
|
|
12
|
-
TableRow
|
|
13
|
-
} from "./chunk-4I2F2NLP.mjs";
|
|
14
|
-
import {
|
|
15
|
-
Tabs,
|
|
16
|
-
TabsContent,
|
|
17
|
-
TabsList,
|
|
18
|
-
TabsTrigger
|
|
19
|
-
} from "./chunk-SO2QSRGV.mjs";
|
|
20
|
-
import {
|
|
21
|
-
Textarea
|
|
22
|
-
} from "./chunk-5Z2R3IHJ.mjs";
|
|
23
|
-
import {
|
|
24
|
-
Toast,
|
|
25
|
-
ToastAction,
|
|
26
|
-
ToastClose,
|
|
27
|
-
ToastDescription,
|
|
28
|
-
ToastProvider,
|
|
29
|
-
ToastTitle,
|
|
30
|
-
ToastViewport
|
|
31
|
-
} from "./chunk-RFB4IABR.mjs";
|
|
32
|
-
import {
|
|
33
|
-
Toggle,
|
|
34
|
-
toggleVariants
|
|
35
|
-
} from "./chunk-TB33GTWS.mjs";
|
|
36
|
-
import {
|
|
37
|
-
Tooltip,
|
|
38
|
-
TooltipContent,
|
|
39
|
-
TooltipProvider,
|
|
40
|
-
TooltipTrigger
|
|
41
|
-
} from "./chunk-IS7NER3O.mjs";
|
|
42
|
-
import {
|
|
43
|
-
Progress,
|
|
44
|
-
progressIndicatorVariants,
|
|
45
|
-
progressVariants
|
|
46
|
-
} from "./chunk-HKYKDQ6C.mjs";
|
|
47
|
-
import {
|
|
48
|
-
RadioGroup,
|
|
49
|
-
RadioGroupItem
|
|
50
|
-
} from "./chunk-F2WSIT7F.mjs";
|
|
51
|
-
import {
|
|
52
|
-
ScrollArea,
|
|
53
|
-
ScrollBar
|
|
54
|
-
} from "./chunk-2XNUJNTG.mjs";
|
|
1
|
+
import { cn } from "./utils.mjs";
|
|
2
|
+
import { Button, buttonVariants } from "./button/index.mjs";
|
|
3
|
+
import { Input } from "./input/index.mjs";
|
|
4
|
+
import { Label } from "./label/index.mjs";
|
|
5
|
+
import { Checkbox } from "./checkbox/index.mjs";
|
|
6
|
+
import { RadioGroup, RadioGroupItem } from "./radio-group/index.mjs";
|
|
55
7
|
import {
|
|
56
8
|
Select,
|
|
9
|
+
SelectTrigger,
|
|
57
10
|
SelectContent,
|
|
58
|
-
SelectGroup,
|
|
59
11
|
SelectItem,
|
|
12
|
+
SelectValue,
|
|
13
|
+
SelectGroup,
|
|
60
14
|
SelectLabel,
|
|
61
|
-
SelectSeparator
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
} from "./
|
|
65
|
-
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-ZW6GY5PO.mjs";
|
|
15
|
+
SelectSeparator
|
|
16
|
+
} from "./select/index.mjs";
|
|
17
|
+
import { Slider } from "./slider/index.mjs";
|
|
18
|
+
import { Switch } from "./switch/index.mjs";
|
|
19
|
+
import { Textarea } from "./textarea/index.mjs";
|
|
20
|
+
import { Toggle, toggleVariants } from "./toggle/index.mjs";
|
|
68
21
|
import {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
SheetHeader,
|
|
75
|
-
SheetOverlay,
|
|
76
|
-
SheetPortal,
|
|
77
|
-
SheetTitle,
|
|
78
|
-
SheetTrigger
|
|
79
|
-
} from "./chunk-FZFREHAE.mjs";
|
|
80
|
-
import {
|
|
81
|
-
Skeleton
|
|
82
|
-
} from "./chunk-DRFCNDVQ.mjs";
|
|
83
|
-
import {
|
|
84
|
-
Slider
|
|
85
|
-
} from "./chunk-CNU6645Y.mjs";
|
|
22
|
+
Accordion,
|
|
23
|
+
AccordionItem,
|
|
24
|
+
AccordionTrigger,
|
|
25
|
+
AccordionContent
|
|
26
|
+
} from "./accordion/index.mjs";
|
|
86
27
|
import {
|
|
87
|
-
|
|
88
|
-
|
|
28
|
+
Card,
|
|
29
|
+
CardHeader,
|
|
30
|
+
CardTitle,
|
|
31
|
+
CardDescription,
|
|
32
|
+
CardContent,
|
|
33
|
+
CardFooter
|
|
34
|
+
} from "./card/index.mjs";
|
|
89
35
|
import {
|
|
90
36
|
Collapsible,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
} from "./
|
|
37
|
+
CollapsibleTrigger,
|
|
38
|
+
CollapsibleContent
|
|
39
|
+
} from "./collapsible/index.mjs";
|
|
40
|
+
import { Separator } from "./separator/index.mjs";
|
|
94
41
|
import {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
42
|
+
Table,
|
|
43
|
+
TableHeader,
|
|
44
|
+
TableBody,
|
|
45
|
+
TableFooter,
|
|
46
|
+
TableRow,
|
|
47
|
+
TableHead,
|
|
48
|
+
TableCell,
|
|
49
|
+
TableCaption
|
|
50
|
+
} from "./table/index.mjs";
|
|
51
|
+
import { Tabs, TabsList, TabsTrigger, TabsContent } from "./tabs/index.mjs";
|
|
52
|
+
import {
|
|
53
|
+
Breadcrumb,
|
|
54
|
+
BreadcrumbList,
|
|
55
|
+
BreadcrumbItem,
|
|
56
|
+
BreadcrumbLink,
|
|
57
|
+
BreadcrumbPage,
|
|
58
|
+
BreadcrumbSeparator,
|
|
59
|
+
BreadcrumbEllipsis
|
|
60
|
+
} from "./breadcrumb/index.mjs";
|
|
103
61
|
import {
|
|
104
62
|
Dialog,
|
|
105
|
-
|
|
63
|
+
DialogTrigger,
|
|
106
64
|
DialogContent,
|
|
107
|
-
DialogDescription,
|
|
108
|
-
DialogFooter,
|
|
109
65
|
DialogHeader,
|
|
110
66
|
DialogTitle,
|
|
111
|
-
|
|
112
|
-
|
|
67
|
+
DialogDescription,
|
|
68
|
+
DialogFooter,
|
|
69
|
+
DialogClose
|
|
70
|
+
} from "./dialog/index.mjs";
|
|
113
71
|
import {
|
|
114
72
|
DropdownMenu,
|
|
115
|
-
|
|
73
|
+
DropdownMenuTrigger,
|
|
116
74
|
DropdownMenuContent,
|
|
117
|
-
DropdownMenuGroup,
|
|
118
75
|
DropdownMenuItem,
|
|
119
|
-
|
|
120
|
-
DropdownMenuPortal,
|
|
121
|
-
DropdownMenuRadioGroup,
|
|
76
|
+
DropdownMenuCheckboxItem,
|
|
122
77
|
DropdownMenuRadioItem,
|
|
78
|
+
DropdownMenuLabel,
|
|
123
79
|
DropdownMenuSeparator,
|
|
124
80
|
DropdownMenuShortcut,
|
|
81
|
+
DropdownMenuGroup,
|
|
82
|
+
DropdownMenuPortal,
|
|
125
83
|
DropdownMenuSub,
|
|
126
84
|
DropdownMenuSubContent,
|
|
127
85
|
DropdownMenuSubTrigger,
|
|
128
|
-
|
|
129
|
-
} from "./
|
|
130
|
-
import {
|
|
131
|
-
Input
|
|
132
|
-
} from "./chunk-5NWFAQBM.mjs";
|
|
86
|
+
DropdownMenuRadioGroup
|
|
87
|
+
} from "./dropdown-menu/index.mjs";
|
|
88
|
+
import { Popover, PopoverTrigger, PopoverContent } from "./popover/index.mjs";
|
|
133
89
|
import {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
90
|
+
Sheet,
|
|
91
|
+
SheetPortal,
|
|
92
|
+
SheetOverlay,
|
|
93
|
+
SheetTrigger,
|
|
94
|
+
SheetClose,
|
|
95
|
+
SheetContent,
|
|
96
|
+
SheetHeader,
|
|
97
|
+
SheetFooter,
|
|
98
|
+
SheetTitle,
|
|
99
|
+
SheetDescription
|
|
100
|
+
} from "./sheet/index.mjs";
|
|
141
101
|
import {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
} from "./
|
|
102
|
+
Tooltip,
|
|
103
|
+
TooltipTrigger,
|
|
104
|
+
TooltipContent,
|
|
105
|
+
TooltipProvider
|
|
106
|
+
} from "./tooltip/index.mjs";
|
|
147
107
|
import {
|
|
148
108
|
Alert,
|
|
149
|
-
AlertDescription,
|
|
150
109
|
AlertTitle,
|
|
110
|
+
AlertDescription,
|
|
151
111
|
alertVariants
|
|
152
|
-
} from "./
|
|
153
|
-
import {
|
|
154
|
-
Avatar,
|
|
155
|
-
avatarVariants
|
|
156
|
-
} from "./chunk-OQGMQL2A.mjs";
|
|
157
|
-
import {
|
|
158
|
-
Badge,
|
|
159
|
-
badgeVariants
|
|
160
|
-
} from "./chunk-22MWNPDF.mjs";
|
|
112
|
+
} from "./alert/index.mjs";
|
|
113
|
+
import { Badge, badgeVariants } from "./badge/index.mjs";
|
|
161
114
|
import {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
BreadcrumbPage,
|
|
168
|
-
BreadcrumbSeparator
|
|
169
|
-
} from "./chunk-YI5OZRUB.mjs";
|
|
170
|
-
import {
|
|
171
|
-
Button,
|
|
172
|
-
buttonVariants
|
|
173
|
-
} from "./chunk-QXQWVRXN.mjs";
|
|
115
|
+
Progress,
|
|
116
|
+
progressVariants,
|
|
117
|
+
progressIndicatorVariants
|
|
118
|
+
} from "./progress/index.mjs";
|
|
119
|
+
import { Skeleton } from "./skeleton/index.mjs";
|
|
174
120
|
import {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
121
|
+
Toast,
|
|
122
|
+
ToastProvider,
|
|
123
|
+
ToastViewport,
|
|
124
|
+
ToastTitle,
|
|
125
|
+
ToastDescription,
|
|
126
|
+
ToastAction,
|
|
127
|
+
ToastClose
|
|
128
|
+
} from "./toast/index.mjs";
|
|
129
|
+
import { Avatar, avatarVariants } from "./avatar/index.mjs";
|
|
130
|
+
import { ScrollArea, ScrollBar } from "./scroll-area/index.mjs";
|
|
182
131
|
import {
|
|
183
|
-
|
|
184
|
-
|
|
132
|
+
Command,
|
|
133
|
+
CommandInput,
|
|
134
|
+
CommandList,
|
|
135
|
+
CommandEmpty,
|
|
136
|
+
CommandGroup,
|
|
137
|
+
CommandItem,
|
|
138
|
+
CommandSeparator
|
|
139
|
+
} from "./command/index.mjs";
|
|
185
140
|
export {
|
|
186
141
|
Accordion,
|
|
187
142
|
AccordionContent,
|
package/dist/input/index.js
CHANGED
|
@@ -26,39 +26,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/input/index.tsx
|
|
31
29
|
var input_exports = {};
|
|
32
30
|
__export(input_exports, {
|
|
33
31
|
Input: () => Input
|
|
34
32
|
});
|
|
35
33
|
module.exports = __toCommonJS(input_exports);
|
|
36
|
-
var React = __toESM(require("react"));
|
|
37
|
-
|
|
38
|
-
// src/utils.ts
|
|
39
|
-
var import_clsx = require("clsx");
|
|
40
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
41
|
-
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
42
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
43
|
-
extend: {
|
|
44
|
-
classGroups: {
|
|
45
|
-
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
function cn(...inputs) {
|
|
50
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// src/input/index.tsx
|
|
54
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
55
|
-
var
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("../utils.js");
|
|
37
|
+
const Input = React.forwardRef(
|
|
56
38
|
({ className, type, error, ...props }, ref) => {
|
|
57
39
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
58
40
|
"input",
|
|
59
41
|
{
|
|
60
42
|
type,
|
|
61
|
-
className: cn(
|
|
43
|
+
className: (0, import_utils.cn)(
|
|
62
44
|
"flex h-10 w-full rounded-md border px-3 py-2 text-sm transition-colors",
|
|
63
45
|
"bg-[var(--axis-input-bg-default)] text-[var(--axis-input-text-default)]",
|
|
64
46
|
"border-[var(--axis-input-border-default)]",
|
package/dist/input/index.mjs
CHANGED
|
@@ -1,7 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "../
|
|
4
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../utils.mjs";
|
|
4
|
+
const Input = React.forwardRef(
|
|
5
|
+
({ className, type, error, ...props }, ref) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
"input",
|
|
8
|
+
{
|
|
9
|
+
type,
|
|
10
|
+
className: cn(
|
|
11
|
+
"flex h-10 w-full rounded-md border px-3 py-2 text-sm transition-colors",
|
|
12
|
+
"bg-[var(--axis-input-bg-default)] text-[var(--axis-input-text-default)]",
|
|
13
|
+
"border-[var(--axis-input-border-default)]",
|
|
14
|
+
"placeholder:text-[var(--axis-input-text-placeholder)]",
|
|
15
|
+
"hover:border-[var(--axis-input-border-hover)]",
|
|
16
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-input-border-focus)] focus-visible:ring-offset-2",
|
|
17
|
+
"disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-[var(--axis-input-bg-disabled)]",
|
|
18
|
+
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
19
|
+
error && "border-[var(--axis-input-border-error)] focus-visible:ring-[var(--axis-input-border-error)]",
|
|
20
|
+
className
|
|
21
|
+
),
|
|
22
|
+
ref,
|
|
23
|
+
...props
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
Input.displayName = "Input";
|
|
5
29
|
export {
|
|
6
30
|
Input
|
|
7
31
|
};
|
package/dist/label/index.js
CHANGED
|
@@ -26,42 +26,24 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/label/index.tsx
|
|
31
29
|
var label_exports = {};
|
|
32
30
|
__export(label_exports, {
|
|
33
31
|
Label: () => Label
|
|
34
32
|
});
|
|
35
33
|
module.exports = __toCommonJS(label_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
35
|
var React = __toESM(require("react"));
|
|
37
36
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
38
37
|
var import_class_variance_authority = require("class-variance-authority");
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
var import_clsx = require("clsx");
|
|
42
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
43
|
-
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
44
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
45
|
-
extend: {
|
|
46
|
-
classGroups: {
|
|
47
|
-
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
function cn(...inputs) {
|
|
52
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// src/label/index.tsx
|
|
56
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
|
-
var labelVariants = (0, import_class_variance_authority.cva)(
|
|
38
|
+
var import_utils = require("../utils.js");
|
|
39
|
+
const labelVariants = (0, import_class_variance_authority.cva)(
|
|
58
40
|
"text-sm font-medium leading-none text-[var(--axis-text-primary)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
59
41
|
);
|
|
60
|
-
|
|
42
|
+
const Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
43
|
LabelPrimitive.Root,
|
|
62
44
|
{
|
|
63
45
|
ref,
|
|
64
|
-
className: cn(labelVariants(), className),
|
|
46
|
+
className: (0, import_utils.cn)(labelVariants(), className),
|
|
65
47
|
...props
|
|
66
48
|
}
|
|
67
49
|
));
|
package/dist/label/index.mjs
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import "
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { cn } from "../utils.mjs";
|
|
6
|
+
const labelVariants = cva(
|
|
7
|
+
"text-sm font-medium leading-none text-[var(--axis-text-primary)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
8
|
+
);
|
|
9
|
+
const Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10
|
+
LabelPrimitive.Root,
|
|
11
|
+
{
|
|
12
|
+
ref,
|
|
13
|
+
className: cn(labelVariants(), className),
|
|
14
|
+
...props
|
|
15
|
+
}
|
|
16
|
+
));
|
|
17
|
+
Label.displayName = "Label";
|
|
5
18
|
export {
|
|
6
19
|
Label
|
|
7
20
|
};
|
package/dist/popover/index.js
CHANGED
|
@@ -26,8 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/popover/index.tsx
|
|
31
29
|
var popover_exports = {};
|
|
32
30
|
__export(popover_exports, {
|
|
33
31
|
Popover: () => Popover,
|
|
@@ -35,35 +33,19 @@ __export(popover_exports, {
|
|
|
35
33
|
PopoverTrigger: () => PopoverTrigger
|
|
36
34
|
});
|
|
37
35
|
module.exports = __toCommonJS(popover_exports);
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
37
|
var React = __toESM(require("react"));
|
|
39
38
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
45
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
46
|
-
extend: {
|
|
47
|
-
classGroups: {
|
|
48
|
-
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
function cn(...inputs) {
|
|
53
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// src/popover/index.tsx
|
|
57
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
58
|
-
var Popover = PopoverPrimitive.Root;
|
|
59
|
-
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
60
|
-
var PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
39
|
+
var import_utils = require("../utils.js");
|
|
40
|
+
const Popover = PopoverPrimitive.Root;
|
|
41
|
+
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
42
|
+
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
43
|
PopoverPrimitive.Content,
|
|
62
44
|
{
|
|
63
45
|
ref,
|
|
64
46
|
align,
|
|
65
47
|
sideOffset,
|
|
66
|
-
className: cn(
|
|
48
|
+
className: (0, import_utils.cn)(
|
|
67
49
|
"z-50 w-72 rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] p-4 text-[var(--axis-text-primary)] shadow-md outline-none",
|
|
68
50
|
"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",
|
|
69
51
|
className
|
package/dist/popover/index.mjs
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4
|
+
import { cn } from "../utils.mjs";
|
|
5
|
+
const Popover = PopoverPrimitive.Root;
|
|
6
|
+
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
7
|
+
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
8
|
+
PopoverPrimitive.Content,
|
|
9
|
+
{
|
|
10
|
+
ref,
|
|
11
|
+
align,
|
|
12
|
+
sideOffset,
|
|
13
|
+
className: cn(
|
|
14
|
+
"z-50 w-72 rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] p-4 text-[var(--axis-text-primary)] shadow-md outline-none",
|
|
15
|
+
"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",
|
|
16
|
+
className
|
|
17
|
+
),
|
|
18
|
+
...props
|
|
19
|
+
}
|
|
20
|
+
) }));
|
|
21
|
+
PopoverContent.displayName = "PopoverContent";
|
|
7
22
|
export {
|
|
8
23
|
Popover,
|
|
9
24
|
PopoverContent,
|
package/dist/progress/index.js
CHANGED
|
@@ -26,8 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/progress/index.tsx
|
|
31
29
|
var progress_exports = {};
|
|
32
30
|
__export(progress_exports, {
|
|
33
31
|
Progress: () => Progress,
|
|
@@ -35,27 +33,11 @@ __export(progress_exports, {
|
|
|
35
33
|
progressVariants: () => progressVariants
|
|
36
34
|
});
|
|
37
35
|
module.exports = __toCommonJS(progress_exports);
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
37
|
var React = __toESM(require("react"));
|
|
39
38
|
var import_class_variance_authority = require("class-variance-authority");
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var import_clsx = require("clsx");
|
|
43
|
-
var import_tailwind_merge = require("tailwind-merge");
|
|
44
|
-
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
45
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
46
|
-
extend: {
|
|
47
|
-
classGroups: {
|
|
48
|
-
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
function cn(...inputs) {
|
|
53
|
-
return twMerge((0, import_clsx.clsx)(inputs));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// src/progress/index.tsx
|
|
57
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
58
|
-
var progressVariants = (0, import_class_variance_authority.cva)(
|
|
39
|
+
var import_utils = require("../utils.js");
|
|
40
|
+
const progressVariants = (0, import_class_variance_authority.cva)(
|
|
59
41
|
"relative h-2 w-full overflow-hidden rounded-full bg-[var(--axis-surface-tertiary)]",
|
|
60
42
|
{
|
|
61
43
|
variants: {
|
|
@@ -70,7 +52,7 @@ var progressVariants = (0, import_class_variance_authority.cva)(
|
|
|
70
52
|
}
|
|
71
53
|
}
|
|
72
54
|
);
|
|
73
|
-
|
|
55
|
+
const progressIndicatorVariants = (0, import_class_variance_authority.cva)(
|
|
74
56
|
"h-full w-full flex-1 transition-all duration-300 ease-in-out",
|
|
75
57
|
{
|
|
76
58
|
variants: {
|
|
@@ -86,7 +68,7 @@ var progressIndicatorVariants = (0, import_class_variance_authority.cva)(
|
|
|
86
68
|
}
|
|
87
69
|
}
|
|
88
70
|
);
|
|
89
|
-
|
|
71
|
+
const Progress = React.forwardRef(
|
|
90
72
|
({
|
|
91
73
|
className,
|
|
92
74
|
value = 0,
|
|
@@ -105,12 +87,12 @@ var Progress = React.forwardRef(
|
|
|
105
87
|
"aria-valuemin": 0,
|
|
106
88
|
"aria-valuemax": max,
|
|
107
89
|
"aria-valuenow": indeterminate ? void 0 : value,
|
|
108
|
-
className: cn(progressVariants({ size }), className),
|
|
90
|
+
className: (0, import_utils.cn)(progressVariants({ size }), className),
|
|
109
91
|
...props,
|
|
110
92
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
111
93
|
"div",
|
|
112
94
|
{
|
|
113
|
-
className: cn(
|
|
95
|
+
className: (0, import_utils.cn)(
|
|
114
96
|
progressIndicatorVariants({ variant }),
|
|
115
97
|
indeterminate && "animate-progress-indeterminate"
|
|
116
98
|
),
|
package/dist/progress/index.mjs
CHANGED
|
@@ -1,9 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { cn } from "../utils.mjs";
|
|
5
|
+
const progressVariants = cva(
|
|
6
|
+
"relative h-2 w-full overflow-hidden rounded-full bg-[var(--axis-surface-tertiary)]",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
sm: "h-1",
|
|
11
|
+
default: "h-2",
|
|
12
|
+
lg: "h-3"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
size: "default"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
const progressIndicatorVariants = cva(
|
|
21
|
+
"h-full w-full flex-1 transition-all duration-300 ease-in-out",
|
|
22
|
+
{
|
|
23
|
+
variants: {
|
|
24
|
+
variant: {
|
|
25
|
+
default: "bg-[var(--axis-surface-brand)]",
|
|
26
|
+
success: "bg-[var(--axis-color-green-500)]",
|
|
27
|
+
warning: "bg-[var(--axis-color-yellow-500)]",
|
|
28
|
+
destructive: "bg-[var(--axis-color-red-500)]"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
variant: "default"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
const Progress = React.forwardRef(
|
|
37
|
+
({
|
|
38
|
+
className,
|
|
39
|
+
value = 0,
|
|
40
|
+
max = 100,
|
|
41
|
+
size,
|
|
42
|
+
variant,
|
|
43
|
+
indeterminate = false,
|
|
44
|
+
...props
|
|
45
|
+
}, ref) => {
|
|
46
|
+
const percentage = Math.min(Math.max(value / max * 100, 0), 100);
|
|
47
|
+
return /* @__PURE__ */ jsx(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref,
|
|
51
|
+
role: "progressbar",
|
|
52
|
+
"aria-valuemin": 0,
|
|
53
|
+
"aria-valuemax": max,
|
|
54
|
+
"aria-valuenow": indeterminate ? void 0 : value,
|
|
55
|
+
className: cn(progressVariants({ size }), className),
|
|
56
|
+
...props,
|
|
57
|
+
children: /* @__PURE__ */ jsx(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
className: cn(
|
|
61
|
+
progressIndicatorVariants({ variant }),
|
|
62
|
+
indeterminate && "animate-progress-indeterminate"
|
|
63
|
+
),
|
|
64
|
+
style: indeterminate ? void 0 : { transform: `translateX(-${100 - percentage}%)` }
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
Progress.displayName = "Progress";
|
|
7
72
|
export {
|
|
8
73
|
Progress,
|
|
9
74
|
progressIndicatorVariants,
|