@jacshuo/onyx 0.1.8 → 0.2.1
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 +66 -2
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.d.cts +3 -1
- package/dist/Alert.d.ts +3 -1
- package/dist/Alert.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.js +1 -1
- package/dist/Checkbox.cjs +1 -0
- package/dist/Checkbox.d.cts +21 -0
- package/dist/Checkbox.d.ts +21 -0
- package/dist/Checkbox.js +1 -0
- package/dist/CodeBlock.cjs +1 -0
- package/dist/CodeBlock.d.cts +22 -0
- package/dist/CodeBlock.d.ts +22 -0
- package/dist/CodeBlock.js +1 -0
- package/dist/Dialog.cjs +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.d.cts +8 -0
- package/dist/Dropdown.d.ts +8 -0
- package/dist/Dropdown.js +1 -1
- package/dist/DropdownButton.cjs +1 -1
- package/dist/DropdownButton.js +1 -1
- package/dist/FileExplorer.cjs +1 -1
- package/dist/FileExplorer.js +1 -1
- package/dist/Input.cjs +1 -1
- package/dist/Input.js +1 -1
- package/dist/Label.cjs +1 -1
- package/dist/Label.js +1 -1
- package/dist/List.cjs +1 -1
- package/dist/List.d.cts +6 -2
- package/dist/List.d.ts +6 -2
- package/dist/List.js +1 -1
- package/dist/NavLink.cjs +1 -0
- package/dist/NavLink.d.cts +13 -0
- package/dist/NavLink.d.ts +13 -0
- package/dist/NavLink.js +1 -0
- package/dist/Panel.cjs +1 -1
- package/dist/Panel.js +1 -1
- package/dist/ProgressBar.cjs +1 -0
- package/dist/ProgressBar.d.cts +21 -0
- package/dist/ProgressBar.d.ts +21 -0
- package/dist/ProgressBar.js +1 -0
- package/dist/Radio.cjs +1 -0
- package/dist/Radio.d.cts +33 -0
- package/dist/Radio.d.ts +33 -0
- package/dist/Radio.js +1 -0
- package/dist/Spin.cjs +1 -0
- package/dist/Spin.d.cts +26 -0
- package/dist/Spin.d.ts +26 -0
- package/dist/Spin.js +1 -0
- package/dist/Switch.cjs +1 -0
- package/dist/Switch.d.cts +23 -0
- package/dist/Switch.d.ts +23 -0
- package/dist/Switch.js +1 -0
- package/dist/Table.cjs +1 -1
- package/dist/Table.d.cts +19 -3
- package/dist/Table.d.ts +19 -3
- package/dist/Table.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/TextBox.cjs +1 -0
- package/dist/TextBox.d.cts +16 -0
- package/dist/TextBox.d.ts +16 -0
- package/dist/TextBox.js +1 -0
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/Tree.cjs +1 -1
- package/dist/Tree.d.cts +3 -1
- package/dist/Tree.d.ts +3 -1
- package/dist/Tree.js +1 -1
- package/dist/chunks/chunk-24YBOQFV.cjs +2 -0
- package/dist/chunks/chunk-2TTIBHQ3.js +1 -0
- package/dist/chunks/chunk-3B5OL3PD.cjs +2 -0
- package/dist/chunks/chunk-64BRBJ5M.js +1 -0
- package/dist/chunks/{chunk-NG7F3GCN.js → chunk-6DR7FZ4Y.js} +1 -1
- package/dist/chunks/{chunk-N36YROV3.js → chunk-7DM4FEFY.js} +1 -1
- package/dist/chunks/{chunk-4BKLB4KV.cjs → chunk-7PD2UMAG.cjs} +1 -1
- package/dist/chunks/chunk-7QV2AV32.cjs +1 -0
- package/dist/chunks/chunk-A7BECCRP.cjs +1 -0
- package/dist/chunks/{chunk-HA5QPLJP.cjs → chunk-A7SZGBY2.cjs} +1 -1
- package/dist/chunks/{chunk-ENRXEISR.js → chunk-BGUKKSPF.js} +1 -1
- package/dist/chunks/{chunk-VDC7N5TC.js → chunk-DCWKY33F.js} +1 -1
- package/dist/chunks/chunk-EQXC34N2.cjs +2 -0
- package/dist/chunks/chunk-FROZM2O6.js +1 -0
- package/dist/chunks/chunk-GQDGQUKK.js +1 -0
- package/dist/chunks/{chunk-BQLPFPCA.cjs → chunk-GT56J65P.cjs} +1 -1
- package/dist/chunks/{chunk-MXDZHU6E.cjs → chunk-GW4C7AV6.cjs} +2 -2
- package/dist/chunks/chunk-H35HQKON.js +2 -0
- package/dist/chunks/chunk-H6MHL66N.js +1 -0
- package/dist/chunks/{chunk-EK4BC3WT.cjs → chunk-HFHOE2PH.cjs} +1 -1
- package/dist/chunks/{chunk-JAKATE3I.js → chunk-HR4MRHSX.js} +1 -1
- package/dist/chunks/{chunk-7NYDMXZT.cjs → chunk-HSLG4VVI.cjs} +1 -1
- package/dist/chunks/{chunk-TDI2N27U.cjs → chunk-HSWWY3SE.cjs} +1 -1
- package/dist/chunks/{chunk-5PFWPAB6.js → chunk-I327TE7P.js} +1 -1
- package/dist/chunks/{chunk-6HZRNHE6.js → chunk-IPPWOV6D.js} +1 -1
- package/dist/chunks/chunk-K4UGTWDR.js +1 -0
- package/dist/chunks/chunk-KFQVZ2HC.cjs +1 -0
- package/dist/chunks/chunk-KG3IXPCM.js +2 -0
- package/dist/chunks/chunk-LCLJVRKK.cjs +1 -0
- package/dist/chunks/chunk-LZZTFSBF.js +1 -0
- package/dist/chunks/{chunk-GAK5OQW4.cjs → chunk-MSBDCLPM.cjs} +1 -1
- package/dist/chunks/{chunk-PODSD5UT.js → chunk-MVGDKSBE.js} +1 -1
- package/dist/chunks/{chunk-66LIYNLT.cjs → chunk-NFRGBE42.cjs} +1 -1
- package/dist/chunks/chunk-NI2HVXR2.js +1 -0
- package/dist/chunks/chunk-NXWDOFPX.cjs +1 -0
- package/dist/chunks/chunk-NYTZZ5ZX.cjs +1 -0
- package/dist/chunks/{chunk-U2ZQHP4I.cjs → chunk-OMBYGQJE.cjs} +1 -1
- package/dist/chunks/chunk-PC4PVKTK.js +2 -0
- package/dist/chunks/chunk-Q53OOZJ3.cjs +1 -0
- package/dist/chunks/chunk-R7ZKMSZ3.js +1 -0
- package/dist/chunks/{chunk-XCP37UUA.cjs → chunk-SJ2HIDEM.cjs} +1 -1
- package/dist/chunks/{chunk-AAFG7R4U.cjs → chunk-SKZIAHHY.cjs} +1 -1
- package/dist/chunks/{chunk-R2K6KI4L.js → chunk-T3WU6A7R.js} +1 -1
- package/dist/chunks/{chunk-NCJ5A6VE.js → chunk-VHOOZBWZ.js} +1 -1
- package/dist/chunks/chunk-W2JIAB3E.js +1 -0
- package/dist/chunks/chunk-WL4AMFUA.cjs +1 -0
- package/dist/chunks/chunk-WQA7PVJO.js +1 -0
- package/dist/chunks/{chunk-DXXCR4ON.js → chunk-X3PUHNVJ.js} +1 -1
- package/dist/chunks/chunk-X4OS5ODF.cjs +1 -0
- package/dist/chunks/chunk-XOZYC6XB.cjs +1 -0
- package/dist/chunks/{chunk-2DFUB3KN.js → chunk-YWD2VK35.js} +1 -1
- package/dist/chunks/chunk-ZEHGTD6Y.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +1 -1
- package/dist/styles/base.css +728 -0
- package/dist/styles/tailwind.css +21 -0
- package/dist/styles/tokens.css +71 -0
- package/dist/styles.css +728 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +32 -1
- package/dist/theme.d.ts +32 -1
- package/dist/theme.js +1 -1
- package/package.json +2 -1
- package/dist/chunks/chunk-5XPTHIGM.cjs +0 -1
- package/dist/chunks/chunk-63LKYF4D.cjs +0 -1
- package/dist/chunks/chunk-6OLB4BUJ.js +0 -1
- package/dist/chunks/chunk-ACQOSYBI.js +0 -1
- package/dist/chunks/chunk-BW6NCATH.js +0 -1
- package/dist/chunks/chunk-DWTXICFN.js +0 -1
- package/dist/chunks/chunk-ER2MYWQO.cjs +0 -1
- package/dist/chunks/chunk-NBLJWONR.cjs +0 -1
- package/dist/chunks/chunk-ORNYPP3O.cjs +0 -1
- package/dist/chunks/chunk-PSMWVB3O.js +0 -1
- package/dist/chunks/chunk-QLKUAE3R.cjs +0 -1
- package/dist/chunks/chunk-SMZQSZH2.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkNYTZZ5ZX_cjs=require('./chunk-NYTZZ5ZX.cjs'),chunkX5YP5TMY_cjs=require('./chunk-X5YP5TMY.cjs'),react=require('react'),jsxRuntime=require('react/jsx-runtime');var C=react.createContext(null);function M({name:t,value:a,defaultValue:p,onValueChange:o,intent:u,size:m,disabled:f,className:s,children:g}){let r=react.useId(),e=t??r,[h,d]=react.useState(p),v=a??h,l=react.useCallback(c=>{a===void 0&&d(c),o?.(c);},[a,o]);return jsxRuntime.jsx(C.Provider,{value:{name:e,value:v,onChange:l,intent:u,size:m,disabled:f},children:jsxRuntime.jsx("div",{role:"radiogroup",className:chunkX5YP5TMY_cjs.a("flex flex-col gap-2",s),children:g})})}var G={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"};function S({value:t,intent:a,size:p,label:o,id:u,className:m,disabled:f,...s}){let g=react.useId(),r=u??g,e=react.useContext(C),h=a??e?.intent,d=p??e?.size,v=d??"md",l=f??e?.disabled,c=s.name??e?.name,x=e?e.value===t:void 0,b=react.useCallback(P=>{P.target.checked&&e?.onChange(t);},[e,t]);return jsxRuntime.jsxs("label",{htmlFor:r,className:chunkX5YP5TMY_cjs.a("inline-flex cursor-pointer items-center gap-2 select-none",l&&"pointer-events-none opacity-50",m),children:[jsxRuntime.jsx("input",{...s,id:r,type:"radio",name:c,value:t,className:"sr-only",checked:x,disabled:l,onChange:b}),jsxRuntime.jsx("span",{className:chunkX5YP5TMY_cjs.a(chunkNYTZZ5ZX_cjs.s({intent:h,size:d,checked:x?"on":"off"})),children:jsxRuntime.jsx("span",{className:chunkX5YP5TMY_cjs.a("rounded-full bg-white transition-all duration-200",G[v],x?"scale-100 opacity-100":"scale-0 opacity-0")})}),o&&jsxRuntime.jsx("span",{className:"text-sm text-primary-700 dark:text-primary-300",children:o})]})}exports.a=M;exports.b=S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {t}from'./chunk-H6MHL66N.js';import {a}from'./chunk-AXBJKPZZ.js';import {useId,useState,useCallback}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var C={sm:{trackFixed:"h-5 w-9",trackH:"h-5 min-w-9",thumb:"h-3.5 w-3.5",thumbTop:"top-[3px]",thumbOff:"left-[2px]",thumbOn:"left-[calc(100%-16px)]",pad:"pl-[6px] pr-[18px]",contentLeft:"left-[6px]",contentRight:"right-[6px]",icon:"text-[10px] [&_svg]:h-3 [&_svg]:w-3"},md:{trackFixed:"h-6 w-11",trackH:"h-6 min-w-11",thumb:"h-4.5 w-4.5",thumbTop:"top-[3px]",thumbOff:"left-[2px]",thumbOn:"left-[calc(100%-20px)]",pad:"pl-[7px] pr-[23px]",contentLeft:"left-[7px]",contentRight:"right-[7px]",icon:"text-xs [&_svg]:h-3.5 [&_svg]:w-3.5"},lg:{trackFixed:"h-7 w-14",trackH:"h-7 min-w-14",thumb:"h-5.5 w-5.5",thumbTop:"top-[3px]",thumbOff:"left-[3px]",thumbOn:"left-[calc(100%-25px)]",pad:"pl-[8px] pr-[28px]",contentLeft:"left-[8px]",contentRight:"right-[8px]",icon:"text-sm [&_svg]:h-4 [&_svg]:w-4"}},F={primary:"text-primary-100",secondary:"text-secondary-100",danger:"text-danger-100",warning:"text-warning-100",success:"text-success-100"};function z({checked:i,defaultChecked:g=false,onCheckedChange:p,checkedContent:o,uncheckedContent:c,intent:r,size:l,label:h,id:w,className:b,disabled:m,...y}){let k=useId(),d=w??k,v=l??"md",N=r??"primary",t$1=C[v],u=o!=null||c!=null,[R,O]=useState(g),a$1=i??R,T=useCallback(H=>{let x=H.target.checked;i===void 0&&O(x),p?.(x);},[i,p]);return jsxs("label",{htmlFor:d,className:a("inline-flex cursor-pointer items-center gap-2",m&&"pointer-events-none opacity-50",b),children:[jsx("input",{...y,id:d,type:"checkbox",role:"switch",className:"sr-only",checked:a$1,disabled:m,onChange:T,"aria-checked":a$1}),jsxs("span",{className:a("relative inline-flex shrink-0 items-center rounded-full transition-colors duration-200",u?t$1.trackH:t$1.trackFixed,t({intent:r,size:l,checked:a$1?"on":"off"})),children:[u?jsxs(Fragment,{children:[jsxs("span",{className:a("pointer-events-none invisible inline-grid",t$1.icon),children:[jsx("span",{className:a("[grid-area:1/1] whitespace-nowrap",t$1.pad),children:o}),jsx("span",{className:a("[grid-area:1/1] whitespace-nowrap",t$1.pad),children:c})]}),jsx("span",{className:a("absolute top-1/2 -translate-y-1/2 whitespace-nowrap font-medium leading-none transition-opacity duration-200",t$1.contentLeft,t$1.icon,F[N],a$1?"opacity-100":"opacity-0"),children:o}),jsx("span",{className:a("absolute top-1/2 -translate-y-1/2 whitespace-nowrap font-medium leading-none transition-opacity duration-200",t$1.contentRight,t$1.icon,"text-primary-400 dark:text-primary-500",a$1?"opacity-0":"opacity-100"),children:c})]}):null,jsx("span",{className:a("pointer-events-none absolute rounded-full bg-white shadow-sm transition-[left] duration-200 ease-in-out",t$1.thumb,t$1.thumbTop,a$1?t$1.thumbOn:t$1.thumbOff)})]}),h&&jsx("span",{className:"select-none text-sm text-primary-700 dark:text-primary-300",children:h})]})}export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e}from'./chunk-
|
|
1
|
+
import {e}from'./chunk-H6MHL66N.js';import {a}from'./chunk-AXBJKPZZ.js';import {jsx,jsxs}from'react/jsx-runtime';function f({intent:t,size:r,className:i,...o}){return jsx("div",{className:a(e({intent:t,size:r}),i),...o})}function u({className:t,...r}){return jsx("div",{className:a("mb-4 space-y-1",t),...r})}function x({className:t,...r}){return jsx("h3",{className:a("text-primary-900 dark:text-primary-100 text-lg font-semibold",t),...r})}function v({className:t,...r}){return jsx("p",{className:a("text-primary-500 dark:text-primary-400 text-sm",t),...r})}function y({className:t,...r}){return jsx("div",{className:a("text-primary-700 dark:text-primary-300 text-sm",t),...r})}function H({className:t,...r}){return jsx("div",{className:a("border-primary-100 dark:border-primary-800 mt-4 flex items-center gap-2 border-t pt-4",t),...r})}function b({intent:t,media:r,mediaPosition:i="left",className:o,children:l,...s}){let d=jsx("div",{className:a("relative shrink-0 overflow-hidden",i==="left"?"rounded-l-lg":"rounded-r-lg"),style:{width:r.width??"10rem"},children:r.src?jsx("img",{src:r.src,alt:r.alt??"",className:"h-full w-full object-cover",draggable:false}):r.icon?jsx("div",{className:"bg-primary-100 text-primary-500 dark:bg-primary-800 dark:text-primary-400 flex h-full w-full items-center justify-center",children:r.icon}):null});return jsxs("div",{className:a(e({intent:t}),"flex overflow-hidden p-0",i==="right"&&"flex-row-reverse",o),...s,children:[d,jsx("div",{className:"flex min-w-0 flex-1 flex-col p-4",children:l})]})}export{f as a,u as b,x as c,v as d,y as e,H as f,b as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkNYTZZ5ZX_cjs=require('./chunk-NYTZZ5ZX.cjs'),chunkX5YP5TMY_cjs=require('./chunk-X5YP5TMY.cjs'),react=require('react'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');function J({intent:a,className:r,...d}){return jsxRuntime.jsx("div",{className:"w-full overflow-auto",children:jsxRuntime.jsx("table",{className:chunkX5YP5TMY_cjs.a(chunkNYTZZ5ZX_cjs.g({intent:a}),r),...d})})}function O({className:a,...r}){return jsxRuntime.jsx("thead",{className:chunkX5YP5TMY_cjs.a("bg-primary-50 text-primary-600 dark:bg-primary-800/50 dark:text-primary-400",a),...r})}function Q({className:a,...r}){return jsxRuntime.jsx("tbody",{className:chunkX5YP5TMY_cjs.a("[&_tr:last-child]:border-0",a),...r})}function U({className:a,...r}){return jsxRuntime.jsx("tr",{className:chunkX5YP5TMY_cjs.a("border-primary-200 hover:bg-primary-50/50 dark:border-primary-700 dark:hover:bg-primary-800/30 border-b transition-colors",a),...r})}function E({className:a,...r}){return jsxRuntime.jsx("th",{className:chunkX5YP5TMY_cjs.a("px-4 py-3 text-left text-xs font-semibold tracking-wider uppercase",a),...r})}function P({className:a,...r}){return jsxRuntime.jsx("td",{className:chunkX5YP5TMY_cjs.a("text-primary-700 dark:text-primary-300 px-4 py-3",a),...r})}function W({icon:a,text:r="No data",className:d}){return jsxRuntime.jsxs("div",{className:chunkX5YP5TMY_cjs.a("flex flex-col items-center justify-center gap-3 py-16 text-primary-400 dark:text-primary-500",d),children:[a??jsxRuntime.jsx(lucideReact.Inbox,{className:"h-12 w-12 stroke-[1.2]"}),jsxRuntime.jsx("span",{className:"text-sm",children:r})]})}function Se({columns:a,data:r,sort:d,onSortChange:f,defaultSort:h=null,rowKey:T,rowActions:l,intent:x,className:X,empty:w}){let[L,_]=react.useState(h),b=d??L,A=react.useCallback(n=>{let y=b?.column===n?b.direction==="asc"?{column:n,direction:"desc"}:null:{column:n,direction:"asc"};f?f(y):_(y);},[b,f]),k=react.useMemo(()=>{if(!b)return r;let n=a.find(D=>D.key===b.column);if(!n)return r;let y=n.compareFn??((D,$)=>{let p=n.cell(D),N=n.cell($);return p==null&&N==null?0:p==null?-1:N==null?1:typeof p=="number"&&typeof N=="number"?p-N:String(p).localeCompare(String(N))}),g=[...r].sort(y);return b.direction==="desc"?g.reverse():g},[r,b,a]);return jsxRuntime.jsxs(J,{intent:x,className:X,children:[jsxRuntime.jsx(O,{children:jsxRuntime.jsxs(U,{children:[a.map(n=>{let y=n.sortable!==false,g=b?.column===n.key;return jsxRuntime.jsx(E,{className:chunkX5YP5TMY_cjs.a(y&&"cursor-pointer select-none",n.headerClassName),onClick:y?()=>A(n.key):void 0,"aria-sort":g?b.direction==="asc"?"ascending":"descending":void 0,children:jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1",children:[n.header,y&&jsxRuntime.jsx(Y,{active:g,direction:g?b.direction:null})]})},n.key)}),l&&jsxRuntime.jsx(E,{className:"w-20 text-right",children:"Actions"})]})}),jsxRuntime.jsx(Q,{children:k.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(l?1:0),children:jsxRuntime.jsx(W,{...w})})}):k.map((n,y)=>jsxRuntime.jsxs(U,{children:[a.map(g=>jsxRuntime.jsx(P,{className:g.cellClassName,children:g.cell(n)},g.key)),l&&jsxRuntime.jsx(P,{className:"text-right",children:jsxRuntime.jsx("span",{className:"inline-flex items-center gap-1",children:l(n)})})]},T?T(n,y):y))})]})}function ge({value:a,onCommit:r,onCancel:d}){let[f,h]=react.useState(a),T=react.useRef(null);react.useEffect(()=>{T.current?.focus(),T.current?.select();},[]);let l=()=>r(f);return jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("input",{ref:T,type:"text",value:f,onChange:x=>h(x.target.value),onKeyDown:x=>{x.key==="Enter"&&l(),x.key==="Escape"&&d();},"aria-label":"Edit cell",className:"min-w-0 flex-1 rounded border border-primary-400 bg-white px-1.5 py-0.5 text-sm outline-none focus:ring-1 focus:ring-primary-400 dark:border-primary-600 dark:bg-secondary-800"}),jsxRuntime.jsx("button",{type:"button",onClick:l,className:"text-success-600 hover:text-success-700 dark:text-success-400","aria-label":"Confirm",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsx("button",{type:"button",onClick:d,className:"text-danger-500 hover:text-danger-600 dark:text-danger-400","aria-label":"Cancel",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3.5 w-3.5"})})]})}function Ke({columns:a,data:r,rowKey:d,sort:f,onSortChange:h,defaultSort:T=null,selectionMode:l="none",selected:x,onSelectionChange:X,editable:w=false,onCellEdit:L,toolbar:_=false,onAdd:b,onDelete:A,rowActions:k,intent:n,className:y,empty:g}){let[D,$]=react.useState(T),p=f??D,N=react.useCallback(t=>{let s=p?.column===t?p.direction==="asc"?{column:t,direction:"desc"}:null:{column:t,direction:"asc"};h?h(s):$(s);},[p,h]),M=react.useMemo(()=>{if(!p)return r;let t=a.find(S=>S.key===p.column);if(!t)return r;let s=t.compareFn??((S,i)=>{let K=t.cell(S),C=t.cell(i);return K==null&&C==null?0:K==null?-1:C==null?1:typeof K=="number"&&typeof C=="number"?K-C:String(K).localeCompare(String(C))}),o=[...r].sort(s);return p.direction==="desc"?o.reverse():o},[r,p,a]),[Z,ee]=react.useState([]),c=x??Z,R=X??ee,I=react.useMemo(()=>M.map((t,s)=>d(t,s)),[M,d]),B=l==="multiple"&&I.length>0&&I.every(t=>c.includes(t)),te=l==="multiple"&&c.length>0&&!B,j=react.useCallback(t=>{l==="single"?R(c.includes(t)?[]:[t]):l==="multiple"&&R(c.includes(t)?c.filter(s=>s!==t):[...c,t]);},[l,c,R]),ae=react.useCallback(()=>{R(B?[]:I);},[B,I,R]),[z,F]=react.useState(null),re=react.useCallback((t,s,o)=>{w&&o!==false&&F({rowKey:t,colKey:s});},[w]),ne=react.useCallback((t,s,o)=>{L?.(t,s,o),F(null);},[L]);return jsxRuntime.jsxs("div",{className:"space-y-2",children:[_&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[b&&jsxRuntime.jsxs("button",{type:"button",onClick:b,className:"inline-flex items-center gap-1.5 rounded-md border border-secondary-300 bg-white px-3 py-1.5 text-sm font-medium text-secondary-700 transition-colors hover:bg-secondary-50 dark:border-secondary-600 dark:bg-secondary-800 dark:text-secondary-300 dark:hover:bg-secondary-700",children:[jsxRuntime.jsx(lucideReact.Plus,{className:"h-3.5 w-3.5"})," Add"]}),A&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>A(c),disabled:c.length===0,className:"inline-flex items-center gap-1.5 rounded-md border border-secondary-300 bg-white px-3 py-1.5 text-sm font-medium text-danger-600 transition-colors hover:bg-danger-50 disabled:opacity-40 disabled:pointer-events-none dark:border-secondary-600 dark:bg-secondary-800 dark:text-danger-400 dark:hover:bg-danger-900/20",children:[jsxRuntime.jsx(lucideReact.Trash2,{className:"h-3.5 w-3.5"})," Delete",c.length>0&&` (${c.length})`]}),w&&c.length===1&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>{let t=a.find(s=>s.editable!==false);t&&F({rowKey:c[0],colKey:t.key});},className:"inline-flex items-center gap-1.5 rounded-md border border-secondary-300 bg-white px-3 py-1.5 text-sm font-medium text-secondary-700 transition-colors hover:bg-secondary-50 dark:border-secondary-600 dark:bg-secondary-800 dark:text-secondary-300 dark:hover:bg-secondary-700",children:[jsxRuntime.jsx(lucideReact.Pencil,{className:"h-3.5 w-3.5"})," Edit"]}),c.length>0&&jsxRuntime.jsxs("span",{className:"ml-auto text-sm text-secondary-500 dark:text-secondary-400",children:[c.length," row",c.length>1?"s":""," selected"]})]}),jsxRuntime.jsxs(J,{intent:n,className:y,children:[jsxRuntime.jsx(O,{children:jsxRuntime.jsxs(U,{children:[l==="multiple"&&jsxRuntime.jsx(E,{className:"w-10",children:jsxRuntime.jsx("input",{type:"checkbox",checked:B,ref:t=>{t&&(t.indeterminate=te);},onChange:ae,className:"h-4 w-4 cursor-pointer rounded border-secondary-300 accent-primary-600","aria-label":"Select all"})}),l==="single"&&jsxRuntime.jsx(E,{className:"w-10"}),a.map(t=>{let s=t.sortable!==false,o=p?.column===t.key;return jsxRuntime.jsx(E,{className:chunkX5YP5TMY_cjs.a(s&&"cursor-pointer select-none",t.headerClassName),onClick:s?()=>N(t.key):void 0,"aria-sort":o?p.direction==="asc"?"ascending":"descending":void 0,children:jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1",children:[t.header,s&&jsxRuntime.jsx(Y,{active:o,direction:o?p.direction:null})]})},t.key)}),k&&jsxRuntime.jsx(E,{className:"w-20 text-right",children:"Actions"})]})}),jsxRuntime.jsx(Q,{children:M.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(l!=="none"?1:0)+(k?1:0),children:jsxRuntime.jsx(W,{...g})})}):M.map((t,s)=>{let o=d(t,s),S=c.includes(o);return jsxRuntime.jsxs(U,{className:chunkX5YP5TMY_cjs.a(S&&"bg-primary-50/60 dark:bg-primary-900/20"),onClick:()=>{l!=="none"&&j(o);},children:[l==="multiple"&&jsxRuntime.jsx(P,{className:"w-10",children:jsxRuntime.jsx("input",{type:"checkbox",checked:S,onChange:()=>j(o),onClick:i=>i.stopPropagation(),className:"h-4 w-4 cursor-pointer rounded border-secondary-300 accent-primary-600","aria-label":"Select row"})}),l==="single"&&jsxRuntime.jsx(P,{className:"w-10",children:jsxRuntime.jsx("input",{type:"radio",checked:S,onChange:()=>j(o),onClick:i=>i.stopPropagation(),className:"h-4 w-4 cursor-pointer accent-primary-600","aria-label":"Select row"})}),a.map(i=>{let K=z?.rowKey===o&&z?.colKey===i.key,C=i.editValue?.(t)??(()=>{let v=i.cell(t);return typeof v=="string"||typeof v=="number"?String(v):""})();return jsxRuntime.jsx(P,{className:chunkX5YP5TMY_cjs.a(i.cellClassName,w&&i.editable!==false&&"cursor-text"),onDoubleClick:v=>{v.stopPropagation(),re(o,i.key,i.editable);},children:K?jsxRuntime.jsx(ge,{value:C,onCommit:v=>ne(o,i.key,v),onCancel:()=>F(null)}):i.cell(t)},i.key)}),k&&jsxRuntime.jsx(P,{className:"text-right",onClick:i=>i.stopPropagation(),children:jsxRuntime.jsx("span",{className:"inline-flex items-center gap-1",children:k(t)})})]},o)})})]})]})}function Y({active:a,direction:r}){let d="h-3.5 w-3.5 shrink-0";return !a||!r?jsxRuntime.jsx(lucideReact.ArrowUpDown,{className:chunkX5YP5TMY_cjs.a(d,"opacity-30")}):r==="asc"?jsxRuntime.jsx(lucideReact.ArrowUp,{className:chunkX5YP5TMY_cjs.a(d,"opacity-70")}):jsxRuntime.jsx(lucideReact.ArrowDown,{className:chunkX5YP5TMY_cjs.a(d,"opacity-70")})}exports.a=J;exports.b=O;exports.c=Q;exports.d=U;exports.e=E;exports.f=P;exports.g=W;exports.h=Se;exports.i=Ke;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkNYTZZ5ZX_cjs=require('./chunk-NYTZZ5ZX.cjs'),chunkX5YP5TMY_cjs=require('./chunk-X5YP5TMY.cjs'),react=require('react'),jsxRuntime=require('react/jsx-runtime');var M={sm:"h-3 w-3",md:"h-3.5 w-3.5",lg:"h-4 w-4"};function S({checked:o,defaultChecked:k=false,indeterminate:n=false,onCheckedChange:a,intent:m,size:s,label:c,id:u,className:x,disabled:r,...f}){let b=react.useId(),i=u??b,y=s??"md",[C,g]=react.useState(k),l=o??C,v=react.useCallback(L=>{let d=L.target.checked;o===void 0&&g(d),a?.(d);},[o,a]),p=l||n;return jsxRuntime.jsxs("label",{htmlFor:i,className:chunkX5YP5TMY_cjs.a("inline-flex cursor-pointer items-center gap-2 select-none",r&&"pointer-events-none opacity-50",x),children:[jsxRuntime.jsx("input",{...f,id:i,type:"checkbox",className:"sr-only",checked:l,disabled:r,onChange:v}),jsxRuntime.jsx("span",{className:chunkX5YP5TMY_cjs.a(chunkNYTZZ5ZX_cjs.r({intent:m,size:s,checked:p?"on":"off"})),children:jsxRuntime.jsx("svg",{viewBox:"0 0 16 16",fill:"none",className:chunkX5YP5TMY_cjs.a("text-white transition-all duration-200",M[y],p?"scale-100 opacity-100":"scale-0 opacity-0"),children:n?jsxRuntime.jsx("line",{x1:"3",y1:"8",x2:"13",y2:"8",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}):jsxRuntime.jsx("path",{d:"M3.5 8.5L6.5 11.5L12.5 4.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),c&&jsxRuntime.jsx("span",{className:"text-sm text-primary-700 dark:text-primary-300",children:c})]})}exports.a=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-H6MHL66N.js';import {a}from'./chunk-AXBJKPZZ.js';import {jsx,jsxs}from'react/jsx-runtime';var l={sm:{wrapper:"h-7 text-xs",prefix:"px-2 text-xs [&_svg]:h-3 [&_svg]:w-3",input:"px-2 text-xs",icon:"px-1.5 [&_svg]:h-3 [&_svg]:w-3"},md:{wrapper:"h-9 text-sm",prefix:"px-3 text-sm [&_svg]:h-4 [&_svg]:w-4",input:"px-3 py-2 text-sm",icon:"px-2 [&_svg]:h-4 [&_svg]:w-4"},lg:{wrapper:"h-11 text-base",prefix:"px-4 text-base [&_svg]:h-5 [&_svg]:w-5",input:"px-4 py-2.5 text-base",icon:"px-2.5 [&_svg]:h-5 [&_svg]:w-5"}},u={default:"border-secondary-300 focus-within:border-primary-500 focus-within:ring-2 focus-within:ring-primary-500/20 dark:border-secondary-600",error:"border-danger-400 focus-within:border-danger-500 focus-within:ring-2 focus-within:ring-danger-500/20"};function g({state:o="default",inputSize:i="md",className:p,prefix:s,suffix:a$1,action:t,...c$1}){if(!s&&!a$1&&!t)return jsx("input",{className:a(c({state:o,size:i}),p),...c$1});let r=l[i??"md"],x=u[o??"default"];return jsxs("div",{className:a("flex w-full items-center overflow-hidden rounded-md border bg-white transition-colors dark:bg-secondary-900",r.wrapper,x,p),children:[s&&jsx("span",{className:a("flex shrink-0 items-center gap-1.5 self-stretch border-r border-secondary-300 bg-secondary-50 font-medium text-secondary-600 dark:border-secondary-600 dark:bg-secondary-800 dark:text-secondary-300",r.prefix),children:s}),jsx("input",{className:a("min-w-0 flex-1 bg-transparent text-secondary-900 placeholder:text-secondary-400 focus:outline-none dark:text-secondary-100 dark:placeholder:text-secondary-600",r.input,s&&"pl-2"),...c$1}),a$1&&jsx("span",{className:a("pointer-events-none flex shrink-0 items-center text-secondary-400 dark:text-secondary-500",r.icon),children:a$1}),t&&jsx("button",{type:"button",onClick:t.onClick,"aria-label":t["aria-label"]??"Action",className:a("flex shrink-0 items-center text-secondary-500 transition-colors hover:text-primary-600 dark:text-secondary-400 dark:hover:text-primary-400",r.icon),children:t.icon})]})}export{g as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkNYTZZ5ZX_cjs=require('./chunk-NYTZZ5ZX.cjs'),chunkX5YP5TMY_cjs=require('./chunk-X5YP5TMY.cjs'),react=require('react'),reactDom=require('react-dom'),client=require('react-dom/client'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');function j({intent:t,className:e,children:o,...n}){return jsxRuntime.jsx("div",{className:chunkX5YP5TMY_cjs.a(chunkNYTZZ5ZX_cjs.u({intent:t}),e),role:"alert",...n,children:o})}function q({className:t,...e}){return jsxRuntime.jsx("h5",{className:chunkX5YP5TMY_cjs.a("flex items-center gap-1.5 font-semibold [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0",t),...e})}function B({className:t,...e}){return jsxRuntime.jsx("span",{className:chunkX5YP5TMY_cjs.a("mt-0.5 shrink-0 [&_svg]:h-5 [&_svg]:w-5",t),...e})}function J({className:t,...e}){return jsxRuntime.jsx("div",{className:chunkX5YP5TMY_cjs.a("flex-1 min-w-0 space-y-1",t),...e})}function K({className:t,...e}){return jsxRuntime.jsx("p",{className:chunkX5YP5TMY_cjs.a("text-sm opacity-90",t),...e})}var I=0,l=[],m=new Map,p=new Set;function M(){return l}function u(){p.forEach(t=>t());}function d(t){let e=m.get(t);e&&(clearTimeout(e),m.delete(t)),l=l.map(o=>o.id===t?{...o,exiting:true}:o),u(),setTimeout(()=>{l=l.filter(o=>o.id!==t),u();},200);}function H(t){let e=`alert-${++I}`;l=[...l,{...t,id:e}],u();let o=t.duration??5e3;if(o>0){let n=setTimeout(()=>{m.delete(e),d(e);},o);m.set(e,n);}return e}var f=16;function Q(t){f=t;}var E={"top-right":"right-4 items-end","top-left":"left-4 items-start","bottom-right":"bottom-4 right-4 items-end","bottom-left":"bottom-4 left-4 items-start","top-center":"left-1/2 -translate-x-1/2 items-center","bottom-center":"bottom-4 left-1/2 -translate-x-1/2 items-center"},L={"top-right":"animate-slide-in-right","top-left":"animate-slide-in-left","bottom-right":"animate-slide-in-right","bottom-left":"animate-slide-in-left","top-center":"animate-slide-in-top","bottom-center":"animate-slide-in-bottom"},w={success:lucideReact.CircleCheck,warning:lucideReact.TriangleAlert,error:lucideReact.CircleX,info:lucideReact.Info};function V({alert:t,onClose:e}){let o=t.intent??"info",n=w[o],a=t.position??"top-right";return jsxRuntime.jsxs("div",{className:chunkX5YP5TMY_cjs.a(chunkNYTZZ5ZX_cjs.u({intent:o}),L[a],t.exiting&&"opacity-0 transition-opacity duration-200","w-80"),role:"alert",children:[jsxRuntime.jsx(n,{className:"mt-0.5 h-5 w-5 shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1",children:[t.title&&jsxRuntime.jsx("p",{className:"font-semibold",children:t.title}),jsxRuntime.jsx("p",{className:chunkX5YP5TMY_cjs.a(t.title&&"text-sm opacity-90"),children:t.message})]}),jsxRuntime.jsx("button",{onClick:e,"aria-label":"Close notification",className:"shrink-0 cursor-pointer opacity-50 transition-opacity hover:opacity-100",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}var k=t=>t.startsWith("top");function S(){let t=react.useSyncExternalStore(n=>(p.add(n),()=>p.delete(n)),M),e=react.useRef(f);if(react.useEffect(()=>{e.current=f;},[]),t.length===0)return null;let o=t.reduce((n,a)=>{let s=a.position??"top-right";return (n[s]??(n[s]=[])).push(a),n},{});return reactDom.createPortal(jsxRuntime.jsx(jsxRuntime.Fragment,{children:Object.entries(o).map(([n,a])=>jsxRuntime.jsx("div",{style:k(n)?{top:`${e.current}px`}:void 0,className:chunkX5YP5TMY_cjs.a("pointer-events-none fixed z-100 flex flex-col gap-2",E[n]),children:a.map(s=>jsxRuntime.jsx(V,{alert:s,onClose:()=>d(s.id)},s.id))},n))}),document.body)}var g=false;function O(){if(g)return;g=true;let t=document.createElement("div");t.id="alert-toast-root",document.body.appendChild(t),client.createRoot(t).render(jsxRuntime.jsx(S,{}));}function U(){return react.useEffect(()=>{O();},[]),{addAlert:H,removeAlert:d}}exports.a=j;exports.b=q;exports.c=B;exports.d=J;exports.e=K;exports.f=Q;exports.g=U;
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkER2MYWQO_cjs=require('./chunks/chunk-ER2MYWQO.cjs'),chunkHA5QPLJP_cjs=require('./chunks/chunk-HA5QPLJP.cjs'),chunkORNYPP3O_cjs=require('./chunks/chunk-ORNYPP3O.cjs'),chunkUDH3OKNZ_cjs=require('./chunks/chunk-UDH3OKNZ.cjs'),chunk66LIYNLT_cjs=require('./chunks/chunk-66LIYNLT.cjs'),chunkKVV5ZEYV_cjs=require('./chunks/chunk-KVV5ZEYV.cjs'),chunkQLKUAE3R_cjs=require('./chunks/chunk-QLKUAE3R.cjs'),chunk7NYDMXZT_cjs=require('./chunks/chunk-7NYDMXZT.cjs'),chunkGAK5OQW4_cjs=require('./chunks/chunk-GAK5OQW4.cjs'),chunk5XPTHIGM_cjs=require('./chunks/chunk-5XPTHIGM.cjs'),chunk4BKLB4KV_cjs=require('./chunks/chunk-4BKLB4KV.cjs'),chunkMXDZHU6E_cjs=require('./chunks/chunk-MXDZHU6E.cjs'),chunkU2ZQHP4I_cjs=require('./chunks/chunk-U2ZQHP4I.cjs'),chunkCGGBE3GJ_cjs=require('./chunks/chunk-CGGBE3GJ.cjs'),chunkP652JDOU_cjs=require('./chunks/chunk-P652JDOU.cjs'),chunk6QQPQPD2_cjs=require('./chunks/chunk-6QQPQPD2.cjs'),chunkXCP37UUA_cjs=require('./chunks/chunk-XCP37UUA.cjs'),chunkAAFG7R4U_cjs=require('./chunks/chunk-AAFG7R4U.cjs'),chunk63LKYF4D_cjs=require('./chunks/chunk-63LKYF4D.cjs'),chunkEK4BC3WT_cjs=require('./chunks/chunk-EK4BC3WT.cjs'),chunkBQLPFPCA_cjs=require('./chunks/chunk-BQLPFPCA.cjs'),chunkTDI2N27U_cjs=require('./chunks/chunk-TDI2N27U.cjs'),chunkNBLJWONR_cjs=require('./chunks/chunk-NBLJWONR.cjs'),chunkOZVJMUXX_cjs=require('./chunks/chunk-OZVJMUXX.cjs'),chunkN4QZRR2Y_cjs=require('./chunks/chunk-N4QZRR2Y.cjs'),chunkX5YP5TMY_cjs=require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Tree",{enumerable:true,get:function(){return chunkER2MYWQO_cjs.a}});Object.defineProperty(exports,"TreeItem",{enumerable:true,get:function(){return chunkER2MYWQO_cjs.b}});Object.defineProperty(exports,"Label",{enumerable:true,get:function(){return chunkHA5QPLJP_cjs.a}});Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkORNYPP3O_cjs.a}});Object.defineProperty(exports,"ListItem",{enumerable:true,get:function(){return chunkORNYPP3O_cjs.b}});Object.defineProperty(exports,"MiniPlayer",{enumerable:true,get:function(){return chunkUDH3OKNZ_cjs.a}});Object.defineProperty(exports,"Panel",{enumerable:true,get:function(){return chunk66LIYNLT_cjs.a}});Object.defineProperty(exports,"PanelContent",{enumerable:true,get:function(){return chunk66LIYNLT_cjs.c}});Object.defineProperty(exports,"PanelHeader",{enumerable:true,get:function(){return chunk66LIYNLT_cjs.b}});Object.defineProperty(exports,"SideNav",{enumerable:true,get:function(){return chunkKVV5ZEYV_cjs.a}});Object.defineProperty(exports,"DataTable",{enumerable:true,get:function(){return chunkQLKUAE3R_cjs.h}});Object.defineProperty(exports,"SortableTable",{enumerable:true,get:function(){return chunkQLKUAE3R_cjs.g}});Object.defineProperty(exports,"Table",{enumerable:true,get:function(){return chunkQLKUAE3R_cjs.a}});Object.defineProperty(exports,"TableBody",{enumerable:true,get:function(){return chunkQLKUAE3R_cjs.c}});Object.defineProperty(exports,"TableCell",{enumerable:true,get:function(){return chunkQLKUAE3R_cjs.f}});Object.defineProperty(exports,"TableHead",{enumerable:true,get:function(){return chunkQLKUAE3R_cjs.e}});Object.defineProperty(exports,"TableHeader",{enumerable:true,get:function(){return chunkQLKUAE3R_cjs.b}});Object.defineProperty(exports,"TableRow",{enumerable:true,get:function(){return chunkQLKUAE3R_cjs.d}});Object.defineProperty(exports,"TabContent",{enumerable:true,get:function(){return chunk7NYDMXZT_cjs.e}});Object.defineProperty(exports,"TabList",{enumerable:true,get:function(){return chunk7NYDMXZT_cjs.b}});Object.defineProperty(exports,"TabPanels",{enumerable:true,get:function(){return chunk7NYDMXZT_cjs.d}});Object.defineProperty(exports,"TabTrigger",{enumerable:true,get:function(){return chunk7NYDMXZT_cjs.c}});Object.defineProperty(exports,"Tabs",{enumerable:true,get:function(){return chunk7NYDMXZT_cjs.a}});Object.defineProperty(exports,"Tooltip",{enumerable:true,get:function(){return chunkGAK5OQW4_cjs.a}});Object.defineProperty(exports,"Dropdown",{enumerable:true,get:function(){return chunk5XPTHIGM_cjs.a}});Object.defineProperty(exports,"DropdownButton",{enumerable:true,get:function(){return chunk4BKLB4KV_cjs.a}});Object.defineProperty(exports,"FileExplorer",{enumerable:true,get:function(){return chunkMXDZHU6E_cjs.a}});Object.defineProperty(exports,"Dialog",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.a}});Object.defineProperty(exports,"DialogClose",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.g}});Object.defineProperty(exports,"DialogContent",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.b}});Object.defineProperty(exports,"DialogDescription",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.e}});Object.defineProperty(exports,"DialogFooter",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.f}});Object.defineProperty(exports,"DialogHeader",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.c}});Object.defineProperty(exports,"DialogTitle",{enumerable:true,get:function(){return chunkU2ZQHP4I_cjs.d}});Object.defineProperty(exports,"FilmReel",{enumerable:true,get:function(){return chunkCGGBE3GJ_cjs.a}});Object.defineProperty(exports,"Header",{enumerable:true,get:function(){return chunkP652JDOU_cjs.a}});Object.defineProperty(exports,"ImageCard",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.a}});Object.defineProperty(exports,"ImageCardActions",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.e}});Object.defineProperty(exports,"ImageCardBody",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.b}});Object.defineProperty(exports,"ImageCardDescription",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.d}});Object.defineProperty(exports,"ImageCardTitle",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.c}});Object.defineProperty(exports,"Input",{enumerable:true,get:function(){return chunkXCP37UUA_cjs.a}});Object.defineProperty(exports,"Accordion",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.a}});Object.defineProperty(exports,"AccordionContent",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.d}});Object.defineProperty(exports,"AccordionItem",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.b}});Object.defineProperty(exports,"AccordionTrigger",{enumerable:true,get:function(){return chunkAAFG7R4U_cjs.c}});Object.defineProperty(exports,"Alert",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.a}});Object.defineProperty(exports,"AlertDescription",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.c}});Object.defineProperty(exports,"AlertTitle",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.b}});Object.defineProperty(exports,"configureAlertTopOffset",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.d}});Object.defineProperty(exports,"useAlert",{enumerable:true,get:function(){return chunk63LKYF4D_cjs.e}});Object.defineProperty(exports,"Badge",{enumerable:true,get:function(){return chunkEK4BC3WT_cjs.a}});Object.defineProperty(exports,"Button",{enumerable:true,get:function(){return chunkBQLPFPCA_cjs.a}});Object.defineProperty(exports,"Card",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.a}});Object.defineProperty(exports,"CardContent",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.e}});Object.defineProperty(exports,"CardDescription",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.d}});Object.defineProperty(exports,"CardFooter",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.f}});Object.defineProperty(exports,"CardHeader",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.b}});Object.defineProperty(exports,"CardTitle",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.c}});Object.defineProperty(exports,"HorizontalCard",{enumerable:true,get:function(){return chunkTDI2N27U_cjs.g}});Object.defineProperty(exports,"accordionVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.i}});Object.defineProperty(exports,"alertVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.n}});Object.defineProperty(exports,"badgeVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.b}});Object.defineProperty(exports,"buttonVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.a}});Object.defineProperty(exports,"cardVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.e}});Object.defineProperty(exports,"dialogContentVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.l}});Object.defineProperty(exports,"inputVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.c}});Object.defineProperty(exports,"labelVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.d}});Object.defineProperty(exports,"listVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.h}});Object.defineProperty(exports,"panelVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.f}});Object.defineProperty(exports,"tabListVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.j}});Object.defineProperty(exports,"tabTriggerVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.k}});Object.defineProperty(exports,"tableVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.g}});Object.defineProperty(exports,"tooltipVariants",{enumerable:true,get:function(){return chunkNBLJWONR_cjs.m}});Object.defineProperty(exports,"Chat",{enumerable:true,get:function(){return chunkOZVJMUXX_cjs.a}});Object.defineProperty(exports,"CinePlayer",{enumerable:true,get:function(){return chunkN4QZRR2Y_cjs.a}});Object.defineProperty(exports,"cn",{enumerable:true,get:function(){return chunkX5YP5TMY_cjs.a}});
|
|
1
|
+
'use strict';var chunk7QV2AV32_cjs=require('./chunks/chunk-7QV2AV32.cjs'),chunkWL4AMFUA_cjs=require('./chunks/chunk-WL4AMFUA.cjs'),chunkKVV5ZEYV_cjs=require('./chunks/chunk-KVV5ZEYV.cjs'),chunkEQXC34N2_cjs=require('./chunks/chunk-EQXC34N2.cjs'),chunkLCLJVRKK_cjs=require('./chunks/chunk-LCLJVRKK.cjs'),chunkX4OS5ODF_cjs=require('./chunks/chunk-X4OS5ODF.cjs'),chunkHSLG4VVI_cjs=require('./chunks/chunk-HSLG4VVI.cjs'),chunkKFQVZ2HC_cjs=require('./chunks/chunk-KFQVZ2HC.cjs'),chunkMSBDCLPM_cjs=require('./chunks/chunk-MSBDCLPM.cjs'),chunk6QQPQPD2_cjs=require('./chunks/chunk-6QQPQPD2.cjs'),chunkSJ2HIDEM_cjs=require('./chunks/chunk-SJ2HIDEM.cjs'),chunkA7SZGBY2_cjs=require('./chunks/chunk-A7SZGBY2.cjs'),chunkNXWDOFPX_cjs=require('./chunks/chunk-NXWDOFPX.cjs'),chunkUDH3OKNZ_cjs=require('./chunks/chunk-UDH3OKNZ.cjs'),chunk24YBOQFV_cjs=require('./chunks/chunk-24YBOQFV.cjs'),chunkNFRGBE42_cjs=require('./chunks/chunk-NFRGBE42.cjs'),chunkA7BECCRP_cjs=require('./chunks/chunk-A7BECCRP.cjs'),chunkN4QZRR2Y_cjs=require('./chunks/chunk-N4QZRR2Y.cjs'),chunk3B5OL3PD_cjs=require('./chunks/chunk-3B5OL3PD.cjs'),chunkQ53OOZJ3_cjs=require('./chunks/chunk-Q53OOZJ3.cjs'),chunk7PD2UMAG_cjs=require('./chunks/chunk-7PD2UMAG.cjs'),chunkGW4C7AV6_cjs=require('./chunks/chunk-GW4C7AV6.cjs'),chunkOMBYGQJE_cjs=require('./chunks/chunk-OMBYGQJE.cjs'),chunkCGGBE3GJ_cjs=require('./chunks/chunk-CGGBE3GJ.cjs'),chunkP652JDOU_cjs=require('./chunks/chunk-P652JDOU.cjs'),chunkSKZIAHHY_cjs=require('./chunks/chunk-SKZIAHHY.cjs'),chunkZEHGTD6Y_cjs=require('./chunks/chunk-ZEHGTD6Y.cjs'),chunkHFHOE2PH_cjs=require('./chunks/chunk-HFHOE2PH.cjs'),chunkGT56J65P_cjs=require('./chunks/chunk-GT56J65P.cjs'),chunkHSWWY3SE_cjs=require('./chunks/chunk-HSWWY3SE.cjs'),chunkOZVJMUXX_cjs=require('./chunks/chunk-OZVJMUXX.cjs'),chunkXOZYC6XB_cjs=require('./chunks/chunk-XOZYC6XB.cjs'),chunkNYTZZ5ZX_cjs=require('./chunks/chunk-NYTZZ5ZX.cjs'),chunkX5YP5TMY_cjs=require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Tree",{enumerable:true,get:function(){return chunk7QV2AV32_cjs.a}});Object.defineProperty(exports,"TreeItem",{enumerable:true,get:function(){return chunk7QV2AV32_cjs.b}});Object.defineProperty(exports,"Radio",{enumerable:true,get:function(){return chunkWL4AMFUA_cjs.b}});Object.defineProperty(exports,"RadioGroup",{enumerable:true,get:function(){return chunkWL4AMFUA_cjs.a}});Object.defineProperty(exports,"SideNav",{enumerable:true,get:function(){return chunkKVV5ZEYV_cjs.a}});Object.defineProperty(exports,"Spin",{enumerable:true,get:function(){return chunkEQXC34N2_cjs.a}});Object.defineProperty(exports,"useSpin",{enumerable:true,get:function(){return chunkEQXC34N2_cjs.b}});Object.defineProperty(exports,"Switch",{enumerable:true,get:function(){return chunkLCLJVRKK_cjs.a}});Object.defineProperty(exports,"DataTable",{enumerable:true,get:function(){return chunkX4OS5ODF_cjs.i}});Object.defineProperty(exports,"SortableTable",{enumerable:true,get:function(){return chunkX4OS5ODF_cjs.h}});Object.defineProperty(exports,"Table",{enumerable:true,get:function(){return chunkX4OS5ODF_cjs.a}});Object.defineProperty(exports,"TableBody",{enumerable:true,get:function(){return chunkX4OS5ODF_cjs.c}});Object.defineProperty(exports,"TableCell",{enumerable:true,get:function(){return chunkX4OS5ODF_cjs.f}});Object.defineProperty(exports,"TableEmpty",{enumerable:true,get:function(){return chunkX4OS5ODF_cjs.g}});Object.defineProperty(exports,"TableHead",{enumerable:true,get:function(){return chunkX4OS5ODF_cjs.e}});Object.defineProperty(exports,"TableHeader",{enumerable:true,get:function(){return chunkX4OS5ODF_cjs.b}});Object.defineProperty(exports,"TableRow",{enumerable:true,get:function(){return chunkX4OS5ODF_cjs.d}});Object.defineProperty(exports,"TabContent",{enumerable:true,get:function(){return chunkHSLG4VVI_cjs.e}});Object.defineProperty(exports,"TabList",{enumerable:true,get:function(){return chunkHSLG4VVI_cjs.b}});Object.defineProperty(exports,"TabPanels",{enumerable:true,get:function(){return chunkHSLG4VVI_cjs.d}});Object.defineProperty(exports,"TabTrigger",{enumerable:true,get:function(){return chunkHSLG4VVI_cjs.c}});Object.defineProperty(exports,"Tabs",{enumerable:true,get:function(){return chunkHSLG4VVI_cjs.a}});Object.defineProperty(exports,"TextBox",{enumerable:true,get:function(){return chunkKFQVZ2HC_cjs.a}});Object.defineProperty(exports,"Tooltip",{enumerable:true,get:function(){return chunkMSBDCLPM_cjs.a}});Object.defineProperty(exports,"ImageCard",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.a}});Object.defineProperty(exports,"ImageCardActions",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.e}});Object.defineProperty(exports,"ImageCardBody",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.b}});Object.defineProperty(exports,"ImageCardDescription",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.d}});Object.defineProperty(exports,"ImageCardTitle",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.c}});Object.defineProperty(exports,"Input",{enumerable:true,get:function(){return chunkSJ2HIDEM_cjs.a}});Object.defineProperty(exports,"Label",{enumerable:true,get:function(){return chunkA7SZGBY2_cjs.a}});Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkNXWDOFPX_cjs.a}});Object.defineProperty(exports,"ListItem",{enumerable:true,get:function(){return chunkNXWDOFPX_cjs.b}});Object.defineProperty(exports,"MiniPlayer",{enumerable:true,get:function(){return chunkUDH3OKNZ_cjs.a}});Object.defineProperty(exports,"NavLink",{enumerable:true,get:function(){return chunk24YBOQFV_cjs.a}});Object.defineProperty(exports,"Panel",{enumerable:true,get:function(){return chunkNFRGBE42_cjs.a}});Object.defineProperty(exports,"PanelContent",{enumerable:true,get:function(){return chunkNFRGBE42_cjs.c}});Object.defineProperty(exports,"PanelHeader",{enumerable:true,get:function(){return chunkNFRGBE42_cjs.b}});Object.defineProperty(exports,"ProgressBar",{enumerable:true,get:function(){return chunkA7BECCRP_cjs.a}});Object.defineProperty(exports,"CinePlayer",{enumerable:true,get:function(){return chunkN4QZRR2Y_cjs.a}});Object.defineProperty(exports,"CodeBlock",{enumerable:true,get:function(){return chunk3B5OL3PD_cjs.a}});Object.defineProperty(exports,"Dropdown",{enumerable:true,get:function(){return chunkQ53OOZJ3_cjs.a}});Object.defineProperty(exports,"DropdownButton",{enumerable:true,get:function(){return chunk7PD2UMAG_cjs.a}});Object.defineProperty(exports,"FileExplorer",{enumerable:true,get:function(){return chunkGW4C7AV6_cjs.a}});Object.defineProperty(exports,"Dialog",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.a}});Object.defineProperty(exports,"DialogClose",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.g}});Object.defineProperty(exports,"DialogContent",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.b}});Object.defineProperty(exports,"DialogDescription",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.e}});Object.defineProperty(exports,"DialogFooter",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.f}});Object.defineProperty(exports,"DialogHeader",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.c}});Object.defineProperty(exports,"DialogTitle",{enumerable:true,get:function(){return chunkOMBYGQJE_cjs.d}});Object.defineProperty(exports,"FilmReel",{enumerable:true,get:function(){return chunkCGGBE3GJ_cjs.a}});Object.defineProperty(exports,"Header",{enumerable:true,get:function(){return chunkP652JDOU_cjs.a}});Object.defineProperty(exports,"Accordion",{enumerable:true,get:function(){return chunkSKZIAHHY_cjs.a}});Object.defineProperty(exports,"AccordionContent",{enumerable:true,get:function(){return chunkSKZIAHHY_cjs.d}});Object.defineProperty(exports,"AccordionItem",{enumerable:true,get:function(){return chunkSKZIAHHY_cjs.b}});Object.defineProperty(exports,"AccordionTrigger",{enumerable:true,get:function(){return chunkSKZIAHHY_cjs.c}});Object.defineProperty(exports,"Alert",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.a}});Object.defineProperty(exports,"AlertContent",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.d}});Object.defineProperty(exports,"AlertDescription",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.e}});Object.defineProperty(exports,"AlertIcon",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.c}});Object.defineProperty(exports,"AlertTitle",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.b}});Object.defineProperty(exports,"configureAlertTopOffset",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.f}});Object.defineProperty(exports,"useAlert",{enumerable:true,get:function(){return chunkZEHGTD6Y_cjs.g}});Object.defineProperty(exports,"Badge",{enumerable:true,get:function(){return chunkHFHOE2PH_cjs.a}});Object.defineProperty(exports,"Button",{enumerable:true,get:function(){return chunkGT56J65P_cjs.a}});Object.defineProperty(exports,"Card",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.a}});Object.defineProperty(exports,"CardContent",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.e}});Object.defineProperty(exports,"CardDescription",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.d}});Object.defineProperty(exports,"CardFooter",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.f}});Object.defineProperty(exports,"CardHeader",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.b}});Object.defineProperty(exports,"CardTitle",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.c}});Object.defineProperty(exports,"HorizontalCard",{enumerable:true,get:function(){return chunkHSWWY3SE_cjs.g}});Object.defineProperty(exports,"Chat",{enumerable:true,get:function(){return chunkOZVJMUXX_cjs.a}});Object.defineProperty(exports,"Checkbox",{enumerable:true,get:function(){return chunkXOZYC6XB_cjs.a}});Object.defineProperty(exports,"accordionVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.i}});Object.defineProperty(exports,"alertVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.u}});Object.defineProperty(exports,"badgeVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.b}});Object.defineProperty(exports,"buttonVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.a}});Object.defineProperty(exports,"cardVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.e}});Object.defineProperty(exports,"checkboxVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.r}});Object.defineProperty(exports,"codeBlockVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.o}});Object.defineProperty(exports,"dialogContentVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.l}});Object.defineProperty(exports,"inputVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.c}});Object.defineProperty(exports,"labelVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.d}});Object.defineProperty(exports,"listVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.h}});Object.defineProperty(exports,"navLinkVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.n}});Object.defineProperty(exports,"panelVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.f}});Object.defineProperty(exports,"progressBarVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.p}});Object.defineProperty(exports,"radioVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.s}});Object.defineProperty(exports,"spinVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.q}});Object.defineProperty(exports,"switchTrackVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.t}});Object.defineProperty(exports,"tabListVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.j}});Object.defineProperty(exports,"tabTriggerVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.k}});Object.defineProperty(exports,"tableVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.g}});Object.defineProperty(exports,"tooltipVariants",{enumerable:true,get:function(){return chunkNYTZZ5ZX_cjs.m}});Object.defineProperty(exports,"cn",{enumerable:true,get:function(){return chunkX5YP5TMY_cjs.a}});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
export { cn } from './utils.cjs';
|
|
2
|
-
export { accordionVariants, alertVariants, badgeVariants, buttonVariants, cardVariants, dialogContentVariants, inputVariants, labelVariants, listVariants, panelVariants, tabListVariants, tabTriggerVariants, tableVariants, tooltipVariants } from './theme.cjs';
|
|
2
|
+
export { accordionVariants, alertVariants, badgeVariants, buttonVariants, cardVariants, checkboxVariants, codeBlockVariants, dialogContentVariants, inputVariants, labelVariants, listVariants, navLinkVariants, panelVariants, progressBarVariants, radioVariants, spinVariants, switchTrackVariants, tabListVariants, tabTriggerVariants, tableVariants, tooltipVariants } from './theme.cjs';
|
|
3
3
|
export { Button } from './Button.cjs';
|
|
4
4
|
export { Dropdown, DropdownMultipleProps, DropdownOption, DropdownProps, DropdownSingleProps } from './Dropdown.cjs';
|
|
5
5
|
export { DropdownButton, DropdownButtonProps, DropdownItem } from './DropdownButton.cjs';
|
|
6
6
|
export { Badge } from './Badge.cjs';
|
|
7
7
|
export { Label } from './Label.cjs';
|
|
8
8
|
export { Input } from './Input.cjs';
|
|
9
|
+
export { TextBox, TextBoxProps } from './TextBox.cjs';
|
|
10
|
+
export { Switch, SwitchProps } from './Switch.cjs';
|
|
11
|
+
export { Checkbox, CheckboxProps } from './Checkbox.cjs';
|
|
12
|
+
export { Radio, RadioGroup, RadioGroupProps, RadioProps } from './Radio.cjs';
|
|
9
13
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, HorizontalCard } from './Card.cjs';
|
|
10
14
|
export { ImageCard, ImageCardActions, ImageCardBody, ImageCardDescription, ImageCardTitle } from './ImageCard.cjs';
|
|
11
15
|
export { Panel, PanelContent, PanelHeader } from './Panel.cjs';
|
|
12
|
-
export { ColumnDef, DataTable, DataTableProps, SelectionMode, SortDirection, SortState, SortableTable, Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from './Table.cjs';
|
|
13
|
-
export { List, ListItem } from './List.cjs';
|
|
16
|
+
export { ColumnDef, DataTable, DataTableProps, SelectionMode, SortDirection, SortState, SortableTable, Table, TableBody, TableCell, TableEmpty, TableEmptyProps, TableHead, TableHeader, TableRow } from './Table.cjs';
|
|
17
|
+
export { List, ListItem, ListItemProps } from './List.cjs';
|
|
14
18
|
export { Tree, TreeItem } from './Tree.cjs';
|
|
15
19
|
export { Chat, ChatMessage, ChatProps } from './Chat.cjs';
|
|
20
|
+
export { CodeBlock, CodeBlockLanguage, CodeBlockProps } from './CodeBlock.cjs';
|
|
16
21
|
export { SideNav, SideNavCollapseMode, SideNavItem, SideNavLinkComponentProps, SideNavProps } from './SideNav.cjs';
|
|
17
22
|
export { Header, HeaderAction, HeaderNavItem, HeaderProps } from './Header.cjs';
|
|
23
|
+
export { NavLink } from './NavLink.cjs';
|
|
18
24
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './Accordion.cjs';
|
|
19
25
|
export { TabContent, TabList, TabPanels, TabTrigger, Tabs } from './Tabs.cjs';
|
|
20
26
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from './Dialog.cjs';
|
|
21
27
|
export { Tooltip } from './Tooltip.cjs';
|
|
22
|
-
export { Alert, AlertDescription, AlertOptions, AlertPosition, AlertTitle, configureAlertTopOffset, useAlert } from './Alert.cjs';
|
|
28
|
+
export { Alert, AlertContent, AlertDescription, AlertIcon, AlertOptions, AlertPosition, AlertTitle, configureAlertTopOffset, useAlert } from './Alert.cjs';
|
|
29
|
+
export { ProgressBar, ProgressBarProps } from './ProgressBar.cjs';
|
|
30
|
+
export { Spin, SpinProps, useSpin } from './Spin.cjs';
|
|
23
31
|
export { FilmReel, FilmReelAction, FilmReelLayout, FilmReelPhoto, FilmReelProps } from './FilmReel.cjs';
|
|
24
32
|
export { MiniPlayer, MiniPlayerEntrance, MiniPlayerPosition, MiniPlayerProps, MiniPlayerTrack } from './MiniPlayer.cjs';
|
|
25
33
|
export { CinePlayer, CinePlayerMedia, CinePlayerProps, CinePlayerSortKey } from './CinePlayer.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
export { cn } from './utils.js';
|
|
2
|
-
export { accordionVariants, alertVariants, badgeVariants, buttonVariants, cardVariants, dialogContentVariants, inputVariants, labelVariants, listVariants, panelVariants, tabListVariants, tabTriggerVariants, tableVariants, tooltipVariants } from './theme.js';
|
|
2
|
+
export { accordionVariants, alertVariants, badgeVariants, buttonVariants, cardVariants, checkboxVariants, codeBlockVariants, dialogContentVariants, inputVariants, labelVariants, listVariants, navLinkVariants, panelVariants, progressBarVariants, radioVariants, spinVariants, switchTrackVariants, tabListVariants, tabTriggerVariants, tableVariants, tooltipVariants } from './theme.js';
|
|
3
3
|
export { Button } from './Button.js';
|
|
4
4
|
export { Dropdown, DropdownMultipleProps, DropdownOption, DropdownProps, DropdownSingleProps } from './Dropdown.js';
|
|
5
5
|
export { DropdownButton, DropdownButtonProps, DropdownItem } from './DropdownButton.js';
|
|
6
6
|
export { Badge } from './Badge.js';
|
|
7
7
|
export { Label } from './Label.js';
|
|
8
8
|
export { Input } from './Input.js';
|
|
9
|
+
export { TextBox, TextBoxProps } from './TextBox.js';
|
|
10
|
+
export { Switch, SwitchProps } from './Switch.js';
|
|
11
|
+
export { Checkbox, CheckboxProps } from './Checkbox.js';
|
|
12
|
+
export { Radio, RadioGroup, RadioGroupProps, RadioProps } from './Radio.js';
|
|
9
13
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, HorizontalCard } from './Card.js';
|
|
10
14
|
export { ImageCard, ImageCardActions, ImageCardBody, ImageCardDescription, ImageCardTitle } from './ImageCard.js';
|
|
11
15
|
export { Panel, PanelContent, PanelHeader } from './Panel.js';
|
|
12
|
-
export { ColumnDef, DataTable, DataTableProps, SelectionMode, SortDirection, SortState, SortableTable, Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from './Table.js';
|
|
13
|
-
export { List, ListItem } from './List.js';
|
|
16
|
+
export { ColumnDef, DataTable, DataTableProps, SelectionMode, SortDirection, SortState, SortableTable, Table, TableBody, TableCell, TableEmpty, TableEmptyProps, TableHead, TableHeader, TableRow } from './Table.js';
|
|
17
|
+
export { List, ListItem, ListItemProps } from './List.js';
|
|
14
18
|
export { Tree, TreeItem } from './Tree.js';
|
|
15
19
|
export { Chat, ChatMessage, ChatProps } from './Chat.js';
|
|
20
|
+
export { CodeBlock, CodeBlockLanguage, CodeBlockProps } from './CodeBlock.js';
|
|
16
21
|
export { SideNav, SideNavCollapseMode, SideNavItem, SideNavLinkComponentProps, SideNavProps } from './SideNav.js';
|
|
17
22
|
export { Header, HeaderAction, HeaderNavItem, HeaderProps } from './Header.js';
|
|
23
|
+
export { NavLink } from './NavLink.js';
|
|
18
24
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './Accordion.js';
|
|
19
25
|
export { TabContent, TabList, TabPanels, TabTrigger, Tabs } from './Tabs.js';
|
|
20
26
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from './Dialog.js';
|
|
21
27
|
export { Tooltip } from './Tooltip.js';
|
|
22
|
-
export { Alert, AlertDescription, AlertOptions, AlertPosition, AlertTitle, configureAlertTopOffset, useAlert } from './Alert.js';
|
|
28
|
+
export { Alert, AlertContent, AlertDescription, AlertIcon, AlertOptions, AlertPosition, AlertTitle, configureAlertTopOffset, useAlert } from './Alert.js';
|
|
29
|
+
export { ProgressBar, ProgressBarProps } from './ProgressBar.js';
|
|
30
|
+
export { Spin, SpinProps, useSpin } from './Spin.js';
|
|
23
31
|
export { FilmReel, FilmReelAction, FilmReelLayout, FilmReelPhoto, FilmReelProps } from './FilmReel.js';
|
|
24
32
|
export { MiniPlayer, MiniPlayerEntrance, MiniPlayerPosition, MiniPlayerProps, MiniPlayerTrack } from './MiniPlayer.js';
|
|
25
33
|
export { CinePlayer, CinePlayerMedia, CinePlayerProps, CinePlayerSortKey } from './CinePlayer.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Tree,b as TreeItem}from'./chunks/chunk-
|
|
1
|
+
export{a as Tree,b as TreeItem}from'./chunks/chunk-R7ZKMSZ3.js';export{b as Radio,a as RadioGroup}from'./chunks/chunk-2TTIBHQ3.js';export{a as SideNav}from'./chunks/chunk-SCSMM2J4.js';export{a as Spin,b as useSpin}from'./chunks/chunk-H35HQKON.js';export{a as Switch}from'./chunks/chunk-WQA7PVJO.js';export{i as DataTable,h as SortableTable,a as Table,c as TableBody,f as TableCell,g as TableEmpty,e as TableHead,b as TableHeader,d as TableRow}from'./chunks/chunk-W2JIAB3E.js';export{e as TabContent,b as TabList,d as TabPanels,c as TabTrigger,a as Tabs}from'./chunks/chunk-BGUKKSPF.js';export{a as TextBox}from'./chunks/chunk-FROZM2O6.js';export{a as Tooltip}from'./chunks/chunk-T3WU6A7R.js';export{a as ImageCard,e as ImageCardActions,b as ImageCardBody,d as ImageCardDescription,c as ImageCardTitle}from'./chunks/chunk-6AMBRNVW.js';export{a as Input}from'./chunks/chunk-YWD2VK35.js';export{a as Label}from'./chunks/chunk-IPPWOV6D.js';export{a as List,b as ListItem}from'./chunks/chunk-NI2HVXR2.js';export{a as MiniPlayer}from'./chunks/chunk-A5KQAHDU.js';export{a as NavLink}from'./chunks/chunk-KG3IXPCM.js';export{a as Panel,c as PanelContent,b as PanelHeader}from'./chunks/chunk-DCWKY33F.js';export{a as ProgressBar}from'./chunks/chunk-K4UGTWDR.js';export{a as CinePlayer}from'./chunks/chunk-QTADJ7I5.js';export{a as CodeBlock}from'./chunks/chunk-PC4PVKTK.js';export{a as Dropdown}from'./chunks/chunk-LZZTFSBF.js';export{a as DropdownButton}from'./chunks/chunk-HR4MRHSX.js';export{a as FileExplorer}from'./chunks/chunk-6DR7FZ4Y.js';export{a as Dialog,g as DialogClose,b as DialogContent,e as DialogDescription,f as DialogFooter,c as DialogHeader,d as DialogTitle}from'./chunks/chunk-VHOOZBWZ.js';export{a as FilmReel}from'./chunks/chunk-ETVECKSE.js';export{a as Header}from'./chunks/chunk-XOO3AGIT.js';export{a as Accordion,d as AccordionContent,b as AccordionItem,c as AccordionTrigger}from'./chunks/chunk-I327TE7P.js';export{a as Alert,d as AlertContent,e as AlertDescription,c as AlertIcon,b as AlertTitle,f as configureAlertTopOffset,g as useAlert}from'./chunks/chunk-GQDGQUKK.js';export{a as Badge}from'./chunks/chunk-MVGDKSBE.js';export{a as Button}from'./chunks/chunk-7DM4FEFY.js';export{a as Card,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle,g as HorizontalCard}from'./chunks/chunk-X3PUHNVJ.js';export{a as Chat}from'./chunks/chunk-PHAX43YF.js';export{a as Checkbox}from'./chunks/chunk-64BRBJ5M.js';export{i as accordionVariants,u as alertVariants,b as badgeVariants,a as buttonVariants,e as cardVariants,r as checkboxVariants,o as codeBlockVariants,l as dialogContentVariants,c as inputVariants,d as labelVariants,h as listVariants,n as navLinkVariants,f as panelVariants,p as progressBarVariants,s as radioVariants,q as spinVariants,t as switchTrackVariants,j as tabListVariants,k as tabTriggerVariants,g as tableVariants,m as tooltipVariants}from'./chunks/chunk-H6MHL66N.js';export{a as cn}from'./chunks/chunk-AXBJKPZZ.js';
|