@paciu/ui 0.0.9 → 0.0.11

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/index.js CHANGED
@@ -1 +1 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.paciu={},e["react/jsx-runtime"]))})(this,function(e,t){"use strict";const c=u=>{const{children:r,className:s,color:n,text:d,icon:l,small:a,loading:f,hint:o,...p}=u,i=["paciu-ui-button"];return d&&i.push("text"),l&&i.push("icon"),a&&i.push("small"),n&&i.push(n),s&&i.push(s),t.jsxs("button",{className:i.join(" "),...p,children:[r,o&&t.jsx("div",{className:"hint",children:o}),f&&t.jsx("div",{className:"loading",children:"Загрузка ..."})]})};e.Button=c,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.paciu={},e["react/jsx-runtime"]))})(this,function(e,t){"use strict";const c={},u=r=>{const{children:l,className:i,color:n,text:d,icon:a,small:f,loading:p,hint:o,...h}=r,s=[c.paciuUiButton];return d&&s.push("text"),a&&s.push("icon"),f&&s.push("small"),n&&s.push(n),i&&s.push(i),t.jsxs("button",{className:s.join(" "),...h,children:[l,o&&t.jsx("div",{className:"hint",children:o}),p&&t.jsx("div",{className:"loading",children:"Загрузка ..."})]})};e.Button=u,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
package/dist/styles.css CHANGED
@@ -1 +1 @@
1
- .paciu-ui-button{position:relative;overflow:hidden;font:inherit;font-weight:600;width:100%;border:none;border-radius:16px;padding:0 15px;min-height:42px;cursor:pointer;background:#333;color:#fff;transition:.2s}.paciu-ui-button .hint{font-size:12px;opacity:.5;line-height:1}.paciu-ui-button.icon{padding:0;min-height:42px;min-width:42px;height:42px;width:42px;border-radius:36px;display:flex;justify-content:center;align-items:center}.paciu-ui-button.icon.small{min-height:32px;min-width:32px;height:32px;width:32px;border-radius:32px}.paciu-ui-button:hover{background:#292929}.paciu-ui-button .loading{width:100%;height:100%;background:#333;position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center}.paciu-ui-button.text{color:#333;background:#3333330d}.paciu-ui-button.text:hover{background:#3333331a}.paciu-ui-button.text .loading{color:#333;background:#fff}.paciu-ui-button:disabled{opacity:.3;cursor:default;pointer-events:none}.paciu-ui-button.error{position:relative;overflow:hidden;font:inherit;font-weight:600;width:100%;border:none;border-radius:16px;padding:0 15px;min-height:42px;cursor:pointer;background:#ea2027;color:#fff;transition:.2s}.paciu-ui-button.error .hint{font-size:12px;opacity:.5;line-height:1}.paciu-ui-button.error.icon{padding:0;min-height:42px;min-width:42px;height:42px;width:42px;border-radius:36px;display:flex;justify-content:center;align-items:center}.paciu-ui-button.error.icon.small{min-height:32px;min-width:32px;height:32px;width:32px;border-radius:32px}.paciu-ui-button.error:hover{background:#e0161d}.paciu-ui-button.error .loading{width:100%;height:100%;background:#ea2027;position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center}.paciu-ui-button.error.text{color:#ea2027;background:#ea20270d}.paciu-ui-button.error.text:hover{background:#ea20271a}.paciu-ui-button.error.text .loading{color:#ea2027;background:#fff}.paciu-ui-button.error:disabled{opacity:.3;cursor:default;pointer-events:none}
1
+ ._paciu-ui-button_jedc1_2{position:relative;overflow:hidden;font:inherit;font-weight:600;width:100%;border:none;border-radius:16px;padding:0 15px;min-height:42px;cursor:pointer;background:#333;color:#fff;transition:.2s}._paciu-ui-button_jedc1_2 ._hint_jedc1_17{font-size:12px;opacity:.5;line-height:1}._paciu-ui-button_jedc1_2._icon_jedc1_22{padding:0;min-height:42px;min-width:42px;height:42px;width:42px;border-radius:36px;display:flex;justify-content:center;align-items:center}._paciu-ui-button_jedc1_2._icon_jedc1_22._small_jedc1_33{min-height:32px;min-width:32px;height:32px;width:32px;border-radius:32px}._paciu-ui-button_jedc1_2:hover{background:#292929}._paciu-ui-button_jedc1_2 ._loading_jedc1_43{width:100%;height:100%;background:#333;position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center}._paciu-ui-button_jedc1_2._text_jedc1_54{color:#333;background:#3333330d}._paciu-ui-button_jedc1_2._text_jedc1_54:hover{background:#3333331a}._paciu-ui-button_jedc1_2._text_jedc1_54 ._loading_jedc1_43{color:#333;background:#fff}._paciu-ui-button_jedc1_2:disabled{opacity:.3;cursor:default;pointer-events:none}._paciu-ui-button_jedc1_2._error_jedc1_71{position:relative;overflow:hidden;font:inherit;font-weight:600;width:100%;border:none;border-radius:16px;padding:0 15px;min-height:42px;cursor:pointer;background:#ea2027;color:#fff;transition:.2s}._paciu-ui-button_jedc1_2._error_jedc1_71 ._hint_jedc1_17{font-size:12px;opacity:.5;line-height:1}._paciu-ui-button_jedc1_2._error_jedc1_71._icon_jedc1_22{padding:0;min-height:42px;min-width:42px;height:42px;width:42px;border-radius:36px;display:flex;justify-content:center;align-items:center}._paciu-ui-button_jedc1_2._error_jedc1_71._icon_jedc1_22._small_jedc1_33{min-height:32px;min-width:32px;height:32px;width:32px;border-radius:32px}._paciu-ui-button_jedc1_2._error_jedc1_71:hover{background:#e0161d}._paciu-ui-button_jedc1_2._error_jedc1_71 ._loading_jedc1_43{width:100%;height:100%;background:#ea2027;position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center}._paciu-ui-button_jedc1_2._error_jedc1_71._text_jedc1_54{color:#ea2027;background:#ea20270d}._paciu-ui-button_jedc1_2._error_jedc1_71._text_jedc1_54:hover{background:#ea20271a}._paciu-ui-button_jedc1_2._error_jedc1_71._text_jedc1_54 ._loading_jedc1_43{color:#ea2027;background:#fff}._paciu-ui-button_jedc1_2._error_jedc1_71:disabled{opacity:.3;cursor:default;pointer-events:none}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paciu/ui",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -11,8 +11,7 @@
11
11
  "exports": {
12
12
  ".": {
13
13
  "import": "./dist/index.js",
14
- "require": "./dist/index.js",
15
- "types": "./dist/index.d.ts"
14
+ "require": "./dist/index.js"
16
15
  },
17
16
  "./styles.css": "./dist/styles.css"
18
17
  },