ml-uikit 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button.d.ts +2 -11
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +14 -3
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/button-group.d.ts +1 -0
- package/dist/components/ui/button-group.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/chart.d.ts +1 -1
- package/dist/components/ui/command.d.ts +7 -7
- package/dist/components/ui/empty.d.ts +1 -0
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/input-group.d.ts +2 -2
- package/dist/components/ui/input-otp.d.ts +2 -2
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/item.d.ts +1 -1
- package/dist/components/ui/kbd.d.ts +1 -0
- package/dist/components/ui/kbd.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/sidebar.d.ts +2 -2
- package/dist/components/ui/skeleton.d.ts +1 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/table.d.ts +24 -2
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +2 -2
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/typography.d.ts +171 -0
- package/dist/components/ui/typography.d.ts.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs27.js.map +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs34.js.map +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs35.js.map +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +154 -151
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +31 -24
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es11.js +22 -21
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es2.js +1 -1
- package/dist/index.es23.js +24 -23
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es27.js +13 -9
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es31.js +8 -7
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es33.js +91 -189
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +165 -71
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +85 -84
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +92 -17
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +19 -21
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +16 -21
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +16 -21
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es40.js +25 -104
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +111 -20
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +19 -97
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +77 -509
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +526 -9
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +15 -18
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +18 -22
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +19 -12
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +13 -22
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +17 -80
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es50.js +186 -28
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +38 -10
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +13 -29
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +30 -34
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +37 -19
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +18 -41
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es8.js +71 -20
- package/dist/index.es8.js.map +1 -1
- package/dist/style.css +421 -34
- package/package.json +17 -3
package/dist/index.cjs10.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),p=require("@radix-ui/react-slot"),b=require("class-variance-authority"),v=require("./index.cjs56.js");function m(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=m(g),o="bg-primary text-primary-foreground hover:bg-primary/90",f="bg-secondary text-secondary-foreground hover:bg-secondary/80",y="border border-primary bg-background text-primary hover:bg-primary/10",a="border border-input bg-background text-foreground hover:bg-muted",h="bg-transparent text-foreground hover:bg-muted",x="bg-destructive text-destructive-foreground hover:bg-destructive/90",_="text-primary underline-offset-4 hover:underline",s=b.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:o,primary:o,secondary:f,"outline-primary":y,"outline-neutral":a,outline:a,ghost:h,destructive:x,link:_},size:{default:"h-9 px-4 text-sm [&_svg]:size-4",lg:"h-10 px-5 text-sm [&_svg]:size-5",sm:"h-8 px-3 text-xs [&_svg]:size-3.5",mini:"h-7 px-2 text-[10px] leading-4 [&_svg]:size-3",icon:"h-9 w-9 p-0 [&_svg]:size-4","icon-lg":"h-10 w-10 p-0 [&_svg]:size-5","icon-sm":"h-8 w-8 p-0 [&_svg]:size-3.5","icon-mini":"h-7 w-7 p-0 [&_svg]:size-3"}},defaultVariants:{variant:"default",size:"default"}}),c=i.forwardRef(({className:e,variant:r,size:t,asChild:n=!1,...u},d)=>{const l=n?p.Slot:"button";return i.createElement(l,{className:v.cn(s({variant:r,size:t,className:e})),ref:d,...u})});c.displayName="Button";exports.Button=c;exports.buttonVariants=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs10.js.map
|
package/dist/index.cjs10.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs10.js","sources":["../src/components/ui/button.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md
|
|
1
|
+
{"version":3,"file":"index.cjs10.js","sources":["../src/components/ui/button.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst primaryVariant = \"bg-primary text-primary-foreground hover:bg-primary/90\"\nconst secondaryVariant =\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\"\nconst outlinePrimaryVariant =\n \"border border-primary bg-background text-primary hover:bg-primary/10\"\nconst outlineNeutralVariant =\n \"border border-input bg-background text-foreground hover:bg-muted\"\nconst ghostVariant = \"bg-transparent text-foreground hover:bg-muted\"\nconst destructiveVariant =\n \"bg-destructive text-destructive-foreground hover:bg-destructive/90\"\nconst linkVariant = \"text-primary underline-offset-4 hover:underline\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: primaryVariant,\n primary: primaryVariant,\n secondary: secondaryVariant,\n \"outline-primary\": outlinePrimaryVariant,\n \"outline-neutral\": outlineNeutralVariant,\n outline: outlineNeutralVariant,\n ghost: ghostVariant,\n destructive: destructiveVariant,\n link: linkVariant,\n },\n size: {\n default: \"h-9 px-4 text-sm [&_svg]:size-4\",\n lg: \"h-10 px-5 text-sm [&_svg]:size-5\",\n sm: \"h-8 px-3 text-xs [&_svg]:size-3.5\",\n mini: \"h-7 px-2 text-[10px] leading-4 [&_svg]:size-3\",\n icon: \"h-9 w-9 p-0 [&_svg]:size-4\",\n \"icon-lg\": \"h-10 w-10 p-0 [&_svg]:size-5\",\n \"icon-sm\": \"h-8 w-8 p-0 [&_svg]:size-3.5\",\n \"icon-mini\": \"h-7 w-7 p-0 [&_svg]:size-3\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n )\n }\n)\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n"],"names":["primaryVariant","secondaryVariant","outlinePrimaryVariant","outlineNeutralVariant","ghostVariant","destructiveVariant","linkVariant","buttonVariants","cva","Button","React","className","variant","size","asChild","props","ref","Comp","Slot","cn"],"mappings":"yeAMMA,EAAiB,yDACjBC,EACJ,+DACIC,EACJ,uEACIC,EACJ,mEACIC,EAAe,gDACfC,EACJ,qEACIC,EAAc,kDAEdC,EAAiBC,EAAAA,IACrB,4UACA,CACE,SAAU,CACR,QAAS,CACP,QAASR,EACT,QAASA,EACT,UAAWC,EACX,kBAAmBC,EACnB,kBAAmBC,EACnB,QAASA,EACT,MAAOC,EACP,YAAaC,EACb,KAAMC,CAAA,EAER,KAAM,CACJ,QAAS,kCACT,GAAI,mCACJ,GAAI,oCACJ,KAAM,gDACN,KAAM,6BACN,UAAW,+BACX,UAAW,+BACX,YAAa,4BAAA,CACf,EAEF,gBAAiB,CACf,QAAS,UACT,KAAM,SAAA,CACR,CAEJ,EAQMG,EAASC,EAAM,WACnB,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,QAAAC,EAAU,GAAO,GAAGC,CAAA,EAASC,IAAQ,CAChE,MAAMC,EAAOH,EAAUI,EAAAA,KAAO,SAC9B,OACER,EAAA,cAACO,EAAA,CACC,UAAWE,EAAAA,GAAGZ,EAAe,CAAE,QAAAK,EAAS,KAAAC,EAAM,UAAAF,CAAA,CAAW,CAAC,EAC1D,IAAAK,EACC,GAAGD,CAAA,CAAA,CAGV,CACF,EACAN,EAAO,YAAc"}
|
package/dist/index.cjs11.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),u=require("@radix-ui/react-slot"),l=require("class-variance-authority"),n=require("./index.cjs56.js"),c=require("./index.cjs42.js");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const a=d(i),s=l.cva("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function p({className:t,orientation:e,...r}){return a.createElement("div",{role:"group","data-slot":"button-group","data-orientation":e,className:n.cn(s({orientation:e}),t),...r})}function f({className:t,asChild:e=!1,...r}){const o=e?u.Slot:"div";return a.createElement(o,{className:n.cn("bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",t),...r})}function b({className:t,orientation:e="vertical",...r}){return a.createElement(c.Separator,{"data-slot":"button-group-separator",orientation:e,className:n.cn("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",t),...r})}exports.ButtonGroup=p;exports.ButtonGroupSeparator=b;exports.ButtonGroupText=f;exports.buttonGroupVariants=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs11.js.map
|
package/dist/index.cjs11.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs11.js","sources":["../src/components/ui/button-group.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Separator } from \"@/components/ui/separator\"\n\nconst buttonGroupVariants = cva(\n \"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n {\n variants: {\n orientation: {\n horizontal:\n \"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\n vertical:\n \"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n }\n)\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n )\n}\n\nfunction ButtonGroupText({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<\"div\"> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot : \"div\"\n\n return (\n <Comp\n className={cn(\n \"bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n \"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n ButtonGroup,\n ButtonGroupSeparator,\n ButtonGroupText,\n buttonGroupVariants,\n}\n"],"names":["buttonGroupVariants","cva","ButtonGroup","className","orientation","props","cn","ButtonGroupText","asChild","Comp","Slot","ButtonGroupSeparator","Separator"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs11.js","sources":["../src/components/ui/button-group.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Separator } from \"@/components/ui/separator\"\n\nconst buttonGroupVariants = cva(\n \"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n {\n variants: {\n orientation: {\n horizontal:\n \"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\n vertical:\n \"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n }\n)\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n )\n}\n\nfunction ButtonGroupText({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<\"div\"> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot : \"div\"\n\n return (\n <Comp\n className={cn(\n \"bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n \"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n ButtonGroup,\n ButtonGroupSeparator,\n ButtonGroupText,\n buttonGroupVariants,\n}\n"],"names":["buttonGroupVariants","cva","ButtonGroup","className","orientation","props","React","cn","ButtonGroupText","asChild","Comp","Slot","ButtonGroupSeparator","Separator"],"mappings":"ugBAOMA,EAAsBC,EAAAA,IAC1B,mSACA,CACE,SAAU,CACR,YAAa,CACX,WACE,kHACF,SACE,0HAAA,CACJ,EAEF,gBAAiB,CACf,YAAa,YAAA,CACf,CAEJ,EAEA,SAASC,EAAY,CACnB,UAAAC,EACA,YAAAC,EACA,GAAGC,CACL,EAA2E,CACzE,OACEC,EAAA,cAAC,MAAA,CACC,KAAK,QACL,YAAU,eACV,mBAAkBF,EAClB,UAAWG,EAAAA,GAAGP,EAAoB,CAAE,YAAAI,CAAA,CAAa,EAAGD,CAAS,EAC5D,GAAGE,CAAA,CAAA,CAGV,CAEA,SAASG,EAAgB,CACvB,UAAAL,EACA,QAAAM,EAAU,GACV,GAAGJ,CACL,EAEG,CACD,MAAMK,EAAOD,EAAUE,EAAAA,KAAO,MAE9B,OACEL,EAAA,cAACI,EAAA,CACC,UAAWH,EAAAA,GACT,yJACAJ,CAAA,EAED,GAAGE,CAAA,CAAA,CAGV,CAEA,SAASO,EAAqB,CAC5B,UAAAT,EACA,YAAAC,EAAc,WACd,GAAGC,CACL,EAA2C,CACzC,OACEC,EAAA,cAACO,EAAAA,UAAA,CACC,YAAU,yBACV,YAAAT,EACA,UAAWG,EAAAA,GACT,yEACAJ,CAAA,EAED,GAAGE,CAAA,CAAA,CAGV"}
|
package/dist/index.cjs2.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./index.cjs27.js"),r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./index.cjs27.js"),r=require("./index.cjs10.js");function n(){return e.createElement("div",{className:"border p-4 flex gap-4 rounded-md flex-col"},e.createElement(t.Input,{type:"email",placeholder:"Email"}),e.createElement(t.Input,{type:"password",placeholder:"Password"}),e.createElement(r.Button,null,"Login"))}exports.Login=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs2.js.map
|
package/dist/index.cjs23.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),s=require("class-variance-authority"),a=require("./index.cjs56.js");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=l(i);function o({className:e,...t}){return r.createElement("div",{"data-slot":"empty",className:a.cn("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",e),...t})}function m({className:e,...t}){return r.createElement("div",{"data-slot":"empty-header",className:a.cn("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}const d=s.cva("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function u({className:e,variant:t="default",...n}){return r.createElement("div",{"data-slot":"empty-icon","data-variant":t,className:a.cn(d({variant:t,className:e})),...n})}function f({className:e,...t}){return r.createElement("div",{"data-slot":"empty-title",className:a.cn("text-lg font-medium tracking-tight",e),...t})}function p({className:e,...t}){return r.createElement("div",{"data-slot":"empty-description",className:a.cn("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e),...t})}function y({className:e,...t}){return r.createElement("div",{"data-slot":"empty-content",className:a.cn("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",e),...t})}exports.Empty=o;exports.EmptyContent=y;exports.EmptyDescription=p;exports.EmptyHeader=m;exports.EmptyMedia=u;exports.EmptyTitle=f;
|
|
2
2
|
//# sourceMappingURL=index.cjs23.js.map
|
package/dist/index.cjs23.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs23.js","sources":["../src/components/ui/empty.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Empty({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty\"\n className={cn(\n \"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction EmptyHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-header\"\n className={cn(\n \"flex max-w-sm flex-col items-center gap-2 text-center\",\n className\n )}\n {...props}\n />\n )\n}\n\nconst emptyMediaVariants = cva(\n \"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n icon: \"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction EmptyMedia({\n className,\n variant = \"default\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof emptyMediaVariants>) {\n return (\n <div\n data-slot=\"empty-icon\"\n data-variant={variant}\n className={cn(emptyMediaVariants({ variant, className }))}\n {...props}\n />\n )\n}\n\nfunction EmptyTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-title\"\n className={cn(\"text-lg font-medium tracking-tight\", className)}\n {...props}\n />\n )\n}\n\nfunction EmptyDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return (\n <div\n data-slot=\"empty-description\"\n className={cn(\n \"text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction EmptyContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-content\"\n className={cn(\n \"flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n Empty,\n EmptyHeader,\n EmptyTitle,\n EmptyDescription,\n EmptyContent,\n EmptyMedia,\n}\n"],"names":["Empty","className","props","cn","EmptyHeader","emptyMediaVariants","cva","EmptyMedia","variant","EmptyTitle","EmptyDescription","EmptyContent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs23.js","sources":["../src/components/ui/empty.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Empty({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty\"\n className={cn(\n \"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction EmptyHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-header\"\n className={cn(\n \"flex max-w-sm flex-col items-center gap-2 text-center\",\n className\n )}\n {...props}\n />\n )\n}\n\nconst emptyMediaVariants = cva(\n \"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n icon: \"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction EmptyMedia({\n className,\n variant = \"default\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof emptyMediaVariants>) {\n return (\n <div\n data-slot=\"empty-icon\"\n data-variant={variant}\n className={cn(emptyMediaVariants({ variant, className }))}\n {...props}\n />\n )\n}\n\nfunction EmptyTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-title\"\n className={cn(\"text-lg font-medium tracking-tight\", className)}\n {...props}\n />\n )\n}\n\nfunction EmptyDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return (\n <div\n data-slot=\"empty-description\"\n className={cn(\n \"text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction EmptyContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"empty-content\"\n className={cn(\n \"flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n Empty,\n EmptyHeader,\n EmptyTitle,\n EmptyDescription,\n EmptyContent,\n EmptyMedia,\n}\n"],"names":["Empty","className","props","React","cn","EmptyHeader","emptyMediaVariants","cva","EmptyMedia","variant","EmptyTitle","EmptyDescription","EmptyContent"],"mappings":"ucAKA,SAASA,EAAM,CAAE,UAAAC,EAAW,GAAGC,GAAsC,CACnE,OACEC,EAAA,cAAC,MAAA,CACC,YAAU,QACV,UAAWC,EAAAA,GACT,+HACAH,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASG,EAAY,CAAE,UAAAJ,EAAW,GAAGC,GAAsC,CACzE,OACEC,EAAA,cAAC,MAAA,CACC,YAAU,eACV,UAAWC,EAAAA,GACT,wDACAH,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,MAAMI,EAAqBC,EAAAA,IACzB,8FACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,KAAM,4HAAA,CACR,EAEF,gBAAiB,CACf,QAAS,SAAA,CACX,CAEJ,EAEA,SAASC,EAAW,CAClB,UAAAP,EACA,QAAAQ,EAAU,UACV,GAAGP,CACL,EAA0E,CACxE,OACEC,EAAA,cAAC,MAAA,CACC,YAAU,aACV,eAAcM,EACd,UAAWL,EAAAA,GAAGE,EAAmB,CAAE,QAAAG,EAAS,UAAAR,CAAA,CAAW,CAAC,EACvD,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASQ,EAAW,CAAE,UAAAT,EAAW,GAAGC,GAAsC,CACxE,OACEC,EAAA,cAAC,MAAA,CACC,YAAU,cACV,UAAWC,EAAAA,GAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASS,EAAiB,CAAE,UAAAV,EAAW,GAAGC,GAAoC,CAC5E,OACEC,EAAA,cAAC,MAAA,CACC,YAAU,oBACV,UAAWC,EAAAA,GACT,0GACAH,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASU,EAAa,CAAE,UAAAX,EAAW,GAAGC,GAAsC,CAC1E,OACEC,EAAA,cAAC,MAAA,CACC,YAAU,gBACV,UAAWC,EAAAA,GACT,gFACAH,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV"}
|
package/dist/index.cjs24.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),s=require("class-variance-authority"),l=require("./index.cjs56.js"),c=require("./index.cjs32.js"),u=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),s=require("class-variance-authority"),l=require("./index.cjs56.js"),c=require("./index.cjs32.js"),u=require("./index.cjs42.js");function f({className:t,...e}){return React.createElement("fieldset",{"data-slot":"field-set",className:l.cn("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",t),...e})}function m({className:t,variant:e="legend",...a}){return React.createElement("legend",{"data-slot":"field-legend","data-variant":e,className:l.cn("mb-3 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",t),...a})}function p({className:t,...e}){return React.createElement("div",{"data-slot":"field-group",className:l.cn("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",t),...e})}const g=s.cva("group/field data-[invalid=true]:text-destructive flex w-full gap-3",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"],responsive:["@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function x({className:t,orientation:e="vertical",...a}){return React.createElement("div",{role:"group","data-slot":"field","data-orientation":e,className:l.cn(g({orientation:e}),t),...a})}function b({className:t,...e}){return React.createElement("div",{"data-slot":"field-content",className:l.cn("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",t),...e})}function h({className:t,...e}){return React.createElement(c.Label,{"data-slot":"field-label",className:l.cn("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",t),...e})}function v({className:t,...e}){return React.createElement("div",{"data-slot":"field-label",className:l.cn("flex w-fit items-center gap-2 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50",t),...e})}function F({className:t,...e}){return React.createElement("p",{"data-slot":"field-description",className:l.cn("text-muted-foreground text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance","nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",t),...e})}function E({children:t,className:e,...a}){return React.createElement("div",{"data-slot":"field-separator","data-content":!!t,className:l.cn("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",e),...a},React.createElement(u.Separator,{className:"absolute inset-0 top-1/2"}),t&&React.createElement("span",{className:"bg-background text-muted-foreground relative mx-auto block w-fit px-2","data-slot":"field-separator-content"},t))}function R({className:t,children:e,errors:a,...i}){const r=n.useMemo(()=>e||(a?a?.length===1&&a[0]?.message?a[0].message:React.createElement("ul",{className:"ml-4 flex list-disc flex-col gap-1"},a.map((o,d)=>o?.message&&React.createElement("li",{key:d},o.message))):null),[e,a]);return r?React.createElement("div",{role:"alert","data-slot":"field-error",className:l.cn("text-destructive text-sm font-normal",t),...i},r):null}exports.Field=x;exports.FieldContent=b;exports.FieldDescription=F;exports.FieldError=R;exports.FieldGroup=p;exports.FieldLabel=h;exports.FieldLegend=m;exports.FieldSeparator=E;exports.FieldSet=f;exports.FieldTitle=v;
|
|
2
2
|
//# sourceMappingURL=index.cjs24.js.map
|
package/dist/index.cjs27.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),a=require("./index.cjs56.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=d(n),l=o.forwardRef(({className:e,type:r,...t},i)=>o.createElement("input",{type:r,className:a.cn("flex h-10 w-full rounded-[8px] border border-[#e6e6e6] bg-white px-3 py-2 text-[14px] leading-[20px] text-foreground transition-colors","file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground","placeholder:text-[#b3b3b3] focus-visible:outline-none focus-visible:border-[#111111] focus-visible:ring-0","disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:text-[#9ca3af] disabled:placeholder:text-[#b3b3b3] disabled:opacity-100","aria-invalid:border-[#ff3b30] aria-invalid:focus-visible:border-[#ff3b30]",e),ref:i,...t}));l.displayName="Input";exports.Input=l;
|
|
2
2
|
//# sourceMappingURL=index.cjs27.js.map
|
package/dist/index.cjs27.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs27.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-
|
|
1
|
+
{"version":3,"file":"index.cjs27.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-10 w-full rounded-[8px] border border-[#e6e6e6] bg-white px-3 py-2 text-[14px] leading-[20px] text-foreground transition-colors\",\n \"file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground\",\n \"placeholder:text-[#b3b3b3] focus-visible:outline-none focus-visible:border-[#111111] focus-visible:ring-0\",\n \"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:text-[#9ca3af] disabled:placeholder:text-[#b3b3b3] disabled:opacity-100\",\n \"aria-invalid:border-[#ff3b30] aria-invalid:focus-visible:border-[#ff3b30]\",\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","cn"],"mappings":"iaAIMA,EAAQC,EAAM,WAClB,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAM,GAAGC,CAAA,EAASC,IAE5BJ,EAAA,cAAC,QAAA,CACC,KAAAE,EACA,UAAWG,EAAAA,GACT,yIACA,uFACA,4GACA,qIACA,4EACAJ,CAAA,EAEF,IAAAG,EACC,GAAGD,CAAA,CAAA,CAIZ,EACAJ,EAAM,YAAc"}
|
package/dist/index.cjs28.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),s=require("class-variance-authority"),a=require("./index.cjs56.js"),p=require("./index.cjs10.js"),l=require("./index.cjs27.js"),d=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),s=require("class-variance-authority"),a=require("./index.cjs56.js"),p=require("./index.cjs10.js"),l=require("./index.cjs27.js"),d=require("./index.cjs52.js");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const o=c(i);function g({className:t,...e}){return o.createElement("div",{"data-slot":"input-group",role:"group",className:a.cn("group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]","h-9 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:ring-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",t),...e})}const b=s.cva("text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.4rem] has-[>kbd]:mr-[-0.35rem]","block-start":"[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5","block-end":"[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function f({className:t,align:e="inline-start",...n}){return o.createElement("div",{role:"group","data-slot":"input-group-addon","data-align":e,className:a.cn(b({align:e}),t),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...n})}const m=s.cva("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function h({className:t,type:e="button",variant:n="ghost",size:r="xs",...u}){return o.createElement(p.Button,{type:e,"data-size":r,variant:n,className:a.cn(m({size:r}),t),...u})}function x({className:t,...e}){return o.createElement("span",{className:a.cn("text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",t),...e})}function v({className:t,...e}){return o.createElement(l.Input,{"data-slot":"input-group-control",className:a.cn("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",t),...e})}function k({className:t,...e}){return o.createElement(d.Textarea,{"data-slot":"input-group-control",className:a.cn("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",t),...e})}exports.InputGroup=g;exports.InputGroupAddon=f;exports.InputGroupButton=h;exports.InputGroupInput=v;exports.InputGroupText=x;exports.InputGroupTextarea=k;
|
|
2
2
|
//# sourceMappingURL=index.cjs28.js.map
|
package/dist/index.cjs30.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),m=require("@radix-ui/react-slot"),o=require("class-variance-authority"),a=require("./index.cjs56.js"),u=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),m=require("@radix-ui/react-slot"),o=require("class-variance-authority"),a=require("./index.cjs56.js"),u=require("./index.cjs42.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=d(c);function f({className:e,...t}){return n.createElement("div",{role:"list","data-slot":"item-group",className:a.cn("group/item-group flex flex-col",e),...t})}function p({className:e,...t}){return n.createElement(u.Separator,{"data-slot":"item-separator",orientation:"horizontal",className:a.cn("my-0",e),...t})}const g=o.cva("group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 [a]:transition-colors flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",{variants:{variant:{default:"bg-transparent",outline:"border-border",muted:"bg-muted/50"},size:{default:"gap-4 p-4 ",sm:"gap-2.5 px-4 py-3"}},defaultVariants:{variant:"default",size:"default"}});function b({className:e,variant:t="default",size:r="default",asChild:i=!1,...s}){const l=i?m.Slot:"div";return n.createElement(l,{"data-slot":"item","data-variant":t,"data-size":r,className:a.cn(g({variant:t,size:r,className:e})),...s})}const v=o.cva("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function x({className:e,variant:t="default",...r}){return n.createElement("div",{"data-slot":"item-media","data-variant":t,className:a.cn(v({variant:t,className:e})),...r})}function I({className:e,...t}){return n.createElement("div",{"data-slot":"item-content",className:a.cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),...t})}function y({className:e,...t}){return n.createElement("div",{"data-slot":"item-title",className:a.cn("flex w-fit items-center gap-2 text-sm font-medium leading-snug",e),...t})}function N({className:e,...t}){return n.createElement("p",{"data-slot":"item-description",className:a.cn("text-muted-foreground line-clamp-2 text-balance text-sm font-normal leading-normal","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function E({className:e,...t}){return n.createElement("div",{"data-slot":"item-actions",className:a.cn("flex items-center gap-2",e),...t})}function h({className:e,...t}){return n.createElement("div",{"data-slot":"item-header",className:a.cn("flex basis-full items-center justify-between gap-2",e),...t})}function j({className:e,...t}){return n.createElement("div",{"data-slot":"item-footer",className:a.cn("flex basis-full items-center justify-between gap-2",e),...t})}exports.Item=b;exports.ItemActions=E;exports.ItemContent=I;exports.ItemDescription=N;exports.ItemFooter=j;exports.ItemGroup=f;exports.ItemHeader=h;exports.ItemMedia=x;exports.ItemSeparator=p;exports.ItemTitle=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs30.js.map
|
package/dist/index.cjs31.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),r=require("./index.cjs56.js");function s(t){const e=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(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const a=s(c);function i({className:t,...e}){return a.createElement("kbd",{"data-slot":"kbd",className:r.cn("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",t),...e})}function u({className:t,...e}){return a.createElement("kbd",{"data-slot":"kbd-group",className:r.cn("inline-flex items-center gap-1",t),...e})}exports.Kbd=i;exports.KbdGroup=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs31.js.map
|
package/dist/index.cjs31.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs31.js","sources":["../src/components/ui/kbd.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\"\n\nfunction Kbd({ className, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <kbd\n data-slot=\"kbd\"\n className={cn(\n \"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium\",\n \"[&_svg:not([class*='size-'])]:size-3\",\n \"[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction KbdGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <kbd\n data-slot=\"kbd-group\"\n className={cn(\"inline-flex items-center gap-1\", className)}\n {...props}\n />\n )\n}\n\nexport { Kbd, KbdGroup }\n"],"names":["Kbd","className","props","cn","KbdGroup"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs31.js","sources":["../src/components/ui/kbd.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nfunction Kbd({ className, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <kbd\n data-slot=\"kbd\"\n className={cn(\n \"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium\",\n \"[&_svg:not([class*='size-'])]:size-3\",\n \"[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction KbdGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <kbd\n data-slot=\"kbd-group\"\n className={cn(\"inline-flex items-center gap-1\", className)}\n {...props}\n />\n )\n}\n\nexport { Kbd, KbdGroup }\n"],"names":["Kbd","className","props","React","cn","KbdGroup"],"mappings":"iaAGA,SAASA,EAAI,CAAE,UAAAC,EAAW,GAAGC,GAAsC,CACjE,OACEC,EAAA,cAAC,MAAA,CACC,YAAU,MACV,UAAWC,EAAAA,GACT,+KACA,uCACA,yJACAH,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASG,EAAS,CAAE,UAAAJ,EAAW,GAAGC,GAAsC,CACtE,OACEC,EAAA,cAAC,MAAA,CACC,YAAU,YACV,UAAWC,EAAAA,GAAG,iCAAkCH,CAAS,EACxD,GAAGC,CAAA,CAAA,CAGV"}
|
package/dist/index.cjs33.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),x=require("./index.cjs56.js");function u(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const m=u(b),y={title:"text-[48px] leading-[64px]",h1:"text-[40px] leading-[56px]",h2:"text-[32px] leading-[48px]",h3:"text-[24px] leading-[40px]",h4:"text-[20px] leading-[32px]","2xl":"text-[24px] leading-[40px]",xl:"text-[20px] leading-[32px]",l:"text-[16px] leading-[24px]",base:"text-[14px] leading-[20px]",s:"text-[12px] leading-[16px]",xs:"text-[10px] leading-[16px]"},c={bold:"font-bold",semibold:"font-semibold",medium:"font-medium",regular:"font-normal",light:"font-light"},d={title:{size:"title",weight:"bold",element:"h1"},h1:{size:"h1",weight:"semibold",element:"h1"},h2:{size:"h2",weight:"semibold",element:"h2"},h3:{size:"h3",weight:"semibold",element:"h3"},h4:{size:"h4",weight:"semibold",element:"h4"},"body-2xl-semibold":{size:"2xl",weight:"semibold",element:"p"},"body-2xl-medium":{size:"2xl",weight:"medium",element:"p"},"body-2xl-regular":{size:"2xl",weight:"regular",element:"p"},"body-xl-semibold":{size:"xl",weight:"semibold",element:"p"},"body-xl-medium":{size:"xl",weight:"medium",element:"p"},"body-xl-regular":{size:"xl",weight:"regular",element:"p"},"body-l-semibold":{size:"l",weight:"semibold",element:"p"},"body-l-medium":{size:"l",weight:"medium",element:"p"},"body-l-regular":{size:"l",weight:"regular",element:"p"},"body-l-light":{size:"l",weight:"light",element:"p"},"body-base-semibold":{size:"base",weight:"semibold",element:"p"},"body-base-medium":{size:"base",weight:"medium",element:"p"},"body-base-regular":{size:"base",weight:"regular",element:"p"},"body-base-light":{size:"base",weight:"light",element:"p"},"body-s-semibold":{size:"s",weight:"semibold",element:"p"},"body-s-medium":{size:"s",weight:"medium",element:"p"},"body-s-regular":{size:"s",weight:"regular",element:"p"},"body-s-light":{size:"s",weight:"light",element:"p"},"body-xs-semibold":{size:"xs",weight:"semibold",element:"p"},"body-xs-medium":{size:"xs",weight:"medium",element:"p"},"body-xs-regular":{size:"xs",weight:"regular",element:"p"},"body-xs-light":{size:"xs",weight:"light",element:"p"}},w={title:"bold",h1:"semibold",h2:"semibold",h3:"semibold",h4:"semibold","2xl":"regular",xl:"regular",l:"regular",base:"regular",s:"regular",xs:"regular"},z={title:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4","2xl":"p",xl:"p",l:"p",base:"p",s:"p",xs:"p"},n=m.forwardRef(({size:e,weight:l,variant:t,as:i,className:g,...a},r)=>{const s=t?d[t]:null,o=e??s?.size??"base",h=l??s?.weight??w[o],p=i??s?.element??z[o];return m.createElement(p,{ref:r,className:x.cn("text-foreground font-sans",y[o],c[h],g),...a})});n.displayName="Typography";exports.Typography=n;exports.typographyVariants=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs33.js.map
|
package/dist/index.cjs33.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs33.js","sources":["../src/components/ui/menubar.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\"\nimport { Check, ChevronRight, Circle } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction MenubarMenu({\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Menu>) {\n return <MenubarPrimitive.Menu {...props} />\n}\n\nfunction MenubarGroup({\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n return <MenubarPrimitive.Group {...props} />\n}\n\nfunction MenubarPortal({\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n return <MenubarPrimitive.Portal {...props} />\n}\n\nfunction MenubarRadioGroup({\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n return <MenubarPrimitive.RadioGroup {...props} />\n}\n\nfunction MenubarSub({\n ...props\n}: 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(\n \"flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm\",\n className\n )}\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>(\n (\n { className, align = \"start\", alignOffset = -4, sideOffset = 8, ...props },\n ref\n ) => (\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 )\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(\n \"px-2 py-1.5 text-sm font-semibold\",\n inset && \"pl-8\",\n className\n )}\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\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n))\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName\n\nconst MenubarShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className\n )}\n {...props}\n />\n )\n}\nMenubarShortcut.displayname = \"MenubarShortcut\"\n\nexport {\n Menubar,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarSeparator,\n MenubarLabel,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarPortal,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarGroup,\n MenubarSub,\n MenubarShortcut,\n}\n"],"names":["MenubarMenu","props","React","MenubarPrimitive","MenubarGroup","MenubarPortal","MenubarRadioGroup","MenubarSub","Menubar","className","ref","cn","MenubarTrigger","MenubarSubTrigger","inset","children","ChevronRight","MenubarSubContent","MenubarContent","align","alignOffset","sideOffset","MenubarItem","MenubarCheckboxItem","checked","Check","MenubarRadioItem","Circle","MenubarLabel","MenubarSeparator","MenubarShortcut"],"mappings":"ueAMA,SAASA,EAAY,CACnB,GAAGC,CACL,EAAuD,CACrD,OAAOC,EAAA,cAACC,EAAiB,KAAjB,CAAuB,GAAGF,EAAO,CAC3C,CAEA,SAASG,EAAa,CACpB,GAAGH,CACL,EAAwD,CACtD,OAAOC,EAAA,cAACC,EAAiB,MAAjB,CAAwB,GAAGF,EAAO,CAC5C,CAEA,SAASI,EAAc,CACrB,GAAGJ,CACL,EAAyD,CACvD,OAAOC,EAAA,cAACC,EAAiB,OAAjB,CAAyB,GAAGF,EAAO,CAC7C,CAEA,SAASK,EAAkB,CACzB,GAAGL,CACL,EAA6D,CAC3D,OAAOC,EAAA,cAACC,EAAiB,WAAjB,CAA6B,GAAGF,EAAO,CACjD,CAEA,SAASM,EAAW,CAClB,GAAGN,CACL,EAAsD,CACpD,uBAAQE,EAAiB,IAAjB,CAAqB,YAAU,cAAe,GAAGF,EAAO,CAClE,CAEA,MAAMO,EAAUN,EAAM,WAGpB,CAAC,CAAE,UAAAO,EAAW,GAAGR,CAAA,EAASS,IAC1BR,EAAA,cAACC,EAAiB,KAAjB,CACC,IAAAO,EACA,UAAWC,EAAAA,GACT,gFACAF,CAAA,EAED,GAAGR,CAAA,CACN,CACD,EACDO,EAAQ,YAAcL,EAAiB,KAAK,YAE5C,MAAMS,EAAiBV,EAAM,WAG3B,CAAC,CAAE,UAAAO,EAAW,GAAGR,CAAA,EAASS,IAC1BR,EAAA,cAACC,EAAiB,QAAjB,CACC,IAAAO,EACA,UAAWC,EAAAA,GACT,uNACAF,CAAA,EAED,GAAGR,CAAA,CACN,CACD,EACDW,EAAe,YAAcT,EAAiB,QAAQ,YAEtD,MAAMU,EAAoB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MAAM2B,EAAkB,CAAC,CACvB,UAAArB,EACA,GAAGR,CACL,IAEIC,EAAA,cAAC,OAAA,CACC,UAAWS,EAAAA,GACT,wDACAF,CAAA,EAED,GAAGR,CAAA,CAAA,EAIV6B,EAAgB,YAAc"}
|
|
1
|
+
{"version":3,"file":"index.cjs33.js","sources":["../src/components/ui/typography.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst sizeClasses = {\n title: \"text-[48px] leading-[64px]\",\n h1: \"text-[40px] leading-[56px]\",\n h2: \"text-[32px] leading-[48px]\",\n h3: \"text-[24px] leading-[40px]\",\n h4: \"text-[20px] leading-[32px]\",\n \"2xl\": \"text-[24px] leading-[40px]\",\n xl: \"text-[20px] leading-[32px]\",\n l: \"text-[16px] leading-[24px]\",\n base: \"text-[14px] leading-[20px]\",\n s: \"text-[12px] leading-[16px]\",\n xs: \"text-[10px] leading-[16px]\",\n} as const\n\nconst weightClasses = {\n bold: \"font-bold\",\n semibold: \"font-semibold\",\n medium: \"font-medium\",\n regular: \"font-normal\",\n light: \"font-light\",\n} as const\n\ntype TypographySize = keyof typeof sizeClasses\ntype TypographyWeight = keyof typeof weightClasses\n\nconst typographyVariants = {\n title: { size: \"title\", weight: \"bold\", element: \"h1\" },\n h1: { size: \"h1\", weight: \"semibold\", element: \"h1\" },\n h2: { size: \"h2\", weight: \"semibold\", element: \"h2\" },\n h3: { size: \"h3\", weight: \"semibold\", element: \"h3\" },\n h4: { size: \"h4\", weight: \"semibold\", element: \"h4\" },\n \"body-2xl-semibold\": { size: \"2xl\", weight: \"semibold\", element: \"p\" },\n \"body-2xl-medium\": { size: \"2xl\", weight: \"medium\", element: \"p\" },\n \"body-2xl-regular\": { size: \"2xl\", weight: \"regular\", element: \"p\" },\n \"body-xl-semibold\": { size: \"xl\", weight: \"semibold\", element: \"p\" },\n \"body-xl-medium\": { size: \"xl\", weight: \"medium\", element: \"p\" },\n \"body-xl-regular\": { size: \"xl\", weight: \"regular\", element: \"p\" },\n \"body-l-semibold\": { size: \"l\", weight: \"semibold\", element: \"p\" },\n \"body-l-medium\": { size: \"l\", weight: \"medium\", element: \"p\" },\n \"body-l-regular\": { size: \"l\", weight: \"regular\", element: \"p\" },\n \"body-l-light\": { size: \"l\", weight: \"light\", element: \"p\" },\n \"body-base-semibold\": { size: \"base\", weight: \"semibold\", element: \"p\" },\n \"body-base-medium\": { size: \"base\", weight: \"medium\", element: \"p\" },\n \"body-base-regular\": { size: \"base\", weight: \"regular\", element: \"p\" },\n \"body-base-light\": { size: \"base\", weight: \"light\", element: \"p\" },\n \"body-s-semibold\": { size: \"s\", weight: \"semibold\", element: \"p\" },\n \"body-s-medium\": { size: \"s\", weight: \"medium\", element: \"p\" },\n \"body-s-regular\": { size: \"s\", weight: \"regular\", element: \"p\" },\n \"body-s-light\": { size: \"s\", weight: \"light\", element: \"p\" },\n \"body-xs-semibold\": { size: \"xs\", weight: \"semibold\", element: \"p\" },\n \"body-xs-medium\": { size: \"xs\", weight: \"medium\", element: \"p\" },\n \"body-xs-regular\": { size: \"xs\", weight: \"regular\", element: \"p\" },\n \"body-xs-light\": { size: \"xs\", weight: \"light\", element: \"p\" },\n} as const\n\ntype TypographyVariant = keyof typeof typographyVariants\n\nconst defaultWeights: Record<TypographySize, TypographyWeight> = {\n title: \"bold\",\n h1: \"semibold\",\n h2: \"semibold\",\n h3: \"semibold\",\n h4: \"semibold\",\n \"2xl\": \"regular\",\n xl: \"regular\",\n l: \"regular\",\n base: \"regular\",\n s: \"regular\",\n xs: \"regular\",\n}\n\nconst defaultElements: Record<TypographySize, React.ElementType> = {\n title: \"h1\",\n h1: \"h1\",\n h2: \"h2\",\n h3: \"h3\",\n h4: \"h4\",\n \"2xl\": \"p\",\n xl: \"p\",\n l: \"p\",\n base: \"p\",\n s: \"p\",\n xs: \"p\",\n}\n\ninterface TypographyProps extends React.HTMLAttributes<HTMLElement> {\n size?: TypographySize\n weight?: TypographyWeight\n variant?: TypographyVariant\n as?: React.ElementType\n}\n\nconst Typography = React.forwardRef<HTMLElement, TypographyProps>(\n ({ size, weight, variant, as, className, ...props }, ref) => {\n const variantConfig = variant ? typographyVariants[variant] : null\n const resolvedSize = size ?? variantConfig?.size ?? \"base\"\n const resolvedWeight =\n weight ?? variantConfig?.weight ?? defaultWeights[resolvedSize]\n const Comp = as ?? variantConfig?.element ?? defaultElements[resolvedSize]\n\n return (\n <Comp\n ref={ref}\n className={cn(\n \"text-foreground font-sans\",\n sizeClasses[resolvedSize],\n weightClasses[resolvedWeight],\n className\n )}\n {...props}\n />\n )\n }\n)\nTypography.displayName = \"Typography\"\n\nexport { Typography, typographyVariants }\nexport type { TypographyProps, TypographySize, TypographyVariant, TypographyWeight }\n"],"names":["sizeClasses","weightClasses","typographyVariants","defaultWeights","defaultElements","Typography","React","size","weight","variant","as","className","props","ref","variantConfig","resolvedSize","resolvedWeight","Comp","cn"],"mappings":"iaAIMA,EAAc,CAClB,MAAO,6BACP,GAAI,6BACJ,GAAI,6BACJ,GAAI,6BACJ,GAAI,6BACJ,MAAO,6BACP,GAAI,6BACJ,EAAG,6BACH,KAAM,6BACN,EAAG,6BACH,GAAI,4BACN,EAEMC,EAAgB,CACpB,KAAM,YACN,SAAU,gBACV,OAAQ,cACR,QAAS,cACT,MAAO,YACT,EAKMC,EAAqB,CACzB,MAAO,CAAE,KAAM,QAAS,OAAQ,OAAQ,QAAS,IAAA,EACjD,GAAI,CAAE,KAAM,KAAM,OAAQ,WAAY,QAAS,IAAA,EAC/C,GAAI,CAAE,KAAM,KAAM,OAAQ,WAAY,QAAS,IAAA,EAC/C,GAAI,CAAE,KAAM,KAAM,OAAQ,WAAY,QAAS,IAAA,EAC/C,GAAI,CAAE,KAAM,KAAM,OAAQ,WAAY,QAAS,IAAA,EAC/C,oBAAqB,CAAE,KAAM,MAAO,OAAQ,WAAY,QAAS,GAAA,EACjE,kBAAmB,CAAE,KAAM,MAAO,OAAQ,SAAU,QAAS,GAAA,EAC7D,mBAAoB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J,GAAI,WACJ,MAAO,UACP,GAAI,UACJ,EAAG,UACH,KAAM,UACN,EAAG,UACH,GAAI,SACN,EAEMC,EAA6D,CACjE,MAAO,KACP,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,MAAO,IACP,GAAI,IACJ,EAAG,IACH,KAAM,IACN,EAAG,IACH,GAAI,GACN,EASMC,EAAaC,EAAM,WACvB,CAAC,CAAE,KAAAC,EAAM,OAAAC,EAAQ,QAAAC,EAAS,GAAAC,EAAI,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAAQ,CAC3D,MAAMC,EAAgBL,EAAUP,EAAmBO,CAAO,EAAI,KACxDM,EAAeR,GAAQO,GAAe,MAAQ,OAC9CE,EACJR,GAAUM,GAAe,QAAUX,EAAeY,CAAY,EAC1DE,EAAOP,GAAMI,GAAe,SAAWV,EAAgBW,CAAY,EAEzE,OACET,EAAA,cAACW,EAAA,CACC,IAAAJ,EACA,UAAWK,EAAAA,GACT,4BACAlB,EAAYe,CAAY,EACxBd,EAAce,CAAc,EAC5BL,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CACF,EACAP,EAAW,YAAc"}
|
package/dist/index.cjs34.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),E=require("@radix-ui/react-menubar"),d=require("lucide-react"),s=require("./index.cjs56.js");function l(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const t=l(w),a=l(E);function R({...e}){return t.createElement(a.Menu,{...e})}function S({...e}){return t.createElement(a.Group,{...e})}function v({...e}){return t.createElement(a.Portal,{...e})}function I({...e}){return t.createElement(a.RadioGroup,{...e})}function C({...e}){return t.createElement(a.Sub,{"data-slot":"menubar-sub",...e})}const i=t.forwardRef(({className:e,...n},r)=>t.createElement(a.Root,{ref:r,className:s.cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...n}));i.displayName=a.Root.displayName;const u=t.forwardRef(({className:e,...n},r)=>t.createElement(a.Trigger,{ref:r,className:s.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",e),...n}));u.displayName=a.Trigger.displayName;const m=t.forwardRef(({className:e,inset:n,children:r,...o},c)=>t.createElement(a.SubTrigger,{ref:c,className:s.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",n&&"pl-8",e),...o},r,t.createElement(d.ChevronRight,{className:"ml-auto h-4 w-4"})));m.displayName=a.SubTrigger.displayName;const f=t.forwardRef(({className:e,...n},r)=>t.createElement(a.SubContent,{ref:r,className:s.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]",e),...n}));f.displayName=a.SubContent.displayName;const b=t.forwardRef(({className:e,align:n="start",alignOffset:r=-4,sideOffset:o=8,...c},h)=>t.createElement(a.Portal,null,t.createElement(a.Content,{ref:h,align:n,alignOffset:r,sideOffset:o,className:s.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]",e),...c})));b.displayName=a.Content.displayName;const p=t.forwardRef(({className:e,inset:n,...r},o)=>t.createElement(a.Item,{ref:o,className:s.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",n&&"pl-8",e),...r}));p.displayName=a.Item.displayName;const g=t.forwardRef(({className:e,children:n,checked:r,...o},c)=>t.createElement(a.CheckboxItem,{ref:c,className:s.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",e),checked:r,...o},t.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},t.createElement(a.ItemIndicator,null,t.createElement(d.Check,{className:"h-4 w-4"}))),n));g.displayName=a.CheckboxItem.displayName;const M=t.forwardRef(({className:e,children:n,...r},o)=>t.createElement(a.RadioItem,{ref:o,className:s.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",e),...r},t.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},t.createElement(a.ItemIndicator,null,t.createElement(d.Circle,{className:"h-4 w-4 fill-current"}))),n));M.displayName=a.RadioItem.displayName;const x=t.forwardRef(({className:e,inset:n,...r},o)=>t.createElement(a.Label,{ref:o,className:s.cn("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));x.displayName=a.Label.displayName;const y=t.forwardRef(({className:e,...n},r)=>t.createElement(a.Separator,{ref:r,className:s.cn("-mx-1 my-1 h-px bg-muted",e),...n}));y.displayName=a.Separator.displayName;const N=({className:e,...n})=>t.createElement("span",{className:s.cn("ml-auto text-xs tracking-widest text-muted-foreground",e),...n});N.displayname="MenubarShortcut";exports.Menubar=i;exports.MenubarCheckboxItem=g;exports.MenubarContent=b;exports.MenubarGroup=S;exports.MenubarItem=p;exports.MenubarLabel=x;exports.MenubarMenu=R;exports.MenubarPortal=v;exports.MenubarRadioGroup=I;exports.MenubarRadioItem=M;exports.MenubarSeparator=y;exports.MenubarShortcut=N;exports.MenubarSub=C;exports.MenubarSubContent=f;exports.MenubarSubTrigger=m;exports.MenubarTrigger=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs34.js.map
|
package/dist/index.cjs34.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs34.js","sources":["../src/components/ui/navigation-menu.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\"\nimport { cva } from \"class-variance-authority\"\nimport { ChevronDown } from \"lucide-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(\n \"relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className\n )}\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(\n \"group flex flex-1 list-none items-center justify-center space-x-1\",\n className\n )}\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 =\n 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 =\n NavigationMenuPrimitive.Indicator.displayName\n\nexport {\n navigationMenuTriggerStyle,\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n}\n"],"names":["NavigationMenu","React","className","children","props","ref","NavigationMenuPrimitive","cn","NavigationMenuViewport","NavigationMenuList","NavigationMenuItem","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","ChevronDown","NavigationMenuContent","NavigationMen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E,CAAA,EAASC,IAC1BJ,EAAA,cAAC,MAAA,CAAI,UAAWM,EAAAA,GAAG,8CAA8C,CAAA,EAC/DN,EAAA,cAACK,EAAwB,SAAxB,CACC,UAAWC,EAAAA,GACT,qVACAL,CAAA,EAEF,IAAAG,EACC,GAAGD,CAAA,CACN,CACF,CACD,EACDI,EAAuB,YACrBF,EAAwB,SAAS,YAEnC,MAAMW,EAA0BhB,EAAM,WAGpC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BJ,EAAA,cAACK,EAAwB,UAAxB,CACC,IAAAD,EACA,UAAWE,EAAAA,GACT,+LACAL,CAAA,EAED,GAAGE,CAAA,EAEJH,EAAA,cAAC,MAAA,CAAI,UAAU,wEAAA,CAAyE,CAC1F,CACD,EACDgB,EAAwB,YACtBX,EAAwB,UAAU"}
|
|
1
|
+
{"version":3,"file":"index.cjs34.js","sources":["../src/components/ui/menubar.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\"\nimport { Check, ChevronRight, Circle } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction MenubarMenu({\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Menu>) {\n return <MenubarPrimitive.Menu {...props} />\n}\n\nfunction MenubarGroup({\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n return <MenubarPrimitive.Group {...props} />\n}\n\nfunction MenubarPortal({\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n return <MenubarPrimitive.Portal {...props} />\n}\n\nfunction MenubarRadioGroup({\n ...props\n}: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n return <MenubarPrimitive.RadioGroup {...props} />\n}\n\nfunction MenubarSub({\n ...props\n}: 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(\n \"flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm\",\n className\n )}\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>(\n (\n { className, align = \"start\", alignOffset = -4, sideOffset = 8, ...props },\n ref\n ) => (\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 )\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(\n \"px-2 py-1.5 text-sm font-semibold\",\n inset && \"pl-8\",\n className\n )}\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\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n))\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName\n\nconst MenubarShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className\n )}\n {...props}\n />\n )\n}\nMenubarShortcut.displayname = \"MenubarShortcut\"\n\nexport {\n Menubar,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarSeparator,\n MenubarLabel,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarPortal,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarGroup,\n MenubarSub,\n MenubarShortcut,\n}\n"],"names":["MenubarMenu","props","React","MenubarPrimitive","MenubarGroup","MenubarPortal","MenubarRadioGroup","MenubarSub","Menubar","className","ref","cn","MenubarTrigger","MenubarSubTrigger","inset","children","ChevronRight","MenubarSubContent","MenubarContent","align","alignOffset","sideOffset","MenubarItem","MenubarCheckboxItem","checked","Check","MenubarRadioItem","Circle","MenubarLabel","MenubarSeparator","MenubarShortcut"],"mappings":"ueAMA,SAASA,EAAY,CACnB,GAAGC,CACL,EAAuD,CACrD,OAAOC,EAAA,cAACC,EAAiB,KAAjB,CAAuB,GAAGF,EAAO,CAC3C,CAEA,SAASG,EAAa,CACpB,GAAGH,CACL,EAAwD,CACtD,OAAOC,EAAA,cAACC,E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CAAE,UAAAO,EAAW,SAAAM,EAAU,GAAGd,CAAA,EAASS,IACpCR,EAAA,cAACC,EAAiB,UAAjB,CACC,IAAAO,EACA,UAAWC,EAAAA,GACT,qNACAF,CAAA,EAED,GAAGR,CAAA,EAEJC,EAAA,cAAC,OAAA,CAAK,UAAU,8DAAA,EACdA,EAAA,cAACC,EAAiB,cAAjB,KACCD,EAAA,cAACyB,EAAAA,OAAA,CAAO,UAAU,sBAAA,CAAuB,CAC3C,CACF,EACCZ,CACH,CACD,EACDW,EAAiB,YAAcvB,EAAiB,UAAU,YAE1D,MAAMyB,EAAe1B,EAAM,WAKzB,CAAC,CAAE,UAAAO,EAAW,MAAAK,EAAO,GAAGb,CAAA,EAASS,IACjCR,EAAA,cAACC,EAAiB,MAAjB,CACC,IAAAO,EACA,UAAWC,EAAAA,GACT,oCACAG,GAAS,OACTL,CAAA,EAED,GAAGR,CAAA,CACN,CACD,EACD2B,EAAa,YAAczB,EAAiB,MAAM,YAElD,MAAM0B,EAAmB3B,EAAM,WAG7B,CAAC,CAAE,UAAAO,EAAW,GAAGR,CAAA,EAASS,IAC1BR,EAAA,cAACC,EAAiB,UAAjB,CACC,IAAAO,EACA,UAAWC,EAAAA,GAAG,2BAA4BF,CAAS,EAClD,GAAGR,CAAA,CACN,CACD,EACD4B,EAAiB,YAAc1B,EAAiB,UAAU,YAE1D,MAAM2B,EAAkB,CAAC,CACvB,UAAArB,EACA,GAAGR,CACL,IAEIC,EAAA,cAAC,OAAA,CACC,UAAWS,EAAAA,GACT,wDACAF,CAAA,EAED,GAAGR,CAAA,CAAA,EAIV6B,EAAgB,YAAc"}
|
package/dist/index.cjs35.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react"),v=require("@radix-ui/react-navigation-menu"),N=require("class-variance-authority"),w=require("lucide-react"),i=require("./index.cjs56.js");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const a=d(p),o=d(v),c=a.forwardRef(({className:e,children:n,...t},r)=>a.createElement(o.Root,{ref:r,className:i.cn("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...t},n,a.createElement(s,null)));c.displayName=o.Root.displayName;const l=a.forwardRef(({className:e,...n},t)=>a.createElement(o.List,{ref:t,className:i.cn("group flex flex-1 list-none items-center justify-center space-x-1",e),...n}));l.displayName=o.List.displayName;const y=o.Item,m=N.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"),u=a.forwardRef(({className:e,children:n,...t},r)=>a.createElement(o.Trigger,{ref:r,className:i.cn(m(),"group",e),...t},n," ",a.createElement(w.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})));u.displayName=o.Trigger.displayName;const f=a.forwardRef(({className:e,...n},t)=>a.createElement(o.Content,{ref:t,className:i.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),...n}));f.displayName=o.Content.displayName;const b=o.Link,s=a.forwardRef(({className:e,...n},t)=>a.createElement("div",{className:i.cn("absolute left-0 top-full flex justify-center")},a.createElement(o.Viewport,{className:i.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:t,...n})));s.displayName=o.Viewport.displayName;const g=a.forwardRef(({className:e,...n},t)=>a.createElement(o.Indicator,{ref:t,className:i.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),...n},a.createElement("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})));g.displayName=o.Indicator.displayName;exports.NavigationMenu=c;exports.NavigationMenuContent=f;exports.NavigationMenuIndicator=g;exports.NavigationMenuItem=y;exports.NavigationMenuLink=b;exports.NavigationMenuList=l;exports.NavigationMenuTrigger=u;exports.NavigationMenuViewport=s;exports.navigationMenuTriggerStyle=m;
|
|
2
2
|
//# sourceMappingURL=index.cjs35.js.map
|
package/dist/index.cjs35.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs35.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.cjs35.js","sources":["../src/components/ui/navigation-menu.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\"\nimport { cva } from \"class-variance-authority\"\nimport { ChevronDown } from \"lucide-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(\n \"relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className\n )}\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(\n \"group flex flex-1 list-none items-center justify-center space-x-1\",\n className\n )}\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 =\n 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 =\n NavigationMenuPrimitive.Indicator.displayName\n\nexport {\n navigationMenuTriggerStyle,\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n}\n"],"names":["NavigationMenu","React","className","children","props","ref","NavigationMenuPrimitive","cn","NavigationMenuViewport","NavigationMenuList","NavigationMenuItem","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","ChevronDown","NavigationMenuContent","NavigationMenuLink","NavigationMenuIndicator"],"mappings":"qhBAOMA,EAAiBC,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAA,EAASC,IACpCJ,EAAA,cAACK,EAAwB,KAAxB,CACC,IAAAD,EACA,UAAWE,EAAAA,GACT,kEACAL,CAAA,EAED,GAAGE,CAAA,EAEHD,kBACAK,EAAA,IAAuB,CAC1B,CACD,EACDR,EAAe,YAAcM,EAAwB,KAAK,YAE1D,MAAMG,EAAqBR,EAAM,WAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BJ,EAAA,cAACK,EAAwB,KAAxB,CACC,IAAAD,EACA,UAAWE,EAAAA,GACT,oEACAL,CAAA,EAED,GAAGE,CAAA,CACN,CACD,EACDK,EAAmB,YAAcH,EAAwB,KAAK,YAE9D,MAAMI,EAAqBJ,EAAwB,KAE7CK,EAA6BC,EAAAA,IACjC,4aACF,EAEMC,EAAwBZ,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAA,EAASC,IACpCJ,EAAA,cAACK,EAAwB,QAAxB,CACC,IAAAD,EACA,UAAWE,EAAAA,GAAGI,IAA8B,QAAST,CAAS,EAC7D,GAAGE,CAAA,EAEHD,EAAU,IACXF,EAAA,cAACa,EAAAA,YAAA,CACC,UAAU,6FACV,cAAY,MAAA,CAAA,CAEhB,CACD,EACDD,EAAsB,YAAcP,EAAwB,QAAQ,YAEpE,MAAMS,EAAwBd,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BJ,EAAA,cAACK,EAAwB,QAAxB,CACC,IAAAD,EACA,UAAWE,EAAAA,GACT,yVACAL,CAAA,EAED,GAAGE,CAAA,CACN,CACD,EACDW,EAAsB,YAAcT,EAAwB,QAAQ,YAEpE,MAAMU,EAAqBV,EAAwB,KAE7CE,EAAyBP,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BJ,EAAA,cAAC,MAAA,CAAI,UAAWM,EAAAA,GAAG,8CAA8C,CAAA,EAC/DN,EAAA,cAACK,EAAwB,SAAxB,CACC,UAAWC,EAAAA,GACT,qVACAL,CAAA,EAEF,IAAAG,EACC,GAAGD,CAAA,CACN,CACF,CACD,EACDI,EAAuB,YACrBF,EAAwB,SAAS,YAEnC,MAAMW,EAA0BhB,EAAM,WAGpC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BJ,EAAA,cAACK,EAAwB,UAAxB,CACC,IAAAD,EACA,UAAWE,EAAAA,GACT,+LACAL,CAAA,EAED,GAAGE,CAAA,EAEJH,EAAA,cAAC,MAAA,CAAI,UAAU,wEAAA,CAAyE,CAC1F,CACD,EACDgB,EAAwB,YACtBX,EAAwB,UAAU"}
|
package/dist/index.cjs36.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),s=require("lucide-react"),i=require("./index.cjs56.js"),f=require("./index.cjs10.js");function N(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(a,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return a.default=e,Object.freeze(a)}const t=N(P),r=({className:e,...a})=>t.createElement("nav",{role:"navigation","aria-label":"pagination",className:i.cn("mx-auto flex w-full justify-center",e),...a});r.displayName="Pagination";const c=t.forwardRef(({className:e,...a},n)=>t.createElement("ul",{ref:n,className:i.cn("flex flex-row items-center gap-1",e),...a}));c.displayName="PaginationContent";const m=t.forwardRef(({className:e,...a},n)=>t.createElement("li",{ref:n,className:i.cn("",e),...a}));m.displayName="PaginationItem";const l=({className:e,isActive:a,size:n="icon",...o})=>t.createElement("a",{"aria-current":a?"page":void 0,className:i.cn(f.buttonVariants({variant:a?"outline":"ghost",size:n}),e),...o});l.displayName="PaginationLink";const g=({className:e,...a})=>t.createElement(l,{"aria-label":"Go to previous page",size:"default",className:i.cn("gap-1 pl-2.5",e),...a},t.createElement(s.ChevronLeft,{className:"h-4 w-4"}),t.createElement("span",null,"Previous"));g.displayName="PaginationPrevious";const u=({className:e,...a})=>t.createElement(l,{"aria-label":"Go to next page",size:"default",className:i.cn("gap-1 pr-2.5",e),...a},t.createElement("span",null,"Next"),t.createElement(s.ChevronRight,{className:"h-4 w-4"}));u.displayName="PaginationNext";const p=({className:e,...a})=>t.createElement("span",{"aria-hidden":!0,className:i.cn("flex h-9 w-9 items-center justify-center",e),...a},t.createElement(s.MoreHorizontal,{className:"h-4 w-4"}),t.createElement("span",{className:"sr-only"},"More pages"));p.displayName="PaginationEllipsis";exports.Pagination=r;exports.PaginationContent=c;exports.PaginationEllipsis=p;exports.PaginationItem=m;exports.PaginationLink=l;exports.PaginationNext=u;exports.PaginationPrevious=g;
|
|
2
2
|
//# sourceMappingURL=index.cjs36.js.map
|
package/dist/index.cjs36.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs36.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.cjs36.js","sources":["../src/components/ui/pagination.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { ButtonProps, buttonVariants } from \"@/components/ui/button\"\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<\n HTMLUListElement,\n React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n))\nPaginationContent.displayName = \"PaginationContent\"\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<\"li\">\n>(({ 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 = ({\n className,\n isActive,\n size = \"icon\",\n ...props\n}: 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 = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn(\"gap-1 pl-2.5\", className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n)\nPaginationPrevious.displayName = \"PaginationPrevious\"\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn(\"gap-1 pr-2.5\", className)}\n {...props}\n >\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n)\nPaginationNext.displayName = \"PaginationNext\"\n\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<\"span\">) => (\n <span\n aria-hidden\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\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 PaginationLink,\n PaginationItem,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n"],"names":["Pagination","className","props","React","cn","PaginationContent","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":"ydAMMA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAClCC,EAAA,cAAC,MAAA,CACC,KAAK,aACL,aAAW,aACX,UAAWC,EAAAA,GAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CACN,EAEFF,EAAW,YAAc,aAEzB,MAAMK,EAAoBF,EAAM,WAG9B,CAAC,CAAE,UAAAF,EAAW,GAAGC,CAAA,EAASI,IAC1BH,EAAA,cAAC,KAAA,CACC,IAAAG,EACA,UAAWF,EAAAA,GAAG,mCAAoCH,CAAS,EAC1D,GAAGC,CAAA,CACN,CACD,EACDG,EAAkB,YAAc,oBAEhC,MAAME,EAAiBJ,EAAM,WAG3B,CAAC,CAAE,UAAAF,EAAW,GAAGC,GAASI,oBACzB,KAAA,CAAG,IAAAA,EAAU,UAAWF,EAAAA,GAAG,GAAIH,CAAS,EAAI,GAAGC,EAAO,CACxD,EACDK,EAAe,YAAc,iBAO7B,MAAMC,EAAiB,CAAC,CACtB,UAAAP,EACA,SAAAQ,EACA,KAAAC,EAAO,OACP,GAAGR,CACL,IACEC,EAAA,cAAC,IAAA,CACC,eAAcM,EAAW,OAAS,OAClC,UAAWL,EAAAA,GACTO,iBAAe,C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