@paciu/ui 0.0.32 → 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_1odhe_2",small:"_small_1odhe_17",text:"_text_1odhe_26",error:"_error_1odhe_40"};function a(e){var n,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(n=0;n<u;n++)e[n]&&(r=a(e[n]))&&(t&&(t+=" "),t+=r)}else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function f(){for(var e,n,r=0,t="",u=arguments.length;r<u;r++)(e=arguments[r])&&(n=a(e))&&(t&&(t+=" "),t+=n);return t}const d=e=>{const{children:n,className:r,color:t,text:u,icon:m,loading:p,small:y,...x}=e;return i.jsx("button",{className:f(s["paciu-ui-button"],{[s.text]:u,[s.small]:y,[s.icon]:m,[s.loading]:p,...t&&{[s[t]]:t}},r),...x,children:n})},l=e=>{c.useEffect(()=>{const n=r=>{r.key==="Escape"&&(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation(),e())};return document.addEventListener("keydown",n,!0),()=>document.removeEventListener("keydown",n,!0)},[e])};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"})});
@@ -1 +1 @@
1
- ._paciu-ui-button_1odhe_2{position:relative;overflow:hidden;font:inherit;font-weight:600;border:none;cursor:pointer;background:#333;color:#fff;font-size:16px;border-radius:16px;padding:0 16px;min-height:40px;transition:.2s}._paciu-ui-button_1odhe_2._small_1odhe_17{min-height:32px;border-radius:12px;font-size:12px;padding:0 12px}._paciu-ui-button_1odhe_2:hover{background:#242424}._paciu-ui-button_1odhe_2._text_1odhe_26{color:#333;background:#3333330d}._paciu-ui-button_1odhe_2._text_1odhe_26:hover{background:#3333331a}._paciu-ui-button_1odhe_2:disabled{background:#f018f0;color:#a0a0a0;cursor:default;pointer-events:none}._paciu-ui-button_1odhe_2._error_1odhe_40{position:relative;overflow:hidden;font:inherit;font-weight:600;border:none;cursor:pointer;background:#ea2027;color:#fff;font-size:16px;border-radius:16px;padding:0 16px;min-height:40px;transition:.2s}._paciu-ui-button_1odhe_2._error_1odhe_40._small_1odhe_17{min-height:32px;border-radius:12px;font-size:12px;padding:0 12px}._paciu-ui-button_1odhe_2._error_1odhe_40:hover{background:#db1118}._paciu-ui-button_1odhe_2._error_1odhe_40._text_1odhe_26{color:#ea2027;background:#ea20270d}._paciu-ui-button_1odhe_2._error_1odhe_40._text_1odhe_26:hover{background:#ea20271a}._paciu-ui-button_1odhe_2._error_1odhe_40:disabled{background:#f018f0;color:#a0a0a0;cursor:default;pointer-events:none}
1
+ ._paciu-ui-button_bb2dv_2{position:relative;overflow:hidden;font:inherit;font-weight:600;border:none;cursor:pointer;background:#333;color:#fff;font-size:16px;border-radius:16px;padding:0 16px;min-height:40px;transition:.2s}._paciu-ui-button_bb2dv_2._small_bb2dv_17{min-height:32px;border-radius:12px;font-size:12px;padding:0 12px}._paciu-ui-button_bb2dv_2:hover{background:#242424}._paciu-ui-button_bb2dv_2._text_bb2dv_26{color:#333;background:#3333330d}._paciu-ui-button_bb2dv_2._text_bb2dv_26:hover{background:#3333331a}._paciu-ui-button_bb2dv_2:disabled{background:#f0f0f0;color:#a0a0a0;cursor:default;pointer-events:none}._paciu-ui-button_bb2dv_2._error_bb2dv_40{position:relative;overflow:hidden;font:inherit;font-weight:600;border:none;cursor:pointer;background:#ea2027;color:#fff;font-size:16px;border-radius:16px;padding:0 16px;min-height:40px;transition:.2s}._paciu-ui-button_bb2dv_2._error_bb2dv_40._small_bb2dv_17{min-height:32px;border-radius:12px;font-size:12px;padding:0 12px}._paciu-ui-button_bb2dv_2._error_bb2dv_40:hover{background:#db1118}._paciu-ui-button_bb2dv_2._error_bb2dv_40._text_bb2dv_26{color:#ea2027;background:#ea20270d}._paciu-ui-button_bb2dv_2._error_bb2dv_40._text_bb2dv_26:hover{background:#ea20271a}._paciu-ui-button_bb2dv_2._error_bb2dv_40:disabled{background:#f0f0f0;color:#a0a0a0;cursor:default;pointer-events:none}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paciu/ui",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",