@fumadocs/base-ui 16.6.12 → 16.6.14

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.
Files changed (54) hide show
  1. package/css/generated/docs.css +4 -0
  2. package/css/generated/notebook.css +4 -0
  3. package/css/generated/shared.css +33 -0
  4. package/dist/components/tabs.d.ts +3 -3
  5. package/dist/components/tabs.d.ts.map +1 -1
  6. package/dist/components/tabs.js +3 -3
  7. package/dist/components/tabs.js.map +1 -1
  8. package/dist/components/ui/button.d.ts +1 -1
  9. package/dist/components/ui/navigation-menu.d.ts +7 -7
  10. package/dist/components/ui/navigation-menu.d.ts.map +1 -1
  11. package/dist/components/ui/navigation-menu.js +4 -4
  12. package/dist/components/ui/navigation-menu.js.map +1 -1
  13. package/dist/components/ui/popover.d.ts +3 -3
  14. package/dist/components/ui/popover.d.ts.map +1 -1
  15. package/dist/components/ui/popover.js +2 -2
  16. package/dist/components/ui/popover.js.map +1 -1
  17. package/dist/components/ui/scroll-area.d.ts +4 -4
  18. package/dist/components/ui/scroll-area.d.ts.map +1 -1
  19. package/dist/components/ui/scroll-area.js +4 -4
  20. package/dist/components/ui/scroll-area.js.map +1 -1
  21. package/dist/i18n.d.ts +8 -4
  22. package/dist/i18n.d.ts.map +1 -1
  23. package/dist/i18n.js +12 -9
  24. package/dist/i18n.js.map +1 -1
  25. package/dist/layouts/docs/client.d.ts +4 -1
  26. package/dist/layouts/docs/client.d.ts.map +1 -1
  27. package/dist/layouts/docs/client.js +7 -2
  28. package/dist/layouts/docs/client.js.map +1 -1
  29. package/dist/layouts/docs/page/client.js +2 -2
  30. package/dist/layouts/docs/page/client.js.map +1 -1
  31. package/dist/layouts/docs/page/index.d.ts +2 -1
  32. package/dist/layouts/docs/page/index.d.ts.map +1 -1
  33. package/dist/layouts/docs/page/index.js +5 -2
  34. package/dist/layouts/docs/page/index.js.map +1 -1
  35. package/dist/layouts/notebook/client.d.ts +4 -4
  36. package/dist/layouts/notebook/client.d.ts.map +1 -1
  37. package/dist/layouts/notebook/client.js +8 -3
  38. package/dist/layouts/notebook/client.js.map +1 -1
  39. package/dist/layouts/notebook/page/client.js +2 -2
  40. package/dist/layouts/notebook/page/client.js.map +1 -1
  41. package/dist/layouts/notebook/sidebar.js +3 -3
  42. package/dist/layouts/notebook/sidebar.js.map +1 -1
  43. package/dist/layouts/shared/index.d.ts +1 -1
  44. package/dist/layouts/shared/index.d.ts.map +1 -1
  45. package/dist/layouts/shared/page-actions.d.ts +37 -0
  46. package/dist/layouts/shared/page-actions.d.ts.map +1 -0
  47. package/dist/layouts/shared/page-actions.js +186 -0
  48. package/dist/layouts/shared/page-actions.js.map +1 -0
  49. package/dist/mdx.d.ts +12 -1
  50. package/dist/mdx.d.ts.map +1 -1
  51. package/dist/mdx.js +0 -1
  52. package/dist/mdx.js.map +1 -1
  53. package/dist/style.css +5 -0
  54. package/package.json +9 -8
@@ -97,6 +97,7 @@
97
97
  @source inline("const");
98
98
  @source inline("container");
99
99
  @source inline("content");
100
+ @source inline("context");
100
101
  @source inline("createContext");
101
102
  @source inline("createLinkItemRenderer");
102
103
  @source inline("createPageTreeRenderer");
@@ -269,6 +270,7 @@
269
270
  @source inline("nd-sidebar");
270
271
  @source inline("nd-subnav");
271
272
  @source inline("nd-toc");
273
+ @source inline("new");
272
274
  @source inline("next");
273
275
  @source inline("no");
274
276
  @source inline("none");
@@ -391,6 +393,7 @@
391
393
  @source inline("text-start");
392
394
  @source inline("the");
393
395
  @source inline("themeSwitch");
396
+ @source inline("throw");
394
397
  @source inline("timezone");
395
398
  @source inline("to");
396
399
  @source inline("toc");
@@ -425,6 +428,7 @@
425
428
  @source inline("url");
426
429
  @source inline("use");
427
430
  @source inline("useActiveAnchor");
431
+ @source inline("useDocsLayout");
428
432
  @source inline("useFooterItems");
429
433
  @source inline("useI18n");
430
434
  @source inline("useIsScrollTop");
@@ -102,6 +102,7 @@
102
102
  @source inline("components");
103
103
  @source inline("const");
104
104
  @source inline("content");
105
+ @source inline("context");
105
106
  @source inline("createContext");
106
107
  @source inline("createLinkItemRenderer");
107
108
  @source inline("createPageTreeRenderer");
@@ -300,6 +301,7 @@
300
301
  @source inline("nd-sidebar");
301
302
  @source inline("nd-subnav");
302
303
  @source inline("nd-toc");
304
+ @source inline("new");
303
305
  @source inline("next");
304
306
  @source inline("no");
305
307
  @source inline("none");
@@ -427,6 +429,7 @@
427
429
  @source inline("text-start");
428
430
  @source inline("the");
429
431
  @source inline("themeSwitch");
432
+ @source inline("throw");
430
433
  @source inline("timeoutRef");
431
434
  @source inline("timezone");
432
435
  @source inline("to");
@@ -468,6 +471,7 @@
468
471
  @source inline("useIsScrollTop");
469
472
  @source inline("useLinkItems");
470
473
  @source inline("useMemo");
474
+ @source inline("useNotebookLayout");
471
475
  @source inline("usePathname");
472
476
  @source inline("useRef");
473
477
  @source inline("useSidebar");
@@ -48,6 +48,7 @@
48
48
  @source inline("@remarks");
49
49
  @source inline("@returns");
50
50
  @source inline("@ts-expect-error");
51
+ @source inline("@typescript-eslint/no-namespace");
51
52
  @source inline("[&>figure:only-child]:-m-4");
52
53
  @source inline("[&>figure:only-child]:border-none");
53
54
  @source inline("[&[hidden]:not([hidden='until-found'])]:hidden");
@@ -56,8 +57,10 @@
56
57
  @source inline("[&_svg]:size-4.5");
57
58
  @source inline("[&_svg]:size-5");
58
59
  @source inline("[&_svg]:size-full");
60
+ @source inline("[&_svg]:text-fd-muted-foreground");
59
61
  @source inline("[scrollbar-width:none]");
60
62
  @source inline("a");
63
+ @source inline("about");
61
64
  @source inline("absolute");
62
65
  @source inline("action");
63
66
  @source inline("active");
@@ -87,6 +90,7 @@
87
90
  @source inline("aria-selected");
88
91
  @source inline("as");
89
92
  @source inline("aside");
93
+ @source inline("ask");
90
94
  @source inline("assume");
91
95
  @source inline("assumes");
92
96
  @source inline("async");
@@ -146,6 +150,7 @@
146
150
  @source inline("button");
147
151
  @source inline("buttonVariants");
148
152
  @source inline("by");
153
+ @source inline("cache");
149
154
  @source inline("cached");
150
155
  @source inline("callbackRef");
151
156
  @source inline("can");
@@ -249,6 +254,7 @@
249
254
  @source inline("date");
250
255
  @source inline("debounced");
251
256
  @source inline("decimal");
257
+ @source inline("declare");
252
258
  @source inline("default");
253
259
  @source inline("defaultIndex");
254
260
  @source inline("defaultItems");
@@ -332,6 +338,7 @@
332
338
  @source inline("fill-(--callout-color)");
333
339
  @source inline("filter");
334
340
  @source inline("filters");
341
+ @source inline("finally");
335
342
  @source inline("first:mt-0");
336
343
  @source inline("first:pt-0");
337
344
  @source inline("fixed");
@@ -385,9 +392,11 @@
385
392
  @source inline("gap-4");
386
393
  @source inline("gap-y-4");
387
394
  @source inline("generated");
395
+ @source inline("get");
388
396
  @source inline("ghost");
389
397
  @source inline("githubUrl");
390
398
  @source inline("given");
399
+ @source inline("global");
391
400
  @source inline("globalKey");
392
401
  @source inline("grid");
393
402
  @source inline("grid-cols-2");
@@ -426,6 +435,7 @@
426
435
  @source inline("here");
427
436
  @source inline("hidden");
428
437
  @source inline("highlight");
438
+ @source inline("hints");
429
439
  @source inline("hooks");
430
440
  @source inline("horizontal");
431
441
  @source inline("hotKey");
@@ -440,6 +450,7 @@
440
450
  @source inline("human-readable");
441
451
  @source inline("humanizedStars");
442
452
  @source inline("i");
453
+ @source inline("i18n");
443
454
  @source inline("icon");
444
455
  @source inline("icon-sm");
445
456
  @source inline("icon-xs");
@@ -523,6 +534,7 @@
523
534
  @source inline("listener");
524
535
  @source inline("listeners");
525
536
  @source inline("loaded");
537
+ @source inline("loading");
526
538
  @source inline("locale");
527
539
  @source inline("locales");
528
540
  @source inline("lower");
@@ -536,6 +548,7 @@
536
548
  @source inline("margin");
537
549
  @source inline("marginBottom");
538
550
  @source inline("mark");
551
+ @source inline("markdownUrl");
539
552
  @source inline("marked");
540
553
  @source inline("mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)]");
541
554
  @source inline("mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)]");
@@ -564,6 +577,7 @@
564
577
  @source inline("md:top-[calc(50%-250px)]");
565
578
  @source inline("mdComponents");
566
579
  @source inline("mdRenderer");
580
+ @source inline("mdx/types.js");
567
581
  @source inline("me-1");
568
582
  @source inline("me-2");
569
583
  @source inline("me-auto");
@@ -578,6 +592,7 @@
578
592
  @source inline("min-w-fit");
579
593
  @source inline("min-w-full");
580
594
  @source inline("mode");
595
+ @source inline("module");
581
596
  @source inline("mounted");
582
597
  @source inline("mouse");
583
598
  @source inline("ms-2");
@@ -594,6 +609,7 @@
594
609
  @source inline("my-6");
595
610
  @source inline("my-auto");
596
611
  @source inline("name");
612
+ @source inline("namespace");
597
613
  @source inline("nav");
598
614
  @source inline("navItems");
599
615
  @source inline("navbar");
@@ -694,6 +710,7 @@
694
710
  @source inline("padding");
695
711
  @source inline("paddingInlineStart");
696
712
  @source inline("page");
713
+ @source inline("pageUrl");
697
714
  @source inline("parameters");
698
715
  @source inline("params");
699
716
  @source inline("parentId");
@@ -727,11 +744,13 @@
727
744
  @source inline("primary");
728
745
  @source inline("primaryColor");
729
746
  @source inline("primaryTextColor");
747
+ @source inline("promise");
730
748
  @source inline("prop");
731
749
  @source inline("props");
732
750
  @source inline("prose");
733
751
  @source inline("prose-no-margin");
734
752
  @source inline("provide");
753
+ @source inline("provider");
735
754
  @source inline("ps-1");
736
755
  @source inline("ps-2");
737
756
  @source inline("ps-3");
@@ -757,10 +776,13 @@
757
776
  @source inline("py-2.5");
758
777
  @source inline("py-3");
759
778
  @source inline("py-3.5");
779
+ @source inline("q");
760
780
  @source inline("query");
761
781
  @source inline("querySelector");
782
+ @source inline("questions");
762
783
  @source inline("rainbow");
763
784
  @source inline("rainbowColors");
785
+ @source inline("raw");
764
786
  @source inline("rawTree");
765
787
  @source inline("react");
766
788
  @source inline("react-dom");
@@ -803,6 +825,7 @@
803
825
  @source inline("role");
804
826
  @source inline("root");
805
827
  @source inline("rootRef");
828
+ @source inline("round");
806
829
  @source inline("rounded-2xl");
807
830
  @source inline("rounded-[inherit]");
808
831
  @source inline("rounded-e-sm");
@@ -831,6 +854,7 @@
831
854
  @source inline("searchOptions");
832
855
  @source inline("searchPath");
833
856
  @source inline("secondary");
857
+ @source inline("see");
834
858
  @source inline("segments");
835
859
  @source inline("select-none");
836
860
  @source inline("selected");
@@ -846,6 +870,7 @@
846
870
  @source inline("setIsOpen");
847
871
  @source inline("setIsTop");
848
872
  @source inline("setKey");
873
+ @source inline("setLoading");
849
874
  @source inline("setMounted");
850
875
  @source inline("setOpen");
851
876
  @source inline("setOpenSearch");
@@ -897,6 +922,8 @@
897
922
  @source inline("stroke");
898
923
  @source inline("stroke-fd-foreground/10");
899
924
  @source inline("stroke-width");
925
+ @source inline("strokeLinecap");
926
+ @source inline("strokeLinejoin");
900
927
  @source inline("strokeWidth");
901
928
  @source inline("strong");
902
929
  @source inline("style");
@@ -943,6 +970,7 @@
943
970
  @source inline("text-sm");
944
971
  @source inline("text-start");
945
972
  @source inline("text-xs");
973
+ @source inline("text/plain");
946
974
  @source inline("textContent");
947
975
  @source inline("that");
948
976
  @source inline("the");
@@ -985,14 +1013,17 @@
985
1013
  @source inline("triggering");
986
1014
  @source inline("true");
987
1015
  @source inline("truncate");
1016
+ @source inline("try");
988
1017
  @source inline("twMerge");
989
1018
  @source inline("type");
990
1019
  @source inline("typeof");
1020
+ @source inline("types");
991
1021
  @source inline("unchanged");
992
1022
  @source inline("undefined");
993
1023
  @source inline("under");
994
1024
  @source inline("underline");
995
1025
  @source inline("underlying");
1026
+ @source inline("understand");
996
1027
  @source inline("unified");
997
1028
  @source inline("unist-util-visit");
998
1029
  @source inline("unknown");
@@ -1055,6 +1086,7 @@
1055
1086
  @source inline("w-full");
1056
1087
  @source inline("w-max");
1057
1088
  @source inline("w-px");
1089
+ @source inline("want");
1058
1090
  @source inline("warn");
1059
1091
  @source inline("warning");
1060
1092
  @source inline("when");
@@ -1066,6 +1098,7 @@
1066
1098
  @source inline("whole");
1067
1099
  @source inline("width");
1068
1100
  @source inline("will");
1101
+ @source inline("window");
1069
1102
  @source inline("with");
1070
1103
  @source inline("work");
1071
1104
  @source inline("wrap");
@@ -1,5 +1,5 @@
1
1
  import { Tabs as Tabs$1, TabsContent as TabsContent$1 } from "./ui/tabs.js";
2
- import * as React from "react";
2
+ import * as React$1 from "react";
3
3
  import { ComponentProps, ReactNode } from "react";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
5
5
  import * as _base_ui_react0 from "@base-ui/react";
@@ -21,8 +21,8 @@ interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' | 'onVal
21
21
  */
22
22
  label?: ReactNode;
23
23
  }
24
- declare const TabsList: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.TabsListProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
- declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.TabsTabProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
24
+ declare const TabsList: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.TabsListProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
25
+ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.TabsTabProps, "ref"> & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
26
26
  declare function Tabs({
27
27
  ref,
28
28
  className,
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.d.ts","names":[],"sources":["../../src/components/tabs.tsx"],"mappings":";;;;;;;UAkBiB,SAAA,SAAkB,IAAA,CACjC,cAAA,QAAsB,MAAA;;;;EAMtB,KAAA;EAPyB;;;;;EAczB,YAAA;EAdqC;;;EAmBrC,KAAA,GAAQ,SAAA;AAAA;AAAA,cAcG,QAAA,EAAQ,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,C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AA,CAAA,WAAA,YAAA,OAAA,CAAA,aAAA,CAAA,WAAA;AAAA,iBAiBR,IAAA,CAAA;EACd,GAAA;EACA,SAAA;EACA,KAAA;EACA,KAAA;EACA,YAAA;EACA,YAAA;EAAA,GACG;AAAA,GACF,SAAA,GAAS,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,UAqCK,QAAA,SAAiB,IAAA,CAAK,cAAA,QAAsB,aAAA;EA7FnD;;;EAiGR,KAAA;AAAA;AAAA,iBAGc,GAAA,CAAA;EAAM,KAAA;EAAA,GAAU;AAAA,GAAS,QAAA,GAAQ,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAkBjC,WAAA,CAAA;EACd,KAAA;EACA,SAAA;EAAA,GACG;AAAA,GACF,cAAA,QAAsB,aAAA,IAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "../utils/cn.js";
3
3
  import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "./ui/tabs.js";
4
- import * as React from "react";
4
+ import * as React$1 from "react";
5
5
  import { createContext, useContext, useEffect, useId, useMemo, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/tabs.tsx
@@ -11,13 +11,13 @@ function useTabContext() {
11
11
  if (!ctx) throw new Error("You must wrap your component in <Tabs>");
12
12
  return ctx;
13
13
  }
14
- const TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsList$1, {
14
+ const TabsList = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsList$1, {
15
15
  ref,
16
16
  ...props,
17
17
  className: (s) => cn("flex gap-3.5 text-fd-secondary-foreground overflow-x-auto px-4 not-prose", typeof className === "function" ? className(s) : className)
18
18
  }));
19
19
  TabsList.displayName = "TabsList";
20
- const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsTrigger$1, {
20
+ const TabsTrigger = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsTrigger$1, {
21
21
  ref,
22
22
  ...props,
23
23
  className: (s) => cn("inline-flex items-center gap-2 whitespace-nowrap text-fd-muted-foreground border-b border-transparent py-2 text-sm font-medium transition-colors [&_svg]:size-4 hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active]:border-fd-primary data-[active]:text-fd-primary", typeof className === "function" ? className(s) : className)
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.js","names":["Unstyled.TabsList","Unstyled.TabsTrigger","Unstyled.Tabs","Unstyled.TabsContent"],"sources":["../../src/components/tabs.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n type ComponentProps,\n createContext,\n type ReactNode,\n useContext,\n useEffect,\n useId,\n useMemo,\n useState,\n} from 'react';\nimport { cn } from '@/utils/cn';\nimport * as Unstyled from './ui/tabs';\n\ntype CollectionKey = string | symbol;\n\nexport interface TabsProps extends Omit<\n ComponentProps<typeof Unstyled.Tabs>,\n 'value' | 'onValueChange'\n> {\n /**\n * Use simple mode instead of advanced usage as documented in https://radix-ui.com/primitives/docs/components/tabs.\n */\n items?: string[];\n\n /**\n * Shortcut for `defaultValue` when `items` is provided.\n *\n * @defaultValue 0\n */\n defaultIndex?: number;\n\n /**\n * Additional label in tabs list when `items` is provided.\n */\n label?: ReactNode;\n}\n\nconst TabsContext = createContext<{\n items?: string[];\n collection: CollectionKey[];\n} | null>(null);\n\nfunction useTabContext() {\n const ctx = useContext(TabsContext);\n if (!ctx) throw new Error('You must wrap your component in <Tabs>');\n return ctx;\n}\n\nexport const TabsList = React.forwardRef<\n React.ComponentRef<typeof Unstyled.TabsList>,\n React.ComponentPropsWithoutRef<typeof Unstyled.TabsList>\n>(({ className, ...props }, ref) => (\n <Unstyled.TabsList\n ref={ref}\n {...props}\n className={(s) =>\n cn(\n 'flex gap-3.5 text-fd-secondary-foreground overflow-x-auto px-4 not-prose',\n typeof className === 'function' ? className(s) : className,\n )\n }\n />\n));\nTabsList.displayName = 'TabsList';\n\nexport const TabsTrigger = React.forwardRef<\n React.ComponentRef<typeof Unstyled.TabsTrigger>,\n React.ComponentPropsWithoutRef<typeof Unstyled.TabsTrigger>\n>(({ className, ...props }, ref) => (\n <Unstyled.TabsTrigger\n ref={ref}\n {...props}\n className={(s) =>\n cn(\n 'inline-flex items-center gap-2 whitespace-nowrap text-fd-muted-foreground border-b border-transparent py-2 text-sm font-medium transition-colors [&_svg]:size-4 hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active]:border-fd-primary data-[active]:text-fd-primary',\n typeof className === 'function' ? className(s) : className,\n )\n }\n />\n));\nTabsTrigger.displayName = 'TabsTrigger';\n\nexport function Tabs({\n ref,\n className,\n items,\n label,\n defaultIndex = 0,\n defaultValue = items ? escapeValue(items[defaultIndex]) : undefined,\n ...props\n}: TabsProps) {\n const [value, setValue] = useState(defaultValue);\n const collection = useMemo<CollectionKey[]>(() => [], []);\n\n return (\n <Unstyled.Tabs\n ref={ref}\n className={(s) =>\n cn(\n 'flex flex-col overflow-hidden rounded-xl border bg-fd-secondary my-4',\n typeof className === 'function' ? className(s) : className,\n )\n }\n value={value}\n onValueChange={(v: string) => {\n if (items && !items.some((item) => escapeValue(item) === v)) return;\n setValue(v);\n }}\n {...props}\n >\n {items && (\n <TabsList>\n {label && <span className=\"text-sm font-medium my-auto me-auto\">{label}</span>}\n {items.map((item) => (\n <TabsTrigger key={item} value={escapeValue(item)}>\n {item}\n </TabsTrigger>\n ))}\n </TabsList>\n )}\n <TabsContext.Provider value={useMemo(() => ({ items, collection }), [collection, items])}>\n {props.children}\n </TabsContext.Provider>\n </Unstyled.Tabs>\n );\n}\n\nexport interface TabProps extends Omit<ComponentProps<typeof Unstyled.TabsContent>, 'value'> {\n /**\n * Value of tab, detect from index if unspecified.\n */\n value?: string;\n}\n\nexport function Tab({ value, ...props }: TabProps) {\n const { items } = useTabContext();\n const resolved =\n value ??\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `value` is not supposed to change\n items?.at(useCollectionIndex());\n if (!resolved)\n throw new Error(\n 'Failed to resolve tab `value`, please pass a `value` prop to the Tab component.',\n );\n\n return (\n <TabsContent value={escapeValue(resolved)} {...props}>\n {props.children}\n </TabsContent>\n );\n}\n\nexport function TabsContent({\n value,\n className,\n ...props\n}: ComponentProps<typeof Unstyled.TabsContent>) {\n return (\n <Unstyled.TabsContent\n value={value}\n keepMounted\n className={(s) =>\n cn(\n 'p-4 text-[0.9375rem] bg-fd-background rounded-xl outline-none prose-no-margin data-[inactive]:hidden [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n >\n {props.children}\n </Unstyled.TabsContent>\n );\n}\n\n/**\n * Inspired by Headless UI.\n *\n * Return the index of children, this is made possible by registering the order of render from children using React context.\n * This is supposed by work with pre-rendering & pure client-side rendering.\n */\nfunction useCollectionIndex() {\n const key = useId();\n const { collection } = useTabContext();\n\n useEffect(() => {\n return () => {\n const idx = collection.indexOf(key);\n if (idx !== -1) collection.splice(idx, 1);\n };\n }, [key, collection]);\n\n if (!collection.includes(key)) collection.push(key);\n return collection.indexOf(key);\n}\n\n/**\n * only escape whitespaces in values in simple mode\n */\nfunction escapeValue(v: string): string {\n return v.toLowerCase().replace(/\\s/, '-');\n}\n"],"mappings":";;;;;;;AAwCA,MAAM,cAAc,cAGV,KAAK;AAEf,SAAS,gBAAgB;CACvB,MAAM,MAAM,WAAW,YAAY;AACnC,KAAI,CAAC,IAAK,OAAM,IAAI,MAAM,yCAAyC;AACnE,QAAO;;AAGT,MAAa,WAAW,MAAM,YAG3B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACA,YAAD;CACO;CACL,GAAI;CACJ,YAAY,MACV,GACE,4EACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;CAEH,CAAA,CACF;AACF,S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;AAIlB,SAAgB,YAAY,EAC1B,OACA,WACA,GAAG,SAC2C;AAC9C,QACE,oBAACC,eAAD;EACS;EACP,aAAA;EACA,YAAY,MACV,GACE,qKACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;EAEH,GAAI;YAEH,MAAM;EACc,CAAA;;;;;;;;AAU3B,SAAS,qBAAqB;CAC5B,MAAM,MAAM,OAAO;CACnB,MAAM,EAAE,eAAe,eAAe;AAEtC,iBAAgB;AACd,eAAa;GACX,MAAM,MAAM,WAAW,QAAQ,IAAI;AACnC,OAAI,QAAQ,GAAI,YAAW,OAAO,KAAK,EAAE;;IAE1C,CAAC,KAAK,WAAW,CAAC;AAErB,KAAI,CAAC,WAAW,SAAS,IAAI,CAAE,YAAW,KAAK,IAAI;AACnD,QAAO,WAAW,QAAQ,IAAI;;;;;AAMhC,SAAS,YAAY,GAAmB;AACtC,QAAO,EAAE,aAAa,CAAC,QAAQ,MAAM,IAAI"}
1
+ {"version":3,"file":"tabs.js","names":["React","Unstyled.TabsList","Unstyled.TabsTrigger","Unstyled.Tabs","Unstyled.TabsContent"],"sources":["../../src/components/tabs.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n type ComponentProps,\n createContext,\n type ReactNode,\n useContext,\n useEffect,\n useId,\n useMemo,\n useState,\n} from 'react';\nimport { cn } from '@/utils/cn';\nimport * as Unstyled from './ui/tabs';\n\ntype CollectionKey = string | symbol;\n\nexport interface TabsProps extends Omit<\n ComponentProps<typeof Unstyled.Tabs>,\n 'value' | 'onValueChange'\n> {\n /**\n * Use simple mode instead of advanced usage as documented in https://radix-ui.com/primitives/docs/components/tabs.\n */\n items?: string[];\n\n /**\n * Shortcut for `defaultValue` when `items` is provided.\n *\n * @defaultValue 0\n */\n defaultIndex?: number;\n\n /**\n * Additional label in tabs list when `items` is provided.\n */\n label?: ReactNode;\n}\n\nconst TabsContext = createContext<{\n items?: string[];\n collection: CollectionKey[];\n} | null>(null);\n\nfunction useTabContext() {\n const ctx = useContext(TabsContext);\n if (!ctx) throw new Error('You must wrap your component in <Tabs>');\n return ctx;\n}\n\nexport const TabsList = React.forwardRef<\n React.ComponentRef<typeof Unstyled.TabsList>,\n React.ComponentPropsWithoutRef<typeof Unstyled.TabsList>\n>(({ className, ...props }, ref) => (\n <Unstyled.TabsList\n ref={ref}\n {...props}\n className={(s) =>\n cn(\n 'flex gap-3.5 text-fd-secondary-foreground overflow-x-auto px-4 not-prose',\n typeof className === 'function' ? className(s) : className,\n )\n }\n />\n));\nTabsList.displayName = 'TabsList';\n\nexport const TabsTrigger = React.forwardRef<\n React.ComponentRef<typeof Unstyled.TabsTrigger>,\n React.ComponentPropsWithoutRef<typeof Unstyled.TabsTrigger>\n>(({ className, ...props }, ref) => (\n <Unstyled.TabsTrigger\n ref={ref}\n {...props}\n className={(s) =>\n cn(\n 'inline-flex items-center gap-2 whitespace-nowrap text-fd-muted-foreground border-b border-transparent py-2 text-sm font-medium transition-colors [&_svg]:size-4 hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active]:border-fd-primary data-[active]:text-fd-primary',\n typeof className === 'function' ? className(s) : className,\n )\n }\n />\n));\nTabsTrigger.displayName = 'TabsTrigger';\n\nexport function Tabs({\n ref,\n className,\n items,\n label,\n defaultIndex = 0,\n defaultValue = items ? escapeValue(items[defaultIndex]) : undefined,\n ...props\n}: TabsProps) {\n const [value, setValue] = useState(defaultValue);\n const collection = useMemo<CollectionKey[]>(() => [], []);\n\n return (\n <Unstyled.Tabs\n ref={ref}\n className={(s) =>\n cn(\n 'flex flex-col overflow-hidden rounded-xl border bg-fd-secondary my-4',\n typeof className === 'function' ? className(s) : className,\n )\n }\n value={value}\n onValueChange={(v: string) => {\n if (items && !items.some((item) => escapeValue(item) === v)) return;\n setValue(v);\n }}\n {...props}\n >\n {items && (\n <TabsList>\n {label && <span className=\"text-sm font-medium my-auto me-auto\">{label}</span>}\n {items.map((item) => (\n <TabsTrigger key={item} value={escapeValue(item)}>\n {item}\n </TabsTrigger>\n ))}\n </TabsList>\n )}\n <TabsContext.Provider value={useMemo(() => ({ items, collection }), [collection, items])}>\n {props.children}\n </TabsContext.Provider>\n </Unstyled.Tabs>\n );\n}\n\nexport interface TabProps extends Omit<ComponentProps<typeof Unstyled.TabsContent>, 'value'> {\n /**\n * Value of tab, detect from index if unspecified.\n */\n value?: string;\n}\n\nexport function Tab({ value, ...props }: TabProps) {\n const { items } = useTabContext();\n const resolved =\n value ??\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `value` is not supposed to change\n items?.at(useCollectionIndex());\n if (!resolved)\n throw new Error(\n 'Failed to resolve tab `value`, please pass a `value` prop to the Tab component.',\n );\n\n return (\n <TabsContent value={escapeValue(resolved)} {...props}>\n {props.children}\n </TabsContent>\n );\n}\n\nexport function TabsContent({\n value,\n className,\n ...props\n}: ComponentProps<typeof Unstyled.TabsContent>) {\n return (\n <Unstyled.TabsContent\n value={value}\n keepMounted\n className={(s) =>\n cn(\n 'p-4 text-[0.9375rem] bg-fd-background rounded-xl outline-none prose-no-margin data-[inactive]:hidden [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n >\n {props.children}\n </Unstyled.TabsContent>\n );\n}\n\n/**\n * Inspired by Headless UI.\n *\n * Return the index of children, this is made possible by registering the order of render from children using React context.\n * This is supposed by work with pre-rendering & pure client-side rendering.\n */\nfunction useCollectionIndex() {\n const key = useId();\n const { collection } = useTabContext();\n\n useEffect(() => {\n return () => {\n const idx = collection.indexOf(key);\n if (idx !== -1) collection.splice(idx, 1);\n };\n }, [key, collection]);\n\n if (!collection.includes(key)) collection.push(key);\n return collection.indexOf(key);\n}\n\n/**\n * only escape whitespaces in values in simple mode\n */\nfunction escapeValue(v: string): string {\n return v.toLowerCase().replace(/\\s/, '-');\n}\n"],"mappings":";;;;;;;AAwCA,MAAM,cAAc,cAGV,KAAK;AAEf,SAAS,gBAAgB;CACvB,MAAM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CAAA,CACT;;;AAWpB,SAAgB,IAAI,EAAE,OAAO,GAAG,SAAmB;CACjD,MAAM,EAAE,UAAU,eAAe;CACjC,MAAM,WACJ,SAEA,OAAO,GAAG,oBAAoB,CAAC;AACjC,KAAI,CAAC,SACH,OAAM,IAAI,MACR,kFACD;AAEH,QACE,oBAAC,aAAD;EAAa,OAAO,YAAY,SAAS;EAAE,GAAI;YAC5C,MAAM;EACK,CAAA;;AAIlB,SAAgB,YAAY,EAC1B,OACA,WACA,GAAG,SAC2C;AAC9C,QACE,oBAACC,eAAD;EACS;EACP,aAAA;EACA,YAAY,MACV,GACE,qKACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;EAEH,GAAI;YAEH,MAAM;EACc,CAAA;;;;;;;;AAU3B,SAAS,qBAAqB;CAC5B,MAAM,MAAM,OAAO;CACnB,MAAM,EAAE,eAAe,eAAe;AAEtC,iBAAgB;AACd,eAAa;GACX,MAAM,MAAM,WAAW,QAAQ,IAAI;AACnC,OAAI,QAAQ,GAAI,YAAW,OAAO,KAAK,EAAE;;IAE1C,CAAC,KAAK,WAAW,CAAC;AAErB,KAAI,CAAC,WAAW,SAAS,IAAI,CAAE,YAAW,KAAK,IAAI;AACnD,QAAO,WAAW,QAAQ,IAAI;;;;;AAMhC,SAAS,YAAY,GAAmB;AACtC,QAAO,EAAE,aAAa,CAAC,QAAQ,MAAM,IAAI"}
@@ -5,7 +5,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
5
5
  declare const buttonVariants: (props?: ({
6
6
  variant?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
7
7
  color?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
8
- size?: "sm" | "icon" | "icon-sm" | "icon-xs" | null | undefined;
8
+ size?: "icon" | "sm" | "icon-sm" | "icon-xs" | null | undefined;
9
9
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  type ButtonProps = VariantProps<typeof buttonVariants>;
11
11
  //#endregion
@@ -1,16 +1,16 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import { NavigationMenu } from "@base-ui/react/navigation-menu";
3
3
  import * as _base_ui_react0 from "@base-ui/react";
4
4
 
5
5
  //#region src/components/ui/navigation-menu.d.ts
6
6
  type NavigationMenuContentProps = NavigationMenu.Content.Props;
7
7
  type NavigationMenuTriggerProps = NavigationMenu.Trigger.Props;
8
- declare const NavigationMenuRoot: React.ForwardRefExoticComponent<Omit<_base_ui_react0.NavigationMenuRootProps, "ref"> & React.RefAttributes<HTMLElement>>;
9
- declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<_base_ui_react0.NavigationMenuListProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
10
- declare const NavigationMenuItem: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.NavigationMenuItemProps, "ref"> & React.RefAttributes<HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
11
- declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.NavigationMenuTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
- declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.NavigationMenuContentProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- declare const NavigationMenuLink: React.ForwardRefExoticComponent<Omit<_base_ui_react0.NavigationMenuLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
8
+ declare const NavigationMenuRoot: React$1.ForwardRefExoticComponent<Omit<_base_ui_react0.NavigationMenuRootProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
9
+ declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<_base_ui_react0.NavigationMenuListProps, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
10
+ declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.NavigationMenuItemProps, "ref"> & React$1.RefAttributes<HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
11
+ declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.NavigationMenuTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
12
+ declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.NavigationMenuContentProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
13
+ declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<Omit<_base_ui_react0.NavigationMenuLinkProps, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
14
14
  //#endregion
15
15
  export { NavigationMenuContent, NavigationMenuContentProps, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuTriggerProps };
16
16
  //# sourceMappingURL=navigation-menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.d.ts","names":[],"sources":["../../../src/components/ui/navigation-menu.tsx"],"mappings":";;;;;KAKY,0BAAA,GAA6B,cAAA,CAAU,OAAA,CAAQ,KAAA;AAAA,KAC/C,0BAAA,GAA6B,cAAA,CAAU,OAAA,CAAQ,KAAA;AAAA,cAErD,kBAAA,EAAkB,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAiB,eAAA,CAAjB,uBAAA,WAAA,KAAA,CAAA,aAAA,CAAA,WAAA;AAAA,cAElB,kBAAA,EAAkB,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAiB,eAAA,CAAjB,uBAAA,WAAA,KAAA,CAAA,aAAA,CAAA,gBAAA;AAAA,cAElB,kBAAA,EAAkB,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAWtB,eAAA,CAXsB,uBAAA,WAAA,KAAA,CAAA,aAAA,CAAA,aAAA,YAAA,KAAA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AA,YAAA,OAAA,CAAA,aAAA,CAAA,iBAAA;AAAA,cAUrB,qBAAA,EAAqB,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAoBzB,eAAA,CApByB,0BAAA,WAAA,OAAA,CAAA,aAAA,CAAA,cAAA,YAAA,OAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAuBrB,kBAAA,EAAkB,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAiB,eAAA,CAAjB,uBAAA,WAAA,OAAA,CAAA,aAAA,CAAA,iBAAA"}
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
  import { cn } from "../../utils/cn.js";
3
- import * as React from "react";
3
+ import * as React$1 from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { NavigationMenu } from "@base-ui/react/navigation-menu";
6
6
  //#region src/components/ui/navigation-menu.tsx
7
7
  const NavigationMenuRoot = NavigationMenu.Root;
8
8
  const NavigationMenuList = NavigationMenu.List;
9
- const NavigationMenuItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(NavigationMenu.Item, {
9
+ const NavigationMenuItem = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(NavigationMenu.Item, {
10
10
  ref,
11
11
  className: (s) => cn("list-none", typeof className === "function" ? className(s) : className),
12
12
  ...props,
13
13
  children
14
14
  }));
15
15
  NavigationMenuItem.displayName = NavigationMenu.Item.displayName;
16
- const NavigationMenuTrigger = React.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsx(NavigationMenu.Trigger, {
16
+ const NavigationMenuTrigger = React$1.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsx(NavigationMenu.Trigger, {
17
17
  ref,
18
18
  ...props,
19
19
  children
20
20
  }));
21
21
  NavigationMenuTrigger.displayName = NavigationMenu.Trigger.displayName;
22
- const NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(NavigationMenu.Content, {
22
+ const NavigationMenuContent = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(NavigationMenu.Content, {
23
23
  ref,
24
24
  className: (s) => cn("size-full p-4", "transition-[opacity,transform,translate] duration-(--duration) ease-(--easing)", "data-starting-style:opacity-0 data-ending-style:opacity-0", "data-starting-style:data-[activation-direction=left]:-translate-x-1/2", "data-starting-style:data-[activation-direction=right]:translate-x-1/2", "data-ending-style:data-[activation-direction=left]:translate-x-1/2", "data-ending-style:data-[activation-direction=right]:-translate-x-1/2", typeof className === "function" ? className(s) : className),
25
25
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.js","names":["Primitive"],"sources":["../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":["'use client';\nimport * as React from 'react';\nimport { NavigationMenu as Primitive } from '@base-ui/react/navigation-menu';\nimport { cn } from '@/utils/cn';\n\nexport type NavigationMenuContentProps = Primitive.Content.Props;\nexport type NavigationMenuTriggerProps = Primitive.Trigger.Props;\n\nconst NavigationMenuRoot = Primitive.Root;\n\nconst NavigationMenuList = Primitive.List;\n\nconst NavigationMenuItem = React.forwardRef<\n React.ComponentRef<typeof Primitive.Item>,\n React.ComponentPropsWithoutRef<typeof Primitive.Item>\n>(({ className, children, ...props }, ref) => (\n <Primitive.Item\n ref={ref}\n className={(s) => cn('list-none', typeof className === 'function' ? className(s) : className)}\n {...props}\n >\n {children}\n </Primitive.Item>\n));\n\nNavigationMenuItem.displayName = Primitive.Item.displayName;\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ComponentRef<typeof Primitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof Primitive.Trigger>\n>(({ children, ...props }, ref) => (\n <Primitive.Trigger ref={ref} {...props}>\n {children}\n </Primitive.Trigger>\n));\nNavigationMenuTrigger.displayName = Primitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ComponentRef<typeof Primitive.Content>,\n React.ComponentPropsWithoutRef<typeof Primitive.Content>\n>(({ className, ...props }, ref) => (\n <Primitive.Content\n ref={ref}\n className={(s) =>\n cn(\n 'size-full p-4',\n 'transition-[opacity,transform,translate] duration-(--duration) ease-(--easing)',\n 'data-starting-style:opacity-0 data-ending-style:opacity-0',\n 'data-starting-style:data-[activation-direction=left]:-translate-x-1/2',\n 'data-starting-style:data-[activation-direction=right]:translate-x-1/2',\n 'data-ending-style:data-[activation-direction=left]:translate-x-1/2',\n 'data-ending-style:data-[activation-direction=right]:-translate-x-1/2',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n />\n));\nNavigationMenuContent.displayName = Primitive.Content.displayName;\n\nconst NavigationMenuLink = Primitive.Link;\n\nexport {\n NavigationMenuRoot,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n};\n"],"mappings":";;;;;;AAQA,MAAM,qBAAqBA,eAAU;AAErC,MAAM,qBAAqBA,eAAU;AAErC,MAAM,qBAAqB,MAAM,YAG9B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAACA,eAAU,MAAX;CACO;CACL,YAAY,MAAM,GAAG,aAAa,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAAU;CAC7F,GAAI;CAEH;CACc,CAAA,CACjB;AAEF,mBAAmB,cAAcA,eAAU,KAAK;AAEhD,MAAM,wBAAwB,MAAM,YAGjC,EAAE,UAAU,GAAG,SAAS,QACzB,oBAACA,eAAU,SAAX;CAAwB;CAAK,GAAI;CAC9B;CACiB,CAAA,CACpB;AACF,sBAAsB,cAAcA,eAAU,QAAQ;AAEtD,MAAM,wBAAwB,MAAM,YAGjC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACA,eAAU,SAAX;CACO;CACL,YAAY,MACV,GACE,iBACA,kFACA,6DACA,yEACA,yEACA,sEACA,wEACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;CAEH,GAAI;CACJ,CAAA,CACF;AACF,sBAAsB,cAAcA,eAAU,QAAQ;AAEtD,MAAM,qBAAqBA,eAAU"}
1
+ {"version":3,"file":"navigation-menu.js","names":["Primitive","React"],"sources":["../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":["'use client';\nimport * as React from 'react';\nimport { NavigationMenu as Primitive } from '@base-ui/react/navigation-menu';\nimport { cn } from '@/utils/cn';\n\nexport type NavigationMenuContentProps = Primitive.Content.Props;\nexport type NavigationMenuTriggerProps = Primitive.Trigger.Props;\n\nconst NavigationMenuRoot = Primitive.Root;\n\nconst NavigationMenuList = Primitive.List;\n\nconst NavigationMenuItem = React.forwardRef<\n React.ComponentRef<typeof Primitive.Item>,\n React.ComponentPropsWithoutRef<typeof Primitive.Item>\n>(({ className, children, ...props }, ref) => (\n <Primitive.Item\n ref={ref}\n className={(s) => cn('list-none', typeof className === 'function' ? className(s) : className)}\n {...props}\n >\n {children}\n </Primitive.Item>\n));\n\nNavigationMenuItem.displayName = Primitive.Item.displayName;\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ComponentRef<typeof Primitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof Primitive.Trigger>\n>(({ children, ...props }, ref) => (\n <Primitive.Trigger ref={ref} {...props}>\n {children}\n </Primitive.Trigger>\n));\nNavigationMenuTrigger.displayName = Primitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ComponentRef<typeof Primitive.Content>,\n React.ComponentPropsWithoutRef<typeof Primitive.Content>\n>(({ className, ...props }, ref) => (\n <Primitive.Content\n ref={ref}\n className={(s) =>\n cn(\n 'size-full p-4',\n 'transition-[opacity,transform,translate] duration-(--duration) ease-(--easing)',\n 'data-starting-style:opacity-0 data-ending-style:opacity-0',\n 'data-starting-style:data-[activation-direction=left]:-translate-x-1/2',\n 'data-starting-style:data-[activation-direction=right]:translate-x-1/2',\n 'data-ending-style:data-[activation-direction=left]:translate-x-1/2',\n 'data-ending-style:data-[activation-direction=right]:-translate-x-1/2',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n />\n));\nNavigationMenuContent.displayName = Primitive.Content.displayName;\n\nconst NavigationMenuLink = Primitive.Link;\n\nexport {\n NavigationMenuRoot,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n};\n"],"mappings":";;;;;;AAQA,MAAM,qBAAqBA,eAAU;AAErC,MAAM,qBAAqBA,eAAU;AAErC,MAAM,qBAAqBC,QAAM,YAG9B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAACD,eAAU,MAAX;CACO;CACL,YAAY,MAAM,GAAG,aAAa,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAAU;CAC7F,GAAI;CAEH;CACc,CAAA,CACjB;AAEF,mBAAmB,cAAcA,eAAU,KAAK;AAEhD,MAAM,wBAAwBC,QAAM,YAGjC,EAAE,UAAU,GAAG,SAAS,QACzB,oBAACD,eAAU,SAAX;CAAwB;CAAK,GAAI;CAC9B;CACiB,CAAA,CACpB;AACF,sBAAsB,cAAcA,eAAU,QAAQ;AAEtD,MAAM,wBAAwBC,QAAM,YAGjC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACD,eAAU,SAAX;CACO;CACL,YAAY,MACV,GACE,iBACA,kFACA,6DACA,yEACA,yEACA,sEACA,wEACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;CAEH,GAAI;CACJ,CAAA,CACF;AACF,sBAAsB,cAAcA,eAAU,QAAQ;AAEtD,MAAM,qBAAqBA,eAAU"}
@@ -1,12 +1,12 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import { Popover as Popover$1 } from "@base-ui/react/popover";
3
3
  import * as _base_ui_react0 from "@base-ui/react";
4
4
 
5
5
  //#region src/components/ui/popover.d.ts
6
6
  declare const Popover: typeof Popover$1.Root;
7
7
  declare const PopoverTrigger: Popover$1.Trigger;
8
- declare const PopoverContent: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.PopoverPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & Pick<_base_ui_react0.PopoverPositionerProps, "sideOffset" | "align"> & React.RefAttributes<HTMLDivElement>>;
9
- declare const PopoverClose: React.ForwardRefExoticComponent<Omit<_base_ui_react0.PopoverCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
+ declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.PopoverPopupProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & Pick<_base_ui_react0.PopoverPositionerProps, "sideOffset" | "align"> & React$1.RefAttributes<HTMLDivElement>>;
9
+ declare const PopoverClose: React$1.ForwardRefExoticComponent<Omit<_base_ui_react0.PopoverCloseProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
10
10
  //#endregion
11
11
  export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
12
12
  //# sourceMappingURL=popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","names":[],"sources":["../../../src/components/ui/popover.tsx"],"mappings":";;;;;cAKM,OAAA,SAAO,SAAA,CAAA,IAAA;AAAA,cAEP,cAAA,EAAc,SAAA,CAAA,OAAA;AAAA,cAEd,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAmBlB,eAAA,CAnBkB,iBAAA,WAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,IAAA,CAAA,eAAA,CAAA,sBAAA,4BAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAsBd,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAkB,eAAA,CAAlB,iBAAA,WAAA,KAAA,CAAA,aAAA,CAAA,iBAAA"}
1
+ {"version":3,"file":"popover.d.ts","names":[],"sources":["../../../src/components/ui/popover.tsx"],"mappings":";;;;;cAKM,OAAA,SAAO,SAAA,CAAA,IAAA;AAAA,cAEP,cAAA,EAAc,SAAA,CAAA,OAAA;AAAA,cAEd,cAAA,EAAc,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAmBlB,eAAA,CAnBkB,iBAAA,WAAA,OAAA,CAAA,aAAA,CAAA,cAAA,YAAA,IAAA,CAAA,eAAA,CAAA,sBAAA,4BAAA,OAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAsBd,YAAA,EAAY,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAkB,eAAA,CAAlB,iBAAA,WAAA,OAAA,CAAA,aAAA,CAAA,iBAAA"}
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { cn } from "../../utils/cn.js";
3
- import * as React from "react";
3
+ import * as React$1 from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { Popover as Popover$1 } from "@base-ui/react/popover";
6
6
  //#region src/components/ui/popover.tsx
7
7
  const Popover = Popover$1.Root;
8
8
  const PopoverTrigger = Popover$1.Trigger;
9
- const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(Popover$1.Positioner, {
9
+ const PopoverContent = React$1.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(Popover$1.Positioner, {
10
10
  align,
11
11
  side: "bottom",
12
12
  sideOffset,
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","names":["Primitive"],"sources":["../../../src/components/ui/popover.tsx"],"sourcesContent":["'use client';\nimport { Popover as Primitive } from '@base-ui/react/popover';\nimport * as React from 'react';\nimport { cn } from '@/utils/cn';\n\nconst Popover = Primitive.Root;\n\nconst PopoverTrigger = Primitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ComponentRef<typeof Primitive.Popup>,\n React.ComponentPropsWithoutRef<typeof Primitive.Popup> &\n Pick<Primitive.Positioner.Props, 'sideOffset' | 'align'>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <Primitive.Portal>\n <Primitive.Positioner align={align} side=\"bottom\" sideOffset={sideOffset} className=\"z-50\">\n <Primitive.Popup\n ref={ref}\n className={(s) =>\n cn(\n 'z-50 origin-(--transform-origin) overflow-y-auto max-h-(--available-height) min-w-[240px] max-w-[98vw] rounded-xl border bg-fd-popover/60 backdrop-blur-lg p-2 text-sm text-fd-popover-foreground shadow-lg focus-visible:outline-none data-[closed]:animate-fd-popover-out data-[open]:animate-fd-popover-in',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n />\n </Primitive.Positioner>\n </Primitive.Portal>\n));\nPopoverContent.displayName = Primitive.Popup.displayName;\n\nconst PopoverClose = Primitive.Close;\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverClose };\n"],"mappings":";;;;;;AAKA,MAAM,UAAUA,UAAU;AAE1B,MAAM,iBAAiBA,UAAU;AAEjC,MAAM,iBAAiB,MAAM,YAI1B,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,SAAS,QAC5D,oBAACA,UAAU,QAAX,EAAA,UACE,oBAACA,UAAU,YAAX;CAA6B;CAAO,MAAK;CAAqB;CAAY,WAAU;WAClF,oBAACA,UAAU,OAAX;EACO;EACL,YAAY,MACV,GACE,iTACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;EAEH,GAAI;EACJ,CAAA;CACmB,CAAA,EACN,CAAA,CACnB;AACF,eAAe,cAAcA,UAAU,MAAM;AAE7C,MAAM,eAAeA,UAAU"}
1
+ {"version":3,"file":"popover.js","names":["Primitive","React"],"sources":["../../../src/components/ui/popover.tsx"],"sourcesContent":["'use client';\nimport { Popover as Primitive } from '@base-ui/react/popover';\nimport * as React from 'react';\nimport { cn } from '@/utils/cn';\n\nconst Popover = Primitive.Root;\n\nconst PopoverTrigger = Primitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ComponentRef<typeof Primitive.Popup>,\n React.ComponentPropsWithoutRef<typeof Primitive.Popup> &\n Pick<Primitive.Positioner.Props, 'sideOffset' | 'align'>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <Primitive.Portal>\n <Primitive.Positioner align={align} side=\"bottom\" sideOffset={sideOffset} className=\"z-50\">\n <Primitive.Popup\n ref={ref}\n className={(s) =>\n cn(\n 'z-50 origin-(--transform-origin) overflow-y-auto max-h-(--available-height) min-w-[240px] max-w-[98vw] rounded-xl border bg-fd-popover/60 backdrop-blur-lg p-2 text-sm text-fd-popover-foreground shadow-lg focus-visible:outline-none data-[closed]:animate-fd-popover-out data-[open]:animate-fd-popover-in',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n />\n </Primitive.Positioner>\n </Primitive.Portal>\n));\nPopoverContent.displayName = Primitive.Popup.displayName;\n\nconst PopoverClose = Primitive.Close;\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverClose };\n"],"mappings":";;;;;;AAKA,MAAM,UAAUA,UAAU;AAE1B,MAAM,iBAAiBA,UAAU;AAEjC,MAAM,iBAAiBC,QAAM,YAI1B,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,SAAS,QAC5D,oBAACD,UAAU,QAAX,EAAA,UACE,oBAACA,UAAU,YAAX;CAA6B;CAAO,MAAK;CAAqB;CAAY,WAAU;WAClF,oBAACA,UAAU,OAAX;EACO;EACL,YAAY,MACV,GACE,iTACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;EAEH,GAAI;EACJ,CAAA;CACmB,CAAA,EACN,CAAA,CACnB;AACF,eAAe,cAAcA,UAAU,MAAM;AAE7C,MAAM,eAAeA,UAAU"}
@@ -1,11 +1,11 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
3
3
  import * as _base_ui_react0 from "@base-ui/react";
4
4
 
5
5
  //#region src/components/ui/scroll-area.d.ts
6
- declare const ScrollArea: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.ScrollAreaRootProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- declare const ScrollViewport: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.ScrollAreaViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const ScrollBar: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.ScrollAreaScrollbarProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.ScrollAreaRootProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
7
+ declare const ScrollViewport: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.ScrollAreaViewportProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
8
+ declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react0.ScrollAreaScrollbarProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
9
9
  type ScrollAreaProps = ScrollArea$1.Root.Props;
10
10
  //#endregion
11
11
  export { ScrollArea, ScrollAreaProps, ScrollBar, ScrollViewport };
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-area.d.ts","names":[],"sources":["../../../src/components/ui/scroll-area.tsx"],"mappings":";;;;;cAIM,UAAA,EAAU,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAed,eAAA,CAfc,mBAAA,WAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAmBV,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAalB,eAAA,CAbkB,uBAAA,WAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAiBd,SAAA,EAAS,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAoBb,eAAA,CApBa,wBAAA,WAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,KAwBH,eAAA,GAAkB,YAAA,CAAU,IAAA,CAAK,KAAA"}
1
+ {"version":3,"file":"scroll-area.d.ts","names":[],"sources":["../../../src/components/ui/scroll-area.tsx"],"mappings":";;;;;cAIM,UAAA,EAAU,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAed,eAAA,CAfc,mBAAA,WAAA,OAAA,CAAA,aAAA,CAAA,cAAA,YAAA,OAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAmBV,cAAA,EAAc,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAalB,eAAA,CAbkB,uBAAA,WAAA,OAAA,CAAA,aAAA,CAAA,cAAA,YAAA,OAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAiBd,SAAA,EAAS,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAoBb,eAAA,CApBa,wBAAA,WAAA,OAAA,CAAA,aAAA,CAAA,cAAA,YAAA,OAAA,CAAA,aAAA,CAAA,cAAA;AAAA,KAwBH,eAAA,GAAkB,YAAA,CAAU,IAAA,CAAK,KAAA"}
@@ -1,9 +1,9 @@
1
1
  import { cn } from "../../utils/cn.js";
2
- import * as React from "react";
2
+ import * as React$1 from "react";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
5
5
  //#region src/components/ui/scroll-area.tsx
6
- const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(ScrollArea$1.Root, {
6
+ const ScrollArea = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(ScrollArea$1.Root, {
7
7
  ref,
8
8
  className: (s) => cn("overflow-hidden", typeof className === "function" ? className(s) : className),
9
9
  ...props,
@@ -14,14 +14,14 @@ const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) =>
14
14
  ]
15
15
  }));
16
16
  ScrollArea.displayName = ScrollArea$1.Root.displayName;
17
- const ScrollViewport = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(ScrollArea$1.Viewport, {
17
+ const ScrollViewport = React$1.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(ScrollArea$1.Viewport, {
18
18
  ref,
19
19
  className: (s) => cn("size-full rounded-[inherit]", typeof className === "function" ? className(s) : className),
20
20
  ...props,
21
21
  children
22
22
  }));
23
23
  ScrollViewport.displayName = ScrollArea$1.Viewport.displayName;
24
- const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(ScrollArea$1.Scrollbar, {
24
+ const ScrollBar = React$1.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(ScrollArea$1.Scrollbar, {
25
25
  ref,
26
26
  orientation,
27
27
  className: (s) => cn("flex select-none transition-opacity", !s.hovering && "opacity-0", orientation === "vertical" && "h-full w-1.5", orientation === "horizontal" && "h-1.5 flex-col", typeof className === "function" ? className(s) : className),
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-area.js","names":["Primitive"],"sources":["../../../src/components/ui/scroll-area.tsx"],"sourcesContent":["import { ScrollArea as Primitive } from '@base-ui/react/scroll-area';\nimport * as React from 'react';\nimport { cn } from '@/utils/cn';\n\nconst ScrollArea = React.forwardRef<\n React.ComponentRef<typeof Primitive.Root>,\n React.ComponentPropsWithoutRef<typeof Primitive.Root>\n>(({ className, children, ...props }, ref) => (\n <Primitive.Root\n ref={ref}\n className={(s) =>\n cn('overflow-hidden', typeof className === 'function' ? className(s) : className)\n }\n {...props}\n >\n {children}\n <Primitive.Corner />\n <ScrollBar orientation=\"vertical\" />\n </Primitive.Root>\n));\n\nScrollArea.displayName = Primitive.Root.displayName;\n\nconst ScrollViewport = React.forwardRef<\n React.ComponentRef<typeof Primitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof Primitive.Viewport>\n>(({ className, children, ...props }, ref) => (\n <Primitive.Viewport\n ref={ref}\n className={(s) =>\n cn('size-full rounded-[inherit]', typeof className === 'function' ? className(s) : className)\n }\n {...props}\n >\n {children}\n </Primitive.Viewport>\n));\n\nScrollViewport.displayName = Primitive.Viewport.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ComponentRef<typeof Primitive.Scrollbar>,\n React.ComponentPropsWithoutRef<typeof Primitive.Scrollbar>\n>(({ className, orientation = 'vertical', ...props }, ref) => (\n <Primitive.Scrollbar\n ref={ref}\n orientation={orientation}\n className={(s) =>\n cn(\n 'flex select-none transition-opacity',\n !s.hovering && 'opacity-0',\n orientation === 'vertical' && 'h-full w-1.5',\n orientation === 'horizontal' && 'h-1.5 flex-col',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n >\n <Primitive.Thumb className=\"relative flex-1 rounded-full bg-fd-border\" />\n </Primitive.Scrollbar>\n));\nScrollBar.displayName = Primitive.Scrollbar.displayName;\n\nexport { ScrollArea, ScrollBar, ScrollViewport };\nexport type ScrollAreaProps = Primitive.Root.Props;\n"],"mappings":";;;;;AAIA,MAAM,aAAa,MAAM,YAGtB,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,qBAACA,aAAU,MAAX;CACO;CACL,YAAY,MACV,GAAG,mBAAmB,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAAU;CAEnF,GAAI;WALN;EAOG;EACD,oBAACA,aAAU,QAAX,EAAoB,CAAA;EACpB,oBAAC,WAAD,EAAW,aAAY,YAAa,CAAA;EACrB;GACjB;AAEF,WAAW,cAAcA,aAAU,KAAK;AAExC,MAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAACA,aAAU,UAAX;CACO;CACL,YAAY,MACV,GAAG,+BAA+B,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAAU;CAE/F,GAAI;CAEH;CACkB,CAAA,CACrB;AAEF,eAAe,cAAcA,aAAU,SAAS;AAEhD,MAAM,YAAY,MAAM,YAGrB,EAAE,WAAW,cAAc,YAAY,GAAG,SAAS,QACpD,oBAACA,aAAU,WAAX;CACO;CACQ;CACb,YAAY,MACV,GACE,uCACA,CAAC,EAAE,YAAY,aACf,gBAAgB,cAAc,gBAC9B,gBAAgB,gBAAgB,kBAChC,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;CAEH,GAAI;WAEJ,oBAACA,aAAU,OAAX,EAAiB,WAAU,6CAA8C,CAAA;CACrD,CAAA,CACtB;AACF,UAAU,cAAcA,aAAU,UAAU"}
1
+ {"version":3,"file":"scroll-area.js","names":["React","Primitive"],"sources":["../../../src/components/ui/scroll-area.tsx"],"sourcesContent":["import { ScrollArea as Primitive } from '@base-ui/react/scroll-area';\nimport * as React from 'react';\nimport { cn } from '@/utils/cn';\n\nconst ScrollArea = React.forwardRef<\n React.ComponentRef<typeof Primitive.Root>,\n React.ComponentPropsWithoutRef<typeof Primitive.Root>\n>(({ className, children, ...props }, ref) => (\n <Primitive.Root\n ref={ref}\n className={(s) =>\n cn('overflow-hidden', typeof className === 'function' ? className(s) : className)\n }\n {...props}\n >\n {children}\n <Primitive.Corner />\n <ScrollBar orientation=\"vertical\" />\n </Primitive.Root>\n));\n\nScrollArea.displayName = Primitive.Root.displayName;\n\nconst ScrollViewport = React.forwardRef<\n React.ComponentRef<typeof Primitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof Primitive.Viewport>\n>(({ className, children, ...props }, ref) => (\n <Primitive.Viewport\n ref={ref}\n className={(s) =>\n cn('size-full rounded-[inherit]', typeof className === 'function' ? className(s) : className)\n }\n {...props}\n >\n {children}\n </Primitive.Viewport>\n));\n\nScrollViewport.displayName = Primitive.Viewport.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ComponentRef<typeof Primitive.Scrollbar>,\n React.ComponentPropsWithoutRef<typeof Primitive.Scrollbar>\n>(({ className, orientation = 'vertical', ...props }, ref) => (\n <Primitive.Scrollbar\n ref={ref}\n orientation={orientation}\n className={(s) =>\n cn(\n 'flex select-none transition-opacity',\n !s.hovering && 'opacity-0',\n orientation === 'vertical' && 'h-full w-1.5',\n orientation === 'horizontal' && 'h-1.5 flex-col',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n >\n <Primitive.Thumb className=\"relative flex-1 rounded-full bg-fd-border\" />\n </Primitive.Scrollbar>\n));\nScrollBar.displayName = Primitive.Scrollbar.displayName;\n\nexport { ScrollArea, ScrollBar, ScrollViewport };\nexport type ScrollAreaProps = Primitive.Root.Props;\n"],"mappings":";;;;;AAIA,MAAM,aAAaA,QAAM,YAGtB,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,qBAACC,aAAU,MAAX;CACO;CACL,YAAY,MACV,GAAG,mBAAmB,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAAU;CAEnF,GAAI;WALN;EAOG;EACD,oBAACA,aAAU,QAAX,EAAoB,CAAA;EACpB,oBAAC,WAAD,EAAW,aAAY,YAAa,CAAA;EACrB;GACjB;AAEF,WAAW,cAAcA,aAAU,KAAK;AAExC,MAAM,iBAAiBD,QAAM,YAG1B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAACC,aAAU,UAAX;CACO;CACL,YAAY,MACV,GAAG,+BAA+B,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAAU;CAE/F,GAAI;CAEH;CACkB,CAAA,CACrB;AAEF,eAAe,cAAcA,aAAU,SAAS;AAEhD,MAAM,YAAYD,QAAM,YAGrB,EAAE,WAAW,cAAc,YAAY,GAAG,SAAS,QACpD,oBAACC,aAAU,WAAX;CACO;CACQ;CACb,YAAY,MACV,GACE,uCACA,CAAC,EAAE,YAAY,aACf,gBAAgB,cAAc,gBAC9B,gBAAgB,gBAAgB,kBAChC,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;CAEH,GAAI;WAEJ,oBAACA,aAAU,OAAX,EAAiB,WAAU,6CAA8C,CAAA;CACrD,CAAA,CACtB;AACF,UAAU,cAAcA,aAAU,UAAU"}
package/dist/i18n.d.ts CHANGED
@@ -2,13 +2,17 @@ import { I18nProviderProps, Translations, defaultTranslations } from "./contexts
2
2
  import { I18nConfig } from "fumadocs-core/i18n";
3
3
 
4
4
  //#region src/i18n.d.ts
5
+ interface I18nUIConfig<Languages extends string> extends I18nConfig<Languages> {
6
+ /**
7
+ * get i18n config for Fumadocs UI `<RootProvider i18n={config} />`.
8
+ */
9
+ provider: (locale?: string) => I18nProviderProps;
10
+ }
5
11
  declare function defineI18nUI<Languages extends string>(config: I18nConfig<Languages>, options: {
6
12
  translations: { [K in Languages]?: Partial<Translations> & {
7
13
  displayName?: string;
8
14
  } };
9
- }): {
10
- provider(locale?: string): I18nProviderProps;
11
- };
15
+ }): I18nUIConfig<Languages>;
12
16
  //#endregion
13
- export { type I18nProviderProps, type Translations, defaultTranslations, defineI18nUI };
17
+ export { type I18nProviderProps, I18nUIConfig, type Translations, defaultTranslations, defineI18nUI };
14
18
  //# sourceMappingURL=i18n.d.ts.map