stone-kit 0.0.187 → 0.0.188

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.
Files changed (36) hide show
  1. package/dist/Modal-G1ISsPJt.js +19622 -0
  2. package/dist/components/Button/ui/Button.js +1 -1
  3. package/dist/components/CheckBox/CheckBox.d.ts +9 -0
  4. package/dist/components/CheckBox/CheckBox.js +38 -0
  5. package/dist/components/CheckBox/CheckBox.types.d.ts +17 -0
  6. package/dist/components/CheckBox/CheckBox.types.js +6 -0
  7. package/dist/components/DestinationTab/ui/DestinationTab.js +1 -1
  8. package/dist/components/Flex/ui/Flex.js +1 -1
  9. package/dist/components/FormModal/ui/ModalForm.d.ts +16 -0
  10. package/dist/components/FormModal/ui/ModalForm.js +2635 -0
  11. package/dist/components/FormModal/utils/reg.d.ts +4 -0
  12. package/dist/components/FormModal/utils/reg.js +6 -0
  13. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  14. package/dist/components/Input/ui/Input.js +56 -50
  15. package/dist/components/Logo/ui/Logo.js +1 -1
  16. package/dist/components/MetroLabel/ui/MetroLabel.js +1 -1
  17. package/dist/components/MetroTag/ui/MetroTag.js +1 -1
  18. package/dist/components/Modal/index.js +2 -2
  19. package/dist/components/Modal/ui/Modal.js +4 -19619
  20. package/dist/components/NewIcon/ui/NewIcon.js +8 -7
  21. package/dist/components/RoundButton/ui/RoundButton.js +1 -1
  22. package/dist/components/Select/ui/Select.js +1 -1
  23. package/dist/components/SliderNavigation/ui/SliderNavigation.js +1 -1
  24. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  25. package/dist/components/SortSelect/ui/SortSelect.js +7 -7
  26. package/dist/components/Switcher/ui/Switcher.js +1 -1
  27. package/dist/components/TabSelect/ui/TabSelect.js +1 -1
  28. package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
  29. package/dist/components/Tag/ui/Tag.js +1 -1
  30. package/dist/components/Text/ui/Text.js +1 -1
  31. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  32. package/dist/{index-DIxK0V-G.js → index-rKuIKazb.js} +9 -8
  33. package/dist/main.js +10 -10
  34. package/dist/style.css +1 -1
  35. package/dist/{useSortSelect-Dy4WKDDY.js → useSortSelect-BXr8BYtw.js} +1 -1
  36. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ declare const phoneReg: RegExp;
2
+ declare const emailReg: RegExp;
3
+ declare const nameReg: RegExp;
4
+ export { phoneReg, emailReg, nameReg };
@@ -0,0 +1,6 @@
1
+ const e = /^((8|\+7)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{10}/g, n = /^[A-Z0-9._%+-]+@[A-Z0-9-]+.+.[A-Z]{2,4}$/i, o = /^((([а-яА-ЯЁё-]){1,30})(\s{1,3}|)){1,5}$|^((([a-zA-Z-'`]){1,30})(\s{1,3}|)){1,5}$/u;
2
+ export {
3
+ n as emailReg,
4
+ o as nameReg,
5
+ e as phoneReg
6
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { c } from "../../../index-DIxK0V-G.js";
2
+ import { c } from "../../../index-rKuIKazb.js";
3
3
  const m = "_root_1dq3m_1", o = {
4
4
  root: m
5
5
  }, n = c.bind(o), p = ({ children: s, addClassName: t }) => /* @__PURE__ */ r("div", { className: n(o.root, t), children: s });
@@ -1,57 +1,63 @@
1
- import { jsxs as c, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as o, Fragment as d, jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as W } from "react";
3
- import { c as d } from "../../../index-DIxK0V-G.js";
4
- const h = "_inputWrapper_1vmip_10", f = "_inputWrapperPost_1vmip_37", v = "_inputWrapperPre_1vmip_38", P = "_light_1vmip_54", w = "_dark_1vmip_87", g = "_inputWrapperError_1vmip_123", r = {
5
- "auto-width": "_auto-width_1vmip_1",
6
- "full-width": "_full-width_1vmip_6",
7
- inputWrapper: h,
8
- inputWrapperPost: f,
9
- inputWrapperPre: v,
10
- light: P,
3
+ import { c as k } from "../../../index-rKuIKazb.js";
4
+ const f = "_inputWrapper_1xym7_10", P = "_inputWrapperPost_1xym7_37", y = "_inputWrapperPre_1xym7_38", g = "_light_1xym7_54", w = "_dark_1xym7_87", $ = "_inputWrapperError_1xym7_123", B = "_checkBox_1xym7_137", r = {
5
+ "auto-width": "_auto-width_1xym7_1",
6
+ "full-width": "_full-width_1xym7_6",
7
+ inputWrapper: f,
8
+ inputWrapperPost: P,
9
+ inputWrapperPre: y,
10
+ light: g,
11
11
  dark: w,
12
- inputWrapperError: g
13
- }, $ = d.bind(r), x = W(
12
+ inputWrapperError: $,
13
+ checkBox: B
14
+ }, c = k.bind(r), E = W(
14
15
  ({
15
- size_s: a = "large",
16
- size_m: n,
17
- size_l: e,
18
- pre: p = !1,
19
- post: t = !1,
20
- variant: s = "light",
21
- width: o = "auto",
22
- error: _,
23
- additionalClass: u = "",
24
- ...l
25
- }, m) => /* @__PURE__ */ c(
26
- "div",
27
- {
28
- className: $(
29
- r.inputWrapper,
30
- r[`${a}-size`],
31
- r[`${n}-size_m`],
32
- r[`${e}-size_l`],
33
- r[`${s}`],
34
- { [r.inputWrapperPre]: p },
35
- { [r.inputWrapperPost]: t },
36
- r[`${o}-width`],
37
- { [r.inputWrapperError]: _ },
38
- u
39
- ),
40
- children: [
41
- p && /* @__PURE__ */ i("span", { children: p }),
42
- /* @__PURE__ */ i(
43
- "input",
44
- {
45
- ref: m,
46
- ...l
47
- }
16
+ size_s: s = "large",
17
+ size_m: _,
18
+ size_l: u,
19
+ pre: i = !1,
20
+ post: n = !1,
21
+ variant: m = "light",
22
+ width: l = "auto",
23
+ error: h,
24
+ type: p,
25
+ additionalClass: x = "",
26
+ ...a
27
+ }, e) => /* @__PURE__ */ o(d, { children: [
28
+ p !== "checkbox" && /* @__PURE__ */ o(
29
+ "div",
30
+ {
31
+ className: c(
32
+ r.inputWrapper,
33
+ r[`${s}-size`],
34
+ r[`${_}-size_m`],
35
+ r[`${u}-size_l`],
36
+ r[`${m}`],
37
+ { [r.inputWrapperPre]: i },
38
+ { [r.inputWrapperPost]: n },
39
+ r[`${l}-width`],
40
+ { [r.inputWrapperError]: h },
41
+ x
48
42
  ),
49
- t && /* @__PURE__ */ i("span", { children: t })
50
- ]
51
- }
52
- )
43
+ children: [
44
+ i && /* @__PURE__ */ t("span", { children: i }),
45
+ /* @__PURE__ */ t(
46
+ "input",
47
+ {
48
+ ref: e,
49
+ type: p,
50
+ ...a
51
+ }
52
+ ),
53
+ n && /* @__PURE__ */ t("span", { children: n })
54
+ ]
55
+ }
56
+ ),
57
+ p === "checkbox" && /* @__PURE__ */ t("input", { className: c(r.checkBox), ref: e, type: p, ...a })
58
+ ] })
53
59
  );
54
- x.displayName = "Input";
60
+ E.displayName = "Input";
55
61
  export {
56
- x as Input
62
+ E as Input
57
63
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
2
  import { Text as s } from "../../Text/ui/Text.js";
3
- import { c as i } from "../../../index-DIxK0V-G.js";
3
+ import { c as i } from "../../../index-rKuIKazb.js";
4
4
  const p = "_wrapper_nzllw_1", H = "_logo_nzllw_7", h = "_wrapperBetween_nzllw_12", n = "_uk_nzllw_17", r = "_uk_black_nzllw_24", V = "_uk_white_nzllw_27", C = {
5
5
  wrapper: p,
6
6
  logo: H,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
- import { c as _ } from "../../../index-DIxK0V-G.js";
2
+ import { c as _ } from "../../../index-rKuIKazb.js";
3
3
  import { NewIcon as m } from "../../NewIcon/ui/NewIcon.js";
4
4
  const f = "_root_1ml5t_1", d = "_metroColor_1ml5t_15", N = "_route_1ml5t_25", p = "_auto_1ml5t_35", x = "_full_1ml5t_39", t = {
5
5
  root: f,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as t, jsx as s } from "react/jsx-runtime";
2
- import { c as g } from "../../../index-DIxK0V-G.js";
2
+ import { c as g } from "../../../index-rKuIKazb.js";
3
3
  import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
4
4
  const f = "_root_t88nk_1", k = "_metroColor_t88nk_17", h = "_route_t88nk_27", m = "_auto_t88nk_37", w = "_full_t88nk_41", N = "_transparent_t88nk_45", x = "_long_t88nk_50", B = "_withBg_t88nk_54", n = {
5
5
  root: f,
@@ -1,4 +1,4 @@
1
- import { Modal as a } from "./ui/Modal.js";
1
+ import { M as r } from "../../Modal-G1ISsPJt.js";
2
2
  export {
3
- a as Modal
3
+ r as Modal
4
4
  };