@paciu/ui 0.0.33 → 0.0.34

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,2 @@
1
1
  export { Button } from './button';
2
+ export { Row } from './row';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ type RowProps = React.PropsWithChildren;
3
+ export declare const Row: React.FC<RowProps>;
4
+ export {};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(o,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],i):(o=typeof globalThis<"u"?globalThis:o||self,i(o["paciu-ui"]={},o["react/jsx-runtime"],o.react))})(this,function(o,i,c){"use strict";const s={"paciu-ui-button":"_paciu-ui-button_bb2dv_2",small:"_small_bb2dv_17",text:"_text_bb2dv_26",error:"_error_bb2dv_40"};function a(t){var n,r,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(n=0;n<u;n++)t[n]&&(r=a(t[n]))&&(e&&(e+=" "),e+=r)}else for(r in t)t[r]&&(e&&(e+=" "),e+=r);return e}function f(){for(var t,n,r=0,e="",u=arguments.length;r<u;r++)(t=arguments[r])&&(n=a(t))&&(e&&(e+=" "),e+=n);return e}const d=t=>{const{children:n,className:r,color:e,text:u,icon:m,loading:p,small:b,...y}=t;return i.jsx("button",{className:f(s["paciu-ui-button"],{[s.text]:u,[s.small]:b,[s.icon]:m,[s.loading]:p,...e&&{[s[e]]:e}},r),...y,children:n})},l=t=>{c.useEffect(()=>{const n=r=>{r.key==="Escape"&&(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation(),t())};return document.addEventListener("keydown",n,!0),()=>document.removeEventListener("keydown",n,!0)},[t])};o.Button=d,o.useEscape=l,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
1
+ (function(o,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],s):(o=typeof globalThis<"u"?globalThis:o||self,s(o["paciu-ui"]={},o["react/jsx-runtime"],o.react))})(this,function(o,s,c){"use strict";const i={"paciu-ui-button":"_paciu-ui-button_bb2dv_2",small:"_small_bb2dv_17",text:"_text_bb2dv_26",error:"_error_bb2dv_40"};function a(t){var n,r,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(n=0;n<u;n++)t[n]&&(r=a(t[n]))&&(e&&(e+=" "),e+=r)}else for(r in t)t[r]&&(e&&(e+=" "),e+=r);return e}function d(){for(var t,n,r=0,e="",u=arguments.length;r<u;r++)(t=arguments[r])&&(n=a(t))&&(e&&(e+=" "),e+=n);return e}const f=t=>{const{children:n,className:r,color:e,text:u,icon:m,loading:b,small:y,..._}=t;return s.jsx("button",{className:d(i["paciu-ui-button"],{[i.text]:u,[i.small]:y,[i.icon]:m,[i.loading]:b,...e&&{[i[e]]:e}},r),..._,children:n})},l=({children:t})=>s.jsx("div",{style:{padding:12},children:t}),p=t=>{c.useEffect(()=>{const n=r=>{r.key==="Escape"&&(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation(),t())};return document.addEventListener("keydown",n,!0),()=>document.removeEventListener("keydown",n,!0)},[t])};o.Button=f,o.Row=l,o.useEscape=p,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paciu/ui",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",