@gv-tech/design-system 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +8 -0
- package/dist/App.d.ts +1 -2
- package/dist/App.d.ts.map +1 -1
- package/dist/accordion.cjs.js +2 -0
- package/dist/accordion.cjs.js.map +1 -0
- package/dist/accordion.es.js +38 -0
- package/dist/accordion.es.js.map +1 -0
- package/dist/alert-dialog.cjs.js +2 -0
- package/dist/alert-dialog.cjs.js.map +1 -0
- package/dist/alert-dialog.es.js +64 -0
- package/dist/alert-dialog.es.js.map +1 -0
- package/dist/alert.cjs.js +2 -0
- package/dist/alert.cjs.js.map +1 -0
- package/dist/alert.es.js +32 -0
- package/dist/alert.es.js.map +1 -0
- package/dist/aspect-ratio.cjs.js +2 -0
- package/dist/aspect-ratio.cjs.js.map +1 -0
- package/dist/aspect-ratio.es.js +6 -0
- package/dist/aspect-ratio.es.js.map +1 -0
- package/dist/avatar.cjs.js +2 -0
- package/dist/avatar.cjs.js.map +1 -0
- package/dist/avatar.es.js +29 -0
- package/dist/avatar.es.js.map +1 -0
- package/dist/badge.cjs.js +2 -0
- package/dist/badge.cjs.js.map +1 -0
- package/dist/badge.es.js +26 -0
- package/dist/badge.es.js.map +1 -0
- package/dist/breadcrumb.cjs.js +2 -0
- package/dist/breadcrumb.cjs.js.map +1 -0
- package/dist/breadcrumb.es.js +68 -0
- package/dist/breadcrumb.es.js.map +1 -0
- package/dist/button.cjs.js +2 -0
- package/dist/button.cjs.js.map +1 -0
- package/dist/button.es.js +39 -0
- package/dist/button.es.js.map +1 -0
- package/dist/calendar.cjs.js +2 -0
- package/dist/calendar.cjs.js.map +1 -0
- package/dist/calendar.es.js +132 -0
- package/dist/calendar.es.js.map +1 -0
- package/dist/card.cjs.js +2 -0
- package/dist/card.cjs.js.map +1 -0
- package/dist/card.es.js +34 -0
- package/dist/card.es.js.map +1 -0
- package/dist/carousel.cjs.js +2 -0
- package/dist/carousel.cjs.js.map +1 -0
- package/dist/carousel.es.js +158 -0
- package/dist/carousel.es.js.map +1 -0
- package/dist/chart.cjs.js +8 -0
- package/dist/chart.cjs.js.map +1 -0
- package/dist/chart.es.js +187 -0
- package/dist/chart.es.js.map +1 -0
- package/dist/checkbox.cjs.js +2 -0
- package/dist/checkbox.cjs.js.map +1 -0
- package/dist/checkbox.es.js +20 -0
- package/dist/checkbox.es.js.map +1 -0
- package/dist/collapsible.cjs.js +2 -0
- package/dist/collapsible.cjs.js.map +1 -0
- package/dist/collapsible.es.js +8 -0
- package/dist/collapsible.es.js.map +1 -0
- package/dist/command.cjs.js +2 -0
- package/dist/command.cjs.js.map +1 -0
- package/dist/command.es.js +86 -0
- package/dist/command.es.js.map +1 -0
- package/dist/components/docs/Sidebar.d.ts +2 -1
- package/dist/components/docs/Sidebar.d.ts.map +1 -1
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/context-menu.cjs.js +2 -0
- package/dist/context-menu.cjs.js.map +1 -0
- package/dist/context-menu.es.js +121 -0
- package/dist/context-menu.es.js.map +1 -0
- package/dist/design-system.css +1 -1
- package/dist/dialog.cjs.js +2 -0
- package/dist/dialog.cjs.js.map +1 -0
- package/dist/dialog.es.js +65 -0
- package/dist/dialog.es.js.map +1 -0
- package/dist/drawer.cjs.js +2 -0
- package/dist/drawer.cjs.js.map +1 -0
- package/dist/drawer.es.js +54 -0
- package/dist/drawer.es.js.map +1 -0
- package/dist/dropdown-menu.cjs.js +2 -0
- package/dist/dropdown-menu.cjs.js.map +1 -0
- package/dist/dropdown-menu.es.js +123 -0
- package/dist/dropdown-menu.es.js.map +1 -0
- package/dist/form.cjs.js +2 -0
- package/dist/form.cjs.js.map +1 -0
- package/dist/form.es.js +83 -0
- package/dist/form.es.js.map +1 -0
- package/dist/hover-card.cjs.js +2 -0
- package/dist/hover-card.cjs.js.map +1 -0
- package/dist/hover-card.es.js +23 -0
- package/dist/hover-card.es.js.map +1 -0
- package/dist/index.cjs.js +1 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +285 -2451
- package/dist/index.es.js.map +1 -1
- package/dist/input.cjs.js +2 -0
- package/dist/input.cjs.js.map +1 -0
- package/dist/input.es.js +22 -0
- package/dist/input.es.js.map +1 -0
- package/dist/label.cjs.js +2 -0
- package/dist/label.cjs.js.map +1 -0
- package/dist/label.es.js +9 -0
- package/dist/label.es.js.map +1 -0
- package/dist/menubar.cjs.js +2 -0
- package/dist/menubar.cjs.js.map +1 -0
- package/dist/menubar.es.js +161 -0
- package/dist/menubar.es.js.map +1 -0
- package/dist/navigation-menu.cjs.js +2 -0
- package/dist/navigation-menu.cjs.js.map +1 -0
- package/dist/navigation-menu.es.js +96 -0
- package/dist/navigation-menu.es.js.map +1 -0
- package/dist/pages/GettingStarted.d.ts.map +1 -1
- package/dist/pagination.cjs.js +2 -0
- package/dist/pagination.cjs.js.map +1 -0
- package/dist/pagination.es.js +60 -0
- package/dist/pagination.es.js.map +1 -0
- package/dist/popover.cjs.js +2 -0
- package/dist/popover.cjs.js.map +1 -0
- package/dist/popover.es.js +24 -0
- package/dist/popover.es.js.map +1 -0
- package/dist/progress.cjs.js +2 -0
- package/dist/progress.cjs.js.map +1 -0
- package/dist/progress.es.js +24 -0
- package/dist/progress.es.js.map +1 -0
- package/dist/radio-group.cjs.js +2 -0
- package/dist/radio-group.cjs.js.map +1 -0
- package/dist/radio-group.es.js +23 -0
- package/dist/radio-group.es.js.map +1 -0
- package/dist/registry/command.json +1 -1
- package/dist/registry/search.json +1 -1
- package/dist/registry/search.test.json +1 -1
- package/dist/resizable.cjs.js +2 -0
- package/dist/resizable.cjs.js.map +1 -0
- package/dist/resizable.es.js +34 -0
- package/dist/resizable.es.js.map +1 -0
- package/dist/scroll-area.cjs.js +2 -0
- package/dist/scroll-area.cjs.js.map +1 -0
- package/dist/scroll-area.es.js +30 -0
- package/dist/scroll-area.es.js.map +1 -0
- package/dist/search.cjs.js +2 -0
- package/dist/search.cjs.js.map +1 -0
- package/dist/search.es.js +60 -0
- package/dist/search.es.js.map +1 -0
- package/dist/select.cjs.js +2 -0
- package/dist/select.cjs.js.map +1 -0
- package/dist/select.es.js +100 -0
- package/dist/select.es.js.map +1 -0
- package/dist/separator.cjs.js +2 -0
- package/dist/separator.cjs.js.map +1 -0
- package/dist/separator.es.js +18 -0
- package/dist/separator.es.js.map +1 -0
- package/dist/sheet.cjs.js +2 -0
- package/dist/sheet.cjs.js.map +1 -0
- package/dist/sheet.es.js +64 -0
- package/dist/sheet.es.js.map +1 -0
- package/dist/skeleton.cjs.js +2 -0
- package/dist/skeleton.cjs.js.map +1 -0
- package/dist/skeleton.es.js +9 -0
- package/dist/skeleton.es.js.map +1 -0
- package/dist/slider.cjs.js +2 -0
- package/dist/slider.cjs.js.map +1 -0
- package/dist/slider.es.js +20 -0
- package/dist/slider.es.js.map +1 -0
- package/dist/sonner.cjs.js +2 -0
- package/dist/sonner.cjs.js.map +1 -0
- package/dist/sonner.es.js +25 -0
- package/dist/sonner.es.js.map +1 -0
- package/dist/switch.cjs.js +2 -0
- package/dist/switch.cjs.js.map +1 -0
- package/dist/switch.es.js +27 -0
- package/dist/switch.es.js.map +1 -0
- package/dist/table.cjs.js +2 -0
- package/dist/table.cjs.js.map +1 -0
- package/dist/table.es.js +70 -0
- package/dist/table.es.js.map +1 -0
- package/dist/tabs.cjs.js +2 -0
- package/dist/tabs.cjs.js.map +1 -0
- package/dist/tabs.es.js +46 -0
- package/dist/tabs.es.js.map +1 -0
- package/dist/textarea.cjs.js +2 -0
- package/dist/textarea.cjs.js.map +1 -0
- package/dist/textarea.es.js +21 -0
- package/dist/textarea.es.js.map +1 -0
- package/dist/theme/tokens.d.ts +46 -0
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/theme-provider.cjs.js +2 -0
- package/dist/theme-provider.cjs.js.map +1 -0
- package/dist/theme-provider.es.js +9 -0
- package/dist/theme-provider.es.js.map +1 -0
- package/dist/theme-toggle-CCUkxY6o.mjs +181 -0
- package/dist/theme-toggle-CCUkxY6o.mjs.map +1 -0
- package/dist/theme-toggle-Dc_nm_32.js +2 -0
- package/dist/theme-toggle-Dc_nm_32.js.map +1 -0
- package/dist/theme-toggle.cjs.js +2 -0
- package/dist/theme-toggle.cjs.js.map +1 -0
- package/dist/theme-toggle.es.js +9 -0
- package/dist/theme-toggle.es.js.map +1 -0
- package/dist/toast.cjs.js +2 -0
- package/dist/toast.cjs.js.map +1 -0
- package/dist/toast.es.js +70 -0
- package/dist/toast.es.js.map +1 -0
- package/dist/toaster-BjPc-lId.js +2 -0
- package/dist/toaster-BjPc-lId.js.map +1 -0
- package/dist/toaster-Bk6a4gIz.mjs +120 -0
- package/dist/toaster-Bk6a4gIz.mjs.map +1 -0
- package/dist/toaster.cjs.js +2 -0
- package/dist/toaster.cjs.js.map +1 -0
- package/dist/toaster.es.js +7 -0
- package/dist/toaster.es.js.map +1 -0
- package/dist/toggle-group.cjs.js +2 -0
- package/dist/toggle-group.cjs.js.map +1 -0
- package/dist/toggle-group.es.js +33 -0
- package/dist/toggle-group.es.js.map +1 -0
- package/dist/toggle.cjs.js +2 -0
- package/dist/toggle.cjs.js.map +1 -0
- package/dist/toggle.es.js +29 -0
- package/dist/toggle.es.js.map +1 -0
- package/dist/tooltip.cjs.js +2 -0
- package/dist/tooltip.cjs.js.map +1 -0
- package/dist/tooltip.es.js +23 -0
- package/dist/tooltip.es.js.map +1 -0
- package/dist/utils-C9QGdMaH.mjs +8 -0
- package/dist/utils-C9QGdMaH.mjs.map +1 -0
- package/dist/utils-CUFNKXRW.js +2 -0
- package/dist/utils-CUFNKXRW.js.map +1 -0
- package/dist/{vendor-Bcg_ARLM.mjs → vendor-CCQzmGyD.mjs} +150 -150
- package/dist/{vendor-Bcg_ARLM.mjs.map → vendor-CCQzmGyD.mjs.map} +1 -1
- package/dist/{vendor-BrqPND3G.js → vendor-CIyDEr7H.js} +2 -2
- package/dist/{vendor-BrqPND3G.js.map → vendor-CIyDEr7H.js.map} +1 -1
- package/package.json +249 -4
- package/scripts/sync-exports.ts +52 -0
- package/scripts/sync-tokens.ts +73 -0
- package/scripts/{validate.js → validate.ts} +14 -8
- package/src/App.tsx +62 -25
- package/src/components/docs/ComponentShowcase.tsx +5 -5
- package/src/components/docs/Sidebar.tsx +3 -2
- package/src/components/ui/command.tsx +3 -1
- package/src/components/ui/search.test.tsx +2 -0
- package/src/components/ui/search.tsx +3 -3
- package/src/globals.css +22 -0
- package/src/pages/ColorTokensDocs.tsx +4 -4
- package/src/pages/GettingStarted.tsx +6 -4
- package/src/theme/tokens.ts +60 -38
- package/vite.config.ts +25 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.es.js","sources":["../src/components/ui/input.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n 'flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nInput.displayName = 'Input';\n\nexport { Input };\n"],"names":["Input","React","className","type","props","ref","jsx","cn"],"mappings":";;;AAIA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CAAC,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,EAAA,GAASC,MAE5BC,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAH;AAAA,MACA,WAAWI;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAEF,KAAAG;AAAA,MACC,GAAGD;AAAA,IAAA;AAAA,EAAA;AAIZ;AACAJ,EAAM,cAAc;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-CIyDEr7H.js"),c=require("react"),s=require("./utils-CUFNKXRW.js");function l(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const i=l(c),u=r.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),n=i.forwardRef(({className:e,...o},t)=>r.jsxRuntimeExports.jsx(r.Root$3,{ref:t,className:s.cn(u(),e),...o}));n.displayName=r.Root$3.displayName;exports.Label=n;
|
|
2
|
+
//# sourceMappingURL=label.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.cjs.js","sources":["../src/components/ui/label.tsx"],"sourcesContent":["import * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n"],"names":["labelVariants","cva","Label","React","className","props","ref","jsx","LabelPrimitive.Root","cn"],"mappings":"scAMMA,EAAgBC,EAAAA,IAAI,4FAA4F,EAEhHC,EAAQC,EAAM,WAGlB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CAAoB,IAAAF,EAAU,UAAWG,KAAGT,EAAA,EAAiBI,CAAS,EAAI,GAAGC,EAAO,CACtF,EACDH,EAAM,YAAcM,EAAAA,OAAoB"}
|
package/dist/label.es.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { j as t, a8 as a, g as r } from "./vendor-CCQzmGyD.mjs";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { c as i } from "./utils-C9QGdMaH.mjs";
|
|
4
|
+
const l = r("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), d = m.forwardRef(({ className: e, ...o }, s) => /* @__PURE__ */ t.jsx(a, { ref: s, className: i(l(), e), ...o }));
|
|
5
|
+
d.displayName = a.displayName;
|
|
6
|
+
export {
|
|
7
|
+
d as Label
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=label.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.es.js","sources":["../src/components/ui/label.tsx"],"sourcesContent":["import * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n"],"names":["labelVariants","cva","Label","React","className","props","ref","jsx","LabelPrimitive.Root","cn"],"mappings":";;;AAMA,MAAMA,IAAgBC,EAAI,4FAA4F,GAEhHC,IAAQC,EAAM,WAGlB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACC,GAAA,EAAoB,KAAAF,GAAU,WAAWG,EAAGT,EAAA,GAAiBI,CAAS,GAAI,GAAGC,GAAO,CACtF;AACDH,EAAM,cAAcM,EAAoB;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-CIyDEr7H.js"),y=require("react"),r=require("./utils-CUFNKXRW.js");function M(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const s=M(y);function N({...t}){return e.jsxRuntimeExports.jsx(e.Menu,{...t})}function h({...t}){return e.jsxRuntimeExports.jsx(e.Group2$1,{...t})}function w({...t}){return e.jsxRuntimeExports.jsx(e.Portal2$2,{...t})}function E({...t}){return e.jsxRuntimeExports.jsx(e.RadioGroup2$1,{...t})}function $({...t}){return e.jsxRuntimeExports.jsx(e.Sub2$1,{"data-slot":"menubar-sub",...t})}const d=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.Root3,{ref:n,className:r.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",t),...a}));d.displayName=e.Root3.displayName;const u=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.Trigger$2,{ref:n,className:r.cn("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...a}));u.displayName=e.Trigger$2.displayName;const c=s.forwardRef(({className:t,inset:a,children:n,...o},i)=>e.jsxRuntimeExports.jsxs(e.SubTrigger2$1,{ref:i,className:r.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",a&&"pl-8",t),...o,children:[n,e.jsxRuntimeExports.jsx(e.ChevronRight,{className:"ml-auto h-4 w-4"})]}));c.displayName=e.SubTrigger2$1.displayName;const m=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.SubContent2$1,{ref:n,className:r.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",t),...a}));m.displayName=e.SubContent2$1.displayName;const l=s.forwardRef(({className:t,align:a="start",alignOffset:n=-4,sideOffset:o=8,...i},R)=>e.jsxRuntimeExports.jsx(e.Portal2$2,{children:e.jsxRuntimeExports.jsx(e.Content2$4,{ref:R,align:a,alignOffset:n,sideOffset:o,className:r.cn("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",t),...i})}));l.displayName=e.Content2$4.displayName;const p=s.forwardRef(({className:t,inset:a,...n},o)=>e.jsxRuntimeExports.jsx(e.Item3,{ref:o,className:r.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",t),...n}));p.displayName=e.Item3.displayName;const x=s.forwardRef(({className:t,children:a,checked:n,...o},i)=>e.jsxRuntimeExports.jsxs(e.CheckboxItem2$1,{ref:i,className:r.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:n,...o,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$1,{children:e.jsxRuntimeExports.jsx(e.Check,{className:"h-4 w-4"})})}),a]}));x.displayName=e.CheckboxItem2$1.displayName;const f=s.forwardRef(({className:t,children:a,...n},o)=>e.jsxRuntimeExports.jsxs(e.RadioItem2$1,{ref:o,className:r.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$1,{children:e.jsxRuntimeExports.jsx(e.Circle,{className:"h-4 w-4 fill-current"})})}),a]}));f.displayName=e.RadioItem2$1.displayName;const b=s.forwardRef(({className:t,inset:a,...n},o)=>e.jsxRuntimeExports.jsx(e.Label2$1,{ref:o,className:r.cn("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",t),...n}));b.displayName=e.Label2$1.displayName;const g=s.forwardRef(({className:t,...a},n)=>e.jsxRuntimeExports.jsx(e.Separator2$1,{ref:n,className:r.cn("-mx-1 my-1 h-px bg-muted",t),...a}));g.displayName=e.Separator2$1.displayName;const j=({className:t,...a})=>e.jsxRuntimeExports.jsx("span",{className:r.cn("ml-auto text-xs tracking-widest text-muted-foreground",t),...a});j.displayname="MenubarShortcut";exports.Menubar=d;exports.MenubarCheckboxItem=x;exports.MenubarContent=l;exports.MenubarGroup=h;exports.MenubarItem=p;exports.MenubarLabel=b;exports.MenubarMenu=N;exports.MenubarPortal=w;exports.MenubarRadioGroup=E;exports.MenubarRadioItem=f;exports.MenubarSeparator=g;exports.MenubarShortcut=j;exports.MenubarSub=$;exports.MenubarSubContent=m;exports.MenubarSubTrigger=c;exports.MenubarTrigger=u;
|
|
2
|
+
//# sourceMappingURL=menubar.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menubar.cjs.js","sources":["../src/components/ui/menubar.tsx"],"sourcesContent":["import * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nfunction MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>) {\n return <MenubarPrimitive.Menu {...props} />;\n}\n\nfunction MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n return <MenubarPrimitive.Group {...props} />;\n}\n\nfunction MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n return <MenubarPrimitive.Portal {...props} />;\n}\n\nfunction MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n return <MenubarPrimitive.RadioGroup {...props} />;\n}\n\nfunction MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>) {\n return <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn('flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm', className)}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n className,\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]',\n className,\n )}\n {...props}\n />\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>\n>(({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, ref) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <MenubarPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <Circle className=\"h-4 w-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator ref={ref} className={cn('-mx-1 my-1 h-px bg-muted', className)} {...props} />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nconst MenubarShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n return <span className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)} {...props} />;\n};\nMenubarShortcut.displayname = 'MenubarShortcut';\n\nexport {\n Menubar,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarPortal,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n"],"names":["MenubarMenu","props","jsx","MenubarPrimitive.Menu","MenubarGroup","MenubarPrimitive.Group","MenubarPortal","MenubarPrimitive.Portal","MenubarRadioGroup","MenubarPrimitive.RadioGroup","MenubarSub","MenubarPrimitive.Sub","Menubar","React","className","ref","MenubarPrimitive.Root","cn","MenubarTrigger","MenubarPrimitive.Trigger","MenubarSubTrigger","inset","children","jsxs","MenubarPrimitive.SubTrigger","ChevronRight","MenubarSubContent","MenubarPrimitive.SubContent","MenubarContent","align","alignOffset","sideOffset","MenubarPrimitive.Content","MenubarItem","MenubarPrimitive.Item","MenubarCheckboxItem","checked","MenubarPrimitive.CheckboxItem","MenubarPrimitive.ItemIndicator","Check","MenubarRadioItem","MenubarPrimitive.RadioItem","Circle","MenubarLabel","MenubarPrimitive.Label","MenubarSeparator","MenubarPrimitive.Separator","MenubarShortcut"],"mappings":"scAMA,SAASA,EAAY,CAAE,GAAGC,GAA6D,CACrF,OAAOC,wBAACC,EAAAA,KAAA,CAAuB,GAAGF,CAAA,CAAO,CAC3C,CAEA,SAASG,EAAa,CAAE,GAAGH,GAA8D,CACvF,OAAOC,wBAACG,EAAAA,SAAA,CAAwB,GAAGJ,CAAA,CAAO,CAC5C,CAEA,SAASK,EAAc,CAAE,GAAGL,GAA+D,CACzF,OAAOC,wBAACK,EAAAA,UAAA,C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ae as f, af as p, ag as x, ah as b, w, ai as g, V as M, aj as N, ak as y, al as R, am as v, an as S, ao as C } from "./vendor-CCQzmGyD.mjs";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { c as n } from "./utils-C9QGdMaH.mjs";
|
|
4
|
+
function F({ ...e }) {
|
|
5
|
+
return /* @__PURE__ */ a.jsx(v, { ...e });
|
|
6
|
+
}
|
|
7
|
+
function H({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ a.jsx(R, { ...e });
|
|
9
|
+
}
|
|
10
|
+
function J({ ...e }) {
|
|
11
|
+
return /* @__PURE__ */ a.jsx(u, { ...e });
|
|
12
|
+
}
|
|
13
|
+
function K({ ...e }) {
|
|
14
|
+
return /* @__PURE__ */ a.jsx(S, { ...e });
|
|
15
|
+
}
|
|
16
|
+
function O({ ...e }) {
|
|
17
|
+
return /* @__PURE__ */ a.jsx(C, { "data-slot": "menubar-sub", ...e });
|
|
18
|
+
}
|
|
19
|
+
const I = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
20
|
+
i,
|
|
21
|
+
{
|
|
22
|
+
ref: s,
|
|
23
|
+
className: n("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
|
|
24
|
+
...t
|
|
25
|
+
}
|
|
26
|
+
));
|
|
27
|
+
I.displayName = i.displayName;
|
|
28
|
+
const k = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
29
|
+
c,
|
|
30
|
+
{
|
|
31
|
+
ref: s,
|
|
32
|
+
className: n(
|
|
33
|
+
"flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
34
|
+
e
|
|
35
|
+
),
|
|
36
|
+
...t
|
|
37
|
+
}
|
|
38
|
+
));
|
|
39
|
+
k.displayName = c.displayName;
|
|
40
|
+
const z = r.forwardRef(({ className: e, inset: t, children: s, ...o }, d) => /* @__PURE__ */ a.jsxs(
|
|
41
|
+
l,
|
|
42
|
+
{
|
|
43
|
+
ref: d,
|
|
44
|
+
className: n(
|
|
45
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
46
|
+
t && "pl-8",
|
|
47
|
+
e
|
|
48
|
+
),
|
|
49
|
+
...o,
|
|
50
|
+
children: [
|
|
51
|
+
s,
|
|
52
|
+
/* @__PURE__ */ a.jsx(j, { className: "ml-auto h-4 w-4" })
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
));
|
|
56
|
+
z.displayName = l.displayName;
|
|
57
|
+
const G = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
58
|
+
m,
|
|
59
|
+
{
|
|
60
|
+
ref: s,
|
|
61
|
+
className: n(
|
|
62
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",
|
|
63
|
+
e
|
|
64
|
+
),
|
|
65
|
+
...t
|
|
66
|
+
}
|
|
67
|
+
));
|
|
68
|
+
G.displayName = m.displayName;
|
|
69
|
+
const T = r.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...d }, h) => /* @__PURE__ */ a.jsx(u, { children: /* @__PURE__ */ a.jsx(
|
|
70
|
+
f,
|
|
71
|
+
{
|
|
72
|
+
ref: h,
|
|
73
|
+
align: t,
|
|
74
|
+
alignOffset: s,
|
|
75
|
+
sideOffset: o,
|
|
76
|
+
className: n(
|
|
77
|
+
"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",
|
|
78
|
+
e
|
|
79
|
+
),
|
|
80
|
+
...d
|
|
81
|
+
}
|
|
82
|
+
) }));
|
|
83
|
+
T.displayName = f.displayName;
|
|
84
|
+
const L = r.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
85
|
+
p,
|
|
86
|
+
{
|
|
87
|
+
ref: o,
|
|
88
|
+
className: n(
|
|
89
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
90
|
+
t && "pl-8",
|
|
91
|
+
e
|
|
92
|
+
),
|
|
93
|
+
...s
|
|
94
|
+
}
|
|
95
|
+
));
|
|
96
|
+
L.displayName = p.displayName;
|
|
97
|
+
const P = r.forwardRef(({ className: e, children: t, checked: s, ...o }, d) => /* @__PURE__ */ a.jsxs(
|
|
98
|
+
x,
|
|
99
|
+
{
|
|
100
|
+
ref: d,
|
|
101
|
+
className: n(
|
|
102
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
103
|
+
e
|
|
104
|
+
),
|
|
105
|
+
checked: s,
|
|
106
|
+
...o,
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(b, { children: /* @__PURE__ */ a.jsx(w, { className: "h-4 w-4" }) }) }),
|
|
109
|
+
t
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
));
|
|
113
|
+
P.displayName = x.displayName;
|
|
114
|
+
const E = r.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
115
|
+
g,
|
|
116
|
+
{
|
|
117
|
+
ref: o,
|
|
118
|
+
className: n(
|
|
119
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
120
|
+
e
|
|
121
|
+
),
|
|
122
|
+
...s,
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(b, { children: /* @__PURE__ */ a.jsx(M, { className: "h-4 w-4 fill-current" }) }) }),
|
|
125
|
+
t
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
));
|
|
129
|
+
E.displayName = g.displayName;
|
|
130
|
+
const V = r.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
131
|
+
N,
|
|
132
|
+
{
|
|
133
|
+
ref: o,
|
|
134
|
+
className: n("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
|
|
135
|
+
...s
|
|
136
|
+
}
|
|
137
|
+
));
|
|
138
|
+
V.displayName = N.displayName;
|
|
139
|
+
const q = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(y, { ref: s, className: n("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
140
|
+
q.displayName = y.displayName;
|
|
141
|
+
const A = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: n("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
142
|
+
A.displayname = "MenubarShortcut";
|
|
143
|
+
export {
|
|
144
|
+
I as Menubar,
|
|
145
|
+
P as MenubarCheckboxItem,
|
|
146
|
+
T as MenubarContent,
|
|
147
|
+
H as MenubarGroup,
|
|
148
|
+
L as MenubarItem,
|
|
149
|
+
V as MenubarLabel,
|
|
150
|
+
F as MenubarMenu,
|
|
151
|
+
J as MenubarPortal,
|
|
152
|
+
K as MenubarRadioGroup,
|
|
153
|
+
E as MenubarRadioItem,
|
|
154
|
+
q as MenubarSeparator,
|
|
155
|
+
A as MenubarShortcut,
|
|
156
|
+
O as MenubarSub,
|
|
157
|
+
G as MenubarSubContent,
|
|
158
|
+
z as MenubarSubTrigger,
|
|
159
|
+
k as MenubarTrigger
|
|
160
|
+
};
|
|
161
|
+
//# sourceMappingURL=menubar.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menubar.es.js","sources":["../src/components/ui/menubar.tsx"],"sourcesContent":["import * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nfunction MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>) {\n return <MenubarPrimitive.Menu {...props} />;\n}\n\nfunction MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n return <MenubarPrimitive.Group {...props} />;\n}\n\nfunction MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n return <MenubarPrimitive.Portal {...props} />;\n}\n\nfunction MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n return <MenubarPrimitive.RadioGroup {...props} />;\n}\n\nfunction MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>) {\n return <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn('flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm', className)}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n className,\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]',\n className,\n )}\n {...props}\n />\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>\n>(({ className, align = 'start', alignOffset = -4, sideOffset = 8, ...props }, ref) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <MenubarPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <Circle className=\"h-4 w-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator ref={ref} className={cn('-mx-1 my-1 h-px bg-muted', className)} {...props} />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nconst MenubarShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n return <span className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)} {...props} />;\n};\nMenubarShortcut.displayname = 'MenubarShortcut';\n\nexport {\n Menubar,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarPortal,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n"],"names":["MenubarMenu","props","jsx","MenubarPrimitive.Menu","MenubarGroup","MenubarPrimitive.Group","MenubarPortal","MenubarPrimitive.Portal","MenubarRadioGroup","MenubarPrimitive.RadioGroup","MenubarSub","MenubarPrimitive.Sub","Menubar","React","className","ref","MenubarPrimitive.Root","cn","MenubarTrigger","MenubarPrimitive.Trigger","MenubarSubTrigger","inset","children","jsxs","MenubarPrimitive.SubTrigger","ChevronRight","MenubarSubContent","MenubarPrimitive.SubContent","MenubarContent","align","alignOffset","sideOffset","MenubarPrimitive.Content","MenubarItem","MenubarPrimitive.Item","MenubarCheckboxItem","checked","MenubarPrimitive.CheckboxItem","MenubarPrimitive.ItemIndicator","Check","MenubarRadioItem","MenubarPrimitive.RadioItem","Circle","MenubarLabel","MenubarPrimitive.Label","MenubarSeparator","MenubarPrimitive.Separator","MenubarShortcut"],"mappings":";;;AAMA,SAASA,EAAY,EAA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AS,QAAQP,CAAS;AAAA,IAC5E,GAAGb;AAAA,EAAA;AACN,CACD;AACD0C,EAAa,cAAcC,EAAuB;AAElD,MAAMC,IAAmBhC,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGb,EAAA,GAASc,MAC1Bb,gBAAAA,EAAAA,IAAC4C,GAAA,EAA2B,KAAA/B,GAAU,WAAWE,EAAG,4BAA4BH,CAAS,GAAI,GAAGb,GAAO,CACxG;AACD4C,EAAiB,cAAcC,EAA2B;AAE1D,MAAMC,IAAkB,CAAC,EAAE,WAAAjC,GAAW,GAAGb,QAChCC,gBAAAA,EAAAA,IAAC,UAAK,WAAWe,EAAG,yDAAyDH,CAAS,GAAI,GAAGb,GAAO;AAE7G8C,EAAgB,cAAc;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./vendor-CIyDEr7H.js"),p=require("react"),n=require("./utils-CUFNKXRW.js");function g(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return o.default=e,Object.freeze(o)}const r=g(p),d=r.forwardRef(({className:e,children:o,...a},i)=>t.jsxRuntimeExports.jsxs(t.Root2$4,{ref:i,className:n.cn("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[o,t.jsxRuntimeExports.jsx(s,{})]}));d.displayName=t.Root2$4.displayName;const c=r.forwardRef(({className:e,...o},a)=>t.jsxRuntimeExports.jsx(t.List,{ref:a,className:n.cn("group flex flex-1 list-none items-center justify-center space-x-1",e),...o}));c.displayName=t.List.displayName;const x=t.Item$1,u=t.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),l=r.forwardRef(({className:e,children:o,...a},i)=>t.jsxRuntimeExports.jsxs(t.Trigger$3,{ref:i,className:n.cn(u(),"group",e),...a,children:[o," ",t.jsxRuntimeExports.jsx(t.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));l.displayName=t.Trigger$3.displayName;const m=r.forwardRef(({className:e,...o},a)=>t.jsxRuntimeExports.jsx(t.Content,{ref:a,className:n.cn("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...o}));m.displayName=t.Content.displayName;const v=t.Link,s=r.forwardRef(({className:e,...o},a)=>t.jsxRuntimeExports.jsx("div",{className:n.cn("absolute left-0 top-full flex justify-center"),children:t.jsxRuntimeExports.jsx(t.Viewport,{className:n.cn("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:a,...o})}));s.displayName=t.Viewport.displayName;const f=r.forwardRef(({className:e,...o},a)=>t.jsxRuntimeExports.jsx(t.Indicator,{ref:a,className:n.cn("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:t.jsxRuntimeExports.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));f.displayName=t.Indicator.displayName;exports.NavigationMenu=d;exports.NavigationMenuContent=m;exports.NavigationMenuIndicator=f;exports.NavigationMenuItem=x;exports.NavigationMenuLink=v;exports.NavigationMenuList=c;exports.NavigationMenuTrigger=l;exports.NavigationMenuViewport=s;exports.navigationMenuTriggerStyle=u;
|
|
2
|
+
//# sourceMappingURL=navigation-menu.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.cjs.js","sources":["../src/components/ui/navigation-menu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cva } from 'class-variance-authority';\nimport { ChevronDown } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n));\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n />\n));\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent',\n);\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), 'group', className)}\n {...props}\n >\n {children}{' '}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n));\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ',\n className,\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className={cn('absolute left-0 top-full flex justify-center')}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n 'origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]',\n className,\n )}\n ref={ref}\n {...props}\n />\n </div>\n));\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n 'top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in',\n className,\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n));\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuIndicator,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n NavigationMenuViewport,\n};\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive.Root","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuPrimitive.List","NavigationMenuItem","NavigationMenuPrimitive.Item","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","NavigationMenuPrimitive.Trigger","ChevronDown","NavigationMenuContent","NavigationMenuPrimitive.Content","NavigationMenuLink","NavigationMenuPrimitive.Link","NavigationMenuPrimitive.Viewport","NavigationMenuIndicator","NavigationMenuPrimitive.Indicator"],"mappings":"scAOMA,EAAiBC,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC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kBAAAA,IAAC,MAAA,CAAI,UAAWH,EAAAA,GAAG,8CAA8C,EAC/D,SAAAG,EAAAA,kBAAAA,IAACa,EAAAA,SAAA,CACC,UAAWhB,EAAAA,GACT,qVACAN,CAAA,EAEF,IAAAG,EACC,GAAGD,CAAA,CACN,EACF,CACD,EACDK,EAAuB,YAAce,EAAAA,SAAiC,YAEtE,MAAMC,EAA0BxB,EAAM,WAGpC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BM,EAAAA,kBAAAA,IAACe,EAAAA,UAAA,CACC,IAAArB,EACA,UAAWG,EAAAA,GACT,+LACAN,CAAA,EAED,GAAGE,EAEJ,SAAAO,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAU,wEAAA,CAAyE,CAAA,CAC1F,CACD,EACDc,EAAwB,YAAcC,EAAAA,UAAkC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { j as o, ap as r, aq as d, ar as m, C as p, as as l, at as c, au as f, g, av as v, aw as x } from "./vendor-CCQzmGyD.mjs";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { c as n } from "./utils-C9QGdMaH.mjs";
|
|
4
|
+
const N = i.forwardRef(({ className: a, children: t, ...e }, s) => /* @__PURE__ */ o.jsxs(
|
|
5
|
+
r,
|
|
6
|
+
{
|
|
7
|
+
ref: s,
|
|
8
|
+
className: n("relative z-10 flex max-w-max flex-1 items-center justify-center", a),
|
|
9
|
+
...e,
|
|
10
|
+
children: [
|
|
11
|
+
t,
|
|
12
|
+
/* @__PURE__ */ o.jsx(u, {})
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
N.displayName = r.displayName;
|
|
17
|
+
const h = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx(
|
|
18
|
+
d,
|
|
19
|
+
{
|
|
20
|
+
ref: e,
|
|
21
|
+
className: n("group flex flex-1 list-none items-center justify-center space-x-1", a),
|
|
22
|
+
...t
|
|
23
|
+
}
|
|
24
|
+
));
|
|
25
|
+
h.displayName = d.displayName;
|
|
26
|
+
const z = v, w = g(
|
|
27
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
28
|
+
), y = i.forwardRef(({ className: a, children: t, ...e }, s) => /* @__PURE__ */ o.jsxs(
|
|
29
|
+
m,
|
|
30
|
+
{
|
|
31
|
+
ref: s,
|
|
32
|
+
className: n(w(), "group", a),
|
|
33
|
+
...e,
|
|
34
|
+
children: [
|
|
35
|
+
t,
|
|
36
|
+
" ",
|
|
37
|
+
/* @__PURE__ */ o.jsx(
|
|
38
|
+
p,
|
|
39
|
+
{
|
|
40
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
41
|
+
"aria-hidden": "true"
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
));
|
|
47
|
+
y.displayName = m.displayName;
|
|
48
|
+
const b = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx(
|
|
49
|
+
l,
|
|
50
|
+
{
|
|
51
|
+
ref: e,
|
|
52
|
+
className: n(
|
|
53
|
+
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",
|
|
54
|
+
a
|
|
55
|
+
),
|
|
56
|
+
...t
|
|
57
|
+
}
|
|
58
|
+
));
|
|
59
|
+
b.displayName = l.displayName;
|
|
60
|
+
const C = x, u = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx("div", { className: n("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ o.jsx(
|
|
61
|
+
c,
|
|
62
|
+
{
|
|
63
|
+
className: n(
|
|
64
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
65
|
+
a
|
|
66
|
+
),
|
|
67
|
+
ref: e,
|
|
68
|
+
...t
|
|
69
|
+
}
|
|
70
|
+
) }));
|
|
71
|
+
u.displayName = c.displayName;
|
|
72
|
+
const j = i.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o.jsx(
|
|
73
|
+
f,
|
|
74
|
+
{
|
|
75
|
+
ref: e,
|
|
76
|
+
className: n(
|
|
77
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
78
|
+
a
|
|
79
|
+
),
|
|
80
|
+
...t,
|
|
81
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
82
|
+
}
|
|
83
|
+
));
|
|
84
|
+
j.displayName = f.displayName;
|
|
85
|
+
export {
|
|
86
|
+
N as NavigationMenu,
|
|
87
|
+
b as NavigationMenuContent,
|
|
88
|
+
j as NavigationMenuIndicator,
|
|
89
|
+
z as NavigationMenuItem,
|
|
90
|
+
C as NavigationMenuLink,
|
|
91
|
+
h as NavigationMenuList,
|
|
92
|
+
y as NavigationMenuTrigger,
|
|
93
|
+
u as NavigationMenuViewport,
|
|
94
|
+
w as navigationMenuTriggerStyle
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=navigation-menu.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.es.js","sources":["../src/components/ui/navigation-menu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cva } from 'class-variance-authority';\nimport { ChevronDown } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n));\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n />\n));\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent',\n);\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), 'group', className)}\n {...props}\n >\n {children}{' '}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n));\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ',\n className,\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className={cn('absolute left-0 top-full flex justify-center')}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n 'origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]',\n className,\n )}\n ref={ref}\n {...props}\n />\n </div>\n));\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n 'top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in',\n className,\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n));\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;\n\nexport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuIndicator,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n NavigationMenuViewport,\n};\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive.Root","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuPrimitive.List","NavigationMenuItem","NavigationMenuPrimitive.Item","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","NavigationMenuPrimitive.Trigger","ChevronDown","NavigationMenuContent","NavigationMenuPrimitive.Content","NavigationMenuLink","NavigationMenuPrimitive.Link","NavigationMenuPrimitive.Viewport","NavigationMenuIndicator","NavigationMenuPrimitive.Indicator"],"mappings":";;;AAOA,MAAMA,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,mEAAmEN,CAAS;AAAA,IACzF,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,4BACAM,GAAA,CAAA,CAAuB;AAAA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/D,UAAAG,gBAAAA,EAAAA;AAAAA,EAACa;AAAAA,EAAA;AAAA,IACC,WAAWhB;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAEF,KAAAG;AAAA,IACC,GAAGD;AAAA,EAAA;AACN,GACF,CACD;AACDK,EAAuB,cAAce,EAAiC;AAEtE,MAAMC,IAA0BxB,EAAM,WAGpC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1BM,gBAAAA,EAAAA;AAAAA,EAACe;AAAAA,EAAA;AAAA,IACC,KAAArB;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEJ,UAAAO,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,yEAAA,CAAyE;AAAA,EAAA;AAC1F,CACD;AACDc,EAAwB,cAAcC,EAAkC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GettingStarted.d.ts","sourceRoot":"","sources":["../../src/pages/GettingStarted.tsx"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"GettingStarted.d.ts","sourceRoot":"","sources":["../../src/pages/GettingStarted.tsx"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,4CA8FjC;AAED,wBAAgB,gBAAgB,4CA2M/B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./vendor-CIyDEr7H.js"),g=require("react"),j=require("./button.cjs.js"),i=require("./utils-CUFNKXRW.js");function d(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const r=d(g),l=({className:e,...a})=>n.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination",className:i.cn("mx-auto flex w-full justify-center",e),...a});l.displayName="Pagination";const c=r.forwardRef(({className:e,...a},t)=>n.jsxRuntimeExports.jsx("ul",{ref:t,className:i.cn("flex flex-row items-center gap-1",e),...a}));c.displayName="PaginationContent";const x=r.forwardRef(({className:e,...a},t)=>n.jsxRuntimeExports.jsx("li",{ref:t,className:i.cn("",e),...a}));x.displayName="PaginationItem";const o=({className:e,isActive:a,size:t="icon",...s})=>n.jsxRuntimeExports.jsx("a",{"aria-current":a?"page":void 0,className:i.cn(j.buttonVariants({variant:a?"outline":"ghost",size:t}),e),...s});o.displayName="PaginationLink";const u=({className:e,...a})=>n.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to previous page",size:"default",className:i.cn("gap-1 pl-2.5",e),...a,children:[n.jsxRuntimeExports.jsx(n.ChevronLeft,{className:"h-4 w-4"}),n.jsxRuntimeExports.jsx("span",{children:"Previous"})]});u.displayName="PaginationPrevious";const p=({className:e,...a})=>n.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to next page",size:"default",className:i.cn("gap-1 pr-2.5",e),...a,children:[n.jsxRuntimeExports.jsx("span",{children:"Next"}),n.jsxRuntimeExports.jsx(n.ChevronRight,{className:"h-4 w-4"})]});p.displayName="PaginationNext";const m=({className:e,...a})=>n.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,className:i.cn("flex h-9 w-9 items-center justify-center",e),...a,children:[n.jsxRuntimeExports.jsx(n.Ellipsis,{className:"h-4 w-4"}),n.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More pages"})]});m.displayName="PaginationEllipsis";exports.Pagination=l;exports.PaginationContent=c;exports.PaginationEllipsis=m;exports.PaginationItem=x;exports.PaginationLink=o;exports.PaginationNext=p;exports.PaginationPrevious=u;
|
|
2
|
+
//# sourceMappingURL=pagination.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.cjs.js","sources":["../src/components/ui/pagination.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\nimport * as React from 'react';\n\nimport { ButtonProps, buttonVariants } from '@/components/ui/button';\nimport { cn } from '@/lib/utils';\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n);\nPagination.displayName = 'Pagination';\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'>>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n ),\n);\nPaginationContent.displayName = 'PaginationContent';\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'>>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn('', className)} {...props} />\n));\nPaginationItem.displayName = 'PaginationItem';\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'>;\n\nconst PaginationLink = ({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'outline' : 'ghost',\n size,\n }),\n className,\n )}\n {...props}\n />\n);\nPaginationLink.displayName = 'PaginationLink';\n\nconst PaginationPrevious = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink aria-label=\"Go to previous page\" size=\"default\" className={cn('gap-1 pl-2.5', className)} {...props}>\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = 'PaginationPrevious';\n\nconst PaginationNext = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink aria-label=\"Go to next page\" size=\"default\" className={cn('gap-1 pr-2.5', className)} {...props}>\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n);\nPaginationNext.displayName = 'PaginationNext';\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'>) => (\n <span aria-hidden className={cn('flex h-9 w-9 items-center justify-center', className)} {...props}>\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":"meAMMA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAClCC,EAAAA,kBAAAA,IAAC,MAAA,CACC,KAAK,aACL,aAAW,aACX,UAAWC,EAAAA,GAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CACN,EAEFF,EAAW,YAAc,aAEzB,MAAMK,EAAoBC,EAAM,WAC9B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAA,EAASK,IACxBJ,EAAAA,kBAAAA,IAAC,KAAA,CAAG,IAAAI,EAAU,UAAWH,EAAAA,GAAG,mCAAoCH,CAAS,EAAI,GAAGC,CAAA,CAAO,CAE3F,EACAG,EAAkB,YAAc,oBAEhC,MAAMG,EAAiBF,EAAM,WAAsD,CAAC,CAAE,UAAAL,EAAW,GAAGC,GAASK,4BAC1G,KAAA,CAAG,IAAAA,EAAU,UAAWH,EAAAA,GAAG,GAAIH,CAAS,EAAI,GAAGC,EAAO,CACxD,EACDM,EAAe,YAAc,iBAO7B,MAAMC,EAAiB,CAAC,CAAE,UAAAR,EAAW,SAAAS,EAAU,KAAAC,EAAO,OAAQ,GAAGT,CAAA,IAC/DC,EAAAA,kBAAAA,IAAC,IAAA,CACC,eAAcO,EAAW,OAAS,OAClC,UAAWN,EAAAA,GACTQ,iBAAe,CACb,QAASF,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button.es.js";
|
|
4
|
+
import { c as e } from "./utils-C9QGdMaH.mjs";
|
|
5
|
+
const g = ({ className: s, ...a }) => /* @__PURE__ */ i.jsx(
|
|
6
|
+
"nav",
|
|
7
|
+
{
|
|
8
|
+
role: "navigation",
|
|
9
|
+
"aria-label": "pagination",
|
|
10
|
+
className: e("mx-auto flex w-full justify-center", s),
|
|
11
|
+
...a
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
g.displayName = "Pagination";
|
|
15
|
+
const x = o.forwardRef(
|
|
16
|
+
({ className: s, ...a }, n) => /* @__PURE__ */ i.jsx("ul", { ref: n, className: e("flex flex-row items-center gap-1", s), ...a })
|
|
17
|
+
);
|
|
18
|
+
x.displayName = "PaginationContent";
|
|
19
|
+
const N = o.forwardRef(({ className: s, ...a }, n) => /* @__PURE__ */ i.jsx("li", { ref: n, className: e("", s), ...a }));
|
|
20
|
+
N.displayName = "PaginationItem";
|
|
21
|
+
const t = ({ className: s, isActive: a, size: n = "icon", ...l }) => /* @__PURE__ */ i.jsx(
|
|
22
|
+
"a",
|
|
23
|
+
{
|
|
24
|
+
"aria-current": a ? "page" : void 0,
|
|
25
|
+
className: e(
|
|
26
|
+
p({
|
|
27
|
+
variant: a ? "outline" : "ghost",
|
|
28
|
+
size: n
|
|
29
|
+
}),
|
|
30
|
+
s
|
|
31
|
+
),
|
|
32
|
+
...l
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
t.displayName = "PaginationLink";
|
|
36
|
+
const d = ({ className: s, ...a }) => /* @__PURE__ */ i.jsxs(t, { "aria-label": "Go to previous page", size: "default", className: e("gap-1 pl-2.5", s), ...a, children: [
|
|
37
|
+
/* @__PURE__ */ i.jsx(m, { className: "h-4 w-4" }),
|
|
38
|
+
/* @__PURE__ */ i.jsx("span", { children: "Previous" })
|
|
39
|
+
] });
|
|
40
|
+
d.displayName = "PaginationPrevious";
|
|
41
|
+
const f = ({ className: s, ...a }) => /* @__PURE__ */ i.jsxs(t, { "aria-label": "Go to next page", size: "default", className: e("gap-1 pr-2.5", s), ...a, children: [
|
|
42
|
+
/* @__PURE__ */ i.jsx("span", { children: "Next" }),
|
|
43
|
+
/* @__PURE__ */ i.jsx(c, { className: "h-4 w-4" })
|
|
44
|
+
] });
|
|
45
|
+
f.displayName = "PaginationNext";
|
|
46
|
+
const j = ({ className: s, ...a }) => /* @__PURE__ */ i.jsxs("span", { "aria-hidden": !0, className: e("flex h-9 w-9 items-center justify-center", s), ...a, children: [
|
|
47
|
+
/* @__PURE__ */ i.jsx(r, { className: "h-4 w-4" }),
|
|
48
|
+
/* @__PURE__ */ i.jsx("span", { className: "sr-only", children: "More pages" })
|
|
49
|
+
] });
|
|
50
|
+
j.displayName = "PaginationEllipsis";
|
|
51
|
+
export {
|
|
52
|
+
g as Pagination,
|
|
53
|
+
x as PaginationContent,
|
|
54
|
+
j as PaginationEllipsis,
|
|
55
|
+
N as PaginationItem,
|
|
56
|
+
t as PaginationLink,
|
|
57
|
+
f as PaginationNext,
|
|
58
|
+
d as PaginationPrevious
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=pagination.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.es.js","sources":["../src/components/ui/pagination.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\nimport * as React from 'react';\n\nimport { ButtonProps, buttonVariants } from '@/components/ui/button';\nimport { cn } from '@/lib/utils';\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n);\nPagination.displayName = 'Pagination';\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'>>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n ),\n);\nPaginationContent.displayName = 'PaginationContent';\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'>>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn('', className)} {...props} />\n));\nPaginationItem.displayName = 'PaginationItem';\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'>;\n\nconst PaginationLink = ({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'outline' : 'ghost',\n size,\n }),\n className,\n )}\n {...props}\n />\n);\nPaginationLink.displayName = 'PaginationLink';\n\nconst PaginationPrevious = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink aria-label=\"Go to previous page\" size=\"default\" className={cn('gap-1 pl-2.5', className)} {...props}>\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = 'PaginationPrevious';\n\nconst PaginationNext = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink aria-label=\"Go to next page\" size=\"default\" className={cn('gap-1 pr-2.5', className)} {...props}>\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n);\nPaginationNext.displayName = 'PaginationNext';\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'>) => (\n <span aria-hidden className={cn('flex h-9 w-9 items-center justify-center', className)} {...props}>\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":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U;AAAA,EACjCZ,gBAAAA,EAAAA,IAAC,UAAK,UAAA,WAAA,CAAQ;AAAA,EAAA,CAChB;AAEFU,EAAmB,cAAc;AAEjC,MAAMG,IAAiB,CAAC,EAAE,WAAAf,GAAW,GAAGC,EAAA,MACtCY,gBAAAA,OAACL,GAAA,EAAe,cAAW,mBAAkB,MAAK,WAAU,WAAWL,EAAG,gBAAgBH,CAAS,GAAI,GAAGC,GACxG,UAAA;AAAA,EAAAC,gBAAAA,EAAAA,IAAC,UAAK,UAAA,OAAA,CAAI;AAAA,EACVA,gBAAAA,EAAAA,IAACc,GAAA,EAAa,WAAU,UAAA,CAAU;AAAA,EAAA,CACpC;AAEFD,EAAe,cAAc;AAE7B,MAAME,IAAqB,CAAC,EAAE,WAAAjB,GAAW,GAAGC,QAC1CY,gBAAAA,EAAAA,KAAC,QAAA,EAAK,eAAW,IAAC,WAAWV,EAAG,4CAA4CH,CAAS,GAAI,GAAGC,GAC1F,UAAA;AAAA,EAAAC,gBAAAA,EAAAA,IAACgB,GAAA,EAAe,WAAU,UAAA,CAAU;AAAA,EACpChB,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,WAAU,UAAA,aAAA,CAAU;AAAA,EAAA,CACtC;AAEFe,EAAmB,cAAc;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-CIyDEr7H.js"),s=require("react"),d=require("./utils-CUFNKXRW.js");function c(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return r.default=t,Object.freeze(r)}const p=c(s),l=e.Root2$5,u=e.Trigger$4,m=e.Anchor2,a=p.forwardRef(({className:t,align:r="center",sideOffset:o=4,...n},i)=>e.jsxRuntimeExports.jsx(e.Portal,{children:e.jsxRuntimeExports.jsx(e.Content2$5,{ref:i,align:r,sideOffset:o,className:d.cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",t),...n})}));a.displayName=e.Content2$5.displayName;exports.Popover=l;exports.PopoverAnchor=m;exports.PopoverContent=a;exports.PopoverTrigger=u;
|
|
2
|
+
//# sourceMappingURL=popover.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.cjs.js","sources":["../src/components/ui/popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };\n"],"names":["Popover","PopoverPrimitive.Root","PopoverTrigger","PopoverPrimitive.Trigger","PopoverAnchor","PopoverPrimitive.Anchor","PopoverContent","React","className","align","sideOffset","props","ref","jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","cn"],"mappings":"scAKMA,EAAUC,EAAAA,QAEVC,EAAiBC,EAAAA,UAEjBC,EAAgBC,EAAAA,QAEhBC,EAAiBC,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAA,EAASC,IAC5DC,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CACC,SAAAD,EAAAA,kBAAAA,IAACE,EAAAA,WAAA,CACC,IAAAH,EACA,MAAAH,EACA,WAAAC,EACA,UAAWM,EAAAA,GACT,+dACAR,CAAA,EAED,GAAGG,CAAA,CACN,EACF,CACD,EACDL,EAAe,YAAcS,EAAAA,WAAyB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { j as o, ax as d, ay as t, az as i, aA as m, aB as p } from "./vendor-CCQzmGyD.mjs";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { c as f } from "./utils-C9QGdMaH.mjs";
|
|
4
|
+
const u = i, v = p, h = m, l = c.forwardRef(({ className: a, align: e = "center", sideOffset: r = 4, ...s }, n) => /* @__PURE__ */ o.jsx(d, { children: /* @__PURE__ */ o.jsx(
|
|
5
|
+
t,
|
|
6
|
+
{
|
|
7
|
+
ref: n,
|
|
8
|
+
align: e,
|
|
9
|
+
sideOffset: r,
|
|
10
|
+
className: f(
|
|
11
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
|
|
12
|
+
a
|
|
13
|
+
),
|
|
14
|
+
...s
|
|
15
|
+
}
|
|
16
|
+
) }));
|
|
17
|
+
l.displayName = t.displayName;
|
|
18
|
+
export {
|
|
19
|
+
u as Popover,
|
|
20
|
+
h as PopoverAnchor,
|
|
21
|
+
l as PopoverContent,
|
|
22
|
+
v as PopoverTrigger
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=popover.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.es.js","sources":["../src/components/ui/popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };\n"],"names":["Popover","PopoverPrimitive.Root","PopoverTrigger","PopoverPrimitive.Trigger","PopoverAnchor","PopoverPrimitive.Anchor","PopoverContent","React","className","align","sideOffset","props","ref","jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","cn"],"mappings":";;;AAKA,MAAMA,IAAUC,GAEVC,IAAiBC,GAEjBC,IAAgBC,GAEhBC,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,EAAA,GAASC,MAC5DC,gBAAAA,EAAAA,IAACC,GAAA,EACC,UAAAD,gBAAAA,EAAAA;AAAAA,EAACE;AAAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,OAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWM;AAAA,MACT;AAAA,MACAR;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,GACF,CACD;AACDL,EAAe,cAAcS,EAAyB;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./vendor-CIyDEr7H.js"),a=require("react"),l=require("./utils-CUFNKXRW.js");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=i(a),s=c.forwardRef(({className:e,value:t,...r},n)=>o.jsxRuntimeExports.jsx(o.Root$4,{ref:n,className:l.cn("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),value:t,...r,children:o.jsxRuntimeExports.jsx(o.Indicator$1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));s.displayName=o.Root$4.displayName;exports.Progress=s;
|
|
2
|
+
//# sourceMappingURL=progress.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.cjs.js","sources":["../src/components/ui/progress.tsx"],"sourcesContent":["import * as ProgressPrimitive from '@radix-ui/react-progress';\nimport * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n className={cn('relative h-2 w-full overflow-hidden rounded-full bg-primary/20', className)}\n value={value}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"h-full w-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n));\nProgress.displayName = ProgressPrimitive.Root.displayName;\n\nexport { Progress };\n"],"names":["Progress","React","className","value","props","ref","jsx","ProgressPrimitive.Root","cn","ProgressPrimitive.Indicator"],"mappings":"scAKMA,EAAWC,EAAM,WAGrB,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGC,GAASC,IACjCC,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GAAG,iEAAkEN,CAAS,EACzF,MAAAC,EACC,GAAGC,EAEJ,SAAAE,EAAAA,kBAAAA,IAACG,EAAAA,YAAA,CACC,UAAU,iDACV,MAAO,CAAE,UAAW,eAAe,KAAON,GAAS,EAAE,IAAA,CAAK,CAAA,CAC5D,CACF,CACD,EACDH,EAAS,YAAcO,EAAAA,OAAuB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { j as r, aC as s, aD as t } from "./vendor-CCQzmGyD.mjs";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { c as m } from "./utils-C9QGdMaH.mjs";
|
|
4
|
+
const f = i.forwardRef(({ className: l, value: a, ...o }, e) => /* @__PURE__ */ r.jsx(
|
|
5
|
+
s,
|
|
6
|
+
{
|
|
7
|
+
ref: e,
|
|
8
|
+
className: m("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", l),
|
|
9
|
+
value: a,
|
|
10
|
+
...o,
|
|
11
|
+
children: /* @__PURE__ */ r.jsx(
|
|
12
|
+
t,
|
|
13
|
+
{
|
|
14
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
15
|
+
style: { transform: `translateX(-${100 - (a || 0)}%)` }
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
));
|
|
20
|
+
f.displayName = s.displayName;
|
|
21
|
+
export {
|
|
22
|
+
f as Progress
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=progress.es.js.map
|