@kubetail/ui 0.1.4 → 0.1.5-rc2
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/README.md +9 -7
- package/dist/elements/Alert.cjs.map +1 -1
- package/dist/elements/Alert.js.map +1 -1
- package/dist/elements/Button.cjs.map +1 -1
- package/dist/elements/Button.d.ts +0 -1
- package/dist/elements/Button.js.map +1 -1
- package/dist/elements/Calendar.d.ts +0 -1
- package/dist/elements/Container.cjs.map +1 -1
- package/dist/elements/Container.js.map +1 -1
- package/dist/elements/DataTable/Body.cjs.map +1 -1
- package/dist/elements/DataTable/Body.d.ts +1 -1
- package/dist/elements/DataTable/Body.js.map +1 -1
- package/dist/elements/DataTable/DataCell.cjs +1 -1
- package/dist/elements/DataTable/DataCell.cjs.map +1 -1
- package/dist/elements/DataTable/DataCell.d.ts +1 -1
- package/dist/elements/DataTable/DataCell.js +1 -1
- package/dist/elements/DataTable/DataCell.js.map +1 -1
- package/dist/elements/DataTable/Header.cjs +1 -1
- package/dist/elements/DataTable/Header.cjs.map +1 -1
- package/dist/elements/DataTable/Header.js +12 -12
- package/dist/elements/DataTable/Header.js.map +1 -1
- package/dist/elements/DataTable/HeaderCell.cjs +1 -1
- package/dist/elements/DataTable/HeaderCell.cjs.map +1 -1
- package/dist/elements/DataTable/HeaderCell.js +20 -15
- package/dist/elements/DataTable/HeaderCell.js.map +1 -1
- package/dist/elements/DataTable/Row.cjs.map +1 -1
- package/dist/elements/DataTable/Row.d.ts +1 -1
- package/dist/elements/DataTable/Row.js.map +1 -1
- package/dist/elements/DataTable/index.cjs +1 -1
- package/dist/elements/DataTable/index.cjs.map +1 -1
- package/dist/elements/DataTable/index.d.ts +1 -5
- package/dist/elements/DataTable/index.js +20 -22
- package/dist/elements/DataTable/index.js.map +1 -1
- package/dist/elements/DataTable/shared.cjs +2 -0
- package/dist/elements/DataTable/shared.cjs.map +1 -0
- package/dist/elements/DataTable/shared.d.ts +6 -0
- package/dist/elements/DataTable/shared.js +8 -0
- package/dist/elements/DataTable/shared.js.map +1 -0
- package/dist/elements/DropdownMenu.cjs +2 -0
- package/dist/elements/DropdownMenu.cjs.map +1 -0
- package/dist/elements/DropdownMenu.d.ts +26 -0
- package/dist/elements/DropdownMenu.js +41 -0
- package/dist/elements/DropdownMenu.js.map +1 -0
- package/dist/elements/Form.cjs.map +1 -1
- package/dist/elements/Form.d.ts +0 -1
- package/dist/elements/Form.js.map +1 -1
- package/dist/elements/FormCheck.cjs.map +1 -1
- package/dist/elements/FormCheck.d.ts +0 -1
- package/dist/elements/FormCheck.js.map +1 -1
- package/dist/elements/FormControl.cjs.map +1 -1
- package/dist/elements/FormControl.d.ts +0 -1
- package/dist/elements/FormControl.js.map +1 -1
- package/dist/elements/FormControlFeedback.cjs.map +1 -1
- package/dist/elements/FormControlFeedback.d.ts +0 -1
- package/dist/elements/FormControlFeedback.js.map +1 -1
- package/dist/elements/FormFeedback.cjs.map +1 -1
- package/dist/elements/FormFeedback.d.ts +0 -1
- package/dist/elements/FormFeedback.js.map +1 -1
- package/dist/elements/FormFieldset.cjs.map +1 -1
- package/dist/elements/FormFieldset.d.ts +0 -1
- package/dist/elements/FormFieldset.js.map +1 -1
- package/dist/elements/FormGroup.cjs.map +1 -1
- package/dist/elements/FormGroup.d.ts +0 -1
- package/dist/elements/FormGroup.js.map +1 -1
- package/dist/elements/FormLabel.cjs.map +1 -1
- package/dist/elements/FormLabel.d.ts +0 -1
- package/dist/elements/FormLabel.js.map +1 -1
- package/dist/elements/FormOption.cjs.map +1 -1
- package/dist/elements/FormOption.d.ts +0 -1
- package/dist/elements/FormOption.js.map +1 -1
- package/dist/elements/FormSelect.cjs.map +1 -1
- package/dist/elements/FormSelect.d.ts +0 -1
- package/dist/elements/FormSelect.js.map +1 -1
- package/dist/elements/Popover.cjs.map +1 -1
- package/dist/elements/Popover.d.ts +0 -1
- package/dist/elements/Popover.js.map +1 -1
- package/dist/elements/Spinner.cjs.map +1 -1
- package/dist/elements/Spinner.js.map +1 -1
- package/dist/elements/Tabs.cjs.map +1 -1
- package/dist/elements/Tabs.d.ts +0 -1
- package/dist/elements/Tabs.js.map +1 -1
- package/dist/lib/utils.cjs.map +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.js +10 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +39 -38
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),h=require("@radix-ui/react-dropdown-menu"),c=require("lucide-react"),d=require("react"),s=require("../lib/utils.cjs");function D(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>o[n]})}}return t.default=o,Object.freeze(t)}const e=D(h),M=e.Root,y=e.Trigger,N=e.Group,j=e.Portal,v=e.Sub,S=e.RadioGroup,l=d.forwardRef(({className:o,inset:t,children:n,...r},i)=>a.jsxs(e.SubTrigger,{ref:i,className:s.cn("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",o),...r,children:[n,a.jsx(c.ChevronRight,{className:"ml-auto"})]}));l.displayName=e.SubTrigger.displayName;const p=d.forwardRef(({className:o,...t},n)=>a.jsx(e.SubContent,{ref:n,className:s.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border border-chrome-300 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",o),...t}));p.displayName=e.SubContent.displayName;const u=d.forwardRef(({className:o,sideOffset:t=4,...n},r)=>a.jsx(e.Portal,{children:a.jsx(e.Content,{ref:r,sideOffset:t,className:s.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border border-chrome-300 bg-popover p-1 text-popover-foreground shadow-md","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",o),...n})}));u.displayName=e.Content.displayName;const m=d.forwardRef(({className:o,inset:t,...n},r)=>a.jsx(e.Item,{ref:r,className:s.cn("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",o),...n}));m.displayName=e.Item.displayName;const f=d.forwardRef(({className:o,children:t,checked:n,...r},i)=>a.jsxs(e.CheckboxItem,{ref:i,className:s.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),checked:n,...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(e.ItemIndicator,{children:a.jsx(c.Check,{className:"h-4 w-4"})})}),t]}));f.displayName=e.CheckboxItem.displayName;const w=d.forwardRef(({className:o,children:t,...n},r)=>a.jsxs(e.RadioItem,{ref:r,className:s.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(e.ItemIndicator,{children:a.jsx(c.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));w.displayName=e.RadioItem.displayName;const b=d.forwardRef(({className:o,inset:t,...n},r)=>a.jsx(e.Label,{ref:r,className:s.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",o),...n}));b.displayName=e.Label.displayName;const g=d.forwardRef(({className:o,...t},n)=>a.jsx(e.Separator,{ref:n,className:s.cn("-mx-1 my-1 h-px bg-chrome-300",o),...t}));g.displayName=e.Separator.displayName;const x=({className:o,...t})=>a.jsx("span",{className:s.cn("ml-auto text-xs tracking-widest opacity-60",o),...t});x.displayName="DropdownMenuShortcut";exports.DropdownMenu=M;exports.DropdownMenuCheckboxItem=f;exports.DropdownMenuContent=u;exports.DropdownMenuGroup=N;exports.DropdownMenuItem=m;exports.DropdownMenuLabel=b;exports.DropdownMenuPortal=j;exports.DropdownMenuRadioGroup=S;exports.DropdownMenuRadioItem=w;exports.DropdownMenuSeparator=g;exports.DropdownMenuShortcut=x;exports.DropdownMenuSub=v;exports.DropdownMenuSubContent=p;exports.DropdownMenuSubTrigger=l;exports.DropdownMenuTrigger=y;
|
|
2
|
+
//# sourceMappingURL=DropdownMenu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.cjs","sources":["../../src/elements/DropdownMenu.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst DropdownMenu = DropdownMenuPrimitive.Root;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\nconst DropdownMenuSubTrigger = forwardRef(({ className, inset, children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.SubTrigger, { ref: ref, className: cn('flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className), ...props, children: [children, _jsx(ChevronRight, { className: \"ml-auto\" })] })));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\nconst DropdownMenuSubContent = forwardRef(({ className, ...props }, ref) => (_jsx(DropdownMenuPrimitive.SubContent, { ref: ref, className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border border-chrome-300 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', className), ...props })));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\nconst DropdownMenuContent = forwardRef(({ className, sideOffset = 4, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border border-chrome-300 bg-popover p-1 text-popover-foreground shadow-md', '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', className), ...props }) })));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\nconst DropdownMenuItem = forwardRef(({ className, inset, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Item, { ref: ref, className: cn('relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0', inset && 'pl-8', className), ...props })));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\nconst DropdownMenuCheckboxItem = forwardRef(({ className, children, checked, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.CheckboxItem, { ref: ref, className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className), checked: checked, ...props, children: [_jsx(\"span\", { className: \"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Check, { className: \"h-4 w-4\" }) }) }), children] })));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\nconst DropdownMenuRadioItem = forwardRef(({ className, children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.RadioItem, { ref: ref, className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className), ...props, children: [_jsx(\"span\", { className: \"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Circle, { className: \"h-2 w-2 fill-current\" }) }) }), children] })));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\nconst DropdownMenuLabel = forwardRef(({ className, inset, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Label, { ref: ref, className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className), ...props })));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\nconst DropdownMenuSeparator = forwardRef(({ className, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Separator, { ref: ref, className: cn('-mx-1 my-1 h-px bg-chrome-300', className), ...props })));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\nconst DropdownMenuShortcut = ({ className, ...props }) => (_jsx(\"span\", { className: cn('ml-auto text-xs tracking-widest opacity-60', className), ...props }));\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\nexport { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };\n"],"names":["DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","forwardRef","className","inset","children","props","ref","_jsxs","cn","_jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":"qgBAMMA,EAAeC,EAAsB,KACrCC,EAAsBD,EAAsB,QAC5CE,EAAoBF,EAAsB,MAC1CG,EAAqBH,EAAsB,OAC3CI,EAAkBJ,EAAsB,IACxCK,EAAyBL,EAAsB,WAC/CM,EAAyBC,EAAW,WAAA,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAASC,EAAM,KAAAb,EAAsB,WAAY,CAAE,IAAAY,EAAU,UAAWE,EAAAA,GAAG,yMAA0ML,GAAS,OAAQD,CAAS,EAAG,GAAGG,EAAO,SAAU,CAACD,EAAUK,EAAK,IAAAC,EAAA,aAAc,CAAE,UAAW,SAAW,CAAA,CAAC,CAAA,CAAG,CAAE,EACvdV,EAAuB,YAAcN,EAAsB,WAAW,YAChE,MAAAiB,EAAyBV,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAS,EAAAC,IAASG,MAAKf,EAAsB,WAAY,CAAE,IAAAY,EAAU,UAAWE,EAAG,GAAA,0cAA2cN,CAAS,EAAG,GAAGG,EAAO,CAAE,EACjnBM,EAAuB,YAAcjB,EAAsB,WAAW,YACtE,MAAMkB,EAAsBX,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,WAAAW,EAAa,EAAG,GAAGR,CAAA,EAASC,IAASG,EAAAA,IAAKf,EAAsB,OAAQ,CAAE,SAAUe,MAAKf,EAAsB,QAAS,CAAE,IAAAY,EAAU,WAAAO,EAAwB,UAAWL,EAAAA,GAAG,yHAA0H,mVAAoVN,CAAS,EAAG,GAAGG,CAAA,CAAO,CAAA,CAAG,CAAE,EACxsBO,EAAoB,YAAclB,EAAsB,QAAQ,YAC1D,MAAAoB,EAAmBb,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGE,CAAS,EAAAC,IAASG,EAAAA,IAAKf,EAAsB,KAAM,CAAE,IAAAY,EAAU,UAAWE,EAAAA,GAAG,wQAAyQL,GAAS,OAAQD,CAAS,EAAG,GAAGG,EAAO,CAAE,EAC3bS,EAAiB,YAAcpB,EAAsB,KAAK,YACpD,MAAAqB,EAA2Bd,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,SAAAE,EAAU,QAAAY,EAAS,GAAGX,CAAS,EAAAC,IAASC,EAAAA,KAAMb,EAAsB,aAAc,CAAE,IAAAY,EAAU,UAAWE,EAAAA,GAAG,uOAAwON,CAAS,EAAG,QAAAc,EAAkB,GAAGX,EAAO,SAAU,CAACI,EAAK,IAAA,OAAQ,CAAE,UAAW,+DAAgE,SAAUA,EAAAA,IAAKf,EAAsB,cAAe,CAAE,SAAUe,MAAKQ,EAAAA,MAAO,CAAE,UAAW,SAAA,CAAW,CAAA,CAAG,CAAG,CAAA,EAAGb,CAAQ,EAAG,CAAE,EACrpBW,EAAyB,YAAcrB,EAAsB,aAAa,YACpE,MAAAwB,EAAwBjB,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,SAAAE,EAAU,GAAGC,CAAM,EAAGC,IAASC,EAAA,KAAMb,EAAsB,UAAW,CAAE,IAAAY,EAAU,UAAWE,EAAAA,GAAG,uOAAwON,CAAS,EAAG,GAAGG,EAAO,SAAU,CAACI,EAAAA,IAAK,OAAQ,CAAE,UAAW,+DAAgE,SAAUA,MAAKf,EAAsB,cAAe,CAAE,SAAUe,EAAAA,IAAKU,EAAA,OAAQ,CAAE,UAAW,sBAAA,CAAwB,CAAA,CAAG,CAAG,CAAA,EAAGf,CAAQ,EAAG,CAAE,EACloBc,EAAsB,YAAcxB,EAAsB,UAAU,YAC9D,MAAA0B,EAAoBnB,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGE,CAAS,EAAAC,IAASG,EAAAA,IAAKf,EAAsB,MAAO,CAAE,IAAAY,EAAU,UAAWE,EAAAA,GAAG,oCAAqCL,GAAS,OAAQD,CAAS,EAAG,GAAGG,EAAO,CAAE,EACzNe,EAAkB,YAAc1B,EAAsB,MAAM,YACtD,MAAA2B,EAAwBpB,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAS,EAAAC,IAASG,MAAKf,EAAsB,UAAW,CAAE,IAAAY,EAAU,UAAWE,EAAG,GAAA,gCAAiCN,CAAS,EAAG,GAAGG,EAAO,CAAE,EACrMgB,EAAsB,YAAc3B,EAAsB,UAAU,YACpE,MAAM4B,EAAuB,CAAC,CAAE,UAAApB,EAAW,GAAGG,KAAaI,EAAAA,IAAK,OAAQ,CAAE,UAAWD,EAAAA,GAAG,6CAA8CN,CAAS,EAAG,GAAGG,CAAO,CAAA,EAC5JiB,EAAqB,YAAc"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
2
|
+
declare const DropdownMenu: import("react").FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
3
|
+
declare const DropdownMenuTrigger: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
declare const DropdownMenuGroup: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const DropdownMenuPortal: import("react").FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
6
|
+
declare const DropdownMenuSub: import("react").FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
7
|
+
declare const DropdownMenuRadioGroup: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const DropdownMenuSubTrigger: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
inset?: boolean;
|
|
10
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const DropdownMenuSubContent: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DropdownMenuContent: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const DropdownMenuItem: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
14
|
+
inset?: boolean;
|
|
15
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
declare const DropdownMenuCheckboxItem: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const DropdownMenuRadioItem: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuLabel: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
19
|
+
inset?: boolean;
|
|
20
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const DropdownMenuSeparator: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const DropdownMenuShortcut: {
|
|
23
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import * as e from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
import { ChevronRight as c, Check as m, Circle as p } from "lucide-react";
|
|
4
|
+
import { forwardRef as r } from "react";
|
|
5
|
+
import { cn as d } from "../lib/utils.js";
|
|
6
|
+
const S = e.Root, C = e.Trigger, z = e.Group, R = e.Portal, k = e.Sub, T = e.RadioGroup, u = r(({ className: t, inset: o, children: a, ...s }, i) => l(e.SubTrigger, { ref: i, className: d("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", o && "pl-8", t), ...s, children: [a, n(c, { className: "ml-auto" })] }));
|
|
7
|
+
u.displayName = e.SubTrigger.displayName;
|
|
8
|
+
const f = r(({ className: t, ...o }, a) => n(e.SubContent, { ref: a, className: d("z-50 min-w-[8rem] overflow-hidden rounded-md border border-chrome-300 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", t), ...o }));
|
|
9
|
+
f.displayName = e.SubContent.displayName;
|
|
10
|
+
const b = r(({ className: t, sideOffset: o = 4, ...a }, s) => n(e.Portal, { children: n(e.Content, { ref: s, sideOffset: o, className: d("z-50 min-w-[8rem] overflow-hidden rounded-md border border-chrome-300 bg-popover p-1 text-popover-foreground shadow-md", "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", t), ...a }) }));
|
|
11
|
+
b.displayName = e.Content.displayName;
|
|
12
|
+
const g = r(({ className: t, inset: o, ...a }, s) => n(e.Item, { ref: s, className: d("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0", o && "pl-8", t), ...a }));
|
|
13
|
+
g.displayName = e.Item.displayName;
|
|
14
|
+
const h = r(({ className: t, children: o, checked: a, ...s }, i) => l(e.CheckboxItem, { ref: i, className: d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t), checked: a, ...s, children: [n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: n(e.ItemIndicator, { children: n(m, { className: "h-4 w-4" }) }) }), o] }));
|
|
15
|
+
h.displayName = e.CheckboxItem.displayName;
|
|
16
|
+
const N = r(({ className: t, children: o, ...a }, s) => l(e.RadioItem, { ref: s, className: d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t), ...a, children: [n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: n(e.ItemIndicator, { children: n(p, { className: "h-2 w-2 fill-current" }) }) }), o] }));
|
|
17
|
+
N.displayName = e.RadioItem.displayName;
|
|
18
|
+
const w = r(({ className: t, inset: o, ...a }, s) => n(e.Label, { ref: s, className: d("px-2 py-1.5 text-sm font-semibold", o && "pl-8", t), ...a }));
|
|
19
|
+
w.displayName = e.Label.displayName;
|
|
20
|
+
const x = r(({ className: t, ...o }, a) => n(e.Separator, { ref: a, className: d("-mx-1 my-1 h-px bg-chrome-300", t), ...o }));
|
|
21
|
+
x.displayName = e.Separator.displayName;
|
|
22
|
+
const y = ({ className: t, ...o }) => n("span", { className: d("ml-auto text-xs tracking-widest opacity-60", t), ...o });
|
|
23
|
+
y.displayName = "DropdownMenuShortcut";
|
|
24
|
+
export {
|
|
25
|
+
S as DropdownMenu,
|
|
26
|
+
h as DropdownMenuCheckboxItem,
|
|
27
|
+
b as DropdownMenuContent,
|
|
28
|
+
z as DropdownMenuGroup,
|
|
29
|
+
g as DropdownMenuItem,
|
|
30
|
+
w as DropdownMenuLabel,
|
|
31
|
+
R as DropdownMenuPortal,
|
|
32
|
+
T as DropdownMenuRadioGroup,
|
|
33
|
+
N as DropdownMenuRadioItem,
|
|
34
|
+
x as DropdownMenuSeparator,
|
|
35
|
+
y as DropdownMenuShortcut,
|
|
36
|
+
k as DropdownMenuSub,
|
|
37
|
+
f as DropdownMenuSubContent,
|
|
38
|
+
u as DropdownMenuSubTrigger,
|
|
39
|
+
C as DropdownMenuTrigger
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=DropdownMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.js","sources":["../../src/elements/DropdownMenu.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst DropdownMenu = DropdownMenuPrimitive.Root;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\nconst DropdownMenuSubTrigger = forwardRef(({ className, inset, children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.SubTrigger, { ref: ref, className: cn('flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className), ...props, children: [children, _jsx(ChevronRight, { className: \"ml-auto\" })] })));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\nconst DropdownMenuSubContent = forwardRef(({ className, ...props }, ref) => (_jsx(DropdownMenuPrimitive.SubContent, { ref: ref, className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border border-chrome-300 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', className), ...props })));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\nconst DropdownMenuContent = forwardRef(({ className, sideOffset = 4, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border border-chrome-300 bg-popover p-1 text-popover-foreground shadow-md', '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', className), ...props }) })));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\nconst DropdownMenuItem = forwardRef(({ className, inset, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Item, { ref: ref, className: cn('relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0', inset && 'pl-8', className), ...props })));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\nconst DropdownMenuCheckboxItem = forwardRef(({ className, children, checked, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.CheckboxItem, { ref: ref, className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className), checked: checked, ...props, children: [_jsx(\"span\", { className: \"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Check, { className: \"h-4 w-4\" }) }) }), children] })));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\nconst DropdownMenuRadioItem = forwardRef(({ className, children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.RadioItem, { ref: ref, className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className), ...props, children: [_jsx(\"span\", { className: \"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Circle, { className: \"h-2 w-2 fill-current\" }) }) }), children] })));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\nconst DropdownMenuLabel = forwardRef(({ className, inset, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Label, { ref: ref, className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className), ...props })));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\nconst DropdownMenuSeparator = forwardRef(({ className, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Separator, { ref: ref, className: cn('-mx-1 my-1 h-px bg-chrome-300', className), ...props })));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\nconst DropdownMenuShortcut = ({ className, ...props }) => (_jsx(\"span\", { className: cn('ml-auto text-xs tracking-widest opacity-60', className), ...props }));\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\nexport { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };\n"],"names":["DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","forwardRef","className","inset","children","props","ref","_jsxs","cn","_jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":";;;;;AAMA,MAAMA,IAAeC,EAAsB,MACrCC,IAAsBD,EAAsB,SAC5CE,IAAoBF,EAAsB,OAC1CG,IAAqBH,EAAsB,QAC3CI,IAAkBJ,EAAsB,KACxCK,IAAyBL,EAAsB,YAC/CM,IAAyBC,EAAW,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,GAAGC,EAAM,GAAGC,MAASC,EAAMb,EAAsB,YAAY,EAAE,KAAAY,GAAU,WAAWE,EAAG,0MAA0ML,KAAS,QAAQD,CAAS,GAAG,GAAGG,GAAO,UAAU,CAACD,GAAUK,EAAKC,GAAc,EAAE,WAAW,UAAW,CAAA,CAAC,EAAA,CAAG,CAAE;AACvdV,EAAuB,cAAcN,EAAsB,WAAW;AAChE,MAAAiB,IAAyBV,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGG,EAAS,GAAAC,MAASG,EAAKf,EAAsB,YAAY,EAAE,KAAAY,GAAU,WAAWE,EAAG,2cAA2cN,CAAS,GAAG,GAAGG,GAAO,CAAE;AACjnBM,EAAuB,cAAcjB,EAAsB,WAAW;AACtE,MAAMkB,IAAsBX,EAAW,CAAC,EAAE,WAAAC,GAAW,YAAAW,IAAa,GAAG,GAAGR,EAAA,GAASC,MAASG,EAAKf,EAAsB,QAAQ,EAAE,UAAUe,EAAKf,EAAsB,SAAS,EAAE,KAAAY,GAAU,YAAAO,GAAwB,WAAWL,EAAG,0HAA0H,oVAAoVN,CAAS,GAAG,GAAGG,EAAA,CAAO,EAAA,CAAG,CAAE;AACxsBO,EAAoB,cAAclB,EAAsB,QAAQ;AAC1D,MAAAoB,IAAmBb,EAAW,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,GAAGE,EAAS,GAAAC,MAASG,EAAKf,EAAsB,MAAM,EAAE,KAAAY,GAAU,WAAWE,EAAG,yQAAyQL,KAAS,QAAQD,CAAS,GAAG,GAAGG,GAAO,CAAE;AAC3bS,EAAiB,cAAcpB,EAAsB,KAAK;AACpD,MAAAqB,IAA2Bd,EAAW,CAAC,EAAE,WAAAC,GAAW,UAAAE,GAAU,SAAAY,GAAS,GAAGX,EAAS,GAAAC,MAASC,EAAMb,EAAsB,cAAc,EAAE,KAAAY,GAAU,WAAWE,EAAG,wOAAwON,CAAS,GAAG,SAAAc,GAAkB,GAAGX,GAAO,UAAU,CAACI,EAAK,QAAQ,EAAE,WAAW,gEAAgE,UAAUA,EAAKf,EAAsB,eAAe,EAAE,UAAUe,EAAKQ,GAAO,EAAE,WAAW,UAAA,CAAW,EAAA,CAAG,EAAG,CAAA,GAAGb,CAAQ,GAAG,CAAE;AACrpBW,EAAyB,cAAcrB,EAAsB,aAAa;AACpE,MAAAwB,IAAwBjB,EAAW,CAAC,EAAE,WAAAC,GAAW,UAAAE,GAAU,GAAGC,EAAM,GAAGC,MAASC,EAAMb,EAAsB,WAAW,EAAE,KAAAY,GAAU,WAAWE,EAAG,wOAAwON,CAAS,GAAG,GAAGG,GAAO,UAAU,CAACI,EAAK,QAAQ,EAAE,WAAW,gEAAgE,UAAUA,EAAKf,EAAsB,eAAe,EAAE,UAAUe,EAAKU,GAAQ,EAAE,WAAW,uBAAA,CAAwB,EAAA,CAAG,EAAG,CAAA,GAAGf,CAAQ,GAAG,CAAE;AACloBc,EAAsB,cAAcxB,EAAsB,UAAU;AAC9D,MAAA0B,IAAoBnB,EAAW,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,GAAGE,EAAS,GAAAC,MAASG,EAAKf,EAAsB,OAAO,EAAE,KAAAY,GAAU,WAAWE,EAAG,qCAAqCL,KAAS,QAAQD,CAAS,GAAG,GAAGG,GAAO,CAAE;AACzNe,EAAkB,cAAc1B,EAAsB,MAAM;AACtD,MAAA2B,IAAwBpB,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGG,EAAS,GAAAC,MAASG,EAAKf,EAAsB,WAAW,EAAE,KAAAY,GAAU,WAAWE,EAAG,iCAAiCN,CAAS,GAAG,GAAGG,GAAO,CAAE;AACrMgB,EAAsB,cAAc3B,EAAsB,UAAU;AACpE,MAAM4B,IAAuB,CAAC,EAAE,WAAApB,GAAW,GAAGG,QAAaI,EAAK,QAAQ,EAAE,WAAWD,EAAG,8CAA8CN,CAAS,GAAG,GAAGG,EAAO,CAAA;AAC5JiB,EAAqB,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.cjs","sources":["../../src/elements/Form.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nimport FormCheck from './FormCheck';\nimport FormControl from './FormControl';\nimport FormFeedback from './FormFeedback';\nimport FormFieldset from './FormFieldset';\nimport FormGroup from './FormGroup';\nimport FormLabel from './FormLabel';\nimport FormOption from './FormOption';\nimport FormSelect from './FormSelect';\nconst baseCls = 'space-y-8';\nconst Form = forwardRef(({ className, ...props }, ref) => (_jsx(\"form\", { ...props, ref: ref, className: cn(baseCls, className) })));\nForm.displayName = 'Form';\nconst FormExport = Object.assign(Form, {\n Check: FormCheck,\n Control: FormControl,\n Group: FormGroup,\n Feedback: FormFeedback,\n Fieldset: FormFieldset,\n Label: FormLabel,\n Option: FormOption,\n Select: FormSelect,\n});\nexport default FormExport;\n"],"names":["baseCls","Form","forwardRef","className","props","ref","_jsx","cn","FormExport","FormCheck","FormControl","FormGroup","FormFeedback","FormFieldset","FormLabel","FormOption","FormSelect"],"mappings":"qVAwBMA,EAAU,YACVC,EAAOC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,GAASC,IAASC,MAAK,OAAQ,CAAE,GAAGF,EAAO,IAAAC,EAAU,UAAWE,
|
|
1
|
+
{"version":3,"file":"Form.cjs","sources":["../../src/elements/Form.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nimport FormCheck from './FormCheck';\nimport FormControl from './FormControl';\nimport FormFeedback from './FormFeedback';\nimport FormFieldset from './FormFieldset';\nimport FormGroup from './FormGroup';\nimport FormLabel from './FormLabel';\nimport FormOption from './FormOption';\nimport FormSelect from './FormSelect';\nconst baseCls = 'space-y-8';\nconst Form = forwardRef(({ className, ...props }, ref) => (_jsx(\"form\", { ...props, ref: ref, className: cn(baseCls, className) })));\nForm.displayName = 'Form';\nconst FormExport = Object.assign(Form, {\n Check: FormCheck,\n Control: FormControl,\n Group: FormGroup,\n Feedback: FormFeedback,\n Fieldset: FormFieldset,\n Label: FormLabel,\n Option: FormOption,\n Select: FormSelect,\n});\nexport default FormExport;\n"],"names":["baseCls","Form","forwardRef","className","props","ref","_jsx","cn","FormExport","FormCheck","FormControl","FormGroup","FormFeedback","FormFieldset","FormLabel","FormOption","FormSelect"],"mappings":"qVAwBMA,EAAU,YACVC,EAAOC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,GAASC,IAASC,MAAK,OAAQ,CAAE,GAAGF,EAAO,IAAAC,EAAU,UAAWE,KAAGP,EAASG,CAAS,CAAE,CAAC,CAAE,EACnIF,EAAK,YAAc,OACb,MAAAO,EAAa,OAAO,OAAOP,EAAM,CACnC,MAAOQ,EACP,QAASC,EACT,MAAOC,EAAA,QACP,SAAUC,EACV,SAAUC,EACV,MAAOC,EACP,OAAQC,EACR,OAAQC,CACZ,CAAC"}
|
package/dist/elements/Form.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sources":["../../src/elements/Form.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nimport FormCheck from './FormCheck';\nimport FormControl from './FormControl';\nimport FormFeedback from './FormFeedback';\nimport FormFieldset from './FormFieldset';\nimport FormGroup from './FormGroup';\nimport FormLabel from './FormLabel';\nimport FormOption from './FormOption';\nimport FormSelect from './FormSelect';\nconst baseCls = 'space-y-8';\nconst Form = forwardRef(({ className, ...props }, ref) => (_jsx(\"form\", { ...props, ref: ref, className: cn(baseCls, className) })));\nForm.displayName = 'Form';\nconst FormExport = Object.assign(Form, {\n Check: FormCheck,\n Control: FormControl,\n Group: FormGroup,\n Feedback: FormFeedback,\n Fieldset: FormFieldset,\n Label: FormLabel,\n Option: FormOption,\n Select: FormSelect,\n});\nexport default FormExport;\n"],"names":["baseCls","Form","forwardRef","className","props","ref","_jsx","cn","FormExport","FormCheck","FormControl","FormGroup","FormFeedback","FormFieldset","FormLabel","FormOption","FormSelect"],"mappings":";;;;;;;;;;;AAwBA,MAAMA,IAAU,aACVC,IAAOC,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAASC,EAAK,QAAQ,EAAE,GAAGF,GAAO,KAAAC,GAAU,WAAWE,EAAGP,GAASG,CAAS,
|
|
1
|
+
{"version":3,"file":"Form.js","sources":["../../src/elements/Form.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nimport FormCheck from './FormCheck';\nimport FormControl from './FormControl';\nimport FormFeedback from './FormFeedback';\nimport FormFieldset from './FormFieldset';\nimport FormGroup from './FormGroup';\nimport FormLabel from './FormLabel';\nimport FormOption from './FormOption';\nimport FormSelect from './FormSelect';\nconst baseCls = 'space-y-8';\nconst Form = forwardRef(({ className, ...props }, ref) => (_jsx(\"form\", { ...props, ref: ref, className: cn(baseCls, className) })));\nForm.displayName = 'Form';\nconst FormExport = Object.assign(Form, {\n Check: FormCheck,\n Control: FormControl,\n Group: FormGroup,\n Feedback: FormFeedback,\n Fieldset: FormFieldset,\n Label: FormLabel,\n Option: FormOption,\n Select: FormSelect,\n});\nexport default FormExport;\n"],"names":["baseCls","Form","forwardRef","className","props","ref","_jsx","cn","FormExport","FormCheck","FormControl","FormGroup","FormFeedback","FormFieldset","FormLabel","FormOption","FormSelect"],"mappings":";;;;;;;;;;;AAwBA,MAAMA,IAAU,aACVC,IAAOC,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAASC,EAAK,QAAQ,EAAE,GAAGF,GAAO,KAAAC,GAAU,WAAWE,EAAGP,GAASG,CAAS,EAAE,CAAC,CAAE;AACnIF,EAAK,cAAc;AACb,MAAAO,IAAa,OAAO,OAAOP,GAAM;AAAA,EACnC,OAAOQ;AAAA,EACP,SAASC;AAAAA,EACT,OAAOC;AAAA,EACP,UAAUC;AAAA,EACV,UAAUC;AAAA,EACV,OAAOC;AAAA,EACP,QAAQC;AAAA,EACR,QAAQC;AACZ,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCheck.cjs","sources":["../../src/elements/FormCheck.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst wrapperBaseCls = 'flex items-center';\nconst inputBaseCls = 'h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst labelBaseCls = 'ml-2 block text-sm text-chrome-900';\nconst FormCheck = forwardRef(({ as = 'input', className, id, label, ...props }, ref) => {\n const Tag = as;\n return (_jsxs(\"div\", { className: cn(wrapperBaseCls, className), children: [_jsx(Tag, { ...props, ref: ref, id: id, type: \"checkbox\", className: inputBaseCls }), label && (_jsx(\"label\", { htmlFor: id, className: labelBaseCls, children: label }))] }));\n});\nFormCheck.displayName = 'FormCheck';\nexport default FormCheck;\n"],"names":["wrapperBaseCls","inputBaseCls","labelBaseCls","FormCheck","forwardRef","as","className","id","label","props","ref","Tag","_jsxs","cn","_jsx"],"mappings":"mGAgBMA,EAAiB,oBACjBC,EAAe,gMACfC,EAAe,qCACfC,EAAYC,EAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,GAAAC,EAAI,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAAQ,CACpF,MAAMC,EAAMN,EACZ,OAAQO,EAAAA,KAAM,MAAO,CAAE,UAAWC,EAAA,GAAGb,EAAgBM,CAAS,EAAG,SAAU,CAACQ,MAAKH,EAAK,CAAE,GAAGF,EAAO,IAAAC,EAAU,GAAAH,EAAQ,KAAM,WAAY,UAAWN,CAAc,CAAA,EAAGO,GAAUM,EAAAA,IAAK,QAAS,CAAE,QAASP,EAAI,UAAWL,EAAc,SAAUM,CAAO,
|
|
1
|
+
{"version":3,"file":"FormCheck.cjs","sources":["../../src/elements/FormCheck.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst wrapperBaseCls = 'flex items-center';\nconst inputBaseCls = 'h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst labelBaseCls = 'ml-2 block text-sm text-chrome-900';\nconst FormCheck = forwardRef(({ as = 'input', className, id, label, ...props }, ref) => {\n const Tag = as;\n return (_jsxs(\"div\", { className: cn(wrapperBaseCls, className), children: [_jsx(Tag, { ...props, ref: ref, id: id, type: \"checkbox\", className: inputBaseCls }), label && (_jsx(\"label\", { htmlFor: id, className: labelBaseCls, children: label }))] }));\n});\nFormCheck.displayName = 'FormCheck';\nexport default FormCheck;\n"],"names":["wrapperBaseCls","inputBaseCls","labelBaseCls","FormCheck","forwardRef","as","className","id","label","props","ref","Tag","_jsxs","cn","_jsx"],"mappings":"mGAgBMA,EAAiB,oBACjBC,EAAe,gMACfC,EAAe,qCACfC,EAAYC,EAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,GAAAC,EAAI,MAAAC,EAAO,GAAGC,CAAM,EAAGC,IAAQ,CACpF,MAAMC,EAAMN,EACZ,OAAQO,EAAAA,KAAM,MAAO,CAAE,UAAWC,EAAA,GAAGb,EAAgBM,CAAS,EAAG,SAAU,CAACQ,MAAKH,EAAK,CAAE,GAAGF,EAAO,IAAAC,EAAU,GAAAH,EAAQ,KAAM,WAAY,UAAWN,CAAc,CAAA,EAAGO,GAAUM,EAAAA,IAAK,QAAS,CAAE,QAASP,EAAI,UAAWL,EAAc,SAAUM,CAAA,CAAO,CAAE,EAAG,CAC5P,CAAC,EACDL,EAAU,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCheck.js","sources":["../../src/elements/FormCheck.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst wrapperBaseCls = 'flex items-center';\nconst inputBaseCls = 'h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst labelBaseCls = 'ml-2 block text-sm text-chrome-900';\nconst FormCheck = forwardRef(({ as = 'input', className, id, label, ...props }, ref) => {\n const Tag = as;\n return (_jsxs(\"div\", { className: cn(wrapperBaseCls, className), children: [_jsx(Tag, { ...props, ref: ref, id: id, type: \"checkbox\", className: inputBaseCls }), label && (_jsx(\"label\", { htmlFor: id, className: labelBaseCls, children: label }))] }));\n});\nFormCheck.displayName = 'FormCheck';\nexport default FormCheck;\n"],"names":["wrapperBaseCls","inputBaseCls","labelBaseCls","FormCheck","forwardRef","as","className","id","label","props","ref","Tag","_jsxs","cn","_jsx"],"mappings":";;;AAgBA,MAAMA,IAAiB,qBACjBC,IAAe,iMACfC,IAAe,sCACfC,IAAYC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,IAAAC,GAAI,OAAAC,GAAO,GAAGC,EAAM,GAAGC,MAAQ;AACpF,QAAMC,IAAMN;AACZ,SAAQO,EAAM,OAAO,EAAE,WAAWC,EAAGb,GAAgBM,CAAS,GAAG,UAAU,CAACQ,EAAKH,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,IAAAH,GAAQ,MAAM,YAAY,WAAWN,EAAc,CAAA,GAAGO,KAAUM,EAAK,SAAS,EAAE,SAASP,GAAI,WAAWL,GAAc,UAAUM,
|
|
1
|
+
{"version":3,"file":"FormCheck.js","sources":["../../src/elements/FormCheck.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst wrapperBaseCls = 'flex items-center';\nconst inputBaseCls = 'h-4 w-4 text-primary-600 rounded border-input bg-background ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst labelBaseCls = 'ml-2 block text-sm text-chrome-900';\nconst FormCheck = forwardRef(({ as = 'input', className, id, label, ...props }, ref) => {\n const Tag = as;\n return (_jsxs(\"div\", { className: cn(wrapperBaseCls, className), children: [_jsx(Tag, { ...props, ref: ref, id: id, type: \"checkbox\", className: inputBaseCls }), label && (_jsx(\"label\", { htmlFor: id, className: labelBaseCls, children: label }))] }));\n});\nFormCheck.displayName = 'FormCheck';\nexport default FormCheck;\n"],"names":["wrapperBaseCls","inputBaseCls","labelBaseCls","FormCheck","forwardRef","as","className","id","label","props","ref","Tag","_jsxs","cn","_jsx"],"mappings":";;;AAgBA,MAAMA,IAAiB,qBACjBC,IAAe,iMACfC,IAAe,sCACfC,IAAYC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,IAAAC,GAAI,OAAAC,GAAO,GAAGC,EAAM,GAAGC,MAAQ;AACpF,QAAMC,IAAMN;AACZ,SAAQO,EAAM,OAAO,EAAE,WAAWC,EAAGb,GAAgBM,CAAS,GAAG,UAAU,CAACQ,EAAKH,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,IAAAH,GAAQ,MAAM,YAAY,WAAWN,EAAc,CAAA,GAAGO,KAAUM,EAAK,SAAS,EAAE,SAASP,GAAI,WAAWL,GAAc,UAAUM,EAAA,CAAO,CAAE,GAAG;AAC5P,CAAC;AACDL,EAAU,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.cjs","sources":["../../src/elements/FormControl.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nimport FormControlFeedback from './FormControlFeedback';\nconst baseCls = 'flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium';\nconst FormControl = forwardRef(({ as = 'input', className, id, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormControl.displayName = 'FormControl';\nconst FormControlExport = Object.assign(FormControl, {\n Feedback: FormControlFeedback,\n});\nexport default FormControlExport;\n"],"names":["baseCls","FormControl","forwardRef","as","className","id","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn","FormControlExport","FormControlFeedback"],"mappings":"uKAkBMA,EAAU,+UACVC,EAAcC,EAAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,GAAAC,EAAI,GAAGC,CAAM,EAAGC,IAAQ,CAC/E,MAAMC,EAAML,EACN,CAAE,UAAAM,CAAA,EAAcC,EAAA,WAAWC,
|
|
1
|
+
{"version":3,"file":"FormControl.cjs","sources":["../../src/elements/FormControl.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nimport FormControlFeedback from './FormControlFeedback';\nconst baseCls = 'flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium';\nconst FormControl = forwardRef(({ as = 'input', className, id, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormControl.displayName = 'FormControl';\nconst FormControlExport = Object.assign(FormControl, {\n Feedback: FormControlFeedback,\n});\nexport default FormControlExport;\n"],"names":["baseCls","FormControl","forwardRef","as","className","id","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn","FormControlExport","FormControlFeedback"],"mappings":"uKAkBMA,EAAU,+UACVC,EAAcC,EAAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,GAAAC,EAAI,GAAGC,CAAM,EAAGC,IAAQ,CAC/E,MAAMC,EAAML,EACN,CAAE,UAAAM,CAAA,EAAcC,EAAA,WAAWC,SAAgB,EACjD,OAAQC,EAAK,IAAAJ,EAAK,CAAE,GAAGF,EAAO,IAAAC,EAAU,GAAIF,GAAMI,EAAW,UAAWI,EAAAA,GAAGb,EAASI,CAAS,EAAG,CACpG,CAAC,EACDH,EAAY,YAAc,cACpB,MAAAa,EAAoB,OAAO,OAAOb,EAAa,CACjD,SAAUc,CACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.js","sources":["../../src/elements/FormControl.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nimport FormControlFeedback from './FormControlFeedback';\nconst baseCls = 'flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium';\nconst FormControl = forwardRef(({ as = 'input', className, id, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormControl.displayName = 'FormControl';\nconst FormControlExport = Object.assign(FormControl, {\n Feedback: FormControlFeedback,\n});\nexport default FormControlExport;\n"],"names":["baseCls","FormControl","forwardRef","as","className","id","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn","FormControlExport","FormControlFeedback"],"mappings":";;;;;AAkBA,MAAMA,IAAU,gVACVC,IAAcC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,IAAAC,GAAI,GAAGC,EAAM,GAAGC,MAAQ;AAC/E,QAAMC,IAAML,GACN,EAAE,WAAAM,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAKJ,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,IAAIF,KAAMI,GAAW,WAAWI,EAAGb,GAASI,CAAS,
|
|
1
|
+
{"version":3,"file":"FormControl.js","sources":["../../src/elements/FormControl.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nimport FormControlFeedback from './FormControlFeedback';\nconst baseCls = 'flex h-10 w-full rounded border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 file:border-0 file:bg-transparent file:text-sm file:font-medium';\nconst FormControl = forwardRef(({ as = 'input', className, id, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormControl.displayName = 'FormControl';\nconst FormControlExport = Object.assign(FormControl, {\n Feedback: FormControlFeedback,\n});\nexport default FormControlExport;\n"],"names":["baseCls","FormControl","forwardRef","as","className","id","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn","FormControlExport","FormControlFeedback"],"mappings":";;;;;AAkBA,MAAMA,IAAU,gVACVC,IAAcC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,IAAAC,GAAI,GAAGC,EAAM,GAAGC,MAAQ;AAC/E,QAAMC,IAAML,GACN,EAAE,WAAAM,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAKJ,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,IAAIF,KAAMI,GAAW,WAAWI,EAAGb,GAASI,CAAS,GAAG;AACpG,CAAC;AACDH,EAAY,cAAc;AACpB,MAAAa,IAAoB,OAAO,OAAOb,GAAa;AAAA,EACjD,UAAUc;AACd,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControlFeedback.cjs","sources":["../../src/elements/FormControlFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-sm font-medium text-danger !-mb-6';\nconst FormControlFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormControlFeedback.displayName = 'FormControlFeedback';\nexport default FormControlFeedback;\n"],"names":["baseCls","FormControlFeedback","as","className","props","Tag","_jsx","cn"],"mappings":"gFAeMA,EAAU,yCACVC,EAAsB,CAAC,CAAE,GAAAC,EAAK,MAAO,UAAAC,EAAW,GAAGC,KAAY,CACjE,MAAMC,EAAMH,EACJ,OAAAI,EAAA,IAAKD,EAAK,CAAE,GAAGD,EAAO,UAAWG,
|
|
1
|
+
{"version":3,"file":"FormControlFeedback.cjs","sources":["../../src/elements/FormControlFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-sm font-medium text-danger !-mb-6';\nconst FormControlFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormControlFeedback.displayName = 'FormControlFeedback';\nexport default FormControlFeedback;\n"],"names":["baseCls","FormControlFeedback","as","className","props","Tag","_jsx","cn"],"mappings":"gFAeMA,EAAU,yCACVC,EAAsB,CAAC,CAAE,GAAAC,EAAK,MAAO,UAAAC,EAAW,GAAGC,KAAY,CACjE,MAAMC,EAAMH,EACJ,OAAAI,EAAA,IAAKD,EAAK,CAAE,GAAGD,EAAO,UAAWG,KAAGP,EAASG,CAAS,EAAG,CACrE,EACAF,EAAoB,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControlFeedback.js","sources":["../../src/elements/FormControlFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-sm font-medium text-danger !-mb-6';\nconst FormControlFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormControlFeedback.displayName = 'FormControlFeedback';\nexport default FormControlFeedback;\n"],"names":["baseCls","FormControlFeedback","as","className","props","_jsx","cn"],"mappings":";;AAeA,MAAMA,IAAU,0CACVC,IAAsB,CAAC,EAAE,IAAAC,IAAK,OAAO,WAAAC,GAAW,GAAGC,QAE7CC,EADIH,GACM,EAAE,GAAGE,GAAO,WAAWE,EAAGN,GAASG,CAAS,
|
|
1
|
+
{"version":3,"file":"FormControlFeedback.js","sources":["../../src/elements/FormControlFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-sm font-medium text-danger !-mb-6';\nconst FormControlFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormControlFeedback.displayName = 'FormControlFeedback';\nexport default FormControlFeedback;\n"],"names":["baseCls","FormControlFeedback","as","className","props","_jsx","cn"],"mappings":";;AAeA,MAAMA,IAAU,0CACVC,IAAsB,CAAC,EAAE,IAAAC,IAAK,OAAO,WAAAC,GAAW,GAAGC,QAE7CC,EADIH,GACM,EAAE,GAAGE,GAAO,WAAWE,EAAGN,GAASG,CAAS,GAAG;AAErEF,EAAoB,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormFeedback.cjs","sources":["../../src/elements/FormFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-base font-medium text-danger !mt-0 !-mb-4';\nconst FormFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormFeedback.displayName = 'FormFeedback';\nexport default FormFeedback;\n"],"names":["baseCls","FormFeedback","as","className","props","Tag","_jsx","cn"],"mappings":"gFAeMA,EAAU,iDACVC,EAAe,CAAC,CAAE,GAAAC,EAAK,MAAO,UAAAC,EAAW,GAAGC,KAAY,CAC1D,MAAMC,EAAMH,EACJ,OAAAI,EAAA,IAAKD,EAAK,CAAE,GAAGD,EAAO,UAAWG,
|
|
1
|
+
{"version":3,"file":"FormFeedback.cjs","sources":["../../src/elements/FormFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-base font-medium text-danger !mt-0 !-mb-4';\nconst FormFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormFeedback.displayName = 'FormFeedback';\nexport default FormFeedback;\n"],"names":["baseCls","FormFeedback","as","className","props","Tag","_jsx","cn"],"mappings":"gFAeMA,EAAU,iDACVC,EAAe,CAAC,CAAE,GAAAC,EAAK,MAAO,UAAAC,EAAW,GAAGC,KAAY,CAC1D,MAAMC,EAAMH,EACJ,OAAAI,EAAA,IAAKD,EAAK,CAAE,GAAGD,EAAO,UAAWG,KAAGP,EAASG,CAAS,EAAG,CACrE,EACAF,EAAa,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormFeedback.js","sources":["../../src/elements/FormFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-base font-medium text-danger !mt-0 !-mb-4';\nconst FormFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormFeedback.displayName = 'FormFeedback';\nexport default FormFeedback;\n"],"names":["baseCls","FormFeedback","as","className","props","_jsx","cn"],"mappings":";;AAeA,MAAMA,IAAU,kDACVC,IAAe,CAAC,EAAE,IAAAC,IAAK,OAAO,WAAAC,GAAW,GAAGC,QAEtCC,EADIH,GACM,EAAE,GAAGE,GAAO,WAAWE,EAAGN,GAASG,CAAS,
|
|
1
|
+
{"version":3,"file":"FormFeedback.js","sources":["../../src/elements/FormFeedback.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCls = 'text-base font-medium text-danger !mt-0 !-mb-4';\nconst FormFeedback = ({ as = 'div', className, ...props }) => {\n const Tag = as;\n return (_jsx(Tag, { ...props, className: cn(baseCls, className) }));\n};\nFormFeedback.displayName = 'FormFeedback';\nexport default FormFeedback;\n"],"names":["baseCls","FormFeedback","as","className","props","_jsx","cn"],"mappings":";;AAeA,MAAMA,IAAU,kDACVC,IAAe,CAAC,EAAE,IAAAC,IAAK,OAAO,WAAAC,GAAW,GAAGC,QAEtCC,EADIH,GACM,EAAE,GAAGE,GAAO,WAAWE,EAAGN,GAASG,CAAS,GAAG;AAErEF,EAAa,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormFieldset.cjs","sources":["../../src/elements/FormFieldset.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst baseCls = 'space-y-8';\nconst FormFieldset = forwardRef(({ className, ...props }, ref) => (_jsx(\"fieldset\", { ...props, ref: ref, className: cn(baseCls, className) })));\nFormFieldset.displayName = 'FormFieldset';\nexport default FormFieldset;\n"],"names":["baseCls","FormFieldset","forwardRef","className","props","ref","_jsx","cn"],"mappings":"mGAgBMA,EAAU,YACVC,EAAeC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,
|
|
1
|
+
{"version":3,"file":"FormFieldset.cjs","sources":["../../src/elements/FormFieldset.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst baseCls = 'space-y-8';\nconst FormFieldset = forwardRef(({ className, ...props }, ref) => (_jsx(\"fieldset\", { ...props, ref: ref, className: cn(baseCls, className) })));\nFormFieldset.displayName = 'FormFieldset';\nexport default FormFieldset;\n"],"names":["baseCls","FormFieldset","forwardRef","className","props","ref","_jsx","cn"],"mappings":"mGAgBMA,EAAU,YACVC,EAAeC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAASC,EAAA,IAAK,WAAY,CAAE,GAAGF,EAAO,IAAAC,EAAU,UAAWE,EAAAA,GAAGP,EAASG,CAAS,EAAG,CAAE,EAC/IF,EAAa,YAAc"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const FormFieldset: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref"> & import("react").RefAttributes<HTMLFieldSetElement>>;
|
|
3
2
|
export default FormFieldset;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormFieldset.js","sources":["../../src/elements/FormFieldset.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst baseCls = 'space-y-8';\nconst FormFieldset = forwardRef(({ className, ...props }, ref) => (_jsx(\"fieldset\", { ...props, ref: ref, className: cn(baseCls, className) })));\nFormFieldset.displayName = 'FormFieldset';\nexport default FormFieldset;\n"],"names":["baseCls","FormFieldset","forwardRef","className","props","ref","_jsx","cn"],"mappings":";;;AAgBA,MAAMA,IAAU,aACVC,IAAeC,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,
|
|
1
|
+
{"version":3,"file":"FormFieldset.js","sources":["../../src/elements/FormFieldset.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst baseCls = 'space-y-8';\nconst FormFieldset = forwardRef(({ className, ...props }, ref) => (_jsx(\"fieldset\", { ...props, ref: ref, className: cn(baseCls, className) })));\nFormFieldset.displayName = 'FormFieldset';\nexport default FormFieldset;\n"],"names":["baseCls","FormFieldset","forwardRef","className","props","ref","_jsx","cn"],"mappings":";;;AAgBA,MAAMA,IAAU,aACVC,IAAeC,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAASC,EAAK,YAAY,EAAE,GAAGF,GAAO,KAAAC,GAAU,WAAWE,EAAGP,GAASG,CAAS,GAAG,CAAE;AAC/IF,EAAa,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup.cjs","sources":["../../src/elements/FormGroup.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { createContext, forwardRef, useMemo } from 'react';\nimport { cn } from '@/lib/utils';\nconst Context = createContext({}); // for passing `controlId`\nconst baseCls = 'space-y-1';\nconst FormGroup = forwardRef(({ className, controlId, ...props }, ref) => {\n const context = useMemo(() => ({ controlId }), [controlId]);\n return (_jsx(Context.Provider, { value: context, children: _jsx(\"div\", { ...props, ref: ref, className: cn(baseCls, className) }) }));\n});\nFormGroup.displayName = 'FormGroup';\nexport { Context };\nexport default FormGroup;\n"],"names":["Context","createContext","baseCls","FormGroup","forwardRef","className","controlId","props","ref","context","useMemo","_jsx","cn"],"mappings":"kMAgBMA,EAAUC,EAAc,cAAA,
|
|
1
|
+
{"version":3,"file":"FormGroup.cjs","sources":["../../src/elements/FormGroup.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { createContext, forwardRef, useMemo } from 'react';\nimport { cn } from '@/lib/utils';\nconst Context = createContext({}); // for passing `controlId`\nconst baseCls = 'space-y-1';\nconst FormGroup = forwardRef(({ className, controlId, ...props }, ref) => {\n const context = useMemo(() => ({ controlId }), [controlId]);\n return (_jsx(Context.Provider, { value: context, children: _jsx(\"div\", { ...props, ref: ref, className: cn(baseCls, className) }) }));\n});\nFormGroup.displayName = 'FormGroup';\nexport { Context };\nexport default FormGroup;\n"],"names":["Context","createContext","baseCls","FormGroup","forwardRef","className","controlId","props","ref","context","useMemo","_jsx","cn"],"mappings":"kMAgBMA,EAAUC,EAAc,cAAA,CAAE,CAAA,EAC1BC,EAAU,YACVC,EAAYC,aAAW,CAAC,CAAE,UAAAC,EAAW,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAAQ,CAChE,MAAAC,EAAUC,EAAAA,QAAQ,KAAO,CAAE,UAAAJ,IAAc,CAACA,CAAS,CAAC,EAClD,OAAAK,EAAAA,IAAKX,EAAQ,SAAU,CAAE,MAAOS,EAAS,SAAUE,MAAK,MAAO,CAAE,GAAGJ,EAAO,IAAAC,EAAU,UAAWI,EAAAA,GAAGV,EAASG,CAAS,CAAG,CAAA,EAAG,CACvI,CAAC,EACDF,EAAU,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup.js","sources":["../../src/elements/FormGroup.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { createContext, forwardRef, useMemo } from 'react';\nimport { cn } from '@/lib/utils';\nconst Context = createContext({}); // for passing `controlId`\nconst baseCls = 'space-y-1';\nconst FormGroup = forwardRef(({ className, controlId, ...props }, ref) => {\n const context = useMemo(() => ({ controlId }), [controlId]);\n return (_jsx(Context.Provider, { value: context, children: _jsx(\"div\", { ...props, ref: ref, className: cn(baseCls, className) }) }));\n});\nFormGroup.displayName = 'FormGroup';\nexport { Context };\nexport default FormGroup;\n"],"names":["Context","createContext","baseCls","FormGroup","forwardRef","className","controlId","props","ref","context","useMemo","_jsx","cn"],"mappings":";;;AAgBM,MAAAA,IAAUC,EAAc,
|
|
1
|
+
{"version":3,"file":"FormGroup.js","sources":["../../src/elements/FormGroup.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { createContext, forwardRef, useMemo } from 'react';\nimport { cn } from '@/lib/utils';\nconst Context = createContext({}); // for passing `controlId`\nconst baseCls = 'space-y-1';\nconst FormGroup = forwardRef(({ className, controlId, ...props }, ref) => {\n const context = useMemo(() => ({ controlId }), [controlId]);\n return (_jsx(Context.Provider, { value: context, children: _jsx(\"div\", { ...props, ref: ref, className: cn(baseCls, className) }) }));\n});\nFormGroup.displayName = 'FormGroup';\nexport { Context };\nexport default FormGroup;\n"],"names":["Context","createContext","baseCls","FormGroup","forwardRef","className","controlId","props","ref","context","useMemo","_jsx","cn"],"mappings":";;;AAgBM,MAAAA,IAAUC,EAAc,CAAE,CAAA,GAC1BC,IAAU,aACVC,IAAYC,EAAW,CAAC,EAAE,WAAAC,GAAW,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAAQ;AAChE,QAAAC,IAAUC,EAAQ,OAAO,EAAE,WAAAJ,MAAc,CAACA,CAAS,CAAC;AAClD,SAAAK,EAAKX,EAAQ,UAAU,EAAE,OAAOS,GAAS,UAAUE,EAAK,OAAO,EAAE,GAAGJ,GAAO,KAAAC,GAAU,WAAWI,EAAGV,GAASG,CAAS,EAAG,CAAA,GAAG;AACvI,CAAC;AACDF,EAAU,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormLabel.cjs","sources":["../../src/elements/FormLabel.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70';\nconst FormLabel = forwardRef(({ as = 'label', className, htmlFor, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, htmlFor: htmlFor || controlId, className: cn(baseCls, className) }));\n});\nFormLabel.displayName = 'FormLabel';\nexport default FormLabel;\n"],"names":["baseCls","FormLabel","forwardRef","as","className","htmlFor","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":"gIAiBMA,EAAU,6FACVC,EAAYC,EAAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAAQ,CAClF,MAAMC,EAAML,EACN,CAAE,UAAAM,CAAA,EAAcC,EAAA,WAAWC,
|
|
1
|
+
{"version":3,"file":"FormLabel.cjs","sources":["../../src/elements/FormLabel.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70';\nconst FormLabel = forwardRef(({ as = 'label', className, htmlFor, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, htmlFor: htmlFor || controlId, className: cn(baseCls, className) }));\n});\nFormLabel.displayName = 'FormLabel';\nexport default FormLabel;\n"],"names":["baseCls","FormLabel","forwardRef","as","className","htmlFor","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":"gIAiBMA,EAAU,6FACVC,EAAYC,EAAAA,WAAW,CAAC,CAAE,GAAAC,EAAK,QAAS,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAAQ,CAClF,MAAMC,EAAML,EACN,CAAE,UAAAM,CAAA,EAAcC,EAAA,WAAWC,SAAgB,EACjD,OAAQC,EAAK,IAAAJ,EAAK,CAAE,GAAGF,EAAO,IAAAC,EAAU,QAASF,GAAWI,EAAW,UAAWI,EAAAA,GAAGb,EAASI,CAAS,EAAG,CAC9G,CAAC,EACDH,EAAU,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormLabel.js","sources":["../../src/elements/FormLabel.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70';\nconst FormLabel = forwardRef(({ as = 'label', className, htmlFor, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, htmlFor: htmlFor || controlId, className: cn(baseCls, className) }));\n});\nFormLabel.displayName = 'FormLabel';\nexport default FormLabel;\n"],"names":["baseCls","FormLabel","forwardRef","as","className","htmlFor","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":";;;;AAiBA,MAAMA,IAAU,8FACVC,IAAYC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,SAAAC,GAAS,GAAGC,EAAM,GAAGC,MAAQ;AAClF,QAAMC,IAAML,GACN,EAAE,WAAAM,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAKJ,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,SAASF,KAAWI,GAAW,WAAWI,EAAGb,GAASI,CAAS,
|
|
1
|
+
{"version":3,"file":"FormLabel.js","sources":["../../src/elements/FormLabel.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70';\nconst FormLabel = forwardRef(({ as = 'label', className, htmlFor, ...props }, ref) => {\n const Tag = as;\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(Tag, { ...props, ref: ref, htmlFor: htmlFor || controlId, className: cn(baseCls, className) }));\n});\nFormLabel.displayName = 'FormLabel';\nexport default FormLabel;\n"],"names":["baseCls","FormLabel","forwardRef","as","className","htmlFor","props","ref","Tag","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":";;;;AAiBA,MAAMA,IAAU,8FACVC,IAAYC,EAAW,CAAC,EAAE,IAAAC,IAAK,SAAS,WAAAC,GAAW,SAAAC,GAAS,GAAGC,EAAM,GAAGC,MAAQ;AAClF,QAAMC,IAAML,GACN,EAAE,WAAAM,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAKJ,GAAK,EAAE,GAAGF,GAAO,KAAAC,GAAU,SAASF,KAAWI,GAAW,WAAWI,EAAGb,GAASI,CAAS,GAAG;AAC9G,CAAC;AACDH,EAAU,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormOption.cjs","sources":["../../src/elements/FormOption.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nconst FormOption = forwardRef(({ className, ...props }, ref) => (_jsx(\"option\", { ...props, ref: ref, className: className })));\nFormOption.displayName = 'FormOption';\nexport default FormOption;\n"],"names":["FormOption","forwardRef","className","props","ref","_jsx"],"mappings":"qEAeMA,EAAaC,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAASC,
|
|
1
|
+
{"version":3,"file":"FormOption.cjs","sources":["../../src/elements/FormOption.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nconst FormOption = forwardRef(({ className, ...props }, ref) => (_jsx(\"option\", { ...props, ref: ref, className: className })));\nFormOption.displayName = 'FormOption';\nexport default FormOption;\n"],"names":["FormOption","forwardRef","className","props","ref","_jsx"],"mappings":"qEAeMA,EAAaC,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAASC,EAAA,IAAK,SAAU,CAAE,GAAGF,EAAO,IAAAC,EAAU,UAAAF,CAAA,CAAsB,CAAE,EAC9HF,EAAW,YAAc"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const FormOption: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, "ref"> & import("react").RefAttributes<HTMLOptionElement>>;
|
|
3
2
|
export default FormOption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormOption.js","sources":["../../src/elements/FormOption.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nconst FormOption = forwardRef(({ className, ...props }, ref) => (_jsx(\"option\", { ...props, ref: ref, className: className })));\nFormOption.displayName = 'FormOption';\nexport default FormOption;\n"],"names":["FormOption","forwardRef","className","props","ref","_jsx"],"mappings":";;AAeA,MAAMA,IAAaC,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAASC,EAAK,UAAU,EAAE,GAAGF,GAAO,KAAAC,GAAU,WAAAF,
|
|
1
|
+
{"version":3,"file":"FormOption.js","sources":["../../src/elements/FormOption.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef } from 'react';\nconst FormOption = forwardRef(({ className, ...props }, ref) => (_jsx(\"option\", { ...props, ref: ref, className: className })));\nFormOption.displayName = 'FormOption';\nexport default FormOption;\n"],"names":["FormOption","forwardRef","className","props","ref","_jsx"],"mappings":";;AAeA,MAAMA,IAAaC,EAAW,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAASC,EAAK,UAAU,EAAE,GAAGF,GAAO,KAAAC,GAAU,WAAAF,EAAA,CAAsB,CAAE;AAC9HF,EAAW,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelect.cjs","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst FormSelect = forwardRef(({ className, id, ...props }, ref) => {\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(\"select\", { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormSelect.displayName = 'FormSelect';\nexport default FormSelect;\n"],"names":["baseCls","FormSelect","forwardRef","className","id","props","ref","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":"gIAiBMA,EAAU,6NACVC,EAAaC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAAC,EAAI,GAAGC,CAAM,EAAGC,IAAQ,CAChE,KAAM,CAAE,UAAAC,CAAA,EAAcC,EAAA,WAAWC,
|
|
1
|
+
{"version":3,"file":"FormSelect.cjs","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst FormSelect = forwardRef(({ className, id, ...props }, ref) => {\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(\"select\", { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormSelect.displayName = 'FormSelect';\nexport default FormSelect;\n"],"names":["baseCls","FormSelect","forwardRef","className","id","props","ref","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":"gIAiBMA,EAAU,6NACVC,EAAaC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAAC,EAAI,GAAGC,CAAM,EAAGC,IAAQ,CAChE,KAAM,CAAE,UAAAC,CAAA,EAAcC,EAAA,WAAWC,SAAgB,EACjD,OAAQC,EAAK,IAAA,SAAU,CAAE,GAAGL,EAAO,IAAAC,EAAU,GAAIF,GAAMG,EAAW,UAAWI,EAAAA,GAAGX,EAASG,CAAS,EAAG,CACzG,CAAC,EACDF,EAAW,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelect.js","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst FormSelect = forwardRef(({ className, id, ...props }, ref) => {\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(\"select\", { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormSelect.displayName = 'FormSelect';\nexport default FormSelect;\n"],"names":["baseCls","FormSelect","forwardRef","className","id","props","ref","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":";;;;AAiBA,MAAMA,IAAU,8NACVC,IAAaC,EAAW,CAAC,EAAE,WAAAC,GAAW,IAAAC,GAAI,GAAGC,EAAM,GAAGC,MAAQ;AAChE,QAAM,EAAE,WAAAC,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAK,UAAU,EAAE,GAAGL,GAAO,KAAAC,GAAU,IAAIF,KAAMG,GAAW,WAAWI,EAAGX,GAASG,CAAS,
|
|
1
|
+
{"version":3,"file":"FormSelect.js","sources":["../../src/elements/FormSelect.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { forwardRef, useContext } from 'react';\nimport { cn } from '@/lib/utils';\nimport { Context as FormGroupContext } from './FormGroup';\nconst baseCls = 'mt-1 block w-full h-10 rounded bg-background border border-input py-2 pl-3 pr-10 text-sm ring-offset-background focus:outline-none focus:border-input focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:opacity-50';\nconst FormSelect = forwardRef(({ className, id, ...props }, ref) => {\n const { controlId } = useContext(FormGroupContext);\n return (_jsx(\"select\", { ...props, ref: ref, id: id || controlId, className: cn(baseCls, className) }));\n});\nFormSelect.displayName = 'FormSelect';\nexport default FormSelect;\n"],"names":["baseCls","FormSelect","forwardRef","className","id","props","ref","controlId","useContext","FormGroupContext","_jsx","cn"],"mappings":";;;;AAiBA,MAAMA,IAAU,8NACVC,IAAaC,EAAW,CAAC,EAAE,WAAAC,GAAW,IAAAC,GAAI,GAAGC,EAAM,GAAGC,MAAQ;AAChE,QAAM,EAAE,WAAAC,EAAA,IAAcC,EAAWC,CAAgB;AACjD,SAAQC,EAAK,UAAU,EAAE,GAAGL,GAAO,KAAAC,GAAU,IAAIF,KAAMG,GAAW,WAAWI,EAAGX,GAASG,CAAS,GAAG;AACzG,CAAC;AACDF,EAAW,cAAc;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.cjs","sources":["../../src/elements/Popover.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst Popover = PopoverPrimitive.Root;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\nconst PopoverClose = PopoverPrimitive.Close;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\nconst PopoverContent = forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className), ...props }) })));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\nexport { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, };\n"],"names":["Popover","PopoverPrimitive","PopoverAnchor","PopoverClose","PopoverTrigger","PopoverContent","forwardRef","className","align","sideOffset","props","ref","_jsx","cn"],"mappings":"qeAKMA,EAAUC,EAAiB,KAC3BC,EAAgBD,EAAiB,OACjCE,EAAeF,EAAiB,MAChCG,EAAiBH,EAAiB,QAClCI,EAAiBC,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAASC,EAAAA,IAAKX,EAAiB,OAAQ,CAAE,SAAUW,
|
|
1
|
+
{"version":3,"file":"Popover.cjs","sources":["../../src/elements/Popover.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst Popover = PopoverPrimitive.Root;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\nconst PopoverClose = PopoverPrimitive.Close;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\nconst PopoverContent = forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className), ...props }) })));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\nexport { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, };\n"],"names":["Popover","PopoverPrimitive","PopoverAnchor","PopoverClose","PopoverTrigger","PopoverContent","forwardRef","className","align","sideOffset","props","ref","_jsx","cn"],"mappings":"qeAKMA,EAAUC,EAAiB,KAC3BC,EAAgBD,EAAiB,OACjCE,EAAeF,EAAiB,MAChCG,EAAiBH,EAAiB,QAClCI,EAAiBC,EAAAA,WAAW,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAASC,EAAAA,IAAKX,EAAiB,OAAQ,CAAE,SAAUW,EAAAA,IAAKX,EAAiB,QAAS,CAAE,IAAAU,EAAU,MAAAH,EAAc,WAAAC,EAAwB,UAAWI,EAAA,GAAG,6aAA8aN,CAAS,EAAG,GAAGG,CAAA,CAAO,CAAA,CAAG,CAAE,EACzrBL,EAAe,YAAcJ,EAAiB,QAAQ"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
2
|
declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
|
|
4
3
|
declare const PopoverAnchor: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.js","sources":["../../src/elements/Popover.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst Popover = PopoverPrimitive.Root;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\nconst PopoverClose = PopoverPrimitive.Close;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\nconst PopoverContent = forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className), ...props }) })));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\nexport { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, };\n"],"names":["Popover","PopoverPrimitive","PopoverAnchor","PopoverClose","PopoverTrigger","PopoverContent","forwardRef","className","align","sideOffset","props","ref","_jsx","cn"],"mappings":";;;;AAKA,MAAMA,IAAUC,EAAiB,MAC3BC,IAAgBD,EAAiB,QACjCE,IAAeF,EAAiB,OAChCG,IAAiBH,EAAiB,SAClCI,IAAiBC,EAAW,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,EAAM,GAAGC,MAASC,EAAKX,EAAiB,QAAQ,EAAE,UAAUW,EAAKX,EAAiB,SAAS,EAAE,KAAAU,GAAU,OAAAH,GAAc,YAAAC,GAAwB,WAAWI,EAAG,8aAA8aN,CAAS,GAAG,GAAGG,
|
|
1
|
+
{"version":3,"file":"Popover.js","sources":["../../src/elements/Popover.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst Popover = PopoverPrimitive.Root;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\nconst PopoverClose = PopoverPrimitive.Close;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\nconst PopoverContent = forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className), ...props }) })));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\nexport { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, };\n"],"names":["Popover","PopoverPrimitive","PopoverAnchor","PopoverClose","PopoverTrigger","PopoverContent","forwardRef","className","align","sideOffset","props","ref","_jsx","cn"],"mappings":";;;;AAKA,MAAMA,IAAUC,EAAiB,MAC3BC,IAAgBD,EAAiB,QACjCE,IAAeF,EAAiB,OAChCG,IAAiBH,EAAiB,SAClCI,IAAiBC,EAAW,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,EAAM,GAAGC,MAASC,EAAKX,EAAiB,QAAQ,EAAE,UAAUW,EAAKX,EAAiB,SAAS,EAAE,KAAAU,GAAU,OAAAH,GAAc,YAAAC,GAAwB,WAAWI,EAAG,8aAA8aN,CAAS,GAAG,GAAGG,EAAA,CAAO,EAAA,CAAG,CAAE;AACzrBL,EAAe,cAAcJ,EAAiB,QAAQ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.cjs","sources":["../../src/elements/Spinner.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCN = 'animate-spin mr-2 text-chrome-200 fill-chrome-500';\nconst sizeCNMap = {\n xs: 'w-4 h-4',\n sm: 'w-6 h-6',\n md: 'w-8 h-8',\n lg: 'w-10 h-10',\n};\nconst Spinner = ({ className, size = 'md' }) => (_jsxs(\"div\", { role: \"status\", children: [_jsxs(\"svg\", { \"aria-hidden\": \"true\", className: cn(baseCN, size && sizeCNMap[size], className), viewBox: \"0 0 100 101\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", children: [_jsx(\"path\", { d: \"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\", fill: \"currentColor\" }), _jsx(\"path\", { d: \"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\", fill: \"currentFill\" })] }), _jsx(\"span\", { className: \"sr-only\", children: \"Loading...\" })] }));\nexport default Spinner;\n"],"names":["baseCN","sizeCNMap","Spinner","className","size","_jsxs","cn","_jsx"],"mappings":"gFAeMA,EAAS,oDACTC,EAAY,CACd,GAAI,UACJ,GAAI,UACJ,GAAI,UACJ,GAAI,WACR,EACMC,EAAU,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAO,IAAA,IAAYC,EAAAA,KAAM,MAAO,CAAE,KAAM,SAAU,SAAU,CAACA,EAAAA,KAAM,MAAO,CAAE,cAAe,OAAQ,UAAWC,EAAA,GAAGN,EAAQI,GAAQH,EAAUG,CAAI,EAAGD,CAAS,EAAG,QAAS,cAAe,KAAM,OAAQ,MAAO,6BAA8B,SAAU,CAACI,EAAA,IAAK,OAAQ,CAAE,EAAG,+WAAgX,KAAM,cAAe,CAAC,EAAGA,EAAA,IAAK,OAAQ,CAAE,EAAG,glBAAilB,KAAM,aAAc,CAAC,CAAC,CAAA,CAAG,EAAGA,MAAK,OAAQ,CAAE,UAAW,UAAW,SAAU,YAAA,CAAc,CAAC,CAAG,CAAA"}
|
|
1
|
+
{"version":3,"file":"Spinner.cjs","sources":["../../src/elements/Spinner.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCN = 'animate-spin mr-2 text-chrome-200 fill-chrome-500';\nconst sizeCNMap = {\n xs: 'w-4 h-4',\n sm: 'w-6 h-6',\n md: 'w-8 h-8',\n lg: 'w-10 h-10',\n};\nconst Spinner = ({ className, size = 'md' }) => (_jsxs(\"div\", { role: \"status\", children: [_jsxs(\"svg\", { \"aria-hidden\": \"true\", className: cn(baseCN, size && sizeCNMap[size], className), viewBox: \"0 0 100 101\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", children: [_jsx(\"path\", { d: \"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\", fill: \"currentColor\" }), _jsx(\"path\", { d: \"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\", fill: \"currentFill\" })] }), _jsx(\"span\", { className: \"sr-only\", children: \"Loading...\" })] }));\nexport default Spinner;\n"],"names":["baseCN","sizeCNMap","Spinner","className","size","_jsxs","cn","_jsx"],"mappings":"gFAeMA,EAAS,oDACTC,EAAY,CACd,GAAI,UACJ,GAAI,UACJ,GAAI,UACJ,GAAI,WACR,EACMC,EAAU,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAO,IAAA,IAAYC,EAAAA,KAAM,MAAO,CAAE,KAAM,SAAU,SAAU,CAACA,EAAAA,KAAM,MAAO,CAAE,cAAe,OAAQ,UAAWC,EAAA,GAAGN,EAAQI,GAAQH,EAAUG,CAAI,EAAGD,CAAS,EAAG,QAAS,cAAe,KAAM,OAAQ,MAAO,6BAA8B,SAAU,CAACI,EAAA,IAAK,OAAQ,CAAE,EAAG,+WAAgX,KAAM,cAAe,CAAC,EAAGA,EAAA,IAAK,OAAQ,CAAE,EAAG,glBAAilB,KAAM,aAAc,CAAC,CAAC,CAAA,CAAG,EAAGA,MAAK,OAAQ,CAAE,UAAW,UAAW,SAAU,YAAA,CAAc,CAAC,CAAG,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.js","sources":["../../src/elements/Spinner.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCN = 'animate-spin mr-2 text-chrome-200 fill-chrome-500';\nconst sizeCNMap = {\n xs: 'w-4 h-4',\n sm: 'w-6 h-6',\n md: 'w-8 h-8',\n lg: 'w-10 h-10',\n};\nconst Spinner = ({ className, size = 'md' }) => (_jsxs(\"div\", { role: \"status\", children: [_jsxs(\"svg\", { \"aria-hidden\": \"true\", className: cn(baseCN, size && sizeCNMap[size], className), viewBox: \"0 0 100 101\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", children: [_jsx(\"path\", { d: \"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\", fill: \"currentColor\" }), _jsx(\"path\", { d: \"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\", fill: \"currentFill\" })] }), _jsx(\"span\", { className: \"sr-only\", children: \"Loading...\" })] }));\nexport default Spinner;\n"],"names":["baseCN","sizeCNMap","Spinner","className","size","_jsxs","cn","_jsx"],"mappings":";;AAeA,MAAMA,IAAS,qDACTC,IAAY;AAAA,EACd,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACR,GACMC,IAAU,CAAC,EAAE,WAAAC,GAAW,MAAAC,IAAO,KAAA,MAAYC,EAAM,OAAO,EAAE,MAAM,UAAU,UAAU,CAACA,EAAM,OAAO,EAAE,eAAe,QAAQ,WAAWC,EAAGN,GAAQI,KAAQH,EAAUG,CAAI,GAAGD,CAAS,GAAG,SAAS,eAAe,MAAM,QAAQ,OAAO,8BAA8B,UAAU,CAACI,EAAK,QAAQ,EAAE,GAAG,gXAAgX,MAAM,eAAe,CAAC,GAAGA,EAAK,QAAQ,EAAE,GAAG,ilBAAilB,MAAM,cAAc,CAAC,CAAC,EAAA,CAAG,GAAGA,EAAK,QAAQ,EAAE,WAAW,WAAW,UAAU,aAAA,CAAc,CAAC,EAAG,CAAA;"}
|
|
1
|
+
{"version":3,"file":"Spinner.js","sources":["../../src/elements/Spinner.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { cn } from '@/lib/utils';\nconst baseCN = 'animate-spin mr-2 text-chrome-200 fill-chrome-500';\nconst sizeCNMap = {\n xs: 'w-4 h-4',\n sm: 'w-6 h-6',\n md: 'w-8 h-8',\n lg: 'w-10 h-10',\n};\nconst Spinner = ({ className, size = 'md' }) => (_jsxs(\"div\", { role: \"status\", children: [_jsxs(\"svg\", { \"aria-hidden\": \"true\", className: cn(baseCN, size && sizeCNMap[size], className), viewBox: \"0 0 100 101\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", children: [_jsx(\"path\", { d: \"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\", fill: \"currentColor\" }), _jsx(\"path\", { d: \"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\", fill: \"currentFill\" })] }), _jsx(\"span\", { className: \"sr-only\", children: \"Loading...\" })] }));\nexport default Spinner;\n"],"names":["baseCN","sizeCNMap","Spinner","className","size","_jsxs","cn","_jsx"],"mappings":";;AAeA,MAAMA,IAAS,qDACTC,IAAY;AAAA,EACd,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACR,GACMC,IAAU,CAAC,EAAE,WAAAC,GAAW,MAAAC,IAAO,KAAA,MAAYC,EAAM,OAAO,EAAE,MAAM,UAAU,UAAU,CAACA,EAAM,OAAO,EAAE,eAAe,QAAQ,WAAWC,EAAGN,GAAQI,KAAQH,EAAUG,CAAI,GAAGD,CAAS,GAAG,SAAS,eAAe,MAAM,QAAQ,OAAO,8BAA8B,UAAU,CAACI,EAAK,QAAQ,EAAE,GAAG,gXAAgX,MAAM,eAAe,CAAC,GAAGA,EAAK,QAAQ,EAAE,GAAG,ilBAAilB,MAAM,cAAc,CAAC,CAAC,EAAA,CAAG,GAAGA,EAAK,QAAQ,EAAE,WAAW,WAAW,UAAU,aAAA,CAAc,CAAC,EAAG,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.cjs","sources":["../../src/elements/Tabs.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst Tabs = TabsPrimitive.Root;\nconst TabsList = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.List, { ref: ref, className: cn('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className), ...props })));\nTabsList.displayName = TabsPrimitive.List.displayName;\nconst TabsTrigger = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Trigger, { ref: ref, className: cn('inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className), ...props })));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\nconst TabsContent = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Content, { ref: ref, className: cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className), ...props })));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\nexport { Tabs, TabsList, TabsTrigger, TabsContent, };\n"],"names":["Tabs","TabsPrimitive","TabsList","forwardRef","className","props","ref","_jsx","cn","TabsTrigger","TabsContent"],"mappings":"keAKMA,EAAOC,EAAc,KACrBC,EAAWC,
|
|
1
|
+
{"version":3,"file":"Tabs.cjs","sources":["../../src/elements/Tabs.tsx"],"sourcesContent":["'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { forwardRef } from 'react';\nimport { cn } from '@/lib/utils';\nconst Tabs = TabsPrimitive.Root;\nconst TabsList = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.List, { ref: ref, className: cn('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className), ...props })));\nTabsList.displayName = TabsPrimitive.List.displayName;\nconst TabsTrigger = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Trigger, { ref: ref, className: cn('inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className), ...props })));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\nconst TabsContent = forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Content, { ref: ref, className: cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className), ...props })));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\nexport { Tabs, TabsList, TabsTrigger, TabsContent, };\n"],"names":["Tabs","TabsPrimitive","TabsList","forwardRef","className","props","ref","_jsx","cn","TabsTrigger","TabsContent"],"mappings":"keAKMA,EAAOC,EAAc,KACrBC,EAAWC,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAS,EAAAC,IAASC,MAAKN,EAAc,KAAM,CAAE,IAAAK,EAAU,UAAWE,EAAG,GAAA,6FAA8FJ,CAAS,EAAG,GAAGC,EAAO,CAAE,EACxOH,EAAS,YAAcD,EAAc,KAAK,YACpC,MAAAQ,EAAcN,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAS,EAAAC,IAASC,MAAKN,EAAc,QAAS,CAAE,IAAAK,EAAU,UAAWE,EAAG,GAAA,sYAAuYJ,CAAS,EAAG,GAAGC,EAAO,CAAE,EACvhBI,EAAY,YAAcR,EAAc,QAAQ,YAC1C,MAAAS,EAAcP,aAAW,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAS,EAAAC,IAASC,MAAKN,EAAc,QAAS,CAAE,IAAAK,EAAU,UAAWE,EAAG,GAAA,kIAAmIJ,CAAS,EAAG,GAAGC,EAAO,CAAE,EACnRK,EAAY,YAAcT,EAAc,QAAQ"}
|