stone-kit 0.0.186 → 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 +39 -39
  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
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as m, Fragment as d } 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 k } from "../../NewIcon/ui/NewIcon.js";
4
4
  const y = "_btnCommon_13b7j_1", w = "_btnLoading_13b7j_20", f = "_isHidden_13b7j_24", C = "_blue_13b7j_68", N = "_sokolniki_13b7j_82", H = "_black_13b7j_96", L = "_gray_13b7j_110", S = "_whiteStroke_13b7j_124", p = "_whiteFilled_13b7j_136", $ = "_shade_13b7j_150", x = "_transparent_13b7j_156", F = "_volodiyaLight_13b7j_177", v = "_loader_13b7j_183", B = "_LoaderSpin_13b7j_1", _ = {
5
5
  btnCommon: y,
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ text: string;
4
+ error: boolean;
5
+ isChecked?: boolean;
6
+ }
7
+ export type Ref = HTMLInputElement;
8
+ export declare const CheckBox: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLInputElement>>;
9
+ export {};
@@ -0,0 +1,38 @@
1
+ import { jsxs as a, jsx as c } from "react/jsx-runtime";
2
+ import { Input as n } from "../Input/ui/Input.js";
3
+ import { c as i } from "../../index-rKuIKazb.js";
4
+ import { forwardRef as b } from "react";
5
+ import { NewIcon as h } from "../NewIcon/ui/NewIcon.js";
6
+ const m = "_checkboxLabel_1iwy9_1", x = "_labelText_1iwy9_36", _ = "_error_1iwy9_44", k = "_checkIcon_1iwy9_49", e = {
7
+ checkboxLabel: m,
8
+ labelText: x,
9
+ error: _,
10
+ checkIcon: k
11
+ }, d = i.bind(e), L = b(({
12
+ text: o,
13
+ isChecked: r,
14
+ error: t,
15
+ ...s
16
+ }, l) => /* @__PURE__ */ a("label", { className: d(e.checkboxLabel, { [e.error]: t }), children: [
17
+ /* @__PURE__ */ c(n, { type: "checkbox", ...s, ref: l }),
18
+ r && /* @__PURE__ */ c(
19
+ h,
20
+ {
21
+ additionalClass: e.checkIcon,
22
+ color: "white",
23
+ strokeWidth: "3",
24
+ name: "check",
25
+ size: "16"
26
+ }
27
+ ),
28
+ /* @__PURE__ */ c(
29
+ "div",
30
+ {
31
+ className: e.labelText,
32
+ dangerouslySetInnerHTML: { __html: o }
33
+ }
34
+ )
35
+ ] }));
36
+ export {
37
+ L as CheckBox
38
+ };
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare const CHECKBOX_VARIANTS: {
4
+ light: string;
5
+ };
6
+ export type checkBoxVariant = keyof typeof CHECKBOX_VARIANTS;
7
+ type checkBoxSizes = 'medium';
8
+ interface InputProps {
9
+ size_s?: checkBoxSizes;
10
+ size_m?: checkBoxSizes;
11
+ size_l?: checkBoxSizes;
12
+ error?: boolean;
13
+ variant?: checkBoxVariant;
14
+ additionalClass?: string;
15
+ }
16
+ export type ComponentProps = InputProps & React.InputHTMLAttributes<HTMLInputElement>;
17
+ export {};
@@ -0,0 +1,6 @@
1
+ const t = {
2
+ light: "light"
3
+ };
4
+ export {
5
+ t as CHECKBOX_VARIANTS
6
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import { c as N } from "../../../index-DIxK0V-G.js";
2
+ import { c as N } from "../../../index-rKuIKazb.js";
3
3
  const x = "_destination_1c7de_1", n = "_destinationName_1c7de_40", w = "_routeText_1c7de_45", g = "_whiteStroke_1c7de_65", k = "_routeWrapper_1c7de_78", _ = {
4
4
  destination: x,
5
5
  "auto-width": "_auto-width_1c7de_29",
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { c as t } from "../../../index-DIxK0V-G.js";
2
+ import { c as t } from "../../../index-rKuIKazb.js";
3
3
  const o = "_root_fi64k_1", _ = {
4
4
  root: o,
5
5
  "gap-1": "_gap-1_fi64k_5",
@@ -0,0 +1,16 @@
1
+ interface IModalFormProps {
2
+ isFormOpen: boolean;
3
+ setIsFormOpen: (isOpen: boolean) => void;
4
+ title: string;
5
+ subTitle: string;
6
+ personalCheckbox: {
7
+ text: string;
8
+ isRequired: boolean;
9
+ };
10
+ advCheckBox?: {
11
+ text: string;
12
+ isRequired: boolean;
13
+ } | undefined | null;
14
+ }
15
+ export declare const ModalForm: ({ isFormOpen, setIsFormOpen, title, subTitle, personalCheckbox, advCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element;
16
+ export {};