stone-kit 0.0.163 → 0.0.164

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,55 +1,56 @@
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,
1
+ import { jsx as s, Fragment as d } from "react/jsx-runtime";
2
+ import { c as b } from "../../../index-DIxK0V-G.js";
3
+ import { NewIcon as g } from "../../NewIcon/ui/NewIcon.js";
4
+ import { sizeMap as i } from "./RoundButton.types.js";
5
+ const k = "_btnRound_1734o_1", f = "_whiteStroke_1734o_34", h = "_blackFill_1734o_42", e = {
6
+ btnRound: k,
6
7
  "small-size": "_small-size_1734o_17",
7
8
  "medium-size": "_medium-size_1734o_22",
8
9
  "large-size": "_large-size_1734o_28",
9
- whiteStroke: g,
10
- blackFill: k,
10
+ whiteStroke: f,
11
+ blackFill: h,
11
12
  "small-size_m": "_small-size_m_1734o_51",
12
13
  "medium-size_m": "_medium-size_m_1734o_55",
13
14
  "large-size_m": "_large-size_m_1734o_60",
14
15
  "small-size_l": "_small-size_l_1734o_74",
15
16
  "medium-size_l": "_medium-size_l_1734o_78",
16
17
  "large-size_l": "_large-size_l_1734o_83"
17
- }, h = d.bind(_), S = ({
18
+ }, w = b.bind(e), $ = ({
18
19
  size: l = "small",
19
- size_m: s,
20
+ size_m: _,
20
21
  size_l: o,
21
- children: t = "",
22
- iconName: i = "",
22
+ children: r = "",
23
+ iconName: m = "",
23
24
  variant: n = "whiteStroke",
24
25
  additionalClass: a = "",
25
- deg: r,
26
- ...m
26
+ deg: c,
27
+ ...t
27
28
  }) => {
28
- const { color: z } = m;
29
- return /* @__PURE__ */ e(
29
+ const { color: z } = t, u = () => o ? i[o] : _ ? i[_] : i[l];
30
+ return /* @__PURE__ */ s(
30
31
  "button",
31
32
  {
32
- className: h(
33
- _.btnRound,
34
- _[`${l}-size`],
35
- _[`${s}-size_m`],
36
- _[`${o}-size_l`],
37
- _[`${n}`],
33
+ className: w(
34
+ e.btnRound,
35
+ e[`${l}-size`],
36
+ e[`${_}-size_m`],
37
+ e[`${o}-size_l`],
38
+ e[`${n}`],
38
39
  a
39
40
  ),
40
- ...m,
41
- children: /* @__PURE__ */ e(c, { children: i ? /* @__PURE__ */ e(
42
- u,
41
+ ...t,
42
+ children: /* @__PURE__ */ s(d, { children: m ? /* @__PURE__ */ s(
43
+ g,
43
44
  {
44
- name: i,
45
- size: o || s || l,
46
- deg: r,
45
+ name: m,
46
+ size: u(),
47
+ deg: c,
47
48
  color: z
48
49
  }
49
- ) : t })
50
+ ) : r })
50
51
  }
51
52
  );
52
53
  };
53
54
  export {
54
- S as RoundButton
55
+ $ as RoundButton
55
56
  };
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.163",
5
+ "version": "0.0.164",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",