stone-kit 0.0.5 → 0.0.7
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,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import '
|
|
1
|
+
import { jsxs as _, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import '../../../assets/Button.css';function d(e) {
|
|
3
3
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
5
|
+
var f = { exports: {} };
|
|
6
6
|
/*!
|
|
7
7
|
Copyright (c) 2018 Jed Watson.
|
|
8
8
|
Licensed under the MIT License (MIT), see
|
|
@@ -10,11 +10,11 @@ var u = { exports: {} };
|
|
|
10
10
|
*/
|
|
11
11
|
(function(e) {
|
|
12
12
|
(function() {
|
|
13
|
-
var
|
|
14
|
-
function
|
|
13
|
+
var i = {}.hasOwnProperty;
|
|
14
|
+
function c() {
|
|
15
15
|
for (var t = "", n = 0; n < arguments.length; n++) {
|
|
16
|
-
var
|
|
17
|
-
|
|
16
|
+
var o = arguments[n];
|
|
17
|
+
o && (t = l(t, r(o)));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -24,98 +24,88 @@ var u = { exports: {} };
|
|
|
24
24
|
if (typeof t != "object")
|
|
25
25
|
return "";
|
|
26
26
|
if (Array.isArray(t))
|
|
27
|
-
return
|
|
27
|
+
return c.apply(null, t);
|
|
28
28
|
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
29
29
|
return t.toString();
|
|
30
30
|
var n = "";
|
|
31
|
-
for (var
|
|
32
|
-
|
|
31
|
+
for (var o in t)
|
|
32
|
+
i.call(t, o) && t[o] && (n = l(n, o));
|
|
33
33
|
return n;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function l(t, n) {
|
|
36
36
|
return n ? t ? t + " " + n : t + n : t;
|
|
37
37
|
}
|
|
38
|
-
e.exports ? (
|
|
38
|
+
e.exports ? (c.default = c, e.exports = c) : window.classNames = c;
|
|
39
39
|
})();
|
|
40
|
-
})(
|
|
41
|
-
var
|
|
42
|
-
const
|
|
43
|
-
btnCommon:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
blue:
|
|
51
|
-
sokolniki:
|
|
52
|
-
black:
|
|
53
|
-
gray:
|
|
54
|
-
whiteStroke:
|
|
55
|
-
whiteFilled:
|
|
56
|
-
},
|
|
57
|
-
__proto__: null,
|
|
58
|
-
black: d,
|
|
59
|
-
blue: m,
|
|
60
|
-
btnCommon: f,
|
|
61
|
-
default: x,
|
|
62
|
-
gray: b,
|
|
63
|
-
sokolniki: p,
|
|
64
|
-
whiteFilled: w,
|
|
65
|
-
whiteStroke: h
|
|
66
|
-
}, Symbol.toStringTag, { value: "Module" })), _ = j.bind($), N = ({
|
|
40
|
+
})(f);
|
|
41
|
+
var h = f.exports;
|
|
42
|
+
const b = /* @__PURE__ */ d(h), S = "_btnCommon_4cp41_1", z = "_auto-width_4cp41_17", w = "_full-width_4cp41_21", k = "_l-size_4cp41_25", y = "_m-size_4cp41_33", x = "_s-size_4cp41_41", $ = "_xs-size_4cp41_49", j = "_blue_4cp41_57", C = "_sokolniki_4cp41_71", v = "_black_4cp41_85", N = "_gray_4cp41_99", O = "_whiteStroke_4cp41_113", F = "_whiteFilled_4cp41_125", s = {
|
|
43
|
+
btnCommon: S,
|
|
44
|
+
autoWidth: z,
|
|
45
|
+
fullWidth: w,
|
|
46
|
+
lSize: k,
|
|
47
|
+
mSize: y,
|
|
48
|
+
sSize: x,
|
|
49
|
+
xsSize: $,
|
|
50
|
+
blue: j,
|
|
51
|
+
sokolniki: C,
|
|
52
|
+
black: v,
|
|
53
|
+
gray: N,
|
|
54
|
+
whiteStroke: O,
|
|
55
|
+
whiteFilled: F
|
|
56
|
+
}, u = b.bind(s), I = ({
|
|
67
57
|
size: e = "l",
|
|
68
|
-
pre:
|
|
69
|
-
children:
|
|
58
|
+
pre: i = !1,
|
|
59
|
+
children: c = "",
|
|
70
60
|
post: r = !1,
|
|
71
|
-
variant:
|
|
61
|
+
variant: l = "blue",
|
|
72
62
|
width: t = "auto",
|
|
73
63
|
additionalClass: n,
|
|
74
|
-
...
|
|
64
|
+
...o
|
|
75
65
|
}) => {
|
|
76
|
-
if (
|
|
77
|
-
const { as:
|
|
78
|
-
return /* @__PURE__ */
|
|
66
|
+
if (o.as === "link") {
|
|
67
|
+
const { as: A, ...p } = o;
|
|
68
|
+
return /* @__PURE__ */ _(
|
|
79
69
|
"a",
|
|
80
70
|
{
|
|
81
|
-
className:
|
|
82
|
-
|
|
83
|
-
`${e}-size
|
|
84
|
-
`${
|
|
85
|
-
{ btnCommonInline:
|
|
86
|
-
`${t}-width
|
|
71
|
+
className: u(
|
|
72
|
+
s.btnCommon,
|
|
73
|
+
s[`${e}-size`],
|
|
74
|
+
s[`${l}`],
|
|
75
|
+
{ [s.btnCommonInline]: i || r },
|
|
76
|
+
s[`${t}-width`],
|
|
87
77
|
`${n ?? ""}`
|
|
88
78
|
),
|
|
89
|
-
...
|
|
79
|
+
...p,
|
|
90
80
|
children: [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
r && /* @__PURE__ */
|
|
81
|
+
i && /* @__PURE__ */ a("span", { children: i }),
|
|
82
|
+
c,
|
|
83
|
+
r && /* @__PURE__ */ a("span", { children: r })
|
|
94
84
|
]
|
|
95
85
|
}
|
|
96
86
|
);
|
|
97
87
|
}
|
|
98
|
-
const { as:
|
|
99
|
-
return /* @__PURE__ */
|
|
88
|
+
const { as: W, ...m } = o;
|
|
89
|
+
return /* @__PURE__ */ _(
|
|
100
90
|
"button",
|
|
101
91
|
{
|
|
102
|
-
className:
|
|
103
|
-
|
|
104
|
-
`${e}-size
|
|
105
|
-
`${
|
|
106
|
-
{ btnCommonInline:
|
|
107
|
-
`${t}-width
|
|
92
|
+
className: u(
|
|
93
|
+
s.btnCommon,
|
|
94
|
+
s[`${e}-size`],
|
|
95
|
+
s[`${l}`],
|
|
96
|
+
{ [s.btnCommonInline]: i || r },
|
|
97
|
+
s[`${t}-width`],
|
|
108
98
|
`${n ?? ""}`
|
|
109
99
|
),
|
|
110
|
-
...
|
|
100
|
+
...m,
|
|
111
101
|
children: [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
r && /* @__PURE__ */
|
|
102
|
+
i && /* @__PURE__ */ a("span", { children: i }),
|
|
103
|
+
c,
|
|
104
|
+
r && /* @__PURE__ */ a("span", { children: r })
|
|
115
105
|
]
|
|
116
106
|
}
|
|
117
107
|
);
|
|
118
108
|
};
|
|
119
109
|
export {
|
|
120
|
-
|
|
110
|
+
I as default
|
|
121
111
|
};
|
|
@@ -24,5 +24,5 @@ export type ComponentProps = ButtonProps & ((React.ButtonHTMLAttributes<HTMLButt
|
|
|
24
24
|
as?: 'button';
|
|
25
25
|
}) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
26
26
|
as: 'link';
|
|
27
|
-
}));
|
|
27
|
+
} & Required<Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>>));
|
|
28
28
|
export {};
|
package/package.json
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "stone-kit",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"author": "Mollycodd1e",
|
|
6
|
-
"license": "ISC",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "vite",
|
|
10
|
-
"build": "tsc && vite build",
|
|
11
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
12
|
-
"preview": "vite preview",
|
|
13
|
-
"prepublishOnly": "npm run build"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"classnames": "^2.5.1"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@testing-library/dom": "^10.1.0",
|
|
20
|
-
"@testing-library/react": "^15.0.7",
|
|
21
|
-
"@types/node": "^20.12.12",
|
|
22
|
-
"@types/react": "^18.2.66",
|
|
23
|
-
"@types/react-dom": "^18.2.22",
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
25
|
-
"@typescript-eslint/parser": "^7.2.0",
|
|
26
|
-
"@vitejs/plugin-react": "^4.2.1",
|
|
27
|
-
"c8": "^9.1.0",
|
|
28
|
-
"eslint": "^8.57.0",
|
|
29
|
-
"eslint-plugin-react": "^7.34.1",
|
|
30
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
31
|
-
"eslint-plugin-react-refresh": "^0.4.6",
|
|
32
|
-
"glob": "^10.3.16",
|
|
33
|
-
"jsdom": "^24.0.0",
|
|
34
|
-
"react": "^18.2.0",
|
|
35
|
-
"react-dom": "^18.2.0",
|
|
36
|
-
"react-test-renderer": "^18.3.1",
|
|
37
|
-
"sass": "^1.77.2",
|
|
38
|
-
"typescript": "^5.2.2",
|
|
39
|
-
"vite": "^5.2.0",
|
|
40
|
-
"vite-plugin-dts": "^3.9.1",
|
|
41
|
-
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
42
|
-
"vitest": "^1.6.0"
|
|
43
|
-
},
|
|
44
|
-
"main": "dist/main.js",
|
|
45
|
-
"types": "dist/main.d.ts",
|
|
46
|
-
"files": [
|
|
47
|
-
"dist"
|
|
48
|
-
],
|
|
49
|
-
"sideEffects": [
|
|
50
|
-
"**/*.css"
|
|
51
|
-
],
|
|
52
|
-
"description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
|
|
53
|
-
"directories": {
|
|
54
|
-
"lib": "lib"
|
|
55
|
-
},
|
|
56
|
-
"repository": {
|
|
57
|
-
"type": "git",
|
|
58
|
-
"url": "git+https://github.com/Mollycodd1e/viteKit.git"
|
|
59
|
-
},
|
|
60
|
-
"keywords": [
|
|
61
|
-
"kit",
|
|
62
|
-
"stone",
|
|
63
|
-
"ui"
|
|
64
|
-
],
|
|
65
|
-
"bugs": {
|
|
66
|
-
"url": "https://github.com/Mollycodd1e/viteKit/issues"
|
|
67
|
-
},
|
|
68
|
-
"homepage": "https://github.com/Mollycodd1e/viteKit#readme"
|
|
69
|
-
}
|
|
70
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "stone-kit",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.7",
|
|
5
|
+
"author": "Mollycodd1e",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vite",
|
|
10
|
+
"build": "tsc && vite build",
|
|
11
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
12
|
+
"preview": "vite preview",
|
|
13
|
+
"prepublishOnly": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"classnames": "^2.5.1"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@testing-library/dom": "^10.1.0",
|
|
20
|
+
"@testing-library/react": "^15.0.7",
|
|
21
|
+
"@types/node": "^20.12.12",
|
|
22
|
+
"@types/react": "^18.2.66",
|
|
23
|
+
"@types/react-dom": "^18.2.22",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
25
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
26
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
27
|
+
"c8": "^9.1.0",
|
|
28
|
+
"eslint": "^8.57.0",
|
|
29
|
+
"eslint-plugin-react": "^7.34.1",
|
|
30
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
31
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
32
|
+
"glob": "^10.3.16",
|
|
33
|
+
"jsdom": "^24.0.0",
|
|
34
|
+
"react": "^18.2.0",
|
|
35
|
+
"react-dom": "^18.2.0",
|
|
36
|
+
"react-test-renderer": "^18.3.1",
|
|
37
|
+
"sass": "^1.77.2",
|
|
38
|
+
"typescript": "^5.2.2",
|
|
39
|
+
"vite": "^5.2.0",
|
|
40
|
+
"vite-plugin-dts": "^3.9.1",
|
|
41
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
42
|
+
"vitest": "^1.6.0"
|
|
43
|
+
},
|
|
44
|
+
"main": "dist/main.js",
|
|
45
|
+
"types": "dist/main.d.ts",
|
|
46
|
+
"files": [
|
|
47
|
+
"dist"
|
|
48
|
+
],
|
|
49
|
+
"sideEffects": [
|
|
50
|
+
"**/*.css"
|
|
51
|
+
],
|
|
52
|
+
"description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
|
|
53
|
+
"directories": {
|
|
54
|
+
"lib": "lib"
|
|
55
|
+
},
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "git+https://github.com/Mollycodd1e/viteKit.git"
|
|
59
|
+
},
|
|
60
|
+
"keywords": [
|
|
61
|
+
"kit",
|
|
62
|
+
"stone",
|
|
63
|
+
"ui"
|
|
64
|
+
],
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://github.com/Mollycodd1e/viteKit/issues"
|
|
67
|
+
},
|
|
68
|
+
"homepage": "https://github.com/Mollycodd1e/viteKit#readme"
|
|
69
|
+
}
|
|
70
|
+
|
|
File without changes
|