stone-kit 0.0.2 → 0.0.4

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 @@
1
- .btnCommon{font-family:inherit;font-weight:500;display:flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;border:1px solid transparent;border-radius:48px;cursor:pointer}.btnCommon:disabled{opacity:.2}.auto-width{width:auto}.full-width{width:100%}.l-size{font-size:16px;line-height:24px;min-height:48px;padding:11px 23px;gap:8px}.m-size{font-size:14px;line-height:20px;min-height:40px;padding:9px 15px;gap:8px}.s-size{font-size:12px;line-height:16px;min-height:32px;padding:7px 11px;gap:8px}.xs-size{font-size:10px;line-height:12px;min-height:24px;padding:5px 11px;gap:4px}.blue{background:#015ff9;border:1px solid #015ff9;color:#fff}.blue:hover,.blue:focus{background:#024ac0;border:1px solid #024ac0}.blue:active{background:#0645aa;border:1px solid #0645aa}.sokolniki{background:#60663e;border:1px solid #60663e;color:#fff}.sokolniki:hover,.sokolniki:focus{background:#494f29;border:1px solid #494f29}.sokolniki:active{background:#303519;border:1px solid #303519}.black{background:#141416;border:1px solid #141416;color:#fff}.black:hover,.black:focus{background:#23262f;border:1px solid #353945}.black:active{background:#353945;border:1px solid #777e90}.gray{background:#f4f5f6;border:1px solid #f4f5f6;color:#777e90}.gray:hover,.gray:focus{background:#f4f5f6;border:1px solid #b1b5c3}.gray:active{background:#e6e8ec;border:1px solid #b1b5c3}.whiteStroke{background:#fff;border:1px solid #e6e8ec;color:#141416}.whiteStroke:hover,.whiteStroke:focus{border:1px solid #b1b5c3}.whiteStroke:active{border:1px solid #141416}.whiteFilled{background:#fff;border:1px solid #ffffff;color:#141416}.whiteFilled:hover,.whiteFilled:focus{background:#fcfcfd;border:1px solid #f4f5f6}.whiteFilled:active{background:#f4f5f6;border:1px solid #f4f5f6}
1
+ ._btnCommon_4cp41_1{font-family:inherit;font-weight:500;display:flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;border:1px solid transparent;border-radius:48px;cursor:pointer}._btnCommon_4cp41_1:disabled{opacity:.2}._auto-width_4cp41_17{width:auto}._full-width_4cp41_21{width:100%}._l-size_4cp41_25{font-size:16px;line-height:24px;min-height:48px;padding:11px 23px;gap:8px}._m-size_4cp41_33{font-size:14px;line-height:20px;min-height:40px;padding:9px 15px;gap:8px}._s-size_4cp41_41{font-size:12px;line-height:16px;min-height:32px;padding:7px 11px;gap:8px}._xs-size_4cp41_49{font-size:10px;line-height:12px;min-height:24px;padding:5px 11px;gap:4px}._blue_4cp41_57{background:#015ff9;border:1px solid #015ff9;color:#fff}._blue_4cp41_57:hover,._blue_4cp41_57:focus{background:#024ac0;border:1px solid #024ac0}._blue_4cp41_57:active{background:#0645aa;border:1px solid #0645aa}._sokolniki_4cp41_71{background:#60663e;border:1px solid #60663e;color:#fff}._sokolniki_4cp41_71:hover,._sokolniki_4cp41_71:focus{background:#494f29;border:1px solid #494f29}._sokolniki_4cp41_71:active{background:#303519;border:1px solid #303519}._black_4cp41_85{background:#141416;border:1px solid #141416;color:#fff}._black_4cp41_85:hover,._black_4cp41_85:focus{background:#23262f;border:1px solid #353945}._black_4cp41_85:active{background:#353945;border:1px solid #777e90}._gray_4cp41_99{background:#f4f5f6;border:1px solid #f4f5f6;color:#777e90}._gray_4cp41_99:hover,._gray_4cp41_99:focus{background:#f4f5f6;border:1px solid #b1b5c3}._gray_4cp41_99:active{background:#e6e8ec;border:1px solid #b1b5c3}._whiteStroke_4cp41_113{background:#fff;border:1px solid #e6e8ec;color:#141416}._whiteStroke_4cp41_113:hover,._whiteStroke_4cp41_113:focus{border:1px solid #b1b5c3}._whiteStroke_4cp41_113:active{border:1px solid #141416}._whiteFilled_4cp41_125{background:#fff;border:1px solid #ffffff;color:#141416}._whiteFilled_4cp41_125:hover,._whiteFilled_4cp41_125:focus{background:#fcfcfd;border:1px solid #f4f5f6}._whiteFilled_4cp41_125:active{background:#f4f5f6;border:1px solid #f4f5f6}
@@ -1,8 +1,8 @@
1
- import { jsxs as l, jsx as i } from "react/jsx-runtime";
2
- import '../../../assets/Button.css';function b(e) {
1
+ import { jsxs as a, jsx as l } from "react/jsx-runtime";
2
+ import '../../../assets/Button.css';function z(e) {
3
3
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
4
  }
5
- var f = { exports: {} };
5
+ var u = { exports: {} };
6
6
  /*!
7
7
  Copyright (c) 2018 Jed Watson.
8
8
  Licensed under the MIT License (MIT), see
@@ -10,90 +10,112 @@ var f = { exports: {} };
10
10
  */
11
11
  (function(e) {
12
12
  (function() {
13
- var s = {}.hasOwnProperty;
14
- function o() {
13
+ var o = {}.hasOwnProperty;
14
+ function i() {
15
15
  for (var t = "", n = 0; n < arguments.length; n++) {
16
- var r = arguments[n];
17
- r && (t = c(t, a(r)));
16
+ var s = arguments[n];
17
+ s && (t = c(t, r(s)));
18
18
  }
19
19
  return t;
20
20
  }
21
- function a(t) {
21
+ function r(t) {
22
22
  if (typeof t == "string" || typeof t == "number")
23
23
  return t;
24
24
  if (typeof t != "object")
25
25
  return "";
26
26
  if (Array.isArray(t))
27
- return o.apply(null, t);
27
+ return i.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 r in t)
32
- s.call(t, r) && t[r] && (n = c(n, r));
31
+ for (var s in t)
32
+ o.call(t, s) && t[s] && (n = c(n, s));
33
33
  return n;
34
34
  }
35
35
  function c(t, n) {
36
36
  return n ? t ? t + " " + n : t + n : t;
37
37
  }
38
- e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
38
+ e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
39
39
  })();
40
- })(f);
41
- var p = f.exports;
42
- const h = /* @__PURE__ */ b(p), y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43
- __proto__: null
44
- }, Symbol.toStringTag, { value: "Module" })), u = h.bind(y), S = ({
40
+ })(u);
41
+ var S = u.exports;
42
+ const j = /* @__PURE__ */ z(S), f = "_btnCommon_4cp41_1", m = "_blue_4cp41_57", p = "_sokolniki_4cp41_71", d = "_black_4cp41_85", b = "_gray_4cp41_99", h = "_whiteStroke_4cp41_113", w = "_whiteFilled_4cp41_125", x = {
43
+ btnCommon: f,
44
+ "auto-width": "_auto-width_4cp41_17",
45
+ "full-width": "_full-width_4cp41_21",
46
+ "l-size": "_l-size_4cp41_25",
47
+ "m-size": "_m-size_4cp41_33",
48
+ "s-size": "_s-size_4cp41_41",
49
+ "xs-size": "_xs-size_4cp41_49",
50
+ blue: m,
51
+ sokolniki: p,
52
+ black: d,
53
+ gray: b,
54
+ whiteStroke: h,
55
+ whiteFilled: w
56
+ }, $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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 = ({
45
67
  size: e = "l",
46
- pre: s = !1,
47
- children: o = "",
48
- post: a = !1,
68
+ pre: o = !1,
69
+ children: i = "",
70
+ post: r = !1,
49
71
  variant: c = "blue",
50
72
  width: t = "auto",
51
73
  additionalClass: n,
52
- ...r
74
+ ...s
53
75
  }) => {
54
- if (r.as === "link") {
55
- const { as: $, ...d } = r;
56
- return /* @__PURE__ */ l(
76
+ if (s.as === "link") {
77
+ const { as: v, ...k } = s;
78
+ return /* @__PURE__ */ a(
57
79
  "a",
58
80
  {
59
- className: u(
81
+ className: _(
60
82
  "btnCommon",
61
83
  `${e}-size`,
62
84
  `${c}`,
63
- { btnCommonInline: s || a },
85
+ { btnCommonInline: o || r },
64
86
  `${t}-width`,
65
87
  `${n ?? ""}`
66
88
  ),
67
- ...d,
89
+ ...k,
68
90
  children: [
69
- s && /* @__PURE__ */ i("span", { children: s }),
70
- o,
71
- a && /* @__PURE__ */ i("span", { children: a })
91
+ o && /* @__PURE__ */ l("span", { children: o }),
92
+ i,
93
+ r && /* @__PURE__ */ l("span", { children: r })
72
94
  ]
73
95
  }
74
96
  );
75
97
  }
76
- const { as: j, ...m } = r;
77
- return /* @__PURE__ */ l(
98
+ const { as: O, ...y } = s;
99
+ return /* @__PURE__ */ a(
78
100
  "button",
79
101
  {
80
- className: u(
102
+ className: _(
81
103
  "btnCommon",
82
104
  `${e}-size`,
83
105
  `${c}`,
84
- { btnCommonInline: s || a },
106
+ { btnCommonInline: o || r },
85
107
  `${t}-width`,
86
108
  `${n ?? ""}`
87
109
  ),
88
- ...m,
110
+ ...y,
89
111
  children: [
90
- s && /* @__PURE__ */ i("span", { children: s }),
91
- o,
92
- a && /* @__PURE__ */ i("span", { children: a })
112
+ o && /* @__PURE__ */ l("span", { children: o }),
113
+ i,
114
+ r && /* @__PURE__ */ l("span", { children: r })
93
115
  ]
94
116
  }
95
117
  );
96
118
  };
97
119
  export {
98
- S as default
120
+ N as default
99
121
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stone-kit",
3
3
  "private": false,
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "author": "Mollycodd1e",
6
6
  "license": "ISC",
7
7
  "type": "module",