@sberbusiness/triplex-next 1.0.0 → 1.1.1
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/chunks/{AlertProcessSpoiler-JRcPtVtX.js → AlertProcessSpoiler-Caa0745n.js} +11 -11
- package/chunks/Card.module-BRANBAxP.js +17 -0
- package/chunks/{DropdownListItem-Be_BBAWh.js → DropdownListItem-DIIAnvmw.js} +17 -17
- package/chunks/DropdownMobile.module-BUeZuAYr.js +19 -0
- package/chunks/Footer.module-BFo05t5_.js +11 -0
- package/chunks/FormFieldInput-rV5ZVe9k.js +63 -0
- package/chunks/HeaderLayoutSidebar.module-CEqBuRNu.js +9 -0
- package/chunks/HeaderTabs.module-BEaVu2Hx.js +9 -0
- package/chunks/HeaderTitle.module-Db-1fcNm.js +9 -0
- package/chunks/{ListItemControlsButton-DWU_FtH8.js → ListItemControlsButton-Ch-5PQYH.js} +7 -7
- package/chunks/ListItemTail.module-C5-4SAqt.js +12 -0
- package/chunks/ListMasterFooter.module-Dph-_lLg.js +10 -0
- package/chunks/Overlay.module-D6LEz1jT.js +18 -0
- package/chunks/Page.module-Ct9ky9ko.js +16 -0
- package/chunks/TabsExtended.module-CmU9j8zG.js +13 -0
- package/chunks/{TabsExtendedUtils-BLpZL63j.js → TabsExtendedUtils-CkAvE1fA.js} +2 -2
- package/chunks/TooltipDesktop.module-KrPZMfQD.js +19 -0
- package/chunks/UploadZoneInput-CXjerIVV.js +33 -0
- package/chunks/{utils-Ck6y6vsC.js → utils-bbbspEnw.js} +7 -7
- package/chunks/{vendor-CF2m175I.js → vendor-D-uL_icH.js} +38 -34
- package/components/Alert/AlertContext/AlertContext.js +9 -9
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Body/Body.js +8 -8
- package/components/Button/Button.js +95 -10
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +184 -23
- package/components/Button/ButtonDropdownExtended.js +50 -6
- package/components/Button/ButtonIcon.js +5 -5
- package/components/Button/enums.js +5 -4
- package/components/Button/index.js +14 -12
- package/components/Card/CardAction.js +20 -20
- package/components/Card/CardStatic.js +3 -3
- package/components/Card/components/CardContent/CardContent.js +2 -2
- package/components/Card/components/CardContent/components/CardContentBody.js +2 -2
- package/components/Card/components/CardContent/components/CardContentFooter.js +2 -2
- package/components/Card/components/CardContent/components/CardContentHeader.js +2 -2
- package/components/Card/components/CardMedia.js +2 -2
- package/components/Card/utils.js +1 -1
- package/components/Checkbox/Checkbox.js +9 -9
- package/components/Checkbox/CheckboxXGroup.js +13 -13
- package/components/Checkbox/CheckboxYGroup.js +2 -2
- package/components/Col/Col.js +143 -143
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +9 -7
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +15 -13
- package/components/DesignTokens/components/Button.js +27 -0
- package/components/DesignTokens/components/FormField.js +22 -4
- package/components/DesignTokens/components/Island.js +26 -0
- package/components/DesignTokens/components/index.js +17 -14
- package/components/Dropdown/Dropdown.js +22 -7
- package/components/Dropdown/desktop/DropdownDesktop.js +94 -18
- package/components/Dropdown/desktop/DropdownList.js +65 -94
- package/components/Dropdown/desktop/DropdownListItem.js +2 -2
- package/components/Dropdown/index.js +27 -25
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileClose.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileFooter.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileHeader.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInner.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileInput.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileList.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Footer/Footer.js +3 -3
- package/components/Footer/components/FooterDescription.js +2 -2
- package/components/Footer/components/FooterDescriptionContent.js +2 -2
- package/components/Footer/components/FooterDescriptionControls.js +2 -2
- package/components/FormField/FormField.js +52 -51
- package/components/FormField/FormFieldContext.js +8 -8
- package/components/FormField/components/FormFieldClear.js +16 -15
- package/components/FormField/components/FormFieldCounter.js +4 -4
- package/components/FormField/components/FormFieldDescription.js +9 -9
- package/components/FormField/components/FormFieldInput.js +4 -3
- package/components/FormField/components/FormFieldLabel.js +32 -31
- package/components/FormField/components/FormFieldMaskedInput.js +102 -92
- package/components/FormField/components/FormFieldPostfix.js +6 -6
- package/components/FormField/components/FormFieldPrefix.js +8 -8
- package/components/FormField/components/FormFieldTarget.js +49 -0
- package/components/FormField/components/FormFieldTextarea.js +25 -24
- package/components/FormField/enums.js +3 -2
- package/components/FormField/index.js +19 -16
- package/components/FormField/types.js +2 -0
- package/components/Header/Header.js +10 -10
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +2 -2
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +2 -2
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +6 -6
- package/components/Header/components/HeaderTabs/HeaderTabs.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +2 -2
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitle.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +2 -2
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +2 -2
- package/components/Island/Island.js +78 -0
- package/components/Island/components/IslandBody.js +10 -0
- package/components/Island/components/IslandFooter.js +10 -0
- package/components/Island/components/IslandHeader.js +10 -0
- package/components/Island/enums.js +7 -0
- package/components/Island/index.js +9 -0
- package/components/KeyDownListener/ComposedKeyDownListener.js +13 -0
- package/components/KeyDownListener/KeyDownListener.js +27 -0
- package/components/KeyDownListener/index.js +7 -0
- package/components/Link/Link.js +17 -17
- package/components/List/List.js +9 -9
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +2 -2
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +7 -7
- package/components/List/components/ListItemControls.js +8 -8
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +98 -15
- package/components/List/components/ListItemLoading.js +5 -5
- package/components/List/components/ListItemSelectable.js +6 -6
- package/components/List/components/ListItemTable.js +29 -19
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +37 -18
- package/components/List/components/ListSortableItemControls.js +2 -2
- package/components/List/components/ListSortableItemTarget.js +9 -9
- package/components/List/index.js +22 -20
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +6 -6
- package/components/ListMaster/components/ListMasterFooter.js +2 -2
- package/components/ListMaster/components/ListMasterFooterControls.js +2 -2
- package/components/ListMaster/components/ListMasterFooterDescription.js +2 -2
- package/components/ListMaster/components/ListMasterHeader.js +11 -11
- package/components/ListMaster/components/SelectionControls.js +3 -3
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +2 -2
- package/components/Loader/LoaderSmall/LoaderSmall.js +10 -10
- package/components/LoaderWidget/LoaderWidget.js +5 -5
- package/components/Overlay/Overlay.js +2 -2
- package/components/Overlay/OverlayMask.js +2 -2
- package/components/Overlay/OverlayPanel.js +2 -2
- package/components/Page/Page.js +2 -2
- package/components/Page/components/BodyPage.js +2 -2
- package/components/Page/components/FooterPage.js +2 -2
- package/components/Page/components/HeaderPage.js +2 -2
- package/components/Pagination/components/PaginationExtended.js +3 -3
- package/components/Pagination/components/PaginationNavigationButton.js +5 -5
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +2 -2
- package/components/Pagination/components/PaginationPageEllipsis.js +2 -2
- package/components/Pagination/components/PaginationSelect.js +17 -17
- package/components/Pagination/utils/paginationUtils.js +10 -10
- package/components/Radio/Radio.js +3 -3
- package/components/Radio/RadioXGroup.js +12 -12
- package/components/Radio/RadioYGroup.js +7 -7
- package/components/Row/Row.js +6 -6
- package/components/SegmentedControl/SegmentedControl.js +64 -7
- package/components/SegmentedControl/SegmentedControlContext.js +13 -0
- package/components/SegmentedControl/SegmentedControlSegment.js +68 -8
- package/components/SegmentedControl/index.js +6 -6
- package/components/SelectExtendedField/SelectExtendedField.js +57 -0
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +25 -0
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +86 -0
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +101 -0
- package/components/SelectExtendedField/index.js +9 -0
- package/components/Skeleton/Skeleton.js +8 -8
- package/components/SwipeableArea/SwipeableArea.js +19 -19
- package/components/TabsExtended/TabsExtended.js +7 -7
- package/components/TabsExtended/TabsExtendedUtils.js +1 -1
- package/components/TabsExtended/components/TabsExtendedContent.js +11 -11
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabButton.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +7 -7
- package/components/TabsExtended/types.js +2 -0
- package/components/TextField/MaskedField.js +6 -89
- package/components/TextField/TextField.js +6 -89
- package/components/TextField/TextFieldBase.js +30 -89
- package/components/TextField/index.js +4 -3
- package/components/ThemeProvider/ThemeProvider.js +8 -8
- package/components/ThemeProvider/components/ThemeProviderView.js +8 -8
- package/components/Tooltip/components/common/TooltipBody.js +7 -7
- package/components/Tooltip/components/common/TooltipLink.js +14 -14
- package/components/Tooltip/components/common/TooltipXButton.js +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopBase.js +2 -2
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +2 -2
- package/components/Tooltip/components/mobile/TooltipMobile.js +9 -9
- package/components/Typography/Caption.js +12 -12
- package/components/Typography/Text.js +22 -22
- package/components/Typography/Title.js +18 -18
- package/components/Typography/utils.js +1 -1
- package/components/UploadZone/UploadZone.js +109 -7
- package/components/UploadZone/UploadZoneContext.js +11 -0
- package/components/UploadZone/components/UploadZoneInput.js +5 -140
- package/components/UploadZone/index.js +2 -3
- package/components/UploadZone/types.js +2 -0
- package/components/index.js +279 -248
- package/index.d.ts +212 -27
- package/index.js +277 -246
- package/package.json +13 -1
- package/styles/triplex-next.css +354 -333
- package/chunks/Card.module-Cr47sRot.js +0 -17
- package/chunks/DropdownMobile.module-PWShExJh.js +0 -19
- package/chunks/Footer.module-Gh9uBYjc.js +0 -11
- package/chunks/FormFieldInput-H-fZrt84.js +0 -62
- package/chunks/HeaderLayoutSidebar.module-MHb8aSSn.js +0 -9
- package/chunks/HeaderTabs.module-Bfiwon3k.js +0 -9
- package/chunks/HeaderTitle.module-xLu0Kmjc.js +0 -9
- package/chunks/ListItemTail.module-DZnDKE1u.js +0 -12
- package/chunks/ListMasterFooter.module-DVmdCqc9.js +0 -10
- package/chunks/Overlay.module-C1GsZR5Z.js +0 -18
- package/chunks/Page.module-kOw5fybr.js +0 -16
- package/chunks/TabsExtended.module-lHzNgwBX.js +0 -13
- package/chunks/TooltipDesktop.module-HNPcWO41.js +0 -19
- package/chunks/index-CgNJLkzr.js +0 -931
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
|
-
import { c as i } from "../../../../chunks/vendor-
|
|
3
|
+
import { c as i } from "../../../../chunks/vendor-D-uL_icH.js";
|
|
4
4
|
import { HeaderLayoutSidebarContent as m } from "./HeaderLayoutSidebarContent.js";
|
|
5
5
|
import { HeaderLayoutSidebarSidebar as s } from "./HeaderLayoutSidebarSidebar.js";
|
|
6
|
-
import { s as f } from "../../../../chunks/HeaderLayoutSidebar.module-
|
|
6
|
+
import { s as f } from "../../../../chunks/HeaderLayoutSidebar.module-CEqBuRNu.js";
|
|
7
7
|
const b = Object.assign(
|
|
8
8
|
d.forwardRef(function({ children: e, className: r, ...a }, o) {
|
|
9
9
|
return /* @__PURE__ */ t("div", { className: i(f.headerLayoutSidebar, r), ...a, ref: o, children: e });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
|
-
import { c as d } from "../../../../chunks/vendor-
|
|
4
|
-
import { s as m } from "../../../../chunks/HeaderLayoutSidebar.module-
|
|
3
|
+
import { c as d } from "../../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
import { s as m } from "../../../../chunks/HeaderLayoutSidebar.module-CEqBuRNu.js";
|
|
5
5
|
const i = s.forwardRef(
|
|
6
6
|
({ children: e, className: a, ...t }, o) => /* @__PURE__ */ r("div", { className: d(m.headerLayoutSidebarContent, a), ...t, ref: o, children: e })
|
|
7
7
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { c as t } from "../../../../chunks/vendor-
|
|
4
|
-
import { s } from "../../../../chunks/HeaderLayoutSidebar.module-
|
|
3
|
+
import { c as t } from "../../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
import { s } from "../../../../chunks/HeaderLayoutSidebar.module-CEqBuRNu.js";
|
|
5
5
|
const m = i.forwardRef(
|
|
6
6
|
({ children: a, className: r, ...e }, o) => /* @__PURE__ */ d("div", { className: t(s.headerLayoutSidebarSidebar, r), ...e, ref: o, children: a })
|
|
7
7
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import h from "react";
|
|
3
|
-
import { c as i } from "../../../../chunks/vendor-
|
|
4
|
-
const u = "
|
|
3
|
+
import { c as i } from "../../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
const u = "headerSubheader__a90e6eb1", n = "withoutPaddings__7140d3b9", e = {
|
|
5
5
|
headerSubheader: u,
|
|
6
|
-
withoutPaddings:
|
|
7
|
-
},
|
|
6
|
+
withoutPaddings: n
|
|
7
|
+
}, b = h.forwardRef(
|
|
8
8
|
({ children: a, className: d, withoutPaddings: r, ...t }, o) => /* @__PURE__ */ s(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
@@ -15,8 +15,8 @@ const u = "headerSubheader__fcd84f69", c = "withoutPaddings__9ba85f37", e = {
|
|
|
15
15
|
}
|
|
16
16
|
)
|
|
17
17
|
);
|
|
18
|
-
|
|
18
|
+
b.displayName = "HeaderSubheader";
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
b as HeaderSubheader
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=HeaderSubheader.js.map
|
|
@@ -2,8 +2,8 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import t from "react";
|
|
3
3
|
import { HeaderTabsContent as m } from "./HeaderTabsContent.js";
|
|
4
4
|
import { HeaderTabsControls as n } from "./HeaderTabsControls.js";
|
|
5
|
-
import { c as d } from "../../../../chunks/vendor-
|
|
6
|
-
import { s as f } from "../../../../chunks/HeaderTabs.module-
|
|
5
|
+
import { c as d } from "../../../../chunks/vendor-D-uL_icH.js";
|
|
6
|
+
import { s as f } from "../../../../chunks/HeaderTabs.module-BEaVu2Hx.js";
|
|
7
7
|
const i = Object.assign(
|
|
8
8
|
t.forwardRef(function({ children: r, className: e, ...a }, o) {
|
|
9
9
|
return /* @__PURE__ */ s("div", { className: d(f.headerTabs, e), ...a, ref: o, children: r });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
|
-
import { c as m } from "../../../../chunks/vendor-
|
|
4
|
-
import { s as n } from "../../../../chunks/HeaderTabs.module-
|
|
3
|
+
import { c as m } from "../../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
import { s as n } from "../../../../chunks/HeaderTabs.module-BEaVu2Hx.js";
|
|
5
5
|
const d = s.forwardRef(
|
|
6
6
|
({ children: e, className: r, ...t }, a) => /* @__PURE__ */ o("div", { className: m(n.headerTabsContent, r), ...t, ref: a, children: e })
|
|
7
7
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import t from "react";
|
|
3
|
-
import { c as m } from "../../../../chunks/vendor-
|
|
4
|
-
import { s as l } from "../../../../chunks/HeaderTabs.module-
|
|
3
|
+
import { c as m } from "../../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
import { s as l } from "../../../../chunks/HeaderTabs.module-BEaVu2Hx.js";
|
|
5
5
|
const d = t.forwardRef(
|
|
6
6
|
({ children: o, className: r, ...s }, a) => /* @__PURE__ */ e("div", { className: m(l.headerTabsControls, r), ...s, ref: a, children: o })
|
|
7
7
|
);
|
|
@@ -2,8 +2,8 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import i from "react";
|
|
3
3
|
import { HeaderTitleContent as s } from "./HeaderTitleContent.js";
|
|
4
4
|
import { HeaderTitleControls as m } from "./HeaderTitleControls.js";
|
|
5
|
-
import { c as l } from "../../../../chunks/vendor-
|
|
6
|
-
import { s as n } from "../../../../chunks/HeaderTitle.module-
|
|
5
|
+
import { c as l } from "../../../../chunks/vendor-D-uL_icH.js";
|
|
6
|
+
import { s as n } from "../../../../chunks/HeaderTitle.module-Db-1fcNm.js";
|
|
7
7
|
const d = Object.assign(
|
|
8
8
|
i.forwardRef(function({ children: e, className: t, ...r }, o) {
|
|
9
9
|
return /* @__PURE__ */ a("div", { className: l(n.headerTitle, t), ...r, ref: o, children: e });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
|
-
import { c as m } from "../../../../chunks/vendor-
|
|
4
|
-
import { s as i } from "../../../../chunks/HeaderTitle.module-
|
|
3
|
+
import { c as m } from "../../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
import { s as i } from "../../../../chunks/HeaderTitle.module-Db-1fcNm.js";
|
|
5
5
|
const l = s.forwardRef(
|
|
6
6
|
({ children: e, className: t, ...r }, o) => /* @__PURE__ */ a("div", { className: m(t, i.headerTitleContent), ...r, ref: o, children: e })
|
|
7
7
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import a from "react";
|
|
3
|
-
import { c as l } from "../../../../chunks/vendor-
|
|
4
|
-
import { s as m } from "../../../../chunks/HeaderTitle.module-
|
|
3
|
+
import { c as l } from "../../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
import { s as m } from "../../../../chunks/HeaderTitle.module-Db-1fcNm.js";
|
|
5
5
|
const i = a.forwardRef(
|
|
6
6
|
({ children: o, className: r, ...e }, t) => /* @__PURE__ */ s("div", { className: l(m.headerTitleControls, r), ...e, ref: t, children: o })
|
|
7
7
|
);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import m from "react";
|
|
3
|
+
import { c as M } from "../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
import { EIslandType as e, EIslandBorderRadius as r, EIslandPaddingSize as s } from "./enums.js";
|
|
5
|
+
import { IslandBody as l } from "./components/IslandBody.js";
|
|
6
|
+
import { IslandHeader as u } from "./components/IslandHeader.js";
|
|
7
|
+
import { IslandFooter as y } from "./components/IslandFooter.js";
|
|
8
|
+
const g = "island__025957ca", f = "type1__a4c4b464", b = "type2__3c080eef", D = "type3__14db6b2e", R = "borderRadiusMD__c7556d55", S = "borderRadiusSM__d0f1ec29", T = "paddingLG__283f66d4", I = "paddingMD__32b33386", E = "paddingSM__f72671e2", d = {
|
|
9
|
+
island: g,
|
|
10
|
+
type1: f,
|
|
11
|
+
type2: b,
|
|
12
|
+
type3: D,
|
|
13
|
+
borderRadiusMD: R,
|
|
14
|
+
borderRadiusSM: S,
|
|
15
|
+
paddingLG: T,
|
|
16
|
+
paddingMD: I,
|
|
17
|
+
paddingSM: E
|
|
18
|
+
}, P = (a) => {
|
|
19
|
+
switch (a) {
|
|
20
|
+
case r.MD:
|
|
21
|
+
return d.borderRadiusMD;
|
|
22
|
+
case r.SM:
|
|
23
|
+
return d.borderRadiusSM;
|
|
24
|
+
}
|
|
25
|
+
}, G = (a) => {
|
|
26
|
+
switch (a) {
|
|
27
|
+
case s.MD:
|
|
28
|
+
return d.paddingMD;
|
|
29
|
+
case s.SM:
|
|
30
|
+
return d.paddingSM;
|
|
31
|
+
case s.LG:
|
|
32
|
+
return d.paddingLG;
|
|
33
|
+
}
|
|
34
|
+
}, L = (a) => {
|
|
35
|
+
switch (a) {
|
|
36
|
+
case e.TYPE_1:
|
|
37
|
+
return d.type1;
|
|
38
|
+
case e.TYPE_2:
|
|
39
|
+
return d.type2;
|
|
40
|
+
case e.TYPE_3:
|
|
41
|
+
return d.type3;
|
|
42
|
+
}
|
|
43
|
+
}, N = Object.assign(
|
|
44
|
+
m.forwardRef(
|
|
45
|
+
({
|
|
46
|
+
type: a = e.TYPE_1,
|
|
47
|
+
borderRadius: t = r.MD,
|
|
48
|
+
paddingSize: n = s.MD,
|
|
49
|
+
className: o,
|
|
50
|
+
children: i,
|
|
51
|
+
...p
|
|
52
|
+
}, c) => /* @__PURE__ */ _(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
className: M(
|
|
56
|
+
d.island,
|
|
57
|
+
L(a),
|
|
58
|
+
P(t),
|
|
59
|
+
G(n),
|
|
60
|
+
o
|
|
61
|
+
),
|
|
62
|
+
ref: c,
|
|
63
|
+
...p,
|
|
64
|
+
children: i
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
),
|
|
68
|
+
{
|
|
69
|
+
Body: l,
|
|
70
|
+
Header: u,
|
|
71
|
+
Footer: y
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
N.displayName = "Island";
|
|
75
|
+
export {
|
|
76
|
+
N as Island
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=Island.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { c as t } from "../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
const l = "islandBody__3d25ea83", n = {
|
|
5
|
+
islandBody: l
|
|
6
|
+
}, m = r.forwardRef(({ children: o, ...s }, d) => /* @__PURE__ */ a("div", { className: t(n.islandBody), ref: d, ...s, children: o }));
|
|
7
|
+
export {
|
|
8
|
+
m as IslandBody
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=IslandBody.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { c as a } from "../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
const d = "islandFooter__4bd1bb46", l = {
|
|
5
|
+
islandFooter: d
|
|
6
|
+
}, m = e.forwardRef(({ children: o, ...r }, t) => /* @__PURE__ */ s("div", { className: a(l.islandFooter), ref: t, ...r, children: o }));
|
|
7
|
+
export {
|
|
8
|
+
m as IslandFooter
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=IslandFooter.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import d from "react";
|
|
3
|
+
import { c as o } from "../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
const t = "islandHeader__0d3b9afa", l = {
|
|
5
|
+
islandHeader: t
|
|
6
|
+
}, f = d.forwardRef(({ children: a, ...e }, r) => /* @__PURE__ */ s("div", { className: o(l.islandHeader), ref: r, ...e, children: a }));
|
|
7
|
+
export {
|
|
8
|
+
f as IslandHeader
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=IslandHeader.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var t = /* @__PURE__ */ ((r) => (r.TYPE_1 = "type_1", r.TYPE_2 = "type_2", r.TYPE_3 = "type_3", r))(t || {}), _ = /* @__PURE__ */ ((r) => (r.MD = "md", r.SM = "sm", r))(_ || {}), m = /* @__PURE__ */ ((r) => (r.LG = "lg", r.MD = "md", r.SM = "sm", r))(m || {});
|
|
2
|
+
export {
|
|
3
|
+
_ as EIslandBorderRadius,
|
|
4
|
+
m as EIslandPaddingSize,
|
|
5
|
+
t as EIslandType
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Island as r } from "./Island.js";
|
|
2
|
+
import { EIslandBorderRadius as n, EIslandPaddingSize as o, EIslandType as s } from "./enums.js";
|
|
3
|
+
export {
|
|
4
|
+
n as EIslandBorderRadius,
|
|
5
|
+
o as EIslandPaddingSize,
|
|
6
|
+
s as EIslandType,
|
|
7
|
+
r as Island
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { KeyDownListener as r } from "./KeyDownListener.js";
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
const d = ({ keyDownListeners: e, children: n }) => {
|
|
4
|
+
let o = n;
|
|
5
|
+
if (e.length)
|
|
6
|
+
for (let t = 0; t < e.length; t++)
|
|
7
|
+
o = /* @__PURE__ */ l(r, { onMatch: e[t].onMatch, eventKeyCode: e[t].eventKeyCode, children: o });
|
|
8
|
+
return o;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
d as ComposedKeyDownListener
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=ComposedKeyDownListener.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var s = (o, n, e) => n in o ? r(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
|
|
3
|
+
var i = (o, n, e) => s(o, typeof n != "symbol" ? n + "" : n, e);
|
|
4
|
+
import l from "react";
|
|
5
|
+
class y extends l.Component {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
/** Обработчик для нажатия клавиш. */
|
|
9
|
+
i(this, "handleKeyDown", (e) => {
|
|
10
|
+
const { eventKeyCode: t, onMatch: d } = this.props;
|
|
11
|
+
typeof t == "number" ? t === e.keyCode && d(e) : t.includes(e.keyCode) && d(e);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
componentDidMount() {
|
|
15
|
+
window.addEventListener("keydown", this.handleKeyDown);
|
|
16
|
+
}
|
|
17
|
+
componentWillUnmount() {
|
|
18
|
+
window.removeEventListener("keydown", this.handleKeyDown);
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return this.props.children || null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
y as KeyDownListener
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=KeyDownListener.js.map
|
package/components/Link/Link.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as R, jsxs as t, Fragment as
|
|
1
|
+
import { jsx as R, jsxs as t, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import L from "react";
|
|
3
|
-
import { c as a } from "../../chunks/vendor-
|
|
4
|
-
const v = "
|
|
3
|
+
import { c as a } from "../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
const v = "link__c8803354", F = "wordWithContent__89d8855c", S = "before__9da7c18b", T = "after__34db8420", e = {
|
|
5
5
|
link: v,
|
|
6
6
|
wordWithContent: F,
|
|
7
7
|
before: S,
|
|
8
8
|
after: T
|
|
9
9
|
}, q = L.forwardRef(
|
|
10
|
-
({ children:
|
|
11
|
-
const c = () => o ? /* @__PURE__ */ t(
|
|
10
|
+
({ children: i, className: N, onBlur: p, onMouseDown: C, contentAfter: s, contentBefore: o, ..._ }, f) => {
|
|
11
|
+
const c = () => o ? /* @__PURE__ */ t(d, { children: [
|
|
12
12
|
"",
|
|
13
13
|
o()
|
|
14
|
-
] }) : null, m = () => s ? s() : null,
|
|
14
|
+
] }) : null, m = () => s ? s() : null, u = (n) => {
|
|
15
15
|
const r = n.split(" ");
|
|
16
16
|
if (r.length < 2 || r.length < 3 && o && s) {
|
|
17
17
|
const y = a(e.wordWithContent, {
|
|
@@ -35,32 +35,32 @@ const v = "link__b0b95b56", F = "wordWithContent__440efff8", S = "before__21f343
|
|
|
35
35
|
h,
|
|
36
36
|
m()
|
|
37
37
|
] }) : h;
|
|
38
|
-
return /* @__PURE__ */ t(
|
|
38
|
+
return /* @__PURE__ */ t(d, { children: [
|
|
39
39
|
g,
|
|
40
40
|
" ",
|
|
41
41
|
w,
|
|
42
42
|
" ",
|
|
43
43
|
j
|
|
44
44
|
] });
|
|
45
|
-
},
|
|
45
|
+
}, W = (n) => {
|
|
46
46
|
const r = o ? o() : null, l = s ? s() : null;
|
|
47
|
-
return /* @__PURE__ */ t(
|
|
47
|
+
return /* @__PURE__ */ t(d, { children: [
|
|
48
48
|
r,
|
|
49
49
|
n,
|
|
50
50
|
l
|
|
51
51
|
] });
|
|
52
|
-
},
|
|
52
|
+
}, b = o || s ? ((n) => typeof n == "string" ? u(n) : W(n))(i) : i;
|
|
53
53
|
return /* @__PURE__ */ R(
|
|
54
54
|
"a",
|
|
55
55
|
{
|
|
56
56
|
role: "link",
|
|
57
|
-
...
|
|
58
|
-
className: a(
|
|
59
|
-
onBlur:
|
|
60
|
-
onMouseDown:
|
|
61
|
-
"data-tx": "1.
|
|
62
|
-
ref:
|
|
63
|
-
children:
|
|
57
|
+
..._,
|
|
58
|
+
className: a(N, e.link, "hoverable"),
|
|
59
|
+
onBlur: p,
|
|
60
|
+
onMouseDown: C,
|
|
61
|
+
"data-tx": "1.1.1",
|
|
62
|
+
ref: f,
|
|
63
|
+
children: b
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
66
|
}
|
package/components/List/List.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import { c } from "../../chunks/vendor-
|
|
4
|
-
const e = "
|
|
3
|
+
import { c } from "../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
const e = "list__b2ddb4a3", m = {
|
|
5
5
|
list: e
|
|
6
|
-
},
|
|
6
|
+
}, d = r.forwardRef(({ children: s, className: t, loading: l, ...a }, i) => /* @__PURE__ */ o(
|
|
7
7
|
"ul",
|
|
8
8
|
{
|
|
9
9
|
className: c(m.list, t),
|
|
10
|
-
...
|
|
11
|
-
"data-tx": "1.
|
|
12
|
-
ref:
|
|
10
|
+
...a,
|
|
11
|
+
"data-tx": "1.1.1",
|
|
12
|
+
ref: i,
|
|
13
13
|
children: [
|
|
14
14
|
s,
|
|
15
15
|
l ? "Загрузка..." : null
|
|
16
16
|
]
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
|
-
|
|
19
|
+
d.displayName = "List";
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
d as List
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=List.js.map
|
|
@@ -3,7 +3,7 @@ var p = (t, e, r) => e in t ? x(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var o = (t, e, r) => p(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import { jsx as d } from "react/jsx-runtime";
|
|
5
5
|
import E from "react";
|
|
6
|
-
import { u as b, a as f, D as M, M as T, r as D, b as L, S as w, v as y, d as I, T as C, e as H } from "../../chunks/vendor-
|
|
6
|
+
import { u as b, a as f, D as M, M as T, r as D, b as L, S as w, v as y, d as I, T as C, e as H } from "../../chunks/vendor-D-uL_icH.js";
|
|
7
7
|
import { List as N } from "./List.js";
|
|
8
8
|
class u extends H {
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { c as o } from "../../../chunks/vendor-
|
|
4
|
-
const p = "
|
|
3
|
+
import { c as o } from "../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
const p = "listEmptyState__f7a08906", l = {
|
|
5
5
|
listEmptyState: p
|
|
6
6
|
}, r = i.forwardRef(
|
|
7
7
|
({ children: t, className: s, ...m }, a) => /* @__PURE__ */ e("div", { className: o(l.listEmptyState, s), ...m, ref: a, children: t })
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import l, { useContext as i } from "react";
|
|
3
|
-
import { c as r } from "../../../chunks/vendor-
|
|
3
|
+
import { c as r } from "../../../chunks/vendor-D-uL_icH.js";
|
|
4
4
|
import { ListItemContext as a } from "./ListItemContext.js";
|
|
5
|
-
const d = "
|
|
5
|
+
const d = "listItemContent__bc6a5e15", C = "selected__a7373903", t = {
|
|
6
6
|
listItemContent: d,
|
|
7
|
-
selected:
|
|
8
|
-
},
|
|
7
|
+
selected: C
|
|
8
|
+
}, f = l.forwardRef(
|
|
9
9
|
({ children: e, className: s, ...o }, n) => {
|
|
10
10
|
const { selected: m } = i(a);
|
|
11
11
|
return /* @__PURE__ */ c(
|
|
@@ -13,15 +13,15 @@ const d = "listItemContent__22fdaf28", f = "selected__a6850de1", t = {
|
|
|
13
13
|
{
|
|
14
14
|
className: r(t.listItemContent, { [t.selected]: m }, s),
|
|
15
15
|
...o,
|
|
16
|
-
"data-tx": "1.
|
|
16
|
+
"data-tx": "1.1.1",
|
|
17
17
|
ref: n,
|
|
18
18
|
children: e
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
f.displayName = "ListItemContent";
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
f as ListItemContent
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=ListItemContent.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { c as m } from "../../../chunks/vendor-
|
|
4
|
-
const i = "
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { c as m } from "../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
const i = "listItemControls__5d2aeea4", a = {
|
|
5
5
|
listItemControls: i
|
|
6
|
-
},
|
|
7
|
-
({ children: t, className: o, ...s },
|
|
6
|
+
}, n = r.forwardRef(
|
|
7
|
+
({ children: t, className: o, ...s }, e) => /* @__PURE__ */ l("div", { className: m(a.listItemControls, o), ...s, ref: e, children: t })
|
|
8
8
|
);
|
|
9
|
-
|
|
9
|
+
n.displayName = "ListItemControls";
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
n as ListItemControls
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=ListItemControls.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../../chunks/vendor-
|
|
4
|
-
import { L as e } from "../../../chunks/ListItemControlsButton-
|
|
3
|
+
import "../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
import { L as e } from "../../../chunks/ListItemControlsButton-Ch-5PQYH.js";
|
|
5
5
|
import "../../Typography/enums.js";
|
|
6
6
|
import "../../Typography/Text.js";
|
|
7
7
|
export {
|
|
@@ -1,22 +1,105 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../../chunks/vendor-
|
|
4
|
-
import "../../Typography/enums.js";
|
|
5
|
-
import "../../Typography/Text.js";
|
|
6
|
-
import {
|
|
7
|
-
import "../../../utils/keyboard.js";
|
|
8
|
-
import "../../Dropdown/DropdownListContext.js";
|
|
1
|
+
import { jsx as o, jsxs as w, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
+
import P, { useRef as m, useState as E, createElement as b } from "react";
|
|
3
|
+
import { f as O, c as g } from "../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
import { ETextSize as K } from "../../Typography/enums.js";
|
|
5
|
+
import { Text as T } from "../../Typography/Text.js";
|
|
6
|
+
import { ButtonDropdownExtended as R } from "../../Button/ButtonDropdownExtended.js";
|
|
7
|
+
import { isKey as i } from "../../../utils/keyboard.js";
|
|
8
|
+
import { DropdownListContext as j } from "../../Dropdown/DropdownListContext.js";
|
|
9
9
|
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
10
|
-
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
11
|
-
import "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
10
|
+
import { DropdownMobileBody as z } from "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
11
|
+
import { DropdownMobileClose as U } from "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
12
12
|
import "../../Dropdown/mobile/DropdownMobileFooter.js";
|
|
13
|
-
import "../../Dropdown/mobile/DropdownMobileHeader.js";
|
|
13
|
+
import { DropdownMobileHeader as q } from "../../Dropdown/mobile/DropdownMobileHeader.js";
|
|
14
14
|
import "../../Dropdown/mobile/DropdownMobileInner.js";
|
|
15
15
|
import "../../Dropdown/mobile/DropdownMobileInput.js";
|
|
16
|
-
import "../../Dropdown/mobile/DropdownMobileList.js";
|
|
17
|
-
import "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
18
|
-
import "
|
|
16
|
+
import { DropdownMobileList as F } from "../../Dropdown/mobile/DropdownMobileList.js";
|
|
17
|
+
import { DropdownMobileListItem as H } from "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
18
|
+
import { DropdownList as h } from "../../Dropdown/desktop/DropdownList.js";
|
|
19
|
+
import { s as y, L as V } from "../../../chunks/ListItemControlsButton-Ch-5PQYH.js";
|
|
20
|
+
const G = P.forwardRef(
|
|
21
|
+
(C, l) => {
|
|
22
|
+
const { buttonAttributes: x, children: c, className: I, icon: N, options: d, selected: n, disabled: B, ...L } = C, f = m(null), u = m(null), [p, v] = E(), D = m(O()), A = ({ opened: e, setOpened: t }) => /* @__PURE__ */ o(
|
|
23
|
+
V,
|
|
24
|
+
{
|
|
25
|
+
className: "hoverable",
|
|
26
|
+
onKeyDown: k({ opened: e, setOpened: t }),
|
|
27
|
+
onClick: S({ opened: e, setOpened: t }),
|
|
28
|
+
disabled: B,
|
|
29
|
+
"aria-haspopup": "menu",
|
|
30
|
+
"aria-expanded": e,
|
|
31
|
+
"aria-controls": D.current,
|
|
32
|
+
"aria-activedescendant": p,
|
|
33
|
+
icon: N,
|
|
34
|
+
...x,
|
|
35
|
+
ref: W,
|
|
36
|
+
children: c
|
|
37
|
+
}
|
|
38
|
+
), S = ({ opened: e, setOpened: t }) => () => t(!e), k = ({ opened: e, setOpened: t }) => (a) => {
|
|
39
|
+
const { key: r } = a;
|
|
40
|
+
(i(r, "SPACE") || i(r, "ARROW_UP") || i(r, "ARROW_DOWN")) && a.preventDefault(), !e && (i(r, "ARROW_UP") || i(r, "ARROW_DOWN")) && t(!0);
|
|
41
|
+
}, M = ({ opened: e, setOpened: t, className: a }) => /* @__PURE__ */ o(j.Provider, { value: { activeDescendant: p, setActiveDescendant: v }, children: /* @__PURE__ */ o(
|
|
42
|
+
R.Dropdown,
|
|
43
|
+
{
|
|
44
|
+
className: a,
|
|
45
|
+
opened: e,
|
|
46
|
+
setOpened: t,
|
|
47
|
+
targetRef: f,
|
|
48
|
+
ref: u,
|
|
49
|
+
mobileViewProps: {
|
|
50
|
+
children: /* @__PURE__ */ w(_, { children: [
|
|
51
|
+
/* @__PURE__ */ w(q, { children: [
|
|
52
|
+
/* @__PURE__ */ o(T, { tag: "div", size: K.B1, children: c }),
|
|
53
|
+
/* @__PURE__ */ o(U, { onClick: () => t(!1) })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(F, { children: d.map((r) => /* @__PURE__ */ b(
|
|
56
|
+
H,
|
|
57
|
+
{
|
|
58
|
+
...r,
|
|
59
|
+
key: r.id,
|
|
60
|
+
selected: r.id === (n == null ? void 0 : n.id),
|
|
61
|
+
onSelect: () => {
|
|
62
|
+
var s;
|
|
63
|
+
(s = r.onSelect) == null || s.call(r), t(!1);
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
r.label
|
|
67
|
+
)) }) })
|
|
68
|
+
] })
|
|
69
|
+
},
|
|
70
|
+
children: /* @__PURE__ */ o(h, { dropdownOpened: e, id: D.current, children: d.map((r) => /* @__PURE__ */ b(
|
|
71
|
+
h.Item,
|
|
72
|
+
{
|
|
73
|
+
...r,
|
|
74
|
+
className: y.buttonDropdownMenuItem,
|
|
75
|
+
key: r.id,
|
|
76
|
+
selected: r.id === (n == null ? void 0 : n.id),
|
|
77
|
+
onSelect: () => {
|
|
78
|
+
var s;
|
|
79
|
+
(s = r.onSelect) == null || s.call(r), t(!1);
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
r.label
|
|
83
|
+
)) })
|
|
84
|
+
}
|
|
85
|
+
) }), W = (e) => {
|
|
86
|
+
f.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
|
|
87
|
+
};
|
|
88
|
+
return /* @__PURE__ */ o(
|
|
89
|
+
R,
|
|
90
|
+
{
|
|
91
|
+
className: g(y.listItemControlsButtonDropdown, I),
|
|
92
|
+
renderButton: A,
|
|
93
|
+
renderDropdown: M,
|
|
94
|
+
dropdownRef: u,
|
|
95
|
+
closeOnTab: !0,
|
|
96
|
+
...L
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
G.displayName = "ListItemControlsButtonDropdown";
|
|
19
102
|
export {
|
|
20
|
-
|
|
103
|
+
G as ListItemControlsButtonDropdown
|
|
21
104
|
};
|
|
22
105
|
//# sourceMappingURL=ListItemControlsButtonDropdown.js.map
|