@j3m-quantum/ui 0.7.10 → 0.7.12

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React8 = require('react');
3
+ var React7 = require('react');
4
4
  var reactSlot = require('@radix-ui/react-slot');
5
5
  var classVarianceAuthority = require('class-variance-authority');
6
6
  var clsx = require('clsx');
@@ -15,7 +15,6 @@ var SliderPrimitive = require('@radix-ui/react-slider');
15
15
  var SelectPrimitive = require('@radix-ui/react-select');
16
16
  var TogglePrimitive = require('@radix-ui/react-toggle');
17
17
  var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
18
- var inputOtp = require('input-otp');
19
18
  var reactHookForm = require('react-hook-form');
20
19
  var LabelPrimitive = require('@radix-ui/react-label');
21
20
  var AvatarPrimitive = require('@radix-ui/react-avatar');
@@ -62,7 +61,7 @@ function _interopNamespace(e) {
62
61
  return Object.freeze(n);
63
62
  }
64
63
 
65
- var React8__namespace = /*#__PURE__*/_interopNamespace(React8);
64
+ var React7__namespace = /*#__PURE__*/_interopNamespace(React7);
66
65
  var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
67
66
  var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
68
67
  var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
@@ -95,8 +94,8 @@ var ResizablePrimitive__namespace = /*#__PURE__*/_interopNamespace(ResizablePrim
95
94
  // src/hooks/use-mobile.ts
96
95
  var MOBILE_BREAKPOINT = 768;
97
96
  function useIsMobile() {
98
- const [isMobile, setIsMobile] = React8__namespace.useState(void 0);
99
- React8__namespace.useEffect(() => {
97
+ const [isMobile, setIsMobile] = React7__namespace.useState(void 0);
98
+ React7__namespace.useEffect(() => {
100
99
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
101
100
  const onChange = () => {
102
101
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -137,7 +136,7 @@ var buttonVariants = classVarianceAuthority.cva(
137
136
  }
138
137
  }
139
138
  );
140
- var Button = React8__namespace.forwardRef(
139
+ var Button = React7__namespace.forwardRef(
141
140
  ({ className, variant, size, asChild = false, ...props }, ref) => {
142
141
  const Comp = asChild ? reactSlot.Slot : "button";
143
142
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -501,7 +500,7 @@ function Slider({
501
500
  max = 100,
502
501
  ...props
503
502
  }) {
504
- const _values = React8__namespace.useMemo(
503
+ const _values = React7__namespace.useMemo(
505
504
  () => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
506
505
  [value, defaultValue, min, max]
507
506
  );
@@ -716,7 +715,7 @@ function NativeSelect({ className, ...props }) {
716
715
  {
717
716
  "data-slot": "native-select",
718
717
  className: cn(
719
- "border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
718
+ "border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground bg-background dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-full border pl-4 py-2 pr-8 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
720
719
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
721
720
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
722
721
  className
@@ -727,7 +726,7 @@ function NativeSelect({ className, ...props }) {
727
726
  /* @__PURE__ */ jsxRuntime.jsx(
728
727
  lucideReact.ChevronDownIcon,
729
728
  {
730
- className: "text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none",
729
+ className: "text-muted-foreground pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 opacity-50 select-none",
731
730
  "aria-hidden": "true",
732
731
  "data-slot": "native-select-icon"
733
732
  }
@@ -753,7 +752,7 @@ function NativeSelectOptGroup({
753
752
  );
754
753
  }
755
754
  var toggleVariants = classVarianceAuthority.cva(
756
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
755
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
757
756
  {
758
757
  variants: {
759
758
  variant: {
@@ -787,7 +786,7 @@ function Toggle({
787
786
  }
788
787
  );
789
788
  }
790
- var ToggleGroupContext = React8__namespace.createContext({
789
+ var ToggleGroupContext = React7__namespace.createContext({
791
790
  size: "default",
792
791
  variant: "default",
793
792
  spacing: 0
@@ -824,7 +823,7 @@ function ToggleGroupItem({
824
823
  size,
825
824
  ...props
826
825
  }) {
827
- const context = React8__namespace.useContext(ToggleGroupContext);
826
+ const context = React7__namespace.useContext(ToggleGroupContext);
828
827
  return /* @__PURE__ */ jsxRuntime.jsx(
829
828
  ToggleGroupPrimitive__namespace.Item,
830
829
  {
@@ -846,61 +845,6 @@ function ToggleGroupItem({
846
845
  }
847
846
  );
848
847
  }
849
- function InputOTP({
850
- className,
851
- containerClassName,
852
- ...props
853
- }) {
854
- return /* @__PURE__ */ jsxRuntime.jsx(
855
- inputOtp.OTPInput,
856
- {
857
- "data-slot": "input-otp",
858
- containerClassName: cn(
859
- "flex items-center gap-2 has-disabled:opacity-50",
860
- containerClassName
861
- ),
862
- className: cn("disabled:cursor-not-allowed", className),
863
- ...props
864
- }
865
- );
866
- }
867
- function InputOTPGroup({ className, ...props }) {
868
- return /* @__PURE__ */ jsxRuntime.jsx(
869
- "div",
870
- {
871
- "data-slot": "input-otp-group",
872
- className: cn("flex items-center", className),
873
- ...props
874
- }
875
- );
876
- }
877
- function InputOTPSlot({
878
- index,
879
- className,
880
- ...props
881
- }) {
882
- const inputOTPContext = React8__namespace.useContext(inputOtp.OTPInputContext);
883
- const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
884
- return /* @__PURE__ */ jsxRuntime.jsxs(
885
- "div",
886
- {
887
- "data-slot": "input-otp-slot",
888
- "data-active": isActive,
889
- className: cn(
890
- "data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",
891
- className
892
- ),
893
- ...props,
894
- children: [
895
- char,
896
- hasFakeCaret && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
897
- ]
898
- }
899
- );
900
- }
901
- function InputOTPSeparator({ ...props }) {
902
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MinusIcon, {}) });
903
- }
904
848
  function Label2({
905
849
  className,
906
850
  ...props
@@ -918,7 +862,7 @@ function Label2({
918
862
  );
919
863
  }
920
864
  var Form = reactHookForm.FormProvider;
921
- var FormFieldContext = React8__namespace.createContext(
865
+ var FormFieldContext = React7__namespace.createContext(
922
866
  {}
923
867
  );
924
868
  var FormField = ({
@@ -927,8 +871,8 @@ var FormField = ({
927
871
  return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
928
872
  };
929
873
  var useFormField = () => {
930
- const fieldContext = React8__namespace.useContext(FormFieldContext);
931
- const itemContext = React8__namespace.useContext(FormItemContext);
874
+ const fieldContext = React7__namespace.useContext(FormFieldContext);
875
+ const itemContext = React7__namespace.useContext(FormItemContext);
932
876
  const { getFieldState } = reactHookForm.useFormContext();
933
877
  const formState = reactHookForm.useFormState({ name: fieldContext.name });
934
878
  const fieldState = getFieldState(fieldContext.name, formState);
@@ -945,11 +889,11 @@ var useFormField = () => {
945
889
  ...fieldState
946
890
  };
947
891
  };
948
- var FormItemContext = React8__namespace.createContext(
892
+ var FormItemContext = React7__namespace.createContext(
949
893
  {}
950
894
  );
951
895
  function FormItem({ className, ...props }) {
952
- const id = React8__namespace.useId();
896
+ const id = React7__namespace.useId();
953
897
  return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx(
954
898
  "div",
955
899
  {
@@ -1197,7 +1141,7 @@ function FieldError({
1197
1141
  errors,
1198
1142
  ...props
1199
1143
  }) {
1200
- const content = React8.useMemo(() => {
1144
+ const content = React7.useMemo(() => {
1201
1145
  if (children) {
1202
1146
  return children;
1203
1147
  }
@@ -1419,7 +1363,7 @@ var badgeVariants = classVarianceAuthority.cva(
1419
1363
  default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
1420
1364
  secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
1421
1365
  destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
1422
- outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
1366
+ outline: "bg-background text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
1423
1367
  }
1424
1368
  },
1425
1369
  defaultVariants: {
@@ -1615,7 +1559,6 @@ function Calendar({
1615
1559
  classNames,
1616
1560
  showOutsideDays = true,
1617
1561
  captionLayout = "label",
1618
- buttonVariant = "ghost",
1619
1562
  formatters,
1620
1563
  components,
1621
1564
  ...props
@@ -1626,7 +1569,7 @@ function Calendar({
1626
1569
  {
1627
1570
  showOutsideDays,
1628
1571
  className: cn(
1629
- "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
1572
+ "bg-card group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent",
1630
1573
  String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
1631
1574
  String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
1632
1575
  className
@@ -1648,13 +1591,11 @@ function Calendar({
1648
1591
  defaultClassNames.nav
1649
1592
  ),
1650
1593
  button_previous: cn(
1651
- buttonVariants({ variant: buttonVariant }),
1652
- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
1594
+ "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none inline-flex items-center justify-center rounded-full hover:bg-muted/50 transition-colors",
1653
1595
  defaultClassNames.button_previous
1654
1596
  ),
1655
1597
  button_next: cn(
1656
- buttonVariants({ variant: buttonVariant }),
1657
- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
1598
+ "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none inline-flex items-center justify-center rounded-full hover:bg-muted/50 transition-colors",
1658
1599
  defaultClassNames.button_next
1659
1600
  ),
1660
1601
  month_caption: cn(
@@ -1705,7 +1646,7 @@ function Calendar({
1705
1646
  range_middle: cn("rounded-none", defaultClassNames.range_middle),
1706
1647
  range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
1707
1648
  today: cn(
1708
- "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
1649
+ "rounded-full [&_button]:ring-2 [&_button]:ring-primary/50",
1709
1650
  defaultClassNames.today
1710
1651
  ),
1711
1652
  outside: cn(
@@ -1762,34 +1703,31 @@ function CalendarDayButton({
1762
1703
  modifiers,
1763
1704
  ...props
1764
1705
  }) {
1765
- const defaultClassNames = reactDayPicker.getDefaultClassNames();
1766
- const ref = React8__namespace.useRef(null);
1767
- React8__namespace.useEffect(() => {
1706
+ const ref = React7__namespace.useRef(null);
1707
+ React7__namespace.useEffect(() => {
1768
1708
  if (modifiers.focused) ref.current?.focus();
1769
1709
  }, [modifiers.focused]);
1770
1710
  return /* @__PURE__ */ jsxRuntime.jsx(
1771
- Button,
1711
+ "button",
1772
1712
  {
1773
1713
  ref,
1774
- variant: "ghost",
1775
- size: "icon",
1714
+ type: "button",
1776
1715
  "data-day": day.date.toLocaleDateString(),
1777
1716
  "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
1778
1717
  "data-range-start": modifiers.range_start,
1779
1718
  "data-range-end": modifiers.range_end,
1780
1719
  "data-range-middle": modifiers.range_middle,
1781
1720
  className: cn(
1782
- "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
1783
- defaultClassNames.day,
1721
+ "rounded-full hover:bg-muted/50 transition-colors data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent/50 data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:ring-ring/50 flex aspect-square size-auto w-full min-w-(--cell-size) items-center justify-center leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
1784
1722
  className
1785
1723
  ),
1786
1724
  ...props
1787
1725
  }
1788
1726
  );
1789
1727
  }
1790
- var CarouselContext = React8__namespace.createContext(null);
1728
+ var CarouselContext = React7__namespace.createContext(null);
1791
1729
  function useCarousel() {
1792
- const context = React8__namespace.useContext(CarouselContext);
1730
+ const context = React7__namespace.useContext(CarouselContext);
1793
1731
  if (!context) {
1794
1732
  throw new Error("useCarousel must be used within a <Carousel />");
1795
1733
  }
@@ -1811,20 +1749,20 @@ function Carousel({
1811
1749
  },
1812
1750
  plugins
1813
1751
  );
1814
- const [canScrollPrev, setCanScrollPrev] = React8__namespace.useState(false);
1815
- const [canScrollNext, setCanScrollNext] = React8__namespace.useState(false);
1816
- const onSelect = React8__namespace.useCallback((api2) => {
1752
+ const [canScrollPrev, setCanScrollPrev] = React7__namespace.useState(false);
1753
+ const [canScrollNext, setCanScrollNext] = React7__namespace.useState(false);
1754
+ const onSelect = React7__namespace.useCallback((api2) => {
1817
1755
  if (!api2) return;
1818
1756
  setCanScrollPrev(api2.canScrollPrev());
1819
1757
  setCanScrollNext(api2.canScrollNext());
1820
1758
  }, []);
1821
- const scrollPrev = React8__namespace.useCallback(() => {
1759
+ const scrollPrev = React7__namespace.useCallback(() => {
1822
1760
  api?.scrollPrev();
1823
1761
  }, [api]);
1824
- const scrollNext = React8__namespace.useCallback(() => {
1762
+ const scrollNext = React7__namespace.useCallback(() => {
1825
1763
  api?.scrollNext();
1826
1764
  }, [api]);
1827
- const handleKeyDown = React8__namespace.useCallback(
1765
+ const handleKeyDown = React7__namespace.useCallback(
1828
1766
  (event) => {
1829
1767
  if (event.key === "ArrowLeft") {
1830
1768
  event.preventDefault();
@@ -1836,11 +1774,11 @@ function Carousel({
1836
1774
  },
1837
1775
  [scrollPrev, scrollNext]
1838
1776
  );
1839
- React8__namespace.useEffect(() => {
1777
+ React7__namespace.useEffect(() => {
1840
1778
  if (!api || !setApi) return;
1841
1779
  setApi(api);
1842
1780
  }, [api, setApi]);
1843
- React8__namespace.useEffect(() => {
1781
+ React7__namespace.useEffect(() => {
1844
1782
  if (!api) return;
1845
1783
  onSelect(api);
1846
1784
  api.on("reInit", onSelect);
@@ -1973,9 +1911,9 @@ function CarouselNext({
1973
1911
  );
1974
1912
  }
1975
1913
  var THEMES = { light: "", dark: ".dark" };
1976
- var ChartContext = React8__namespace.createContext(null);
1914
+ var ChartContext = React7__namespace.createContext(null);
1977
1915
  function useChart() {
1978
- const context = React8__namespace.useContext(ChartContext);
1916
+ const context = React7__namespace.useContext(ChartContext);
1979
1917
  if (!context) {
1980
1918
  throw new Error("useChart must be used within a <ChartContainer />");
1981
1919
  }
@@ -1988,7 +1926,7 @@ function ChartContainer({
1988
1926
  config,
1989
1927
  ...props
1990
1928
  }) {
1991
- const uniqueId = React8__namespace.useId();
1929
+ const uniqueId = React7__namespace.useId();
1992
1930
  const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
1993
1931
  return /* @__PURE__ */ jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxRuntime.jsxs(
1994
1932
  "div",
@@ -2049,7 +1987,7 @@ function ChartTooltipContent({
2049
1987
  labelKey
2050
1988
  }) {
2051
1989
  const { config } = useChart();
2052
- const tooltipLabel = React8__namespace.useMemo(() => {
1990
+ const tooltipLabel = React7__namespace.useMemo(() => {
2053
1991
  if (hideLabel || !payload?.length) {
2054
1992
  return null;
2055
1993
  }
@@ -2772,16 +2710,16 @@ var M = (e, i, s, u, m, a, l, h) => {
2772
2710
  } catch (n) {
2773
2711
  }
2774
2712
  };
2775
- var x = React8__namespace.createContext(void 0);
2713
+ var x = React7__namespace.createContext(void 0);
2776
2714
  var U = { setTheme: (e) => {
2777
2715
  }, themes: [] };
2778
2716
  var z = () => {
2779
2717
  var e;
2780
- return (e = React8__namespace.useContext(x)) != null ? e : U;
2718
+ return (e = React7__namespace.useContext(x)) != null ? e : U;
2781
2719
  };
2782
- React8__namespace.memo(({ forcedTheme: e, storageKey: i, attribute: s, enableSystem: u, enableColorScheme: m, defaultTheme: a, value: l, themes: h, nonce: d, scriptProps: w }) => {
2720
+ React7__namespace.memo(({ forcedTheme: e, storageKey: i, attribute: s, enableSystem: u, enableColorScheme: m, defaultTheme: a, value: l, themes: h, nonce: d, scriptProps: w }) => {
2783
2721
  let p = JSON.stringify([s, i, a, e, h, l, u, m]).slice(1, -1);
2784
- return React8__namespace.createElement("script", { ...w, suppressHydrationWarning: true, nonce: typeof window == "undefined" ? d : "", dangerouslySetInnerHTML: { __html: `(${M.toString()})(${p})` } });
2722
+ return React7__namespace.createElement("script", { ...w, suppressHydrationWarning: true, nonce: typeof window == "undefined" ? d : "", dangerouslySetInnerHTML: { __html: `(${M.toString()})(${p})` } });
2785
2723
  });
2786
2724
  var Toaster = ({ ...props }) => {
2787
2725
  const { theme = "system" } = z();
@@ -4266,7 +4204,7 @@ function SheetHeader({ className, ...props }) {
4266
4204
  "div",
4267
4205
  {
4268
4206
  "data-slot": "sheet-header",
4269
- className: cn("flex flex-col gap-1.5 p-4", className),
4207
+ className: cn("flex flex-col gap-1.5 px-6 py-4", className),
4270
4208
  ...props
4271
4209
  }
4272
4210
  );
@@ -4276,7 +4214,7 @@ function SheetFooter({ className, ...props }) {
4276
4214
  "div",
4277
4215
  {
4278
4216
  "data-slot": "sheet-footer",
4279
- className: cn("mt-auto flex flex-col gap-2 p-4", className),
4217
+ className: cn("mt-auto flex flex-col gap-2 px-6 py-4", className),
4280
4218
  ...props
4281
4219
  }
4282
4220
  );
@@ -4307,6 +4245,16 @@ function SheetDescription({
4307
4245
  }
4308
4246
  );
4309
4247
  }
4248
+ function SheetBody({ className, ...props }) {
4249
+ return /* @__PURE__ */ jsxRuntime.jsx(
4250
+ "div",
4251
+ {
4252
+ "data-slot": "sheet-body",
4253
+ className: cn("flex-1 px-6 py-4", className),
4254
+ ...props
4255
+ }
4256
+ );
4257
+ }
4310
4258
  function Popover({
4311
4259
  ...props
4312
4260
  }) {
@@ -4431,12 +4379,14 @@ function Collapsible({
4431
4379
  return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.Root, { "data-slot": "collapsible", ...props });
4432
4380
  }
4433
4381
  function CollapsibleTrigger2({
4382
+ className,
4434
4383
  ...props
4435
4384
  }) {
4436
4385
  return /* @__PURE__ */ jsxRuntime.jsx(
4437
4386
  CollapsiblePrimitive__namespace.CollapsibleTrigger,
4438
4387
  {
4439
4388
  "data-slot": "collapsible-trigger",
4389
+ className: cn(className),
4440
4390
  ...props
4441
4391
  }
4442
4392
  );
@@ -4502,9 +4452,9 @@ var SIDEBAR_WIDTH = "16rem";
4502
4452
  var SIDEBAR_WIDTH_MOBILE = "18rem";
4503
4453
  var SIDEBAR_WIDTH_ICON = "3rem";
4504
4454
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
4505
- var SidebarContext = React8__namespace.createContext(null);
4455
+ var SidebarContext = React7__namespace.createContext(null);
4506
4456
  function useSidebar() {
4507
- const context = React8__namespace.useContext(SidebarContext);
4457
+ const context = React7__namespace.useContext(SidebarContext);
4508
4458
  if (!context) {
4509
4459
  throw new Error("useSidebar must be used within a SidebarProvider.");
4510
4460
  }
@@ -4520,10 +4470,10 @@ function SidebarProvider({
4520
4470
  ...props
4521
4471
  }) {
4522
4472
  const isMobile = useIsMobile();
4523
- const [openMobile, setOpenMobile] = React8__namespace.useState(false);
4524
- const [_open, _setOpen] = React8__namespace.useState(defaultOpen);
4473
+ const [openMobile, setOpenMobile] = React7__namespace.useState(false);
4474
+ const [_open, _setOpen] = React7__namespace.useState(defaultOpen);
4525
4475
  const open = openProp ?? _open;
4526
- const setOpen = React8__namespace.useCallback(
4476
+ const setOpen = React7__namespace.useCallback(
4527
4477
  (value) => {
4528
4478
  const openState = typeof value === "function" ? value(open) : value;
4529
4479
  if (setOpenProp) {
@@ -4535,10 +4485,10 @@ function SidebarProvider({
4535
4485
  },
4536
4486
  [setOpenProp, open]
4537
4487
  );
4538
- const toggleSidebar = React8__namespace.useCallback(() => {
4488
+ const toggleSidebar = React7__namespace.useCallback(() => {
4539
4489
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
4540
4490
  }, [isMobile, setOpen, setOpenMobile]);
4541
- React8__namespace.useEffect(() => {
4491
+ React7__namespace.useEffect(() => {
4542
4492
  const handleKeyDown = (event) => {
4543
4493
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
4544
4494
  event.preventDefault();
@@ -4549,7 +4499,7 @@ function SidebarProvider({
4549
4499
  return () => window.removeEventListener("keydown", handleKeyDown);
4550
4500
  }, [toggleSidebar]);
4551
4501
  const state = open ? "expanded" : "collapsed";
4552
- const contextValue = React8__namespace.useMemo(
4502
+ const contextValue = React7__namespace.useMemo(
4553
4503
  () => ({
4554
4504
  state,
4555
4505
  open,
@@ -5007,7 +4957,7 @@ function SidebarMenuSkeleton({
5007
4957
  showIcon = false,
5008
4958
  ...props
5009
4959
  }) {
5010
- const width = React8__namespace.useMemo(() => {
4960
+ const width = React7__namespace.useMemo(() => {
5011
4961
  return `${Math.floor(Math.random() * 40) + 50}%`;
5012
4962
  }, []);
5013
4963
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -5151,7 +5101,7 @@ var sectionVariants = classVarianceAuthority.cva(
5151
5101
  }
5152
5102
  );
5153
5103
  var isGlassVariant = (variant) => variant?.startsWith("glass-") ?? false;
5154
- var Section = React8__namespace.forwardRef(
5104
+ var Section = React7__namespace.forwardRef(
5155
5105
  ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5156
5106
  "section",
5157
5107
  {
@@ -5163,7 +5113,7 @@ var Section = React8__namespace.forwardRef(
5163
5113
  )
5164
5114
  );
5165
5115
  Section.displayName = "Section";
5166
- var SectionHeader = React8__namespace.forwardRef(
5116
+ var SectionHeader = React7__namespace.forwardRef(
5167
5117
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5168
5118
  "div",
5169
5119
  {
@@ -5178,7 +5128,7 @@ var SectionHeader = React8__namespace.forwardRef(
5178
5128
  )
5179
5129
  );
5180
5130
  SectionHeader.displayName = "SectionHeader";
5181
- var SectionTitle = React8__namespace.forwardRef(
5131
+ var SectionTitle = React7__namespace.forwardRef(
5182
5132
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5183
5133
  "h2",
5184
5134
  {
@@ -5192,7 +5142,7 @@ var SectionTitle = React8__namespace.forwardRef(
5192
5142
  )
5193
5143
  );
5194
5144
  SectionTitle.displayName = "SectionTitle";
5195
- var SectionDescription = React8__namespace.forwardRef(
5145
+ var SectionDescription = React7__namespace.forwardRef(
5196
5146
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5197
5147
  "p",
5198
5148
  {
@@ -5206,7 +5156,7 @@ var SectionDescription = React8__namespace.forwardRef(
5206
5156
  )
5207
5157
  );
5208
5158
  SectionDescription.displayName = "SectionDescription";
5209
- var SectionContent = React8__namespace.forwardRef(
5159
+ var SectionContent = React7__namespace.forwardRef(
5210
5160
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5211
5161
  "div",
5212
5162
  {
@@ -5220,7 +5170,7 @@ var SectionContent = React8__namespace.forwardRef(
5220
5170
  )
5221
5171
  );
5222
5172
  SectionContent.displayName = "SectionContent";
5223
- var SectionFooter = React8__namespace.forwardRef(
5173
+ var SectionFooter = React7__namespace.forwardRef(
5224
5174
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5225
5175
  "div",
5226
5176
  {
@@ -5386,10 +5336,6 @@ exports.InputGroupButton = InputGroupButton;
5386
5336
  exports.InputGroupInput = InputGroupInput;
5387
5337
  exports.InputGroupText = InputGroupText;
5388
5338
  exports.InputGroupTextarea = InputGroupTextarea;
5389
- exports.InputOTP = InputOTP;
5390
- exports.InputOTPGroup = InputOTPGroup;
5391
- exports.InputOTPSeparator = InputOTPSeparator;
5392
- exports.InputOTPSlot = InputOTPSlot;
5393
5339
  exports.Item = Item5;
5394
5340
  exports.ItemActions = ItemActions;
5395
5341
  exports.ItemContent = ItemContent;
@@ -5467,6 +5413,7 @@ exports.SelectTrigger = SelectTrigger;
5467
5413
  exports.SelectValue = SelectValue;
5468
5414
  exports.Separator = Separator;
5469
5415
  exports.Sheet = Sheet;
5416
+ exports.SheetBody = SheetBody;
5470
5417
  exports.SheetClose = SheetClose;
5471
5418
  exports.SheetContent = SheetContent;
5472
5419
  exports.SheetDescription = SheetDescription;