stone-kit 0.0.33 → 0.0.35

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.
@@ -35,7 +35,7 @@ const w = "_btnCommon_2h1hm_1", y = "_blue_2h1hm_58", g = "_sokolniki_2h1hm_72",
35
35
  post: m = !1,
36
36
  variant: z = "blue",
37
37
  width: u = "auto",
38
- additionalClass: b,
38
+ additionalClass: b = "",
39
39
  isLoading: l = !1,
40
40
  ...s
41
41
  }) => {
@@ -55,7 +55,7 @@ const w = "_btnCommon_2h1hm_1", y = "_blue_2h1hm_58", g = "_sokolniki_2h1hm_72",
55
55
  name: "loader",
56
56
  size: "24",
57
57
  color: "#fff",
58
- addClass: _.loader
58
+ additionalClass: _.loader
59
59
  }
60
60
  ),
61
61
  !l && /* @__PURE__ */ t(o, { children: [
@@ -14,7 +14,7 @@ const x = "_destination_1c7de_1", n = "_destinationName_1c7de_40", w = "_routeTe
14
14
  "large-size_m": "_large-size_m_1c7de_122",
15
15
  "medium-size_l": "_medium-size_l_1c7de_137",
16
16
  "large-size_l": "_large-size_l_1c7de_150"
17
- }, $ = N.bind(_), f = ({
17
+ }, b = N.bind(_), f = ({
18
18
  size: m = "medium",
19
19
  size_m: c,
20
20
  size_l: a,
@@ -24,19 +24,19 @@ const x = "_destination_1c7de_1", n = "_destinationName_1c7de_40", w = "_routeTe
24
24
  routes: l = [],
25
25
  checked: o,
26
26
  onChange: u,
27
- additionalClass: p,
27
+ additionalClass: p = "",
28
28
  ...h
29
29
  }) => /* @__PURE__ */ t(
30
30
  "label",
31
31
  {
32
- className: $(
32
+ className: b(
33
33
  _.destination,
34
34
  _[`${m}-size`],
35
35
  _[`${c}-size_m`],
36
36
  _[`${a}-size_l`],
37
37
  _[`${d}`],
38
38
  _[`${i}-width`],
39
- `${p ?? ""}`
39
+ p
40
40
  ),
41
41
  ...h,
42
42
  htmlFor: e.destName,
@@ -1,3 +1,3 @@
1
1
  import { IFlexProps } from './Flex.types';
2
2
 
3
- export declare const Flex: ({ className, children, jc, ai, gap, fd, w, }: IFlexProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Flex: ({ className, children, jc, ai, gap, fd, w, additionalClass, }: IFlexProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
- import { jsx as k } from "react/jsx-runtime";
2
- import { c as g } from "../../../index-DIxK0V-G.js";
3
- const s = "_root_fi64k_1", _ = {
4
- root: s,
1
+ import { jsx as g } from "react/jsx-runtime";
2
+ import { c as s } from "../../../index-DIxK0V-G.js";
3
+ const t = "_root_fi64k_1", _ = {
4
+ root: t,
5
5
  "gap-1": "_gap-1_fi64k_5",
6
6
  "gap-2": "_gap-2_fi64k_9",
7
7
  "gap-3": "_gap-3_fi64k_13",
@@ -36,21 +36,31 @@ const s = "_root_fi64k_1", _ = {
36
36
  "ai-flex-end": "_ai-flex-end_fi64k_129",
37
37
  "ai-center": "_ai-center_fi64k_133",
38
38
  "ai-baseline": "_ai-baseline_fi64k_137"
39
- }, t = g.bind(_), w = ({
39
+ }, o = s.bind(_), l = ({
40
40
  className: a,
41
41
  children: e,
42
42
  jc: f = "start",
43
43
  ai: i = "center",
44
- gap: p = "1",
44
+ gap: p,
45
45
  fd: r = "row",
46
- w: c = "nowrap"
47
- }) => /* @__PURE__ */ k(
46
+ w: c = "nowrap",
47
+ additionalClass: k = ""
48
+ }) => /* @__PURE__ */ g(
48
49
  "div",
49
50
  {
50
- className: t(_.root, a, _[`w-${c}`], _[`jc-${f}`], _[`ai-${i}`], _[`gap-${p}`], _[`fd-${r}`]),
51
+ className: o(
52
+ _.root,
53
+ a,
54
+ _[`w-${c}`],
55
+ _[`jc-${f}`],
56
+ _[`ai-${i}`],
57
+ _[`gap-${p}`],
58
+ _[`fd-${r}`],
59
+ k
60
+ ),
51
61
  children: e
52
62
  }
53
63
  );
54
64
  export {
55
- w as Flex
65
+ l as Flex
56
66
  };
@@ -11,5 +11,6 @@ export interface IFlexProps extends React.HTMLAttributes<HTMLDivElement> {
11
11
  gap?: IFlex;
12
12
  fd?: IFlexDirection;
13
13
  w?: IFlexWrap;
14
+ additionalClass?: string;
14
15
  }
15
16
  export {};
@@ -17,7 +17,7 @@ const d = "_inputWrapper_yxw8x_9", h = "_inputWrapperPost_yxw8x_24", w = "_light
17
17
  variant: e = "light",
18
18
  width: _ = "auto",
19
19
  error: o,
20
- additionalClass: u,
20
+ additionalClass: u = "",
21
21
  ...l
22
22
  }) => /* @__PURE__ */ x(
23
23
  "div",
@@ -13,11 +13,11 @@ const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", n = {
13
13
  post: l = !1,
14
14
  variant: m = "whiteFilled",
15
15
  width: o = "auto",
16
- additionalClass: c,
16
+ additionalClass: c = "",
17
17
  ...i
18
18
  }) => {
19
19
  if (i.as === "link") {
20
- const { as: f, ...b } = i;
20
+ const { as: C, ...b } = i;
21
21
  return /* @__PURE__ */ _(
22
22
  "a",
23
23
  {
@@ -27,7 +27,7 @@ const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", n = {
27
27
  n[`${m}`],
28
28
  { [n.btnCommonInline]: t || l },
29
29
  n[`${o}-width`],
30
- `${c ?? ""}`
30
+ c
31
31
  ),
32
32
  ...b,
33
33
  children: [
@@ -38,7 +38,7 @@ const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", n = {
38
38
  }
39
39
  );
40
40
  }
41
- const { as: $, ...d } = i;
41
+ const { as: f, ...d } = i;
42
42
  return /* @__PURE__ */ _(
43
43
  "button",
44
44
  {
@@ -48,7 +48,7 @@ const w = "_btnCommon_1act6_1", r = "_whiteFilled_1act6_34", n = {
48
48
  n[`${m}`],
49
49
  { [n.btnCommonInline]: t || l },
50
50
  n[`${o}-width`],
51
- `${c ?? ""}`
51
+ c
52
52
  ),
53
53
  ...d,
54
54
  children: [
@@ -1,9 +1,15 @@
1
+ import { ReactSVGComponent } from './NewIcon.types';
2
+
1
3
  type IconComponentProps = {
2
- name: string;
4
+ name: keyof typeof iconTypes;
3
5
  size?: string;
4
6
  color?: string;
5
- addClass?: string;
7
+ additionalClass?: string;
6
8
  deg?: string;
7
9
  };
8
- export declare const NewIcon: ({ name, size, color, addClass, deg }: IconComponentProps) => import("react/jsx-runtime").JSX.Element;
10
+ type IconTypes = {
11
+ [name: string]: ReactSVGComponent;
12
+ };
13
+ declare const iconTypes: IconTypes;
14
+ export declare const NewIcon: ({ name, size, color, additionalClass, deg }: IconComponentProps) => import("react/jsx-runtime").JSX.Element;
9
15
  export {};
@@ -197,7 +197,7 @@ const m = ({
197
197
  building: () => /* @__PURE__ */ n(R1, {}),
198
198
  case: () => /* @__PURE__ */ n(S1, {}),
199
199
  sport: () => /* @__PURE__ */ n(H1, {})
200
- }, P1 = ({ name: t, size: l = "24", color: r, addClass: a, deg: c }) => {
200
+ }, P1 = ({ name: t, size: l = "24", color: r, additionalClass: a, deg: c }) => {
201
201
  const s = $1[t];
202
202
  return /* @__PURE__ */ n(
203
203
  "div",
@@ -3,12 +3,12 @@ import { useState as f, useEffect as S } from "react";
3
3
  import { c as R } from "../../../index-DIxK0V-G.js";
4
4
  import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
5
5
  import { sizeMap as s } from "./RoundButton.types.js";
6
- const $ = "_btnRound_4g1ag_1", k = "_whiteStroke_4g1ag_31", e = {
7
- btnRound: $,
6
+ const k = "_btnRound_4g1ag_1", $ = "_whiteStroke_4g1ag_31", e = {
7
+ btnRound: k,
8
8
  "small-size": "_small-size_4g1ag_14",
9
9
  "medium-size": "_medium-size_4g1ag_19",
10
10
  "large-size": "_large-size_4g1ag_25",
11
- whiteStroke: k,
11
+ whiteStroke: $,
12
12
  "small-size_m": "_small-size_m_4g1ag_43",
13
13
  "medium-size_m": "_medium-size_m_4g1ag_47",
14
14
  "large-size_m": "_large-size_m_4g1ag_52",
@@ -22,7 +22,7 @@ const $ = "_btnRound_4g1ag_1", k = "_whiteStroke_4g1ag_31", e = {
22
22
  children: r = "",
23
23
  iconName: o = "",
24
24
  variant: g = "whiteStroke",
25
- additionalClass: d,
25
+ additionalClass: d = "",
26
26
  deg: z,
27
27
  ...l
28
28
  }) => {
@@ -44,7 +44,7 @@ const $ = "_btnRound_4g1ag_1", k = "_whiteStroke_4g1ag_31", e = {
44
44
  e[`${t}-size_m`],
45
45
  e[`${i}-size_l`],
46
46
  e[`${g}`],
47
- `${d ?? ""}`
47
+ d
48
48
  ),
49
49
  ...l,
50
50
  children: /* @__PURE__ */ a(b, { children: o ? /* @__PURE__ */ a(
@@ -20,7 +20,7 @@ const z = "_tagCommon_96we6_1", r = "_red_96we6_40", u = "_gray_96we6_46", c = "
20
20
  children: s = "",
21
21
  variant: t = "gray",
22
22
  width: o = "auto",
23
- additionalClass: a,
23
+ additionalClass: a = "",
24
24
  ...d
25
25
  }) => /* @__PURE__ */ n(
26
26
  "div",
@@ -32,7 +32,7 @@ const z = "_tagCommon_96we6_1", r = "_red_96we6_40", u = "_gray_96we6_46", c = "
32
32
  _[`${m}-size_l`],
33
33
  _[`${t}`],
34
34
  _[`${o}-width`],
35
- `${a ?? ""}`
35
+ a
36
36
  ),
37
37
  ...d,
38
38
  children: s
@@ -1,3 +1,3 @@
1
1
  import { ITextProps } from './Text.types';
2
2
 
3
- export declare const Text: ({ children, className, html, ...rest }: ITextProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Text: ({ children, className, additionalClass, html, ...rest }: ITextProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,20 +1,20 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { c as a } from "../../../index-DIxK0V-G.js";
3
- const o = {}, e = a.bind(o), d = ({ children: c, className: r, html: s, ...t }) => s ? /* @__PURE__ */ n(
2
+ import { c as i } from "../../../index-DIxK0V-G.js";
3
+ const o = {}, c = i.bind(o), f = ({ children: m, className: r, additionalClass: t = "", html: s, ...e }) => s ? /* @__PURE__ */ n(
4
4
  "div",
5
5
  {
6
- className: e(o.root, r),
7
- ...t,
6
+ className: c(o.root, r, t),
7
+ ...e,
8
8
  dangerouslySetInnerHTML: { __html: s }
9
9
  }
10
10
  ) : /* @__PURE__ */ n(
11
11
  "div",
12
12
  {
13
- className: e(o.root, r),
14
- ...t,
15
- children: c
13
+ className: c(o.root, r, t),
14
+ ...e,
15
+ children: m
16
16
  }
17
17
  );
18
18
  export {
19
- d as Text
19
+ f as Text
20
20
  };
@@ -2,5 +2,6 @@
2
2
  export interface ITextProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
3
3
  children?: React.ReactNode | 'string';
4
4
  className?: string;
5
+ additionalClass?: string;
5
6
  html?: string;
6
7
  }
package/dist/main.d.ts CHANGED
@@ -7,3 +7,4 @@ export { Tag } from './components/Tag';
7
7
  export { Switcher } from './components/Switcher';
8
8
  export { Text } from './components/Text';
9
9
  export { Flex } from './components/Flex';
10
+ export { Input } from './components/Input';
package/dist/main.js CHANGED
@@ -1,19 +1,21 @@
1
1
  import { Button as t } from "./components/Button/ui/Button.js";
2
2
  import { MobileButton as x } from "./components/MobileButton/ui/MobileButton.js";
3
- import { NewIcon as m } from "./components/NewIcon/ui/NewIcon.js";
3
+ import { NewIcon as f } from "./components/NewIcon/ui/NewIcon.js";
4
4
  import { DestinationTab as n } from "./components/DestinationTab/ui/DestinationTab.js";
5
- import { RoundButton as u } from "./components/RoundButton/ui/RoundButton.js";
5
+ import { RoundButton as i } from "./components/RoundButton/ui/RoundButton.js";
6
6
  import { Tag as B } from "./components/Tag/ui/Tag.js";
7
7
  import { Switcher as b } from "./components/Switcher/ui/Switcher.js";
8
8
  import { Text as l } from "./components/Text/ui/Text.js";
9
- import { Flex as d } from "./components/Flex/ui/Flex.js";
9
+ import { Flex as I } from "./components/Flex/ui/Flex.js";
10
+ import { Input as g } from "./components/Input/ui/Input.js";
10
11
  export {
11
12
  t as Button,
12
13
  n as DestinationTab,
13
- d as Flex,
14
+ I as Flex,
15
+ g as Input,
14
16
  x as MobileButton,
15
- m as NewIcon,
16
- u as RoundButton,
17
+ f as NewIcon,
18
+ i as RoundButton,
17
19
  b as Switcher,
18
20
  B as Tag,
19
21
  l as Text
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.33",
5
+ "version": "0.0.35",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",