@machinerd/js-module 0.1.0 → 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/dist/hooks/index.mjs +1 -1
- package/dist/styles/index.css +170 -26
- package/dist/ui/client-only/index.cjs +1 -0
- package/dist/ui/client-only/index.d.cts +136 -0
- package/dist/ui/client-only/index.d.mts +136 -0
- package/dist/ui/client-only/index.mjs +1 -0
- package/dist/ui/index.cjs +1 -1
- package/dist/ui/index.d.cts +152 -77
- package/dist/ui/index.d.mts +153 -78
- package/dist/ui/index.mjs +1 -1
- package/dist/util/index.d.cts +1 -1
- package/dist/util/index.d.mts +1 -1
- package/dist/util/index.mjs +1 -1
- package/package.json +7 -1
- /package/dist/{hooks-5I2NBtcY.mjs → hooks-C9M3V-Pb.mjs} +0 -0
- /package/dist/{util-DCPr_-5a.mjs → util-BrmjOcya.mjs} +0 -0
package/dist/ui/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../util-CDkao6z3.cjs`),n=require(`../hooks-DPYIex_y.cjs`);let r=require(`lodash-es`),i=require(`clsx`);i=e.t(i);let a=require(`react`);a=e.t(a);let o=require(`react/jsx-runtime`),s=require(`class-variance-authority`),c=require(`react-dom`);function l({className:e,items:t,render:n,...r}){return(0,o.jsx)(`nav`,{className:(0,i.default)(`komc:fixed komc:bottom-0 komc:left-0 komc:right-0 komc:box-border`,`komc:border-t komc:border-neutral-200 komc:bg-white komc:z-10`,e),...r,children:(0,o.jsx)(`div`,{className:`komc:grid komc:min-h-15 komc:p-0`,style:{gridTemplateColumns:`repeat(${t.length}, 1fr)`},children:t.map((e,t)=>(0,o.jsx)(a.default.Fragment,{children:n(e)},t))})})}const u=(0,s.cva)(t.f(`komc:inline-flex komc:justify-center komc:items-center komc:w-full`,`komc:transition-colors komc:duration-200 komc:relative`,`komc:*:transition-colors komc:*:duration-200 komc:cursor-pointer`,`komc:disabled:cursor-default komc:disabled:opacity-50 komc:disabled:pointer-events-none`,`komc:whitespace-nowrap komc:shrink-0 komc:outline-none komc:box-border`),{variants:{size:{xs:`komc:h-7.5`,sm:`komc:h-8`,base:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`},gap:{none:`komc:gap-0`,xs:`komc:gap-1`,sm:`komc:gap-2`,md:`komc:gap-3`,lg:`komc:gap-4`,xl:`komc:gap-5`},outline:{line:`komc:border`,solid:`komc:border-transparent`,clear:`komc:border-none`,dashed:`komc:border-dashed`,dotted:`komc:border-dotted`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"2.5xl":`komc:rounded-[20px]`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`},variant:{default:``,ghost:`komc:bg-transparent komc:text-neutral-900`,white:`komc:bg-white komc:text-neutral-900 komc:hover:bg-neutral-100`,blue:`komc:bg-blue-500 komc:text-white komc:hover:bg-blue-600`,night:`komc:bg-[#2c5cb7] komc:text-white komc:hover:bg-[#26539F]`,charcoal:`komc:bg-[#36454F] komc:text-white komc:hover:bg-[#2E3A43]`,slate:`komc:bg-[#4A5565] komc:text-white komc:hover:bg-[#424A57]`,red:`komc:bg-[#C8313A] komc:text-white komc:hover:bg-[#B02B33]`,yellow:`komc:bg-[#E7FF14] komc:text-black komc:hover:bg-[#D4E600]`,black:`komc:bg-[rgb(95,95,96)] komc:text-white komc:hover:bg-[rgb(76,76,77)] komc:active:bg-[rgb(76,76,77)]`}},defaultVariants:{size:void 0,outline:void 0,rounded:void 0,variant:void 0}}),d=(0,a.forwardRef)(({children:e=`button`,type:t=`button`,size:n=`md`,gap:r=`sm`,outline:i=`line`,rounded:a=`sm`,variant:s=`blue`,className:c,...l},d)=>(0,o.jsx)(`button`,{ref:d,type:t,className:u({size:n,outline:i,gap:r,rounded:a,variant:s,className:c}),...l,children:e}));var f=d;function p({condition:e,wrapper:t,children:n}){return e?t(n):n}const m=(0,s.cva)(t.f(`komc:flex komc:items-center komc:w-full komc:px-2 komc:box-border`,`komc:[&>input]:outline-none komc:[&>input]:w-full`,`komc:[&>input]:focus:ring-0 komc:[&>input]:focus:ring-offset-0`,`komc:[&>input]:border-none komc:[&>input]:h-full`,`komc:[&>input]:p-0 komc:[&>input]:m-0`),{variants:{size:{xs:`komc:h-7.5`,sm:`komc:h-8`,base:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`},gap:{none:`komc:gap-0`,xs:`komc:gap-1`,sm:`komc:gap-2`,md:`komc:gap-3`,lg:`komc:gap-4`,xl:`komc:gap-5`},outline:{line:`komc:border`,solid:`komc:border-transparent`,clear:`komc:border-none`,dashed:`komc:border-dashed`,dotted:`komc:border-dotted`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`}}}),h=(0,a.forwardRef)(({prefix:e=null,surffix:t=null,size:n=`lg`,gap:r=`xl`,outline:i=`line`,rounded:a=`lg`,className:s,...c},l)=>(0,o.jsxs)(`div`,{className:m({size:n,gap:r,outline:i,rounded:a,className:s}),children:[e,(0,o.jsx)(`input`,{ref:l,type:`text`,...c}),t]}));var g=h;const _=(0,s.cva)(t.f(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},defaultVariants:{size:`sm`,rounded:`sm`}});function v({size:e,rounded:t,width:n,height:r,className:i,...a}){let s=n?typeof n==`string`?n:`${n}px`:void 0,c=r?typeof r==`string`?r:`${r}px`:void 0;return(0,o.jsx)(`div`,{className:_({size:e,rounded:t,className:i}),style:{width:s,height:c},...a})}function y({children:e,setOpen:t}){return(0,o.jsx)(`div`,{className:(0,i.default)(`komc:inline-flex komc:shrink-0 komc:justify-center komc:items-center`,`komc:bg-transparent komc:border-none komc:outline-none`,`komc:p-0 komc:m-0 komc:box-border`),onMouseLeave:()=>t(!1),onMouseOver:()=>t(!0),onFocus:()=>t(!0),onBlur:()=>t(!1),onClick:()=>t(!0),children:e})}const b=(0,s.cva)(t.f(`komc:absolute komc:z-99 komc:w-max komc:max-w-70 komc:p-2`,`komc:break-all komc:transition-opacity komc:duration-300 komc:bg-white`,`komc:drop-shadow-[0px_0.5px_3px_rgba(0,0,0,0.2)]`),{variants:{portal:{true:``,false:``},placement:{top:``,bottom:``,left:``,right:``,"top-start":``,"top-end":``,"bottom-start":``,"bottom-end":``,"left-start":``,"left-end":``,"right-start":``,"right-end":``}},compoundVariants:[{portal:!0,placement:`top`,className:`komc:-translate-y-2`},{portal:!0,placement:`bottom`,className:`komc:translate-y-2`},{portal:!0,placement:`left`,className:`komc:-translate-x-2`},{portal:!0,placement:`right`,className:`komc:translate-x-2`},{portal:!0,placement:`top-start`,className:`komc:-translate-y-2`},{portal:!0,placement:`top-end`,className:`komc:-translate-y-2`},{portal:!0,placement:`bottom-start`,className:`komc:translate-y-2`},{portal:!0,placement:`bottom-end`,className:`komc:translate-y-2`},{portal:!0,placement:`left-start`,className:`komc:-translate-x-2`},{portal:!0,placement:`left-end`,className:`komc:-translate-x-2`},{portal:!0,placement:`right-start`,className:`komc:translate-x-2`},{portal:!0,placement:`right-end`,className:`komc:translate-x-2`},{portal:!1,placement:`top`,className:`komc:bottom-full komc:left-1/2 komc:-translate-x-1/2`},{portal:!1,placement:`bottom`,className:`komc:top-full komc:left-1/2 komc:-translate-x-1/2`},{portal:!1,placement:`left`,className:`komc:right-full komc:top-1/2 komc:-translate-y-1/2`},{portal:!1,placement:`right`,className:`komc:left-full komc:top-1/2 komc:-translate-y-1/2`},{portal:!1,placement:`top-start`,className:`komc:bottom-full komc:left-0`},{portal:!1,placement:`top-end`,className:`komc:bottom-full komc:right-0`},{portal:!1,placement:`bottom-start`,className:`komc:top-full komc:left-0`},{portal:!1,placement:`bottom-end`,className:`komc:top-full komc:right-0`},{portal:!1,placement:`left-start`,className:`komc:right-full komc:top-0`},{portal:!1,placement:`left-end`,className:`komc:right-full komc:bottom-0`},{portal:!1,placement:`right-start`,className:`komc:left-full komc:top-0`},{portal:!1,placement:`right-end`,className:`komc:left-full komc:bottom-0`}],defaultVariants:{placement:`top`,portal:!1}}),x=(0,a.forwardRef)(({portal:e,children:t,className:n,placement:r,...i},a)=>(0,o.jsx)(`div`,{ref:a,role:`tooltip`,className:b({portal:e,placement:r,className:n}),...i,children:t}));var S=x;const C=(0,s.cva)(t.f(`komc:absolute komc:w-2 komc:h-2 komc:bg-inherit`,`komc:transition-opacity komc:duration-300`),{variants:{placement:{top:t.f(`komc:top-full komc:-mt-1 komc:left-1/2`),bottom:t.f(`komc:bottom-full komc:-mb-1 komc:left-1/2`),left:t.f(`komc:left-full komc:-ml-1 komc:top-1/2`),right:t.f(`komc:right-full komc:-mr-1 komc:top-1/2`),"top-start":t.f(`komc:top-full komc:-mt-1 komc:left-5`),"top-end":t.f(`komc:top-full komc:-mt-1 komc:right-5`),"bottom-start":t.f(`komc:bottom-full komc:-mb-1 komc:left-5`),"bottom-end":t.f(`komc:bottom-full komc:-mb-1 komc:right-5`),"left-start":t.f(`komc:left-full komc:-ml-1 komc:top-3`),"left-end":t.f(`komc:left-full komc:-ml-1 komc:bottom-3`),"right-start":t.f(`komc:right-full komc:-mr-1 komc:top-3`),"right-end":t.f(`komc:right-full komc:-mr-1 komc:bottom-3`)}},defaultVariants:{placement:`top`}}),w=({placement:e,className:t,offset:n,style:r,...i})=>{let s=(0,a.useMemo)(()=>{switch(e){case`top`:return`rotate(45deg)`;case`bottom`:return`rotate(225deg)`;case`left`:return`rotate(-45deg)`;case`right`:return`rotate(135deg)`;case`top-start`:return`rotate(45deg)`;case`top-end`:return`rotate(45deg)`;case`bottom-start`:return`rotate(225deg)`;case`bottom-end`:return`rotate(225deg)`;case`left-start`:return`rotate(-45deg)`;case`left-end`:return`rotate(-45deg)`;case`right-start`:return`rotate(135deg)`;case`right-end`:return`rotate(135deg)`;default:return`rotate(45deg)`}},[e]);return(0,o.jsx)(`div`,{className:C({placement:e,className:t}),style:{transform:`translate(${n?.x}px, ${n?.y}px) ${s}`},...i})};var T=w;const E=24,D=(e,t)=>{let[,n]=e.split(`-`);return n?`${t}-${n}`:t};function O({placement:e,className:t,content:n,open:s,hiddenRef:l,containerRef:u}){let[d,f]=(0,a.useState)(!1),p=(0,a.useRef)(null),[m,h]=(0,a.useState)(e),[g,_]=(0,a.useState)({top:0,left:0}),[v,y]=(0,a.useState)({x:0,y:0}),b=(0,a.useCallback)((0,r.debounce)(()=>{let e=u?.current,t=l.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.scrollY||document.documentElement.scrollTop,a=window.scrollX||document.documentElement.scrollLeft,[o,s]=m.split(`-`),c=i+n.top,d=a+n.left+n.width/2-r.width/2;switch(o){case`top`:c-=r.height;break;case`bottom`:c+=n.height;break;case`left`:c+=n.height/2-r.height/2,d-=r.width/2+n.width/2;break;case`right`:c+=n.height/2-r.height/2,d+=r.width/2+n.width/2;break}if([`top`,`bottom`].includes(o))switch(s){case`start`:d+=r.width/2-24;break;case`end`:d-=r.width/2-24;break}if([`left`,`right`].includes(o))switch(s){case`start`:c+=r.height/2+n.height/2-24;break;case`end`:c-=r.height/2+n.height/2-24;break}let f=d,p=window.innerWidth;f+r.width>p-4&&(f=p-r.width-4),f<4&&(f=4),_({top:c,left:f}),y({x:d-f,y:0})},50),[m]),x=(0,a.useCallback)((0,r.debounce)(()=>{if(!l.current)return;let{top:t,height:n}=l.current.getBoundingClientRect();h(r=>{let i=e;return t+n>=window.innerHeight?i=D(r,`top`):t<0&&(i=D(r,`bottom`)),i})},50),[e]);return(0,a.useEffect)(()=>(f(!0),x(),window.addEventListener(`scroll`,b,{passive:!0}),window.addEventListener(`resize`,b),window.addEventListener(`scroll`,x,{passive:!0}),window.addEventListener(`resize`,x),()=>{window.removeEventListener(`scroll`,b),window.removeEventListener(`resize`,b),window.removeEventListener(`scroll`,x),window.removeEventListener(`resize`,x)}),[b,x]),(0,a.useEffect)(()=>{d&&b()},[d,b]),d?(0,c.createPortal)((0,o.jsxs)(S,{ref:p,portal:!0,placement:m,className:(0,i.default)(t,s?`komc:visible komc:opacity-100`:`komc:opacity-0 komc:invisible`),style:{...g},children:[(0,o.jsx)(`span`,{children:n}),(0,o.jsx)(T,{placement:m,offset:v})]}),document.body):null}const k=(0,a.forwardRef)(({children:e,content:t,defaultOpen:r=!1,className:s,placement:c=`top`},l)=>{let[u,d]=(0,a.useState)(r),f=(0,a.useRef)(null),p=(0,a.useRef)(null);return n.t({ref:f,setOpen:d}),(0,o.jsxs)(`div`,{ref:f,className:`komc:flex komc:shrink-0 komc:relative komc:overflow-hidden komc:w-fit komc:h-fit`,children:[(0,o.jsx)(y,{setOpen:d,children:e}),(0,o.jsx)(O,{placement:c,className:s,open:u,content:t,hiddenRef:p,containerRef:f}),(0,o.jsx)(S,{ref:p,role:`presentation`,placement:c,className:(0,i.default)(`komc:opacity-0 komc:invisible`,s),children:(0,o.jsx)(`span`,{children:t})})]})});var A=k;exports.BottomAppBar=l,exports.Button=f,exports.ConditionalWrapper=p,exports.Input=g,exports.Skeleton=v,exports.Tooltip=A;
|
|
1
|
+
const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../util-CDkao6z3.cjs`);let n=require(`clsx`);n=e.t(n);let r=require(`react`);r=e.t(r);let i=require(`react/jsx-runtime`),a=require(`class-variance-authority`);function o({className:e,items:t,render:a,...o}){return(0,i.jsx)(`nav`,{"data-komc":!0,className:(0,n.default)(`komc:fixed komc:bottom-0 komc:left-0 komc:right-0`,`komc:border-t komc:border-neutral-200 komc:bg-white komc:z-10`,e),...o,children:(0,i.jsx)(`div`,{className:`komc:grid komc:min-h-15`,style:{gridTemplateColumns:`repeat(${t.length}, 1fr)`},children:t.map((e,t)=>(0,i.jsx)(r.default.Fragment,{children:a(e)},t))})})}const s=(0,a.cva)(t.f(`komc:inline-flex komc:justify-center komc:items-center komc:w-full`,`komc:transition-colors komc:duration-200 komc:relative`,`komc:*:transition-colors komc:*:duration-200`,`komc:disabled:cursor-default komc:disabled:opacity-50 komc:disabled:pointer-events-none`,`komc:whitespace-nowrap komc:shrink-0 komc:outline-none`),{variants:{size:{xs:`komc:h-7.5`,sm:`komc:h-8`,base:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`},gap:{none:`komc:gap-0`,xs:`komc:gap-1`,sm:`komc:gap-2`,md:`komc:gap-3`,lg:`komc:gap-4`,xl:`komc:gap-5`},outline:{line:`komc:border`,solid:`komc:border-transparent`,clear:`komc:border-none`,dashed:`komc:border-dashed`,dotted:`komc:border-dotted`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"2.5xl":`komc:rounded-[20px]`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`},variant:{default:``,ghost:`komc:bg-transparent komc:text-neutral-900`,white:`komc:bg-white komc:text-neutral-900 komc:hover:bg-neutral-100`,blue:`komc:bg-blue-500 komc:text-white komc:hover:bg-blue-600`,night:`komc:bg-[#2c5cb7] komc:text-white komc:hover:bg-[#26539F]`,charcoal:`komc:bg-[#36454F] komc:text-white komc:hover:bg-[#2E3A43]`,slate:`komc:bg-[#4A5565] komc:text-white komc:hover:bg-[#424A57]`,red:`komc:bg-[#C8313A] komc:text-white komc:hover:bg-[#B02B33]`,yellow:`komc:bg-[#E7FF14] komc:text-black komc:hover:bg-[#D4E600]`,black:`komc:bg-[rgb(95,95,96)] komc:text-white komc:hover:bg-[rgb(76,76,77)] komc:active:bg-[rgb(76,76,77)]`}},defaultVariants:{size:void 0,outline:void 0,rounded:void 0,variant:void 0}}),c=(0,r.forwardRef)(({children:e=`button`,type:t=`button`,size:n=`md`,gap:r=`sm`,outline:a=`line`,rounded:o=`sm`,variant:c=`blue`,className:l,...u},d)=>(0,i.jsx)(`button`,{ref:d,type:t,"data-komc":!0,className:s({size:n,outline:a,gap:r,rounded:o,variant:c,className:l}),...u,children:e}));var l=c;function u({condition:e,wrapper:t,children:n}){return e?t(n):n}const d=(0,a.cva)(`komc:flex komc:flex-col komc:w-full komc:mx-auto`,{variants:{maxWidth:{none:``,xs:`komc:max-w-xs`,sm:`komc:max-w-sm`,md:`komc:max-w-md`,lg:`komc:max-w-lg`,xl:`komc:max-w-xl`,"2xl":`komc:max-w-2xl`,"3xl":`komc:max-w-3xl`,"4xl":`komc:max-w-4xl`,"5xl":`komc:max-w-5xl`,"6xl":`komc:max-w-6xl`,"7xl":`komc:max-w-7xl`,full:`komc:max-w-full`}},defaultVariants:{maxWidth:`full`}});function f({className:e,children:t,maxWidth:r,...a}){return(0,i.jsx)(`footer`,{"data-komc":!0,className:(0,n.default)(`komc:block komc:w-full komc:h-full`,`komc:bg-white komc:border-t komc:border-neutral-200`,e),...a,children:(0,i.jsx)(`div`,{className:d({maxWidth:r}),children:t})})}const p=(0,a.cva)(t.f(`komc:flex komc:items-center`,`komc:mx-auto komc:min-h-10`),{variants:{maxWidth:{none:``,sm:`komc:max-w-sm`,md:`komc:max-w-md`,lg:`komc:max-w-lg`,xl:`komc:max-w-xl`,"2xl":`komc:max-w-2xl`,"3xl":`komc:max-w-3xl`,"4xl":`komc:max-w-4xl`,"5xl":`komc:max-w-5xl`,"6xl":`komc:max-w-6xl`,"7xl":`komc:max-w-7xl`,"8xl":`komc:max-w-330`,full:`komc:max-w-full`},size:{sm:`komc:h-10`,md:`komc:h-12`,lg:`komc:h-14`,xl:`komc:h-16`,"2xl":`komc:h-18`,"3xl":`komc:h-20`,"4xl":`komc:h-22`,"4.25xl":`komc:h-22.5`,"5xl":`komc:h-24`,"6xl":`komc:h-26`,"7xl":`komc:h-28`,"8xl":`komc:h-30`,full:`komc:h-full`}},defaultVariants:{maxWidth:`full`,size:`xl`}});function m({children:e,maxWidth:t,size:r,className:a,...o}){return(0,i.jsx)(`header`,{"data-komc":!0,className:(0,n.default)(`komc:w-full komc:sticky komc:top-0 komc:z-1000 komc:bg-white`,`komc:transition-all komc:duration-200`,a),...o,children:(0,i.jsx)(`div`,{className:p({maxWidth:t,size:r}),children:e})})}const h=(0,a.cva)(t.f(`komc:flex komc:items-center komc:w-full komc:px-2`,`komc:[&>input]:outline-none komc:[&>input]:w-full`,`komc:[&>input]:focus:ring-0 komc:[&>input]:focus:ring-offset-0`,`komc:[&>input]:h-full`),{variants:{size:{xs:`komc:h-7.5`,sm:`komc:h-8`,base:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`},gap:{none:`komc:gap-0`,xs:`komc:gap-1`,sm:`komc:gap-2`,md:`komc:gap-3`,lg:`komc:gap-4`,xl:`komc:gap-5`},outline:{line:`komc:border`,solid:`komc:border-transparent`,clear:`komc:border-none`,dashed:`komc:border-dashed`,dotted:`komc:border-dotted`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`}}}),g=(0,r.forwardRef)(({prefix:e=null,surffix:t=null,size:n=`lg`,gap:r=`xl`,outline:a=`line`,rounded:o=`lg`,className:s,...c},l)=>(0,i.jsxs)(`div`,{"data-komc":!0,className:h({size:n,gap:r,outline:a,rounded:o,className:s}),children:[e,(0,i.jsx)(`input`,{ref:l,type:`text`,...c}),t]}));var _=g;const v=(0,a.cva)(`komc:w-full komc:mx-auto komc:relative`,{variants:{type:{main:`komc:flex komc:flex-col`,content:`komc:grow komc:my-0`},maxWidth:{none:``,xs:`komc:max-w-xs komc:xl:max-w-full`,sm:`komc:max-w-sm komc:xl:max-w-full`,md:`komc:max-w-md komc:xl:max-w-full`,lg:`komc:max-w-lg komc:xl:max-w-full`,xl:`komc:max-w-xl komc:xl:max-w-full`,"2xl":`komc:max-w-2xl komc:xl:max-w-full`,"3xl":`komc:max-w-3xl komc:xl:max-w-full`,full:`komc:max-w-full`}},defaultVariants:{type:`main`,maxWidth:`full`}});function y({children:e,className:t,type:n,maxWidth:r,...a}){return(0,i.jsx)(`div`,{"data-komc":!0,className:v({type:n,maxWidth:r,className:t}),...a,children:e})}const b=(0,a.cva)(t.f(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},defaultVariants:{size:`sm`,rounded:`sm`}});function x({size:e,rounded:t,width:n,height:r,className:a,...o}){let s=n?typeof n==`string`?n:`${n}px`:void 0,c=r?typeof r==`string`?r:`${r}px`:void 0;return(0,i.jsx)(`div`,{"data-komc":!0,className:b({size:e,rounded:t,className:a}),style:{width:s,height:c},...o})}exports.BottomAppBar=o,exports.Button=l,exports.ConditionalWrapper=u,exports.Footer=f,exports.Header=m,exports.Input=_,exports.Layout=y,exports.Skeleton=x;
|
package/dist/ui/index.d.cts
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react0 from "react";
|
|
2
2
|
import React$1, { HTMLAttributes } from "react";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
4
|
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
4
5
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/ui/bottom-app-bar/bottom-app-bar.d.ts
|
|
8
8
|
interface BottomAppBarProps<T> extends React$1.HTMLAttributes<HTMLElement> {
|
|
9
9
|
items: T[];
|
|
10
10
|
render: (item: T) => React$1.ReactNode;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @param items - Items to render
|
|
14
|
+
* @param render - Render function
|
|
15
|
+
*/
|
|
12
16
|
declare function BottomAppBar<T>({
|
|
13
17
|
className,
|
|
14
18
|
items,
|
|
@@ -17,14 +21,14 @@ declare function BottomAppBar<T>({
|
|
|
17
21
|
}: BottomAppBarProps<T>): React$1.ReactNode;
|
|
18
22
|
//#endregion
|
|
19
23
|
//#region src/ui/button/button.d.ts
|
|
20
|
-
declare const classes$
|
|
21
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" |
|
|
24
|
+
declare const classes$5: (props?: ({
|
|
25
|
+
size?: "xs" | "sm" | "base" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
22
26
|
gap?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
|
|
23
27
|
outline?: "line" | "solid" | "clear" | "dashed" | "dotted" | null | undefined;
|
|
24
|
-
rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "
|
|
28
|
+
rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "none" | "2.5xl" | "full" | null | undefined;
|
|
25
29
|
variant?: "default" | "ghost" | "white" | "blue" | "night" | "charcoal" | "slate" | "red" | "yellow" | "black" | null | undefined;
|
|
26
30
|
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
27
|
-
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'suffix' | 'prefix'>, VariantProps<typeof classes$
|
|
31
|
+
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'suffix' | 'prefix'>, VariantProps<typeof classes$5> {
|
|
28
32
|
/**
|
|
29
33
|
* @param size - Height of the button
|
|
30
34
|
* @default md - 40px
|
|
@@ -38,7 +42,7 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
38
42
|
* - 2xl: 52px
|
|
39
43
|
* - 3xl: 56px
|
|
40
44
|
*/
|
|
41
|
-
size?: VariantProps<typeof classes$
|
|
45
|
+
size?: VariantProps<typeof classes$5>['size'];
|
|
42
46
|
/**
|
|
43
47
|
* @param gap - Gap between the button and the content
|
|
44
48
|
* @default sm - 8px
|
|
@@ -50,7 +54,7 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
50
54
|
* - lg: 16px
|
|
51
55
|
* - xl: 20px
|
|
52
56
|
*/
|
|
53
|
-
gap?: VariantProps<typeof classes$
|
|
57
|
+
gap?: VariantProps<typeof classes$5>['gap'];
|
|
54
58
|
/**
|
|
55
59
|
* @param rounded - Border radius of the button
|
|
56
60
|
* @default sm
|
|
@@ -65,7 +69,7 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
65
69
|
* - 3xl: 24px
|
|
66
70
|
* - full: 100%
|
|
67
71
|
*/
|
|
68
|
-
rounded?: VariantProps<typeof classes$
|
|
72
|
+
rounded?: VariantProps<typeof classes$5>['rounded'];
|
|
69
73
|
/**
|
|
70
74
|
* @param variant - Variant of the button
|
|
71
75
|
* @default blue
|
|
@@ -81,21 +85,18 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
81
85
|
* - yellow
|
|
82
86
|
* - black
|
|
83
87
|
*/
|
|
84
|
-
variant?: VariantProps<typeof classes$
|
|
88
|
+
variant?: VariantProps<typeof classes$5>['variant'];
|
|
85
89
|
disabled?: boolean;
|
|
86
90
|
children?: React.ReactNode;
|
|
87
91
|
}
|
|
88
92
|
/**
|
|
89
|
-
* @param children - Children of the button
|
|
90
|
-
* @param type - Type of the button
|
|
91
93
|
* @param size - Size of the button
|
|
92
94
|
* @param gap - Gap between the button and the content
|
|
93
95
|
* @param outline - Outline of the button
|
|
94
96
|
* @param rounded - Border radius of the button
|
|
95
97
|
* @param variant - Variant of the button
|
|
96
|
-
* @param className - Class name
|
|
97
98
|
*/
|
|
98
|
-
declare const Button:
|
|
99
|
+
declare const Button: react0.ForwardRefExoticComponent<ButtonProps & react0.RefAttributes<HTMLButtonElement>>;
|
|
99
100
|
//#endregion
|
|
100
101
|
//#region src/ui/conditional-wrapper/conditional-wrapper.d.ts
|
|
101
102
|
interface ConditionalWrapperProps {
|
|
@@ -112,16 +113,103 @@ declare function ConditionalWrapper({
|
|
|
112
113
|
condition,
|
|
113
114
|
wrapper,
|
|
114
115
|
children
|
|
115
|
-
}: ConditionalWrapperProps):
|
|
116
|
+
}: ConditionalWrapperProps): react0.ReactNode;
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/ui/footer/footer.d.ts
|
|
119
|
+
declare const classes$4: (props?: ({
|
|
120
|
+
maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "none" | "full" | "4xl" | "5xl" | "6xl" | "7xl" | null | undefined;
|
|
121
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
122
|
+
interface FooterProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes$4> {
|
|
123
|
+
/**
|
|
124
|
+
* @param maxWidth - Maximum width of the footer
|
|
125
|
+
* @default full
|
|
126
|
+
* @property
|
|
127
|
+
* - none: 0
|
|
128
|
+
* - xs: 320px
|
|
129
|
+
* - sm: 384px
|
|
130
|
+
* - md: 448px
|
|
131
|
+
* - lg: 512px
|
|
132
|
+
* - xl: 576px
|
|
133
|
+
* - 2xl: 672px
|
|
134
|
+
* - 3xl: 768px
|
|
135
|
+
* - 4xl: 896px
|
|
136
|
+
* - 5xl: 1024px
|
|
137
|
+
* - 6xl: 1152px
|
|
138
|
+
* - 7xl: 1280px
|
|
139
|
+
* - full: 100%
|
|
140
|
+
*/
|
|
141
|
+
maxWidth?: VariantProps<typeof classes$4>['maxWidth'];
|
|
142
|
+
}
|
|
143
|
+
declare function Footer({
|
|
144
|
+
className,
|
|
145
|
+
children,
|
|
146
|
+
maxWidth,
|
|
147
|
+
...props
|
|
148
|
+
}: FooterProps): react_jsx_runtime0.JSX.Element;
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/ui/header/header.d.ts
|
|
151
|
+
declare const classes$3: (props?: ({
|
|
152
|
+
maxWidth?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "none" | "full" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
|
|
153
|
+
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "4.25xl" | null | undefined;
|
|
154
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
155
|
+
interface HeaderProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes$3> {
|
|
156
|
+
children?: React.ReactNode;
|
|
157
|
+
/**
|
|
158
|
+
* @param maxWidth - Maximum width of the header
|
|
159
|
+
* @default full
|
|
160
|
+
* @property
|
|
161
|
+
* - none: 0
|
|
162
|
+
* - xs: 320px
|
|
163
|
+
* - sm: 384px
|
|
164
|
+
* - md: 448px
|
|
165
|
+
* - lg: 512px
|
|
166
|
+
* - xl: 576px
|
|
167
|
+
* - 2xl: 672px
|
|
168
|
+
* - 3xl: 768px
|
|
169
|
+
* - 4xl: 896px
|
|
170
|
+
* - 5xl: 1024px
|
|
171
|
+
* - 6xl: 1152px
|
|
172
|
+
* - 7xl: 1280px
|
|
173
|
+
* - 8xl: 1320px
|
|
174
|
+
* - full: 100%
|
|
175
|
+
*/
|
|
176
|
+
maxWidth?: VariantProps<typeof classes$3>['maxWidth'];
|
|
177
|
+
/**
|
|
178
|
+
* @param size - Size of the header
|
|
179
|
+
* @default xl
|
|
180
|
+
* @property
|
|
181
|
+
* - sm: 40px
|
|
182
|
+
* - md: 48px
|
|
183
|
+
* - lg: 56px
|
|
184
|
+
* - xl: 64px
|
|
185
|
+
* - 2xl: 72px
|
|
186
|
+
* - 3xl: 88px
|
|
187
|
+
* - 4xl: 80px
|
|
188
|
+
* - 4.25xl: 90px
|
|
189
|
+
* - 5xl: 96px
|
|
190
|
+
* - 6xl: 104px
|
|
191
|
+
* - 7xl: 112px
|
|
192
|
+
* - 8xl: 120px
|
|
193
|
+
* - full: 100%
|
|
194
|
+
*/
|
|
195
|
+
size?: VariantProps<typeof classes$3>['size'];
|
|
196
|
+
}
|
|
197
|
+
declare function Header({
|
|
198
|
+
children,
|
|
199
|
+
maxWidth,
|
|
200
|
+
size,
|
|
201
|
+
className,
|
|
202
|
+
...props
|
|
203
|
+
}: HeaderProps): react_jsx_runtime0.JSX.Element;
|
|
116
204
|
//#endregion
|
|
117
205
|
//#region src/ui/input/input.d.ts
|
|
118
|
-
declare const classes$
|
|
119
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" |
|
|
206
|
+
declare const classes$2: (props?: ({
|
|
207
|
+
size?: "xs" | "sm" | "base" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
120
208
|
gap?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
|
|
121
209
|
outline?: "line" | "solid" | "clear" | "dashed" | "dotted" | null | undefined;
|
|
122
210
|
rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | null | undefined;
|
|
123
211
|
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
124
|
-
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'surffix' | 'size'>, VariantProps<typeof classes$
|
|
212
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'surffix' | 'size'>, VariantProps<typeof classes$2> {
|
|
125
213
|
/**
|
|
126
214
|
* @param size - Height of the input
|
|
127
215
|
* @default lg - 44px
|
|
@@ -135,7 +223,7 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
135
223
|
* - 2xl: 52px
|
|
136
224
|
* - 3xl: 56px
|
|
137
225
|
*/
|
|
138
|
-
size?: VariantProps<typeof classes$
|
|
226
|
+
size?: VariantProps<typeof classes$2>['size'];
|
|
139
227
|
/**
|
|
140
228
|
* @param gap - Gap between the input and the prefix/suffix
|
|
141
229
|
* @default xl - 20px
|
|
@@ -147,8 +235,8 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
147
235
|
* - lg: 16px
|
|
148
236
|
* - xl: 20px
|
|
149
237
|
*/
|
|
150
|
-
gap?: VariantProps<typeof classes$
|
|
151
|
-
outline?: VariantProps<typeof classes$
|
|
238
|
+
gap?: VariantProps<typeof classes$2>['gap'];
|
|
239
|
+
outline?: VariantProps<typeof classes$2>['outline'];
|
|
152
240
|
/**
|
|
153
241
|
* @param rounded - Border radius of the input
|
|
154
242
|
* @default lg
|
|
@@ -160,7 +248,7 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
160
248
|
* - xl: 12px
|
|
161
249
|
* - 2xl: 16px
|
|
162
250
|
*/
|
|
163
|
-
rounded?: VariantProps<typeof classes$
|
|
251
|
+
rounded?: VariantProps<typeof classes$2>['rounded'];
|
|
164
252
|
prefix?: React.ReactNode;
|
|
165
253
|
surffix?: React.ReactNode;
|
|
166
254
|
}
|
|
@@ -171,14 +259,51 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
171
259
|
* @param gap - Gap between the input and the prefix/suffix
|
|
172
260
|
* @param outline - Outline of the input
|
|
173
261
|
* @param rounded - Border radius of the input
|
|
174
|
-
* @param className - Class name
|
|
175
262
|
*/
|
|
176
|
-
declare const Input:
|
|
263
|
+
declare const Input: react0.ForwardRefExoticComponent<InputProps & react0.RefAttributes<HTMLInputElement>>;
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region src/ui/layout/layout.d.ts
|
|
266
|
+
declare const classes$1: (props?: ({
|
|
267
|
+
type?: "content" | "main" | null | undefined;
|
|
268
|
+
maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "none" | "full" | null | undefined;
|
|
269
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
270
|
+
interface LayoutProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes$1> {
|
|
271
|
+
/**
|
|
272
|
+
* @param type - Type of the layout
|
|
273
|
+
* @default main
|
|
274
|
+
* @property
|
|
275
|
+
* - main: flex column
|
|
276
|
+
* - content: grow my-0
|
|
277
|
+
*/
|
|
278
|
+
type?: VariantProps<typeof classes$1>['type'];
|
|
279
|
+
/**
|
|
280
|
+
* @param maxWidth - Maximum width of the layout
|
|
281
|
+
* @default full
|
|
282
|
+
* @property
|
|
283
|
+
* - none: 0
|
|
284
|
+
* - xs: 320px (>=1280px: 100%)
|
|
285
|
+
* - sm: 384px (>=1280px: 100%)
|
|
286
|
+
* - md: 448px (>=1280px: 100%)
|
|
287
|
+
* - lg: 512px (>=1280px: 100%)
|
|
288
|
+
* - xl: 576px (>=1280px: 100%)
|
|
289
|
+
* - 2xl: 672px (>=1280px: 100%)
|
|
290
|
+
* - 3xl: 768px (>=1280px: 100%)
|
|
291
|
+
* - full: 100%
|
|
292
|
+
*/
|
|
293
|
+
maxWidth?: VariantProps<typeof classes$1>['maxWidth'];
|
|
294
|
+
}
|
|
295
|
+
declare function Layout({
|
|
296
|
+
children,
|
|
297
|
+
className,
|
|
298
|
+
type,
|
|
299
|
+
maxWidth,
|
|
300
|
+
...props
|
|
301
|
+
}: LayoutProps): react_jsx_runtime0.JSX.Element;
|
|
177
302
|
//#endregion
|
|
178
303
|
//#region src/ui/skeleton/skeleton.d.ts
|
|
179
304
|
declare const classes: (props?: ({
|
|
180
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "
|
|
181
|
-
rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "
|
|
305
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "square" | null | undefined;
|
|
306
|
+
rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "none" | "full" | null | undefined;
|
|
182
307
|
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
183
308
|
interface SkeletonProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes> {
|
|
184
309
|
/**
|
|
@@ -228,7 +353,6 @@ interface SkeletonProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typ
|
|
|
228
353
|
* @param rounded - Rounded of the skeleton
|
|
229
354
|
* @param width - Width of the skeleton
|
|
230
355
|
* @param height - Height of the skeleton
|
|
231
|
-
* @param className - Class name
|
|
232
356
|
*/
|
|
233
357
|
declare function Skeleton({
|
|
234
358
|
size,
|
|
@@ -239,53 +363,4 @@ declare function Skeleton({
|
|
|
239
363
|
...props
|
|
240
364
|
}: SkeletonProps): react_jsx_runtime0.JSX.Element;
|
|
241
365
|
//#endregion
|
|
242
|
-
|
|
243
|
-
type SubPlacement = 'start' | 'end';
|
|
244
|
-
type MainPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
245
|
-
type TooltipPlacement = MainPlacement | `${MainPlacement}-${SubPlacement}`;
|
|
246
|
-
interface TooltipContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
247
|
-
/**
|
|
248
|
-
* @param children - Trigger element
|
|
249
|
-
*/
|
|
250
|
-
children: React.ReactNode;
|
|
251
|
-
/**
|
|
252
|
-
* @param content - Tooltip content
|
|
253
|
-
*/
|
|
254
|
-
content: string;
|
|
255
|
-
/**
|
|
256
|
-
* @param placement - Placement of the tooltip
|
|
257
|
-
* @default top
|
|
258
|
-
* @property
|
|
259
|
-
* - top
|
|
260
|
-
* - bottom
|
|
261
|
-
* - left
|
|
262
|
-
* - right
|
|
263
|
-
* - top-start
|
|
264
|
-
* - top-end
|
|
265
|
-
* - bottom-start
|
|
266
|
-
* - bottom-end
|
|
267
|
-
* - left-start
|
|
268
|
-
* - left-end
|
|
269
|
-
* - right-start
|
|
270
|
-
* - right-end
|
|
271
|
-
*/
|
|
272
|
-
placement?: TooltipPlacement;
|
|
273
|
-
/**
|
|
274
|
-
* @param defaultOpen - Default open state of the tooltip
|
|
275
|
-
* @default false
|
|
276
|
-
* @property
|
|
277
|
-
* - true: Open the tooltip
|
|
278
|
-
* - false: Close the tooltip
|
|
279
|
-
*/
|
|
280
|
-
defaultOpen?: boolean;
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* @param children - Trigger element
|
|
284
|
-
* @param content - Tooltip content
|
|
285
|
-
* @param defaultOpen - Default open state of the tooltip
|
|
286
|
-
* @param className - Class name
|
|
287
|
-
* @param placement - Placement of the tooltip
|
|
288
|
-
*/
|
|
289
|
-
declare const TooltipContainer: react4.ForwardRefExoticComponent<TooltipContainerProps & react4.RefAttributes<HTMLDivElement>>;
|
|
290
|
-
//#endregion
|
|
291
|
-
export { BottomAppBar, type BottomAppBarProps, Button, type ButtonProps, ConditionalWrapper, type ConditionalWrapperProps, Input, type InputProps, Skeleton, type SkeletonProps, TooltipContainer as Tooltip, type TooltipContainerProps as TooltipProps };
|
|
366
|
+
export { BottomAppBar, type BottomAppBarProps, Button, type ButtonProps, ConditionalWrapper, type ConditionalWrapperProps, Footer, type FooterProps, Header, type HeaderProps, Input, type InputProps, Layout, type LayoutProps, Skeleton, type SkeletonProps };
|