@still-void/ui 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,7 +44,7 @@ __export(client_exports, {
44
44
  AlertDialogTrigger: () => AlertDialogTrigger,
45
45
  CopyButton: () => CopyButton,
46
46
  DEFAULT_STORAGE_KEY: () => DEFAULT_STORAGE_KEY,
47
- Dialog: () => Dialog,
47
+ Dialog: () => Dialog2,
48
48
  DialogClose: () => DialogClose,
49
49
  DialogContent: () => DialogContent,
50
50
  DialogDescription: () => DialogDescription,
@@ -80,6 +80,10 @@ __export(client_exports, {
80
80
  SelectSeparator: () => SelectSeparator,
81
81
  SelectTrigger: () => SelectTrigger,
82
82
  SelectValue: () => SelectValue,
83
+ SidebarInset: () => SidebarInset,
84
+ SidebarPanel: () => SidebarPanel,
85
+ SidebarProvider: () => SidebarProvider,
86
+ SidebarTrigger: () => SidebarTrigger,
83
87
  TableOfContents: () => TableOfContents,
84
88
  Tabs: () => Tabs,
85
89
  TabsContent: () => TabsContent,
@@ -87,17 +91,22 @@ __export(client_exports, {
87
91
  TabsTrigger: () => TabsTrigger,
88
92
  ThemeProvider: () => ThemeProvider,
89
93
  ThemeToggle: () => ThemeToggle,
94
+ ToastProvider: () => ToastProvider,
90
95
  Tooltip: () => Tooltip,
91
96
  TooltipContent: () => TooltipContent,
92
97
  TooltipProvider: () => TooltipProvider,
93
98
  TooltipTrigger: () => TooltipTrigger,
94
99
  copyToClipboard: () => copyToClipboard,
100
+ createMediaQuery: () => createMediaQuery,
95
101
  createReadingProgress: () => createReadingProgress,
96
102
  createScrollSpy: () => createScrollSpy,
97
103
  createThemeManager: () => createThemeManager,
104
+ useMediaQuery: () => useMediaQuery,
98
105
  useReadingProgress: () => useReadingProgress,
99
106
  useScrollSpy: () => useScrollSpy,
100
- useTheme: () => useTheme
107
+ useSidebar: () => useSidebar,
108
+ useTheme: () => useTheme,
109
+ useToast: () => useToast
101
110
  });
102
111
  module.exports = __toCommonJS(client_exports);
103
112
 
@@ -362,6 +371,72 @@ var import_react4 = require("react");
362
371
  // src/react/client/hooks.ts
363
372
  var import_react3 = require("react");
364
373
 
374
+ // src/behaviors/mediaQuery.ts
375
+ function createMediaQuery(query) {
376
+ if (typeof window === "undefined" || !window.matchMedia) {
377
+ return {
378
+ getSnapshot: () => false,
379
+ subscribe: () => () => {
380
+ },
381
+ // no-op unsubscribe
382
+ destroy: () => {
383
+ }
384
+ // no-op
385
+ };
386
+ }
387
+ const mql = window.matchMedia(query);
388
+ const listeners = [];
389
+ let currentMatches = mql.matches;
390
+ let attached = false;
391
+ const handleChange = () => {
392
+ const newMatches = mql.matches;
393
+ if (newMatches !== currentMatches) {
394
+ currentMatches = newMatches;
395
+ for (const listener of [...listeners]) {
396
+ listener();
397
+ }
398
+ }
399
+ };
400
+ const attachListener = () => {
401
+ if (attached) return;
402
+ attached = true;
403
+ if (mql.addEventListener) {
404
+ mql.addEventListener("change", handleChange);
405
+ } else if (mql.addListener) {
406
+ mql.addListener(handleChange);
407
+ }
408
+ };
409
+ const detachListener = () => {
410
+ if (!attached) return;
411
+ attached = false;
412
+ if (mql.removeEventListener) {
413
+ mql.removeEventListener("change", handleChange);
414
+ } else if (mql.removeListener) {
415
+ mql.removeListener(handleChange);
416
+ }
417
+ };
418
+ return {
419
+ getSnapshot: () => mql.matches,
420
+ subscribe: (listener) => {
421
+ listeners.push(listener);
422
+ attachListener();
423
+ return () => {
424
+ const index = listeners.indexOf(listener);
425
+ if (index >= 0) {
426
+ listeners.splice(index, 1);
427
+ }
428
+ if (listeners.length === 0) {
429
+ detachListener();
430
+ }
431
+ };
432
+ },
433
+ destroy: () => {
434
+ listeners.length = 0;
435
+ detachListener();
436
+ }
437
+ };
438
+ }
439
+
365
440
  // src/behaviors/readingProgress.ts
366
441
  var raf = typeof window !== "undefined" && typeof window.requestAnimationFrame === "function" ? (cb) => window.requestAnimationFrame(cb) : (
367
442
  /* v8 ignore next */
@@ -467,6 +542,30 @@ function useReadingProgress(target, step = 1) {
467
542
  }, [target, step]);
468
543
  return percent;
469
544
  }
545
+ function useMediaQuery(query) {
546
+ const mq = (0, import_react3.useSyncExternalStore)(
547
+ // subscribe: attach listener and return unsubscribe
548
+ (onStoreChange) => {
549
+ const mediaQuery = createMediaQuery(query);
550
+ const unsubscribe = mediaQuery.subscribe(onStoreChange);
551
+ return () => {
552
+ unsubscribe();
553
+ mediaQuery.destroy();
554
+ };
555
+ },
556
+ // getSnapshot: return current state (after hydration)
557
+ () => {
558
+ const mediaQuery = createMediaQuery(query);
559
+ const matches = mediaQuery.getSnapshot();
560
+ mediaQuery.destroy();
561
+ return matches;
562
+ },
563
+ // getServerSnapshot: return initial state during SSR (desktop/false)
564
+ // R5-01 AC-4: SSR returns false without error
565
+ () => false
566
+ );
567
+ return mq;
568
+ }
470
569
 
471
570
  // src/react/client/TableOfContents.tsx
472
571
  var import_jsx_runtime4 = require("react/jsx-runtime");
@@ -499,9 +598,12 @@ function ReadingProgress({ target, announce, className, ...rest }) {
499
598
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: cx(readingProgress(), className), ...a11yProps, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: readingProgressClasses.bar }) });
500
599
  }
501
600
 
502
- // src/components/ui/dialog.tsx
601
+ // src/react/client/ToastProvider.tsx
503
602
  var React2 = __toESM(require("react"), 1);
504
- var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
603
+ var Toast = __toESM(require("@radix-ui/react-toast"), 1);
604
+
605
+ // src/components/ui/icon.tsx
606
+ var React = __toESM(require("react"), 1);
505
607
 
506
608
  // src/lib/utils.ts
507
609
  var import_clsx = require("clsx");
@@ -510,9 +612,6 @@ function cn(...inputs) {
510
612
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
511
613
  }
512
614
 
513
- // src/components/ui/icon.tsx
514
- var React = __toESM(require("react"), 1);
515
-
516
615
  // src/components/ui/icon-set.ts
517
616
  var import_outline = require("@heroicons/react/24/outline");
518
617
  var ICON_GLYPHS = {
@@ -548,6 +647,7 @@ var Icon = React.forwardRef(
548
647
  {
549
648
  ...props,
550
649
  ref,
650
+ "data-icon-name": name,
551
651
  className: cn(
552
652
  "sv-icon",
553
653
  size === "sm" && "sv-icon--sm",
@@ -563,13 +663,349 @@ var Icon = React.forwardRef(
563
663
  );
564
664
  Icon.displayName = "Icon";
565
665
 
566
- // src/components/ui/dialog.tsx
666
+ // src/react/client/ToastProvider.tsx
567
667
  var import_jsx_runtime7 = require("react/jsx-runtime");
568
- var Dialog = DialogPrimitive.Root;
668
+ var ToastContext = React2.createContext(null);
669
+ function useToast() {
670
+ const context = React2.useContext(ToastContext);
671
+ if (!context) {
672
+ throw new Error("useToast must be used within ToastProvider");
673
+ }
674
+ return context;
675
+ }
676
+ var variantConfig = {
677
+ info: { icon: "info", type: "background" },
678
+ success: { icon: "check-circle", type: "background" },
679
+ warning: { icon: "alert-triangle", type: "foreground" },
680
+ danger: { icon: "alert-circle", type: "foreground" }
681
+ };
682
+ function toastReducer(state, action) {
683
+ switch (action.type) {
684
+ case "ADD": {
685
+ return [...state, action.entry];
686
+ }
687
+ case "REMOVE": {
688
+ return state.filter((t) => t.id !== action.id);
689
+ }
690
+ case "UPDATE": {
691
+ return state.map(
692
+ (t) => t.id === action.id ? { ...t, ...action.patch, version: t.version + 1 } : t
693
+ );
694
+ }
695
+ case "REMOVE_ALL": {
696
+ return [];
697
+ }
698
+ /* v8 ignore next 2 */
699
+ default: {
700
+ return state;
701
+ }
702
+ }
703
+ }
704
+ function ToastProvider({
705
+ children,
706
+ duration = 5e3,
707
+ max = 3,
708
+ label = "Notifications",
709
+ closeLabel = "Close",
710
+ swipeDirection = "right"
711
+ }) {
712
+ const [allToasts, dispatch] = React2.useReducer(toastReducer, []);
713
+ const isMountedRef = React2.useRef(true);
714
+ React2.useEffect(() => {
715
+ isMountedRef.current = true;
716
+ return () => {
717
+ isMountedRef.current = false;
718
+ };
719
+ }, []);
720
+ const validatedMax = typeof max === "number" && Number.isFinite(max) && max > 0 ? Math.floor(max) : 3;
721
+ const displayedToasts = allToasts.slice(-validatedMax);
722
+ const toast = React2.useCallback(
723
+ (options) => {
724
+ if (!isMountedRef.current) return { id: "", dismiss: () => {
725
+ }, update: () => {
726
+ } };
727
+ const id = Math.random().toString(36).substr(2, 9);
728
+ const variant = options.variant ?? "info";
729
+ const duration_val = typeof options.duration === "number" && options.duration > 0 ? options.duration : duration;
730
+ const entry = {
731
+ ...options,
732
+ variant,
733
+ duration: duration_val,
734
+ id,
735
+ version: 0
736
+ };
737
+ dispatch({ type: "ADD", entry });
738
+ return {
739
+ id,
740
+ dismiss: () => dispatch({ type: "REMOVE", id }),
741
+ update: (patch) => {
742
+ dispatch({ type: "UPDATE", id, patch });
743
+ }
744
+ };
745
+ },
746
+ [duration]
747
+ );
748
+ const dismiss = React2.useCallback((id) => {
749
+ dispatch({ type: "REMOVE", id });
750
+ }, []);
751
+ const dismissAll = React2.useCallback(() => {
752
+ dispatch({ type: "REMOVE_ALL" });
753
+ }, []);
754
+ React2.useEffect(() => {
755
+ if (allToasts.length > validatedMax) {
756
+ const toRemove = allToasts[0];
757
+ if (toRemove) {
758
+ dismiss(toRemove.id);
759
+ }
760
+ }
761
+ }, [allToasts.length, validatedMax, dismiss]);
762
+ const value = {
763
+ toast,
764
+ dismiss,
765
+ dismissAll,
766
+ toasts: displayedToasts
767
+ };
768
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ToastContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Toast.Provider, { duration, label, swipeDirection, children: [
769
+ children,
770
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Toast.Viewport, { className: "sv-toast__viewport" }),
771
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
772
+ ToastViewportRenderer,
773
+ {
774
+ toasts: displayedToasts,
775
+ closeLabel,
776
+ duration,
777
+ dismiss
778
+ }
779
+ )
780
+ ] }) });
781
+ }
782
+ function ToastViewportRenderer({
783
+ toasts,
784
+ closeLabel,
785
+ duration,
786
+ dismiss
787
+ }) {
788
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: toasts.map((entry) => {
789
+ const { id, title, description, variant = "info", action } = entry;
790
+ const config = variantConfig[variant];
791
+ const toastDuration = entry.duration ?? duration;
792
+ const handleActionClick = () => {
793
+ if (action?.onClick) {
794
+ action.onClick();
795
+ }
796
+ dismiss(id);
797
+ };
798
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
799
+ Toast.Root,
800
+ {
801
+ open: true,
802
+ onOpenChange: (open) => {
803
+ if (!open) {
804
+ dismiss(id);
805
+ }
806
+ },
807
+ duration: toastDuration,
808
+ type: config.type,
809
+ "data-variant": variant,
810
+ className: cn("sv-toast", `sv-toast--${variant}`),
811
+ children: [
812
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: config.icon, className: "sv-toast__icon", "aria-hidden": "true", "data-name": config.icon }),
813
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "sv-toast__content", children: [
814
+ title && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Toast.Title, { className: "sv-toast__title", children: title }),
815
+ description && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Toast.Description, { className: "sv-toast__description", children: description })
816
+ ] }),
817
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "sv-toast__actions", children: [
818
+ action && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
819
+ Toast.Action,
820
+ {
821
+ altText: action.altText,
822
+ asChild: true,
823
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
824
+ "button",
825
+ {
826
+ type: "button",
827
+ className: "sv-toast__action",
828
+ onClick: handleActionClick,
829
+ children: action.label
830
+ }
831
+ )
832
+ }
833
+ ),
834
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Toast.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { type: "button", className: "sv-toast__close", "aria-label": closeLabel, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "x" }) }) })
835
+ ] })
836
+ ]
837
+ },
838
+ `${id}-${entry.version}`
839
+ );
840
+ }) });
841
+ }
842
+
843
+ // src/react/client/SidebarProvider.tsx
844
+ var import_react5 = require("react");
845
+ var Dialog = __toESM(require("@radix-ui/react-dialog"), 1);
846
+ var import_jsx_runtime8 = require("react/jsx-runtime");
847
+ function composeRefs(...refs) {
848
+ return (node) => {
849
+ for (const ref of refs) {
850
+ if (typeof ref === "function") {
851
+ ref(node);
852
+ } else if (ref !== null && ref !== void 0) {
853
+ ;
854
+ ref.current = node;
855
+ }
856
+ }
857
+ };
858
+ }
859
+ var SidebarContext = (0, import_react5.createContext)(null);
860
+ function SidebarProvider({
861
+ children,
862
+ defaultOpen = true,
863
+ open: controlledOpen,
864
+ onOpenChange,
865
+ collapsible: collapsibleProp = "offcanvas",
866
+ breakpoint: breakpointProp
867
+ }) {
868
+ const [uncontrolledOpen, setUncontrolledOpen] = (0, import_react5.useState)(defaultOpen);
869
+ const panelId = (0, import_react5.useId)();
870
+ const triggerRef = (0, import_react5.useRef)(null);
871
+ const breakpoint = (() => {
872
+ if (breakpointProp === void 0 || breakpointProp === 0 || breakpointProp < 0 || Number.isNaN(breakpointProp) || !Number.isFinite(breakpointProp)) {
873
+ return 1024;
874
+ }
875
+ return breakpointProp;
876
+ })();
877
+ const isMobile = !useMediaQuery(`(min-width: ${breakpoint}px)`);
878
+ const isControlled = controlledOpen !== void 0;
879
+ const open = isControlled ? controlledOpen : uncontrolledOpen;
880
+ const setOpen = (0, import_react5.useCallback)(
881
+ (newOpen) => {
882
+ if (collapsibleProp === "none") return;
883
+ if (isControlled) {
884
+ onOpenChange?.(newOpen);
885
+ } else {
886
+ setUncontrolledOpen(newOpen);
887
+ }
888
+ },
889
+ [collapsibleProp, isControlled, onOpenChange]
890
+ );
891
+ const toggle = (0, import_react5.useCallback)(() => {
892
+ if (collapsibleProp === "none") return;
893
+ if (isControlled) {
894
+ onOpenChange?.(!controlledOpen);
895
+ } else {
896
+ setUncontrolledOpen((prev) => !prev);
897
+ }
898
+ }, [collapsibleProp, isControlled, controlledOpen, onOpenChange]);
899
+ const contextValue = {
900
+ open,
901
+ setOpen,
902
+ toggle,
903
+ isMobile,
904
+ collapsible: collapsibleProp,
905
+ panelId,
906
+ triggerRef
907
+ };
908
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
909
+ "div",
910
+ {
911
+ className: "sv-app-shell",
912
+ "data-state": open ? "open" : "closed",
913
+ "data-collapsible": collapsibleProp,
914
+ "data-mobile": isMobile,
915
+ children
916
+ }
917
+ ) });
918
+ }
919
+ function useSidebar() {
920
+ const context = (0, import_react5.useContext)(SidebarContext);
921
+ if (!context) {
922
+ throw new Error("useSidebar must be used within SidebarProvider");
923
+ }
924
+ return context;
925
+ }
926
+ var SidebarPanel = (0, import_react5.forwardRef)(
927
+ function SidebarPanel2({ className, title = "Navigation", children, ...props }, ref) {
928
+ const { open, setOpen, isMobile, collapsible, panelId, triggerRef } = useSidebar();
929
+ if (isMobile && collapsible !== "none") {
930
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Dialog.Root, { open, onOpenChange: setOpen, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Dialog.Portal, { children: [
931
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Dialog.Overlay, { className: "sv-overlay" }),
932
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
933
+ Dialog.Content,
934
+ {
935
+ ref,
936
+ className: cn("sv-app-sidebar sv-app-sidebar__drawer", className),
937
+ role: "dialog",
938
+ "aria-modal": "true",
939
+ id: panelId,
940
+ onCloseAutoFocus: (event) => {
941
+ event.preventDefault();
942
+ triggerRef.current?.focus();
943
+ },
944
+ ...props,
945
+ children: [
946
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Dialog.Title, { className: "sv-sr-only", children: title }),
947
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "sv-app-sidebar__body", children }),
948
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Dialog.Close, { className: "sv-dialog__close", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { "aria-label": "Close sidebar", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "x" }) }) })
949
+ ]
950
+ }
951
+ )
952
+ ] }) });
953
+ }
954
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
955
+ "aside",
956
+ {
957
+ ref,
958
+ className: cn("sv-app-sidebar", className),
959
+ id: panelId,
960
+ ...props,
961
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "sv-app-sidebar__body", children })
962
+ }
963
+ );
964
+ }
965
+ );
966
+ SidebarPanel.displayName = "SidebarPanel";
967
+ var SidebarTrigger = (0, import_react5.forwardRef)(
968
+ function SidebarTrigger2({ className, label, children, onClick, ...props }, ref) {
969
+ const { open, toggle, collapsible, panelId, triggerRef } = useSidebar();
970
+ if (collapsible === "none") {
971
+ return null;
972
+ }
973
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
974
+ "button",
975
+ {
976
+ ref: composeRefs(ref, triggerRef),
977
+ type: "button",
978
+ ...props,
979
+ className: cn("sv-app-sidebar-trigger", className),
980
+ "aria-expanded": open,
981
+ "aria-controls": panelId,
982
+ "aria-label": label || "Toggle sidebar",
983
+ onClick: (event) => {
984
+ onClick?.(event);
985
+ toggle();
986
+ },
987
+ children: children || /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "menu" })
988
+ }
989
+ );
990
+ }
991
+ );
992
+ SidebarTrigger.displayName = "SidebarTrigger";
993
+ var SidebarInset = (0, import_react5.forwardRef)(
994
+ function SidebarInset2({ className, ...props }, ref) {
995
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("main", { ref, className: cn("sv-app-sidebar-inset", className), ...props });
996
+ }
997
+ );
998
+ SidebarInset.displayName = "SidebarInset";
999
+
1000
+ // src/components/ui/dialog.tsx
1001
+ var React3 = __toESM(require("react"), 1);
1002
+ var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
1003
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1004
+ var Dialog2 = DialogPrimitive.Root;
569
1005
  var DialogTrigger = DialogPrimitive.Trigger;
570
1006
  var DialogPortal = DialogPrimitive.Portal;
571
1007
  var DialogClose = DialogPrimitive.Close;
572
- var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1008
+ var DialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
573
1009
  DialogPrimitive.Overlay,
574
1010
  {
575
1011
  ref,
@@ -578,11 +1014,11 @@ var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PU
578
1014
  }
579
1015
  ));
580
1016
  DialogOverlay.displayName = "DialogOverlay";
581
- var DialogContent = React2.forwardRef(({ className, children, showCloseButton = true, closeLabel: closeLabelProp, ...props }, ref) => {
1017
+ var DialogContent = React3.forwardRef(({ className, children, showCloseButton = true, closeLabel: closeLabelProp, ...props }, ref) => {
582
1018
  const closeLabel = closeLabelProp && closeLabelProp.trim().length > 0 ? closeLabelProp : "Close dialog";
583
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(DialogPortal, { children: [
584
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DialogOverlay, {}),
585
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1019
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(DialogPortal, { children: [
1020
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DialogOverlay, {}),
1021
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
586
1022
  DialogPrimitive.Content,
587
1023
  {
588
1024
  ref,
@@ -591,9 +1027,9 @@ var DialogContent = React2.forwardRef(({ className, children, showCloseButton =
591
1027
  "aria-modal": "true",
592
1028
  children: [
593
1029
  children,
594
- showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(DialogPrimitive.Close, { className: "sv-dialog__close", children: [
595
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "x" }),
596
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sv-sr-only", children: closeLabel })
1030
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(DialogPrimitive.Close, { className: "sv-dialog__close", children: [
1031
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "x" }),
1032
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "sv-sr-only", children: closeLabel })
597
1033
  ] }) : null
598
1034
  ]
599
1035
  }
@@ -604,14 +1040,14 @@ DialogContent.displayName = "DialogContent";
604
1040
  var DialogHeader = ({
605
1041
  className,
606
1042
  ...props
607
- }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: cn("sv-dialog__header", className), ...props });
1043
+ }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: cn("sv-dialog__header", className), ...props });
608
1044
  DialogHeader.displayName = "DialogHeader";
609
1045
  var DialogFooter = ({
610
1046
  className,
611
1047
  ...props
612
- }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: cn("sv-dialog__footer", className), ...props });
1048
+ }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: cn("sv-dialog__footer", className), ...props });
613
1049
  DialogFooter.displayName = "DialogFooter";
614
- var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1050
+ var DialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
615
1051
  DialogPrimitive.Title,
616
1052
  {
617
1053
  ref,
@@ -620,7 +1056,7 @@ var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
620
1056
  }
621
1057
  ));
622
1058
  DialogTitle.displayName = "DialogTitle";
623
- var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1059
+ var DialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
624
1060
  DialogPrimitive.Description,
625
1061
  {
626
1062
  ref,
@@ -631,13 +1067,13 @@ var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @
631
1067
  DialogDescription.displayName = "DialogDescription";
632
1068
 
633
1069
  // src/components/ui/alert-dialog.tsx
634
- var React3 = __toESM(require("react"), 1);
1070
+ var React4 = __toESM(require("react"), 1);
635
1071
  var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
636
- var import_jsx_runtime8 = require("react/jsx-runtime");
1072
+ var import_jsx_runtime10 = require("react/jsx-runtime");
637
1073
  var AlertDialog = AlertDialogPrimitive.Root;
638
1074
  var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
639
1075
  var AlertDialogPortal = AlertDialogPrimitive.Portal;
640
- var AlertDialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1076
+ var AlertDialogOverlay = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
641
1077
  AlertDialogPrimitive.Overlay,
642
1078
  {
643
1079
  ref,
@@ -646,9 +1082,9 @@ var AlertDialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /*
646
1082
  }
647
1083
  ));
648
1084
  AlertDialogOverlay.displayName = "AlertDialogOverlay";
649
- var AlertDialogContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(AlertDialogPortal, { children: [
650
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AlertDialogOverlay, {}),
651
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1085
+ var AlertDialogContent = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(AlertDialogPortal, { children: [
1086
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(AlertDialogOverlay, {}),
1087
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
652
1088
  AlertDialogPrimitive.Content,
653
1089
  {
654
1090
  ref,
@@ -662,14 +1098,14 @@ AlertDialogContent.displayName = "AlertDialogContent";
662
1098
  var AlertDialogHeader = ({
663
1099
  className,
664
1100
  ...props
665
- }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: cn("sv-dialog__header", className), ...props });
1101
+ }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: cn("sv-dialog__header", className), ...props });
666
1102
  AlertDialogHeader.displayName = "AlertDialogHeader";
667
1103
  var AlertDialogFooter = ({
668
1104
  className,
669
1105
  ...props
670
- }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: cn("sv-dialog__footer", className), ...props });
1106
+ }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: cn("sv-dialog__footer", className), ...props });
671
1107
  AlertDialogFooter.displayName = "AlertDialogFooter";
672
- var AlertDialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1108
+ var AlertDialogTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
673
1109
  AlertDialogPrimitive.Title,
674
1110
  {
675
1111
  ref,
@@ -678,7 +1114,7 @@ var AlertDialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @_
678
1114
  }
679
1115
  ));
680
1116
  AlertDialogTitle.displayName = "AlertDialogTitle";
681
- var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1117
+ var AlertDialogDescription = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
682
1118
  AlertDialogPrimitive.Description,
683
1119
  {
684
1120
  ref,
@@ -687,7 +1123,7 @@ var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) =>
687
1123
  }
688
1124
  ));
689
1125
  AlertDialogDescription.displayName = "AlertDialogDescription";
690
- var AlertDialogAction = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1126
+ var AlertDialogAction = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
691
1127
  AlertDialogPrimitive.Action,
692
1128
  {
693
1129
  ref,
@@ -696,7 +1132,7 @@ var AlertDialogAction = React3.forwardRef(({ className, ...props }, ref) => /* @
696
1132
  }
697
1133
  ));
698
1134
  AlertDialogAction.displayName = "AlertDialogAction";
699
- var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1135
+ var AlertDialogCancel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
700
1136
  AlertDialogPrimitive.Cancel,
701
1137
  {
702
1138
  ref,
@@ -707,19 +1143,19 @@ var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @
707
1143
  AlertDialogCancel.displayName = "AlertDialogCancel";
708
1144
 
709
1145
  // src/components/ui/select.tsx
710
- var React4 = __toESM(require("react"), 1);
1146
+ var React5 = __toESM(require("react"), 1);
711
1147
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
712
- var import_jsx_runtime9 = require("react/jsx-runtime");
1148
+ var import_jsx_runtime11 = require("react/jsx-runtime");
713
1149
  var Select = SelectPrimitive.Root;
714
1150
  var SelectGroup = SelectPrimitive.Group;
715
1151
  var SelectValue = SelectPrimitive.Value;
716
- var SelectTrigger = React4.forwardRef(
717
- ({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "chevron-down" }), ...props }, ref) => (
1152
+ var SelectTrigger = React5.forwardRef(
1153
+ ({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "chevron-down" }), ...props }, ref) => (
718
1154
  // The trigger IS a form field, so it shares .sv-field with Input, Textarea
719
1155
  // and NativeSelect rather than restating the frame. The utility string this
720
1156
  // replaces named `ring-offset-background` and `focus:ring-accent`, neither
721
1157
  // of which this package ever declared: the field had no visible focus.
722
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1158
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
723
1159
  SelectPrimitive.Trigger,
724
1160
  {
725
1161
  ref,
@@ -727,34 +1163,34 @@ var SelectTrigger = React4.forwardRef(
727
1163
  ...props,
728
1164
  children: [
729
1165
  children,
730
- icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectPrimitive.Icon, { children: icon })
1166
+ icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Icon, { children: icon })
731
1167
  ]
732
1168
  }
733
1169
  )
734
1170
  )
735
1171
  );
736
1172
  SelectTrigger.displayName = "SelectTrigger";
737
- var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1173
+ var SelectScrollUpButton = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
738
1174
  SelectPrimitive.ScrollUpButton,
739
1175
  {
740
1176
  ref,
741
1177
  className: cn("sv-pop__scroll", className),
742
1178
  ...props,
743
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "chevron-up" })
1179
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "chevron-up" })
744
1180
  }
745
1181
  ));
746
1182
  SelectScrollUpButton.displayName = "SelectScrollUpButton";
747
- var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1183
+ var SelectScrollDownButton = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
748
1184
  SelectPrimitive.ScrollDownButton,
749
1185
  {
750
1186
  ref,
751
1187
  className: cn("sv-pop__scroll", className),
752
1188
  ...props,
753
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "chevron-down" })
1189
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "chevron-down" })
754
1190
  }
755
1191
  ));
756
1192
  SelectScrollDownButton.displayName = "SelectScrollDownButton";
757
- var SelectContent = React4.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1193
+ var SelectContent = React5.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
758
1194
  SelectPrimitive.Content,
759
1195
  {
760
1196
  ref,
@@ -762,8 +1198,8 @@ var SelectContent = React4.forwardRef(({ className, children, position = "popper
762
1198
  position,
763
1199
  ...props,
764
1200
  children: [
765
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectScrollUpButton, {}),
766
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1201
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectScrollUpButton, {}),
1202
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
767
1203
  SelectPrimitive.Viewport,
768
1204
  {
769
1205
  className: cn(
@@ -773,25 +1209,25 @@ var SelectContent = React4.forwardRef(({ className, children, position = "popper
773
1209
  children
774
1210
  }
775
1211
  ),
776
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectScrollDownButton, {})
1212
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectScrollDownButton, {})
777
1213
  ]
778
1214
  }
779
1215
  ) }));
780
1216
  SelectContent.displayName = "SelectContent";
781
- var SelectItem = React4.forwardRef(({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1217
+ var SelectItem = React5.forwardRef(({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
782
1218
  SelectPrimitive.Item,
783
1219
  {
784
1220
  ref,
785
1221
  className: cn("sv-menu-item", className),
786
1222
  ...props,
787
1223
  children: [
788
- icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
789
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectPrimitive.ItemText, { children })
1224
+ icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
1225
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.ItemText, { children })
790
1226
  ]
791
1227
  }
792
1228
  ));
793
1229
  SelectItem.displayName = "SelectItem";
794
- var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1230
+ var SelectLabel = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
795
1231
  SelectPrimitive.Label,
796
1232
  {
797
1233
  ref,
@@ -800,7 +1236,7 @@ var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE
800
1236
  }
801
1237
  ));
802
1238
  SelectLabel.displayName = "SelectLabel";
803
- var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1239
+ var SelectSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
804
1240
  SelectPrimitive.Separator,
805
1241
  {
806
1242
  ref,
@@ -811,17 +1247,17 @@ var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__
811
1247
  SelectSeparator.displayName = "SelectSeparator";
812
1248
 
813
1249
  // src/components/ui/dropdown-menu.tsx
814
- var React5 = __toESM(require("react"), 1);
1250
+ var React6 = __toESM(require("react"), 1);
815
1251
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
816
- var import_jsx_runtime10 = require("react/jsx-runtime");
1252
+ var import_jsx_runtime12 = require("react/jsx-runtime");
817
1253
  var DropdownMenu = DropdownMenuPrimitive.Root;
818
1254
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
819
1255
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
820
1256
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
821
1257
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
822
1258
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
823
- var DropdownMenuSubTrigger = React5.forwardRef(
824
- ({ className, inset, children, icon = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { name: "chevron-right" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1259
+ var DropdownMenuSubTrigger = React6.forwardRef(
1260
+ ({ className, inset, children, icon = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "chevron-right" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
825
1261
  DropdownMenuPrimitive.SubTrigger,
826
1262
  {
827
1263
  ref,
@@ -835,7 +1271,7 @@ var DropdownMenuSubTrigger = React5.forwardRef(
835
1271
  )
836
1272
  );
837
1273
  DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
838
- var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1274
+ var DropdownMenuSubContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
839
1275
  DropdownMenuPrimitive.SubContent,
840
1276
  {
841
1277
  ref,
@@ -844,7 +1280,7 @@ var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) =>
844
1280
  }
845
1281
  ));
846
1282
  DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
847
- var DropdownMenuContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1283
+ var DropdownMenuContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
848
1284
  DropdownMenuPrimitive.Content,
849
1285
  {
850
1286
  ref,
@@ -853,7 +1289,7 @@ var DropdownMenuContent = React5.forwardRef(({ className, ...props }, ref) => /*
853
1289
  }
854
1290
  ) }));
855
1291
  DropdownMenuContent.displayName = "DropdownMenuContent";
856
- var DropdownMenuItem = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1292
+ var DropdownMenuItem = React6.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
857
1293
  DropdownMenuPrimitive.Item,
858
1294
  {
859
1295
  ref,
@@ -862,35 +1298,35 @@ var DropdownMenuItem = React5.forwardRef(({ className, inset, ...props }, ref) =
862
1298
  }
863
1299
  ));
864
1300
  DropdownMenuItem.displayName = "DropdownMenuItem";
865
- var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1301
+ var DropdownMenuCheckboxItem = React6.forwardRef(({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
866
1302
  DropdownMenuPrimitive.CheckboxItem,
867
1303
  {
868
1304
  ref,
869
1305
  className: cn("sv-menu-item", className),
870
1306
  ...props,
871
1307
  children: [
872
- icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
1308
+ icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
873
1309
  children
874
1310
  ]
875
1311
  }
876
1312
  ));
877
1313
  DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
878
- var DropdownMenuRadioItem = React5.forwardRef(
879
- ({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sv-menu-item__dot" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1314
+ var DropdownMenuRadioItem = React6.forwardRef(
1315
+ ({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sv-menu-item__dot" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
880
1316
  DropdownMenuPrimitive.RadioItem,
881
1317
  {
882
1318
  ref,
883
1319
  className: cn("sv-menu-item", className),
884
1320
  ...props,
885
1321
  children: [
886
- icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
1322
+ icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
887
1323
  children
888
1324
  ]
889
1325
  }
890
1326
  )
891
1327
  );
892
1328
  DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
893
- var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1329
+ var DropdownMenuLabel = React6.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
894
1330
  DropdownMenuPrimitive.Label,
895
1331
  {
896
1332
  ref,
@@ -899,7 +1335,7 @@ var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref)
899
1335
  }
900
1336
  ));
901
1337
  DropdownMenuLabel.displayName = "DropdownMenuLabel";
902
- var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1338
+ var DropdownMenuSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
903
1339
  DropdownMenuPrimitive.Separator,
904
1340
  {
905
1341
  ref,
@@ -911,14 +1347,14 @@ DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
911
1347
  var DropdownMenuShortcut = ({
912
1348
  className,
913
1349
  ...props
914
- }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: cn("sv-menu-shortcut", className), ...props });
1350
+ }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: cn("sv-menu-shortcut", className), ...props });
915
1351
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
916
1352
 
917
1353
  // src/components/ui/tabs.tsx
918
- var React6 = __toESM(require("react"), 1);
1354
+ var React7 = __toESM(require("react"), 1);
919
1355
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
920
- var import_jsx_runtime11 = require("react/jsx-runtime");
921
- var Tabs = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1356
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1357
+ var Tabs = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
922
1358
  TabsPrimitive.Root,
923
1359
  {
924
1360
  ref,
@@ -927,7 +1363,7 @@ var Tabs = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
927
1363
  }
928
1364
  ));
929
1365
  Tabs.displayName = "Tabs";
930
- var TabsList = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1366
+ var TabsList = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
931
1367
  TabsPrimitive.List,
932
1368
  {
933
1369
  ref,
@@ -936,7 +1372,7 @@ var TabsList = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__
936
1372
  }
937
1373
  ));
938
1374
  TabsList.displayName = "TabsList";
939
- var TabsTrigger = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1375
+ var TabsTrigger = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
940
1376
  TabsPrimitive.Trigger,
941
1377
  {
942
1378
  ref,
@@ -945,7 +1381,7 @@ var TabsTrigger = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
945
1381
  }
946
1382
  ));
947
1383
  TabsTrigger.displayName = "TabsTrigger";
948
- var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1384
+ var TabsContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
949
1385
  TabsPrimitive.Content,
950
1386
  {
951
1387
  ref,
@@ -956,13 +1392,13 @@ var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
956
1392
  TabsContent.displayName = "TabsContent";
957
1393
 
958
1394
  // src/components/ui/tooltip.tsx
959
- var React7 = __toESM(require("react"), 1);
1395
+ var React8 = __toESM(require("react"), 1);
960
1396
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
961
- var import_jsx_runtime12 = require("react/jsx-runtime");
1397
+ var import_jsx_runtime14 = require("react/jsx-runtime");
962
1398
  var TooltipProvider = TooltipPrimitive.Provider;
963
1399
  var Tooltip = TooltipPrimitive.Root;
964
1400
  var TooltipTrigger = TooltipPrimitive.Trigger;
965
- var TooltipContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1401
+ var TooltipContent = React8.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
966
1402
  TooltipPrimitive.Content,
967
1403
  {
968
1404
  ref,
@@ -1023,6 +1459,10 @@ TooltipContent.displayName = "TooltipContent";
1023
1459
  SelectSeparator,
1024
1460
  SelectTrigger,
1025
1461
  SelectValue,
1462
+ SidebarInset,
1463
+ SidebarPanel,
1464
+ SidebarProvider,
1465
+ SidebarTrigger,
1026
1466
  TableOfContents,
1027
1467
  Tabs,
1028
1468
  TabsContent,
@@ -1030,16 +1470,21 @@ TooltipContent.displayName = "TooltipContent";
1030
1470
  TabsTrigger,
1031
1471
  ThemeProvider,
1032
1472
  ThemeToggle,
1473
+ ToastProvider,
1033
1474
  Tooltip,
1034
1475
  TooltipContent,
1035
1476
  TooltipProvider,
1036
1477
  TooltipTrigger,
1037
1478
  copyToClipboard,
1479
+ createMediaQuery,
1038
1480
  createReadingProgress,
1039
1481
  createScrollSpy,
1040
1482
  createThemeManager,
1483
+ useMediaQuery,
1041
1484
  useReadingProgress,
1042
1485
  useScrollSpy,
1043
- useTheme
1486
+ useSidebar,
1487
+ useTheme,
1488
+ useToast
1044
1489
  });
1045
1490
  //# sourceMappingURL=index.cjs.map