@paciu/ui 0.0.1 → 0.0.3
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/README.md +54 -0
- package/dist/assets/ui.css +1 -0
- package/dist/components/button/index.d.ts +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -0
- package/package.json +14 -14
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/paciu-ui.iml +0 -12
- package/dist/paciu-ui.es.js +0 -287
- package/dist/paciu-ui.umd.js +0 -22
- package/dist/ui.css +0 -1
- package/eslint.config.js +0 -28
- package/readme.md +0 -1
- package/tsconfig.app.json +0 -26
- package/tsconfig.node.json +0 -29
package/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## Expanding the ESLint configuration
|
|
11
|
+
|
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
export default tseslint.config({
|
|
16
|
+
extends: [
|
|
17
|
+
// Remove ...tseslint.configs.recommended and replace with this
|
|
18
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
19
|
+
// Alternatively, use this for stricter rules
|
|
20
|
+
...tseslint.configs.strictTypeChecked,
|
|
21
|
+
// Optionally, add this for stylistic rules
|
|
22
|
+
...tseslint.configs.stylisticTypeChecked,
|
|
23
|
+
],
|
|
24
|
+
languageOptions: {
|
|
25
|
+
// other options...
|
|
26
|
+
parserOptions: {
|
|
27
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
28
|
+
tsconfigRootDir: import.meta.dirname,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
})
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
// eslint.config.js
|
|
38
|
+
import reactX from 'eslint-plugin-react-x'
|
|
39
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
40
|
+
|
|
41
|
+
export default tseslint.config({
|
|
42
|
+
plugins: {
|
|
43
|
+
// Add the react-x and react-dom plugins
|
|
44
|
+
'react-x': reactX,
|
|
45
|
+
'react-dom': reactDom,
|
|
46
|
+
},
|
|
47
|
+
rules: {
|
|
48
|
+
// other rules...
|
|
49
|
+
// Enable its recommended typescript rules
|
|
50
|
+
...reactX.configs['recommended-typescript'].rules,
|
|
51
|
+
...reactDom.configs.recommended.rules,
|
|
52
|
+
},
|
|
53
|
+
})
|
|
54
|
+
```
|
|
@@ -0,0 +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}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
color?: 'error';
|
|
4
|
+
text?: boolean | null;
|
|
5
|
+
icon?: boolean | null;
|
|
6
|
+
small?: boolean | null;
|
|
7
|
+
loading?: boolean | null;
|
|
8
|
+
hint?: string | null;
|
|
9
|
+
}
|
|
10
|
+
export declare const Button: React.FC<ButtonProps>;
|
|
11
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button } from './components/button';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
const m = (c) => {
|
|
3
|
+
const { children: l, className: i, color: t, text: a, icon: e, small: r, loading: h, hint: n, ...u } = c, s = ["paciu-ui-button"];
|
|
4
|
+
return a && s.push("text"), e && s.push("icon"), r && s.push("small"), t && s.push(t), i && s.push(i), /* @__PURE__ */ p("button", { className: s.join(" "), ...u, children: [
|
|
5
|
+
l,
|
|
6
|
+
n && /* @__PURE__ */ o("div", { className: "hint", children: n }),
|
|
7
|
+
h && /* @__PURE__ */ o("div", { className: "loading", children: "Загрузка ..." })
|
|
8
|
+
] });
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
m as Button
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paciu/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"exports": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
8
11
|
"keywords": [
|
|
9
12
|
"paciu"
|
|
10
13
|
],
|
|
@@ -12,16 +15,11 @@
|
|
|
12
15
|
"license": "ISC",
|
|
13
16
|
"description": "paciustas.ru",
|
|
14
17
|
"scripts": {
|
|
15
|
-
"
|
|
16
|
-
"build": "tsc -b && vite build",
|
|
17
|
-
"
|
|
18
|
-
"preview": "vite preview",
|
|
19
|
-
"old:build": "vite build",
|
|
20
|
-
"old:prod": "vite build && npm version patch && npm publish --access public",
|
|
21
|
-
"old:storybook": "storybook dev -p 6006",
|
|
22
|
-
"old:build-storybook": "storybook build"
|
|
18
|
+
"lint:format": "npx prettier ./src --write && npx eslint ./src --fix",
|
|
19
|
+
"build": "rimraf ./dist && npm run lint:format && tsc -b && vite build",
|
|
20
|
+
"prod": "npm run build && npm version patch && npm publish --access public"
|
|
23
21
|
},
|
|
24
|
-
"
|
|
22
|
+
"peerDependencies": {
|
|
25
23
|
"react": "^19.0.0",
|
|
26
24
|
"react-dom": "^19.0.0"
|
|
27
25
|
},
|
|
@@ -39,6 +37,8 @@
|
|
|
39
37
|
"sass": "^1.87.0",
|
|
40
38
|
"typescript": "~5.7.2",
|
|
41
39
|
"typescript-eslint": "^8.26.1",
|
|
42
|
-
"vite": "^6.3.1"
|
|
40
|
+
"vite": "^6.3.1",
|
|
41
|
+
"vite-plugin-dts": "^4.5.3",
|
|
42
|
+
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/.idea/modules.xml
DELETED
package/.idea/paciu-ui.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|
package/dist/paciu-ui.es.js
DELETED
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
import ee from "react";
|
|
2
|
-
var T = { exports: {} }, R = {};
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* react-jsx-runtime.production.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var $;
|
|
13
|
-
function re() {
|
|
14
|
-
if ($) return R;
|
|
15
|
-
$ = 1;
|
|
16
|
-
var c = Symbol.for("react.transitional.element"), i = Symbol.for("react.fragment");
|
|
17
|
-
function m(d, a, s) {
|
|
18
|
-
var E = null;
|
|
19
|
-
if (s !== void 0 && (E = "" + s), a.key !== void 0 && (E = "" + a.key), "key" in a) {
|
|
20
|
-
s = {};
|
|
21
|
-
for (var b in a)
|
|
22
|
-
b !== "key" && (s[b] = a[b]);
|
|
23
|
-
} else s = a;
|
|
24
|
-
return a = s.ref, {
|
|
25
|
-
$$typeof: c,
|
|
26
|
-
type: d,
|
|
27
|
-
key: E,
|
|
28
|
-
ref: a !== void 0 ? a : null,
|
|
29
|
-
props: s
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
return R.Fragment = i, R.jsx = m, R.jsxs = m, R;
|
|
33
|
-
}
|
|
34
|
-
var _ = {};
|
|
35
|
-
/**
|
|
36
|
-
* @license React
|
|
37
|
-
* react-jsx-runtime.development.js
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the MIT license found in the
|
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/
|
|
44
|
-
var F;
|
|
45
|
-
function te() {
|
|
46
|
-
return F || (F = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
function c(e) {
|
|
48
|
-
if (e == null) return null;
|
|
49
|
-
if (typeof e == "function")
|
|
50
|
-
return e.$$typeof === Z ? null : e.displayName || e.name || null;
|
|
51
|
-
if (typeof e == "string") return e;
|
|
52
|
-
switch (e) {
|
|
53
|
-
case p:
|
|
54
|
-
return "Fragment";
|
|
55
|
-
case q:
|
|
56
|
-
return "Profiler";
|
|
57
|
-
case U:
|
|
58
|
-
return "StrictMode";
|
|
59
|
-
case G:
|
|
60
|
-
return "Suspense";
|
|
61
|
-
case X:
|
|
62
|
-
return "SuspenseList";
|
|
63
|
-
case H:
|
|
64
|
-
return "Activity";
|
|
65
|
-
}
|
|
66
|
-
if (typeof e == "object")
|
|
67
|
-
switch (typeof e.tag == "number" && console.error(
|
|
68
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
-
), e.$$typeof) {
|
|
70
|
-
case W:
|
|
71
|
-
return "Portal";
|
|
72
|
-
case z:
|
|
73
|
-
return (e.displayName || "Context") + ".Provider";
|
|
74
|
-
case J:
|
|
75
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
76
|
-
case V:
|
|
77
|
-
var r = e.render;
|
|
78
|
-
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
|
-
case B:
|
|
80
|
-
return r = e.displayName || null, r !== null ? r : c(e.type) || "Memo";
|
|
81
|
-
case g:
|
|
82
|
-
r = e._payload, e = e._init;
|
|
83
|
-
try {
|
|
84
|
-
return c(e(r));
|
|
85
|
-
} catch {
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
function i(e) {
|
|
91
|
-
return "" + e;
|
|
92
|
-
}
|
|
93
|
-
function m(e) {
|
|
94
|
-
try {
|
|
95
|
-
i(e);
|
|
96
|
-
var r = !1;
|
|
97
|
-
} catch {
|
|
98
|
-
r = !0;
|
|
99
|
-
}
|
|
100
|
-
if (r) {
|
|
101
|
-
r = console;
|
|
102
|
-
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
103
|
-
return t.call(
|
|
104
|
-
r,
|
|
105
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
-
n
|
|
107
|
-
), i(e);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function d(e) {
|
|
111
|
-
if (e === p) return "<>";
|
|
112
|
-
if (typeof e == "object" && e !== null && e.$$typeof === g)
|
|
113
|
-
return "<...>";
|
|
114
|
-
try {
|
|
115
|
-
var r = c(e);
|
|
116
|
-
return r ? "<" + r + ">" : "<...>";
|
|
117
|
-
} catch {
|
|
118
|
-
return "<...>";
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function a() {
|
|
122
|
-
var e = k.A;
|
|
123
|
-
return e === null ? null : e.getOwner();
|
|
124
|
-
}
|
|
125
|
-
function s() {
|
|
126
|
-
return Error("react-stack-top-frame");
|
|
127
|
-
}
|
|
128
|
-
function E(e) {
|
|
129
|
-
if (h.call(e, "key")) {
|
|
130
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
|
-
if (r && r.isReactWarning) return !1;
|
|
132
|
-
}
|
|
133
|
-
return e.key !== void 0;
|
|
134
|
-
}
|
|
135
|
-
function b(e, r) {
|
|
136
|
-
function t() {
|
|
137
|
-
y || (y = !0, console.error(
|
|
138
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
|
-
r
|
|
140
|
-
));
|
|
141
|
-
}
|
|
142
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
143
|
-
get: t,
|
|
144
|
-
configurable: !0
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
function L() {
|
|
148
|
-
var e = c(this.type);
|
|
149
|
-
return N[e] || (N[e] = !0, console.error(
|
|
150
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
152
|
-
}
|
|
153
|
-
function M(e, r, t, n, l, u, A, S) {
|
|
154
|
-
return t = u.ref, e = {
|
|
155
|
-
$$typeof: w,
|
|
156
|
-
type: e,
|
|
157
|
-
key: r,
|
|
158
|
-
props: u,
|
|
159
|
-
_owner: l
|
|
160
|
-
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
161
|
-
enumerable: !1,
|
|
162
|
-
get: L
|
|
163
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
164
|
-
configurable: !1,
|
|
165
|
-
enumerable: !1,
|
|
166
|
-
writable: !0,
|
|
167
|
-
value: 0
|
|
168
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
169
|
-
configurable: !1,
|
|
170
|
-
enumerable: !1,
|
|
171
|
-
writable: !0,
|
|
172
|
-
value: null
|
|
173
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
174
|
-
configurable: !1,
|
|
175
|
-
enumerable: !1,
|
|
176
|
-
writable: !0,
|
|
177
|
-
value: A
|
|
178
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
179
|
-
configurable: !1,
|
|
180
|
-
enumerable: !1,
|
|
181
|
-
writable: !0,
|
|
182
|
-
value: S
|
|
183
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
184
|
-
}
|
|
185
|
-
function x(e, r, t, n, l, u, A, S) {
|
|
186
|
-
var o = r.children;
|
|
187
|
-
if (o !== void 0)
|
|
188
|
-
if (n)
|
|
189
|
-
if (Q(o)) {
|
|
190
|
-
for (n = 0; n < o.length; n++)
|
|
191
|
-
j(o[n]);
|
|
192
|
-
Object.freeze && Object.freeze(o);
|
|
193
|
-
} else
|
|
194
|
-
console.error(
|
|
195
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
196
|
-
);
|
|
197
|
-
else j(o);
|
|
198
|
-
if (h.call(r, "key")) {
|
|
199
|
-
o = c(e);
|
|
200
|
-
var f = Object.keys(r).filter(function(K) {
|
|
201
|
-
return K !== "key";
|
|
202
|
-
});
|
|
203
|
-
n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", I[o + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
204
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
205
|
-
let props = %s;
|
|
206
|
-
<%s {...props} />
|
|
207
|
-
React keys must be passed directly to JSX without using spread:
|
|
208
|
-
let props = %s;
|
|
209
|
-
<%s key={someKey} {...props} />`,
|
|
210
|
-
n,
|
|
211
|
-
o,
|
|
212
|
-
f,
|
|
213
|
-
o
|
|
214
|
-
), I[o + n] = !0);
|
|
215
|
-
}
|
|
216
|
-
if (o = null, t !== void 0 && (m(t), o = "" + t), E(r) && (m(r.key), o = "" + r.key), "key" in r) {
|
|
217
|
-
t = {};
|
|
218
|
-
for (var P in r)
|
|
219
|
-
P !== "key" && (t[P] = r[P]);
|
|
220
|
-
} else t = r;
|
|
221
|
-
return o && b(
|
|
222
|
-
t,
|
|
223
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
224
|
-
), M(
|
|
225
|
-
e,
|
|
226
|
-
o,
|
|
227
|
-
u,
|
|
228
|
-
l,
|
|
229
|
-
a(),
|
|
230
|
-
t,
|
|
231
|
-
A,
|
|
232
|
-
S
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
function j(e) {
|
|
236
|
-
typeof e == "object" && e !== null && e.$$typeof === w && e._store && (e._store.validated = 1);
|
|
237
|
-
}
|
|
238
|
-
var v = ee, w = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), z = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, h = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
239
|
-
return null;
|
|
240
|
-
};
|
|
241
|
-
v = {
|
|
242
|
-
"react-stack-bottom-frame": function(e) {
|
|
243
|
-
return e();
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
var y, N = {}, C = v["react-stack-bottom-frame"].bind(
|
|
247
|
-
v,
|
|
248
|
-
s
|
|
249
|
-
)(), Y = O(d(s)), I = {};
|
|
250
|
-
_.Fragment = p, _.jsx = function(e, r, t, n, l) {
|
|
251
|
-
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
252
|
-
return x(
|
|
253
|
-
e,
|
|
254
|
-
r,
|
|
255
|
-
t,
|
|
256
|
-
!1,
|
|
257
|
-
n,
|
|
258
|
-
l,
|
|
259
|
-
u ? Error("react-stack-top-frame") : C,
|
|
260
|
-
u ? O(d(e)) : Y
|
|
261
|
-
);
|
|
262
|
-
}, _.jsxs = function(e, r, t, n, l) {
|
|
263
|
-
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
264
|
-
return x(
|
|
265
|
-
e,
|
|
266
|
-
r,
|
|
267
|
-
t,
|
|
268
|
-
!0,
|
|
269
|
-
n,
|
|
270
|
-
l,
|
|
271
|
-
u ? Error("react-stack-top-frame") : C,
|
|
272
|
-
u ? O(d(e)) : Y
|
|
273
|
-
);
|
|
274
|
-
};
|
|
275
|
-
}()), _;
|
|
276
|
-
}
|
|
277
|
-
var D;
|
|
278
|
-
function ne() {
|
|
279
|
-
return D || (D = 1, process.env.NODE_ENV === "production" ? T.exports = re() : T.exports = te()), T.exports;
|
|
280
|
-
}
|
|
281
|
-
var oe = ne();
|
|
282
|
-
const ae = "_button_1h9xv_1", se = {
|
|
283
|
-
button: ae
|
|
284
|
-
}, ce = ({ children: c, onClick: i }) => /* @__PURE__ */ oe.jsx("button", { className: se.button, onClick: i, children: c });
|
|
285
|
-
export {
|
|
286
|
-
ce as Button
|
|
287
|
-
};
|
package/dist/paciu-ui.umd.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
(function(i,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(i=typeof globalThis<"u"?globalThis:i||self,m(i["paciu-ui"]={},i.React))})(this,function(i,m){"use strict";var p={exports:{}},E={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var h;function W(){if(h)return E;h=1;var c=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function R(_,a,s){var v=null;if(s!==void 0&&(v=""+s),a.key!==void 0&&(v=""+a.key),"key"in a){s={};for(var T in a)T!=="key"&&(s[T]=a[T])}else s=a;return a=s.ref,{$$typeof:c,type:_,key:v,ref:a!==void 0?a:null,props:s}}return E.Fragment=f,E.jsx=R,E.jsxs=R,E}var b={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var w;function U(){return w||(w=1,process.env.NODE_ENV!=="production"&&function(){function c(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case Z:return"Profiler";case H:return"StrictMode";case re:return"Suspense";case te:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case B:return"Portal";case K:return(e.displayName||"Context")+".Provider";case Q:return(e._context.displayName||"Context")+".Consumer";case ee:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return r=e.displayName||null,r!==null?r:c(e.type)||"Memo";case Y:r=e._payload,e=e._init;try{return c(e(r))}catch{}}return null}function f(e){return""+e}function R(e){try{f(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),f(e)}}function _(e){if(e===O)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===Y)return"<...>";try{var r=c(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){var e=S.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function v(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function T(e,r){function t(){F||(F=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function G(){var e=c(this.type);return D[e]||(D[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function X(e,r,t,n,l,u,P,j){return t=u.ref,e={$$typeof:C,type:e,key:r,props:u,_owner:l},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:G}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function g(e,r,t,n,l,u,P,j){var o=r.children;if(o!==void 0)if(n)if(se(o)){for(n=0;n<o.length;n++)N(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(o);if(I.call(r,"key")){o=c(e);var d=Object.keys(r).filter(function(ue){return ue!=="key"});n=0<d.length?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}",L[o+n]||(d=0<d.length?"{"+d.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
-
let props = %s;
|
|
19
|
-
<%s {...props} />
|
|
20
|
-
React keys must be passed directly to JSX without using spread:
|
|
21
|
-
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,n,o,d,o),L[o+n]=!0)}if(o=null,t!==void 0&&(R(t),o=""+t),v(r)&&(R(r.key),o=""+r.key),"key"in r){t={};for(var x in r)x!=="key"&&(t[x]=r[x])}else t=r;return o&&T(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),X(e,o,u,l,a(),t,P,j)}function N(e){typeof e=="object"&&e!==null&&e.$$typeof===C&&e._store&&(e._store.validated=1)}var k=m,C=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),K=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),S=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,se=Array.isArray,A=console.createTask?console.createTask:function(){return null};k={"react-stack-bottom-frame":function(e){return e()}};var F,D={},$=k["react-stack-bottom-frame"].bind(k,s)(),M=A(_(s)),L={};b.Fragment=O,b.jsx=function(e,r,t,n,l){var u=1e4>S.recentlyCreatedOwnerStacks++;return g(e,r,t,!1,n,l,u?Error("react-stack-top-frame"):$,u?A(_(e)):M)},b.jsxs=function(e,r,t,n,l){var u=1e4>S.recentlyCreatedOwnerStacks++;return g(e,r,t,!0,n,l,u?Error("react-stack-top-frame"):$,u?A(_(e)):M)}}()),b}var y;function q(){return y||(y=1,process.env.NODE_ENV==="production"?p.exports=W():p.exports=U()),p.exports}var J=q();const z={button:"_button_1h9xv_1"},V=({children:c,onClick:f})=>J.jsx("button",{className:z.button,onClick:f,children:c});i.Button=V,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
package/dist/ui.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._button_1h9xv_1{background-color:#007bff;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer}._button_1h9xv_1:hover{background-color:#0056b3}
|
package/eslint.config.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js'
|
|
2
|
-
import globals from 'globals'
|
|
3
|
-
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
-
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
-
import tseslint from 'typescript-eslint'
|
|
6
|
-
|
|
7
|
-
export default tseslint.config(
|
|
8
|
-
{ ignores: ['dist'] },
|
|
9
|
-
{
|
|
10
|
-
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
|
11
|
-
files: ['**/*.{ts,tsx}'],
|
|
12
|
-
languageOptions: {
|
|
13
|
-
ecmaVersion: 2020,
|
|
14
|
-
globals: globals.browser,
|
|
15
|
-
},
|
|
16
|
-
plugins: {
|
|
17
|
-
'react-hooks': reactHooks,
|
|
18
|
-
'react-refresh': reactRefresh,
|
|
19
|
-
},
|
|
20
|
-
rules: {
|
|
21
|
-
...reactHooks.configs.recommended.rules,
|
|
22
|
-
'react-refresh/only-export-components': [
|
|
23
|
-
'warn',
|
|
24
|
-
{ allowConstantExport: true },
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
)
|
package/readme.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# @paciu/ui (react + lit)
|
package/tsconfig.app.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
-
"target": "ES2020",
|
|
5
|
-
"useDefineForClassFields": true,
|
|
6
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
|
|
10
|
-
/* Bundler mode */
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"allowImportingTsExtensions": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"moduleDetection": "force",
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
"jsx": "react-jsx",
|
|
17
|
-
|
|
18
|
-
/* Linting */
|
|
19
|
-
"strict": true,
|
|
20
|
-
"noUnusedLocals": true,
|
|
21
|
-
"noUnusedParameters": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": true,
|
|
23
|
-
"noUncheckedSideEffectImports": true
|
|
24
|
-
},
|
|
25
|
-
"include": ["src"]
|
|
26
|
-
}
|
package/tsconfig.node.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2022",
|
|
5
|
-
"lib": ["ES2023"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
|
|
9
|
-
/* Bundler mode */
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"allowImportingTsExtensions": true,
|
|
12
|
-
"isolatedModules": true,
|
|
13
|
-
"moduleDetection": "force",
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
|
|
16
|
-
/* Linting */
|
|
17
|
-
"strict": true,
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"noUnusedParameters": true,
|
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
|
21
|
-
"noUncheckedSideEffectImports": true,
|
|
22
|
-
|
|
23
|
-
/* ... */
|
|
24
|
-
"declaration": true,
|
|
25
|
-
"declarationDir": "dist/types",
|
|
26
|
-
"outDir": "dist"
|
|
27
|
-
},
|
|
28
|
-
"include": ["vite.config.ts"]
|
|
29
|
-
}
|