@bison-lab/ui 3.36.0 → 3.38.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/index.mjs CHANGED
@@ -8,7 +8,7 @@ import { AnimatePresence, motion } from "motion/react";
8
8
  import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Label as Label$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Slider as Slider$1, Slot, Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1, unstable_PasswordToggleField } from "radix-ui";
9
9
  import { cva } from "class-variance-authority";
10
10
  import { AlignCenter, AlignLeft, AlignRight, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpDown, Bold, Calendar as Calendar$1, Camera, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsLeft, ChevronsRight, ChevronsUpDown, Circle, CircleAlert, CircleCheck, CircleHelp, CircleX, Code, Eye, EyeOff, Facebook, FastForward, FileQuestion, Heading1, Heading2, Heading3, Image, Inbox, Info, Instagram, Italic, Link, Linkedin, List, ListOrdered, LoaderCircle, LogOut, Mail, MapPin, Menu, Minus, MoreHorizontal, MoveUpRight, PanelLeft, Pause, Pencil, Phone, Play, Plus, Quote, Redo, Search, Server, Settings2, ShieldAlert, Star, Strikethrough, TriangleAlert, Twitter, Underline, Undo, Unlink, Wrench, X, Youtube } from "lucide-react";
11
- import { DayPicker } from "react-day-picker";
11
+ import { DayPicker, getDefaultClassNames } from "react-day-picker";
12
12
  import useEmblaCarousel from "embla-carousel-react";
13
13
  import { endOfMonth, endOfWeek, format, startOfMonth, startOfWeek, startOfYear, subDays, subMonths, subYears } from "date-fns";
14
14
  import { EditorContent, useEditor } from "@tiptap/react";
@@ -956,49 +956,76 @@ const buttonVariants = cva("relative inline-flex items-center justify-center whi
956
956
  fullWidth: {
957
957
  true: "w-full",
958
958
  false: ""
959
+ },
960
+ withIcon: {
961
+ true: "gap-2 [&_svg]:shrink-0",
962
+ false: ""
959
963
  }
960
964
  },
965
+ compoundVariants: [
966
+ {
967
+ withIcon: true,
968
+ size: "sm",
969
+ class: "[&_svg]:size-3.5"
970
+ },
971
+ {
972
+ withIcon: true,
973
+ size: "md",
974
+ class: "[&_svg]:size-4"
975
+ },
976
+ {
977
+ withIcon: true,
978
+ size: "lg",
979
+ class: "[&_svg]:size-5"
980
+ },
981
+ {
982
+ withIcon: true,
983
+ size: "icon",
984
+ class: "[&_svg]:size-4"
985
+ }
986
+ ],
961
987
  defaultVariants: {
962
988
  variant: "default",
963
989
  size: "md",
964
- fullWidth: false
990
+ fullWidth: false,
991
+ withIcon: false
965
992
  }
966
993
  });
967
- const Button = React.forwardRef(({ className, variant, size, fullWidth, asChild = false, loading = false, disabled, children, ...props }, ref) => {
994
+ const Button = React.forwardRef(({ className, variant, size, fullWidth, withIcon, asChild = false, loading = false, disabled, icon, children, ...props }, ref) => {
968
995
  const Comp = asChild ? Slot.Slot : "button";
996
+ const classes = cn(buttonVariants({
997
+ variant,
998
+ size,
999
+ fullWidth,
1000
+ withIcon: withIcon ?? icon != null
1001
+ }), className);
969
1002
  if (asChild) return /* @__PURE__ */ jsx(Comp, {
970
- className: cn(buttonVariants({
971
- variant,
972
- size,
973
- fullWidth,
974
- className
975
- })),
1003
+ className: classes,
976
1004
  ref,
977
1005
  "aria-busy": loading || void 0,
978
1006
  ...props,
979
1007
  children
980
1008
  });
981
1009
  const spinnerSizeClass = size === "sm" ? "h-3 w-3" : size === "lg" ? "h-5 w-5" : "h-4 w-4";
1010
+ const label = /* @__PURE__ */ jsxs(Fragment, { children: [icon != null && /* @__PURE__ */ jsx("span", {
1011
+ "aria-hidden": "true",
1012
+ children: icon
1013
+ }), children] });
982
1014
  return /* @__PURE__ */ jsx("button", {
983
- className: cn(buttonVariants({
984
- variant,
985
- size,
986
- fullWidth,
987
- className
988
- })),
1015
+ className: classes,
989
1016
  ref,
990
1017
  disabled: disabled || loading,
991
1018
  "aria-busy": loading || void 0,
992
1019
  "data-loading": loading || void 0,
993
1020
  ...props,
994
1021
  children: loading ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
995
- className: "inline-flex items-center justify-center opacity-0",
996
- children
1022
+ className: "inline-flex items-center justify-center gap-[inherit] opacity-0",
1023
+ children: label
997
1024
  }), /* @__PURE__ */ jsx("span", {
998
1025
  "aria-hidden": "true",
999
1026
  className: "pointer-events-none absolute inset-0 flex items-center justify-center",
1000
1027
  children: /* @__PURE__ */ jsx(LoaderCircle, { className: cn("animate-spin", spinnerSizeClass) })
1001
- })] }) : children
1028
+ })] }) : label
1002
1029
  });
1003
1030
  });
1004
1031
  Button.displayName = "Button";
@@ -1043,16 +1070,38 @@ const inputFocusClasses = "focus-visible:outline-none focus-visible:border-prima
1043
1070
  * `'md'` (the default) is byte-identical to the original fixed sizing this
1044
1071
  * function replaced — every existing caller passes `'md'` explicitly and
1045
1072
  * renders unchanged.
1073
+ *
1074
+ * `lg` restates its type size in the `sm:` variant because
1075
+ * {@link inputSurfaceClasses} sets `text-base sm:text-sm`: an unprefixed
1076
+ * `text-base` loses to that variant at every width from 640px up, which left
1077
+ * `lg` the right height at the wrong type size. tailwind-merge drops the
1078
+ * surface's `sm:text-sm` once the same variant is restated.
1046
1079
  */
1047
1080
  const inputSizingClassesBySize = {
1048
1081
  sm: "h-[var(--density-height-sm)] px-3 py-1 text-sm pointer-coarse:min-h-11",
1049
1082
  md: "h-[var(--density-height-md)] px-3 py-2 pointer-coarse:min-h-11",
1050
- lg: "h-[var(--density-height-lg)] px-3 py-2.5 text-base pointer-coarse:min-h-11"
1083
+ lg: "h-[var(--density-height-lg)] px-3 py-2.5 text-base sm:text-base pointer-coarse:min-h-11"
1051
1084
  };
1052
1085
  function inputSizingClasses(size = "md") {
1053
1086
  return inputSizingClassesBySize[size];
1054
1087
  }
1055
1088
  /**
1089
+ * Multi-line sizing. A textarea cannot take a density height — locking one to
1090
+ * `--density-height-sm` would leave a single cramped row — so it scales its
1091
+ * type and padding on the same steps as {@link inputSizingClasses} and keeps a
1092
+ * `min-h` the author can grow with `rows` or a className.
1093
+ *
1094
+ * `'md'` is byte-identical to the fixed sizing this replaced.
1095
+ */
1096
+ const textareaSizingClassesBySize = {
1097
+ sm: "min-h-[64px] px-3 py-1 text-sm",
1098
+ md: "min-h-[80px] px-3 py-2",
1099
+ lg: "min-h-[96px] px-3 py-2.5 text-base sm:text-base"
1100
+ };
1101
+ function textareaSizingClasses(size = "md") {
1102
+ return textareaSizingClassesBySize[size];
1103
+ }
1104
+ /**
1056
1105
  * Minimum 44px tap target on touch (coarse) pointers, applied to the element
1057
1106
  * itself. For standalone icon buttons that can safely grow their box on touch
1058
1107
  * without crowding neighbors (e.g. Dialog / Sheet close). Pair with
@@ -1122,11 +1171,11 @@ const overlayScrimClasses = "fixed inset-0 z-[var(--z-modal-backdrop)] bg-black/
1122
1171
  const centeredModalContentClasses = "fixed left-[50%] top-[50%] z-[var(--z-modal)] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg rounded-lg data-[state=open]:bison-modal-in data-[state=closed]:bison-modal-out";
1123
1172
  //#endregion
1124
1173
  //#region src/components/input.tsx
1125
- const Input = React.forwardRef(({ className, type, ...props }, ref) => {
1174
+ const Input = React.forwardRef(({ className, type, size = "md", ...props }, ref) => {
1126
1175
  const fieldProps = useFieldControl(props);
1127
1176
  return /* @__PURE__ */ jsx("input", {
1128
1177
  type,
1129
- className: cn(inputSurfaceClasses, inputSizingClasses("md"), inputFocusClasses, "file:border-0 file:bg-transparent file:text-base file:font-medium sm:file:text-sm", className),
1178
+ className: cn(inputSurfaceClasses, inputSizingClasses(size), inputFocusClasses, "file:border-0 file:bg-transparent file:text-base file:font-medium sm:file:text-sm", className),
1130
1179
  ref,
1131
1180
  ...fieldProps
1132
1181
  });
@@ -1134,12 +1183,12 @@ const Input = React.forwardRef(({ className, type, ...props }, ref) => {
1134
1183
  Input.displayName = "Input";
1135
1184
  //#endregion
1136
1185
  //#region src/components/password-input.tsx
1137
- const PasswordInput = React.forwardRef(({ className, toggleLabel = "Show or hide password", ...props }, ref) => {
1186
+ const PasswordInput = React.forwardRef(({ className, toggleLabel = "Show or hide password", size = "md", ...props }, ref) => {
1138
1187
  const fieldProps = useFieldControl(props);
1139
1188
  return /* @__PURE__ */ jsx(unstable_PasswordToggleField.Root, { children: /* @__PURE__ */ jsxs("div", {
1140
1189
  className: "relative",
1141
1190
  children: [/* @__PURE__ */ jsx(unstable_PasswordToggleField.Input, {
1142
- className: cn(inputSurfaceClasses, inputSizingClasses("md"), inputFocusClasses, "pr-10 file:border-0 file:bg-transparent file:text-base file:font-medium sm:file:text-sm", className),
1191
+ className: cn(inputSurfaceClasses, inputSizingClasses(size), inputFocusClasses, "pr-10 file:border-0 file:bg-transparent file:text-base file:font-medium sm:file:text-sm", className),
1143
1192
  ref,
1144
1193
  ...fieldProps
1145
1194
  }), /* @__PURE__ */ jsx(unstable_PasswordToggleField.Toggle, {
@@ -1237,7 +1286,7 @@ function fromCents(cents) {
1237
1286
  if (cents <= 0) return "";
1238
1287
  return (cents / 100).toFixed(2);
1239
1288
  }
1240
- const CurrencyInput = React.forwardRef(({ className, value, onChange, symbol = "$", ...props }, ref) => {
1289
+ const CurrencyInput = React.forwardRef(({ className, value, onChange, symbol = "$", size = "md", ...props }, ref) => {
1241
1290
  const fieldProps = useFieldControl(props);
1242
1291
  const [display, setDisplay] = React.useState(() => fromCents(value));
1243
1292
  const prevValue = React.useRef(value);
@@ -1268,7 +1317,7 @@ const CurrencyInput = React.forwardRef(({ className, value, onChange, symbol = "
1268
1317
  value: display,
1269
1318
  onChange: handleChange,
1270
1319
  onBlur: handleBlur,
1271
- className: cn(inputSurfaceClasses, inputSizingClasses("md"), inputFocusClasses, "pl-7 pr-3 text-sm", className),
1320
+ className: cn(inputSurfaceClasses, inputSizingClasses(size), inputFocusClasses, "pl-7 pr-3", className),
1272
1321
  ...fieldProps
1273
1322
  })]
1274
1323
  });
@@ -1415,10 +1464,10 @@ const InputGroup = React.forwardRef(({ label, htmlFor, error, hint, required, la
1415
1464
  InputGroup.displayName = "InputGroup";
1416
1465
  //#endregion
1417
1466
  //#region src/components/textarea.tsx
1418
- const Textarea = React.forwardRef(({ className, ...props }, ref) => {
1467
+ const Textarea = React.forwardRef(({ className, size = "md", ...props }, ref) => {
1419
1468
  const fieldProps = useFieldControl(props);
1420
1469
  return /* @__PURE__ */ jsx("textarea", {
1421
- className: cn(inputSurfaceClasses, "min-h-[80px] px-3 py-2", inputFocusClasses, className),
1470
+ className: cn(inputSurfaceClasses, textareaSizingClasses(size), inputFocusClasses, className),
1422
1471
  ref,
1423
1472
  ...fieldProps
1424
1473
  });
@@ -1429,11 +1478,11 @@ Textarea.displayName = "Textarea";
1429
1478
  const Select = Select$1.Root;
1430
1479
  const SelectGroup = Select$1.Group;
1431
1480
  const SelectValue = Select$1.Value;
1432
- const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => {
1481
+ const SelectTrigger = React.forwardRef(({ className, children, size = "md", ...props }, ref) => {
1433
1482
  const fieldProps = useFieldControl(props);
1434
1483
  return /* @__PURE__ */ jsxs(Select$1.Trigger, {
1435
1484
  ref,
1436
- className: cn(inputSurfaceClasses, inputSizingClasses("md"), inputFocusClasses, "items-center justify-between [&>span]:line-clamp-1", className),
1485
+ className: cn(inputSurfaceClasses, inputSizingClasses(size), inputFocusClasses, "items-center justify-between [&>span]:line-clamp-1", className),
1437
1486
  ...fieldProps,
1438
1487
  children: [children, /* @__PURE__ */ jsx(Select$1.Icon, {
1439
1488
  asChild: true,
@@ -1496,31 +1545,33 @@ SelectSeparator.displayName = Select$1.Separator.displayName;
1496
1545
  //#endregion
1497
1546
  //#region src/components/calendar.tsx
1498
1547
  const Calendar = ({ className, classNames, showOutsideDays = true, ...props }) => {
1548
+ const defaults = getDefaultClassNames();
1549
+ const navButton = cn("inline-flex size-(--cell-size) shrink-0 select-none items-center justify-center rounded-md p-0", "text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground", "aria-disabled:pointer-events-none aria-disabled:opacity-50", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2");
1499
1550
  return /* @__PURE__ */ jsx(DayPicker, {
1500
1551
  showOutsideDays,
1501
- className: cn("p-3", className),
1552
+ className: cn("p-3 [--cell-size:2.25rem]", defaults.root, className),
1502
1553
  classNames: {
1503
- months: "flex flex-col sm:flex-row gap-2",
1504
- month: "flex flex-col gap-4",
1505
- month_caption: "flex justify-center pt-1 relative items-center w-full",
1506
- caption_label: "text-sm font-medium",
1507
- nav: "flex items-center gap-1",
1508
- button_previous: "absolute left-1 inline-flex items-center justify-center h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 border border-input rounded-md z-10",
1509
- button_next: "absolute right-1 inline-flex items-center justify-center h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 border border-input rounded-md z-10",
1510
- month_grid: "w-full border-collapse space-x-1",
1511
- weekdays: "flex",
1512
- weekday: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
1513
- week: "flex w-full mt-2",
1514
- day: cn("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50", props.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"),
1515
- day_button: cn("inline-flex items-center justify-center h-9 w-9 p-0 font-normal aria-selected:opacity-100 rounded-md", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2"),
1516
- range_start: "day-range-start rounded-l-md",
1517
- range_end: "day-range-end rounded-r-md",
1518
- selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
1519
- today: "bg-accent text-accent-foreground",
1520
- outside: "day-outside text-muted-foreground aria-selected:text-muted-foreground",
1521
- disabled: "text-muted-foreground",
1522
- range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
1523
- hidden: "invisible",
1554
+ months: cn("relative flex flex-col gap-4 sm:flex-row", defaults.months),
1555
+ month: cn("flex w-full flex-col gap-4", defaults.month),
1556
+ nav: cn("absolute inset-x-0 top-0 flex h-(--cell-size) w-full items-center justify-between gap-1", defaults.nav),
1557
+ button_previous: cn(navButton, defaults.button_previous),
1558
+ button_next: cn(navButton, defaults.button_next),
1559
+ month_caption: cn("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", defaults.month_caption),
1560
+ caption_label: cn("select-none text-sm font-medium", defaults.caption_label),
1561
+ month_grid: cn("w-full border-collapse", defaults.month_grid),
1562
+ weekdays: cn("flex", defaults.weekdays),
1563
+ weekday: cn("flex-1 select-none text-[0.8rem] font-normal text-muted-foreground", defaults.weekday),
1564
+ week: cn("mt-2 flex w-full", defaults.week),
1565
+ day: cn("relative aspect-square h-full w-full select-none p-0 text-center focus-within:relative focus-within:z-20", "[&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50", props.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md [&:has([aria-selected].day-range-end)]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md", defaults.day),
1566
+ day_button: cn("inline-flex size-full min-w-(--cell-size) items-center justify-center p-0 text-sm font-normal aria-selected:opacity-100 rounded-md", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2", defaults.day_button),
1567
+ range_start: cn("day-range-start rounded-l-md", defaults.range_start),
1568
+ range_end: cn("day-range-end rounded-r-md", defaults.range_end),
1569
+ selected: cn("bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground", defaults.selected),
1570
+ today: cn("bg-accent text-accent-foreground", defaults.today),
1571
+ outside: cn("day-outside text-muted-foreground aria-selected:text-muted-foreground", defaults.outside),
1572
+ disabled: cn("text-muted-foreground opacity-50", defaults.disabled),
1573
+ range_middle: cn("aria-selected:bg-accent aria-selected:text-accent-foreground", defaults.range_middle),
1574
+ hidden: cn("invisible", defaults.hidden),
1524
1575
  ...classNames
1525
1576
  },
1526
1577
  components: { Chevron: ({ orientation }) => orientation === "left" ? /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" }) },
@@ -1667,7 +1718,7 @@ const PopoverContent = React.forwardRef(({ className, align = "center", sideOffs
1667
1718
  PopoverContent.displayName = Popover$1.Content.displayName;
1668
1719
  //#endregion
1669
1720
  //#region src/components/date-picker.tsx
1670
- const DatePicker = React.forwardRef(({ value, onChange, placeholder = "Pick a date", dateFormat = "PPP", disabled = false, className, fromDate, toDate, disabledDates }, ref) => {
1721
+ const DatePicker = React.forwardRef(({ value, onChange, placeholder = "Pick a date", dateFormat = "PPP", disabled = false, className, fromDate, toDate, disabledDates, calendarLabel = "Choose a date", size = "md" }, ref) => {
1671
1722
  const fieldProps = useFieldControl({});
1672
1723
  const [open, setOpen] = React.useState(false);
1673
1724
  const handleSelect = (date) => {
@@ -1682,6 +1733,7 @@ const DatePicker = React.forwardRef(({ value, onChange, placeholder = "Pick a da
1682
1733
  children: /* @__PURE__ */ jsxs(Button, {
1683
1734
  ref,
1684
1735
  variant: "outline",
1736
+ size,
1685
1737
  disabled,
1686
1738
  className: cn("w-full justify-start text-left font-normal", !value && "text-muted-foreground", className),
1687
1739
  ...fieldProps,
@@ -1690,6 +1742,7 @@ const DatePicker = React.forwardRef(({ value, onChange, placeholder = "Pick a da
1690
1742
  }), /* @__PURE__ */ jsx(PopoverContent, {
1691
1743
  className: "w-auto p-0",
1692
1744
  align: "start",
1745
+ "aria-label": calendarLabel,
1693
1746
  children: /* @__PURE__ */ jsx(Calendar, {
1694
1747
  mode: "single",
1695
1748
  selected: value,
@@ -1944,7 +1997,7 @@ const dateRangePresets = {
1944
1997
  }
1945
1998
  })
1946
1999
  };
1947
- const DateRangePicker = React.forwardRef(({ value, onChange, placeholder = "Pick a date range", dateFormat = "LLL dd, y", disabled = false, className, presets, numberOfMonths = 2, fromDate, toDate, clearable = true, clearLabel = "Clear date range" }, ref) => {
2000
+ const DateRangePicker = React.forwardRef(({ value, onChange, placeholder = "Pick a date range", dateFormat = "LLL dd, y", disabled = false, className, presets, numberOfMonths = 2, fromDate, toDate, clearable = true, clearLabel = "Clear date range", calendarLabel = "Choose a date range", size = "md" }, ref) => {
1948
2001
  const fieldProps = useFieldControl({});
1949
2002
  const [open, setOpen] = React.useState(false);
1950
2003
  const handlePresetClick = (preset) => {
@@ -1967,6 +2020,7 @@ const DateRangePicker = React.forwardRef(({ value, onChange, placeholder = "Pick
1967
2020
  children: /* @__PURE__ */ jsxs(Button, {
1968
2021
  ref,
1969
2022
  variant: "outline",
2023
+ size,
1970
2024
  disabled,
1971
2025
  className: cn("w-full justify-start text-left font-normal", !value && "text-muted-foreground", showClear && "pr-9", className),
1972
2026
  ...fieldProps,
@@ -1991,6 +2045,7 @@ const DateRangePicker = React.forwardRef(({ value, onChange, placeholder = "Pick
1991
2045
  }), /* @__PURE__ */ jsx(PopoverContent, {
1992
2046
  className: "w-auto p-0",
1993
2047
  align: "start",
2048
+ "aria-label": calendarLabel,
1994
2049
  children: /* @__PURE__ */ jsxs("div", {
1995
2050
  className: cn("flex", presets && presets.length > 0 && "flex-row"),
1996
2051
  children: [presets && presets.length > 0 && /* @__PURE__ */ jsxs("div", {