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,66 +1,74 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { c as
|
|
4
|
-
import { s as e, u as
|
|
5
|
-
import { NewIcon as u } from "../../NewIcon/ui/NewIcon.js";
|
|
6
|
-
import "../../Button/ui/Button.js";
|
|
7
|
-
import "../../mobileButton/ui/MobileButton.js";
|
|
8
|
-
import "../../DestinationTab/ui/DestinationTab.js";
|
|
9
|
-
import "../../RoundButton/ui/RoundButton.js";
|
|
10
|
-
import "../../Tag/ui/Tag.js";
|
|
11
|
-
import "../../Switcher/ui/Switcher.js";
|
|
12
|
-
import { Text as L } from "../../Text/ui/Text.js";
|
|
13
|
-
import "../../Flex/ui/Flex.js";
|
|
14
|
-
import "../../Input/ui/Input.js";
|
|
15
|
-
import { Modal as W } from "../../Modal/ui/Modal.js";
|
|
16
|
-
import "../../TabSwitcher/ui/TabSwitcher.js";
|
|
17
|
-
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
18
|
-
import "../../MetroTag/ui/MetroTag.js";
|
|
19
|
-
import "../../Select/ui/Select.js";
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as M, useRef as W, useEffect as E } from "react";
|
|
3
|
+
import { c as L } from "../../../index-YnD2EP-S.js";
|
|
4
|
+
import { s as e, u as j } from "../../../useSortSelect-IeonkD5d.js";
|
|
20
5
|
import { useClientWidth as w } from "../../../shared/useClientWidth.js";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
6
|
+
import { NewIcon as O } from "../../NewIcon/ui/NewIcon.js";
|
|
7
|
+
import { Modal as T } from "../../Modal/ui/Modal.js";
|
|
8
|
+
import { Text as z } from "../../Text/ui/Text.js";
|
|
9
|
+
const r = L.bind(e), A = ({
|
|
10
|
+
options: n,
|
|
11
|
+
selectedOption: h,
|
|
12
|
+
placeholder: v = "",
|
|
13
|
+
error: N,
|
|
14
|
+
disabled: b,
|
|
15
|
+
additionalClass: x = "",
|
|
16
|
+
onChange: c,
|
|
17
|
+
onBlur: y,
|
|
18
|
+
mini: k,
|
|
19
|
+
openOnTop: d = !1,
|
|
20
|
+
onClickItem: C,
|
|
21
|
+
onCLickSelect: m,
|
|
22
|
+
onOpenClick: p
|
|
29
23
|
}) => {
|
|
30
|
-
const [
|
|
31
|
-
selectedOption:
|
|
32
|
-
|
|
24
|
+
const [o, i] = M(!1), u = W(null), { isMobile: l } = w(), { handleBlur: B, getInputValue: I, getOption: f, handleDocumentClick: S } = j({
|
|
25
|
+
selectedOption: h,
|
|
26
|
+
onClickOption: C,
|
|
27
|
+
setSelectedOption: c,
|
|
33
28
|
setIsOpen: i,
|
|
34
|
-
containerRef:
|
|
35
|
-
isOpen: o,
|
|
29
|
+
containerRef: u,
|
|
36
30
|
isMobile: l,
|
|
37
|
-
placeholder:
|
|
38
|
-
onChange:
|
|
39
|
-
onBlur:
|
|
31
|
+
placeholder: v,
|
|
32
|
+
onChange: c,
|
|
33
|
+
onBlur: y
|
|
40
34
|
});
|
|
41
|
-
return
|
|
42
|
-
document.removeEventListener("click",
|
|
43
|
-
}), []), /* @__PURE__ */
|
|
35
|
+
return E(() => (document.addEventListener("click", S), () => {
|
|
36
|
+
document.removeEventListener("click", S);
|
|
37
|
+
}), []), /* @__PURE__ */ s(
|
|
44
38
|
"div",
|
|
45
39
|
{
|
|
46
|
-
ref:
|
|
47
|
-
className:
|
|
40
|
+
ref: u,
|
|
41
|
+
className: r(
|
|
42
|
+
e.sortSelectWrapper,
|
|
43
|
+
{ [e.sortSelectWrapperError]: N },
|
|
44
|
+
{ [e.sortSelectWrapperTop]: d },
|
|
45
|
+
x
|
|
46
|
+
),
|
|
48
47
|
tabIndex: 0,
|
|
49
|
-
onBlur:
|
|
48
|
+
onBlur: B,
|
|
49
|
+
onClick: () => {
|
|
50
|
+
m && m();
|
|
51
|
+
},
|
|
50
52
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ s("div", { className: r(e.inputWrapper), children: [
|
|
52
54
|
/* @__PURE__ */ t(
|
|
53
55
|
"input",
|
|
54
56
|
{
|
|
55
57
|
type: "text",
|
|
56
58
|
readOnly: !0,
|
|
57
|
-
value:
|
|
58
|
-
className:
|
|
59
|
-
|
|
59
|
+
value: I(),
|
|
60
|
+
className: r(
|
|
61
|
+
e.selectedOptions,
|
|
62
|
+
{ [e.selectOptionsDisabled]: b },
|
|
63
|
+
{ [e.selectionOptionMini]: k }
|
|
64
|
+
),
|
|
65
|
+
onClick: () => {
|
|
66
|
+
o || p && p(), i(!o);
|
|
67
|
+
}
|
|
60
68
|
}
|
|
61
69
|
),
|
|
62
70
|
/* @__PURE__ */ t(
|
|
63
|
-
|
|
71
|
+
O,
|
|
64
72
|
{
|
|
65
73
|
name: "twoArrows",
|
|
66
74
|
size: "24",
|
|
@@ -68,33 +76,36 @@ const c = B.bind(e), M = ({
|
|
|
68
76
|
}
|
|
69
77
|
)
|
|
70
78
|
] }),
|
|
71
|
-
o && l && /* @__PURE__ */
|
|
72
|
-
|
|
79
|
+
o && l && /* @__PURE__ */ s(
|
|
80
|
+
T,
|
|
73
81
|
{
|
|
74
82
|
isOpen: o,
|
|
75
83
|
emitIsOpen: i,
|
|
76
84
|
additionalClassModalBody: e.modalAddBody,
|
|
85
|
+
additionalClass: e.selectModal,
|
|
86
|
+
createPortalObj: { domNode: document.querySelector("body") },
|
|
87
|
+
isTransparentBack: !0,
|
|
77
88
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */ t(
|
|
89
|
+
/* @__PURE__ */ s("div", { className: e.mobileSortHeader, children: [
|
|
90
|
+
/* @__PURE__ */ t(z, { children: "Сортировка" }),
|
|
80
91
|
/* @__PURE__ */ t("div", { onClick: () => i(!1), children: /* @__PURE__ */ t(
|
|
81
|
-
|
|
92
|
+
O,
|
|
82
93
|
{
|
|
83
94
|
name: "close",
|
|
84
|
-
size: "
|
|
95
|
+
size: "20"
|
|
85
96
|
}
|
|
86
97
|
) })
|
|
87
98
|
] }),
|
|
88
|
-
/* @__PURE__ */ t("div", { className: e.mobileOptionList, children:
|
|
99
|
+
/* @__PURE__ */ t("div", { className: e.mobileOptionList, children: n?.map((a) => f(a)) })
|
|
89
100
|
]
|
|
90
101
|
}
|
|
91
102
|
),
|
|
92
|
-
o && !l && /* @__PURE__ */ t("div", { className: e.optionsList, children:
|
|
103
|
+
o && !l && /* @__PURE__ */ t("div", { className: r(e.optionsList, { [e.optionListOnTop]: d }), children: n?.map((a) => f(a)) })
|
|
93
104
|
]
|
|
94
105
|
}
|
|
95
106
|
);
|
|
96
107
|
};
|
|
97
|
-
|
|
108
|
+
A.displayName = "SortSelect";
|
|
98
109
|
export {
|
|
99
|
-
|
|
110
|
+
A as SortSelect
|
|
100
111
|
};
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
+
import { TOption } from '../../Select/ui/Select.types.ts';
|
|
1
2
|
export interface Option {
|
|
2
3
|
value: string | number;
|
|
3
4
|
label: string;
|
|
4
5
|
}
|
|
5
6
|
export interface SortSelectProps {
|
|
6
|
-
options
|
|
7
|
+
options?: Option[];
|
|
8
|
+
selectedOption: Option | null;
|
|
7
9
|
placeholder?: string;
|
|
8
10
|
error?: boolean;
|
|
9
11
|
disabled?: boolean;
|
|
10
|
-
onChange?: (event: Option) => void;
|
|
12
|
+
onChange?: (event: Option | null) => void;
|
|
11
13
|
onBlur?: (event: Option) => void;
|
|
12
14
|
additionalClass?: string;
|
|
15
|
+
mini?: boolean;
|
|
16
|
+
openOnTop?: boolean;
|
|
17
|
+
onOpenClick?: () => void;
|
|
18
|
+
onClickItem?: (option: TOption | TOption[]) => void;
|
|
19
|
+
onCLickSelect?: () => void;
|
|
13
20
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SummarySelect } from './ui/SummarySelect.tsx';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MultiSelectProps } from '../../Select/ui/Select.types';
|
|
2
|
+
interface ISummarySelectProps extends MultiSelectProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
isShowReset?: boolean;
|
|
5
|
+
isLast?: boolean;
|
|
6
|
+
isShowCategoryDelete?: boolean;
|
|
7
|
+
labelSize?: 'medium' | 'large';
|
|
8
|
+
clearPosition?: 'top' | 'bottom';
|
|
9
|
+
chipVariant?: 'default' | 'secondary';
|
|
10
|
+
chipAdditionalClass?: string;
|
|
11
|
+
summaryCategoryClass?: string;
|
|
12
|
+
selectBetweenSize?: 'small' | 'medium';
|
|
13
|
+
}
|
|
14
|
+
export declare const SummarySelect: React.FC<ISummarySelectProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { jsxs as r, jsx as t, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "../../../index-YnD2EP-S.js";
|
|
3
|
+
import { Select as x } from "../../Select/ui/Select.js";
|
|
4
|
+
import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
|
|
5
|
+
const A = "_root_99sc2_1", $ = "_nameWrapper_99sc2_8", j = "_size_large_99sc2_18", U = "_clearBtnWrapper_99sc2_25", F = "_clearBtn_99sc2_25", I = "_summaryList_99sc2_54", q = "_summaryOption_99sc2_66", E = "_summaryOptionSecondary_99sc2_88", G = "_categoryOption_99sc2_93", H = "_categoryOptionSecondary_99sc2_102", J = "_summaryCategory_99sc2_106", K = "_headerCategory_99sc2_116", M = "_categoryTitle_99sc2_122", Q = "_categoryTitleSecondary_99sc2_130", R = "_categoryOptions_99sc2_134", e = {
|
|
6
|
+
root: A,
|
|
7
|
+
nameWrapper: $,
|
|
8
|
+
size_large: j,
|
|
9
|
+
clearBtnWrapper: U,
|
|
10
|
+
clearBtn: F,
|
|
11
|
+
"clearBtn-size_medium": "_clearBtn-size_medium_99sc2_40",
|
|
12
|
+
summaryList: I,
|
|
13
|
+
"summaryList-size_small": "_summaryList-size_small_99sc2_59",
|
|
14
|
+
"summaryList-size_medium": "_summaryList-size_medium_99sc2_62",
|
|
15
|
+
summaryOption: q,
|
|
16
|
+
summaryOptionSecondary: E,
|
|
17
|
+
categoryOption: G,
|
|
18
|
+
categoryOptionSecondary: H,
|
|
19
|
+
summaryCategory: J,
|
|
20
|
+
headerCategory: K,
|
|
21
|
+
categoryTitle: M,
|
|
22
|
+
categoryTitleSecondary: Q,
|
|
23
|
+
categoryOptions: R
|
|
24
|
+
}, D = ({
|
|
25
|
+
label: h = "",
|
|
26
|
+
isShowReset: y,
|
|
27
|
+
isShowCategoryDelete: v = !1,
|
|
28
|
+
labelSize: z = "medium",
|
|
29
|
+
isLoading: B = !1,
|
|
30
|
+
clearPosition: _ = "top",
|
|
31
|
+
chipVariant: m = "default",
|
|
32
|
+
chipAdditionalClass: O = "",
|
|
33
|
+
selectPaddingBottom: L,
|
|
34
|
+
selectBetweenSize: C = "small",
|
|
35
|
+
summaryCategoryClass: W = "",
|
|
36
|
+
...c
|
|
37
|
+
}) => {
|
|
38
|
+
const f = y && _ === "bottom", d = (a) => {
|
|
39
|
+
c.onChange && c.onChange(a);
|
|
40
|
+
}, S = (a) => {
|
|
41
|
+
a.filter((s) => s.value !== "selectAll").length === 0 ? d([]) : d(a);
|
|
42
|
+
}, N = (a) => {
|
|
43
|
+
const l = c.selectedValues?.filter((s) => s.value !== a) || [];
|
|
44
|
+
S(l);
|
|
45
|
+
}, u = () => {
|
|
46
|
+
d([]);
|
|
47
|
+
}, T = (a) => {
|
|
48
|
+
const l = c.selectedValues?.filter((s) => s.value !== a.value).filter(
|
|
49
|
+
(s) => !a.options.some((i) => i.value === s.value)
|
|
50
|
+
) ?? [];
|
|
51
|
+
S(l);
|
|
52
|
+
}, o = c.selectedValues?.filter((a) => a.value !== "selectAll"), k = o?.filter((a) => "options" in a);
|
|
53
|
+
return /* @__PURE__ */ r("div", { className: e.root, children: [
|
|
54
|
+
(y && _ === "top" || h) && /* @__PURE__ */ r("div", { className: n(e.nameWrapper, e[`size_${z}`]), children: [
|
|
55
|
+
/* @__PURE__ */ t("div", { children: h }),
|
|
56
|
+
y && _ === "top" && /* @__PURE__ */ t(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
className: e.clearBtn,
|
|
60
|
+
onClick: u,
|
|
61
|
+
children: "Очистить"
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ t(
|
|
66
|
+
x,
|
|
67
|
+
{
|
|
68
|
+
...c,
|
|
69
|
+
isLoading: B,
|
|
70
|
+
selectPaddingBottom: L,
|
|
71
|
+
onChange: d
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
!v && c.mode === "options" && o && o.length > 0 && /* @__PURE__ */ r("div", { className: n(e.summaryList, e[`summaryList-size_${C}`]), children: [
|
|
75
|
+
f && /* @__PURE__ */ t("div", { className: e.clearBtnWrapper, children: /* @__PURE__ */ t(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: e.clearBtn,
|
|
79
|
+
onClick: u,
|
|
80
|
+
children: "Очистить"
|
|
81
|
+
}
|
|
82
|
+
) }),
|
|
83
|
+
o.map((a) => /* @__PURE__ */ r(
|
|
84
|
+
"div",
|
|
85
|
+
{
|
|
86
|
+
onClick: () => N(a.value.toString()),
|
|
87
|
+
className: n(e.summaryOption, {
|
|
88
|
+
[e.summaryOptionSecondary]: m === "secondary"
|
|
89
|
+
}, O),
|
|
90
|
+
children: [
|
|
91
|
+
a.label,
|
|
92
|
+
/* @__PURE__ */ t(
|
|
93
|
+
p,
|
|
94
|
+
{
|
|
95
|
+
name: "close",
|
|
96
|
+
size: m === "secondary" ? "20" : "16"
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
a.value
|
|
102
|
+
))
|
|
103
|
+
] }),
|
|
104
|
+
!v && c.mode === "double" && /* @__PURE__ */ r(b, { children: [
|
|
105
|
+
f && o && o.length > 0 && /* @__PURE__ */ t(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: n(e.clearBtn, e[`clearBtn-size_${C}`]),
|
|
109
|
+
onClick: u,
|
|
110
|
+
children: "Очистить"
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
k?.map((a, l) => {
|
|
114
|
+
const s = a;
|
|
115
|
+
return /* @__PURE__ */ r(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
className: n(e.summaryCategory, W),
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ r("div", { className: e.headerCategory, children: [
|
|
121
|
+
/* @__PURE__ */ t("div", { className: n(e.categoryTitle, {
|
|
122
|
+
[e.categoryTitleSecondary]: m === "secondary"
|
|
123
|
+
}), children: s.label }),
|
|
124
|
+
/* @__PURE__ */ t(
|
|
125
|
+
"div",
|
|
126
|
+
{
|
|
127
|
+
onClick: () => T(a),
|
|
128
|
+
className: e.clearBtn,
|
|
129
|
+
children: /* @__PURE__ */ t(
|
|
130
|
+
p,
|
|
131
|
+
{
|
|
132
|
+
name: "close",
|
|
133
|
+
size: "16"
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
] }),
|
|
139
|
+
/* @__PURE__ */ t("div", { className: e.categoryOptions, children: s.options.filter((i) => o?.some((g) => i.value === g.value)).map((i, g) => /* @__PURE__ */ r(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
onClick: () => N(i.value.toString()),
|
|
143
|
+
className: n(
|
|
144
|
+
e.summaryOption,
|
|
145
|
+
e.categoryOption,
|
|
146
|
+
{ [e.categoryOptionSecondary]: m === "secondary" },
|
|
147
|
+
O
|
|
148
|
+
),
|
|
149
|
+
children: [
|
|
150
|
+
i.label,
|
|
151
|
+
/* @__PURE__ */ t(
|
|
152
|
+
p,
|
|
153
|
+
{
|
|
154
|
+
name: "close",
|
|
155
|
+
size: m === "secondary" ? "20" : "16"
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
g
|
|
161
|
+
)) })
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
l
|
|
165
|
+
);
|
|
166
|
+
})
|
|
167
|
+
] })
|
|
168
|
+
] });
|
|
169
|
+
};
|
|
170
|
+
export {
|
|
171
|
+
D as SummarySelect
|
|
172
|
+
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { ISwitcherProps } from './Switcher.types';
|
|
2
|
-
|
|
3
|
-
export declare const Switcher: ({ children, isActive, onClick }: ISwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Switcher: ({ children, isActive, onClick, isReverse, isBetween, dataTestId }: ISwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,35 +1,50 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
switcherWrapper:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
swiperInactive: j,
|
|
1
|
+
import { jsxs as o, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as _, useEffect as d } from "react";
|
|
3
|
+
import { c as v } from "../../../index-YnD2EP-S.js";
|
|
4
|
+
const h = "_switcherWrapper_1b1pd_29", b = "_switcherWrapperReverse_1b1pd_40", W = "_switcherWrapperBetween_1b1pd_44", l = "_swiper_1b1pd_48", m = "_swiperBackward_1b1pd_1", f = "_swiperActive_1b1pd_63", u = "_swiperForward_1b1pd_1", I = "_swiperInactive_1b1pd_68", P = "_swiperInitialize_1b1pd_73", B = "_swiperPoint_1b1pd_77", A = "_swiperPointActive_1b1pd_89", e = {
|
|
5
|
+
switcherWrapper: h,
|
|
6
|
+
switcherWrapperReverse: b,
|
|
7
|
+
switcherWrapperBetween: W,
|
|
8
|
+
swiper: l,
|
|
10
9
|
swiperBackward: m,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
swiperActive: f,
|
|
11
|
+
swiperForward: u,
|
|
12
|
+
swiperInactive: I,
|
|
13
|
+
swiperInitialize: P,
|
|
14
|
+
swiperPoint: B,
|
|
15
|
+
swiperPointActive: A
|
|
16
|
+
}, s = v.bind(e), F = ({ children: t, isActive: i, onClick: c, isReverse: w, isBetween: n, dataTestId: a }) => {
|
|
17
|
+
const r = _(!0);
|
|
18
|
+
return d(() => {
|
|
19
|
+
r.current && (r.current = !1);
|
|
20
|
+
}, []), /* @__PURE__ */ o(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
className: s(
|
|
24
|
+
e.switcherWrapper,
|
|
25
|
+
{ [e.switcherWrapperReverse]: w },
|
|
26
|
+
{ [e.switcherWrapperBetween]: n }
|
|
27
|
+
),
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ p(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: s(
|
|
33
|
+
e.swiper,
|
|
34
|
+
{ [e.swiperInitialize]: r.current },
|
|
35
|
+
{ [e.swiperActive]: i },
|
|
36
|
+
{ [e.swiperInactive]: !i && !r.current }
|
|
37
|
+
),
|
|
38
|
+
onClick: c,
|
|
39
|
+
"data-testid": a,
|
|
40
|
+
children: /* @__PURE__ */ p("div", { className: s(e.swiperPoint, { [e.swiperPointActive]: i }) })
|
|
41
|
+
}
|
|
26
42
|
),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
] });
|
|
43
|
+
t
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
32
47
|
};
|
|
33
48
|
export {
|
|
34
|
-
|
|
49
|
+
F as Switcher
|
|
35
50
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabSelect } from './ui/TabSelect';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type TBtn = {
|
|
2
|
+
isLong?: boolean;
|
|
3
|
+
additionalClassName?: string;
|
|
4
|
+
additionalLabelClass?: string;
|
|
5
|
+
withPadding?: boolean;
|
|
6
|
+
width?: string;
|
|
7
|
+
width_m?: string;
|
|
8
|
+
width_l?: string;
|
|
9
|
+
};
|
|
10
|
+
type BaseInputProps = React.JSX.IntrinsicElements['input'] & TBtn;
|
|
11
|
+
interface ITabSelect {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
variant?: SwitcherVariant;
|
|
14
|
+
classname?: string;
|
|
15
|
+
isRound?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const TAB_SELECT_VARIANTS: {
|
|
18
|
+
readonly whiteFill: "whiteFill";
|
|
19
|
+
readonly whiteStroke: "whiteStroke";
|
|
20
|
+
readonly grayDesign: "grayDesign";
|
|
21
|
+
readonly fullWhite: "fullWhite";
|
|
22
|
+
};
|
|
23
|
+
export type SwitcherVariant = keyof typeof TAB_SELECT_VARIANTS;
|
|
24
|
+
declare const TabSelectNamespace: (({ variant, classname, children }: ITabSelect) => import("react/jsx-runtime").JSX.Element) & {
|
|
25
|
+
Item: {
|
|
26
|
+
(props: BaseInputProps & {
|
|
27
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export { TabSelectNamespace as TabSelect };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as e, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { c as T } from "../../../index-YnD2EP-S.js";
|
|
3
|
+
import { useClientWidth as k } from "../../../shared/useClientWidth.js";
|
|
4
|
+
import { Text as y } from "../../Text/ui/Text.js";
|
|
5
|
+
const z = "_root_pbslz_1", W = "_whiteFill_pbslz_29", D = "_text_pbslz_34", F = "_fullWhite_pbslz_48", P = "_whiteStroke_pbslz_67", C = "_withPadding_pbslz_105", I = "_grayDesign_pbslz_109", t = {
|
|
6
|
+
root: z,
|
|
7
|
+
whiteFill: W,
|
|
8
|
+
text: D,
|
|
9
|
+
fullWhite: F,
|
|
10
|
+
whiteStroke: P,
|
|
11
|
+
withPadding: C,
|
|
12
|
+
grayDesign: I
|
|
13
|
+
}, i = T.bind(t), B = {
|
|
14
|
+
whiteFill: "whiteFill",
|
|
15
|
+
whiteStroke: "whiteStroke",
|
|
16
|
+
grayDesign: "grayDesign",
|
|
17
|
+
fullWhite: "fullWhite"
|
|
18
|
+
}, L = ({
|
|
19
|
+
variant: s = "whiteFill",
|
|
20
|
+
classname: l,
|
|
21
|
+
children: a
|
|
22
|
+
}) => /* @__PURE__ */ e("div", { className: i(t.root, t[`${s}`], l), children: a }), c = (s) => {
|
|
23
|
+
const { isTablet: l, isDesktop: a } = k(), {
|
|
24
|
+
children: r,
|
|
25
|
+
className: h,
|
|
26
|
+
additionalClassName: d,
|
|
27
|
+
additionalLabelClass: _,
|
|
28
|
+
isLong: m,
|
|
29
|
+
checked: w,
|
|
30
|
+
withPadding: g = !1,
|
|
31
|
+
width: b,
|
|
32
|
+
width_m: o,
|
|
33
|
+
width_l: n,
|
|
34
|
+
ref: p,
|
|
35
|
+
...f
|
|
36
|
+
} = s, u = (S, x) => S && o ? o : x && n ? n : b;
|
|
37
|
+
return /* @__PURE__ */ N("label", { className: i(t.item, _, { [t.withPadding]: g }), children: [
|
|
38
|
+
/* @__PURE__ */ e(
|
|
39
|
+
"input",
|
|
40
|
+
{
|
|
41
|
+
ref: p,
|
|
42
|
+
type: "checkbox",
|
|
43
|
+
checked: w,
|
|
44
|
+
...f
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
className: i(h, d, { [t.isLong]: m }),
|
|
51
|
+
style: { width: u(l, a) },
|
|
52
|
+
children: /* @__PURE__ */ e(y, { className: i(t.text), children: r })
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] });
|
|
56
|
+
};
|
|
57
|
+
c.displayName = "TabSelectItem";
|
|
58
|
+
const O = Object.assign(L, {
|
|
59
|
+
Item: c
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
B as TAB_SELECT_VARIANTS,
|
|
63
|
+
O as TabSelect
|
|
64
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { ITabSwitcherItem, TabSwitcherProps } from './TabSwitcher.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Item: import('react').ForwardRefExoticComponent<Omit<ITabSwitcherItem, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
3
|
+
declare const TabSwitcherNamespace: (({ children, variant, isApart, addClassName, col, }: TabSwitcherProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
4
|
+
Item: FC<ITabSwitcherItem>;
|
|
5
5
|
};
|
|
6
|
-
export {
|
|
6
|
+
export { TabSwitcherNamespace as TabSwitcher };
|