@unizap/uniui 1.0.79 → 1.0.80

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.
@@ -1,5 +1,5 @@
1
1
  import { TableProps } from './Table.types';
2
- declare const Table: <T>({ data, id, columns, pageSize, pageIndex, onPageSizeChange, onPageChange, rowOptionArray, totalRecords, className, paginationClassName, tdClassName, thClassName, responsive, paginationMenuPlacementTop, }: TableProps<T> & {
2
+ declare const Table: <T>({ data, id, columns, pageSize, pageIndex, onPageSizeChange, onPageChange, rowOptionArray, totalRecords, className, paginationClassName, tdClassName, thClassName, responsive, paginationMenuPlacementTop }: TableProps<T> & {
3
3
  totalRecords?: number;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
5
5
  export default Table;
package/dist/uniui.js CHANGED
@@ -5865,7 +5865,7 @@ const Na = {
5865
5865
  tdClassName: m = "",
5866
5866
  thClassName: g = "",
5867
5867
  responsive: u = !1,
5868
- paginationMenuPlacementTop: v = !0
5868
+ paginationMenuPlacementTop: v
5869
5869
  }) => {
5870
5870
  const f = Ma({
5871
5871
  data: e,
@@ -5929,7 +5929,7 @@ const Na = {
5929
5929
  {
5930
5930
  options: l,
5931
5931
  selectedValue: n,
5932
- placementTop: v,
5932
+ placementTop: v ?? !0,
5933
5933
  onChange: (b) => {
5934
5934
  a(b), r(0);
5935
5935
  }
@@ -95,7 +95,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
95
95
  * LICENSE.md file in the root directory of this source tree.
96
96
  *
97
97
  * @license MIT
98
- */function Uo(e,o){return e?ma(e)?mt.createElement(e,o):e:null}function ma(e){return va(e)||typeof e=="function"||ha(e)}function va(e){return typeof e=="function"&&(()=>{const o=Object.getPrototypeOf(e);return o.prototype&&o.prototype.isReactComponent})()}function ha(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function xa(e){const o={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=mt.useState(()=>({current:ga(o)})),[n,r]=mt.useState(()=>t.current.initialState);return t.current.setOptions(a=>({...a,...e,state:{...n,...e.state},onStateChange:l=>{r(l),e.onStateChange==null||e.onStateChange(l)}})),t.current}const ya={h1:"text-5xl font-bold",h2:"text-4xl font-bold",h3:"text-3xl font-bold",h4:"text-2xl font-semibold",h5:"text-xl font-semibold",h6:"text-lg font-semibold",subtitle1:"text-base font-medium",subtitle2:"text-sm font-normal",body1:"text-base",body2:"text-sm",caption:"text-xs",overline:"text-xs uppercase tracking-wide"},Ko=({variant:e="body1",component:o,className:t="",children:n,id:r,color:a="dark"})=>{var c;const s=o||{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"p",subtitle2:"p",body1:"p",body2:"p",caption:"span",overline:"span"}[e]||"p";return i.jsx(s,{className:`${ya[e]} ${(c=ve[a])==null?void 0:c.text} ${t}`,...r?{id:r}:{},children:n})},Xo=({total:e,currentPage:o,pageSize:t=10,onPageChange:n,hideEdgeButtons:r=!1,className:a="",iconClass:l="",pageClass:s=""})=>{const c=Math.ceil(e/t),d=o===1,u=o===c;return c<=1?null:i.jsxs("div",{className:`flex items-center space-x-1 ${a}`,children:[!r&&i.jsx(be,{color:"dark",icon:i.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M4.83582 12L11.0429 18.2071L12.4571 16.7929L7.66424 12L12.4571 7.20712L11.0429 5.79291L4.83582 12ZM10.4857 12L16.6928 18.2071L18.107 16.7929L13.3141 12L18.107 7.20712L16.6928 5.79291L10.4857 12Z"})}),onClick:()=>n(1),disabled:d,roundedFull:!0,size:"small",variant:"transparent",className:l}),i.jsx(be,{color:"dark",icon:i.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z"})}),onClick:()=>n(o-1),disabled:d,roundedFull:!0,size:"small",variant:"transparent",className:l}),i.jsxs("span",{className:`text-sm text-color-gray-800 ${s}`,children:["Page ",o," of ",c]}),i.jsx(be,{color:"dark",icon:i.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})}),onClick:()=>n(o+1),disabled:u,roundedFull:!0,size:"small",variant:"transparent",className:l}),!r&&i.jsx(be,{color:"dark",icon:i.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M19.1642 12L12.9571 5.79291L11.5429 7.20712L16.3358 12L11.5429 16.7929L12.9571 18.2071L19.1642 12ZM13.5143 12L7.30722 5.79291L5.89301 7.20712L10.6859 12L5.89301 16.7929L7.30722 18.2071L13.5143 12Z"})}),onClick:()=>n(c),disabled:u,roundedFull:!0,size:"small",variant:"transparent",className:l})]})},ba=({data:e,id:o,columns:t=[],pageSize:n,pageIndex:r,onPageSizeChange:a,onPageChange:l,rowOptionArray:s=[5,10,15],totalRecords:c=e.length,className:d="",paginationClassName:u="",tdClassName:m="",thClassName:g="",responsive:p=!1,paginationMenuPlacementTop:h=!0})=>{const f=xa({data:e,columns:t,getCoreRowModel:fa(),manualPagination:!0,pageCount:Math.ceil(c/n),state:{pagination:{pageIndex:r,pageSize:n}}});return i.jsx(i.Fragment,{children:i.jsxs("div",{className:`relative overflow-y-auto flex flex-col ${d} `,children:[i.jsx("div",{className:`${p?"overflow-x-auto":""}`,children:i.jsxs("table",{id:o,className:"w-full relative border-collapse",children:[i.jsx("thead",{className:"sticky top-0 left-0 rounded-xl bg-color-[#FAFBFB] z-10 h-10",children:f.getHeaderGroups().map(w=>i.jsx("tr",{children:w.headers.map(x=>{var _;return i.jsx("th",{className:`bg-color-[#FAFBFB] p-2 text-left text-xs font-semibold text-color-gray-500 border-b border-color-gray-200 ${g}`,id:((_=x.column.columnDef.meta)==null?void 0:_.headerId)||x.id,children:x.isPlaceholder?null:Uo(x.column.columnDef.header,x.getContext())},x.id)})},w.id))}),i.jsx("tbody",{className:"",children:f.getRowModel().rows.map(w=>i.jsx("tr",{className:"border-b border-color-gray-200",children:w.getVisibleCells().map(x=>i.jsx("td",{className:`px-2 py-4 font-normal text-sm text-color-gray-800 text-nowrap ${m}`,children:Uo(x.column.columnDef.cell,x.getContext())},x.id))},w.id))})]})}),i.jsxs("div",{className:`w-full py-4 px-2 border-t border-color-gray-200 bg-color-[#FAFBFB] flex justify-between items-center ${u} sticky bottom-0 z-10`,children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Ko,{variant:"body2",className:"hidden md:!flex",children:"Rows per page"}),i.jsx(Po,{options:s,selectedValue:n,placementTop:h,onChange:w=>{a(w),l(0)}})]}),i.jsx(Xo,{total:c,pageSize:n,currentPage:r+1,onPageChange:w=>l(w-1)})]})]})})},wa=({children:e,className:o=""})=>i.jsx("ul",{className:`divide-y divide-color-gray-200 rounded-md bg-color-white shadow-sm border border-color-gray-200 ${o}`,children:e}),ka=({children:e,secondaryAction:o,className:t=""})=>i.jsxs("li",{className:`flex items-center justify-between overflow-hidden px-4 py-3 hover:bg-color-gray-50 transition ${t}`,children:[i.jsx("div",{className:"flex-1",children:e}),o&&i.jsx("div",{className:"ml-4",children:o})]}),Ca=({open:e,onClick:o,className:t="",children:n,...r})=>{const[a,l]=v.useState(!1);return v.useEffect(()=>{let s;return e?s=setTimeout(()=>l(!0),100):l(!1),()=>clearTimeout(s)},[e]),!e&&!a?null:i.jsx("div",{className:`fixed inset-0 z-999 bg-color-black/50 flex items-center justify-center transition-all duration-300 ${a?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"} ${t}`,onClick:o,"aria-hidden":!a,...r,children:n})},Sa={small:"p-2 text-sm",medium:"p-3 text-base",large:"p-4 text-lg"},_a={filled:"bg-color-gray-100 border-color-gray-200",outlined:"border-color-gray-200 bg-color-transparent"},Jo=v.forwardRef(({placeholder:e,value:o,onChange:t,type:n="text",inputMode:r="numeric",className:a="",inputClass:l="",iconStyle:s="",startIcon:c,endIcon:d,error:u,maxLength:m,label:g,labelClass:p="",variant:h="outlined",size:f="medium",...w},x)=>{const[_,b]=v.useState(""),C=o!==void 0,y=C?o:_,I=u?"border-color-red-500 focus-within:ring-color-red-500":"border-color-gray-200",j=u?"text-color-red-500":s,G=ee=>{let W=ee.target.value.replace(/(?!^\+)[^\d]/g,"");W.startsWith("+")&&(W="+"+W.slice(1).replace(/\+/g,"")),W=W.replace(/\s/g,""),(!m||W.replace(/^\+/,"").length<=m)&&(t&&t({...ee,target:{...ee.target,value:W}}),C||b(W))};return i.jsxs("div",{className:"w-full",children:[g&&i.jsx("label",{className:`text-sm font-medium text-color-gray-700 mb-1 block ${p}`,children:g}),i.jsxs("div",{className:`flex items-center w-full rounded-md border focus-within:ring-1 ${I} ${_a[h]} ${a}`,children:[c&&i.jsx("span",{className:`pl-3 ${j}`,children:c}),i.jsx("input",{...w,ref:x,type:"text",inputMode:"numeric",placeholder:e,value:y,onChange:G,className:`grow outline-0 w-full font-medium placeholder:font-normal bg-color-transparent ${Sa[f]} ${l}`}),d&&i.jsx("span",{className:`pr-3 ${j}`,children:d})]}),u&&i.jsx("p",{className:"text-color-red-500 text-xs mt-1",children:u})]})});Jo.displayName="NumberInput";const Qo=({animation:e="pulse",variant:o="rectangular",width:t,height:n,className:r=""})=>{const a="bg-color-gray-200 dark:bg-color-gray-700",l={pulse:"animate-pulse",wave:"relative overflow-hidden"},s=()=>{switch(o){case"circular":return{classes:"rounded-full",defaultWidth:40,defaultHeight:40};case"rectangular":return{classes:"",defaultWidth:200,defaultHeight:100};case"rounded":return{classes:"rounded-lg",defaultWidth:200,defaultHeight:100};case"text":return{classes:"rounded-sm",defaultWidth:void 0,defaultHeight:16};default:return{classes:"",defaultWidth:200,defaultHeight:100}}},{classes:c,defaultWidth:d,defaultHeight:u}=s(),m=t??d,g=n??u,p={};m!==void 0&&(p.width=`${m}px`),g!==void 0&&(p.height=`${g}px`),o==="text"&&t===void 0&&(p.width="100%");const h=[a,c,l[e],r].filter(Boolean).join(" ");return i.jsx("div",{className:h,style:p,children:e==="wave"&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"absolute inset-0 bg-gradient-[linear-gradient(90deg,_rgba(255,_255,_255,_0)_0%,_rgba(255,_255,_255,_0.35)_50%,_rgba(255,_255,_255,_0)_100%)] dark:bg-gradient-[linear-gradient(90deg,_rgba(255,_255,_255,_0)_0%,_rgba(255,_255,_255,_0.1)_50%,_rgba(255,_255,_255,_0)_100%)]",style:{animation:"skeleton-wave 2s ease-in-out infinite"}}),i.jsx("style",{children:`
98
+ */function Uo(e,o){return e?ma(e)?mt.createElement(e,o):e:null}function ma(e){return va(e)||typeof e=="function"||ha(e)}function va(e){return typeof e=="function"&&(()=>{const o=Object.getPrototypeOf(e);return o.prototype&&o.prototype.isReactComponent})()}function ha(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function xa(e){const o={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=mt.useState(()=>({current:ga(o)})),[n,r]=mt.useState(()=>t.current.initialState);return t.current.setOptions(a=>({...a,...e,state:{...n,...e.state},onStateChange:l=>{r(l),e.onStateChange==null||e.onStateChange(l)}})),t.current}const ya={h1:"text-5xl font-bold",h2:"text-4xl font-bold",h3:"text-3xl font-bold",h4:"text-2xl font-semibold",h5:"text-xl font-semibold",h6:"text-lg font-semibold",subtitle1:"text-base font-medium",subtitle2:"text-sm font-normal",body1:"text-base",body2:"text-sm",caption:"text-xs",overline:"text-xs uppercase tracking-wide"},Ko=({variant:e="body1",component:o,className:t="",children:n,id:r,color:a="dark"})=>{var c;const s=o||{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"p",subtitle2:"p",body1:"p",body2:"p",caption:"span",overline:"span"}[e]||"p";return i.jsx(s,{className:`${ya[e]} ${(c=ve[a])==null?void 0:c.text} ${t}`,...r?{id:r}:{},children:n})},Xo=({total:e,currentPage:o,pageSize:t=10,onPageChange:n,hideEdgeButtons:r=!1,className:a="",iconClass:l="",pageClass:s=""})=>{const c=Math.ceil(e/t),d=o===1,u=o===c;return c<=1?null:i.jsxs("div",{className:`flex items-center space-x-1 ${a}`,children:[!r&&i.jsx(be,{color:"dark",icon:i.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M4.83582 12L11.0429 18.2071L12.4571 16.7929L7.66424 12L12.4571 7.20712L11.0429 5.79291L4.83582 12ZM10.4857 12L16.6928 18.2071L18.107 16.7929L13.3141 12L18.107 7.20712L16.6928 5.79291L10.4857 12Z"})}),onClick:()=>n(1),disabled:d,roundedFull:!0,size:"small",variant:"transparent",className:l}),i.jsx(be,{color:"dark",icon:i.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z"})}),onClick:()=>n(o-1),disabled:d,roundedFull:!0,size:"small",variant:"transparent",className:l}),i.jsxs("span",{className:`text-sm text-color-gray-800 ${s}`,children:["Page ",o," of ",c]}),i.jsx(be,{color:"dark",icon:i.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})}),onClick:()=>n(o+1),disabled:u,roundedFull:!0,size:"small",variant:"transparent",className:l}),!r&&i.jsx(be,{color:"dark",icon:i.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M19.1642 12L12.9571 5.79291L11.5429 7.20712L16.3358 12L11.5429 16.7929L12.9571 18.2071L19.1642 12ZM13.5143 12L7.30722 5.79291L5.89301 7.20712L10.6859 12L5.89301 16.7929L7.30722 18.2071L13.5143 12Z"})}),onClick:()=>n(c),disabled:u,roundedFull:!0,size:"small",variant:"transparent",className:l})]})},ba=({data:e,id:o,columns:t=[],pageSize:n,pageIndex:r,onPageSizeChange:a,onPageChange:l,rowOptionArray:s=[5,10,15],totalRecords:c=e.length,className:d="",paginationClassName:u="",tdClassName:m="",thClassName:g="",responsive:p=!1,paginationMenuPlacementTop:h})=>{const f=xa({data:e,columns:t,getCoreRowModel:fa(),manualPagination:!0,pageCount:Math.ceil(c/n),state:{pagination:{pageIndex:r,pageSize:n}}});return i.jsx(i.Fragment,{children:i.jsxs("div",{className:`relative overflow-y-auto flex flex-col ${d} `,children:[i.jsx("div",{className:`${p?"overflow-x-auto":""}`,children:i.jsxs("table",{id:o,className:"w-full relative border-collapse",children:[i.jsx("thead",{className:"sticky top-0 left-0 rounded-xl bg-color-[#FAFBFB] z-10 h-10",children:f.getHeaderGroups().map(w=>i.jsx("tr",{children:w.headers.map(x=>{var _;return i.jsx("th",{className:`bg-color-[#FAFBFB] p-2 text-left text-xs font-semibold text-color-gray-500 border-b border-color-gray-200 ${g}`,id:((_=x.column.columnDef.meta)==null?void 0:_.headerId)||x.id,children:x.isPlaceholder?null:Uo(x.column.columnDef.header,x.getContext())},x.id)})},w.id))}),i.jsx("tbody",{className:"",children:f.getRowModel().rows.map(w=>i.jsx("tr",{className:"border-b border-color-gray-200",children:w.getVisibleCells().map(x=>i.jsx("td",{className:`px-2 py-4 font-normal text-sm text-color-gray-800 text-nowrap ${m}`,children:Uo(x.column.columnDef.cell,x.getContext())},x.id))},w.id))})]})}),i.jsxs("div",{className:`w-full py-4 px-2 border-t border-color-gray-200 bg-color-[#FAFBFB] flex justify-between items-center ${u} sticky bottom-0 z-10`,children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Ko,{variant:"body2",className:"hidden md:!flex",children:"Rows per page"}),i.jsx(Po,{options:s,selectedValue:n,placementTop:h??!0,onChange:w=>{a(w),l(0)}})]}),i.jsx(Xo,{total:c,pageSize:n,currentPage:r+1,onPageChange:w=>l(w-1)})]})]})})},wa=({children:e,className:o=""})=>i.jsx("ul",{className:`divide-y divide-color-gray-200 rounded-md bg-color-white shadow-sm border border-color-gray-200 ${o}`,children:e}),ka=({children:e,secondaryAction:o,className:t=""})=>i.jsxs("li",{className:`flex items-center justify-between overflow-hidden px-4 py-3 hover:bg-color-gray-50 transition ${t}`,children:[i.jsx("div",{className:"flex-1",children:e}),o&&i.jsx("div",{className:"ml-4",children:o})]}),Ca=({open:e,onClick:o,className:t="",children:n,...r})=>{const[a,l]=v.useState(!1);return v.useEffect(()=>{let s;return e?s=setTimeout(()=>l(!0),100):l(!1),()=>clearTimeout(s)},[e]),!e&&!a?null:i.jsx("div",{className:`fixed inset-0 z-999 bg-color-black/50 flex items-center justify-center transition-all duration-300 ${a?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"} ${t}`,onClick:o,"aria-hidden":!a,...r,children:n})},Sa={small:"p-2 text-sm",medium:"p-3 text-base",large:"p-4 text-lg"},_a={filled:"bg-color-gray-100 border-color-gray-200",outlined:"border-color-gray-200 bg-color-transparent"},Jo=v.forwardRef(({placeholder:e,value:o,onChange:t,type:n="text",inputMode:r="numeric",className:a="",inputClass:l="",iconStyle:s="",startIcon:c,endIcon:d,error:u,maxLength:m,label:g,labelClass:p="",variant:h="outlined",size:f="medium",...w},x)=>{const[_,b]=v.useState(""),C=o!==void 0,y=C?o:_,I=u?"border-color-red-500 focus-within:ring-color-red-500":"border-color-gray-200",j=u?"text-color-red-500":s,G=ee=>{let W=ee.target.value.replace(/(?!^\+)[^\d]/g,"");W.startsWith("+")&&(W="+"+W.slice(1).replace(/\+/g,"")),W=W.replace(/\s/g,""),(!m||W.replace(/^\+/,"").length<=m)&&(t&&t({...ee,target:{...ee.target,value:W}}),C||b(W))};return i.jsxs("div",{className:"w-full",children:[g&&i.jsx("label",{className:`text-sm font-medium text-color-gray-700 mb-1 block ${p}`,children:g}),i.jsxs("div",{className:`flex items-center w-full rounded-md border focus-within:ring-1 ${I} ${_a[h]} ${a}`,children:[c&&i.jsx("span",{className:`pl-3 ${j}`,children:c}),i.jsx("input",{...w,ref:x,type:"text",inputMode:"numeric",placeholder:e,value:y,onChange:G,className:`grow outline-0 w-full font-medium placeholder:font-normal bg-color-transparent ${Sa[f]} ${l}`}),d&&i.jsx("span",{className:`pr-3 ${j}`,children:d})]}),u&&i.jsx("p",{className:"text-color-red-500 text-xs mt-1",children:u})]})});Jo.displayName="NumberInput";const Qo=({animation:e="pulse",variant:o="rectangular",width:t,height:n,className:r=""})=>{const a="bg-color-gray-200 dark:bg-color-gray-700",l={pulse:"animate-pulse",wave:"relative overflow-hidden"},s=()=>{switch(o){case"circular":return{classes:"rounded-full",defaultWidth:40,defaultHeight:40};case"rectangular":return{classes:"",defaultWidth:200,defaultHeight:100};case"rounded":return{classes:"rounded-lg",defaultWidth:200,defaultHeight:100};case"text":return{classes:"rounded-sm",defaultWidth:void 0,defaultHeight:16};default:return{classes:"",defaultWidth:200,defaultHeight:100}}},{classes:c,defaultWidth:d,defaultHeight:u}=s(),m=t??d,g=n??u,p={};m!==void 0&&(p.width=`${m}px`),g!==void 0&&(p.height=`${g}px`),o==="text"&&t===void 0&&(p.width="100%");const h=[a,c,l[e],r].filter(Boolean).join(" ");return i.jsx("div",{className:h,style:p,children:e==="wave"&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"absolute inset-0 bg-gradient-[linear-gradient(90deg,_rgba(255,_255,_255,_0)_0%,_rgba(255,_255,_255,_0.35)_50%,_rgba(255,_255,_255,_0)_100%)] dark:bg-gradient-[linear-gradient(90deg,_rgba(255,_255,_255,_0)_0%,_rgba(255,_255,_255,_0.1)_50%,_rgba(255,_255,_255,_0)_100%)]",style:{animation:"skeleton-wave 2s ease-in-out infinite"}}),i.jsx("style",{children:`
99
99
  @keyframes skeleton-wave {
100
100
  0% { transform: translateX(-100%); }
101
101
  50% { transform: translateX(100%); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizap/uniui",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "description": "UniUi helps developers and designers build beautiful, responsive UIs faster with ready-made, customizable components. Simplify your workflow and create stunning user interfaces effortlessly.",
5
5
  "type": "module",
6
6
  "files": [