@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,14 +1,14 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as d } from "../../../chunks/vendor-
|
|
2
|
+
import { c as d } from "../../../chunks/vendor-D-uL_icH.js";
|
|
3
3
|
import i from "react";
|
|
4
|
-
const r = "
|
|
4
|
+
const r = "paginationExtended__2f938382", s = {
|
|
5
5
|
paginationExtended: r
|
|
6
6
|
}, x = i.forwardRef(
|
|
7
7
|
({ children: t, className: a, ...n }, e) => /* @__PURE__ */ o(
|
|
8
8
|
"nav",
|
|
9
9
|
{
|
|
10
10
|
className: d(s.paginationExtended, a),
|
|
11
|
-
"data-tx": "1.
|
|
11
|
+
"data-tx": "1.1.1",
|
|
12
12
|
...n,
|
|
13
13
|
ref: e,
|
|
14
14
|
children: t
|
|
@@ -3,11 +3,11 @@ import c from "react";
|
|
|
3
3
|
import { ButtonIcon as p } from "../../Button/ButtonIcon.js";
|
|
4
4
|
import { EButtonIconShape as m } from "../../Button/enums.js";
|
|
5
5
|
import { EPaginationNavigationIconDirection as s } from "../enums.js";
|
|
6
|
-
import o from "@sberbusiness/icons-next
|
|
7
|
-
const g = "
|
|
6
|
+
import { CaretleftStrokeSrvIcon24 as o } from "@sberbusiness/icons-next";
|
|
7
|
+
const g = "paginationNavigationButton__5b686b84", N = "directionIconNext__45d70aea", n = {
|
|
8
8
|
paginationNavigationButton: g,
|
|
9
9
|
directionIconNext: N
|
|
10
|
-
},
|
|
10
|
+
}, d = c.forwardRef(
|
|
11
11
|
({ direction: i, ...a }, e) => {
|
|
12
12
|
const r = i === s.BACK;
|
|
13
13
|
return /* @__PURE__ */ t(
|
|
@@ -22,8 +22,8 @@ const g = "paginationNavigationButton__1568d4f5", N = "directionIconNext__7be0ff
|
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
|
-
|
|
25
|
+
d.displayName = "PaginationNavigationButton";
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
d as PaginationNavigationButton
|
|
28
28
|
};
|
|
29
29
|
//# sourceMappingURL=PaginationNavigationButton.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { c as d } from "../../../chunks/vendor-
|
|
4
|
-
const g = "
|
|
3
|
+
import { c as d } from "../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
const g = "paginationNavigationExtended__c2db3ef3", r = {
|
|
5
5
|
paginationNavigationExtended: g
|
|
6
6
|
}, s = e.forwardRef(
|
|
7
7
|
({ children: a, className: t, ...i }, n) => /* @__PURE__ */ o("ul", { className: d(r.paginationNavigationExtended, t), ...i, ref: n, children: a })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { c } from "../../../chunks/vendor-
|
|
4
|
-
const s = "
|
|
3
|
+
import { c } from "../../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
const s = "paginationPageButton__5bdcc541", u = "currentPage__6ea3eabf", a = {
|
|
5
5
|
paginationPageButton: s,
|
|
6
6
|
currentPage: u
|
|
7
7
|
}, P = g.forwardRef(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "../../../chunks/vendor-
|
|
2
|
+
import { c as e } from "../../../chunks/vendor-D-uL_icH.js";
|
|
3
3
|
import o from "react";
|
|
4
|
-
const t = "
|
|
4
|
+
const t = "pageEllipsis__9138b51b", r = {
|
|
5
5
|
pageEllipsis: t
|
|
6
6
|
}, n = o.forwardRef(
|
|
7
7
|
({ children: s, className: i, ...a }, l) => /* @__PURE__ */ p("span", { className: e(r.pageEllipsis, i), ...a, ref: l, children: s })
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import g, { useRef as S } from "react";
|
|
3
|
+
import { f as x, c as N } from "../../../chunks/vendor-D-uL_icH.js";
|
|
4
4
|
import "../../Typography/Title.js";
|
|
5
|
-
import { Text as
|
|
5
|
+
import { Text as b } from "../../Typography/Text.js";
|
|
6
6
|
import "../../Typography/Caption.js";
|
|
7
|
-
import { ETextSize as
|
|
8
|
-
const
|
|
9
|
-
paginationSelect:
|
|
7
|
+
import { ETextSize as v } from "../../Typography/enums.js";
|
|
8
|
+
const _ = "paginationSelect__8cf380c1", h = "paginationSelectControl__8d8b1b76", c = {
|
|
9
|
+
paginationSelect: _,
|
|
10
10
|
paginationSelectControl: h
|
|
11
|
-
},
|
|
12
|
-
({ paginationLabel:
|
|
13
|
-
const l =
|
|
11
|
+
}, y = g.forwardRef(
|
|
12
|
+
({ paginationLabel: o, className: s, hidden: d, options: i, value: a, onChange: n }, m) => {
|
|
13
|
+
const l = S(`Pagination-${x()}`), p = i && i.length > 0 ? i : [10, 20, 50, 100], u = (e) => {
|
|
14
14
|
const r = Number(e.target.value);
|
|
15
|
-
Number.isNaN(r) ||
|
|
15
|
+
Number.isNaN(r) || n == null || n(r);
|
|
16
16
|
};
|
|
17
|
-
return
|
|
18
|
-
/* @__PURE__ */ t(
|
|
19
|
-
/* @__PURE__ */ t("div", { className:
|
|
17
|
+
return d ? null : /* @__PURE__ */ f("div", { className: N(c.paginationSelect, s), ref: m, children: [
|
|
18
|
+
/* @__PURE__ */ t(b, { size: v.B3, id: l.current, children: o }),
|
|
19
|
+
/* @__PURE__ */ t("div", { className: c.paginationSelectControl, children: /* @__PURE__ */ t(
|
|
20
20
|
"select",
|
|
21
21
|
{
|
|
22
22
|
"aria-labelledby": l.current,
|
|
23
|
-
value:
|
|
23
|
+
value: a !== void 0 ? String(a) : void 0,
|
|
24
24
|
onChange: u,
|
|
25
25
|
children: p.map((e) => /* @__PURE__ */ t("option", { value: e, children: e }, e))
|
|
26
26
|
}
|
|
@@ -28,8 +28,8 @@ const b = "paginationSelect__ab00743e", h = "paginationSelectControl__c47e4a34",
|
|
|
28
28
|
] });
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
|
|
31
|
+
y.displayName = "PaginationSelect";
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
y as PaginationSelect
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=PaginationSelect.js.map
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as R } from "../../../chunks/vendor-D-uL_icH.js";
|
|
2
2
|
const m = -1, h = {
|
|
3
3
|
// Создание массива чисел в заданном диапазоне с заданным шагом.
|
|
4
|
-
generateRange: (
|
|
4
|
+
generateRange: (n, i, e = 1) => n > i ? [] : R(n, i + 1, e),
|
|
5
5
|
// Создание массивов страниц в начале, конце и вокруг текущей.
|
|
6
|
-
generatePageRanges: (
|
|
7
|
-
const
|
|
6
|
+
generatePageRanges: (n, i, e, s) => {
|
|
7
|
+
const g = h.generateRange(1, Math.min(e, s)), a = h.generateRange(
|
|
8
8
|
Math.max(s - e + 1, e + 1),
|
|
9
9
|
s
|
|
10
10
|
), c = s - e - 1 - i * 2, r = Math.max(
|
|
11
|
-
Math.min(
|
|
11
|
+
Math.min(n - i, c),
|
|
12
12
|
e + 2
|
|
13
13
|
), S = e + 2 + i * 2, M = Math.min(
|
|
14
|
-
Math.max(
|
|
14
|
+
Math.max(n + i, S),
|
|
15
15
|
s - e - 1
|
|
16
16
|
);
|
|
17
|
-
return { boundaryDivider: 2, endPages: a, siblingsEnd: M, siblingsStart: r, startPages:
|
|
17
|
+
return { boundaryDivider: 2, endPages: a, siblingsEnd: M, siblingsStart: r, startPages: g };
|
|
18
18
|
},
|
|
19
19
|
// Создание итогового массива страниц для отображения.
|
|
20
20
|
createPagesArray: ({
|
|
21
|
-
currentPage:
|
|
21
|
+
currentPage: n,
|
|
22
22
|
siblingCount: i,
|
|
23
23
|
boundaryCount: e,
|
|
24
24
|
totalPages: s
|
|
25
25
|
}) => {
|
|
26
|
-
const { boundaryDivider: p, endPages: t, siblingsEnd:
|
|
27
|
-
return a > e + p ? r.push(m) : e + 1 < s - e && r.push(e + 1), r.push(...h.generateRange(a,
|
|
26
|
+
const { boundaryDivider: p, endPages: t, siblingsEnd: g, siblingsStart: a, startPages: c } = h.generatePageRanges(n, i, e, s), r = c;
|
|
27
|
+
return a > e + p ? r.push(m) : e + 1 < s - e && r.push(e + 1), r.push(...h.generateRange(a, g)), g < s - e - 1 ? r.push(m) : s - e > e && r.push(s - e), r.push(...t), r;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as b, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import p from "react";
|
|
3
3
|
import { ERadioSize as f } from "./enum.js";
|
|
4
|
-
import { c as l } from "../../chunks/vendor-
|
|
5
|
-
const N = "
|
|
4
|
+
import { c as l } from "../../chunks/vendor-D-uL_icH.js";
|
|
5
|
+
const N = "label__7d28710a", y = "md__1281fe1b", x = "lg__a7b75200", R = "nonempty__adc5081c", u = "disabled__05b5e731", I = "radio__73cf15b5", g = "radioIcon__d989b046", a = {
|
|
6
6
|
label: N,
|
|
7
7
|
md: y,
|
|
8
8
|
lg: x,
|
|
@@ -17,7 +17,7 @@ const N = "label__f3ec4845", y = "md__4b15ee46", x = "lg__57b3d5ba", R = "nonemp
|
|
|
17
17
|
{ [a.disabled]: !!e, [a.nonempty]: !!o },
|
|
18
18
|
s == null ? void 0 : s.className
|
|
19
19
|
);
|
|
20
|
-
return /* @__PURE__ */ b("label", { ...s, className: _, "data-tx": "1.
|
|
20
|
+
return /* @__PURE__ */ b("label", { ...s, className: _, "data-tx": "1.1.1", children: [
|
|
21
21
|
/* @__PURE__ */ c("input", { type: "radio", className: m, disabled: e, ...r, ref: t }),
|
|
22
22
|
/* @__PURE__ */ c("span", { className: a.radioIcon }),
|
|
23
23
|
o
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as s } from "../../chunks/vendor-
|
|
3
|
-
const _ = "
|
|
2
|
+
import { c as s } from "../../chunks/vendor-D-uL_icH.js";
|
|
3
|
+
const _ = "radioXGroup__e5de6ada", c = "label__7d28710a", n = {
|
|
4
4
|
radioXGroup: _,
|
|
5
|
-
"indent-12": "indent-
|
|
6
|
-
label:
|
|
7
|
-
"indent-16": "indent-
|
|
8
|
-
"indent-20": "indent-
|
|
9
|
-
"indent-24": "indent-
|
|
10
|
-
"indent-28": "indent-
|
|
11
|
-
"indent-32": "indent-
|
|
12
|
-
},
|
|
5
|
+
"indent-12": "indent-12__6b1b22c7",
|
|
6
|
+
label: c,
|
|
7
|
+
"indent-16": "indent-16__304f6117",
|
|
8
|
+
"indent-20": "indent-20__1e5353ed",
|
|
9
|
+
"indent-24": "indent-24__afb7e51c",
|
|
10
|
+
"indent-28": "indent-28__25601fd3",
|
|
11
|
+
"indent-32": "indent-32__bdc8238b"
|
|
12
|
+
}, l = (e) => {
|
|
13
13
|
const { children: d, className: i, indent: o = 12, ...t } = e, a = s(n.radioXGroup, n[`indent-${o}`], i);
|
|
14
14
|
return /* @__PURE__ */ r("div", { className: a, role: "radiogroup", ...t, children: d });
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
l.displayName = "RadioXGroup";
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
l as RadioXGroup
|
|
19
19
|
};
|
|
20
20
|
//# sourceMappingURL=RadioXGroup.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
const
|
|
4
|
-
radioYGroup:
|
|
5
|
-
},
|
|
6
|
-
const { children: r, className: s, ...a } = o, i =
|
|
2
|
+
import { c as d } from "../../chunks/vendor-D-uL_icH.js";
|
|
3
|
+
const e = "radioYGroup__e433336d", p = {
|
|
4
|
+
radioYGroup: e
|
|
5
|
+
}, t = (o) => {
|
|
6
|
+
const { children: r, className: s, ...a } = o, i = d(p.radioYGroup, s);
|
|
7
7
|
return /* @__PURE__ */ c("div", { className: i, role: "radiogroup", ...a, children: r });
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
t.displayName = "RadioYGroup";
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
t as RadioYGroup
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=RadioYGroup.js.map
|
package/components/Row/Row.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { c as m } from "../../chunks/vendor-
|
|
3
|
-
const c = "
|
|
2
|
+
import { c as m } from "../../chunks/vendor-D-uL_icH.js";
|
|
3
|
+
const c = "row__4e8abf51", e = "noPaddingBottom__bfbb4a0e", o = {
|
|
4
4
|
row: c,
|
|
5
|
-
noPaddingBottom:
|
|
6
|
-
},
|
|
5
|
+
noPaddingBottom: e
|
|
6
|
+
}, i = ({ children: t, className: n, paddingBottom: s = !0, ...r }) => {
|
|
7
7
|
const a = m(n, o.row, { [o.noPaddingBottom]: !s });
|
|
8
8
|
return /* @__PURE__ */ d("div", { className: a, ...r, children: t });
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
i.displayName = "Row";
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
i as Row
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=Row.js.map
|
|
@@ -1,10 +1,67 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
1
|
+
import { ESegmentedControlTheme as o, ESegmentedControlSize as r, ESegmentedControlType as c } from "./enums.js";
|
|
2
|
+
import { SegmentedControlSegment as N } from "./SegmentedControlSegment.js";
|
|
3
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
4
|
+
import b from "react";
|
|
5
|
+
import { c as L } from "../../chunks/vendor-D-uL_icH.js";
|
|
6
|
+
import { SegmentedControlContext as R } from "./SegmentedControlContext.js";
|
|
7
|
+
const h = "segmentedControl__5e183e89", x = "general1__780803e7", M = "secondary1__4d00a09b", T = "general2__95c58724", A = "secondary2__9e04350c", G = "sm__7102e945", D = "md__5e3475c9", O = "lg__460bba89", e = {
|
|
8
|
+
segmentedControl: h,
|
|
9
|
+
general1: x,
|
|
10
|
+
secondary1: M,
|
|
11
|
+
general2: T,
|
|
12
|
+
secondary2: A,
|
|
13
|
+
sm: G,
|
|
14
|
+
md: D,
|
|
15
|
+
lg: O
|
|
16
|
+
}, j = {
|
|
17
|
+
[o.GENERAL_1]: e.general1,
|
|
18
|
+
[o.GENERAL_2]: e.general2,
|
|
19
|
+
[o.SECONDARY_1]: e.secondary1,
|
|
20
|
+
[o.SECONDARY_2]: e.secondary2
|
|
21
|
+
}, v = {
|
|
22
|
+
[r.SM]: e.sm,
|
|
23
|
+
[r.MD]: e.md,
|
|
24
|
+
[r.LG]: e.lg
|
|
25
|
+
}, z = Object.assign(
|
|
26
|
+
b.forwardRef(
|
|
27
|
+
({ children: d, className: g, value: n, theme: _, type: a, size: i, disabled: C, onSelect: t, ...S }, f) => {
|
|
28
|
+
const E = L(
|
|
29
|
+
e.segmentedControl,
|
|
30
|
+
j[_],
|
|
31
|
+
v[i],
|
|
32
|
+
g
|
|
33
|
+
), p = ({
|
|
34
|
+
selected: m,
|
|
35
|
+
value: s
|
|
36
|
+
}) => {
|
|
37
|
+
switch (a) {
|
|
38
|
+
case c.SINGLE:
|
|
39
|
+
m && t(s);
|
|
40
|
+
break;
|
|
41
|
+
case c.MULTIPLE:
|
|
42
|
+
t(m ? [...n, s] : [...n].filter((y) => y !== s));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
return /* @__PURE__ */ l(
|
|
46
|
+
R.Provider,
|
|
47
|
+
{
|
|
48
|
+
value: {
|
|
49
|
+
type: a,
|
|
50
|
+
value: n,
|
|
51
|
+
disabled: !!C,
|
|
52
|
+
onSegmentSelect: p
|
|
53
|
+
},
|
|
54
|
+
children: /* @__PURE__ */ l("div", { className: E, ...S, "data-tx": "1.1.1", ref: f, children: d })
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
{
|
|
60
|
+
Segment: N
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
z.displayName = "SegmentedControl";
|
|
6
64
|
export {
|
|
7
|
-
|
|
8
|
-
p as SegmentedControlContext
|
|
65
|
+
z as SegmentedControl
|
|
9
66
|
};
|
|
10
67
|
//# sourceMappingURL=SegmentedControl.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { ESegmentedControlType as t } from "./enums.js";
|
|
3
|
+
const r = e.createContext({
|
|
4
|
+
type: t.SINGLE,
|
|
5
|
+
value: "",
|
|
6
|
+
disabled: !1,
|
|
7
|
+
onSegmentSelect: () => {
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
r as SegmentedControlContext
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=SegmentedControlContext.js.map
|
|
@@ -1,11 +1,71 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../../chunks/vendor-
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as b } from "react";
|
|
3
|
+
import { c as L } from "../../chunks/vendor-D-uL_icH.js";
|
|
4
|
+
import { ButtonBase as N } from "../Button/ButtonBase.js";
|
|
5
|
+
import { ESegmentedControlType as n } from "./enums.js";
|
|
6
|
+
import { SegmentedControlContext as _ } from "./SegmentedControlContext.js";
|
|
7
|
+
const y = "segmentedControlSegment__fcd51051", E = "selected__2866e81f", I = "content__198fa72c", r = {
|
|
8
|
+
segmentedControlSegment: y,
|
|
9
|
+
selected: E,
|
|
10
|
+
content: I
|
|
11
|
+
}, T = ({
|
|
12
|
+
children: s,
|
|
13
|
+
className: i,
|
|
14
|
+
value: e,
|
|
15
|
+
title: c,
|
|
16
|
+
disabled: g,
|
|
17
|
+
onClick: o,
|
|
18
|
+
...S
|
|
19
|
+
}) => {
|
|
20
|
+
const {
|
|
21
|
+
type: m,
|
|
22
|
+
value: d,
|
|
23
|
+
disabled: p,
|
|
24
|
+
onSegmentSelect: l
|
|
25
|
+
} = b(_), t = (() => {
|
|
26
|
+
switch (m) {
|
|
27
|
+
case n.SINGLE:
|
|
28
|
+
return e === d;
|
|
29
|
+
case n.MULTIPLE:
|
|
30
|
+
return d.includes(e);
|
|
31
|
+
}
|
|
32
|
+
})(), f = L(
|
|
33
|
+
r.segmentedControlSegment,
|
|
34
|
+
{ [r.selected]: t },
|
|
35
|
+
"hoverable",
|
|
36
|
+
{ active: t },
|
|
37
|
+
i
|
|
38
|
+
), C = () => {
|
|
39
|
+
if (c)
|
|
40
|
+
return c;
|
|
41
|
+
if (typeof s == "string")
|
|
42
|
+
return s;
|
|
43
|
+
}, u = (x) => {
|
|
44
|
+
switch (m) {
|
|
45
|
+
case n.SINGLE:
|
|
46
|
+
l({ value: e, selected: !0 });
|
|
47
|
+
break;
|
|
48
|
+
case n.MULTIPLE:
|
|
49
|
+
l({ value: e, selected: !t });
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
o == null || o(x);
|
|
53
|
+
};
|
|
54
|
+
return /* @__PURE__ */ a(
|
|
55
|
+
N,
|
|
56
|
+
{
|
|
57
|
+
className: f,
|
|
58
|
+
title: C(),
|
|
59
|
+
disabled: g || p,
|
|
60
|
+
"aria-pressed": t,
|
|
61
|
+
onClick: u,
|
|
62
|
+
...S,
|
|
63
|
+
children: /* @__PURE__ */ a("span", { className: r.content, children: s })
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
T.displayName = "SegmentedControlSegment";
|
|
8
68
|
export {
|
|
9
|
-
|
|
69
|
+
T as SegmentedControlSegment
|
|
10
70
|
};
|
|
11
71
|
//# sourceMappingURL=SegmentedControlSegment.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ESegmentedControlSize as t, ESegmentedControlTheme as n, ESegmentedControlType as
|
|
2
|
-
import {
|
|
1
|
+
import { ESegmentedControlSize as t, ESegmentedControlTheme as n, ESegmentedControlType as r } from "./enums.js";
|
|
2
|
+
import { SegmentedControlSegment as S } from "./SegmentedControlSegment.js";
|
|
3
|
+
import { SegmentedControl as d } from "./SegmentedControl.js";
|
|
3
4
|
export {
|
|
4
5
|
t as ESegmentedControlSize,
|
|
5
6
|
n as ESegmentedControlTheme,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
C as SegmentedControlSegment
|
|
7
|
+
r as ESegmentedControlType,
|
|
8
|
+
d as SegmentedControl,
|
|
9
|
+
S as SegmentedControlSegment
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as y, jsxs as O } from "react/jsx-runtime";
|
|
2
|
+
import { useState as T, useRef as u, useCallback as r, useEffect as x } from "react";
|
|
3
|
+
import { isKey as K, EVENT_KEY_CODES as b } from "../../utils/keyboard.js";
|
|
4
|
+
import { KeyDownListener as C } from "../KeyDownListener/KeyDownListener.js";
|
|
5
|
+
import { c as _ } from "../../chunks/vendor-D-uL_icH.js";
|
|
6
|
+
import { SelectExtendedFieldTarget as j } from "./components/SelectExtendedFieldTarget.js";
|
|
7
|
+
import { SelectExtendedFieldDropdown as k } from "./components/SelectExtendedFieldDropdown.js";
|
|
8
|
+
const v = "SelectExtendedField__76902a04", A = {
|
|
9
|
+
SelectExtendedField: v
|
|
10
|
+
}, L = (S) => {
|
|
11
|
+
const { className: w, onKeyDown: n, children: D, renderTarget: F, closeOnTab: m, onClose: o, onOpen: d, ...g } = S, [e, c] = T(!1), l = u(null), f = u(null), E = r((t) => {
|
|
12
|
+
c(t);
|
|
13
|
+
}, []), i = r(
|
|
14
|
+
(t) => {
|
|
15
|
+
var s, p;
|
|
16
|
+
e && !((s = l.current) != null && s.contains(t.target)) && !((p = f.current) != null && p.contains(t.target)) && c(!1);
|
|
17
|
+
},
|
|
18
|
+
[e]
|
|
19
|
+
), a = r(() => {
|
|
20
|
+
e && c(!1);
|
|
21
|
+
}, [e]), h = r(
|
|
22
|
+
(t) => {
|
|
23
|
+
const s = t.code || t.keyCode;
|
|
24
|
+
m && K(s, "TAB") && a(), n == null || n(t);
|
|
25
|
+
},
|
|
26
|
+
[m, a, n]
|
|
27
|
+
);
|
|
28
|
+
return x(() => (document.addEventListener("mousedown", i), () => {
|
|
29
|
+
document.removeEventListener("mousedown", i);
|
|
30
|
+
}), [i]), x(() => {
|
|
31
|
+
e ? d == null || d() : o == null || o();
|
|
32
|
+
}, [e, d, o]), /* @__PURE__ */ y(C, { onMatch: a, eventKeyCode: b.ESCAPE, children: /* @__PURE__ */ O(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
className: _(A.SelectExtendedField, w),
|
|
36
|
+
onKeyDown: h,
|
|
37
|
+
ref: l,
|
|
38
|
+
...g,
|
|
39
|
+
children: [
|
|
40
|
+
F({ opened: e, setOpened: E }),
|
|
41
|
+
D({
|
|
42
|
+
dropdownRef: f,
|
|
43
|
+
opened: e,
|
|
44
|
+
setOpened: E,
|
|
45
|
+
targetRef: l
|
|
46
|
+
})
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
) });
|
|
50
|
+
}, $ = Object.assign(L, {
|
|
51
|
+
Target: j,
|
|
52
|
+
Dropdown: k
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
$ as SelectExtendedField
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=SelectExtendedField.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Dropdown as m } from "../../Dropdown/Dropdown.js";
|
|
3
|
+
import { DropdownList as e } from "../../Dropdown/desktop/DropdownList.js";
|
|
4
|
+
import "../../Dropdown/desktop/DropdownDesktop.js";
|
|
5
|
+
import "../../../chunks/DropdownListItem-DIIAnvmw.js";
|
|
6
|
+
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
7
|
+
import "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
8
|
+
import "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
9
|
+
import "../../Dropdown/mobile/DropdownMobileFooter.js";
|
|
10
|
+
import "../../Dropdown/mobile/DropdownMobileHeader.js";
|
|
11
|
+
import "../../Dropdown/mobile/DropdownMobileInner.js";
|
|
12
|
+
import "../../Dropdown/mobile/DropdownMobileInput.js";
|
|
13
|
+
import "../../Dropdown/mobile/DropdownMobileList.js";
|
|
14
|
+
import "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
15
|
+
const d = ({
|
|
16
|
+
forwardedRef: o,
|
|
17
|
+
children: r,
|
|
18
|
+
targetRef: t,
|
|
19
|
+
...p
|
|
20
|
+
}) => /* @__PURE__ */ i(m, { ...p, ref: o, targetRef: t, children: r });
|
|
21
|
+
d.List = e;
|
|
22
|
+
export {
|
|
23
|
+
d as SelectExtendedFieldDropdown
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=SelectExtendedFieldDropdown.js.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { createElement as s } from "react";
|
|
3
|
+
import { SelectExtendedField as m } from "../SelectExtendedField.js";
|
|
4
|
+
import "../../Dropdown/mobile/DropdownMobile.js";
|
|
5
|
+
import { DropdownMobileBody as S } from "../../Dropdown/mobile/DropdownMobileBody.js";
|
|
6
|
+
import { DropdownMobileClose as y } from "../../Dropdown/mobile/DropdownMobileClose.js";
|
|
7
|
+
import "../../Dropdown/mobile/DropdownMobileFooter.js";
|
|
8
|
+
import { DropdownMobileHeader as E } from "../../Dropdown/mobile/DropdownMobileHeader.js";
|
|
9
|
+
import "../../Dropdown/mobile/DropdownMobileInner.js";
|
|
10
|
+
import "../../Dropdown/mobile/DropdownMobileInput.js";
|
|
11
|
+
import { DropdownMobileList as k } from "../../Dropdown/mobile/DropdownMobileList.js";
|
|
12
|
+
import { DropdownMobileListItem as B } from "../../Dropdown/mobile/DropdownMobileListItem.js";
|
|
13
|
+
import { Text as F } from "../../Typography/Text.js";
|
|
14
|
+
import { ETextSize as L } from "../../Typography/enums.js";
|
|
15
|
+
const J = ({
|
|
16
|
+
dropdownRef: w,
|
|
17
|
+
dropdownListItemClassName: l,
|
|
18
|
+
fixedWidth: c,
|
|
19
|
+
loading: D,
|
|
20
|
+
listId: b,
|
|
21
|
+
mobileTitle: h,
|
|
22
|
+
onChange: n,
|
|
23
|
+
opened: p,
|
|
24
|
+
options: f,
|
|
25
|
+
setOpened: i,
|
|
26
|
+
targetRef: x,
|
|
27
|
+
value: o
|
|
28
|
+
}) => /* @__PURE__ */ e(
|
|
29
|
+
m.Dropdown,
|
|
30
|
+
{
|
|
31
|
+
opened: p && !D,
|
|
32
|
+
forwardedRef: w,
|
|
33
|
+
fixedWidth: typeof c > "u" ? !0 : c,
|
|
34
|
+
setOpened: i,
|
|
35
|
+
targetRef: x,
|
|
36
|
+
mobileViewProps: {
|
|
37
|
+
children: /* @__PURE__ */ a(M, { children: [
|
|
38
|
+
/* @__PURE__ */ e(
|
|
39
|
+
E,
|
|
40
|
+
{
|
|
41
|
+
closeButton: () => /* @__PURE__ */ e(y, { onClick: () => i(!1) }),
|
|
42
|
+
children: /* @__PURE__ */ e(F, { tag: "div", size: L.B1, children: h })
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(k, { children: f.map((r) => {
|
|
46
|
+
const { label: d, ...t } = r;
|
|
47
|
+
return /* @__PURE__ */ s(
|
|
48
|
+
B,
|
|
49
|
+
{
|
|
50
|
+
...t,
|
|
51
|
+
className: l,
|
|
52
|
+
id: r.id,
|
|
53
|
+
key: r.id,
|
|
54
|
+
selected: r.id === (o == null ? void 0 : o.id),
|
|
55
|
+
onSelect: () => {
|
|
56
|
+
n(r), i(!1);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
d
|
|
60
|
+
);
|
|
61
|
+
}) }) })
|
|
62
|
+
] })
|
|
63
|
+
},
|
|
64
|
+
children: /* @__PURE__ */ e(m.Dropdown.List, { id: b, dropdownOpened: p, children: f.map((r) => {
|
|
65
|
+
const { label: d, ...t } = r;
|
|
66
|
+
return /* @__PURE__ */ s(
|
|
67
|
+
m.Dropdown.List.Item,
|
|
68
|
+
{
|
|
69
|
+
...t,
|
|
70
|
+
className: l,
|
|
71
|
+
id: r.id,
|
|
72
|
+
key: r.id,
|
|
73
|
+
selected: r.id === (o == null ? void 0 : o.id),
|
|
74
|
+
onSelect: () => {
|
|
75
|
+
n(r), i(!1);
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
d
|
|
79
|
+
);
|
|
80
|
+
}) })
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
export {
|
|
84
|
+
J as SelectExtendedFieldDropdownDefault
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=SelectExtendedFieldDropdownDefault.js.map
|