@onesaz/ui 0.4.1 → 0.4.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
@@ -2642,19 +2642,19 @@ var variantConfig = {
2642
2642
  iconColor: "text-accent"
2643
2643
  },
2644
2644
  success: {
2645
- root: "bg-success-500/10",
2645
+ root: "bg-success-50",
2646
2646
  strip: "bg-success-500",
2647
- iconColor: "text-success-600 dark:text-success-500"
2647
+ iconColor: "text-success-600"
2648
2648
  },
2649
2649
  warning: {
2650
- root: "bg-warning-500/10",
2650
+ root: "bg-warning-50",
2651
2651
  strip: "bg-warning-500",
2652
- iconColor: "text-warning-600 dark:text-warning-500"
2652
+ iconColor: "text-warning-600"
2653
2653
  },
2654
2654
  error: {
2655
- root: "bg-error-500/10",
2655
+ root: "bg-error-50",
2656
2656
  strip: "bg-error-500",
2657
- iconColor: "text-error-600 dark:text-error-500"
2657
+ iconColor: "text-error-600"
2658
2658
  }
2659
2659
  };
2660
2660
  var InfoIcon = () => /* @__PURE__ */ jsxs14(
@@ -7777,15 +7777,327 @@ var DropdownMenuShortcut = ({
7777
7777
  };
7778
7778
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
7779
7779
 
7780
- // src/components/drawer.tsx
7780
+ // src/components/backdrop.tsx
7781
7781
  import * as React43 from "react";
7782
+ import { createPortal } from "react-dom";
7783
+ import { jsx as jsx43 } from "react/jsx-runtime";
7784
+ var Backdrop = React43.forwardRef(
7785
+ ({
7786
+ open,
7787
+ invisible = false,
7788
+ transitionDuration = 225,
7789
+ keepMounted = false,
7790
+ disablePortal = false,
7791
+ disableScrollLock = false,
7792
+ className,
7793
+ children,
7794
+ onClick,
7795
+ ...props
7796
+ }, ref) => {
7797
+ const [mounted, setMounted] = React43.useState(open);
7798
+ const [visible, setVisible] = React43.useState(false);
7799
+ React43.useEffect(() => {
7800
+ if (open) {
7801
+ setMounted(true);
7802
+ const raf = requestAnimationFrame(() => setVisible(true));
7803
+ return () => cancelAnimationFrame(raf);
7804
+ } else {
7805
+ setVisible(false);
7806
+ if (!keepMounted) {
7807
+ const t = setTimeout(() => setMounted(false), transitionDuration);
7808
+ return () => clearTimeout(t);
7809
+ }
7810
+ }
7811
+ }, [open, keepMounted, transitionDuration]);
7812
+ React43.useEffect(() => {
7813
+ if (disableScrollLock) return;
7814
+ if (open) {
7815
+ const prev = document.body.style.overflow;
7816
+ document.body.style.overflow = "hidden";
7817
+ return () => {
7818
+ document.body.style.overflow = prev;
7819
+ };
7820
+ }
7821
+ }, [open, disableScrollLock]);
7822
+ if (!mounted) return null;
7823
+ const node = /* @__PURE__ */ jsx43(
7824
+ "div",
7825
+ {
7826
+ ref,
7827
+ "aria-hidden": "true",
7828
+ onClick,
7829
+ style: { transitionDuration: `${transitionDuration}ms` },
7830
+ className: cn(
7831
+ "fixed inset-0 z-50 flex items-center justify-center transition-opacity",
7832
+ invisible ? "bg-transparent" : "bg-black/50",
7833
+ visible ? "opacity-100" : "opacity-0",
7834
+ !visible && "pointer-events-none",
7835
+ className
7836
+ ),
7837
+ ...props,
7838
+ children
7839
+ }
7840
+ );
7841
+ if (disablePortal || typeof document === "undefined") return node;
7842
+ return createPortal(node, document.body);
7843
+ }
7844
+ );
7845
+ Backdrop.displayName = "Backdrop";
7846
+
7847
+ // src/components/snackbar.tsx
7848
+ import * as React44 from "react";
7849
+ import { createPortal as createPortal2 } from "react-dom";
7850
+ import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
7851
+ var SnackbarContent = React44.forwardRef(
7852
+ ({ className, message, action, ...props }, ref) => /* @__PURE__ */ jsxs28(
7853
+ "div",
7854
+ {
7855
+ ref,
7856
+ role: "alert",
7857
+ className: cn(
7858
+ "flex items-center gap-3 min-w-72 max-w-[568px] rounded-lg px-4 py-3 text-sm shadow-lg",
7859
+ "bg-foreground text-background",
7860
+ className
7861
+ ),
7862
+ ...props,
7863
+ children: [
7864
+ /* @__PURE__ */ jsx44("span", { className: "flex-1", children: message }),
7865
+ action && /* @__PURE__ */ jsx44("span", { className: "shrink-0", children: action })
7866
+ ]
7867
+ }
7868
+ )
7869
+ );
7870
+ SnackbarContent.displayName = "SnackbarContent";
7871
+ var anchorClasses = {
7872
+ "top-left": "top-4 left-4",
7873
+ "top-center": "top-4 left-1/2 -translate-x-1/2",
7874
+ "top-right": "top-4 right-4",
7875
+ "bottom-left": "bottom-4 left-4",
7876
+ "bottom-center": "bottom-4 left-1/2 -translate-x-1/2",
7877
+ "bottom-right": "bottom-4 right-4"
7878
+ };
7879
+ var Snackbar = React44.forwardRef(
7880
+ ({
7881
+ open,
7882
+ message,
7883
+ action,
7884
+ autoHideDuration = 6e3,
7885
+ onClose,
7886
+ anchorOrigin = { vertical: "bottom", horizontal: "left" },
7887
+ transitionDuration = 225,
7888
+ disableWindowBlurListener = false,
7889
+ disablePortal = false,
7890
+ className,
7891
+ children,
7892
+ ...props
7893
+ }, ref) => {
7894
+ const [mounted, setMounted] = React44.useState(open);
7895
+ const [visible, setVisible] = React44.useState(false);
7896
+ const timer = React44.useRef(null);
7897
+ const posKey = `${anchorOrigin.vertical}-${anchorOrigin.horizontal}`;
7898
+ const position = anchorClasses[posKey] ?? anchorClasses["bottom-left"];
7899
+ const slideDir = anchorOrigin.vertical === "top" ? "-8px" : "8px";
7900
+ const clearTimer = React44.useCallback(() => {
7901
+ if (timer.current) clearTimeout(timer.current);
7902
+ }, []);
7903
+ const startTimer = React44.useCallback(() => {
7904
+ if (!autoHideDuration) return;
7905
+ clearTimer();
7906
+ timer.current = setTimeout(() => onClose?.(null, "timeout"), autoHideDuration);
7907
+ }, [autoHideDuration, onClose, clearTimer]);
7908
+ React44.useEffect(() => {
7909
+ if (open) {
7910
+ setMounted(true);
7911
+ const raf = requestAnimationFrame(() => setVisible(true));
7912
+ return () => cancelAnimationFrame(raf);
7913
+ } else {
7914
+ setVisible(false);
7915
+ const t = setTimeout(() => setMounted(false), transitionDuration);
7916
+ return () => clearTimeout(t);
7917
+ }
7918
+ }, [open, transitionDuration]);
7919
+ React44.useEffect(() => {
7920
+ if (open) {
7921
+ startTimer();
7922
+ return clearTimer;
7923
+ }
7924
+ }, [open, startTimer, clearTimer]);
7925
+ React44.useEffect(() => {
7926
+ if (disableWindowBlurListener || !open) return;
7927
+ window.addEventListener("blur", clearTimer);
7928
+ window.addEventListener("focus", startTimer);
7929
+ return () => {
7930
+ window.removeEventListener("blur", clearTimer);
7931
+ window.removeEventListener("focus", startTimer);
7932
+ };
7933
+ }, [open, disableWindowBlurListener, clearTimer, startTimer]);
7934
+ React44.useEffect(() => {
7935
+ if (!open) return;
7936
+ const onKey = (e) => {
7937
+ if (e.key === "Escape") {
7938
+ e.stopPropagation();
7939
+ onClose?.(e, "escapeKeyDown");
7940
+ }
7941
+ };
7942
+ document.addEventListener("keydown", onKey);
7943
+ return () => document.removeEventListener("keydown", onKey);
7944
+ }, [open, onClose]);
7945
+ if (!mounted) return null;
7946
+ const node = /* @__PURE__ */ jsx44(
7947
+ "div",
7948
+ {
7949
+ ref,
7950
+ className: cn("fixed z-[1400]", position, className),
7951
+ style: {
7952
+ opacity: visible ? 1 : 0,
7953
+ transform: visible ? "translateY(0)" : `translateY(${slideDir})`,
7954
+ transition: `opacity ${transitionDuration}ms ease, transform ${transitionDuration}ms ease`
7955
+ },
7956
+ onMouseEnter: clearTimer,
7957
+ onMouseLeave: startTimer,
7958
+ ...props,
7959
+ children: children ?? /* @__PURE__ */ jsx44(SnackbarContent, { message, action })
7960
+ }
7961
+ );
7962
+ if (disablePortal || typeof document === "undefined") return node;
7963
+ return createPortal2(node, document.body);
7964
+ }
7965
+ );
7966
+ Snackbar.displayName = "Snackbar";
7967
+ function ManagedRow({ item, vertical, transitionDuration, onRemove }) {
7968
+ const [visible, setVisible] = React44.useState(false);
7969
+ const timer = React44.useRef(null);
7970
+ const slideDir = vertical === "top" ? "-8px" : "8px";
7971
+ const clearTimer = React44.useCallback(() => {
7972
+ if (timer.current) clearTimeout(timer.current);
7973
+ }, []);
7974
+ const startTimer = React44.useCallback(() => {
7975
+ if (!item.autoHideDuration) return;
7976
+ clearTimer();
7977
+ timer.current = setTimeout(() => {
7978
+ onRemove(item.key);
7979
+ item.onClose?.();
7980
+ }, item.autoHideDuration);
7981
+ }, [item, onRemove, clearTimer]);
7982
+ React44.useEffect(() => {
7983
+ const raf = requestAnimationFrame(() => setVisible(true));
7984
+ return () => cancelAnimationFrame(raf);
7985
+ }, []);
7986
+ React44.useEffect(() => {
7987
+ startTimer();
7988
+ return clearTimer;
7989
+ }, [startTimer, clearTimer]);
7990
+ return /* @__PURE__ */ jsx44(
7991
+ "div",
7992
+ {
7993
+ style: {
7994
+ opacity: visible ? 1 : 0,
7995
+ transform: visible ? "translateY(0)" : `translateY(${slideDir})`,
7996
+ transition: `opacity ${transitionDuration}ms ease, transform ${transitionDuration}ms ease`
7997
+ },
7998
+ onMouseEnter: clearTimer,
7999
+ onMouseLeave: startTimer,
8000
+ children: item.content
8001
+ }
8002
+ );
8003
+ }
8004
+ var SnackbarContext = React44.createContext({
8005
+ enqueueSnackbar: () => "",
8006
+ closeSnackbar: () => {
8007
+ }
8008
+ });
8009
+ function SnackbarProvider({
8010
+ children,
8011
+ anchorOrigin = { vertical: "bottom", horizontal: "left" },
8012
+ autoHideDuration = 5e3,
8013
+ maxSnack = 3,
8014
+ transitionDuration = 225
8015
+ }) {
8016
+ const [items, setItems] = React44.useState([]);
8017
+ const closeSnackbar = React44.useCallback((key) => {
8018
+ setItems((prev) => prev.filter((i) => i.key !== key));
8019
+ }, []);
8020
+ const enqueueSnackbar = React44.useCallback(
8021
+ (message, options = {}) => {
8022
+ const key = `snk-${Date.now()}-${Math.random().toString(36).slice(2)}`;
8023
+ const { variant, action, onClose, autoHideDuration: dur, anchorOrigin: anchor } = options;
8024
+ let content;
8025
+ if (variant) {
8026
+ content = /* @__PURE__ */ jsx44(Alert, { variant, onClose: () => {
8027
+ closeSnackbar(key);
8028
+ onClose?.();
8029
+ }, children: message });
8030
+ } else if (React44.isValidElement(message)) {
8031
+ content = message;
8032
+ } else {
8033
+ content = /* @__PURE__ */ jsx44(SnackbarContent, { message, action });
8034
+ }
8035
+ setItems((prev) => {
8036
+ const capped = prev.length >= maxSnack ? prev.slice(-(maxSnack - 1)) : prev;
8037
+ return [
8038
+ ...capped,
8039
+ {
8040
+ key,
8041
+ content,
8042
+ autoHideDuration: dur !== void 0 ? dur : autoHideDuration,
8043
+ anchorOrigin: anchor ?? anchorOrigin,
8044
+ onClose
8045
+ }
8046
+ ];
8047
+ });
8048
+ return key;
8049
+ },
8050
+ [autoHideDuration, anchorOrigin, maxSnack, closeSnackbar]
8051
+ );
8052
+ const groups = React44.useMemo(() => {
8053
+ const map = /* @__PURE__ */ new Map();
8054
+ items.forEach((item) => {
8055
+ const k = `${item.anchorOrigin.vertical}-${item.anchorOrigin.horizontal}`;
8056
+ map.set(k, [...map.get(k) ?? [], item]);
8057
+ });
8058
+ return map;
8059
+ }, [items]);
8060
+ return /* @__PURE__ */ jsxs28(SnackbarContext.Provider, { value: { enqueueSnackbar, closeSnackbar }, children: [
8061
+ children,
8062
+ typeof document !== "undefined" && Array.from(groups.entries()).map(([posKey, posItems]) => {
8063
+ const [vertical, horizontal] = posKey.split("-");
8064
+ return createPortal2(
8065
+ /* @__PURE__ */ jsx44(
8066
+ "div",
8067
+ {
8068
+ className: cn(
8069
+ "fixed z-[1400] flex gap-2 pointer-events-none",
8070
+ vertical === "top" ? "top-4 flex-col" : "bottom-4 flex-col-reverse",
8071
+ horizontal === "left" ? "left-4" : horizontal === "right" ? "right-4" : "left-1/2 -translate-x-1/2"
8072
+ ),
8073
+ children: posItems.map((item) => /* @__PURE__ */ jsx44("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx44(
8074
+ ManagedRow,
8075
+ {
8076
+ item,
8077
+ vertical,
8078
+ transitionDuration,
8079
+ onRemove: closeSnackbar
8080
+ }
8081
+ ) }, item.key))
8082
+ },
8083
+ posKey
8084
+ ),
8085
+ document.body
8086
+ );
8087
+ })
8088
+ ] });
8089
+ }
8090
+ var useSnackbar = () => React44.useContext(SnackbarContext);
8091
+
8092
+ // src/components/drawer.tsx
8093
+ import * as React45 from "react";
7782
8094
  import * as DialogPrimitive2 from "@radix-ui/react-dialog";
7783
- import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
8095
+ import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
7784
8096
  var Drawer = DialogPrimitive2.Root;
7785
8097
  var DrawerTrigger = DialogPrimitive2.Trigger;
7786
8098
  var DrawerClose = DialogPrimitive2.Close;
7787
8099
  var DrawerPortal = DialogPrimitive2.Portal;
7788
- var DrawerOverlay = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
8100
+ var DrawerOverlay = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
7789
8101
  DialogPrimitive2.Overlay,
7790
8102
  {
7791
8103
  ref,
@@ -7805,9 +8117,9 @@ var slideVariants = {
7805
8117
  top: "inset-x-0 top-0 w-full data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
7806
8118
  bottom: "inset-x-0 bottom-0 w-full data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom"
7807
8119
  };
7808
- var DrawerContent = React43.forwardRef(({ side = "right", showClose = true, className, children, ...props }, ref) => /* @__PURE__ */ jsxs28(DrawerPortal, { children: [
7809
- /* @__PURE__ */ jsx43(DrawerOverlay, {}),
7810
- /* @__PURE__ */ jsxs28(
8120
+ var DrawerContent = React45.forwardRef(({ side = "right", showClose = true, className, children, ...props }, ref) => /* @__PURE__ */ jsxs29(DrawerPortal, { children: [
8121
+ /* @__PURE__ */ jsx45(DrawerOverlay, {}),
8122
+ /* @__PURE__ */ jsxs29(
7811
8123
  DialogPrimitive2.Content,
7812
8124
  {
7813
8125
  ref,
@@ -7821,7 +8133,7 @@ var DrawerContent = React43.forwardRef(({ side = "right", showClose = true, clas
7821
8133
  ...props,
7822
8134
  children: [
7823
8135
  children,
7824
- showClose && /* @__PURE__ */ jsxs28(
8136
+ showClose && /* @__PURE__ */ jsxs29(
7825
8137
  DrawerClose,
7826
8138
  {
7827
8139
  className: cn(
@@ -7831,7 +8143,7 @@ var DrawerContent = React43.forwardRef(({ side = "right", showClose = true, clas
7831
8143
  "disabled:pointer-events-none"
7832
8144
  ),
7833
8145
  children: [
7834
- /* @__PURE__ */ jsx43(
8146
+ /* @__PURE__ */ jsx45(
7835
8147
  "svg",
7836
8148
  {
7837
8149
  xmlns: "http://www.w3.org/2000/svg",
@@ -7844,10 +8156,10 @@ var DrawerContent = React43.forwardRef(({ side = "right", showClose = true, clas
7844
8156
  strokeLinecap: "round",
7845
8157
  strokeLinejoin: "round",
7846
8158
  className: "h-4 w-4",
7847
- children: /* @__PURE__ */ jsx43("path", { d: "M18 6 6 18M6 6l12 12" })
8159
+ children: /* @__PURE__ */ jsx45("path", { d: "M18 6 6 18M6 6l12 12" })
7848
8160
  }
7849
8161
  ),
7850
- /* @__PURE__ */ jsx43("span", { className: "sr-only", children: "Close" })
8162
+ /* @__PURE__ */ jsx45("span", { className: "sr-only", children: "Close" })
7851
8163
  ]
7852
8164
  }
7853
8165
  )
@@ -7856,8 +8168,8 @@ var DrawerContent = React43.forwardRef(({ side = "right", showClose = true, clas
7856
8168
  )
7857
8169
  ] }));
7858
8170
  DrawerContent.displayName = "DrawerContent";
7859
- var DrawerHeader = React43.forwardRef(
7860
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
8171
+ var DrawerHeader = React45.forwardRef(
8172
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
7861
8173
  "div",
7862
8174
  {
7863
8175
  ref,
@@ -7867,7 +8179,7 @@ var DrawerHeader = React43.forwardRef(
7867
8179
  )
7868
8180
  );
7869
8181
  DrawerHeader.displayName = "DrawerHeader";
7870
- var DrawerTitle = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
8182
+ var DrawerTitle = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
7871
8183
  DialogPrimitive2.Title,
7872
8184
  {
7873
8185
  ref,
@@ -7876,7 +8188,7 @@ var DrawerTitle = React43.forwardRef(({ className, ...props }, ref) => /* @__PUR
7876
8188
  }
7877
8189
  ));
7878
8190
  DrawerTitle.displayName = DialogPrimitive2.Title.displayName;
7879
- var DrawerDescription = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
8191
+ var DrawerDescription = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
7880
8192
  DialogPrimitive2.Description,
7881
8193
  {
7882
8194
  ref,
@@ -7885,8 +8197,8 @@ var DrawerDescription = React43.forwardRef(({ className, ...props }, ref) => /*
7885
8197
  }
7886
8198
  ));
7887
8199
  DrawerDescription.displayName = DialogPrimitive2.Description.displayName;
7888
- var DrawerBody = React43.forwardRef(
7889
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
8200
+ var DrawerBody = React45.forwardRef(
8201
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
7890
8202
  "div",
7891
8203
  {
7892
8204
  ref,
@@ -7896,8 +8208,8 @@ var DrawerBody = React43.forwardRef(
7896
8208
  )
7897
8209
  );
7898
8210
  DrawerBody.displayName = "DrawerBody";
7899
- var DrawerFooter = React43.forwardRef(
7900
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
8211
+ var DrawerFooter = React45.forwardRef(
8212
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
7901
8213
  "div",
7902
8214
  {
7903
8215
  ref,
@@ -7923,16 +8235,16 @@ var SheetBody = DrawerBody;
7923
8235
  var SheetFooter = DrawerFooter;
7924
8236
 
7925
8237
  // src/components/topbar.tsx
7926
- import * as React44 from "react";
7927
- import { Fragment as Fragment6, jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
8238
+ import * as React46 from "react";
8239
+ import { Fragment as Fragment6, jsx as jsx46, jsxs as jsxs30 } from "react/jsx-runtime";
7928
8240
  var sizeClasses5 = {
7929
8241
  sm: "h-12",
7930
8242
  md: "h-14",
7931
8243
  lg: "h-16"
7932
8244
  };
7933
- var TopBar = React44.forwardRef(
8245
+ var TopBar = React46.forwardRef(
7934
8246
  ({ className, bordered = true, sticky = false, size = "md", children, ...props }, ref) => {
7935
- return /* @__PURE__ */ jsx44(
8247
+ return /* @__PURE__ */ jsx46(
7936
8248
  "header",
7937
8249
  {
7938
8250
  ref,
@@ -7950,23 +8262,23 @@ var TopBar = React44.forwardRef(
7950
8262
  }
7951
8263
  );
7952
8264
  TopBar.displayName = "TopBar";
7953
- var TopBarBrand = React44.forwardRef(
8265
+ var TopBarBrand = React46.forwardRef(
7954
8266
  ({ className, logo, name, href, children, ...props }, ref) => {
7955
- const content = /* @__PURE__ */ jsxs29(Fragment6, { children: [
7956
- logo && /* @__PURE__ */ jsx44("span", { className: "shrink-0", children: logo }),
7957
- name && /* @__PURE__ */ jsx44("span", { className: "font-semibold text-lg", children: name }),
8267
+ const content = /* @__PURE__ */ jsxs30(Fragment6, { children: [
8268
+ logo && /* @__PURE__ */ jsx46("span", { className: "shrink-0", children: logo }),
8269
+ name && /* @__PURE__ */ jsx46("span", { className: "font-semibold text-lg", children: name }),
7958
8270
  children
7959
8271
  ] });
7960
8272
  if (href) {
7961
- return /* @__PURE__ */ jsx44("div", { ref, className: cn("flex items-center gap-2", className), ...props, children: /* @__PURE__ */ jsx44("a", { href, className: "flex items-center gap-2 hover:opacity-80 transition-opacity", children: content }) });
8273
+ return /* @__PURE__ */ jsx46("div", { ref, className: cn("flex items-center gap-2", className), ...props, children: /* @__PURE__ */ jsx46("a", { href, className: "flex items-center gap-2 hover:opacity-80 transition-opacity", children: content }) });
7962
8274
  }
7963
- return /* @__PURE__ */ jsx44("div", { ref, className: cn("flex items-center gap-2", className), ...props, children: content });
8275
+ return /* @__PURE__ */ jsx46("div", { ref, className: cn("flex items-center gap-2", className), ...props, children: content });
7964
8276
  }
7965
8277
  );
7966
8278
  TopBarBrand.displayName = "TopBarBrand";
7967
- var TopBarNav = React44.forwardRef(
8279
+ var TopBarNav = React46.forwardRef(
7968
8280
  ({ className, children, ...props }, ref) => {
7969
- return /* @__PURE__ */ jsx44(
8281
+ return /* @__PURE__ */ jsx46(
7970
8282
  "nav",
7971
8283
  {
7972
8284
  ref,
@@ -7978,9 +8290,9 @@ var TopBarNav = React44.forwardRef(
7978
8290
  }
7979
8291
  );
7980
8292
  TopBarNav.displayName = "TopBarNav";
7981
- var TopBarNavItem = React44.forwardRef(
8293
+ var TopBarNavItem = React46.forwardRef(
7982
8294
  ({ className, active, children, ...props }, ref) => {
7983
- return /* @__PURE__ */ jsx44(
8295
+ return /* @__PURE__ */ jsx46(
7984
8296
  "a",
7985
8297
  {
7986
8298
  ref,
@@ -7996,9 +8308,9 @@ var TopBarNavItem = React44.forwardRef(
7996
8308
  }
7997
8309
  );
7998
8310
  TopBarNavItem.displayName = "TopBarNavItem";
7999
- var TopBarSection = React44.forwardRef(
8311
+ var TopBarSection = React46.forwardRef(
8000
8312
  ({ className, align = "left", children, ...props }, ref) => {
8001
- return /* @__PURE__ */ jsx44(
8313
+ return /* @__PURE__ */ jsx46(
8002
8314
  "div",
8003
8315
  {
8004
8316
  ref,
@@ -8018,9 +8330,9 @@ var TopBarSection = React44.forwardRef(
8018
8330
  }
8019
8331
  );
8020
8332
  TopBarSection.displayName = "TopBarSection";
8021
- var TopBarDivider = React44.forwardRef(
8333
+ var TopBarDivider = React46.forwardRef(
8022
8334
  ({ className, ...props }, ref) => {
8023
- return /* @__PURE__ */ jsx44(
8335
+ return /* @__PURE__ */ jsx46(
8024
8336
  "div",
8025
8337
  {
8026
8338
  ref,
@@ -8033,17 +8345,17 @@ var TopBarDivider = React44.forwardRef(
8033
8345
  TopBarDivider.displayName = "TopBarDivider";
8034
8346
 
8035
8347
  // src/components/sidebar.tsx
8036
- import * as React45 from "react";
8037
- import { Fragment as Fragment7, jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
8038
- var SidebarContext = React45.createContext(void 0);
8348
+ import * as React47 from "react";
8349
+ import { Fragment as Fragment7, jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
8350
+ var SidebarContext = React47.createContext(void 0);
8039
8351
  var useSidebar = () => {
8040
- const context = React45.useContext(SidebarContext);
8352
+ const context = React47.useContext(SidebarContext);
8041
8353
  if (!context) {
8042
8354
  throw new Error("useSidebar must be used within a Sidebar");
8043
8355
  }
8044
8356
  return context;
8045
8357
  };
8046
- var Sidebar = React45.forwardRef(
8358
+ var Sidebar = React47.forwardRef(
8047
8359
  ({
8048
8360
  className,
8049
8361
  collapsed: controlledCollapsed,
@@ -8055,10 +8367,10 @@ var Sidebar = React45.forwardRef(
8055
8367
  children,
8056
8368
  ...props
8057
8369
  }, ref) => {
8058
- const [uncontrolledCollapsed, setUncontrolledCollapsed] = React45.useState(defaultCollapsed);
8370
+ const [uncontrolledCollapsed, setUncontrolledCollapsed] = React47.useState(defaultCollapsed);
8059
8371
  const isControlled = controlledCollapsed !== void 0;
8060
8372
  const collapsed = isControlled ? controlledCollapsed : uncontrolledCollapsed;
8061
- const setCollapsed = React45.useCallback(
8373
+ const setCollapsed = React47.useCallback(
8062
8374
  (value) => {
8063
8375
  if (!isControlled) {
8064
8376
  setUncontrolledCollapsed(value);
@@ -8067,7 +8379,7 @@ var Sidebar = React45.forwardRef(
8067
8379
  },
8068
8380
  [isControlled, onCollapsedChange]
8069
8381
  );
8070
- return /* @__PURE__ */ jsx45(SidebarContext.Provider, { value: { collapsed, setCollapsed }, children: /* @__PURE__ */ jsx45(
8382
+ return /* @__PURE__ */ jsx47(SidebarContext.Provider, { value: { collapsed, setCollapsed }, children: /* @__PURE__ */ jsx47(
8071
8383
  "aside",
8072
8384
  {
8073
8385
  ref,
@@ -8087,9 +8399,9 @@ var Sidebar = React45.forwardRef(
8087
8399
  }
8088
8400
  );
8089
8401
  Sidebar.displayName = "Sidebar";
8090
- var SidebarHeader = React45.forwardRef(
8402
+ var SidebarHeader = React47.forwardRef(
8091
8403
  ({ className, children, ...props }, ref) => {
8092
- return /* @__PURE__ */ jsx45(
8404
+ return /* @__PURE__ */ jsx47(
8093
8405
  "div",
8094
8406
  {
8095
8407
  ref,
@@ -8101,9 +8413,9 @@ var SidebarHeader = React45.forwardRef(
8101
8413
  }
8102
8414
  );
8103
8415
  SidebarHeader.displayName = "SidebarHeader";
8104
- var SidebarContent = React45.forwardRef(
8416
+ var SidebarContent = React47.forwardRef(
8105
8417
  ({ className, children, ...props }, ref) => {
8106
- return /* @__PURE__ */ jsx45(
8418
+ return /* @__PURE__ */ jsx47(
8107
8419
  "div",
8108
8420
  {
8109
8421
  ref,
@@ -8115,9 +8427,9 @@ var SidebarContent = React45.forwardRef(
8115
8427
  }
8116
8428
  );
8117
8429
  SidebarContent.displayName = "SidebarContent";
8118
- var SidebarFooter = React45.forwardRef(
8430
+ var SidebarFooter = React47.forwardRef(
8119
8431
  ({ className, children, ...props }, ref) => {
8120
- return /* @__PURE__ */ jsx45(
8432
+ return /* @__PURE__ */ jsx47(
8121
8433
  "div",
8122
8434
  {
8123
8435
  ref,
@@ -8129,25 +8441,25 @@ var SidebarFooter = React45.forwardRef(
8129
8441
  }
8130
8442
  );
8131
8443
  SidebarFooter.displayName = "SidebarFooter";
8132
- var SidebarGroup = React45.forwardRef(
8444
+ var SidebarGroup = React47.forwardRef(
8133
8445
  ({ className, label, children, ...props }, ref) => {
8134
8446
  const { collapsed } = useSidebar();
8135
- return /* @__PURE__ */ jsxs30("div", { ref, className: cn("px-2 py-2", className), ...props, children: [
8136
- label && !collapsed && /* @__PURE__ */ jsx45("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: label }),
8137
- label && collapsed && /* @__PURE__ */ jsx45("div", { className: "flex justify-center py-1.5", children: /* @__PURE__ */ jsx45("div", { className: "h-px w-4 bg-border" }) }),
8138
- /* @__PURE__ */ jsx45("div", { className: "space-y-1", children })
8447
+ return /* @__PURE__ */ jsxs31("div", { ref, className: cn("px-2 py-2", className), ...props, children: [
8448
+ label && !collapsed && /* @__PURE__ */ jsx47("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: label }),
8449
+ label && collapsed && /* @__PURE__ */ jsx47("div", { className: "flex justify-center py-1.5", children: /* @__PURE__ */ jsx47("div", { className: "h-px w-4 bg-border" }) }),
8450
+ /* @__PURE__ */ jsx47("div", { className: "space-y-1", children })
8139
8451
  ] });
8140
8452
  }
8141
8453
  );
8142
8454
  SidebarGroup.displayName = "SidebarGroup";
8143
- var SidebarItem = React45.forwardRef(
8455
+ var SidebarItem = React47.forwardRef(
8144
8456
  ({ className, icon, active, disabled, badge, onClick, href, children, ...props }, ref) => {
8145
8457
  const { collapsed } = useSidebar();
8146
- const content = /* @__PURE__ */ jsxs30(Fragment7, { children: [
8147
- icon && /* @__PURE__ */ jsx45("span", { className: cn("shrink-0", collapsed ? "mx-auto" : ""), children: icon }),
8148
- !collapsed && /* @__PURE__ */ jsxs30(Fragment7, { children: [
8149
- /* @__PURE__ */ jsx45("span", { className: "flex-1 truncate", children }),
8150
- badge && /* @__PURE__ */ jsx45("span", { className: "shrink-0", children: badge })
8458
+ const content = /* @__PURE__ */ jsxs31(Fragment7, { children: [
8459
+ icon && /* @__PURE__ */ jsx47("span", { className: cn("shrink-0", collapsed ? "mx-auto" : ""), children: icon }),
8460
+ !collapsed && /* @__PURE__ */ jsxs31(Fragment7, { children: [
8461
+ /* @__PURE__ */ jsx47("span", { className: "flex-1 truncate", children }),
8462
+ badge && /* @__PURE__ */ jsx47("span", { className: "shrink-0", children: badge })
8151
8463
  ] })
8152
8464
  ] });
8153
8465
  const itemClasses = cn(
@@ -8158,9 +8470,9 @@ var SidebarItem = React45.forwardRef(
8158
8470
  className
8159
8471
  );
8160
8472
  if (href) {
8161
- return /* @__PURE__ */ jsx45("div", { ref, ...props, children: /* @__PURE__ */ jsx45("a", { href, className: itemClasses, children: content }) });
8473
+ return /* @__PURE__ */ jsx47("div", { ref, ...props, children: /* @__PURE__ */ jsx47("a", { href, className: itemClasses, children: content }) });
8162
8474
  }
8163
- return /* @__PURE__ */ jsx45(
8475
+ return /* @__PURE__ */ jsx47(
8164
8476
  "div",
8165
8477
  {
8166
8478
  ref,
@@ -8175,20 +8487,20 @@ var SidebarItem = React45.forwardRef(
8175
8487
  }
8176
8488
  );
8177
8489
  SidebarItem.displayName = "SidebarItem";
8178
- var SidebarSubMenu = React45.forwardRef(
8490
+ var SidebarSubMenu = React47.forwardRef(
8179
8491
  ({ className, icon, label, defaultOpen = false, children, ...props }, ref) => {
8180
- const [open, setOpen] = React45.useState(defaultOpen);
8492
+ const [open, setOpen] = React47.useState(defaultOpen);
8181
8493
  const { collapsed } = useSidebar();
8182
- React45.useEffect(() => {
8494
+ React47.useEffect(() => {
8183
8495
  if (collapsed) {
8184
8496
  setOpen(false);
8185
8497
  }
8186
8498
  }, [collapsed]);
8187
8499
  if (collapsed) {
8188
- return /* @__PURE__ */ jsx45(SidebarItem, { icon, className, children: label });
8500
+ return /* @__PURE__ */ jsx47(SidebarItem, { icon, className, children: label });
8189
8501
  }
8190
- return /* @__PURE__ */ jsxs30("div", { ref, className, ...props, children: [
8191
- /* @__PURE__ */ jsxs30(
8502
+ return /* @__PURE__ */ jsxs31("div", { ref, className, ...props, children: [
8503
+ /* @__PURE__ */ jsxs31(
8192
8504
  "div",
8193
8505
  {
8194
8506
  className: cn(
@@ -8199,9 +8511,9 @@ var SidebarSubMenu = React45.forwardRef(
8199
8511
  role: "button",
8200
8512
  tabIndex: 0,
8201
8513
  children: [
8202
- icon && /* @__PURE__ */ jsx45("span", { className: "shrink-0", children: icon }),
8203
- /* @__PURE__ */ jsx45("span", { className: "flex-1 truncate", children: label }),
8204
- /* @__PURE__ */ jsx45(
8514
+ icon && /* @__PURE__ */ jsx47("span", { className: "shrink-0", children: icon }),
8515
+ /* @__PURE__ */ jsx47("span", { className: "flex-1 truncate", children: label }),
8516
+ /* @__PURE__ */ jsx47(
8205
8517
  "svg",
8206
8518
  {
8207
8519
  className: cn("h-4 w-4 shrink-0 transition-transform", open && "rotate-90"),
@@ -8212,21 +8524,21 @@ var SidebarSubMenu = React45.forwardRef(
8212
8524
  strokeWidth: "2",
8213
8525
  strokeLinecap: "round",
8214
8526
  strokeLinejoin: "round",
8215
- children: /* @__PURE__ */ jsx45("path", { d: "m9 18 6-6-6-6" })
8527
+ children: /* @__PURE__ */ jsx47("path", { d: "m9 18 6-6-6-6" })
8216
8528
  }
8217
8529
  )
8218
8530
  ]
8219
8531
  }
8220
8532
  ),
8221
- open && /* @__PURE__ */ jsx45("div", { className: "ml-4 pl-3 border-l border-border space-y-1 mt-1", children })
8533
+ open && /* @__PURE__ */ jsx47("div", { className: "ml-4 pl-3 border-l border-border space-y-1 mt-1", children })
8222
8534
  ] });
8223
8535
  }
8224
8536
  );
8225
8537
  SidebarSubMenu.displayName = "SidebarSubMenu";
8226
- var SidebarToggle = React45.forwardRef(
8538
+ var SidebarToggle = React47.forwardRef(
8227
8539
  ({ className, children, ...props }, ref) => {
8228
8540
  const { collapsed, setCollapsed } = useSidebar();
8229
- return /* @__PURE__ */ jsx45(
8541
+ return /* @__PURE__ */ jsx47(
8230
8542
  "button",
8231
8543
  {
8232
8544
  ref,
@@ -8240,7 +8552,7 @@ var SidebarToggle = React45.forwardRef(
8240
8552
  ),
8241
8553
  "aria-label": collapsed ? "Expand sidebar" : "Collapse sidebar",
8242
8554
  ...props,
8243
- children: children || /* @__PURE__ */ jsxs30(
8555
+ children: children || /* @__PURE__ */ jsxs31(
8244
8556
  "svg",
8245
8557
  {
8246
8558
  className: cn("h-5 w-5 transition-transform", collapsed && "rotate-180"),
@@ -8252,9 +8564,9 @@ var SidebarToggle = React45.forwardRef(
8252
8564
  strokeLinecap: "round",
8253
8565
  strokeLinejoin: "round",
8254
8566
  children: [
8255
- /* @__PURE__ */ jsx45("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
8256
- /* @__PURE__ */ jsx45("path", { d: "M9 3v18" }),
8257
- /* @__PURE__ */ jsx45("path", { d: "m14 9 3 3-3 3" })
8567
+ /* @__PURE__ */ jsx47("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
8568
+ /* @__PURE__ */ jsx47("path", { d: "M9 3v18" }),
8569
+ /* @__PURE__ */ jsx47("path", { d: "m14 9 3 3-3 3" })
8258
8570
  ]
8259
8571
  }
8260
8572
  )
@@ -8265,17 +8577,17 @@ var SidebarToggle = React45.forwardRef(
8265
8577
  SidebarToggle.displayName = "SidebarToggle";
8266
8578
 
8267
8579
  // src/components/sidebar-rail.tsx
8268
- import * as React46 from "react";
8269
- import { Fragment as Fragment8, jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
8270
- var SidebarRailContext = React46.createContext(void 0);
8580
+ import * as React48 from "react";
8581
+ import { Fragment as Fragment8, jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
8582
+ var SidebarRailContext = React48.createContext(void 0);
8271
8583
  var useSidebarRail = () => {
8272
- const context = React46.useContext(SidebarRailContext);
8584
+ const context = React48.useContext(SidebarRailContext);
8273
8585
  if (!context) {
8274
8586
  throw new Error("useSidebarRail must be used within a SidebarRail");
8275
8587
  }
8276
8588
  return context;
8277
8589
  };
8278
- var SidebarRail = React46.forwardRef(
8590
+ var SidebarRail = React48.forwardRef(
8279
8591
  ({
8280
8592
  className,
8281
8593
  defaultActiveRail = null,
@@ -8293,14 +8605,14 @@ var SidebarRail = React46.forwardRef(
8293
8605
  children,
8294
8606
  ...props
8295
8607
  }, ref) => {
8296
- const [uncontrolledActiveRail, setUncontrolledActiveRail] = React46.useState(defaultActiveRail);
8297
- const [expanded, setExpanded] = React46.useState(!!defaultActiveRail);
8298
- const [uncontrolledRailExpanded, setUncontrolledRailExpanded] = React46.useState(defaultRailExpanded);
8608
+ const [uncontrolledActiveRail, setUncontrolledActiveRail] = React48.useState(defaultActiveRail);
8609
+ const [expanded, setExpanded] = React48.useState(!!defaultActiveRail);
8610
+ const [uncontrolledRailExpanded, setUncontrolledRailExpanded] = React48.useState(defaultRailExpanded);
8299
8611
  const isControlled = controlledActiveRail !== void 0;
8300
8612
  const activeRail = isControlled ? controlledActiveRail : uncontrolledActiveRail;
8301
8613
  const isRailControlled = controlledRailExpanded !== void 0;
8302
8614
  const railExpanded = isRailControlled ? controlledRailExpanded : uncontrolledRailExpanded;
8303
- const setActiveRail = React46.useCallback(
8615
+ const setActiveRail = React48.useCallback(
8304
8616
  (rail) => {
8305
8617
  if (!isControlled) {
8306
8618
  setUncontrolledActiveRail(rail);
@@ -8310,7 +8622,7 @@ var SidebarRail = React46.forwardRef(
8310
8622
  },
8311
8623
  [isControlled, onActiveRailChange]
8312
8624
  );
8313
- const setRailExpanded = React46.useCallback(
8625
+ const setRailExpanded = React48.useCallback(
8314
8626
  (value) => {
8315
8627
  if (!isRailControlled) {
8316
8628
  setUncontrolledRailExpanded(value);
@@ -8319,7 +8631,7 @@ var SidebarRail = React46.forwardRef(
8319
8631
  },
8320
8632
  [isRailControlled, onRailExpandedChange]
8321
8633
  );
8322
- return /* @__PURE__ */ jsx46(
8634
+ return /* @__PURE__ */ jsx48(
8323
8635
  SidebarRailContext.Provider,
8324
8636
  {
8325
8637
  value: {
@@ -8333,7 +8645,7 @@ var SidebarRail = React46.forwardRef(
8333
8645
  overlayRail: overlayRail && expandableRail,
8334
8646
  expandableRail
8335
8647
  },
8336
- children: /* @__PURE__ */ jsx46(
8648
+ children: /* @__PURE__ */ jsx48(
8337
8649
  "div",
8338
8650
  {
8339
8651
  ref,
@@ -8356,11 +8668,11 @@ var SidebarRail = React46.forwardRef(
8356
8668
  }
8357
8669
  );
8358
8670
  SidebarRail.displayName = "SidebarRail";
8359
- var IconRail = React46.forwardRef(
8671
+ var IconRail = React48.forwardRef(
8360
8672
  ({ className, children, ...props }, ref) => {
8361
8673
  const { railExpanded, overlayRail, expandableRail } = useSidebarRail();
8362
8674
  const isExpanded = expandableRail && railExpanded;
8363
- return /* @__PURE__ */ jsx46(
8675
+ return /* @__PURE__ */ jsx48(
8364
8676
  "div",
8365
8677
  {
8366
8678
  ref,
@@ -8369,7 +8681,7 @@ var IconRail = React46.forwardRef(
8369
8681
  isExpanded && !overlayRail ? "w-[var(--rail-expanded-width)]" : "w-[var(--rail-width)]"
8370
8682
  ),
8371
8683
  ...props,
8372
- children: /* @__PURE__ */ jsx46(
8684
+ children: /* @__PURE__ */ jsx48(
8373
8685
  "div",
8374
8686
  {
8375
8687
  className: cn(
@@ -8389,9 +8701,9 @@ var IconRail = React46.forwardRef(
8389
8701
  }
8390
8702
  );
8391
8703
  IconRail.displayName = "IconRail";
8392
- var IconRailHeader = React46.forwardRef(
8704
+ var IconRailHeader = React48.forwardRef(
8393
8705
  ({ className, children, ...props }, ref) => {
8394
- return /* @__PURE__ */ jsx46(
8706
+ return /* @__PURE__ */ jsx48(
8395
8707
  "div",
8396
8708
  {
8397
8709
  ref,
@@ -8406,9 +8718,9 @@ var IconRailHeader = React46.forwardRef(
8406
8718
  }
8407
8719
  );
8408
8720
  IconRailHeader.displayName = "IconRailHeader";
8409
- var IconRailContent = React46.forwardRef(
8721
+ var IconRailContent = React48.forwardRef(
8410
8722
  ({ className, children, ...props }, ref) => {
8411
- return /* @__PURE__ */ jsx46(
8723
+ return /* @__PURE__ */ jsx48(
8412
8724
  "div",
8413
8725
  {
8414
8726
  ref,
@@ -8420,9 +8732,9 @@ var IconRailContent = React46.forwardRef(
8420
8732
  }
8421
8733
  );
8422
8734
  IconRailContent.displayName = "IconRailContent";
8423
- var IconRailFooter = React46.forwardRef(
8735
+ var IconRailFooter = React48.forwardRef(
8424
8736
  ({ className, children, ...props }, ref) => {
8425
- return /* @__PURE__ */ jsx46(
8737
+ return /* @__PURE__ */ jsx48(
8426
8738
  "div",
8427
8739
  {
8428
8740
  ref,
@@ -8437,7 +8749,7 @@ var IconRailFooter = React46.forwardRef(
8437
8749
  }
8438
8750
  );
8439
8751
  IconRailFooter.displayName = "IconRailFooter";
8440
- var IconRailItem = React46.forwardRef(
8752
+ var IconRailItem = React48.forwardRef(
8441
8753
  ({ className, railId, icon, label, asButton = false, toggleRail = false, onClick, ...props }, ref) => {
8442
8754
  const {
8443
8755
  activeRail,
@@ -8463,7 +8775,7 @@ var IconRailItem = React46.forwardRef(
8463
8775
  setActiveRail(railId);
8464
8776
  }
8465
8777
  };
8466
- return /* @__PURE__ */ jsxs31(
8778
+ return /* @__PURE__ */ jsxs32(
8467
8779
  "button",
8468
8780
  {
8469
8781
  ref,
@@ -8482,14 +8794,14 @@ var IconRailItem = React46.forwardRef(
8482
8794
  ...props,
8483
8795
  children: [
8484
8796
  icon,
8485
- isRailExpanded && label && /* @__PURE__ */ jsx46("span", { className: "text-sm font-medium truncate", children: label })
8797
+ isRailExpanded && label && /* @__PURE__ */ jsx48("span", { className: "text-sm font-medium truncate", children: label })
8486
8798
  ]
8487
8799
  }
8488
8800
  );
8489
8801
  }
8490
8802
  );
8491
8803
  IconRailItem.displayName = "IconRailItem";
8492
- var RailPanel = React46.forwardRef(
8804
+ var RailPanel = React48.forwardRef(
8493
8805
  ({ className, railId, title, children, ...props }, ref) => {
8494
8806
  const { activeRail, setActiveRail, hoverExpand } = useSidebarRail();
8495
8807
  const isVisible = activeRail === railId;
@@ -8499,7 +8811,7 @@ var RailPanel = React46.forwardRef(
8499
8811
  }
8500
8812
  };
8501
8813
  if (!isVisible) return null;
8502
- return /* @__PURE__ */ jsxs31(
8814
+ return /* @__PURE__ */ jsxs32(
8503
8815
  "div",
8504
8816
  {
8505
8817
  ref,
@@ -8512,16 +8824,16 @@ var RailPanel = React46.forwardRef(
8512
8824
  onMouseLeave: handleMouseLeave,
8513
8825
  ...props,
8514
8826
  children: [
8515
- title && /* @__PURE__ */ jsxs31("div", { className: "flex items-center justify-between h-14 px-4 border-b border-border shrink-0", children: [
8516
- /* @__PURE__ */ jsx46("span", { className: "font-semibold text-sm", children: title }),
8517
- /* @__PURE__ */ jsx46(
8827
+ title && /* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between h-14 px-4 border-b border-border shrink-0", children: [
8828
+ /* @__PURE__ */ jsx48("span", { className: "font-semibold text-sm", children: title }),
8829
+ /* @__PURE__ */ jsx48(
8518
8830
  "button",
8519
8831
  {
8520
8832
  type: "button",
8521
8833
  onClick: () => setActiveRail(null),
8522
8834
  className: "p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground cursor-pointer",
8523
8835
  "aria-label": "Close panel",
8524
- children: /* @__PURE__ */ jsxs31(
8836
+ children: /* @__PURE__ */ jsxs32(
8525
8837
  "svg",
8526
8838
  {
8527
8839
  className: "h-4 w-4",
@@ -8533,36 +8845,36 @@ var RailPanel = React46.forwardRef(
8533
8845
  strokeLinecap: "round",
8534
8846
  strokeLinejoin: "round",
8535
8847
  children: [
8536
- /* @__PURE__ */ jsx46("path", { d: "M18 6 6 18" }),
8537
- /* @__PURE__ */ jsx46("path", { d: "m6 6 12 12" })
8848
+ /* @__PURE__ */ jsx48("path", { d: "M18 6 6 18" }),
8849
+ /* @__PURE__ */ jsx48("path", { d: "m6 6 12 12" })
8538
8850
  ]
8539
8851
  }
8540
8852
  )
8541
8853
  }
8542
8854
  )
8543
8855
  ] }),
8544
- /* @__PURE__ */ jsx46("div", { className: "flex-1 overflow-y-auto", children })
8856
+ /* @__PURE__ */ jsx48("div", { className: "flex-1 overflow-y-auto", children })
8545
8857
  ]
8546
8858
  }
8547
8859
  );
8548
8860
  }
8549
8861
  );
8550
8862
  RailPanel.displayName = "RailPanel";
8551
- var RailPanelGroup = React46.forwardRef(
8863
+ var RailPanelGroup = React48.forwardRef(
8552
8864
  ({ className, label, children, ...props }, ref) => {
8553
- return /* @__PURE__ */ jsxs31("div", { ref, className: cn("px-2 py-2", className), ...props, children: [
8554
- label && /* @__PURE__ */ jsx46("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: label }),
8555
- /* @__PURE__ */ jsx46("div", { className: "space-y-1", children })
8865
+ return /* @__PURE__ */ jsxs32("div", { ref, className: cn("px-2 py-2", className), ...props, children: [
8866
+ label && /* @__PURE__ */ jsx48("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider", children: label }),
8867
+ /* @__PURE__ */ jsx48("div", { className: "space-y-1", children })
8556
8868
  ] });
8557
8869
  }
8558
8870
  );
8559
8871
  RailPanelGroup.displayName = "RailPanelGroup";
8560
- var RailPanelItem = React46.forwardRef(
8872
+ var RailPanelItem = React48.forwardRef(
8561
8873
  ({ className, icon, active, disabled, badge, href, children, onClick, ...props }, ref) => {
8562
- const content = /* @__PURE__ */ jsxs31(Fragment8, { children: [
8563
- icon && /* @__PURE__ */ jsx46("span", { className: "shrink-0", children: icon }),
8564
- /* @__PURE__ */ jsx46("span", { className: "flex-1 truncate", children }),
8565
- badge && /* @__PURE__ */ jsx46("span", { className: "shrink-0", children: badge })
8874
+ const content = /* @__PURE__ */ jsxs32(Fragment8, { children: [
8875
+ icon && /* @__PURE__ */ jsx48("span", { className: "shrink-0", children: icon }),
8876
+ /* @__PURE__ */ jsx48("span", { className: "flex-1 truncate", children }),
8877
+ badge && /* @__PURE__ */ jsx48("span", { className: "shrink-0", children: badge })
8566
8878
  ] });
8567
8879
  const itemClasses = cn(
8568
8880
  "flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors cursor-pointer",
@@ -8571,9 +8883,9 @@ var RailPanelItem = React46.forwardRef(
8571
8883
  className
8572
8884
  );
8573
8885
  if (href) {
8574
- return /* @__PURE__ */ jsx46("div", { ref, ...props, children: /* @__PURE__ */ jsx46("a", { href, className: itemClasses, children: content }) });
8886
+ return /* @__PURE__ */ jsx48("div", { ref, ...props, children: /* @__PURE__ */ jsx48("a", { href, className: itemClasses, children: content }) });
8575
8887
  }
8576
- return /* @__PURE__ */ jsx46(
8888
+ return /* @__PURE__ */ jsx48(
8577
8889
  "div",
8578
8890
  {
8579
8891
  ref,
@@ -8590,34 +8902,34 @@ var RailPanelItem = React46.forwardRef(
8590
8902
  RailPanelItem.displayName = "RailPanelItem";
8591
8903
 
8592
8904
  // src/playground.tsx
8593
- import * as React47 from "react";
8594
- import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
8595
- var Section = ({ title, children }) => /* @__PURE__ */ jsxs32("div", { className: "mb-8", children: [
8596
- /* @__PURE__ */ jsx47("h2", { className: "text-xl font-semibold mb-4 text-foreground", children: title }),
8597
- /* @__PURE__ */ jsx47("div", { className: "p-4 border border-border rounded-lg bg-background", children })
8905
+ import * as React49 from "react";
8906
+ import { jsx as jsx49, jsxs as jsxs33 } from "react/jsx-runtime";
8907
+ var Section = ({ title, children }) => /* @__PURE__ */ jsxs33("div", { className: "mb-8", children: [
8908
+ /* @__PURE__ */ jsx49("h2", { className: "text-xl font-semibold mb-4 text-foreground", children: title }),
8909
+ /* @__PURE__ */ jsx49("div", { className: "p-4 border border-border rounded-lg bg-background", children })
8598
8910
  ] });
8599
8911
  var ThemeToggle = () => {
8600
8912
  const { theme, setTheme } = useTheme();
8601
- return /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
8602
- /* @__PURE__ */ jsx47(Label, { children: "Theme:" }),
8603
- /* @__PURE__ */ jsxs32(SelectNamespace, { value: theme, onValueChange: (value) => setTheme(value), children: [
8604
- /* @__PURE__ */ jsx47(SelectTrigger, { className: "w-32", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select theme" }) }),
8605
- /* @__PURE__ */ jsxs32(SelectContent, { children: [
8606
- /* @__PURE__ */ jsx47(SelectItem, { value: "light", children: "Light" }),
8607
- /* @__PURE__ */ jsx47(SelectItem, { value: "dark", children: "Dark" }),
8608
- /* @__PURE__ */ jsx47(SelectItem, { value: "system", children: "System" })
8913
+ return /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-2", children: [
8914
+ /* @__PURE__ */ jsx49(Label, { children: "Theme:" }),
8915
+ /* @__PURE__ */ jsxs33(SelectNamespace, { value: theme, onValueChange: (value) => setTheme(value), children: [
8916
+ /* @__PURE__ */ jsx49(SelectTrigger, { className: "w-32", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select theme" }) }),
8917
+ /* @__PURE__ */ jsxs33(SelectContent, { children: [
8918
+ /* @__PURE__ */ jsx49(SelectItem, { value: "light", children: "Light" }),
8919
+ /* @__PURE__ */ jsx49(SelectItem, { value: "dark", children: "Dark" }),
8920
+ /* @__PURE__ */ jsx49(SelectItem, { value: "system", children: "System" })
8609
8921
  ] })
8610
8922
  ] })
8611
8923
  ] });
8612
8924
  };
8613
8925
  var PlaygroundContent = () => {
8614
- const [dialogOpen, setDialogOpen] = React47.useState(false);
8615
- const [checkboxChecked, setCheckboxChecked] = React47.useState(false);
8616
- const [switchChecked, setSwitchChecked] = React47.useState(false);
8617
- const [inputValue, setInputValue] = React47.useState("");
8618
- const [textareaValue, setTextareaValue] = React47.useState("");
8619
- const [selectValue, setSelectValue] = React47.useState("");
8620
- const [comboboxValue, setComboboxValue] = React47.useState(null);
8926
+ const [dialogOpen, setDialogOpen] = React49.useState(false);
8927
+ const [checkboxChecked, setCheckboxChecked] = React49.useState(false);
8928
+ const [switchChecked, setSwitchChecked] = React49.useState(false);
8929
+ const [inputValue, setInputValue] = React49.useState("");
8930
+ const [textareaValue, setTextareaValue] = React49.useState("");
8931
+ const [selectValue, setSelectValue] = React49.useState("");
8932
+ const [comboboxValue, setComboboxValue] = React49.useState(null);
8621
8933
  const comboboxOptions = [
8622
8934
  { value: "react", label: "React" },
8623
8935
  { value: "vue", label: "Vue" },
@@ -8625,35 +8937,35 @@ var PlaygroundContent = () => {
8625
8937
  { value: "svelte", label: "Svelte" },
8626
8938
  { value: "solid", label: "SolidJS" }
8627
8939
  ];
8628
- return /* @__PURE__ */ jsx47("div", { className: "min-h-screen bg-background p-8", children: /* @__PURE__ */ jsxs32("div", { className: "max-w-4xl mx-auto", children: [
8629
- /* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between mb-8", children: [
8630
- /* @__PURE__ */ jsx47("h1", { className: "text-3xl font-bold text-foreground", children: "@onesaz/ui Playground" }),
8631
- /* @__PURE__ */ jsx47(ThemeToggle, {})
8940
+ return /* @__PURE__ */ jsx49("div", { className: "min-h-screen bg-background p-8", children: /* @__PURE__ */ jsxs33("div", { className: "max-w-4xl mx-auto", children: [
8941
+ /* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-between mb-8", children: [
8942
+ /* @__PURE__ */ jsx49("h1", { className: "text-3xl font-bold text-foreground", children: "@onesaz/ui Playground" }),
8943
+ /* @__PURE__ */ jsx49(ThemeToggle, {})
8632
8944
  ] }),
8633
- /* @__PURE__ */ jsxs32(Section, { title: "Button", children: [
8634
- /* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap gap-4", children: [
8635
- /* @__PURE__ */ jsx47(Button, { variant: "default", children: "Default" }),
8636
- /* @__PURE__ */ jsx47(Button, { variant: "destructive", children: "Destructive" }),
8637
- /* @__PURE__ */ jsx47(Button, { variant: "outline", children: "Outline" }),
8638
- /* @__PURE__ */ jsx47(Button, { variant: "secondary", children: "Secondary" }),
8639
- /* @__PURE__ */ jsx47(Button, { variant: "ghost", children: "Ghost" }),
8640
- /* @__PURE__ */ jsx47(Button, { variant: "link", children: "Link" })
8945
+ /* @__PURE__ */ jsxs33(Section, { title: "Button", children: [
8946
+ /* @__PURE__ */ jsxs33("div", { className: "flex flex-wrap gap-4", children: [
8947
+ /* @__PURE__ */ jsx49(Button, { variant: "default", children: "Default" }),
8948
+ /* @__PURE__ */ jsx49(Button, { variant: "destructive", children: "Destructive" }),
8949
+ /* @__PURE__ */ jsx49(Button, { variant: "outline", children: "Outline" }),
8950
+ /* @__PURE__ */ jsx49(Button, { variant: "secondary", children: "Secondary" }),
8951
+ /* @__PURE__ */ jsx49(Button, { variant: "ghost", children: "Ghost" }),
8952
+ /* @__PURE__ */ jsx49(Button, { variant: "link", children: "Link" })
8641
8953
  ] }),
8642
- /* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap gap-4 mt-4", children: [
8643
- /* @__PURE__ */ jsx47(Button, { size: "sm", children: "Small" }),
8644
- /* @__PURE__ */ jsx47(Button, { size: "default", children: "Default" }),
8645
- /* @__PURE__ */ jsx47(Button, { size: "lg", children: "Large" }),
8646
- /* @__PURE__ */ jsx47(Button, { size: "icon", children: "\u{1F514}" })
8954
+ /* @__PURE__ */ jsxs33("div", { className: "flex flex-wrap gap-4 mt-4", children: [
8955
+ /* @__PURE__ */ jsx49(Button, { size: "sm", children: "Small" }),
8956
+ /* @__PURE__ */ jsx49(Button, { size: "default", children: "Default" }),
8957
+ /* @__PURE__ */ jsx49(Button, { size: "lg", children: "Large" }),
8958
+ /* @__PURE__ */ jsx49(Button, { size: "icon", children: "\u{1F514}" })
8647
8959
  ] }),
8648
- /* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap gap-4 mt-4", children: [
8649
- /* @__PURE__ */ jsx47(Button, { disabled: true, children: "Disabled" }),
8650
- /* @__PURE__ */ jsx47(Button, { variant: "outline", disabled: true, children: "Disabled Outline" })
8960
+ /* @__PURE__ */ jsxs33("div", { className: "flex flex-wrap gap-4 mt-4", children: [
8961
+ /* @__PURE__ */ jsx49(Button, { disabled: true, children: "Disabled" }),
8962
+ /* @__PURE__ */ jsx49(Button, { variant: "outline", disabled: true, children: "Disabled Outline" })
8651
8963
  ] })
8652
8964
  ] }),
8653
- /* @__PURE__ */ jsx47(Section, { title: "Input", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-4 max-w-md", children: [
8654
- /* @__PURE__ */ jsxs32("div", { children: [
8655
- /* @__PURE__ */ jsx47(Label, { htmlFor: "input-default", children: "Default Input" }),
8656
- /* @__PURE__ */ jsx47(
8965
+ /* @__PURE__ */ jsx49(Section, { title: "Input", children: /* @__PURE__ */ jsxs33("div", { className: "space-y-4 max-w-md", children: [
8966
+ /* @__PURE__ */ jsxs33("div", { children: [
8967
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "input-default", children: "Default Input" }),
8968
+ /* @__PURE__ */ jsx49(
8657
8969
  Input,
8658
8970
  {
8659
8971
  id: "input-default",
@@ -8663,19 +8975,19 @@ var PlaygroundContent = () => {
8663
8975
  }
8664
8976
  )
8665
8977
  ] }),
8666
- /* @__PURE__ */ jsxs32("div", { children: [
8667
- /* @__PURE__ */ jsx47(Label, { htmlFor: "input-disabled", children: "Disabled Input" }),
8668
- /* @__PURE__ */ jsx47(Input, { id: "input-disabled", placeholder: "Disabled...", disabled: true })
8978
+ /* @__PURE__ */ jsxs33("div", { children: [
8979
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "input-disabled", children: "Disabled Input" }),
8980
+ /* @__PURE__ */ jsx49(Input, { id: "input-disabled", placeholder: "Disabled...", disabled: true })
8669
8981
  ] }),
8670
- /* @__PURE__ */ jsxs32("div", { children: [
8671
- /* @__PURE__ */ jsx47(Label, { htmlFor: "input-type", children: "Email Input" }),
8672
- /* @__PURE__ */ jsx47(Input, { id: "input-type", type: "email", placeholder: "email@example.com" })
8982
+ /* @__PURE__ */ jsxs33("div", { children: [
8983
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "input-type", children: "Email Input" }),
8984
+ /* @__PURE__ */ jsx49(Input, { id: "input-type", type: "email", placeholder: "email@example.com" })
8673
8985
  ] })
8674
8986
  ] }) }),
8675
- /* @__PURE__ */ jsx47(Section, { title: "Textarea", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-4 max-w-md", children: [
8676
- /* @__PURE__ */ jsxs32("div", { children: [
8677
- /* @__PURE__ */ jsx47(Label, { htmlFor: "textarea-default", children: "Default Textarea" }),
8678
- /* @__PURE__ */ jsx47(
8987
+ /* @__PURE__ */ jsx49(Section, { title: "Textarea", children: /* @__PURE__ */ jsxs33("div", { className: "space-y-4 max-w-md", children: [
8988
+ /* @__PURE__ */ jsxs33("div", { children: [
8989
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "textarea-default", children: "Default Textarea" }),
8990
+ /* @__PURE__ */ jsx49(
8679
8991
  Textarea,
8680
8992
  {
8681
8993
  id: "textarea-default",
@@ -8685,52 +8997,52 @@ var PlaygroundContent = () => {
8685
8997
  }
8686
8998
  )
8687
8999
  ] }),
8688
- /* @__PURE__ */ jsxs32("div", { children: [
8689
- /* @__PURE__ */ jsx47(Label, { htmlFor: "textarea-disabled", children: "Disabled Textarea" }),
8690
- /* @__PURE__ */ jsx47(Textarea, { id: "textarea-disabled", placeholder: "Disabled...", disabled: true })
9000
+ /* @__PURE__ */ jsxs33("div", { children: [
9001
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "textarea-disabled", children: "Disabled Textarea" }),
9002
+ /* @__PURE__ */ jsx49(Textarea, { id: "textarea-disabled", placeholder: "Disabled...", disabled: true })
8691
9003
  ] })
8692
9004
  ] }) }),
8693
- /* @__PURE__ */ jsx47(Section, { title: "Select", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-4 max-w-md", children: [
8694
- /* @__PURE__ */ jsxs32("div", { children: [
8695
- /* @__PURE__ */ jsx47(Label, { children: "Default Select" }),
8696
- /* @__PURE__ */ jsxs32(SelectNamespace, { value: selectValue, onValueChange: setSelectValue, children: [
8697
- /* @__PURE__ */ jsx47(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select an option..." }) }),
8698
- /* @__PURE__ */ jsxs32(SelectContent, { children: [
8699
- /* @__PURE__ */ jsx47(SelectItem, { value: "option1", children: "Option 1" }),
8700
- /* @__PURE__ */ jsx47(SelectItem, { value: "option2", children: "Option 2" }),
8701
- /* @__PURE__ */ jsx47(SelectItem, { value: "option3", children: "Option 3" })
9005
+ /* @__PURE__ */ jsx49(Section, { title: "Select", children: /* @__PURE__ */ jsxs33("div", { className: "space-y-4 max-w-md", children: [
9006
+ /* @__PURE__ */ jsxs33("div", { children: [
9007
+ /* @__PURE__ */ jsx49(Label, { children: "Default Select" }),
9008
+ /* @__PURE__ */ jsxs33(SelectNamespace, { value: selectValue, onValueChange: setSelectValue, children: [
9009
+ /* @__PURE__ */ jsx49(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select an option..." }) }),
9010
+ /* @__PURE__ */ jsxs33(SelectContent, { children: [
9011
+ /* @__PURE__ */ jsx49(SelectItem, { value: "option1", children: "Option 1" }),
9012
+ /* @__PURE__ */ jsx49(SelectItem, { value: "option2", children: "Option 2" }),
9013
+ /* @__PURE__ */ jsx49(SelectItem, { value: "option3", children: "Option 3" })
8702
9014
  ] })
8703
9015
  ] })
8704
9016
  ] }),
8705
- /* @__PURE__ */ jsxs32("div", { children: [
8706
- /* @__PURE__ */ jsx47(Label, { children: "Grouped Select" }),
8707
- /* @__PURE__ */ jsxs32(SelectNamespace, { children: [
8708
- /* @__PURE__ */ jsx47(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select a food..." }) }),
8709
- /* @__PURE__ */ jsxs32(SelectContent, { children: [
8710
- /* @__PURE__ */ jsxs32(SelectGroup, { children: [
8711
- /* @__PURE__ */ jsx47(SelectLabel, { children: "Fruits" }),
8712
- /* @__PURE__ */ jsx47(SelectItem, { value: "apple", children: "Apple" }),
8713
- /* @__PURE__ */ jsx47(SelectItem, { value: "banana", children: "Banana" })
9017
+ /* @__PURE__ */ jsxs33("div", { children: [
9018
+ /* @__PURE__ */ jsx49(Label, { children: "Grouped Select" }),
9019
+ /* @__PURE__ */ jsxs33(SelectNamespace, { children: [
9020
+ /* @__PURE__ */ jsx49(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select a food..." }) }),
9021
+ /* @__PURE__ */ jsxs33(SelectContent, { children: [
9022
+ /* @__PURE__ */ jsxs33(SelectGroup, { children: [
9023
+ /* @__PURE__ */ jsx49(SelectLabel, { children: "Fruits" }),
9024
+ /* @__PURE__ */ jsx49(SelectItem, { value: "apple", children: "Apple" }),
9025
+ /* @__PURE__ */ jsx49(SelectItem, { value: "banana", children: "Banana" })
8714
9026
  ] }),
8715
- /* @__PURE__ */ jsxs32(SelectGroup, { children: [
8716
- /* @__PURE__ */ jsx47(SelectLabel, { children: "Vegetables" }),
8717
- /* @__PURE__ */ jsx47(SelectItem, { value: "carrot", children: "Carrot" }),
8718
- /* @__PURE__ */ jsx47(SelectItem, { value: "potato", children: "Potato" })
9027
+ /* @__PURE__ */ jsxs33(SelectGroup, { children: [
9028
+ /* @__PURE__ */ jsx49(SelectLabel, { children: "Vegetables" }),
9029
+ /* @__PURE__ */ jsx49(SelectItem, { value: "carrot", children: "Carrot" }),
9030
+ /* @__PURE__ */ jsx49(SelectItem, { value: "potato", children: "Potato" })
8719
9031
  ] })
8720
9032
  ] })
8721
9033
  ] })
8722
9034
  ] }),
8723
- /* @__PURE__ */ jsxs32("div", { children: [
8724
- /* @__PURE__ */ jsx47(Label, { children: "Disabled Select" }),
8725
- /* @__PURE__ */ jsxs32(SelectNamespace, { disabled: true, children: [
8726
- /* @__PURE__ */ jsx47(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Disabled..." }) }),
8727
- /* @__PURE__ */ jsx47(SelectContent, { children: /* @__PURE__ */ jsx47(SelectItem, { value: "none", children: "None" }) })
9035
+ /* @__PURE__ */ jsxs33("div", { children: [
9036
+ /* @__PURE__ */ jsx49(Label, { children: "Disabled Select" }),
9037
+ /* @__PURE__ */ jsxs33(SelectNamespace, { disabled: true, children: [
9038
+ /* @__PURE__ */ jsx49(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Disabled..." }) }),
9039
+ /* @__PURE__ */ jsx49(SelectContent, { children: /* @__PURE__ */ jsx49(SelectItem, { value: "none", children: "None" }) })
8728
9040
  ] })
8729
9041
  ] })
8730
9042
  ] }) }),
8731
- /* @__PURE__ */ jsx47(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx47("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */ jsxs32("div", { children: [
8732
- /* @__PURE__ */ jsx47(Label, { children: "Framework" }),
8733
- /* @__PURE__ */ jsx47(
9043
+ /* @__PURE__ */ jsx49(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx49("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */ jsxs33("div", { children: [
9044
+ /* @__PURE__ */ jsx49(Label, { children: "Framework" }),
9045
+ /* @__PURE__ */ jsx49(
8734
9046
  Combobox,
8735
9047
  {
8736
9048
  options: comboboxOptions,
@@ -8742,9 +9054,9 @@ var PlaygroundContent = () => {
8742
9054
  }
8743
9055
  )
8744
9056
  ] }) }) }),
8745
- /* @__PURE__ */ jsx47(Section, { title: "Checkbox & Switch", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-4", children: [
8746
- /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
8747
- /* @__PURE__ */ jsx47(
9057
+ /* @__PURE__ */ jsx49(Section, { title: "Checkbox & Switch", children: /* @__PURE__ */ jsxs33("div", { className: "space-y-4", children: [
9058
+ /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-2", children: [
9059
+ /* @__PURE__ */ jsx49(
8748
9060
  Checkbox,
8749
9061
  {
8750
9062
  id: "checkbox",
@@ -8752,15 +9064,15 @@ var PlaygroundContent = () => {
8752
9064
  onChange: (e) => setCheckboxChecked(e.target.checked)
8753
9065
  }
8754
9066
  ),
8755
- /* @__PURE__ */ jsx47(Label, { htmlFor: "checkbox", children: "Accept terms and conditions" })
9067
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "checkbox", children: "Accept terms and conditions" })
8756
9068
  ] }),
8757
- /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
8758
- /* @__PURE__ */ jsx47(Checkbox, { id: "checkbox-disabled", disabled: true }),
8759
- /* @__PURE__ */ jsx47(Label, { htmlFor: "checkbox-disabled", children: "Disabled checkbox" })
9069
+ /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-2", children: [
9070
+ /* @__PURE__ */ jsx49(Checkbox, { id: "checkbox-disabled", disabled: true }),
9071
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "checkbox-disabled", children: "Disabled checkbox" })
8760
9072
  ] }),
8761
- /* @__PURE__ */ jsx47(Separator, {}),
8762
- /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
8763
- /* @__PURE__ */ jsx47(
9073
+ /* @__PURE__ */ jsx49(Separator, {}),
9074
+ /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-2", children: [
9075
+ /* @__PURE__ */ jsx49(
8764
9076
  Switch,
8765
9077
  {
8766
9078
  id: "switch",
@@ -8768,161 +9080,161 @@ var PlaygroundContent = () => {
8768
9080
  onChange: (e) => setSwitchChecked(e.target.checked)
8769
9081
  }
8770
9082
  ),
8771
- /* @__PURE__ */ jsx47(Label, { htmlFor: "switch", children: "Enable notifications" })
9083
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "switch", children: "Enable notifications" })
8772
9084
  ] }),
8773
- /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
8774
- /* @__PURE__ */ jsx47(Switch, { id: "switch-disabled", disabled: true }),
8775
- /* @__PURE__ */ jsx47(Label, { htmlFor: "switch-disabled", children: "Disabled switch" })
9085
+ /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-2", children: [
9086
+ /* @__PURE__ */ jsx49(Switch, { id: "switch-disabled", disabled: true }),
9087
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "switch-disabled", children: "Disabled switch" })
8776
9088
  ] })
8777
9089
  ] }) }),
8778
- /* @__PURE__ */ jsx47(Section, { title: "Badge", children: /* @__PURE__ */ jsxs32("div", { className: "flex flex-wrap gap-4", children: [
8779
- /* @__PURE__ */ jsx47(Badge, { children: "Default" }),
8780
- /* @__PURE__ */ jsx47(Badge, { color: "success", children: "Success" }),
8781
- /* @__PURE__ */ jsx47(Badge, { color: "warning", children: "Warning" }),
8782
- /* @__PURE__ */ jsx47(Badge, { color: "error", variant: "outlined", children: "Error" }),
8783
- /* @__PURE__ */ jsx47(Badge, { color: "destructive", variant: "text", children: "Destructive" })
9090
+ /* @__PURE__ */ jsx49(Section, { title: "Badge", children: /* @__PURE__ */ jsxs33("div", { className: "flex flex-wrap gap-4", children: [
9091
+ /* @__PURE__ */ jsx49(Badge, { children: "Default" }),
9092
+ /* @__PURE__ */ jsx49(Badge, { color: "success", children: "Success" }),
9093
+ /* @__PURE__ */ jsx49(Badge, { color: "warning", children: "Warning" }),
9094
+ /* @__PURE__ */ jsx49(Badge, { color: "error", variant: "outlined", children: "Error" }),
9095
+ /* @__PURE__ */ jsx49(Badge, { color: "destructive", variant: "text", children: "Destructive" })
8784
9096
  ] }) }),
8785
- /* @__PURE__ */ jsx47(Section, { title: "Card", children: /* @__PURE__ */ jsxs32("div", { className: "grid gap-4 md:grid-cols-2", children: [
8786
- /* @__PURE__ */ jsxs32(Card, { children: [
8787
- /* @__PURE__ */ jsxs32(CardHeader, { children: [
8788
- /* @__PURE__ */ jsx47(CardTitle, { children: "Card Title" }),
8789
- /* @__PURE__ */ jsx47(CardDescription, { children: "Card description goes here" })
9097
+ /* @__PURE__ */ jsx49(Section, { title: "Card", children: /* @__PURE__ */ jsxs33("div", { className: "grid gap-4 md:grid-cols-2", children: [
9098
+ /* @__PURE__ */ jsxs33(Card, { children: [
9099
+ /* @__PURE__ */ jsxs33(CardHeader, { children: [
9100
+ /* @__PURE__ */ jsx49(CardTitle, { children: "Card Title" }),
9101
+ /* @__PURE__ */ jsx49(CardDescription, { children: "Card description goes here" })
8790
9102
  ] }),
8791
- /* @__PURE__ */ jsx47(CardContent, { children: /* @__PURE__ */ jsx47("p", { className: "text-foreground", children: "This is the card content area." }) }),
8792
- /* @__PURE__ */ jsxs32(CardFooter, { children: [
8793
- /* @__PURE__ */ jsx47(Button, { variant: "outline", className: "mr-2", children: "Cancel" }),
8794
- /* @__PURE__ */ jsx47(Button, { children: "Submit" })
9103
+ /* @__PURE__ */ jsx49(CardContent, { children: /* @__PURE__ */ jsx49("p", { className: "text-foreground", children: "This is the card content area." }) }),
9104
+ /* @__PURE__ */ jsxs33(CardFooter, { children: [
9105
+ /* @__PURE__ */ jsx49(Button, { variant: "outline", className: "mr-2", children: "Cancel" }),
9106
+ /* @__PURE__ */ jsx49(Button, { children: "Submit" })
8795
9107
  ] })
8796
9108
  ] }),
8797
- /* @__PURE__ */ jsxs32(Card, { children: [
8798
- /* @__PURE__ */ jsxs32(CardHeader, { children: [
8799
- /* @__PURE__ */ jsx47(CardTitle, { children: "Another Card" }),
8800
- /* @__PURE__ */ jsx47(CardDescription, { children: "With different content" })
9109
+ /* @__PURE__ */ jsxs33(Card, { children: [
9110
+ /* @__PURE__ */ jsxs33(CardHeader, { children: [
9111
+ /* @__PURE__ */ jsx49(CardTitle, { children: "Another Card" }),
9112
+ /* @__PURE__ */ jsx49(CardDescription, { children: "With different content" })
8801
9113
  ] }),
8802
- /* @__PURE__ */ jsx47(CardContent, { children: /* @__PURE__ */ jsxs32("div", { className: "space-y-2", children: [
8803
- /* @__PURE__ */ jsx47(Label, { htmlFor: "card-input", children: "Name" }),
8804
- /* @__PURE__ */ jsx47(Input, { id: "card-input", placeholder: "Enter name..." })
9114
+ /* @__PURE__ */ jsx49(CardContent, { children: /* @__PURE__ */ jsxs33("div", { className: "space-y-2", children: [
9115
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "card-input", children: "Name" }),
9116
+ /* @__PURE__ */ jsx49(Input, { id: "card-input", placeholder: "Enter name..." })
8805
9117
  ] }) }),
8806
- /* @__PURE__ */ jsx47(CardFooter, { children: /* @__PURE__ */ jsx47(Button, { className: "w-full", children: "Save" }) })
9118
+ /* @__PURE__ */ jsx49(CardFooter, { children: /* @__PURE__ */ jsx49(Button, { className: "w-full", children: "Save" }) })
8807
9119
  ] })
8808
9120
  ] }) }),
8809
- /* @__PURE__ */ jsxs32(Section, { title: "Dialog", children: [
8810
- /* @__PURE__ */ jsx47(Button, { onClick: () => setDialogOpen(true), children: "Open Dialog" }),
8811
- /* @__PURE__ */ jsx47(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */ jsxs32(DialogContent, { children: [
8812
- /* @__PURE__ */ jsxs32(DialogHeader, { children: [
8813
- /* @__PURE__ */ jsx47(DialogTitle, { children: "Create New Zone" }),
8814
- /* @__PURE__ */ jsx47(DialogDescription, { children: "Fill in the details below to create a new zone." })
9121
+ /* @__PURE__ */ jsxs33(Section, { title: "Dialog", children: [
9122
+ /* @__PURE__ */ jsx49(Button, { onClick: () => setDialogOpen(true), children: "Open Dialog" }),
9123
+ /* @__PURE__ */ jsx49(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */ jsxs33(DialogContent, { children: [
9124
+ /* @__PURE__ */ jsxs33(DialogHeader, { children: [
9125
+ /* @__PURE__ */ jsx49(DialogTitle, { children: "Create New Zone" }),
9126
+ /* @__PURE__ */ jsx49(DialogDescription, { children: "Fill in the details below to create a new zone." })
8815
9127
  ] }),
8816
- /* @__PURE__ */ jsxs32("div", { className: "space-y-4 py-4", children: [
8817
- /* @__PURE__ */ jsxs32("div", { className: "grid grid-cols-2 gap-4", children: [
8818
- /* @__PURE__ */ jsxs32("div", { children: [
8819
- /* @__PURE__ */ jsx47(Label, { htmlFor: "zone-name", children: "Zone Name *" }),
8820
- /* @__PURE__ */ jsx47(Input, { id: "zone-name", placeholder: "eg:hyderabad" })
9128
+ /* @__PURE__ */ jsxs33("div", { className: "space-y-4 py-4", children: [
9129
+ /* @__PURE__ */ jsxs33("div", { className: "grid grid-cols-2 gap-4", children: [
9130
+ /* @__PURE__ */ jsxs33("div", { children: [
9131
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "zone-name", children: "Zone Name *" }),
9132
+ /* @__PURE__ */ jsx49(Input, { id: "zone-name", placeholder: "eg:hyderabad" })
8821
9133
  ] }),
8822
- /* @__PURE__ */ jsxs32("div", { children: [
8823
- /* @__PURE__ */ jsx47(Label, { htmlFor: "zone-code", children: "Zone Code *" }),
8824
- /* @__PURE__ */ jsx47(Input, { id: "zone-code", placeholder: "eg :hyd022" })
9134
+ /* @__PURE__ */ jsxs33("div", { children: [
9135
+ /* @__PURE__ */ jsx49(Label, { htmlFor: "zone-code", children: "Zone Code *" }),
9136
+ /* @__PURE__ */ jsx49(Input, { id: "zone-code", placeholder: "eg :hyd022" })
8825
9137
  ] })
8826
9138
  ] }),
8827
- /* @__PURE__ */ jsxs32("div", { className: "grid grid-cols-2 gap-4", children: [
8828
- /* @__PURE__ */ jsxs32("div", { children: [
8829
- /* @__PURE__ */ jsx47(Label, { children: "State *" }),
8830
- /* @__PURE__ */ jsxs32(SelectNamespace, { children: [
8831
- /* @__PURE__ */ jsx47(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select state" }) }),
8832
- /* @__PURE__ */ jsxs32(SelectContent, { children: [
8833
- /* @__PURE__ */ jsx47(SelectItem, { value: "telangana", children: "TELANGANA" }),
8834
- /* @__PURE__ */ jsx47(SelectItem, { value: "andhra", children: "ANDHRA PRADESH" })
9139
+ /* @__PURE__ */ jsxs33("div", { className: "grid grid-cols-2 gap-4", children: [
9140
+ /* @__PURE__ */ jsxs33("div", { children: [
9141
+ /* @__PURE__ */ jsx49(Label, { children: "State *" }),
9142
+ /* @__PURE__ */ jsxs33(SelectNamespace, { children: [
9143
+ /* @__PURE__ */ jsx49(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select state" }) }),
9144
+ /* @__PURE__ */ jsxs33(SelectContent, { children: [
9145
+ /* @__PURE__ */ jsx49(SelectItem, { value: "telangana", children: "TELANGANA" }),
9146
+ /* @__PURE__ */ jsx49(SelectItem, { value: "andhra", children: "ANDHRA PRADESH" })
8835
9147
  ] })
8836
9148
  ] })
8837
9149
  ] }),
8838
- /* @__PURE__ */ jsxs32("div", { children: [
8839
- /* @__PURE__ */ jsx47(Label, { children: "District *" }),
8840
- /* @__PURE__ */ jsxs32(SelectNamespace, { children: [
8841
- /* @__PURE__ */ jsx47(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select District" }) }),
8842
- /* @__PURE__ */ jsxs32(SelectContent, { children: [
8843
- /* @__PURE__ */ jsx47(SelectItem, { value: "hyderabad", children: "HYDERABAD" }),
8844
- /* @__PURE__ */ jsx47(SelectItem, { value: "rangareddy", children: "RANGAREDDY" })
9150
+ /* @__PURE__ */ jsxs33("div", { children: [
9151
+ /* @__PURE__ */ jsx49(Label, { children: "District *" }),
9152
+ /* @__PURE__ */ jsxs33(SelectNamespace, { children: [
9153
+ /* @__PURE__ */ jsx49(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select District" }) }),
9154
+ /* @__PURE__ */ jsxs33(SelectContent, { children: [
9155
+ /* @__PURE__ */ jsx49(SelectItem, { value: "hyderabad", children: "HYDERABAD" }),
9156
+ /* @__PURE__ */ jsx49(SelectItem, { value: "rangareddy", children: "RANGAREDDY" })
8845
9157
  ] })
8846
9158
  ] })
8847
9159
  ] })
8848
9160
  ] })
8849
9161
  ] }),
8850
- /* @__PURE__ */ jsxs32(DialogFooter, { children: [
8851
- /* @__PURE__ */ jsx47(Button, { variant: "outline", onClick: () => setDialogOpen(false), children: "CANCEL" }),
8852
- /* @__PURE__ */ jsx47(Button, { onClick: () => setDialogOpen(false), children: "Create" })
9162
+ /* @__PURE__ */ jsxs33(DialogFooter, { children: [
9163
+ /* @__PURE__ */ jsx49(Button, { variant: "outline", onClick: () => setDialogOpen(false), children: "CANCEL" }),
9164
+ /* @__PURE__ */ jsx49(Button, { onClick: () => setDialogOpen(false), children: "Create" })
8853
9165
  ] })
8854
9166
  ] }) })
8855
9167
  ] }),
8856
- /* @__PURE__ */ jsx47(Section, { title: "Table", children: /* @__PURE__ */ jsxs32(TableNamespace, { children: [
8857
- /* @__PURE__ */ jsx47(TableCaption, { children: "A list of recent invoices" }),
8858
- /* @__PURE__ */ jsx47(TableHeader, { children: /* @__PURE__ */ jsxs32(TableRow, { children: [
8859
- /* @__PURE__ */ jsx47(TableHead, { children: "Invoice" }),
8860
- /* @__PURE__ */ jsx47(TableHead, { children: "Status" }),
8861
- /* @__PURE__ */ jsx47(TableHead, { children: "Method" }),
8862
- /* @__PURE__ */ jsx47(TableHead, { className: "text-right", children: "Amount" })
9168
+ /* @__PURE__ */ jsx49(Section, { title: "Table", children: /* @__PURE__ */ jsxs33(TableNamespace, { children: [
9169
+ /* @__PURE__ */ jsx49(TableCaption, { children: "A list of recent invoices" }),
9170
+ /* @__PURE__ */ jsx49(TableHeader, { children: /* @__PURE__ */ jsxs33(TableRow, { children: [
9171
+ /* @__PURE__ */ jsx49(TableHead, { children: "Invoice" }),
9172
+ /* @__PURE__ */ jsx49(TableHead, { children: "Status" }),
9173
+ /* @__PURE__ */ jsx49(TableHead, { children: "Method" }),
9174
+ /* @__PURE__ */ jsx49(TableHead, { className: "text-right", children: "Amount" })
8863
9175
  ] }) }),
8864
- /* @__PURE__ */ jsxs32(TableBody, { children: [
8865
- /* @__PURE__ */ jsxs32(TableRow, { children: [
8866
- /* @__PURE__ */ jsx47(TableCell, { children: "INV001" }),
8867
- /* @__PURE__ */ jsx47(TableCell, { children: /* @__PURE__ */ jsx47(Badge, { color: "success", children: "Paid" }) }),
8868
- /* @__PURE__ */ jsx47(TableCell, { children: "Credit Card" }),
8869
- /* @__PURE__ */ jsx47(TableCell, { className: "text-right", children: "$250.00" })
9176
+ /* @__PURE__ */ jsxs33(TableBody, { children: [
9177
+ /* @__PURE__ */ jsxs33(TableRow, { children: [
9178
+ /* @__PURE__ */ jsx49(TableCell, { children: "INV001" }),
9179
+ /* @__PURE__ */ jsx49(TableCell, { children: /* @__PURE__ */ jsx49(Badge, { color: "success", children: "Paid" }) }),
9180
+ /* @__PURE__ */ jsx49(TableCell, { children: "Credit Card" }),
9181
+ /* @__PURE__ */ jsx49(TableCell, { className: "text-right", children: "$250.00" })
8870
9182
  ] }),
8871
- /* @__PURE__ */ jsxs32(TableRow, { children: [
8872
- /* @__PURE__ */ jsx47(TableCell, { children: "INV002" }),
8873
- /* @__PURE__ */ jsx47(TableCell, { children: /* @__PURE__ */ jsx47(Badge, { color: "warning", variant: "outlined", children: "Pending" }) }),
8874
- /* @__PURE__ */ jsx47(TableCell, { children: "PayPal" }),
8875
- /* @__PURE__ */ jsx47(TableCell, { className: "text-right", children: "$150.00" })
9183
+ /* @__PURE__ */ jsxs33(TableRow, { children: [
9184
+ /* @__PURE__ */ jsx49(TableCell, { children: "INV002" }),
9185
+ /* @__PURE__ */ jsx49(TableCell, { children: /* @__PURE__ */ jsx49(Badge, { color: "warning", variant: "outlined", children: "Pending" }) }),
9186
+ /* @__PURE__ */ jsx49(TableCell, { children: "PayPal" }),
9187
+ /* @__PURE__ */ jsx49(TableCell, { className: "text-right", children: "$150.00" })
8876
9188
  ] }),
8877
- /* @__PURE__ */ jsxs32(TableRow, { children: [
8878
- /* @__PURE__ */ jsx47(TableCell, { children: "INV003" }),
8879
- /* @__PURE__ */ jsx47(TableCell, { children: /* @__PURE__ */ jsx47(Badge, { color: "error", variant: "outlined", children: "Failed" }) }),
8880
- /* @__PURE__ */ jsx47(TableCell, { children: "Bank Transfer" }),
8881
- /* @__PURE__ */ jsx47(TableCell, { className: "text-right", children: "$350.00" })
9189
+ /* @__PURE__ */ jsxs33(TableRow, { children: [
9190
+ /* @__PURE__ */ jsx49(TableCell, { children: "INV003" }),
9191
+ /* @__PURE__ */ jsx49(TableCell, { children: /* @__PURE__ */ jsx49(Badge, { color: "error", variant: "outlined", children: "Failed" }) }),
9192
+ /* @__PURE__ */ jsx49(TableCell, { children: "Bank Transfer" }),
9193
+ /* @__PURE__ */ jsx49(TableCell, { className: "text-right", children: "$350.00" })
8882
9194
  ] })
8883
9195
  ] })
8884
9196
  ] }) }),
8885
- /* @__PURE__ */ jsx47(Section, { title: "Pagination", children: /* @__PURE__ */ jsx47(PaginationNamespace, { children: /* @__PURE__ */ jsxs32(PaginationContent, { children: [
8886
- /* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationPrevious, { onClick: () => console.log("Previous") }) }),
8887
- /* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationLink, { isActive: true, children: "1" }) }),
8888
- /* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationLink, { children: "2" }) }),
8889
- /* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationLink, { children: "3" }) }),
8890
- /* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationEllipsis, {}) }),
8891
- /* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(PaginationNext, { onClick: () => console.log("Next") }) })
9197
+ /* @__PURE__ */ jsx49(Section, { title: "Pagination", children: /* @__PURE__ */ jsx49(PaginationNamespace, { children: /* @__PURE__ */ jsxs33(PaginationContent, { children: [
9198
+ /* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationPrevious, { onClick: () => console.log("Previous") }) }),
9199
+ /* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationLink, { isActive: true, children: "1" }) }),
9200
+ /* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationLink, { children: "2" }) }),
9201
+ /* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationLink, { children: "3" }) }),
9202
+ /* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationEllipsis, {}) }),
9203
+ /* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(PaginationNext, { onClick: () => console.log("Next") }) })
8892
9204
  ] }) }) }),
8893
- /* @__PURE__ */ jsx47(Section, { title: "Spinner", children: /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-8", children: [
8894
- /* @__PURE__ */ jsxs32("div", { className: "text-center", children: [
8895
- /* @__PURE__ */ jsx47(Spinner, { size: "sm" }),
8896
- /* @__PURE__ */ jsx47("p", { className: "text-sm text-muted-foreground mt-2", children: "Small" })
9205
+ /* @__PURE__ */ jsx49(Section, { title: "Spinner", children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-8", children: [
9206
+ /* @__PURE__ */ jsxs33("div", { className: "text-center", children: [
9207
+ /* @__PURE__ */ jsx49(Spinner, { size: "sm" }),
9208
+ /* @__PURE__ */ jsx49("p", { className: "text-sm text-muted-foreground mt-2", children: "Small" })
8897
9209
  ] }),
8898
- /* @__PURE__ */ jsxs32("div", { className: "text-center", children: [
8899
- /* @__PURE__ */ jsx47(Spinner, { size: "default" }),
8900
- /* @__PURE__ */ jsx47("p", { className: "text-sm text-muted-foreground mt-2", children: "Default" })
9210
+ /* @__PURE__ */ jsxs33("div", { className: "text-center", children: [
9211
+ /* @__PURE__ */ jsx49(Spinner, { size: "default" }),
9212
+ /* @__PURE__ */ jsx49("p", { className: "text-sm text-muted-foreground mt-2", children: "Default" })
8901
9213
  ] }),
8902
- /* @__PURE__ */ jsxs32("div", { className: "text-center", children: [
8903
- /* @__PURE__ */ jsx47(Spinner, { size: "lg" }),
8904
- /* @__PURE__ */ jsx47("p", { className: "text-sm text-muted-foreground mt-2", children: "Large" })
9214
+ /* @__PURE__ */ jsxs33("div", { className: "text-center", children: [
9215
+ /* @__PURE__ */ jsx49(Spinner, { size: "lg" }),
9216
+ /* @__PURE__ */ jsx49("p", { className: "text-sm text-muted-foreground mt-2", children: "Large" })
8905
9217
  ] })
8906
9218
  ] }) }),
8907
- /* @__PURE__ */ jsx47(Section, { title: "Separator", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-4", children: [
8908
- /* @__PURE__ */ jsx47("p", { className: "text-foreground", children: "Content above separator" }),
8909
- /* @__PURE__ */ jsx47(Separator, {}),
8910
- /* @__PURE__ */ jsx47("p", { className: "text-foreground", children: "Content below separator" }),
8911
- /* @__PURE__ */ jsxs32("div", { className: "flex items-center h-10", children: [
8912
- /* @__PURE__ */ jsx47("span", { className: "text-foreground", children: "Left" }),
8913
- /* @__PURE__ */ jsx47(Separator, { orientation: "vertical", className: "mx-4" }),
8914
- /* @__PURE__ */ jsx47("span", { className: "text-foreground", children: "Right" })
9219
+ /* @__PURE__ */ jsx49(Section, { title: "Separator", children: /* @__PURE__ */ jsxs33("div", { className: "space-y-4", children: [
9220
+ /* @__PURE__ */ jsx49("p", { className: "text-foreground", children: "Content above separator" }),
9221
+ /* @__PURE__ */ jsx49(Separator, {}),
9222
+ /* @__PURE__ */ jsx49("p", { className: "text-foreground", children: "Content below separator" }),
9223
+ /* @__PURE__ */ jsxs33("div", { className: "flex items-center h-10", children: [
9224
+ /* @__PURE__ */ jsx49("span", { className: "text-foreground", children: "Left" }),
9225
+ /* @__PURE__ */ jsx49(Separator, { orientation: "vertical", className: "mx-4" }),
9226
+ /* @__PURE__ */ jsx49("span", { className: "text-foreground", children: "Right" })
8915
9227
  ] })
8916
9228
  ] }) }),
8917
- /* @__PURE__ */ jsx47(Section, { title: "Typography & Colors", children: /* @__PURE__ */ jsxs32("div", { className: "space-y-2", children: [
8918
- /* @__PURE__ */ jsx47("p", { className: "text-foreground", children: "text-foreground - Primary text color" }),
8919
- /* @__PURE__ */ jsx47("p", { className: "text-muted-foreground", children: "text-muted-foreground - Muted text color" }),
8920
- /* @__PURE__ */ jsx47("p", { className: "text-accent", children: "text-accent - Accent color" }),
8921
- /* @__PURE__ */ jsx47("p", { className: "text-destructive", children: "text-destructive - Destructive color" })
9229
+ /* @__PURE__ */ jsx49(Section, { title: "Typography & Colors", children: /* @__PURE__ */ jsxs33("div", { className: "space-y-2", children: [
9230
+ /* @__PURE__ */ jsx49("p", { className: "text-foreground", children: "text-foreground - Primary text color" }),
9231
+ /* @__PURE__ */ jsx49("p", { className: "text-muted-foreground", children: "text-muted-foreground - Muted text color" }),
9232
+ /* @__PURE__ */ jsx49("p", { className: "text-accent", children: "text-accent - Accent color" }),
9233
+ /* @__PURE__ */ jsx49("p", { className: "text-destructive", children: "text-destructive - Destructive color" })
8922
9234
  ] }) })
8923
9235
  ] }) });
8924
9236
  };
8925
- var Playground = () => /* @__PURE__ */ jsx47(ThemeProvider, { defaultTheme: "light", children: /* @__PURE__ */ jsx47(PlaygroundContent, {}) });
9237
+ var Playground = () => /* @__PURE__ */ jsx49(ThemeProvider, { defaultTheme: "light", children: /* @__PURE__ */ jsx49(PlaygroundContent, {}) });
8926
9238
  export {
8927
9239
  Accordion,
8928
9240
  AccordionContent,
@@ -8945,6 +9257,7 @@ export {
8945
9257
  AreaChart,
8946
9258
  Avatar,
8947
9259
  AvatarGroup,
9260
+ Backdrop,
8948
9261
  Badge,
8949
9262
  BarChart,
8950
9263
  BottomNavigation,
@@ -9105,6 +9418,9 @@ export {
9105
9418
  SkeletonTableRow,
9106
9419
  SkeletonText,
9107
9420
  Slider,
9421
+ Snackbar,
9422
+ SnackbarContent,
9423
+ SnackbarProvider,
9108
9424
  Spinner,
9109
9425
  Stack,
9110
9426
  Switch,
@@ -9153,6 +9469,7 @@ export {
9153
9469
  useFormControl,
9154
9470
  useSidebar,
9155
9471
  useSidebarRail,
9472
+ useSnackbar,
9156
9473
  useTheme
9157
9474
  };
9158
9475
  //# sourceMappingURL=index.js.map