@snapcall/design-system 1.24.3 → 1.25.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/dist/{chunk-CBQRH67Z.mjs → chunk-SSZ45TLL.mjs} +1 -1
- package/dist/components/AlertDialog/index.js +2 -2
- package/dist/components/AlertDialog/index.mjs +2 -2
- package/dist/components/Command/index.js +1 -1
- package/dist/components/Command/index.mjs +1 -1
- package/dist/components/CreatableSelect/index.js +1 -1
- package/dist/components/CreatableSelect/index.mjs +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dialog/index.mjs +1 -1
- package/dist/components/Form/index.d.mts +1 -1
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/MediaCard/index.d.mts +5 -5
- package/dist/components/MediaCard/index.d.ts +5 -5
- package/dist/components/Select/index.js +10 -4
- package/dist/components/Select/index.mjs +10 -4
- package/dist/components/Skeleton/index.d.mts +2 -1
- package/dist/components/Skeleton/index.d.ts +2 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Switch/index.mjs +1 -1
- package/dist/components/Toaster/index.js +2 -2
- package/dist/components/Toaster/index.mjs +2 -2
- package/dist/components/ToggleGroup/index.js +87 -71
- package/dist/components/ToggleGroup/index.mjs +87 -71
- package/dist/icons/attachment.js +1 -1
- package/dist/icons/attachment.mjs +1 -1
- package/dist/icons/expand.js +1 -1
- package/dist/icons/expand.mjs +1 -1
- package/dist/icons/index.d.mts +2 -2
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/link.js +1 -1
- package/dist/icons/link.mjs +1 -1
- package/dist/icons/menu.js +1 -1
- package/dist/icons/menu.mjs +1 -1
- package/dist/icons/refreshCcw.js +1 -1
- package/dist/icons/refreshCcw.mjs +1 -1
- package/dist/icons/refreshCw.js +1 -1
- package/dist/icons/refreshCw.mjs +1 -1
- package/dist/icons/rotateCcw.js +1 -1
- package/dist/icons/rotateCcw.mjs +1 -1
- package/dist/icons/trendDown.js +1 -1
- package/dist/icons/trendDown.mjs +1 -1
- package/dist/icons/trendUp.js +1 -1
- package/dist/icons/trendUp.mjs +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/style.css +2 -2
- package/package.json +50 -56
|
@@ -158,7 +158,7 @@ var CommandEmpty = React.forwardRef((_a, ref) => {
|
|
|
158
158
|
});
|
|
159
159
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
160
160
|
var CommandLoading = React.forwardRef((_a, ref) => {
|
|
161
|
-
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
161
|
+
var _b = _a, { children: _children } = _b, props = __objRest(_b, ["children"]);
|
|
162
162
|
return /* @__PURE__ */ jsx2(CommandPrimitive.Loading, __spreadProps(__spreadValues({ ref }, props), { children: /* @__PURE__ */ jsx2("div", { className: "flex justify-center p-4 text-center", children: /* @__PURE__ */ jsx2(SpinnerIcon, { className: "text-blue-700 animate-spin" }) }) }));
|
|
163
163
|
});
|
|
164
164
|
CommandLoading.displayName = CommandPrimitive.Loading.displayName;
|
|
@@ -237,7 +237,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
|
237
237
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
238
238
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
239
239
|
var AlertDialogOverlay = React2.forwardRef((_a, ref) => {
|
|
240
|
-
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
240
|
+
var _b = _a, { className, children: _children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
241
241
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
242
242
|
AlertDialogPrimitive.Overlay,
|
|
243
243
|
__spreadProps(__spreadValues({
|
|
@@ -260,7 +260,7 @@ var AlertDialogContent = React2.forwardRef((_a, ref) => {
|
|
|
260
260
|
__spreadValues({
|
|
261
261
|
ref,
|
|
262
262
|
className: cn(
|
|
263
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] max-h-[90vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-6 border border-gray-200 bg-white p-6 shadow-lg duration-200 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 rounded-
|
|
263
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] max-h-[90vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-6 border border-gray-200 bg-white p-6 shadow-lg duration-200 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 rounded-2xl md:w-full",
|
|
264
264
|
className
|
|
265
265
|
)
|
|
266
266
|
}, props)
|
|
@@ -17,7 +17,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
17
17
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
18
18
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
19
19
|
var AlertDialogOverlay = React.forwardRef((_a, ref) => {
|
|
20
|
-
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
20
|
+
var _b = _a, { className, children: _children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
21
21
|
return /* @__PURE__ */ jsx(
|
|
22
22
|
AlertDialogPrimitive.Overlay,
|
|
23
23
|
__spreadProps(__spreadValues({
|
|
@@ -40,7 +40,7 @@ var AlertDialogContent = React.forwardRef((_a, ref) => {
|
|
|
40
40
|
__spreadValues({
|
|
41
41
|
ref,
|
|
42
42
|
className: cn(
|
|
43
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] max-h-[90vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-6 border border-gray-200 bg-white p-6 shadow-lg duration-200 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 rounded-
|
|
43
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] max-h-[90vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-6 border border-gray-200 bg-white p-6 shadow-lg duration-200 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 rounded-2xl md:w-full",
|
|
44
44
|
className
|
|
45
45
|
)
|
|
46
46
|
}, props)
|
|
@@ -453,7 +453,7 @@ var CommandEmpty = React3.forwardRef((_a, ref) => {
|
|
|
453
453
|
});
|
|
454
454
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
455
455
|
var CommandLoading = React3.forwardRef((_a, ref) => {
|
|
456
|
-
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
456
|
+
var _b = _a, { children: _children } = _b, props = __objRest(_b, ["children"]);
|
|
457
457
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_cmdk.Command.Loading, __spreadProps(__spreadValues({ ref }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex justify-center p-4 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SpinnerIcon, { className: "text-blue-700 animate-spin" }) }) }));
|
|
458
458
|
});
|
|
459
459
|
CommandLoading.displayName = import_cmdk.Command.Loading.displayName;
|
|
@@ -624,7 +624,7 @@ var CommandEmpty = React4.forwardRef((_a, ref) => {
|
|
|
624
624
|
});
|
|
625
625
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
626
626
|
var CommandLoading = React4.forwardRef((_a, ref) => {
|
|
627
|
-
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
627
|
+
var _b = _a, { children: _children } = _b, props = __objRest(_b, ["children"]);
|
|
628
628
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_cmdk.Command.Loading, __spreadProps(__spreadValues({ ref }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex justify-center p-4 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SpinnerIcon, { className: "text-blue-700 animate-spin" }) }) }));
|
|
629
629
|
});
|
|
630
630
|
CommandLoading.displayName = import_cmdk.Command.Loading.displayName;
|
|
@@ -296,7 +296,7 @@ var DialogContent = React2.forwardRef(
|
|
|
296
296
|
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%] rounded-t-3xl": bottomSheet
|
|
297
297
|
},
|
|
298
298
|
{
|
|
299
|
-
"duration-200 rounded-
|
|
299
|
+
"duration-200 rounded-2xl 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": !bottomSheet
|
|
300
300
|
},
|
|
301
301
|
className
|
|
302
302
|
)
|
|
@@ -48,7 +48,7 @@ var DialogContent = React.forwardRef(
|
|
|
48
48
|
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%] rounded-t-3xl": bottomSheet
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
"duration-200 rounded-
|
|
51
|
+
"duration-200 rounded-2xl 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": !bottomSheet
|
|
52
52
|
},
|
|
53
53
|
className
|
|
54
54
|
)
|
|
@@ -5,7 +5,7 @@ import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
7
7
|
|
|
8
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues
|
|
8
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
9
9
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName> & {
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -5,7 +5,7 @@ import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
7
7
|
|
|
8
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues
|
|
8
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
9
9
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName> & {
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -100,7 +100,7 @@ var Input = React.forwardRef(
|
|
|
100
100
|
"div",
|
|
101
101
|
{
|
|
102
102
|
className: cn(
|
|
103
|
-
"flex h-9 w-full rounded-md border border-gray-200 bg-transparent focus-within:outline
|
|
103
|
+
"flex h-9 w-full rounded-md border border-gray-200 bg-transparent focus-within:outline-2 focus-within:outline-blue-300 focus-within:outline-offset-2",
|
|
104
104
|
{ "cursor-not-allowed opacity-50": isDisabled },
|
|
105
105
|
{
|
|
106
106
|
"border-red-700 focus-within:border-gray-200 focus-within:outline-red-700": !!props["data-has-error"]
|
|
@@ -33,7 +33,7 @@ var Input = React.forwardRef(
|
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
35
|
className: cn(
|
|
36
|
-
"flex h-9 w-full rounded-md border border-gray-200 bg-transparent focus-within:outline
|
|
36
|
+
"flex h-9 w-full rounded-md border border-gray-200 bg-transparent focus-within:outline-2 focus-within:outline-blue-300 focus-within:outline-offset-2",
|
|
37
37
|
{ "cursor-not-allowed opacity-50": isDisabled },
|
|
38
38
|
{
|
|
39
39
|
"border-red-700 focus-within:border-gray-200 focus-within:outline-red-700": !!props["data-has-error"]
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
+
import React__default, { HTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
type MediaCardProps = {
|
|
5
5
|
title: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
duration?: number;
|
|
8
8
|
type: 'audio' | 'video' | 'image' | 'other';
|
|
9
|
-
image?: string |
|
|
10
|
-
icon?:
|
|
11
|
-
action?:
|
|
9
|
+
image?: string | React__default.JSX.Element;
|
|
10
|
+
icon?: React__default.JSX.Element;
|
|
11
|
+
action?: React__default.JSX.Element;
|
|
12
12
|
actionBehavior?: 'default' | 'hover';
|
|
13
13
|
moderationStatus?: 'processing' | 'flagged' | 'safe' | null;
|
|
14
14
|
isLoading?: boolean;
|
|
15
15
|
size: 'small' | 'medium' | 'large';
|
|
16
16
|
author?: {
|
|
17
17
|
name: string;
|
|
18
|
-
image?:
|
|
18
|
+
image?: React__default.JSX.Element;
|
|
19
19
|
};
|
|
20
20
|
} & HTMLAttributes<HTMLDivElement>;
|
|
21
21
|
declare const MediaCard: {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
+
import React__default, { HTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
type MediaCardProps = {
|
|
5
5
|
title: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
duration?: number;
|
|
8
8
|
type: 'audio' | 'video' | 'image' | 'other';
|
|
9
|
-
image?: string |
|
|
10
|
-
icon?:
|
|
11
|
-
action?:
|
|
9
|
+
image?: string | React__default.JSX.Element;
|
|
10
|
+
icon?: React__default.JSX.Element;
|
|
11
|
+
action?: React__default.JSX.Element;
|
|
12
12
|
actionBehavior?: 'default' | 'hover';
|
|
13
13
|
moderationStatus?: 'processing' | 'flagged' | 'safe' | null;
|
|
14
14
|
isLoading?: boolean;
|
|
15
15
|
size: 'small' | 'medium' | 'large';
|
|
16
16
|
author?: {
|
|
17
17
|
name: string;
|
|
18
|
-
image?:
|
|
18
|
+
image?: React__default.JSX.Element;
|
|
19
19
|
};
|
|
20
20
|
} & HTMLAttributes<HTMLDivElement>;
|
|
21
21
|
declare const MediaCard: {
|
|
@@ -126,7 +126,7 @@ var SelectTrigger = React.forwardRef((_a, ref) => {
|
|
|
126
126
|
__spreadProps(__spreadValues({
|
|
127
127
|
ref,
|
|
128
128
|
className: cn(
|
|
129
|
-
"flex gap-2 h-9 w-full px-3 py-2 text-sm outline-hidden text-black placeholder:text-gray-700 rounded-md border border-gray-200 bg-white
|
|
129
|
+
"flex gap-2 h-9 w-full px-3 py-2 text-sm outline-hidden text-black placeholder:text-gray-700 rounded-md border border-gray-200 bg-white focus-within:outline-2 focus-within:outline-blue-300 focus-within:outline-offset-2px items-center justify-between",
|
|
130
130
|
{ "cursor-not-allowed opacity-50": isDisabled },
|
|
131
131
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
132
132
|
// when the disabled attr is set by reference
|
|
@@ -137,8 +137,14 @@ var SelectTrigger = React.forwardRef((_a, ref) => {
|
|
|
137
137
|
)
|
|
138
138
|
}, props), {
|
|
139
139
|
children: [
|
|
140
|
-
children,
|
|
141
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
140
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "truncate", children }),
|
|
141
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
142
|
+
ChevronSelectorVerticalIcon,
|
|
143
|
+
{
|
|
144
|
+
size: "16",
|
|
145
|
+
className: "w-4 h-4 opacity-50 shrink-0"
|
|
146
|
+
}
|
|
147
|
+
) })
|
|
142
148
|
]
|
|
143
149
|
})
|
|
144
150
|
);
|
|
@@ -162,7 +168,7 @@ var SelectContent = React.forwardRef((_a, ref) => {
|
|
|
162
168
|
{
|
|
163
169
|
className: cn(
|
|
164
170
|
"p-1",
|
|
165
|
-
position === "popper" && "w-full min-w-
|
|
171
|
+
position === "popper" && "w-full min-w-(--radix-select-trigger-width) h-(--radix-select-trigger-height)"
|
|
166
172
|
),
|
|
167
173
|
children
|
|
168
174
|
}
|
|
@@ -54,7 +54,7 @@ var SelectTrigger = React.forwardRef((_a, ref) => {
|
|
|
54
54
|
__spreadProps(__spreadValues({
|
|
55
55
|
ref,
|
|
56
56
|
className: cn(
|
|
57
|
-
"flex gap-2 h-9 w-full px-3 py-2 text-sm outline-hidden text-black placeholder:text-gray-700 rounded-md border border-gray-200 bg-white
|
|
57
|
+
"flex gap-2 h-9 w-full px-3 py-2 text-sm outline-hidden text-black placeholder:text-gray-700 rounded-md border border-gray-200 bg-white focus-within:outline-2 focus-within:outline-blue-300 focus-within:outline-offset-2px items-center justify-between",
|
|
58
58
|
{ "cursor-not-allowed opacity-50": isDisabled },
|
|
59
59
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
60
60
|
// when the disabled attr is set by reference
|
|
@@ -65,8 +65,14 @@ var SelectTrigger = React.forwardRef((_a, ref) => {
|
|
|
65
65
|
)
|
|
66
66
|
}, props), {
|
|
67
67
|
children: [
|
|
68
|
-
children,
|
|
69
|
-
/* @__PURE__ */ jsx2(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx2(
|
|
68
|
+
/* @__PURE__ */ jsx2("div", { className: "truncate", children }),
|
|
69
|
+
/* @__PURE__ */ jsx2(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx2(
|
|
70
|
+
ChevronSelectorVerticalIcon,
|
|
71
|
+
{
|
|
72
|
+
size: "16",
|
|
73
|
+
className: "w-4 h-4 opacity-50 shrink-0"
|
|
74
|
+
}
|
|
75
|
+
) })
|
|
70
76
|
]
|
|
71
77
|
})
|
|
72
78
|
);
|
|
@@ -90,7 +96,7 @@ var SelectContent = React.forwardRef((_a, ref) => {
|
|
|
90
96
|
{
|
|
91
97
|
className: cn(
|
|
92
98
|
"p-1",
|
|
93
|
-
position === "popper" && "w-full min-w-
|
|
99
|
+
position === "popper" && "w-full min-w-(--radix-select-trigger-width) h-(--radix-select-trigger-height)"
|
|
94
100
|
),
|
|
95
101
|
children
|
|
96
102
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
2
3
|
|
|
3
|
-
declare function Skeleton({ className, ...props }:
|
|
4
|
+
declare function Skeleton({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { Skeleton };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
2
3
|
|
|
3
|
-
declare function Skeleton({ className, ...props }:
|
|
4
|
+
declare function Skeleton({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { Skeleton };
|
|
@@ -87,7 +87,7 @@ var Switch = React.forwardRef((_a, ref) => {
|
|
|
87
87
|
)
|
|
88
88
|
}, props), {
|
|
89
89
|
ref,
|
|
90
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SwitchPrimitive.Thumb, { className: "
|
|
90
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SwitchPrimitive.Thumb, { className: "flex w-4 h-4 bg-gray-600 rounded-full translate-x-0.5 data-[state=checked]:translate-x-5 data-[state=checked]:bg-white dark:data-[state=checked]:bg-black transition-transform ease-linear will-change-transform" })
|
|
91
91
|
})
|
|
92
92
|
);
|
|
93
93
|
});
|
|
@@ -20,7 +20,7 @@ var Switch = React.forwardRef((_a, ref) => {
|
|
|
20
20
|
)
|
|
21
21
|
}, props), {
|
|
22
22
|
ref,
|
|
23
|
-
children: /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, { className: "
|
|
23
|
+
children: /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, { className: "flex w-4 h-4 bg-gray-600 rounded-full translate-x-0.5 data-[state=checked]:translate-x-5 data-[state=checked]:bg-white dark:data-[state=checked]:bg-black transition-transform ease-linear will-change-transform" })
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
});
|
|
@@ -324,7 +324,7 @@ var RawToast = React2.forwardRef((_a, ref) => {
|
|
|
324
324
|
});
|
|
325
325
|
RawToast.displayName = "RawToast";
|
|
326
326
|
var ToastAction = React2.forwardRef((_a, ref) => {
|
|
327
|
-
var _b = _a, { className, altText } = _b, props = __objRest(_b, ["className", "altText"]);
|
|
327
|
+
var _b = _a, { className: _className, altText } = _b, props = __objRest(_b, ["className", "altText"]);
|
|
328
328
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ToastPrimitives.Action, { altText, ref, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Button, __spreadValues({ size: "xs" }, props)) });
|
|
329
329
|
});
|
|
330
330
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
@@ -532,7 +532,7 @@ function Toaster(_a) {
|
|
|
532
532
|
(_a2) => {
|
|
533
533
|
var _b2 = _a2, {
|
|
534
534
|
id,
|
|
535
|
-
parentId,
|
|
535
|
+
parentId: _parentId,
|
|
536
536
|
title,
|
|
537
537
|
description,
|
|
538
538
|
actions,
|
|
@@ -71,7 +71,7 @@ var RawToast = React.forwardRef((_a, ref) => {
|
|
|
71
71
|
});
|
|
72
72
|
RawToast.displayName = "RawToast";
|
|
73
73
|
var ToastAction = React.forwardRef((_a, ref) => {
|
|
74
|
-
var _b = _a, { className, altText } = _b, props = __objRest(_b, ["className", "altText"]);
|
|
74
|
+
var _b = _a, { className: _className, altText } = _b, props = __objRest(_b, ["className", "altText"]);
|
|
75
75
|
return /* @__PURE__ */ jsx(ToastPrimitives.Action, { altText, ref, asChild: true, children: /* @__PURE__ */ jsx(Button, __spreadValues({ size: "xs" }, props)) });
|
|
76
76
|
});
|
|
77
77
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
@@ -279,7 +279,7 @@ function Toaster(_a) {
|
|
|
279
279
|
(_a2) => {
|
|
280
280
|
var _b2 = _a2, {
|
|
281
281
|
id,
|
|
282
|
-
parentId,
|
|
282
|
+
parentId: _parentId,
|
|
283
283
|
title,
|
|
284
284
|
description,
|
|
285
285
|
actions,
|
|
@@ -131,80 +131,96 @@ var ToggleGroup = React.forwardRef((_a, ref) => {
|
|
|
131
131
|
);
|
|
132
132
|
});
|
|
133
133
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
134
|
-
var ToggleGroupItem = React.forwardRef(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
children
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
134
|
+
var ToggleGroupItem = React.forwardRef(
|
|
135
|
+
(_a, ref) => {
|
|
136
|
+
var _b = _a, {
|
|
137
|
+
title,
|
|
138
|
+
description,
|
|
139
|
+
icon,
|
|
140
|
+
image,
|
|
141
|
+
className,
|
|
142
|
+
children: _children
|
|
143
|
+
} = _b, props = __objRest(_b, [
|
|
144
|
+
"title",
|
|
145
|
+
"description",
|
|
146
|
+
"icon",
|
|
147
|
+
"image",
|
|
148
|
+
"className",
|
|
149
|
+
"children"
|
|
150
|
+
]);
|
|
151
|
+
const { direction, type } = React.useContext(ToggleGroupContext);
|
|
152
|
+
const isRow = direction === "row";
|
|
153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
154
|
+
ToggleGroupPrimitive.Item,
|
|
155
|
+
__spreadProps(__spreadValues({
|
|
156
|
+
ref,
|
|
157
|
+
className: cn(
|
|
158
|
+
"flex border-2 border-gray-200 data-[state=on]:border-blue-700 p-2 rounded-lg group",
|
|
159
|
+
"focus-visible:outline-hidden focus-visible:ring-blue-300 focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
160
|
+
isRow ? "gap-2" : "gap-2.5",
|
|
161
|
+
className
|
|
162
|
+
)
|
|
163
|
+
}, props), {
|
|
164
|
+
children: [
|
|
165
|
+
isRow && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "w-4" }),
|
|
166
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex flex-col flex-1 self-center min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
167
|
+
"div",
|
|
168
|
+
{
|
|
169
|
+
className: cn(
|
|
170
|
+
"flex items-center",
|
|
171
|
+
isRow ? "flex-col gap-2" : "flex-row gap-2.5"
|
|
171
172
|
),
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
children: [
|
|
174
|
+
(icon || image) && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
className: cn(
|
|
178
|
+
"flex justify-center items-center w-8 h-8 border-gray-200 rounded-sm shrink-0",
|
|
179
|
+
{ border: !isRow }
|
|
180
|
+
),
|
|
181
|
+
children: [
|
|
182
|
+
icon && React.cloneElement(icon, { size: isRow ? 24 : 16 }),
|
|
183
|
+
image && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "w-full h-full border border-gray-200 rounded-sm min-w-0 overflow-hidden", children: image })
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
188
|
+
"div",
|
|
189
|
+
{
|
|
190
|
+
className: cn(
|
|
191
|
+
"flex flex-col w-full min-w-0",
|
|
192
|
+
isRow ? "text-center" : "text-left"
|
|
193
|
+
),
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("h4", { className: "text-sm text-black font-medium truncate", children: title }),
|
|
196
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "text-xs text-gray-900 truncate", children: description })
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
) }),
|
|
203
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
204
|
+
"div",
|
|
205
|
+
{
|
|
206
|
+
className: cn(
|
|
207
|
+
"flex items-center justify-center w-4 h-4 bg-gray-50 border border-gray-200 group-data-[state=on]:border-blue-700",
|
|
208
|
+
type === "single" ? "rounded-full" : "rounded-sm"
|
|
209
|
+
),
|
|
210
|
+
children: type === "single" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "h-2 w-2 rounded-full bg-blue-700 group-data-[state=off]:bg-transparent" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex justify-center items-center w-full h-full bg-blue-700 group-data-[state=off]:bg-transparent", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
211
|
+
CheckIcon,
|
|
174
212
|
{
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
isRow ? "text-center" : "text-left"
|
|
178
|
-
),
|
|
179
|
-
children: [
|
|
180
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("h4", { className: "text-sm text-black font-medium truncate", children: title }),
|
|
181
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "text-xs text-gray-900 truncate", children: description })
|
|
182
|
-
]
|
|
213
|
+
size: 10,
|
|
214
|
+
className: "text-white group-data-[state=off]:text-transparent"
|
|
183
215
|
}
|
|
184
|
-
)
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
"flex items-center justify-center w-4 h-4 bg-gray-50 border border-gray-200 group-data-[state=on]:border-blue-700",
|
|
193
|
-
type === "single" ? "rounded-full" : "rounded-sm"
|
|
194
|
-
),
|
|
195
|
-
children: type === "single" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "h-2 w-2 rounded-full bg-blue-700 group-data-[state=off]:bg-transparent" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex justify-center items-center w-full h-full bg-blue-700 group-data-[state=off]:bg-transparent", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
196
|
-
CheckIcon,
|
|
197
|
-
{
|
|
198
|
-
size: 10,
|
|
199
|
-
className: "text-white group-data-[state=off]:text-transparent"
|
|
200
|
-
}
|
|
201
|
-
) })
|
|
202
|
-
}
|
|
203
|
-
)
|
|
204
|
-
]
|
|
205
|
-
})
|
|
206
|
-
);
|
|
207
|
-
});
|
|
216
|
+
) })
|
|
217
|
+
}
|
|
218
|
+
)
|
|
219
|
+
]
|
|
220
|
+
})
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
);
|
|
208
224
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
209
225
|
// Annotate the CommonJS export names for ESM import in node:
|
|
210
226
|
0 && (module.exports = {
|