stone-kit 0.0.1105 → 0.0.1107
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.
- package/README.md +30 -0
- package/dist/App.d.ts +2 -0
- package/dist/App.js +10 -0
- package/dist/Option-DmDx_xOt.js +99 -0
- package/dist/PinTrans-D6OZq76b.js +10 -0
- package/dist/Router.d.ts +2 -0
- package/dist/Router.js +103 -0
- package/dist/SmallFilter-C-VKnbkP.js +10 -0
- package/dist/chunk-4WY6JWTD-BeveLKf_.js +1582 -0
- package/dist/components/Button/ui/Button.d.ts +1 -2
- package/dist/components/Button/ui/Button.js +74 -67
- package/dist/components/Button/ui/Button.types.d.ts +7 -5
- package/dist/components/Button/ui/Button.types.js +5 -3
- package/dist/components/CheckBox/CheckBox.d.ts +2 -0
- package/dist/components/CheckBox/CheckBox.js +84 -0
- package/dist/components/CheckBox/CheckBox.types.d.ts +17 -0
- package/dist/components/CheckBox/CheckBox.types.js +1 -0
- package/dist/components/CheckBox/index.d.ts +2 -0
- package/dist/components/CheckBox/index.js +4 -0
- package/dist/components/CheckBoxNew/CheckBox.types.d.ts +16 -0
- package/dist/components/CheckBoxNew/CheckBox.types.js +6 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +11 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.js +45 -0
- package/dist/components/CheckboxSelect/index.d.ts +1 -0
- package/dist/components/CheckboxSelect/index.js +4 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +18 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +57 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +2 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.js +81 -0
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.d.ts +6 -0
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.js +21 -0
- package/dist/components/CommercialLotCard/components/Price/Price.d.ts +9 -0
- package/dist/components/CommercialLotCard/components/Price/Price.js +39 -0
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +6 -0
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +100 -0
- package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +7 -0
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +37 -0
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +10 -0
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.js +1 -0
- package/dist/components/CommercialLotCard/types/LotCard.d.ts +386 -0
- package/dist/components/CommercialLotCard/types/LotCard.js +1 -0
- package/dist/components/CommercialLotCard/utils/formatPrice.d.ts +1 -0
- package/dist/components/CommercialLotCard/utils/formatPrice.js +8 -0
- package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +4 -0
- package/dist/components/CommercialLotCard/utils/getTagsFeatures.js +13 -0
- package/dist/components/DestinationTab/ui/DestinationTab.d.ts +0 -1
- package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
- package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +0 -1
- package/dist/components/FavoriteIcon/FavoriteIcon.d.ts +7 -0
- package/dist/components/FavoriteIcon/FavoriteIcon.js +66 -0
- package/dist/components/FavoriteIcon/Heart.d.ts +3 -0
- package/dist/components/FavoriteIcon/Heart.js +24 -0
- package/dist/components/FavoriteIcon/HeartFilled.d.ts +5 -0
- package/dist/components/FavoriteIcon/HeartFilled.js +27 -0
- package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -2
- package/dist/components/FieldInput/ui/FieldInput.js +28 -7
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +3 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +43 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +56 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +29 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +325 -0
- package/dist/components/Flex/ui/Flex.d.ts +0 -1
- package/dist/components/Flex/ui/Flex.js +1 -1
- package/dist/components/Flex/ui/Flex.types.d.ts +0 -1
- package/dist/components/FormModal/ui/ModalForm.d.ts +60 -0
- package/dist/components/FormModal/ui/ModalForm.js +1518 -0
- package/dist/components/FormModal/utils/reg.d.ts +4 -0
- package/dist/components/FormModal/utils/reg.js +6 -0
- package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +0 -1
- package/dist/components/GroupedInput/ui/GroupedInputs.js +5 -5
- package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +0 -1
- package/dist/components/Input/ui/Input.d.ts +28 -0
- package/dist/components/Input/ui/Input.js +3247 -49
- package/dist/components/Input/ui/Input.types.d.ts +0 -23
- package/dist/components/Input/ui/Input.types.js +1 -7
- package/dist/components/Logo/ui/Logo.d.ts +1 -2
- package/dist/components/Logo/ui/Logo.js +58 -33
- package/dist/components/Logo/ui/Logo.types.d.ts +13 -1
- package/dist/components/Logo/ui/Logo.types.js +14 -1
- package/dist/components/LotCard/hooks/useLotCard.d.ts +25 -0
- package/dist/components/LotCard/hooks/useLotCard.js +13 -0
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -2
- package/dist/components/LotCard/ui/LotCard.js +203 -104
- package/dist/components/LotCard/ui/LotCard.types.d.ts +234 -75
- package/dist/components/LotCard/utils/checkBedroomsCount.js +2 -2
- package/dist/components/LotCard/utils/const.d.ts +8 -0
- package/dist/components/LotCard/utils/const.js +11 -0
- package/dist/components/LotCard/utils/formatPrice.d.ts +1 -1
- package/dist/components/LotCard/utils/formatPrice.js +5 -6
- package/dist/components/LotCard/utils/getTagsFeatures.d.ts +4 -0
- package/dist/components/LotCard/utils/getTagsFeatures.js +13 -0
- package/dist/components/LotCard/utils/monthlyPayment.d.ts +1 -0
- package/dist/components/LotCard/utils/monthlyPayment.js +4 -0
- package/dist/components/LotCardSkeleton/index.d.ts +1 -0
- package/dist/components/LotCardSkeleton/index.js +4 -0
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.d.ts +5 -0
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +83 -0
- package/dist/components/MetroLabel/ui/MetroLabel.d.ts +0 -1
- package/dist/components/MetroLabel/ui/MetroLabel.js +19 -19
- package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +0 -1
- package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -2
- package/dist/components/MetroTag/ui/MetroTag.js +121 -25
- package/dist/components/MetroTag/ui/MetroTag.types.d.ts +21 -6
- package/dist/components/Modal/ui/Modal.d.ts +2 -17
- package/dist/components/Modal/ui/Modal.js +63 -19594
- package/dist/components/Modal/ui/Modal.types.d.ts +21 -0
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +2 -0
- package/dist/components/ModalSuccess/ModalSuccess.js +60 -0
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +8 -0
- package/dist/components/ModalSuccess/ModalSuccess.types.js +1 -0
- package/dist/components/ModalSuccess/index.d.ts +1 -0
- package/dist/components/ModalSuccess/index.js +4 -0
- package/dist/components/NewIcon/icons/PinTrans.d.ts +3 -0
- package/dist/components/NewIcon/icons/PinTrans.js +6 -0
- package/dist/components/NewIcon/icons/SmallFilter.d.ts +3 -0
- package/dist/components/NewIcon/icons/SmallFilter.js +6 -0
- package/dist/components/NewIcon/index.d.ts +1 -1
- package/dist/components/NewIcon/index.js +3 -2
- package/dist/components/NewIcon/ui/NewIcon.d.ts +2 -2
- package/dist/components/NewIcon/ui/NewIcon.js +204 -99
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +0 -1
- package/dist/components/NewIcon/ui/iconTypes.d.ts +3 -0
- package/dist/components/NewIcon/ui/iconTypes.js +60 -0
- package/dist/components/ProjectCardSkeleton/index.d.ts +1 -0
- package/dist/components/ProjectCardSkeleton/index.js +4 -0
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.d.ts +1 -0
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +32 -0
- package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -2
- package/dist/components/RoundButton/ui/RoundButton.js +56 -45
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +10 -2
- package/dist/components/RoundButton/ui/RoundButton.types.js +13 -6
- package/dist/components/Select/model/selectMode.d.ts +16 -0
- package/dist/components/Select/model/selectMode.js +64 -0
- package/dist/components/Select/ui/Category.d.ts +13 -0
- package/dist/components/Select/ui/Category.js +79 -0
- package/dist/components/Select/ui/Option.d.ts +15 -0
- package/dist/components/Select/ui/Option.js +7 -0
- package/dist/components/Select/ui/Select.d.ts +1 -3
- package/dist/components/Select/ui/Select.js +196 -79
- package/dist/components/Select/ui/Select.types.d.ts +62 -6
- package/dist/components/SliderNavigation/index.d.ts +0 -1
- package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -2
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +45 -32
- package/dist/components/SliderNavigation/ui/SliderNavigation.types.d.ts +7 -0
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +5 -4
- package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
- package/dist/components/SortSelect/ui/SortSelect.d.ts +0 -1
- package/dist/components/SortSelect/ui/SortSelect.js +67 -56
- package/dist/components/SortSelect/ui/SortSelect.types.d.ts +9 -2
- package/dist/components/SummarySelect/index.d.ts +1 -0
- package/dist/components/SummarySelect/index.js +4 -0
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +15 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +172 -0
- package/dist/components/Switcher/ui/Switcher.d.ts +1 -2
- package/dist/components/Switcher/ui/Switcher.js +45 -30
- package/dist/components/Switcher/ui/Switcher.types.d.ts +3 -1
- package/dist/components/TabSelect/index.d.ts +1 -0
- package/dist/components/TabSelect/index.js +4 -0
- package/dist/components/TabSelect/ui/TabSelect.d.ts +32 -0
- package/dist/components/TabSelect/ui/TabSelect.js +64 -0
- package/dist/components/TabSelect/ui/TabSelect.types.d.ts +0 -0
- package/dist/components/TabSelect/ui/TabSelect.types.js +1 -0
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +4 -4
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +114 -34
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +23 -4
- package/dist/components/Tag/ui/Tag.d.ts +1 -2
- package/dist/components/Tag/ui/Tag.js +96 -44
- package/dist/components/Tag/ui/Tag.types.d.ts +22 -2
- package/dist/components/Tag/ui/Tag.types.js +20 -3
- package/dist/components/Text/ui/Text.d.ts +1 -2
- package/dist/components/Text/ui/Text.js +20 -27
- package/dist/components/Text/ui/Text.types.d.ts +0 -1
- package/dist/components/TextArea/TextArea.d.ts +8 -0
- package/dist/components/TextArea/TextArea.js +25 -0
- package/dist/components/ZoomControls/index.d.ts +1 -0
- package/dist/components/ZoomControls/index.js +4 -0
- package/dist/components/ZoomControls/ui/ZoomControls.d.ts +2 -0
- package/dist/components/ZoomControls/ui/ZoomControls.js +33 -0
- package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +6 -0
- package/dist/components/ZoomControls/ui/ZoomControls.types.js +1 -0
- package/dist/components/mobileButton/ui/MobileButton.d.ts +0 -1
- package/dist/components/mobileButton/ui/MobileButton.js +38 -38
- package/dist/components/mobileButton/ui/MobileButton.types.d.ts +0 -1
- package/dist/index-BJwl9stn.js +33872 -0
- package/dist/index-YnD2EP-S.js +43 -0
- package/dist/layout/Layout.d.ts +5 -0
- package/dist/layout/Layout.js +11 -0
- package/dist/layout/components/Header/Header.d.ts +1 -0
- package/dist/layout/components/Header/Header.js +141 -0
- package/dist/layout/components/Menu.d.ts +1 -0
- package/dist/layout/components/Menu.js +109 -0
- package/dist/main.d.ts +14 -0
- package/dist/main.js +70 -42
- package/dist/pages/ButtonsPage/Buttons.d.ts +1 -0
- package/dist/pages/ButtonsPage/Buttons.js +106 -0
- package/dist/pages/CheckboxPage/CheckboxPage.d.ts +1 -0
- package/dist/pages/CheckboxPage/CheckboxPage.js +224 -0
- package/dist/pages/FormsPage/FormsPage.d.ts +2 -0
- package/dist/pages/FormsPage/FormsPage.js +58 -0
- package/dist/pages/HomePage/HomePage.d.ts +2 -0
- package/dist/pages/HomePage/HomePage.js +7 -0
- package/dist/pages/IconsPage/IconsPage.d.ts +1 -0
- package/dist/pages/IconsPage/IconsPage.js +19 -0
- package/dist/pages/InputPage/InputPage.d.ts +1 -0
- package/dist/pages/InputPage/InputPage.js +13 -0
- package/dist/pages/LogoPage/LogoPage.d.ts +1 -0
- package/dist/pages/LogoPage/LogoPage.js +16 -0
- package/dist/pages/LotsPage/LotsPage.d.ts +1 -0
- package/dist/pages/LotsPage/LotsPage.js +74 -0
- package/dist/pages/LotsPage/const.d.ts +4 -0
- package/dist/pages/LotsPage/const.js +678 -0
- package/dist/pages/ModalsPage/ModalPage.d.ts +2 -0
- package/dist/pages/ModalsPage/ModalPage.js +110 -0
- package/dist/pages/SelectPage/SelectPage.d.ts +1 -0
- package/dist/pages/SelectPage/SelectPage.js +211 -0
- package/dist/pages/SelectPage/const.d.ts +13 -0
- package/dist/pages/SelectPage/const.js +35 -0
- package/dist/pages/TabsPage/TabsPage.d.ts +2 -0
- package/dist/pages/TabsPage/TabsPage.js +168 -0
- package/dist/pages/TagsPage/TagsPage.d.ts +1 -0
- package/dist/pages/TagsPage/TagsPage.js +64 -0
- package/dist/shared/checkLargeOffice.d.ts +2 -0
- package/dist/shared/checkLargeOffice.js +4 -0
- package/dist/shared/deepEqual.d.ts +1 -0
- package/dist/shared/deepEqual.js +16 -0
- package/dist/shared/fmtNumber.d.ts +1 -0
- package/dist/shared/fmtNumber.js +4 -0
- package/dist/shared/mlnRound.d.ts +1 -0
- package/dist/shared/mlnRound.js +8 -0
- package/dist/shared/useClientWidth.d.ts +2 -0
- package/dist/shared/useClientWidth.js +6 -6
- package/dist/stone-kit.css +1 -0
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +166 -0
- package/dist/stories/entities/index.js +4 -0
- package/dist/stories/shared/ui/Button/Button.stories.js +118 -0
- package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +71 -0
- package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +45 -0
- package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +114 -0
- package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +89 -0
- package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +31 -0
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +44 -0
- package/dist/stories/shared/ui/Flex/Flex.stories.js +74 -0
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +65 -0
- package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +68 -0
- package/dist/stories/shared/ui/Input/Input.stories.js +82 -0
- package/dist/stories/shared/ui/Logo/Logo.stories.js +75 -0
- package/dist/stories/shared/ui/MetroLabel/MetroLabel.stories.js +91 -0
- package/dist/stories/shared/ui/MetroTag/MetroTag.stories.js +96 -0
- package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +77 -0
- package/dist/stories/shared/ui/Modal/Modal.stories.js +77 -0
- package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +34 -0
- package/dist/stories/shared/ui/NewIcon/NewIcon.stories.js +38 -0
- package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +83 -0
- package/dist/stories/shared/ui/Select/Select.stories.js +81 -0
- package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +82 -0
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +87 -0
- package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +85 -0
- package/dist/stories/shared/ui/Switcher/Switcher.stories.js +77 -0
- package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +76 -0
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +76 -0
- package/dist/stories/shared/ui/Tag/Tag.stories.js +51 -0
- package/dist/stories/shared/ui/Text/Text.stories.js +22 -0
- package/dist/stories/shared/ui/TextArea/TextArea.stories.js +37 -0
- package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +91 -0
- package/dist/stories/shared/ui/index.js +62 -0
- package/dist/useLotCard-D-gK4J_o.js +186 -0
- package/dist/useSortSelect-IeonkD5d.js +79 -0
- package/package.json +39 -30
- package/dist/index-DIxK0V-G.js +0 -44
- package/dist/style.css +0 -1
- package/dist/useSortSelect-A7A_pNcU.js +0 -76
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { NewIcon as
|
|
4
|
-
const f = "_root_1ml5t_1", d = "_metroColor_1ml5t_15", N = "_route_1ml5t_25", p = "_auto_1ml5t_35", x = "_full_1ml5t_39",
|
|
1
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../../index-YnD2EP-S.js";
|
|
3
|
+
import { NewIcon as _ } from "../../NewIcon/ui/NewIcon.js";
|
|
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,
|
|
6
6
|
metroColor: d,
|
|
7
7
|
route: N,
|
|
8
8
|
auto: p,
|
|
9
9
|
full: x
|
|
10
|
-
}, C =
|
|
10
|
+
}, C = i.bind(t), v = ({ addClassName: e, metro: o, width: c = "full", justifyContent: n = "flex-start", colorIcon: a = "#777E90", ...m }) => /* @__PURE__ */ l(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
|
13
|
-
style: { justifyContent: `${
|
|
14
|
-
className: C(
|
|
15
|
-
...
|
|
13
|
+
style: { justifyContent: `${n}` },
|
|
14
|
+
className: C(t.root, e, t[c]),
|
|
15
|
+
...m,
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
/* @__PURE__ */ l("div", { className: t.metroColor, children: [
|
|
18
|
+
o?.color && /* @__PURE__ */ s("span", { style: { background: o?.color ?? "" } }),
|
|
19
19
|
o.name
|
|
20
20
|
] }),
|
|
21
|
-
o.routes && o.routes.map((
|
|
21
|
+
o.routes && o.routes.map((r, u) => /* @__PURE__ */ l(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
|
-
className:
|
|
24
|
+
className: t.route,
|
|
25
25
|
children: [
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
r.iconName && /* @__PURE__ */ s(
|
|
27
|
+
_,
|
|
28
28
|
{
|
|
29
29
|
size: "20",
|
|
30
|
-
name:
|
|
31
|
-
color:
|
|
30
|
+
name: r.iconName,
|
|
31
|
+
color: a
|
|
32
32
|
}
|
|
33
33
|
),
|
|
34
|
-
|
|
34
|
+
r.timeTo + " мин"
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
|
-
|
|
37
|
+
u
|
|
38
38
|
))
|
|
39
39
|
]
|
|
40
40
|
}
|
|
41
|
-
)
|
|
41
|
+
);
|
|
42
42
|
export {
|
|
43
43
|
v as MetroLabel
|
|
44
44
|
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { IMetroTagProps } from './MetroTag.types';
|
|
2
|
-
|
|
3
|
-
export declare const MetroTag: ({ addClassName, metro, width, ...rest }: IMetroTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const MetroTag: ({ addClassName, addClassNameColor, addClassNameTimeTo, metro, separatorColor, width, variant, isBetween, withBg, withWhiteBg, ...rest }: IMetroTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,46 +1,142 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { NewIcon as
|
|
4
|
-
const x = "
|
|
5
|
-
root:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as M } from "../../../index-YnD2EP-S.js";
|
|
3
|
+
import { NewIcon as l } from "../../NewIcon/ui/NewIcon.js";
|
|
4
|
+
const w = "_root_16fjr_1", N = "_iconsWrapper_16fjr_17", W = "_metroColor_16fjr_27", x = "_route_16fjr_37", B = "_auto_16fjr_47", T = "_full_16fjr_51", $ = "_transparent_16fjr_55", C = "_long_16fjr_60", b = "_mini_16fjr_64", v = "_metroColorMini_16fjr_68", y = "_routeMini_16fjr_77", I = "_withBg_16fjr_90", z = "_withWhiteBg_16fjr_94", o = {
|
|
5
|
+
root: w,
|
|
6
|
+
iconsWrapper: N,
|
|
7
|
+
metroColor: W,
|
|
8
|
+
route: x,
|
|
9
|
+
auto: B,
|
|
10
|
+
full: T,
|
|
11
|
+
transparent: $,
|
|
12
|
+
long: C,
|
|
13
|
+
mini: b,
|
|
14
|
+
metroColorMini: v,
|
|
15
|
+
routeMini: y,
|
|
16
|
+
withBg: I,
|
|
17
|
+
withWhiteBg: z
|
|
18
|
+
}, c = M.bind(o), A = ({
|
|
19
|
+
addClassName: a,
|
|
20
|
+
addClassNameColor: _,
|
|
21
|
+
addClassNameTimeTo: g,
|
|
22
|
+
metro: r,
|
|
23
|
+
separatorColor: j = "#F4F5F6",
|
|
24
|
+
width: u = "auto",
|
|
25
|
+
variant: s = "default",
|
|
26
|
+
isBetween: f = !1,
|
|
27
|
+
withBg: d = !1,
|
|
28
|
+
withWhiteBg: m = !1,
|
|
29
|
+
...p
|
|
30
|
+
}) => {
|
|
31
|
+
const h = ["pedestrian", "auto"];
|
|
32
|
+
return Array.isArray(r) ? /* @__PURE__ */ e(
|
|
13
33
|
"div",
|
|
14
34
|
{
|
|
15
|
-
className:
|
|
16
|
-
|
|
35
|
+
className: c(
|
|
36
|
+
o.root,
|
|
37
|
+
o[s],
|
|
38
|
+
o[f ? "long" : ""],
|
|
39
|
+
o[d ? "withBg" : ""],
|
|
40
|
+
o[m ? "withWhiteBg" : ""],
|
|
41
|
+
a,
|
|
42
|
+
o[u]
|
|
43
|
+
),
|
|
44
|
+
...p,
|
|
17
45
|
children: [
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
46
|
+
/* @__PURE__ */ e("div", { className: c(o.metroColor, _), children: [
|
|
47
|
+
/* @__PURE__ */ i("div", { className: o.iconsWrapper, children: r.map((n, t) => n.icon ? /* @__PURE__ */ i(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
className: o.icon,
|
|
51
|
+
children: n?.icon && /* @__PURE__ */ i(
|
|
52
|
+
l,
|
|
53
|
+
{
|
|
54
|
+
size: "20",
|
|
55
|
+
name: n.icon,
|
|
56
|
+
color: "#777E90"
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
},
|
|
60
|
+
`metro + ${n.name} + ${t}`
|
|
61
|
+
) : /* @__PURE__ */ i(
|
|
62
|
+
"span",
|
|
63
|
+
{
|
|
64
|
+
style: {
|
|
65
|
+
background: n?.color ?? "",
|
|
66
|
+
border: t > 0 ? `1px solid ${j}` : ""
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
`color + ${n.name} + ${t}`
|
|
70
|
+
)) }),
|
|
71
|
+
r.map((n) => n.name).join(", ")
|
|
21
72
|
] }),
|
|
22
|
-
|
|
73
|
+
r?.map((n, t) => !n.mode || !n.timeTo ? null : /* @__PURE__ */ e(
|
|
23
74
|
"div",
|
|
24
75
|
{
|
|
25
|
-
className:
|
|
76
|
+
className: o.route,
|
|
26
77
|
children: [
|
|
27
|
-
|
|
28
|
-
|
|
78
|
+
h.includes(n.mode) && /* @__PURE__ */ i(
|
|
79
|
+
l,
|
|
29
80
|
{
|
|
30
81
|
size: "20",
|
|
31
|
-
name:
|
|
82
|
+
name: n.mode,
|
|
32
83
|
color: "#777E90"
|
|
33
84
|
}
|
|
34
85
|
),
|
|
35
|
-
|
|
86
|
+
n.timeTo + " " + (n.selfIconText ?? "мин")
|
|
36
87
|
]
|
|
37
88
|
},
|
|
38
|
-
|
|
89
|
+
`route - ${n.name} - ${t}`
|
|
39
90
|
))
|
|
40
91
|
]
|
|
41
92
|
}
|
|
93
|
+
) : /* @__PURE__ */ e(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
className: c(
|
|
97
|
+
o.root,
|
|
98
|
+
o[s],
|
|
99
|
+
o[f ? "long" : ""],
|
|
100
|
+
o[d ? "withBg" : ""],
|
|
101
|
+
o[m ? "withWhiteBg" : ""],
|
|
102
|
+
a,
|
|
103
|
+
o[u]
|
|
104
|
+
),
|
|
105
|
+
...p,
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ e(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
className: c(o.metroColor, _, { [o.metroColorMini]: s === "mini" }),
|
|
111
|
+
children: [
|
|
112
|
+
r?.icon && /* @__PURE__ */ i(
|
|
113
|
+
"img",
|
|
114
|
+
{
|
|
115
|
+
src: r.icon,
|
|
116
|
+
width: 20,
|
|
117
|
+
height: 20
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
r?.color && !r?.icon && /* @__PURE__ */ i("span", { style: { background: r?.color ?? "" } }),
|
|
121
|
+
r.name
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
r.timeTo && /* @__PURE__ */ e("div", { className: c(o.route, g, { [o.routeMini]: s === "mini" }), children: [
|
|
126
|
+
r.mode && h.includes(r.mode) && /* @__PURE__ */ i(
|
|
127
|
+
l,
|
|
128
|
+
{
|
|
129
|
+
size: "20",
|
|
130
|
+
name: r.mode,
|
|
131
|
+
color: "#777E90"
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
r.timeTo + " " + (r.selfIconText ?? "мин")
|
|
135
|
+
] })
|
|
136
|
+
]
|
|
137
|
+
}
|
|
42
138
|
);
|
|
43
139
|
};
|
|
44
140
|
export {
|
|
45
|
-
|
|
141
|
+
A as MetroTag
|
|
46
142
|
};
|
|
@@ -1,15 +1,30 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type TagWidth = 'full' | 'auto';
|
|
3
2
|
export interface IMetroTagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
metro: {
|
|
5
4
|
name?: string;
|
|
5
|
+
station?: string;
|
|
6
6
|
color?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
7
|
+
timeTo?: number;
|
|
8
|
+
mode?: string;
|
|
9
|
+
selfIconText?: string | undefined;
|
|
10
|
+
icon?: string;
|
|
11
|
+
} | {
|
|
12
|
+
name?: string;
|
|
13
|
+
station?: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
timeTo?: number;
|
|
16
|
+
mode?: string;
|
|
17
|
+
selfIconText?: string | undefined;
|
|
18
|
+
icon?: string;
|
|
19
|
+
}[];
|
|
20
|
+
separatorColor?: string;
|
|
21
|
+
variant?: 'default' | 'transparent' | 'mini';
|
|
12
22
|
addClassName?: string;
|
|
23
|
+
addClassNameColor?: string;
|
|
24
|
+
addClassNameTimeTo?: string;
|
|
25
|
+
isBetween?: boolean;
|
|
13
26
|
width?: TagWidth;
|
|
27
|
+
withBg?: boolean;
|
|
28
|
+
withWhiteBg?: boolean;
|
|
14
29
|
}
|
|
15
30
|
export {};
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
interface IModalProps {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
emitIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
6
|
-
additionalClass?: string;
|
|
7
|
-
additionalClassOverlay?: string;
|
|
8
|
-
additionalClassModalBody?: string;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
isTransparentBack?: boolean;
|
|
11
|
-
isClickOutside?: boolean;
|
|
12
|
-
createPortalObj?: {
|
|
13
|
-
domNode: HTMLElement | null;
|
|
14
|
-
key?: string | null | undefined;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IModalProps } from './Modal.types';
|
|
17
3
|
export declare const Modal: FC<IModalProps>;
|
|
18
|
-
export {};
|