@snapcall/design-system 1.24.3 → 1.25.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.
- package/dist/{chunk-CBQRH67Z.mjs → chunk-SSZ45TLL.mjs} +1 -1
- package/dist/components/AlertDialog/index.js +1 -1
- package/dist/components/AlertDialog/index.mjs +1 -1
- 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/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/Skeleton/index.d.mts +2 -1
- package/dist/components/Skeleton/index.d.ts +2 -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({
|
|
@@ -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({
|
|
@@ -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;
|
|
@@ -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: {
|
|
@@ -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 };
|
|
@@ -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 = {
|
|
@@ -34,80 +34,96 @@ var ToggleGroup = React.forwardRef((_a, ref) => {
|
|
|
34
34
|
);
|
|
35
35
|
});
|
|
36
36
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
37
|
-
var ToggleGroupItem = React.forwardRef(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
children
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
37
|
+
var ToggleGroupItem = React.forwardRef(
|
|
38
|
+
(_a, ref) => {
|
|
39
|
+
var _b = _a, {
|
|
40
|
+
title,
|
|
41
|
+
description,
|
|
42
|
+
icon,
|
|
43
|
+
image,
|
|
44
|
+
className,
|
|
45
|
+
children: _children
|
|
46
|
+
} = _b, props = __objRest(_b, [
|
|
47
|
+
"title",
|
|
48
|
+
"description",
|
|
49
|
+
"icon",
|
|
50
|
+
"image",
|
|
51
|
+
"className",
|
|
52
|
+
"children"
|
|
53
|
+
]);
|
|
54
|
+
const { direction, type } = React.useContext(ToggleGroupContext);
|
|
55
|
+
const isRow = direction === "row";
|
|
56
|
+
return /* @__PURE__ */ jsxs(
|
|
57
|
+
ToggleGroupPrimitive.Item,
|
|
58
|
+
__spreadProps(__spreadValues({
|
|
59
|
+
ref,
|
|
60
|
+
className: cn(
|
|
61
|
+
"flex border-2 border-gray-200 data-[state=on]:border-blue-700 p-2 rounded-lg group",
|
|
62
|
+
"focus-visible:outline-hidden focus-visible:ring-blue-300 focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
63
|
+
isRow ? "gap-2" : "gap-2.5",
|
|
64
|
+
className
|
|
65
|
+
)
|
|
66
|
+
}, props), {
|
|
67
|
+
children: [
|
|
68
|
+
isRow && /* @__PURE__ */ jsx("span", { className: "w-4" }),
|
|
69
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col flex-1 self-center min-w-0", children: /* @__PURE__ */ jsxs(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
className: cn(
|
|
73
|
+
"flex items-center",
|
|
74
|
+
isRow ? "flex-col gap-2" : "flex-row gap-2.5"
|
|
74
75
|
),
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
children: [
|
|
77
|
+
(icon || image) && /* @__PURE__ */ jsxs(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
className: cn(
|
|
81
|
+
"flex justify-center items-center w-8 h-8 border-gray-200 rounded-sm shrink-0",
|
|
82
|
+
{ border: !isRow }
|
|
83
|
+
),
|
|
84
|
+
children: [
|
|
85
|
+
icon && React.cloneElement(icon, { size: isRow ? 24 : 16 }),
|
|
86
|
+
image && /* @__PURE__ */ jsx("div", { className: "w-full h-full border border-gray-200 rounded-sm min-w-0 overflow-hidden", children: image })
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ jsxs(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
className: cn(
|
|
94
|
+
"flex flex-col w-full min-w-0",
|
|
95
|
+
isRow ? "text-center" : "text-left"
|
|
96
|
+
),
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ jsx("h4", { className: "text-sm text-black font-medium truncate", children: title }),
|
|
99
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-gray-900 truncate", children: description })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
) }),
|
|
106
|
+
/* @__PURE__ */ jsx(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
className: cn(
|
|
110
|
+
"flex items-center justify-center w-4 h-4 bg-gray-50 border border-gray-200 group-data-[state=on]:border-blue-700",
|
|
111
|
+
type === "single" ? "rounded-full" : "rounded-sm"
|
|
112
|
+
),
|
|
113
|
+
children: type === "single" ? /* @__PURE__ */ jsx("span", { className: "h-2 w-2 rounded-full bg-blue-700 group-data-[state=off]:bg-transparent" }) : /* @__PURE__ */ jsx("div", { className: "flex justify-center items-center w-full h-full bg-blue-700 group-data-[state=off]:bg-transparent", children: /* @__PURE__ */ jsx(
|
|
114
|
+
CheckIcon,
|
|
77
115
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
isRow ? "text-center" : "text-left"
|
|
81
|
-
),
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ jsx("h4", { className: "text-sm text-black font-medium truncate", children: title }),
|
|
84
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-gray-900 truncate", children: description })
|
|
85
|
-
]
|
|
116
|
+
size: 10,
|
|
117
|
+
className: "text-white group-data-[state=off]:text-transparent"
|
|
86
118
|
}
|
|
87
|
-
)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"flex items-center justify-center w-4 h-4 bg-gray-50 border border-gray-200 group-data-[state=on]:border-blue-700",
|
|
96
|
-
type === "single" ? "rounded-full" : "rounded-sm"
|
|
97
|
-
),
|
|
98
|
-
children: type === "single" ? /* @__PURE__ */ jsx("span", { className: "h-2 w-2 rounded-full bg-blue-700 group-data-[state=off]:bg-transparent" }) : /* @__PURE__ */ jsx("div", { className: "flex justify-center items-center w-full h-full bg-blue-700 group-data-[state=off]:bg-transparent", children: /* @__PURE__ */ jsx(
|
|
99
|
-
CheckIcon,
|
|
100
|
-
{
|
|
101
|
-
size: 10,
|
|
102
|
-
className: "text-white group-data-[state=off]:text-transparent"
|
|
103
|
-
}
|
|
104
|
-
) })
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
]
|
|
108
|
-
})
|
|
109
|
-
);
|
|
110
|
-
});
|
|
119
|
+
) })
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
]
|
|
123
|
+
})
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
);
|
|
111
127
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
112
128
|
export {
|
|
113
129
|
ToggleGroup,
|
package/dist/icons/attachment.js
CHANGED
|
@@ -56,7 +56,7 @@ var import_react = require("react");
|
|
|
56
56
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
57
|
var AttachmentIcon = (0, import_react.forwardRef)(
|
|
58
58
|
function AttachmentIcon2(_a, ref) {
|
|
59
|
-
var _b = _a, { size = 24, className = "text-gray-1000"
|
|
59
|
+
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
60
60
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
61
|
"svg",
|
|
62
62
|
__spreadProps(__spreadValues({
|
|
@@ -9,7 +9,7 @@ import { forwardRef } from "react";
|
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
var AttachmentIcon = forwardRef(
|
|
11
11
|
function AttachmentIcon2(_a, ref) {
|
|
12
|
-
var _b = _a, { size = 24, className = "text-gray-1000"
|
|
12
|
+
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
13
13
|
return /* @__PURE__ */ jsx(
|
|
14
14
|
"svg",
|
|
15
15
|
__spreadProps(__spreadValues({
|
package/dist/icons/expand.js
CHANGED
|
@@ -56,7 +56,7 @@ var import_react = require("react");
|
|
|
56
56
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
57
|
var ExpandIcon = (0, import_react.forwardRef)(
|
|
58
58
|
function ExpandIcon2(_a, ref) {
|
|
59
|
-
var _b = _a, { size = 24, className = "text-gray-1000"
|
|
59
|
+
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
60
60
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
61
|
"svg",
|
|
62
62
|
__spreadProps(__spreadValues({
|
package/dist/icons/expand.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { forwardRef } from "react";
|
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
var ExpandIcon = forwardRef(
|
|
11
11
|
function ExpandIcon2(_a, ref) {
|
|
12
|
-
var _b = _a, { size = 24, className = "text-gray-1000"
|
|
12
|
+
var _b = _a, { size = 24, className = "text-gray-1000" } = _b, other = __objRest(_b, ["size", "className"]);
|
|
13
13
|
return /* @__PURE__ */ jsx(
|
|
14
14
|
"svg",
|
|
15
15
|
__spreadProps(__spreadValues({
|