@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.
Files changed (43) hide show
  1. package/dist/{chunk-CBQRH67Z.mjs → chunk-SSZ45TLL.mjs} +1 -1
  2. package/dist/components/AlertDialog/index.js +1 -1
  3. package/dist/components/AlertDialog/index.mjs +1 -1
  4. package/dist/components/Command/index.js +1 -1
  5. package/dist/components/Command/index.mjs +1 -1
  6. package/dist/components/CreatableSelect/index.js +1 -1
  7. package/dist/components/CreatableSelect/index.mjs +1 -1
  8. package/dist/components/Form/index.d.mts +1 -1
  9. package/dist/components/Form/index.d.ts +1 -1
  10. package/dist/components/Input/index.js +1 -1
  11. package/dist/components/Input/index.mjs +1 -1
  12. package/dist/components/MediaCard/index.d.mts +5 -5
  13. package/dist/components/MediaCard/index.d.ts +5 -5
  14. package/dist/components/Skeleton/index.d.mts +2 -1
  15. package/dist/components/Skeleton/index.d.ts +2 -1
  16. package/dist/components/Toaster/index.js +2 -2
  17. package/dist/components/Toaster/index.mjs +2 -2
  18. package/dist/components/ToggleGroup/index.js +87 -71
  19. package/dist/components/ToggleGroup/index.mjs +87 -71
  20. package/dist/icons/attachment.js +1 -1
  21. package/dist/icons/attachment.mjs +1 -1
  22. package/dist/icons/expand.js +1 -1
  23. package/dist/icons/expand.mjs +1 -1
  24. package/dist/icons/index.d.mts +2 -2
  25. package/dist/icons/index.d.ts +2 -2
  26. package/dist/icons/link.js +1 -1
  27. package/dist/icons/link.mjs +1 -1
  28. package/dist/icons/menu.js +1 -1
  29. package/dist/icons/menu.mjs +1 -1
  30. package/dist/icons/refreshCcw.js +1 -1
  31. package/dist/icons/refreshCcw.mjs +1 -1
  32. package/dist/icons/refreshCw.js +1 -1
  33. package/dist/icons/refreshCw.mjs +1 -1
  34. package/dist/icons/rotateCcw.js +1 -1
  35. package/dist/icons/rotateCcw.mjs +1 -1
  36. package/dist/icons/trendDown.js +1 -1
  37. package/dist/icons/trendDown.mjs +1 -1
  38. package/dist/icons/trendUp.js +1 -1
  39. package/dist/icons/trendUp.mjs +1 -1
  40. package/dist/index.d.mts +5 -5
  41. package/dist/index.d.ts +5 -5
  42. package/dist/style.css +2 -2
  43. 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;
@@ -7,7 +7,7 @@ import {
7
7
  CommandList,
8
8
  CommandLoading,
9
9
  CommandSeparator
10
- } from "../../chunk-CBQRH67Z.mjs";
10
+ } from "../../chunk-SSZ45TLL.mjs";
11
11
  import "../../chunk-FMJFBQTF.mjs";
12
12
  import "../../chunk-TU6HU32A.mjs";
13
13
  import "../../chunk-AFJWE6PJ.mjs";
@@ -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;
@@ -3,7 +3,7 @@ import {
3
3
  CommandItem,
4
4
  CommandList,
5
5
  CommandLoading
6
- } from "../../chunk-CBQRH67Z.mjs";
6
+ } from "../../chunk-SSZ45TLL.mjs";
7
7
  import {
8
8
  XCloseIcon
9
9
  } from "../../chunk-FMJFBQTF.mjs";
@@ -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 extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
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 extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
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 focus-within:outline-[2px] focus-within:outline-blue-300 focus-within:outline-offset-[2px]",
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 focus-within:outline-[2px] focus-within:outline-blue-300 focus-within:outline-offset-[2px]",
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 | React.JSX.Element;
10
- icon?: React.JSX.Element;
11
- action?: React.JSX.Element;
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?: React.JSX.Element;
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 | React.JSX.Element;
10
- icon?: React.JSX.Element;
11
- action?: React.JSX.Element;
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?: React.JSX.Element;
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 }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
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 }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
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((_a, ref) => {
135
- var _b = _a, { title, description, icon, image, className, children } = _b, props = __objRest(_b, ["title", "description", "icon", "image", "className", "children"]);
136
- const { direction, type } = React.useContext(ToggleGroupContext);
137
- const isRow = direction === "row";
138
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
139
- ToggleGroupPrimitive.Item,
140
- __spreadProps(__spreadValues({
141
- ref,
142
- className: cn(
143
- "flex border-2 border-gray-200 data-[state=on]:border-blue-700 p-2 rounded-lg group",
144
- "focus-visible:outline-hidden focus-visible:ring-blue-300 focus-visible:ring-2 focus-visible:ring-offset-2",
145
- isRow ? "gap-2" : "gap-2.5",
146
- className
147
- )
148
- }, props), {
149
- children: [
150
- isRow && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "w-4" }),
151
- /* @__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)(
152
- "div",
153
- {
154
- className: cn(
155
- "flex items-center",
156
- isRow ? "flex-col gap-2" : "flex-row gap-2.5"
157
- ),
158
- children: [
159
- (icon || image) && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
160
- "div",
161
- {
162
- className: cn(
163
- "flex justify-center items-center w-8 h-8 border-gray-200 rounded-sm shrink-0",
164
- { border: !isRow }
165
- ),
166
- children: [
167
- icon && React.cloneElement(icon, { size: isRow ? 24 : 16 }),
168
- 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 })
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
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
173
- "div",
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
- className: cn(
176
- "flex flex-col w-full min-w-0",
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
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
189
- "div",
190
- {
191
- className: cn(
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((_a, ref) => {
38
- var _b = _a, { title, description, icon, image, className, children } = _b, props = __objRest(_b, ["title", "description", "icon", "image", "className", "children"]);
39
- const { direction, type } = React.useContext(ToggleGroupContext);
40
- const isRow = direction === "row";
41
- return /* @__PURE__ */ jsxs(
42
- ToggleGroupPrimitive.Item,
43
- __spreadProps(__spreadValues({
44
- ref,
45
- className: cn(
46
- "flex border-2 border-gray-200 data-[state=on]:border-blue-700 p-2 rounded-lg group",
47
- "focus-visible:outline-hidden focus-visible:ring-blue-300 focus-visible:ring-2 focus-visible:ring-offset-2",
48
- isRow ? "gap-2" : "gap-2.5",
49
- className
50
- )
51
- }, props), {
52
- children: [
53
- isRow && /* @__PURE__ */ jsx("span", { className: "w-4" }),
54
- /* @__PURE__ */ jsx("div", { className: "flex flex-col flex-1 self-center min-w-0", children: /* @__PURE__ */ jsxs(
55
- "div",
56
- {
57
- className: cn(
58
- "flex items-center",
59
- isRow ? "flex-col gap-2" : "flex-row gap-2.5"
60
- ),
61
- children: [
62
- (icon || image) && /* @__PURE__ */ jsxs(
63
- "div",
64
- {
65
- className: cn(
66
- "flex justify-center items-center w-8 h-8 border-gray-200 rounded-sm shrink-0",
67
- { border: !isRow }
68
- ),
69
- children: [
70
- icon && React.cloneElement(icon, { size: isRow ? 24 : 16 }),
71
- image && /* @__PURE__ */ jsx("div", { className: "w-full h-full border border-gray-200 rounded-sm min-w-0 overflow-hidden", children: image })
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
- /* @__PURE__ */ jsxs(
76
- "div",
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
- className: cn(
79
- "flex flex-col w-full min-w-0",
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
- /* @__PURE__ */ jsx(
92
- "div",
93
- {
94
- className: cn(
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,
@@ -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", duotone } = _b, other = __objRest(_b, ["size", "className", "duotone"]);
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", duotone } = _b, other = __objRest(_b, ["size", "className", "duotone"]);
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({
@@ -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", duotone } = _b, other = __objRest(_b, ["size", "className", "duotone"]);
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 ExpandIcon = forwardRef(
11
11
  function ExpandIcon2(_a, ref) {
12
- var _b = _a, { size = 24, className = "text-gray-1000", duotone } = _b, other = __objRest(_b, ["size", "className", "duotone"]);
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({