stone-kit 0.0.866 → 0.0.868

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,68 +1,70 @@
1
- import { jsxs as l, jsx as _ } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as g } from "react";
3
- import { NewIcon as a } from "../NewIcon/ui/NewIcon.js";
4
- const p = "_checkbox_68bw2_1", u = "_checkbox__elem_68bw2_5", $ = "_checkbox__hoverIcon_68bw2_24", v = "_error_68bw2_31", C = "_light_68bw2_37", I = "_dark_68bw2_40", j = "_isChecked_68bw2_43", e = {
3
+ import { NewIcon as n } from "../NewIcon/ui/NewIcon.js";
4
+ const p = "_checkbox_vuhc0_1", $ = "_checkbox__text_vuhc0_5", I = "_checkbox__elem_vuhc0_9", C = "_checkbox__hoverIcon_vuhc0_28", N = "_error_vuhc0_35", j = "_light_vuhc0_41", w = "_dark_vuhc0_44", y = "_isChecked_vuhc0_47", e = {
5
5
  checkbox: p,
6
- checkbox__elem: u,
7
- checkbox__hoverIcon: $,
8
- error: v,
9
- light: C,
10
- dark: I,
11
- isChecked: j,
12
- "medium-size": "_medium-size_68bw2_98",
13
- "large-size": "_large-size_68bw2_103",
14
- "small-size": "_small-size_68bw2_108"
15
- }, R = g(
6
+ checkbox__text: $,
7
+ checkbox__elem: I,
8
+ checkbox__hoverIcon: C,
9
+ error: N,
10
+ light: j,
11
+ dark: w,
12
+ isChecked: y,
13
+ "medium-size": "_medium-size_vuhc0_102",
14
+ "large-size": "_large-size_vuhc0_107",
15
+ "small-size": "_small-size_vuhc0_112"
16
+ }, L = g(
16
17
  ({
17
- children: n,
18
- isChecked: o = !1,
19
- error: h = !1,
18
+ children: t,
19
+ isChecked: _ = !1,
20
+ error: a = !1,
20
21
  modifierClassesStyle: m = [""],
21
- emitIsChecked: i,
22
- onClick: r,
23
- variant: b = "light",
24
- size_s: t,
25
- size_m: k,
26
- size_l: x,
27
- ...z
22
+ emitIsChecked: h,
23
+ onClick: l,
24
+ variant: x = "light",
25
+ size_s: k,
26
+ size_m: b,
27
+ size_l: u,
28
+ text: r,
29
+ ...v
28
30
  }, d) => {
29
- const f = m.map((w) => e[w]).filter(Boolean).join(" ");
30
- let s = "", c = "20";
31
- return x ? (s = e["large-size"] || "", c = "20") : t ? (s = e["small-size"] || "", c = "12") : (s = e["medium-size"] || "", c = "16"), /* @__PURE__ */ l(
31
+ const z = m.map((f) => e[f]).filter(Boolean).join(" ");
32
+ let o = "", c = "20";
33
+ return u ? (o = e["large-size"] || "", c = "20") : k ? (o = e["small-size"] || "", c = "12") : (o = e["medium-size"] || "", c = "16"), /* @__PURE__ */ i(
32
34
  "label",
33
35
  {
34
36
  className: `
35
37
  ${e.checkbox}
36
- ${f}
37
- ${o ? e.isChecked : ""}
38
- ${h ? e.error : ""}
39
- ${e[b] || ""}
40
- ${s}
38
+ ${z}
39
+ ${_ ? e.isChecked : ""}
40
+ ${a ? e.error : ""}
41
+ ${e[x] || ""}
42
+ ${o}
41
43
  `,
42
44
  onClick: () => {
43
- r && r();
45
+ l && l();
44
46
  },
45
47
  children: [
46
- /* @__PURE__ */ _(
48
+ /* @__PURE__ */ s(
47
49
  "input",
48
50
  {
49
51
  type: "checkbox",
50
52
  ref: d,
51
- checked: !!o,
52
- onChange: () => i && i(!o),
53
- ...z
53
+ checked: !!_,
54
+ onChange: () => h && h(!_),
55
+ ...v
54
56
  }
55
57
  ),
56
- /* @__PURE__ */ l("span", { className: e.checkbox__elem, children: [
57
- o && /* @__PURE__ */ _(
58
- a,
58
+ /* @__PURE__ */ i("span", { className: e.checkbox__elem, children: [
59
+ _ && /* @__PURE__ */ s(
60
+ n,
59
61
  {
60
62
  name: "check",
61
63
  size: c
62
64
  }
63
65
  ),
64
- !o && /* @__PURE__ */ _(
65
- a,
66
+ !_ && /* @__PURE__ */ s(
67
+ n,
66
68
  {
67
69
  name: "check",
68
70
  size: c,
@@ -70,12 +72,13 @@ const p = "_checkbox_68bw2_1", u = "_checkbox__elem_68bw2_5", $ = "_checkbox__ho
70
72
  }
71
73
  )
72
74
  ] }),
73
- n
75
+ r && /* @__PURE__ */ s("span", { className: e.checkbox__text, dangerouslySetInnerHTML: { __html: r } }),
76
+ t
74
77
  ]
75
78
  }
76
79
  );
77
80
  }
78
81
  );
79
82
  export {
80
- R as CheckBox
83
+ L as CheckBox
81
84
  };
@@ -13,6 +13,7 @@ export interface CheckBoxProps {
13
13
  size_s?: boolean;
14
14
  size_l?: boolean;
15
15
  size_m?: boolean;
16
+ text?: string;
16
17
  [key: string]: unknown;
17
18
  }
18
19
  export type CheckBoxComponent = ForwardRefExoticComponent<CheckBoxProps & RefAttributes<HTMLInputElement>>;
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
11
11
  import "../../Input/ui/Input.js";
12
12
  import "react/jsx-runtime";
13
13
  import "react-dom";
14
- import { b as w } from "../../../FilterWithSave-DzSbAFW2.js";
14
+ import { b as w } from "../../../FilterWithSave-DdPvn0L1.js";
15
15
  import "../../GroupedInput/ui/GroupedInputs.js";
16
16
  import "../../../index-rKuIKazb.js";
17
17
  import "../../MetroTag/ui/MetroTag.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../NewIcon/ui/NewIcon.js";
3
- import { F as a } from "../../../FilterWithSave-DzSbAFW2.js";
3
+ import { F as a } from "../../../FilterWithSave-DdPvn0L1.js";
4
4
  import "../../Modal/ui/Modal.js";
5
5
  import "../../../Option-BVIm7wOW.js";
6
6
  import "../../Button/ui/Button.js";
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { M as A } from "../../../FilterWithSave-DzSbAFW2.js";
2
+ import { M as A } from "../../../FilterWithSave-DdPvn0L1.js";
3
3
  import "../../Modal/ui/Modal.js";
4
4
  import "../../Flex/ui/Flex.js";
5
5
  import "../../Input/ui/Input.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { u as B } from "../../../FilterWithSave-DzSbAFW2.js";
3
+ import { u as B } from "../../../FilterWithSave-DdPvn0L1.js";
4
4
  import "../../Button/ui/Button.js";
5
5
  import "../../mobileButton/ui/MobileButton.js";
6
6
  import "../../NewIcon/ui/NewIcon.js";
@@ -1,4 +1,4 @@
1
- import { L as a } from "../../FilterWithSave-DzSbAFW2.js";
1
+ import { L as a } from "../../FilterWithSave-DdPvn0L1.js";
2
2
  export {
3
3
  a as LotCard
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { L as d } from "../../../FilterWithSave-DzSbAFW2.js";
2
+ import { L as d } from "../../../FilterWithSave-DdPvn0L1.js";
3
3
  import "../../NewIcon/ui/NewIcon.js";
4
4
  import "../../Tag/ui/Tag.js";
5
5
  import "../../Button/ui/Button.js";
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../FilterWithSave-DzSbAFW2.js";
1
+ import { a as r } from "../../FilterWithSave-DdPvn0L1.js";
2
2
  export {
3
3
  r as SortSelect
4
4
  };
@@ -13,7 +13,7 @@ import "../../Text/ui/Text.js";
13
13
  import "../../Flex/ui/Flex.js";
14
14
  import "../../Input/ui/Input.js";
15
15
  import "../../Modal/ui/Modal.js";
16
- import { a as A } from "../../../FilterWithSave-DzSbAFW2.js";
16
+ import { a as A } from "../../../FilterWithSave-DdPvn0L1.js";
17
17
  import "../../GroupedInput/ui/GroupedInputs.js";
18
18
  import "../../MetroTag/ui/MetroTag.js";
19
19
  import "../../Select/ui/Select.js";
@@ -1,3 +1,3 @@
1
1
  import { ISwitcherProps } from './Switcher.types';
2
2
 
3
- export declare const Switcher: ({ children, isActive, onClick }: ISwitcherProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Switcher: ({ children, isActive, onClick, isReverse, isBetween }: ISwitcherProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,37 +1,49 @@
1
- import { jsxs as w, jsx as s } from "react/jsx-runtime";
2
- import { useRef as n, useEffect as a } from "react";
3
- import { c as o } from "../../../index-rKuIKazb.js";
4
- const _ = "_switcherWrapper_jdmcl_29", d = "_swiper_jdmcl_40", l = "_swiperBackward_jdmcl_1", m = "_swiperActive_jdmcl_55", v = "_swiperForward_jdmcl_1", j = "_swiperInactive_jdmcl_60", f = "_swiperPoint_jdmcl_65", u = "_swiperPointActive_jdmcl_77", I = "_swiperInitialize_jdmcl_101", i = {
5
- switcherWrapper: _,
6
- swiper: d,
7
- swiperBackward: l,
8
- swiperActive: m,
9
- swiperForward: v,
10
- swiperInactive: j,
11
- swiperPoint: f,
12
- swiperPointActive: u,
13
- swiperInitialize: I
14
- }, c = o.bind(i), x = ({ children: t, isActive: e, onClick: p }) => {
15
- const r = n(!0);
16
- return a(() => {
1
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
+ import { useRef as o, useEffect as _ } from "react";
3
+ import { c as f } from "../../../index-rKuIKazb.js";
4
+ const v = "_switcherWrapper_1sffg_29", h = "_switcherWrapperReverse_1sffg_40", d = "_switcherWrapperBetween_1sffg_44", W = "_swiper_1sffg_48", g = "_swiperBackward_1sffg_1", l = "_swiperActive_1sffg_63", m = "_swiperForward_1sffg_1", u = "_swiperInactive_1sffg_68", I = "_swiperPoint_1sffg_73", P = "_swiperPointActive_1sffg_85", B = "_swiperInitialize_1sffg_109", e = {
5
+ switcherWrapper: v,
6
+ switcherWrapperReverse: h,
7
+ switcherWrapperBetween: d,
8
+ swiper: W,
9
+ swiperBackward: g,
10
+ swiperActive: l,
11
+ swiperForward: m,
12
+ swiperInactive: u,
13
+ swiperPoint: I,
14
+ swiperPointActive: P,
15
+ swiperInitialize: B
16
+ }, i = f.bind(e), z = ({ children: p, isActive: s, onClick: c, isReverse: w, isBetween: n }) => {
17
+ const r = o(!0);
18
+ return _(() => {
17
19
  r.current && (r.current = !1);
18
- }, []), /* @__PURE__ */ w("div", { className: i.switcherWrapper, children: [
19
- /* @__PURE__ */ s(
20
- "div",
21
- {
22
- className: c(
23
- i.swiper,
24
- { [i.swiperInitialize]: r.current },
25
- { [i.swiperActive]: e },
26
- { [i.swiperInactive]: !e && !r.current }
20
+ }, []), /* @__PURE__ */ a(
21
+ "div",
22
+ {
23
+ className: i(
24
+ e.switcherWrapper,
25
+ { [e.switcherWrapperReverse]: w },
26
+ { [e.switcherWrapperBetween]: n }
27
+ ),
28
+ children: [
29
+ /* @__PURE__ */ t(
30
+ "div",
31
+ {
32
+ className: i(
33
+ e.swiper,
34
+ { [e.swiperInitialize]: r.current },
35
+ { [e.swiperActive]: s },
36
+ { [e.swiperInactive]: !s && !r.current }
37
+ ),
38
+ onClick: c,
39
+ children: /* @__PURE__ */ t("div", { className: i(e.swiperPoint, { [e.swiperPointActive]: s }) })
40
+ }
27
41
  ),
28
- onClick: p,
29
- children: /* @__PURE__ */ s("div", { className: c(i.swiperPoint, { [i.swiperPointActive]: e }) })
30
- }
31
- ),
32
- t
33
- ] });
42
+ p
43
+ ]
44
+ }
45
+ );
34
46
  };
35
47
  export {
36
- x as Switcher
48
+ z as Switcher
37
49
  };
@@ -3,4 +3,6 @@ export interface ISwitcherProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  children?: React.ReactNode;
4
4
  isActive?: boolean;
5
5
  onClick?: () => void;
6
+ isReverse?: boolean;
7
+ isBetween?: boolean;
6
8
  }
@@ -1,4 +1,4 @@
1
- import { S as e } from "../../FilterWithSave-DzSbAFW2.js";
1
+ import { S as e } from "../../FilterWithSave-DdPvn0L1.js";
2
2
  export {
3
3
  e as TabSwitcher
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { S as y } from "../../../FilterWithSave-DzSbAFW2.js";
3
+ import { S as y } from "../../../FilterWithSave-DdPvn0L1.js";
4
4
  import "../../Text/ui/Text.js";
5
5
  import "../../../index-rKuIKazb.js";
6
6
  import "../../Button/ui/Button.js";
package/dist/main.js CHANGED
@@ -10,7 +10,7 @@ import { Flex as h } from "./components/Flex/ui/Flex.js";
10
10
  import { Input as T } from "./components/Input/ui/Input.js";
11
11
  import { Modal as k } from "./components/Modal/ui/Modal.js";
12
12
  import { FieldInput as F } from "./components/FieldInput/ui/FieldInput.js";
13
- import { F as w, L as I, M as L, a as N, S as v } from "./FilterWithSave-DzSbAFW2.js";
13
+ import { F as w, L as I, M as L, a as N, S as v } from "./FilterWithSave-DdPvn0L1.js";
14
14
  import { GroupedInputs as j } from "./components/GroupedInput/ui/GroupedInputs.js";
15
15
  import { Logo as y } from "./components/Logo/ui/Logo.js";
16
16
  import { MetroTag as E } from "./components/MetroTag/ui/MetroTag.js";