@paciu/ui 0.0.36 → 0.0.37
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 +2 -1
- package/package.json +17 -32
package/dist/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(n,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],b):(n=typeof globalThis<"u"?globalThis:n||self,b(n["paciu-ui"]={},n["react/jsx-runtime"],n.react))})(this,(function(n,b,_){"use strict";var s=document.createElement("style");s.textContent=`._button_1cbbb_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}._button_1cbbb_2._small_1cbbb_17{min-height:32px;border-radius:12px;font-size:12px;padding:0 12px}._button_1cbbb_2:hover{background:#242424}._button_1cbbb_2._text_1cbbb_26{color:#333;background:#3333330d}._button_1cbbb_2._text_1cbbb_26:hover{background:#3333331a}._button_1cbbb_2:disabled{background:#f0f0f0;color:#a0a0a0;cursor:default;pointer-events:none}._button--error_1cbbb_39{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}._button--error_1cbbb_39._small_1cbbb_17{min-height:32px;border-radius:12px;font-size:12px;padding:0 12px}._button--error_1cbbb_39:hover{background:#db1118}._button--error_1cbbb_39._text_1cbbb_26{color:#ea2027;background:#ea20270d}._button--error_1cbbb_39._text_1cbbb_26:hover{background:#ea20271a}._button--error_1cbbb_39:disabled{background:#f0f0f0;color:#a0a0a0;cursor:default;pointer-events:none}._row_1ojv4_2{padding:12px}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(s);const i={button:"_button_1cbbb_2",small:"_small_1cbbb_17",text:"_text_1cbbb_26","button--error":"_button--error_1cbbb_39"};function a(t){var r,e,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var c=t.length;for(r=0;r<c;r++)t[r]&&(e=a(t[r]))&&(o&&(o+=" "),o+=e)}else for(e in t)t[e]&&(o&&(o+=" "),o+=e);return o}function u(){for(var t,r,e=0,o="",c=arguments.length;e<c;e++)(t=arguments[e])&&(r=a(t))&&(o&&(o+=" "),o+=r);return o}const d=t=>{const{children:r,className:e,color:o,text:c,icon:x,loading:m,small:g,...h}=t;return b.jsx("button",{className:u(i.button,{[i.text]:c,[i.small]:g,[i.icon]:x,[i.loading]:m,...o&&{[i[`paciu-ui-button--${o}`]]:o}},e),...h,children:r})},f={row:"_row_1ojv4_2"},l=({children:t,className:r,...e})=>b.jsx("div",{className:u(f.row,r),...e,children:t}),p=t=>{_.useEffect(()=>{const r=e=>{e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),t())};return document.addEventListener("keydown",r,!0),()=>document.removeEventListener("keydown",r,!0)},[t])};n.Button=d,n.Row=l,n.useEscape=p,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paciu/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -8,45 +8,30 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
-
"exports":
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/index.js",
|
|
14
|
-
"require": "./dist/index.js"
|
|
15
|
-
},
|
|
16
|
-
"./styles": "./dist/styles/index.css"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"paciu"
|
|
20
|
-
],
|
|
21
|
-
"author": "Paciu Stanislav",
|
|
22
|
-
"license": "ISC",
|
|
23
|
-
"description": "paciustas.ru",
|
|
11
|
+
"exports": "./dist/index.js",
|
|
24
12
|
"scripts": {
|
|
25
13
|
"lint:format": "npx prettier ./src --write && npx eslint ./src --fix",
|
|
26
|
-
"build": "rimraf
|
|
14
|
+
"build": "rimraf dist && npm run lint:format && npx tsc -b && vite build",
|
|
27
15
|
"prod": "npm run build && npm version patch && npm publish --access public"
|
|
28
16
|
},
|
|
29
17
|
"peerDependencies": {
|
|
18
|
+
"clsx": "^2.1.1",
|
|
30
19
|
"react": "^19.0.0",
|
|
31
|
-
"react-dom": "^19.0.0"
|
|
32
|
-
"clsx": "^2.1.1"
|
|
20
|
+
"react-dom": "^19.0.0"
|
|
33
21
|
},
|
|
34
22
|
"devDependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@types/
|
|
37
|
-
"@types/react": "^19.
|
|
38
|
-
"@
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
42
|
-
"eslint-plugin-react-refresh": "^0.4.19",
|
|
43
|
-
"globals": "^16.0.0",
|
|
44
|
-
"prettier": "^3.5.3",
|
|
23
|
+
"@types/node": "^24.7.0",
|
|
24
|
+
"@types/react": "^19.2.2",
|
|
25
|
+
"@types/react-dom": "^19.2.1",
|
|
26
|
+
"@vitejs/plugin-react-swc": "^4.1.0",
|
|
27
|
+
"eslint": "^9.37.0",
|
|
28
|
+
"prettier": "^3.6.2",
|
|
45
29
|
"rimraf": "^6.0.1",
|
|
46
|
-
"sass": "^1.
|
|
47
|
-
"typescript": "
|
|
48
|
-
"
|
|
49
|
-
"vite": "^
|
|
50
|
-
"vite-plugin-
|
|
30
|
+
"sass": "^1.93.2",
|
|
31
|
+
"typescript": "^5.9.3",
|
|
32
|
+
"vite": "^7.1.9",
|
|
33
|
+
"vite-plugin-dts": "^4.5.4",
|
|
34
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
35
|
+
"@paciu/code-quality": "^0.0.3"
|
|
51
36
|
}
|
|
52
37
|
}
|