@snapcall/design-system 1.20.0-beta.2 → 1.20.0-beta.4
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/dist/Command/index.d.mts +1 -1
- package/dist/Command/index.d.ts +1 -1
- package/dist/CreatableSelect/index.d.mts +1 -1
- package/dist/CreatableSelect/index.d.ts +1 -1
- package/dist/{chunk-RXPKLOY4.mjs → chunk-AHDZKO2U.mjs} +25 -68
- package/dist/chunk-FCKIVF33.mjs +454 -0
- package/dist/{chunk-PDYIMMJH.mjs → chunk-MABOGCOL.mjs} +8 -47
- package/dist/{chunk-XWD63VYR.mjs → chunk-PGRZSZPW.mjs} +1 -1
- package/dist/{chunk-4TUMP4TB.mjs → chunk-ZUDNZTUE.mjs} +5 -5
- package/dist/components/Accordion/index.mjs +9 -40
- package/dist/components/AlertDialog/index.mjs +3 -1
- package/dist/components/Button/index.mjs +3 -1
- package/dist/components/Calendar/index.mjs +6 -7
- package/dist/components/Carousel/index.mjs +17 -140
- package/dist/components/Checkbox/index.mjs +3 -2
- package/dist/components/Command/index.mjs +5 -5
- package/dist/components/CreatableSelect/index.mjs +8 -8
- package/dist/components/Dialog/index.mjs +5 -4
- package/dist/components/DropdownMenu/index.mjs +5 -5
- package/dist/components/FilterButton/index.mjs +3 -1
- package/dist/components/Pagination/index.mjs +18 -84
- package/dist/components/Select/index.mjs +12 -42
- package/dist/components/Sheet/index.mjs +5 -4
- package/dist/components/Toaster/index.mjs +5 -4
- package/dist/components/ToggleGroup/index.mjs +2 -1
- package/dist/icons/index.d.mts +2452 -2
- package/dist/icons/index.d.ts +2452 -2
- package/dist/icons/index.js +3678 -2455
- package/dist/icons/index.mjs +2450 -1227
- package/dist/{index-Jp7jKI5I.d.ts → index-ra0AVXfz.d.mts} +7 -7
- package/dist/{index-Jp7jKI5I.d.mts → index-ra0AVXfz.d.ts} +7 -7
- package/dist/index.d.mts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js +49 -11
- package/dist/index.mjs +46 -5
- package/package.json +22 -5
- package/dist/chunk-NOFOM2SJ.mjs +0 -41
- package/dist/chunk-PPFZHO26.mjs +0 -41
- package/dist/chunk-ZT2KTEGZ.mjs +0 -41
- package/dist/icons/search.js +0 -98
- package/dist/icons/search.mjs +0 -50
- package/dist/index-2pOvozv0.d.mts +0 -2456
- package/dist/index-2pOvozv0.d.ts +0 -2456
- package/dist/search.d.mts +0 -6
- package/dist/search.d.ts +0 -6
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SpinnerIcon
|
|
3
|
+
} from "./chunk-FCKIVF33.mjs";
|
|
1
4
|
import {
|
|
2
5
|
__objRest,
|
|
3
6
|
__spreadProps,
|
|
@@ -9,48 +12,7 @@ import {
|
|
|
9
12
|
import * as React from "react";
|
|
10
13
|
import { Slot } from "@radix-ui/react-slot";
|
|
11
14
|
import { cva } from "class-variance-authority";
|
|
12
|
-
|
|
13
|
-
// src/icons/spinner.tsx
|
|
14
|
-
import { forwardRef } from "react";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
var SpinnerIcon = forwardRef(
|
|
17
|
-
function SpinnerIcon2(_a, ref) {
|
|
18
|
-
var _b = _a, { size = 24, className = "animate-spin text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
19
|
-
return /* @__PURE__ */ jsxs(
|
|
20
|
-
"svg",
|
|
21
|
-
__spreadProps(__spreadValues({
|
|
22
|
-
ref,
|
|
23
|
-
width: size,
|
|
24
|
-
height: size,
|
|
25
|
-
viewBox: "0 0 25 24",
|
|
26
|
-
fill: "none",
|
|
27
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
-
className
|
|
29
|
-
}, other), {
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ jsx(
|
|
32
|
-
"path",
|
|
33
|
-
{
|
|
34
|
-
opacity: "0.12",
|
|
35
|
-
d: "M24.5 12C24.5 18.6274 19.1274 24 12.5 24C5.87258 24 0.5 18.6274 0.5 12C0.5 5.37258 5.87258 0 12.5 0C19.1274 0 24.5 5.37258 24.5 12ZM3.668 12C3.668 16.8778 7.62222 20.832 12.5 20.832C17.3778 20.832 21.332 16.8778 21.332 12C21.332 7.12222 17.3778 3.168 12.5 3.168C7.62222 3.168 3.668 7.12222 3.668 12Z",
|
|
36
|
-
fill: "currentColor"
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ jsx(
|
|
40
|
-
"path",
|
|
41
|
-
{
|
|
42
|
-
d: "M22.916 12C23.7908 12 24.5108 12.7122 24.3956 13.5794C24.1641 15.323 23.5512 17.0011 22.5928 18.4912C21.3476 20.4272 19.5719 21.9643 17.4774 22.919C15.3829 23.8738 13.058 24.206 10.7799 23.8761C8.50179 23.5461 6.36667 22.5679 4.62912 21.0581C2.89158 19.5483 1.62494 17.5706 0.98025 15.3609C0.335563 13.1511 0.340035 10.8026 0.993131 8.5953C1.64623 6.38803 2.92039 4.41517 4.66367 2.91199C6.00545 1.75501 7.58156 0.913857 9.27571 0.441275C10.1184 0.206218 10.9241 0.819698 11.0462 1.68595C11.1683 2.55221 10.5575 3.33995 9.72694 3.61463C8.63201 3.97673 7.61359 4.55146 6.73246 5.31122C5.44941 6.41757 4.51162 7.86959 4.03094 9.49414C3.55027 11.1187 3.54697 12.8472 4.02146 14.4736C4.49595 16.1 5.4282 17.5555 6.70703 18.6668C7.98587 19.778 9.55732 20.4979 11.234 20.7408C12.9107 20.9836 14.6218 20.7391 16.1634 20.0364C17.7049 19.3337 19.0119 18.2024 19.9283 16.7775C20.5576 15.799 20.9846 14.7103 21.1903 13.5755C21.3464 12.7148 22.0412 12 22.916 12Z",
|
|
43
|
-
fill: "currentColor"
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
]
|
|
47
|
-
})
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
// src/components/Button/Button.tsx
|
|
53
|
-
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
15
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
54
16
|
var buttonVariants = cva(
|
|
55
17
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-none focus-visible:ring-2 disabled:select-none disabled:pointer-events-none disabled:opacity-40",
|
|
56
18
|
{
|
|
@@ -129,7 +91,7 @@ var Button = React.forwardRef(
|
|
|
129
91
|
var _a2;
|
|
130
92
|
const Comp = asChild ? Slot : "button";
|
|
131
93
|
const sizesStyle = icon ? iconButtonSizes : buttonSizes;
|
|
132
|
-
return /* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ jsx(
|
|
133
95
|
Comp,
|
|
134
96
|
__spreadProps(__spreadValues({
|
|
135
97
|
className: cn(
|
|
@@ -140,15 +102,15 @@ var Button = React.forwardRef(
|
|
|
140
102
|
disabled: (_a2 = props.disabled) != null ? _a2 : isLoading,
|
|
141
103
|
type
|
|
142
104
|
}, props), {
|
|
143
|
-
children: isLoading ? /* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
105
|
+
children: isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
106
|
+
/* @__PURE__ */ jsx(
|
|
145
107
|
SpinnerIcon,
|
|
146
108
|
{
|
|
147
109
|
size: iconSizes[size || "md"],
|
|
148
110
|
className: "absolute text-inherit animate-spin"
|
|
149
111
|
}
|
|
150
112
|
),
|
|
151
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ jsx("span", { className: "flex gap-[inherit] invisible", children })
|
|
152
114
|
] }) : children
|
|
153
115
|
})
|
|
154
116
|
);
|
|
@@ -157,7 +119,6 @@ var Button = React.forwardRef(
|
|
|
157
119
|
Button.displayName = "Button";
|
|
158
120
|
|
|
159
121
|
export {
|
|
160
|
-
SpinnerIcon,
|
|
161
122
|
buttonVariants,
|
|
162
123
|
buttonSizes,
|
|
163
124
|
iconButtonSizes,
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
__spreadValues
|
|
5
5
|
} from "./chunk-JKJ6VK4H.mjs";
|
|
6
6
|
|
|
7
|
-
// src/icons/
|
|
7
|
+
// src/icons/chevronDown.tsx
|
|
8
8
|
import { forwardRef } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var
|
|
11
|
-
function
|
|
10
|
+
var ChevronDownIcon = forwardRef(
|
|
11
|
+
function ChevronDownIcon2(_a, ref) {
|
|
12
12
|
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
13
13
|
return /* @__PURE__ */ jsx(
|
|
14
14
|
"svg",
|
|
@@ -24,7 +24,7 @@ var CheckIcon = forwardRef(
|
|
|
24
24
|
children: /* @__PURE__ */ jsx(
|
|
25
25
|
"path",
|
|
26
26
|
{
|
|
27
|
-
d: "
|
|
27
|
+
d: "M6 9L12 15L18 9",
|
|
28
28
|
stroke: "currentColor",
|
|
29
29
|
strokeWidth: "2",
|
|
30
30
|
strokeLinecap: "round",
|
|
@@ -37,5 +37,5 @@ var CheckIcon = forwardRef(
|
|
|
37
37
|
);
|
|
38
38
|
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
ChevronDownIcon
|
|
41
41
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChevronDownIcon
|
|
3
|
+
} from "../../chunk-ZUDNZTUE.mjs";
|
|
1
4
|
import {
|
|
2
5
|
__objRest,
|
|
3
6
|
__spreadProps,
|
|
@@ -8,46 +11,12 @@ import {
|
|
|
8
11
|
// src/components/Accordion/Accordion.tsx
|
|
9
12
|
import React from "react";
|
|
10
13
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
11
|
-
|
|
12
|
-
// src/icons/chevronDown.tsx
|
|
13
|
-
import { forwardRef } from "react";
|
|
14
|
-
import { jsx } from "react/jsx-runtime";
|
|
15
|
-
var ChevronDownIcon = forwardRef(
|
|
16
|
-
function ChevronDownIcon2(_a, ref) {
|
|
17
|
-
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
18
|
-
return /* @__PURE__ */ jsx(
|
|
19
|
-
"svg",
|
|
20
|
-
__spreadProps(__spreadValues({
|
|
21
|
-
ref,
|
|
22
|
-
width: size,
|
|
23
|
-
height: size,
|
|
24
|
-
viewBox: "0 0 24 24",
|
|
25
|
-
fill: "none",
|
|
26
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
-
className
|
|
28
|
-
}, other), {
|
|
29
|
-
children: /* @__PURE__ */ jsx(
|
|
30
|
-
"path",
|
|
31
|
-
{
|
|
32
|
-
d: "M6 9L12 15L18 9",
|
|
33
|
-
stroke: "currentColor",
|
|
34
|
-
strokeWidth: "2",
|
|
35
|
-
strokeLinecap: "round",
|
|
36
|
-
strokeLinejoin: "round"
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
})
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
// src/components/Accordion/Accordion.tsx
|
|
45
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
46
15
|
var AccordionItem = AccordionPrimitive.Item;
|
|
47
16
|
var Accordion = AccordionPrimitive.Root;
|
|
48
17
|
var AccordionTrigger2 = React.forwardRef((_a, forwardedRef) => {
|
|
49
18
|
var _b = _a, { children, className, icon } = _b, props = __objRest(_b, ["children", "className", "icon"]);
|
|
50
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { children: /* @__PURE__ */ jsxs(
|
|
51
20
|
AccordionPrimitive.Trigger,
|
|
52
21
|
__spreadProps(__spreadValues({
|
|
53
22
|
className: cn(
|
|
@@ -61,8 +30,8 @@ var AccordionTrigger2 = React.forwardRef((_a, forwardedRef) => {
|
|
|
61
30
|
size: 18,
|
|
62
31
|
className: cn("flex-shrink-0 mr-2.5", icon.props.className)
|
|
63
32
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ jsx("span", { className: "text-left truncate grow", children }),
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
66
35
|
ChevronDownIcon,
|
|
67
36
|
{
|
|
68
37
|
size: 16,
|
|
@@ -77,7 +46,7 @@ var AccordionTrigger2 = React.forwardRef((_a, forwardedRef) => {
|
|
|
77
46
|
AccordionTrigger2.displayName = AccordionPrimitive.AccordionTrigger.displayName;
|
|
78
47
|
var AccordionContent = React.forwardRef((_a, forwardedRef) => {
|
|
79
48
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
80
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ jsx(
|
|
81
50
|
AccordionPrimitive.Content,
|
|
82
51
|
__spreadProps(__spreadValues({
|
|
83
52
|
className: cn(
|
|
@@ -86,7 +55,7 @@ var AccordionContent = React.forwardRef((_a, forwardedRef) => {
|
|
|
86
55
|
)
|
|
87
56
|
}, props), {
|
|
88
57
|
ref: forwardedRef,
|
|
89
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ jsx("div", { className: "pb-2", children })
|
|
90
59
|
})
|
|
91
60
|
);
|
|
92
61
|
});
|
|
@@ -3,7 +3,9 @@ import {
|
|
|
3
3
|
buttonSizes,
|
|
4
4
|
buttonVariants,
|
|
5
5
|
iconButtonSizes
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-MABOGCOL.mjs";
|
|
7
|
+
import "../../chunk-FCKIVF33.mjs";
|
|
8
|
+
import "../../chunk-ZUDNZTUE.mjs";
|
|
7
9
|
import "../../chunk-JKJ6VK4H.mjs";
|
|
8
10
|
export {
|
|
9
11
|
Button,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChevronLeftIcon
|
|
3
|
-
} from "../../chunk-PPFZHO26.mjs";
|
|
4
|
-
import {
|
|
5
|
-
ChevronRightIcon
|
|
6
|
-
} from "../../chunk-NOFOM2SJ.mjs";
|
|
7
1
|
import {
|
|
8
2
|
buttonVariants,
|
|
9
3
|
iconButtonSizes
|
|
10
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-MABOGCOL.mjs";
|
|
5
|
+
import {
|
|
6
|
+
ChevronLeftIcon,
|
|
7
|
+
ChevronRightIcon
|
|
8
|
+
} from "../../chunk-FCKIVF33.mjs";
|
|
9
|
+
import "../../chunk-ZUDNZTUE.mjs";
|
|
11
10
|
import {
|
|
12
11
|
__objRest,
|
|
13
12
|
__spreadValues,
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-MABOGCOL.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ArrowDownIcon,
|
|
6
|
+
ArrowLeftIcon,
|
|
7
|
+
ArrowRightIcon,
|
|
8
|
+
ArrowUpIcon
|
|
9
|
+
} from "../../chunk-FCKIVF33.mjs";
|
|
10
|
+
import "../../chunk-ZUDNZTUE.mjs";
|
|
4
11
|
import {
|
|
5
12
|
__objRest,
|
|
6
13
|
__spreadProps,
|
|
@@ -11,137 +18,7 @@ import {
|
|
|
11
18
|
// src/components/Carousel/Carousel.tsx
|
|
12
19
|
import * as React from "react";
|
|
13
20
|
import useEmblaCarousel from "embla-carousel-react";
|
|
14
|
-
|
|
15
|
-
// src/icons/arrowDown.tsx
|
|
16
|
-
import { forwardRef } from "react";
|
|
17
|
-
import { jsx } from "react/jsx-runtime";
|
|
18
|
-
var ArrowDownIcon = forwardRef(
|
|
19
|
-
function ArrowDownIcon2(_a, ref) {
|
|
20
|
-
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
-
"svg",
|
|
23
|
-
__spreadProps(__spreadValues({
|
|
24
|
-
ref,
|
|
25
|
-
width: size,
|
|
26
|
-
height: size,
|
|
27
|
-
viewBox: "0 0 24 24",
|
|
28
|
-
fill: "none",
|
|
29
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
-
className
|
|
31
|
-
}, other), {
|
|
32
|
-
children: /* @__PURE__ */ jsx(
|
|
33
|
-
"path",
|
|
34
|
-
{
|
|
35
|
-
d: "M12 5V19M12 19L19 12M12 19L5 12",
|
|
36
|
-
stroke: "currentColor",
|
|
37
|
-
strokeWidth: "2",
|
|
38
|
-
strokeLinecap: "round",
|
|
39
|
-
strokeLinejoin: "round"
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
})
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
// src/icons/arrowLeft.tsx
|
|
48
|
-
import { forwardRef as forwardRef2 } from "react";
|
|
49
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
50
|
-
var ArrowLeftIcon = forwardRef2(
|
|
51
|
-
function ArrowLeftIcon2(_a, ref) {
|
|
52
|
-
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
53
|
-
return /* @__PURE__ */ jsx2(
|
|
54
|
-
"svg",
|
|
55
|
-
__spreadProps(__spreadValues({
|
|
56
|
-
ref,
|
|
57
|
-
width: size,
|
|
58
|
-
height: size,
|
|
59
|
-
viewBox: "0 0 24 24",
|
|
60
|
-
fill: "none",
|
|
61
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
62
|
-
className
|
|
63
|
-
}, other), {
|
|
64
|
-
children: /* @__PURE__ */ jsx2(
|
|
65
|
-
"path",
|
|
66
|
-
{
|
|
67
|
-
d: "M19 12H5M5 12L12 19M5 12L12 5",
|
|
68
|
-
stroke: "currentColor",
|
|
69
|
-
strokeWidth: "2",
|
|
70
|
-
strokeLinecap: "round",
|
|
71
|
-
strokeLinejoin: "round"
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
})
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
// src/icons/arrowRight.tsx
|
|
80
|
-
import { forwardRef as forwardRef3 } from "react";
|
|
81
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
82
|
-
var ArrowRightIcon = forwardRef3(
|
|
83
|
-
function ArrowRightIcon2(_a, ref) {
|
|
84
|
-
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
85
|
-
return /* @__PURE__ */ jsx3(
|
|
86
|
-
"svg",
|
|
87
|
-
__spreadProps(__spreadValues({
|
|
88
|
-
ref,
|
|
89
|
-
width: size,
|
|
90
|
-
height: size,
|
|
91
|
-
viewBox: "0 0 24 24",
|
|
92
|
-
fill: "none",
|
|
93
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
94
|
-
className
|
|
95
|
-
}, other), {
|
|
96
|
-
children: /* @__PURE__ */ jsx3(
|
|
97
|
-
"path",
|
|
98
|
-
{
|
|
99
|
-
d: "M5 12H19M19 12L12 5M19 12L12 19",
|
|
100
|
-
stroke: "currentColor",
|
|
101
|
-
strokeWidth: "2",
|
|
102
|
-
strokeLinecap: "round",
|
|
103
|
-
strokeLinejoin: "round"
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
})
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
);
|
|
110
|
-
|
|
111
|
-
// src/icons/arrowUp.tsx
|
|
112
|
-
import { forwardRef as forwardRef4 } from "react";
|
|
113
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
114
|
-
var ArrowUpIcon = forwardRef4(
|
|
115
|
-
function ArrowUpIcon2(_a, ref) {
|
|
116
|
-
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
117
|
-
return /* @__PURE__ */ jsx4(
|
|
118
|
-
"svg",
|
|
119
|
-
__spreadProps(__spreadValues({
|
|
120
|
-
ref,
|
|
121
|
-
width: size,
|
|
122
|
-
height: size,
|
|
123
|
-
viewBox: "0 0 24 24",
|
|
124
|
-
fill: "none",
|
|
125
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
126
|
-
className
|
|
127
|
-
}, other), {
|
|
128
|
-
children: /* @__PURE__ */ jsx4(
|
|
129
|
-
"path",
|
|
130
|
-
{
|
|
131
|
-
d: "M12 19V5M12 5L5 12M12 5L19 12",
|
|
132
|
-
stroke: "currentColor",
|
|
133
|
-
strokeWidth: "2",
|
|
134
|
-
strokeLinecap: "round",
|
|
135
|
-
strokeLinejoin: "round"
|
|
136
|
-
}
|
|
137
|
-
)
|
|
138
|
-
})
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
|
|
143
|
-
// src/components/Carousel/Carousel.tsx
|
|
144
|
-
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
145
22
|
var CarouselContext = React.createContext(null);
|
|
146
23
|
function useCarousel() {
|
|
147
24
|
const context = React.useContext(CarouselContext);
|
|
@@ -217,7 +94,7 @@ var Carousel = React.forwardRef(
|
|
|
217
94
|
api == null ? void 0 : api.off("select", onSelect);
|
|
218
95
|
};
|
|
219
96
|
}, [api, onSelect]);
|
|
220
|
-
return /* @__PURE__ */
|
|
97
|
+
return /* @__PURE__ */ jsx(
|
|
221
98
|
CarouselContext.Provider,
|
|
222
99
|
{
|
|
223
100
|
value: {
|
|
@@ -230,7 +107,7 @@ var Carousel = React.forwardRef(
|
|
|
230
107
|
canScrollPrev,
|
|
231
108
|
canScrollNext
|
|
232
109
|
},
|
|
233
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ jsx(
|
|
234
111
|
"div",
|
|
235
112
|
__spreadProps(__spreadValues({
|
|
236
113
|
ref,
|
|
@@ -250,7 +127,7 @@ Carousel.displayName = "Carousel";
|
|
|
250
127
|
var CarouselContent = React.forwardRef((_a, ref) => {
|
|
251
128
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
252
129
|
const { carouselRef, orientation } = useCarousel();
|
|
253
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
254
131
|
"div",
|
|
255
132
|
__spreadValues({
|
|
256
133
|
ref,
|
|
@@ -266,7 +143,7 @@ CarouselContent.displayName = "CarouselContent";
|
|
|
266
143
|
var CarouselItem = React.forwardRef((_a, ref) => {
|
|
267
144
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
268
145
|
const { orientation } = useCarousel();
|
|
269
|
-
return /* @__PURE__ */
|
|
146
|
+
return /* @__PURE__ */ jsx(
|
|
270
147
|
"div",
|
|
271
148
|
__spreadValues({
|
|
272
149
|
ref,
|
|
@@ -300,8 +177,8 @@ var CarouselPrevious = React.forwardRef((_a, ref) => {
|
|
|
300
177
|
onClick: scrollPrev
|
|
301
178
|
}, props), {
|
|
302
179
|
children: [
|
|
303
|
-
orientation === "horizontal" ? /* @__PURE__ */
|
|
304
|
-
/* @__PURE__ */
|
|
180
|
+
orientation === "horizontal" ? /* @__PURE__ */ jsx(ArrowLeftIcon, { size: 16 }) : /* @__PURE__ */ jsx(ArrowUpIcon, { size: 16 }),
|
|
181
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
|
|
305
182
|
]
|
|
306
183
|
})
|
|
307
184
|
);
|
|
@@ -326,8 +203,8 @@ var CarouselNext = React.forwardRef((_a, ref) => {
|
|
|
326
203
|
onClick: scrollNext
|
|
327
204
|
}, props), {
|
|
328
205
|
children: [
|
|
329
|
-
orientation === "horizontal" ? /* @__PURE__ */
|
|
330
|
-
/* @__PURE__ */
|
|
206
|
+
orientation === "horizontal" ? /* @__PURE__ */ jsx(ArrowRightIcon, { size: 16 }) : /* @__PURE__ */ jsx(ArrowDownIcon, { size: 16 }),
|
|
207
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
|
|
331
208
|
]
|
|
332
209
|
})
|
|
333
210
|
);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Checkbox
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-PGRZSZPW.mjs";
|
|
4
|
+
import "../../chunk-FCKIVF33.mjs";
|
|
5
|
+
import "../../chunk-ZUDNZTUE.mjs";
|
|
5
6
|
import "../../chunk-JKJ6VK4H.mjs";
|
|
6
7
|
export {
|
|
7
8
|
Checkbox
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
CommandList,
|
|
8
8
|
CommandLoading,
|
|
9
9
|
CommandSeparator
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-AHDZKO2U.mjs";
|
|
11
|
+
import "../../chunk-MABOGCOL.mjs";
|
|
12
|
+
import "../../chunk-PGRZSZPW.mjs";
|
|
13
|
+
import "../../chunk-FCKIVF33.mjs";
|
|
14
|
+
import "../../chunk-ZUDNZTUE.mjs";
|
|
15
15
|
import "../../chunk-JKJ6VK4H.mjs";
|
|
16
16
|
export {
|
|
17
17
|
Command,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Badge
|
|
3
|
-
} from "../../chunk-I7KGDNNG.mjs";
|
|
4
1
|
import {
|
|
5
2
|
Command,
|
|
6
3
|
CommandItem,
|
|
7
4
|
CommandList,
|
|
8
5
|
CommandLoading
|
|
9
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-AHDZKO2U.mjs";
|
|
7
|
+
import {
|
|
8
|
+
Badge
|
|
9
|
+
} from "../../chunk-I7KGDNNG.mjs";
|
|
10
|
+
import "../../chunk-MABOGCOL.mjs";
|
|
11
|
+
import "../../chunk-PGRZSZPW.mjs";
|
|
10
12
|
import {
|
|
11
13
|
XCloseIcon
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-4TUMP4TB.mjs";
|
|
15
|
-
import "../../chunk-PDYIMMJH.mjs";
|
|
14
|
+
} from "../../chunk-FCKIVF33.mjs";
|
|
15
|
+
import "../../chunk-ZUDNZTUE.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__objRest,
|
|
18
18
|
__spreadValues,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
XCloseIcon
|
|
3
|
-
} from "../../chunk-ZT2KTEGZ.mjs";
|
|
4
1
|
import {
|
|
5
2
|
buttonVariants,
|
|
6
3
|
iconButtonSizes
|
|
7
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-MABOGCOL.mjs";
|
|
5
|
+
import {
|
|
6
|
+
XCloseIcon
|
|
7
|
+
} from "../../chunk-FCKIVF33.mjs";
|
|
8
|
+
import "../../chunk-ZUDNZTUE.mjs";
|
|
8
9
|
import {
|
|
9
10
|
__objRest,
|
|
10
11
|
__spreadProps,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChevronRightIcon
|
|
3
|
-
} from "../../chunk-NOFOM2SJ.mjs";
|
|
4
1
|
import {
|
|
5
2
|
Checkbox
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import
|
|
3
|
+
} from "../../chunk-PGRZSZPW.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ChevronRightIcon
|
|
6
|
+
} from "../../chunk-FCKIVF33.mjs";
|
|
7
|
+
import "../../chunk-ZUDNZTUE.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__objRest,
|
|
10
10
|
__spreadProps,
|