@bestow-ui/react 0.8.0 → 0.8.2

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/index.js CHANGED
@@ -14,7 +14,9 @@ function parseHex(hex) {
14
14
  return [0, 2, 4].map((i) => parseInt(h.slice(i, i + 2), 16) / 255);
15
15
  }
16
16
  function toHex(rgb) {
17
- return `#${rgb.map((v) => Math.round(Math.min(1, Math.max(0, v)) * 255).toString(16).padStart(2, "0")).join("")}`;
17
+ return `#${rgb.map(
18
+ (v) => Math.round(Math.min(1, Math.max(0, v)) * 255).toString(16).padStart(2, "0")
19
+ ).join("")}`;
18
20
  }
19
21
  var toLinear = (c) => c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
20
22
  var fromLinear = (c) => c <= 31308e-7 ? 12.92 * c : 1.055 * c ** (1 / 2.4) - 0.055;
@@ -174,8 +176,8 @@ var root = "sfyhlv1 sfyhlv0";
174
176
 
175
177
  // src/theme/ThemeProvider.tsx
176
178
  import { jsx } from "react/jsx-runtime";
177
- var ThemeContext = createContext({ theme: "light" });
178
- var ThemeProvider = forwardRef(function ThemeProvider2({ theme: themeProp, overrides, className, style, children, ...rest }, ref) {
179
+ var ThemeContext = /* @__PURE__ */ createContext({ theme: "light" });
180
+ var ThemeProvider = /* @__PURE__ */ forwardRef(function ThemeProvider2({ theme: themeProp, overrides, className, style, children, ...rest }, ref) {
179
181
  const parent = useContext(ThemeContext);
180
182
  const theme = themeProp ?? parent.theme;
181
183
  const merged = useMemo(() => mergeThemes(parent.overrides, overrides), [parent.overrides, overrides]);
@@ -222,11 +224,13 @@ var trigger = "v58j0l3";
222
224
 
223
225
  // src/components/Accordion/Accordion.tsx
224
226
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
225
- var Accordion = forwardRef2(function Accordion2({ className, ...props }, ref) {
226
- const rootProps = "value" in props ? { ...props, value: props.value ?? (props.type === "multiple" ? [] : "") } : props;
227
+ var Accordion = /* @__PURE__ */ forwardRef2(function Accordion2({ className, ...props }, ref) {
228
+ const { collapsible, ...multipleProps } = props;
229
+ const typedProps = props.type === "multiple" ? multipleProps : { ...multipleProps, collapsible };
230
+ const rootProps = "value" in props ? { ...typedProps, value: props.value ?? (props.type === "multiple" ? [] : "") } : typedProps;
227
231
  return /* @__PURE__ */ jsx2(RadixAccordion.Root, { ref, className: cx(root2, className), ...rootProps });
228
232
  });
229
- var AccordionItem = forwardRef2(function AccordionItem2({ title: title4, headingLevel = 3, className, children, ...rest }, ref) {
233
+ var AccordionItem = /* @__PURE__ */ forwardRef2(function AccordionItem2({ title: title4, headingLevel = 3, className, children, ...rest }, ref) {
230
234
  const Heading = `h${headingLevel}`;
231
235
  return /* @__PURE__ */ jsxs(RadixAccordion.Item, { ref, className: cx(item, className), ...rest, children: [
232
236
  /* @__PURE__ */ jsx2(RadixAccordion.Header, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { className: header, children: /* @__PURE__ */ jsxs(RadixAccordion.Trigger, { className: trigger, children: [
@@ -255,7 +259,7 @@ function getInitials(name) {
255
259
  const first = (word) => Array.from(word)[0] ?? "";
256
260
  return (first(a) + first(b)).toUpperCase();
257
261
  }
258
- var Avatar = forwardRef3(function Avatar2({ src, alt, name, fallback: fallback2, size, shape, className, ...rest }, ref) {
262
+ var Avatar = /* @__PURE__ */ forwardRef3(function Avatar2({ src, alt, name, fallback: fallback2, size, shape, className, ...rest }, ref) {
259
263
  const label4 = alt ?? name;
260
264
  const a11y = label4 ? { role: "img", "aria-label": label4 } : { "aria-hidden": true };
261
265
  const initials = name ? getInitials(name) : "";
@@ -275,7 +279,7 @@ var icon = "_1295cfnf";
275
279
 
276
280
  // src/components/Badge/Badge.tsx
277
281
  import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
278
- var Badge = forwardRef4(function Badge2({ variant, color, size, startIcon, className, children, ...rest }, ref) {
282
+ var Badge = /* @__PURE__ */ forwardRef4(function Badge2({ variant, color, size, startIcon, className, children, ...rest }, ref) {
279
283
  return /* @__PURE__ */ jsxs3("span", { ref, className: cx(badge({ variant, color, size }), className), ...rest, children: [
280
284
  startIcon && /* @__PURE__ */ jsx4("span", { className: icon, children: startIcon }),
281
285
  children
@@ -298,7 +302,7 @@ var spinner = _7a4683({ defaultClassName: "_4b5tg40", variantClassNames: { color
298
302
 
299
303
  // src/components/Spinner/Spinner.tsx
300
304
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
301
- var Spinner = forwardRef5(function Spinner2({ size, color, label: label4 = "\uB85C\uB529 \uC911", className, ...rest }, ref) {
305
+ var Spinner = /* @__PURE__ */ forwardRef5(function Spinner2({ size, color, label: label4 = "\uB85C\uB529 \uC911", className, ...rest }, ref) {
302
306
  const a11y = label4 ? { role: "status" } : { "aria-hidden": true };
303
307
  return /* @__PURE__ */ jsxs4("span", { ref, className: cx(spinner({ size, color }), className), ...a11y, ...rest, children: [
304
308
  /* @__PURE__ */ jsx5(LoaderIcon, { size: "100%" }),
@@ -313,7 +317,20 @@ var icon2 = "xcekdai";
313
317
 
314
318
  // src/components/Button/Button.tsx
315
319
  import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
316
- var Button = forwardRef6(function Button2({ variant, color, size, fullWidth, startIcon, endIcon, loading, className, type = "button", onClick, children, ...rest }, ref) {
320
+ var Button = /* @__PURE__ */ forwardRef6(function Button2({
321
+ variant,
322
+ color,
323
+ size,
324
+ fullWidth,
325
+ startIcon,
326
+ endIcon,
327
+ loading,
328
+ className,
329
+ type = "button",
330
+ onClick,
331
+ children,
332
+ ...rest
333
+ }, ref) {
317
334
  const handleClick = (event) => {
318
335
  if (loading) {
319
336
  event.preventDefault();
@@ -353,16 +370,16 @@ var header2 = "dnuf1u8";
353
370
 
354
371
  // src/components/Card/Card.tsx
355
372
  import { jsx as jsx7 } from "react/jsx-runtime";
356
- var Card = forwardRef7(function Card2({ variant, padding, as: Component = "div", className, ...rest }, ref) {
373
+ var Card = /* @__PURE__ */ forwardRef7(function Card2({ variant, padding, as: Component = "div", className, ...rest }, ref) {
357
374
  return /* @__PURE__ */ jsx7(Component, { ref, className: cx(card({ variant, padding }), className), ...rest });
358
375
  });
359
- var CardHeader = forwardRef7(function CardHeader2({ className, ...rest }, ref) {
376
+ var CardHeader = /* @__PURE__ */ forwardRef7(function CardHeader2({ className, ...rest }, ref) {
360
377
  return /* @__PURE__ */ jsx7("div", { ref, className: cx(header2, className), ...rest });
361
378
  });
362
- var CardBody = forwardRef7(function CardBody2({ className, ...rest }, ref) {
379
+ var CardBody = /* @__PURE__ */ forwardRef7(function CardBody2({ className, ...rest }, ref) {
363
380
  return /* @__PURE__ */ jsx7("div", { ref, className: cx(body, className), ...rest });
364
381
  });
365
- var CardFooter = forwardRef7(function CardFooter2({ className, ...rest }, ref) {
382
+ var CardFooter = /* @__PURE__ */ forwardRef7(function CardFooter2({ className, ...rest }, ref) {
366
383
  return /* @__PURE__ */ jsx7("div", { ref, className: cx(footer, className), ...rest });
367
384
  });
368
385
 
@@ -389,7 +406,7 @@ var root4 = _7a4686({ defaultClassName: "_1y7mzsn0", variantClassNames: { size:
389
406
 
390
407
  // src/components/Checkbox/Checkbox.tsx
391
408
  import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
392
- var Checkbox = forwardRef8(function Checkbox2({ label: label4, size, indeterminate = false, invalid, disabled, className, ...rest }, ref) {
409
+ var Checkbox = /* @__PURE__ */ forwardRef8(function Checkbox2({ label: label4, size, indeterminate = false, invalid, disabled, className, ...rest }, ref) {
393
410
  const innerRef = useRef(null);
394
411
  useEffect(() => {
395
412
  if (innerRef.current) innerRef.current.indeterminate = indeterminate;
@@ -407,7 +424,16 @@ var Checkbox = forwardRef8(function Checkbox2({ label: label4, size, indetermina
407
424
  ...rest
408
425
  }
409
426
  ),
410
- /* @__PURE__ */ jsx8("svg", { className: checkIcon, viewBox: "0 0 20 20", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx8("path", { d: "M5 10.5l3.2 3L15 7", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }),
427
+ /* @__PURE__ */ jsx8("svg", { className: checkIcon, viewBox: "0 0 20 20", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx8(
428
+ "path",
429
+ {
430
+ d: "M5 10.5l3.2 3L15 7",
431
+ stroke: "currentColor",
432
+ strokeWidth: "2",
433
+ strokeLinecap: "round",
434
+ strokeLinejoin: "round"
435
+ }
436
+ ) }),
411
437
  /* @__PURE__ */ jsx8("svg", { className: indeterminateIcon, viewBox: "0 0 20 20", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx8("path", { d: "M6 10h8", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) })
412
438
  ] }),
413
439
  label4
@@ -425,7 +451,7 @@ var line = "_1t3gq8v4";
425
451
 
426
452
  // src/components/Divider/Divider.tsx
427
453
  import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
428
- var Divider = forwardRef9(function Divider2({ orientation = "horizontal", decorative, className, children, ...rest }, ref) {
454
+ var Divider = /* @__PURE__ */ forwardRef9(function Divider2({ orientation = "horizontal", decorative, className, children, ...rest }, ref) {
429
455
  if (children && orientation === "horizontal") {
430
456
  return /* @__PURE__ */ jsxs7("div", { ref, className: cx(labeled, className), ...rest, children: [
431
457
  /* @__PURE__ */ jsx9("span", { className: line, "aria-hidden": true }),
@@ -455,33 +481,39 @@ import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
455
481
  var DropdownMenu = RadixMenu.Root;
456
482
  var DropdownMenuTrigger = RadixMenu.Trigger;
457
483
  var DropdownMenuGroup = RadixMenu.Group;
458
- var DropdownMenuContent = forwardRef10(function DropdownMenuContent2({ className, style, side = "bottom", align = "start", sideOffset = 4, collisionPadding = 8, ...rest }, ref) {
459
- const portal2 = usePortalProps();
460
- return /* @__PURE__ */ jsx10(RadixMenu.Portal, { children: /* @__PURE__ */ jsx10(
461
- RadixMenu.Content,
462
- {
463
- ref,
464
- side,
465
- align,
466
- sideOffset,
467
- collisionPadding,
468
- className: cx(portal2.className, content2, className),
469
- style: { ...portal2.style, ...style },
470
- ...rest
471
- }
472
- ) });
473
- });
474
- var DropdownMenuItem = forwardRef10(function DropdownMenuItem2({ icon: icon5, shortcut: shortcut2, color = "default", className, children, ...rest }, ref) {
475
- return /* @__PURE__ */ jsxs8(RadixMenu.Item, { ref, className: cx(item2, color === "danger" && danger, className), ...rest, children: [
476
- icon5 && /* @__PURE__ */ jsx10("span", { className: icon3, "aria-hidden": true, children: icon5 }),
477
- children,
478
- shortcut2 && /* @__PURE__ */ jsx10("span", { className: shortcut, "aria-hidden": true, children: shortcut2 })
479
- ] });
480
- });
481
- var DropdownMenuLabel = forwardRef10(function DropdownMenuLabel2({ className, ...rest }, ref) {
482
- return /* @__PURE__ */ jsx10(RadixMenu.Label, { ref, className: cx(label, className), ...rest });
483
- });
484
- var DropdownMenuSeparator = forwardRef10(
484
+ var DropdownMenuContent = /* @__PURE__ */ forwardRef10(
485
+ function DropdownMenuContent2({ className, style, side = "bottom", align = "start", sideOffset = 4, collisionPadding = 8, ...rest }, ref) {
486
+ const portal2 = usePortalProps();
487
+ return /* @__PURE__ */ jsx10(RadixMenu.Portal, { children: /* @__PURE__ */ jsx10(
488
+ RadixMenu.Content,
489
+ {
490
+ ref,
491
+ side,
492
+ align,
493
+ sideOffset,
494
+ collisionPadding,
495
+ className: cx(portal2.className, content2, className),
496
+ style: { ...portal2.style, ...style },
497
+ ...rest
498
+ }
499
+ ) });
500
+ }
501
+ );
502
+ var DropdownMenuItem = /* @__PURE__ */ forwardRef10(
503
+ function DropdownMenuItem2({ icon: icon5, shortcut: shortcut2, color = "default", className, children, ...rest }, ref) {
504
+ return /* @__PURE__ */ jsxs8(RadixMenu.Item, { ref, className: cx(item2, color === "danger" && danger, className), ...rest, children: [
505
+ icon5 && /* @__PURE__ */ jsx10("span", { className: icon3, "aria-hidden": true, children: icon5 }),
506
+ children,
507
+ shortcut2 && /* @__PURE__ */ jsx10("span", { className: shortcut, "aria-hidden": true, children: shortcut2 })
508
+ ] });
509
+ }
510
+ );
511
+ var DropdownMenuLabel = /* @__PURE__ */ forwardRef10(
512
+ function DropdownMenuLabel2({ className, ...rest }, ref) {
513
+ return /* @__PURE__ */ jsx10(RadixMenu.Label, { ref, className: cx(label, className), ...rest });
514
+ }
515
+ );
516
+ var DropdownMenuSeparator = /* @__PURE__ */ forwardRef10(
485
517
  function DropdownMenuSeparator2({ className, ...rest }, ref) {
486
518
  return /* @__PURE__ */ jsx10(RadixMenu.Separator, { ref, className: cx(separator, className), ...rest });
487
519
  }
@@ -503,7 +535,7 @@ var root5 = _7a4688({ defaultClassName: "_19p5zvh0", variantClassNames: { size:
503
535
 
504
536
  // src/components/Input/Input.tsx
505
537
  import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
506
- var Input = forwardRef11(function Input2({ size, invalid, fullWidth, startAdornment, endAdornment, rootClassName, className, disabled, ...rest }, ref) {
538
+ var Input = /* @__PURE__ */ forwardRef11(function Input2({ size, invalid, fullWidth, startAdornment, endAdornment, rootClassName, className, disabled, ...rest }, ref) {
507
539
  return /* @__PURE__ */ jsxs9(
508
540
  "div",
509
541
  {
@@ -531,7 +563,7 @@ var Input = forwardRef11(function Input2({ size, invalid, fullWidth, startAdornm
531
563
  // src/components/Input/TextField.tsx
532
564
  import { forwardRef as forwardRef12, useId } from "react";
533
565
  import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
534
- var TextField = forwardRef12(function TextField2({ label: label4, helperText: helperText2, error, required, fullWidth, id, "aria-describedby": ariaDescribedBy, ...rest }, ref) {
566
+ var TextField = /* @__PURE__ */ forwardRef12(function TextField2({ label: label4, helperText: helperText2, error, required, fullWidth, id, "aria-describedby": ariaDescribedBy, ...rest }, ref) {
535
567
  const generatedId = useId();
536
568
  const inputId = id ?? generatedId;
537
569
  const helperId = helperText2 ? `${inputId}-helper` : void 0;
@@ -655,7 +687,7 @@ var list = "_1iraoak0";
655
687
  // src/components/Pagination/Pagination.tsx
656
688
  import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
657
689
  var defaultItemLabel = (type, page) => type === "previous" ? "\uC774\uC804 \uD398\uC774\uC9C0" : type === "next" ? "\uB2E4\uC74C \uD398\uC774\uC9C0" : `${page} \uD398\uC774\uC9C0`;
658
- var Pagination = forwardRef13(function Pagination2({
690
+ var Pagination = /* @__PURE__ */ forwardRef13(function Pagination2({
659
691
  totalPages,
660
692
  page: pageProp,
661
693
  defaultPage = 1,
@@ -792,7 +824,7 @@ var text = "_1w9iwjmb";
792
824
 
793
825
  // src/components/RadioGroup/RadioGroup.tsx
794
826
  import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
795
- var RadioGroup = forwardRef14(function RadioGroup2(props, ref) {
827
+ var RadioGroup = /* @__PURE__ */ forwardRef14(function RadioGroup2(props, ref) {
796
828
  const {
797
829
  options,
798
830
  value: value2,
@@ -881,7 +913,7 @@ var viewport = "_1kx81e84";
881
913
 
882
914
  // src/components/Select/Select.tsx
883
915
  import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
884
- var Select = forwardRef15(function Select2(props, ref) {
916
+ var Select = /* @__PURE__ */ forwardRef15(function Select2(props, ref) {
885
917
  const {
886
918
  options,
887
919
  value: value2,
@@ -980,7 +1012,7 @@ var width = "var(--_1s8datd0)";
980
1012
  // src/components/Skeleton/Skeleton.tsx
981
1013
  import { jsx as jsx18 } from "react/jsx-runtime";
982
1014
  var toCss = (value2) => typeof value2 === "number" ? `${value2}px` : value2;
983
- var Skeleton = forwardRef16(function Skeleton2({ variant = "text", width: width2, height: height2, lines: lines2 = 1, className, style, ...rest }, ref) {
1015
+ var Skeleton = /* @__PURE__ */ forwardRef16(function Skeleton2({ variant = "text", width: width2, height: height2, lines: lines2 = 1, className, style, ...rest }, ref) {
984
1016
  const w = toCss(width2 ?? (variant === "circle" ? 40 : "100%"));
985
1017
  const h = toCss(height2 ?? (variant === "circle" ? w : variant === "rect" ? 100 : "1em"));
986
1018
  if (variant === "text" && lines2 > 1) {
@@ -1024,15 +1056,8 @@ var stack = _7a46813({ defaultClassName: "_1jz9hj90", variantClassNames: { direc
1024
1056
 
1025
1057
  // src/components/Stack/Stack.tsx
1026
1058
  import { jsx as jsx19 } from "react/jsx-runtime";
1027
- var Stack = forwardRef17(function Stack2({ as: Component = "div", direction, gap, align, justify, wrap, className, ...rest }, ref) {
1028
- return /* @__PURE__ */ jsx19(
1029
- Component,
1030
- {
1031
- ref,
1032
- className: cx(stack({ direction, gap, align, justify, wrap }), className),
1033
- ...rest
1034
- }
1035
- );
1059
+ var Stack = /* @__PURE__ */ forwardRef17(function Stack2({ as: Component = "div", direction, gap, align, justify, wrap, className, ...rest }, ref) {
1060
+ return /* @__PURE__ */ jsx19(Component, { ref, className: cx(stack({ direction, gap, align, justify, wrap }), className), ...rest });
1036
1061
  });
1037
1062
 
1038
1063
  // src/components/Switch/Switch.tsx
@@ -1048,7 +1073,7 @@ var track = _7a46814({ defaultClassName: "o33ul23", variantClassNames: { size: {
1048
1073
 
1049
1074
  // src/components/Switch/Switch.tsx
1050
1075
  import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
1051
- var Switch = forwardRef18(function Switch2({ label: label4, size, id, className, disabled, "aria-label": ariaLabel, ...rest }, ref) {
1076
+ var Switch = /* @__PURE__ */ forwardRef18(function Switch2({ label: label4, size, id, className, disabled, "aria-label": ariaLabel, ...rest }, ref) {
1052
1077
  const generatedId = useId5();
1053
1078
  const switchId = id ?? generatedId;
1054
1079
  return /* @__PURE__ */ jsxs16("span", { className: cx(root6({ size }), className), "data-disabled": disabled || void 0, children: [
@@ -1080,20 +1105,20 @@ var trigger3 = _7a46815({ defaultClassName: "fvhbtd3", variantClassNames: { vari
1080
1105
 
1081
1106
  // src/components/Tabs/Tabs.tsx
1082
1107
  import { jsx as jsx21 } from "react/jsx-runtime";
1083
- var TabsStyleContext = createContext2({ variant: "line", size: "md" });
1084
- var Tabs = forwardRef19(function Tabs2({ variant = "line", size = "md", ...props }, ref) {
1108
+ var TabsStyleContext = /* @__PURE__ */ createContext2({ variant: "line", size: "md" });
1109
+ var Tabs = /* @__PURE__ */ forwardRef19(function Tabs2({ variant = "line", size = "md", ...props }, ref) {
1085
1110
  const controlled = "value" in props ? { value: props.value ?? "" } : {};
1086
1111
  return /* @__PURE__ */ jsx21(TabsStyleContext.Provider, { value: { variant, size }, children: /* @__PURE__ */ jsx21(RadixTabs.Root, { ref, ...props, ...controlled }) });
1087
1112
  });
1088
- var TabsList = forwardRef19(function TabsList2({ className, ...rest }, ref) {
1113
+ var TabsList = /* @__PURE__ */ forwardRef19(function TabsList2({ className, ...rest }, ref) {
1089
1114
  const { variant } = useContext2(TabsStyleContext);
1090
1115
  return /* @__PURE__ */ jsx21(RadixTabs.List, { ref, className: cx(list2({ variant }), className), ...rest });
1091
1116
  });
1092
- var TabsTrigger = forwardRef19(function TabsTrigger2({ className, ...rest }, ref) {
1117
+ var TabsTrigger = /* @__PURE__ */ forwardRef19(function TabsTrigger2({ className, ...rest }, ref) {
1093
1118
  const { variant, size } = useContext2(TabsStyleContext);
1094
1119
  return /* @__PURE__ */ jsx21(RadixTabs.Trigger, { ref, className: cx(trigger3({ variant, size }), className), ...rest });
1095
1120
  });
1096
- var TabsContent = forwardRef19(function TabsContent2({ className, ...rest }, ref) {
1121
+ var TabsContent = /* @__PURE__ */ forwardRef19(function TabsContent2({ className, ...rest }, ref) {
1097
1122
  return /* @__PURE__ */ jsx21(RadixTabs.Content, { ref, className: cx(content6, className), ...rest });
1098
1123
  });
1099
1124
 
@@ -1119,7 +1144,7 @@ var textarea = _7a46816({ defaultClassName: "_1koawa0", variantClassNames: { siz
1119
1144
  // src/components/Textarea/Textarea.tsx
1120
1145
  import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
1121
1146
  var useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect2;
1122
- var Textarea = forwardRef20(function Textarea2({
1147
+ var Textarea = /* @__PURE__ */ forwardRef20(function Textarea2({
1123
1148
  label: label4,
1124
1149
  helperText: helperText2,
1125
1150
  error,
@@ -1210,7 +1235,7 @@ var viewport2 = "_1g11zvx0";
1210
1235
  // src/components/Toast/Toast.tsx
1211
1236
  import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
1212
1237
  var REMOVE_DELAY = 500;
1213
- var ToastContext = createContext3(null);
1238
+ var ToastContext = /* @__PURE__ */ createContext3(null);
1214
1239
  function ToastProvider({ children, duration = 5e3, label: label4 = "\uC54C\uB9BC" }) {
1215
1240
  const [toasts, setToasts] = useState3([]);
1216
1241
  const nextId = useRef3(0);
@@ -1318,7 +1343,7 @@ var defaultElement = {
1318
1343
  "body-sm": "p",
1319
1344
  caption: "span"
1320
1345
  };
1321
- var Typography = forwardRef21(function Typography2({ variant = "body", as, color, weight, align, truncate, className, ...rest }, ref) {
1346
+ var Typography = /* @__PURE__ */ forwardRef21(function Typography2({ variant = "body", as, color, weight, align, truncate, className, ...rest }, ref) {
1322
1347
  const Component = as ?? defaultElement[variant];
1323
1348
  return /* @__PURE__ */ jsx25(
1324
1349
  Component,