stone-kit 0.0.161 → 0.0.163

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.
@@ -228,7 +228,7 @@ const i = ({
228
228
  "div",
229
229
  {
230
230
  style: {
231
- color: `${r} !important`,
231
+ color: r,
232
232
  width: l + "px",
233
233
  height: l + "px",
234
234
  transform: `rotate(${c}deg)`
@@ -1,65 +1,55 @@
1
- import { jsx as n, Fragment as f } from "react/jsx-runtime";
2
- import { useState as g, useEffect as k } from "react";
3
- import { c as S } from "../../../index-DIxK0V-G.js";
4
- import { NewIcon as R } from "../../NewIcon/ui/NewIcon.js";
5
- import { sizeMap as s } from "./RoundButton.types.js";
6
- const p = "_btnRound_1734o_1", F = "_whiteStroke_1734o_34", $ = "_blackFill_1734o_42", e = {
7
- btnRound: p,
1
+ import { jsx as e, Fragment as c } from "react/jsx-runtime";
2
+ import { c as d } from "../../../index-DIxK0V-G.js";
3
+ import { NewIcon as u } from "../../NewIcon/ui/NewIcon.js";
4
+ const b = "_btnRound_1734o_1", g = "_whiteStroke_1734o_34", k = "_blackFill_1734o_42", _ = {
5
+ btnRound: b,
8
6
  "small-size": "_small-size_1734o_17",
9
7
  "medium-size": "_medium-size_1734o_22",
10
8
  "large-size": "_large-size_1734o_28",
11
- whiteStroke: F,
12
- blackFill: $,
9
+ whiteStroke: g,
10
+ blackFill: k,
13
11
  "small-size_m": "_small-size_m_1734o_51",
14
12
  "medium-size_m": "_medium-size_m_1734o_55",
15
13
  "large-size_m": "_large-size_m_1734o_60",
16
14
  "small-size_l": "_small-size_l_1734o_74",
17
15
  "medium-size_l": "_medium-size_l_1734o_78",
18
16
  "large-size_l": "_large-size_l_1734o_83"
19
- }, v = S.bind(e), j = ({
20
- size: t = "small",
21
- size_m: o,
22
- size_l: i,
23
- children: a = "",
24
- iconName: m = "",
25
- variant: c = "whiteStroke",
26
- additionalClass: d = "",
27
- deg: z,
28
- ...r
17
+ }, h = d.bind(_), S = ({
18
+ size: l = "small",
19
+ size_m: s,
20
+ size_l: o,
21
+ children: t = "",
22
+ iconName: i = "",
23
+ variant: n = "whiteStroke",
24
+ additionalClass: a = "",
25
+ deg: r,
26
+ ...m
29
27
  }) => {
30
- const [u, w] = g(s.small), { color: b } = r;
31
- return k(() => {
32
- const l = () => {
33
- const _ = window.innerWidth, h = _ > 1440 && i ? s[i] : _ >= 1024 && _ <= 1440 && o ? s[o] : s[t] || s.small;
34
- w(h);
35
- };
36
- return window.addEventListener("resize", l), l(), () => {
37
- window.removeEventListener("resize", l);
38
- };
39
- }, [t, o, i]), /* @__PURE__ */ n(
28
+ const { color: z } = m;
29
+ return /* @__PURE__ */ e(
40
30
  "button",
41
31
  {
42
- className: v(
43
- e.btnRound,
44
- e[`${t}-size`],
45
- e[`${o}-size_m`],
46
- e[`${i}-size_l`],
47
- e[`${c}`],
48
- d
32
+ className: h(
33
+ _.btnRound,
34
+ _[`${l}-size`],
35
+ _[`${s}-size_m`],
36
+ _[`${o}-size_l`],
37
+ _[`${n}`],
38
+ a
49
39
  ),
50
- ...r,
51
- children: /* @__PURE__ */ n(f, { children: m ? /* @__PURE__ */ n(
52
- R,
40
+ ...m,
41
+ children: /* @__PURE__ */ e(c, { children: i ? /* @__PURE__ */ e(
42
+ u,
53
43
  {
54
- name: m,
55
- size: u,
56
- deg: z,
57
- color: b
44
+ name: i,
45
+ size: o || s || l,
46
+ deg: r,
47
+ color: z
58
48
  }
59
- ) : a })
49
+ ) : t })
60
50
  }
61
51
  );
62
52
  };
63
53
  export {
64
- j as RoundButton
54
+ S as RoundButton
65
55
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.161",
5
+ "version": "0.0.163",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",