@radui/ui 0.0.33 → 0.0.35

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 +1 @@
1
- 'use client';import e from"react";var r=function(){return r=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var n in r=arguments[a])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},r.apply(this,arguments)};function a(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(a[t[n]]=e[t[n]])}return a}function t(e){var r,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(a=t(e[r]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function n(){for(var e,r,a=0,n="",o=arguments.length;a<o;a++)(e=arguments[a])&&(r=t(e))&&(n&&(n+=" "),n+=r);return n}"function"==typeof SuppressedError&&SuppressedError;var o=function(){return console.warn("Direct usage of Table is not supported. Please use Table.Root, Table.Head, etc. instead."),null};o.Root=function(t){var o=t.children,c=t.className,l=void 0===c?"":c,s=t.customRootClass,i=void 0===s?"":s,u=a(t,["children","className","customRootClass"]),d=function(e,r){if(void 0===e&&(e=""),e)return e;var a=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return"".concat("rad-ui","-").concat(a)}(i,"Table");return e.createElement("div",r({className:n("".concat(d,"-wrapper"),l)},u),e.createElement("table",{className:n(d)},o))},o.Body=function(t){var o=t.children,c=t.className,l=void 0===c?"":c,s=a(t,["children","className"]);return e.createElement("tbody",r({className:n(l)},s),o)},o.Head=function(t){var o=t.children,c=t.className,l=void 0===c?"header":c,s=a(t,["children","className"]);return e.createElement("thead",r({className:n(l)},s),o)},o.Row=function(t){var o=t.children,c=t.className,l=void 0===c?"row":c,s=a(t,["children","className"]);return e.createElement("tr",r({className:n(l)},s),o)},o.Cell=function(t){var o=t.children,c=t.className,l=void 0===c?"cell":c,s=a(t,["children","className"]);return e.createElement("td",r({className:n(l)},s),o)},o.ColumnCellHeader=function(t){var o=t.children,c=t.className,l=void 0===c?"cell-header":c,s=a(t,["children","className"]);return e.createElement("th",r({className:n(l)},s),o)};export{o as default};
1
+ 'use client';import e from"react";var a=function(){return a=Object.assign||function(e){for(var a,r=1,t=arguments.length;r<t;r++)for(var l in a=arguments[r])Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l]);return e},a.apply(this,arguments)};function r(e,a){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(t=Object.getOwnPropertySymbols(e);l<t.length;l++)a.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]])}return r}function t(e){var a,r,l="";if("string"==typeof e||"number"==typeof e)l+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(a=0;a<n;a++)e[a]&&(r=t(e[a]))&&(l&&(l+=" "),l+=r)}else for(r in e)e[r]&&(l&&(l+=" "),l+=r);return l}function l(){for(var e,a,r=0,l="",n=arguments.length;r<n;r++)(e=arguments[r])&&(a=t(e))&&(l&&(l+=" "),l+=a);return l}"function"==typeof SuppressedError&&SuppressedError;var n="Table",o=function(t){var o=t.children,c=t.className,s=void 0===c?"":c,i=t.customRootClass,d=void 0===i?"":i,u=r(t,["children","className","customRootClass"]),m=function(e,a){if(void 0===e&&(e=""),e)return e;var r=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return"".concat("rad-ui","-").concat(r)}(d,n);return e.createElement("div",a({className:l("".concat(m,"-wrapper"),s)},u),e.createElement("table",{className:l(m)},o))};o.displayName=n;var c=function(t){var n=t.children,o=t.className,c=void 0===o?"header":o,s=r(t,["children","className"]);return e.createElement("thead",a({className:l(c)},s),n)};c.displayName="TableHead";var s=function(t){var n=t.children,o=t.className,c=void 0===o?"":o,s=r(t,["children","className"]);return e.createElement("tbody",a({className:l(c)},s),n)};s.displayName="TableBody";var i=function(t){var n=t.children,o=t.className,c=void 0===o?"row":o,s=r(t,["children","className"]);return e.createElement("tr",a({className:l(c)},s),n)};i.displayName="TableRow";var d=function(t){var n=t.children,o=t.className,c=void 0===o?"cell-header":o,s=r(t,["children","className"]);return e.createElement("th",a({className:l(c)},s),n)};d.displayName="TableColumnCellHeader";var u=function(t){var n=t.children,o=t.className,c=void 0===o?"cell":o,s=r(t,["children","className"]);return e.createElement("td",a({className:l(c)},s),n)};u.displayName="TableCell";var m=function(){return console.warn("Direct usage of Table is not supported. Please use Table.Root, Table.Head, etc. instead."),null};m.Root=o,m.Body=s,m.Head=c,m.Row=i,m.Cell=u,m.ColumnCellHeader=d;export{m as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radui/ui",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "",
5
5
  "main": "dist",
6
6
  "type": "module",