@sberbusiness/triplex-next 0.1.9 → 1.1.0
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-Dp7FRT9y.js +39 -0
- package/chunks/Card.module-Ddt7TQ9Z.js +17 -0
- package/chunks/DropdownListItem-y6Rvj_dd.js +56 -0
- package/chunks/DropdownMobile.module-DrQkghxs.js +19 -0
- package/chunks/Footer.module-CKfl241m.js +11 -0
- package/chunks/FormFieldInput-apk1b0w6.js +63 -0
- package/chunks/HeaderLayoutSidebar.module-DTXnksBK.js +9 -0
- package/chunks/HeaderTabs.module-DVh6MotJ.js +9 -0
- package/chunks/HeaderTitle.module-DOeVL9zC.js +9 -0
- package/chunks/{ListItemControlsButton-BtMEMrGK.js → ListItemControlsButton-Cn3Vmrsn.js} +8 -8
- package/chunks/ListItemTail.module-BnbT61OM.js +12 -0
- package/chunks/ListMasterFooter.module-C6QFamKQ.js +10 -0
- package/chunks/Overlay.module-BTSQ5G6t.js +18 -0
- package/chunks/Page.module-DfMBQJob.js +16 -0
- package/chunks/TabsExtended.module-okOlTNQG.js +13 -0
- package/chunks/{TabsExtendedUtils-BOHZcNx8.js → TabsExtendedUtils-NCwWiX7O.js} +6 -6
- package/chunks/TooltipDesktop.module-DTbnIWo1.js +19 -0
- package/chunks/UploadZoneInput-R9729LZY.js +33 -0
- package/chunks/utils-B0khB-Lq.js +36 -0
- package/chunks/{vendor-CF2m175I.js → vendor-D-uL_icH.js} +38 -34
- package/components/Alert/AlertContext/AlertContext.js +10 -10
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Body/Body.js +6 -6
- 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 +2 -2
- package/components/Button/enums.js +5 -4
- package/components/Button/index.js +14 -12
- package/components/Card/CardAction.js +26 -26
- 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 +7 -7
- package/components/Checkbox/CheckboxXGroup.js +11 -11
- package/components/Checkbox/CheckboxYGroup.js +2 -2
- package/components/Col/Col.js +146 -146
- 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 +53 -52
- package/components/FormField/FormFieldContext.js +8 -8
- package/components/FormField/components/FormFieldClear.js +13 -12
- package/components/FormField/components/FormFieldCounter.js +5 -5
- package/components/FormField/components/FormFieldDescription.js +5 -5
- 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 +7 -7
- package/components/FormField/components/FormFieldPrefix.js +5 -5
- 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 +11 -11
- 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 +27 -27
- package/components/List/List.js +3 -3
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +6 -6
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +7 -7
- package/components/List/components/ListItemControls.js +7 -7
- package/components/List/components/ListItemControlsButton.js +2 -2
- package/components/List/components/ListItemControlsButtonDropdown.js +98 -15
- package/components/List/components/ListItemLoading.js +2 -2
- package/components/List/components/ListItemSelectable.js +9 -9
- 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 +6 -6
- 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 +5 -5
- 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 +7 -7
- package/components/ListMaster/components/SelectionControls.js +3 -3
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +7 -7
- package/components/Loader/LoaderSmall/LoaderSmall.js +16 -16
- package/components/LoaderWidget/LoaderWidget.js +9 -9
- 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 +6 -6
- package/components/Pagination/components/PaginationNavigationExtended.js +2 -2
- package/components/Pagination/components/PaginationPageButton.js +6 -6
- package/components/Pagination/components/PaginationPageEllipsis.js +2 -2
- package/components/Pagination/components/PaginationSelect.js +12 -12
- package/components/Pagination/utils/paginationUtils.js +10 -10
- package/components/Radio/Radio.js +3 -3
- package/components/Radio/RadioXGroup.js +10 -10
- package/components/Radio/RadioYGroup.js +9 -9
- package/components/Row/Row.js +10 -10
- 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 +10 -10
- package/components/SwipeableArea/SwipeableArea.js +13 -13
- 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 +10 -10
- 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 +10 -10
- package/components/Typography/Caption.js +15 -15
- package/components/Typography/Text.js +24 -24
- package/components/Typography/Title.js +13 -13
- 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/AlertProcessSpoiler-BPbAJJFo.js +0 -39
- package/chunks/Card.module-Oqawy8hF.js +0 -17
- package/chunks/DropdownListItem-CW2MmFpw.js +0 -56
- package/chunks/DropdownMobile.module-DyunEp10.js +0 -19
- package/chunks/Footer.module-o57OEPdy.js +0 -11
- package/chunks/FormFieldInput-C2qWOLr3.js +0 -62
- package/chunks/HeaderLayoutSidebar.module-CzpXvDdH.js +0 -9
- package/chunks/HeaderTabs.module-CC0WAcoC.js +0 -9
- package/chunks/HeaderTitle.module-CH7eRK8R.js +0 -9
- package/chunks/ListItemTail.module-BBV_gvLd.js +0 -12
- package/chunks/ListMasterFooter.module-Cw1r4pz-.js +0 -10
- package/chunks/Overlay.module-08zZh8Y9.js +0 -18
- package/chunks/Page.module-Ccvf_vDR.js +0 -16
- package/chunks/TabsExtended.module-yT8L2ZYS.js +0 -13
- package/chunks/TooltipDesktop.module-CvcpQSlC.js +0 -19
- package/chunks/index-CAZEh1iw.js +0 -931
- package/chunks/utils-9a4dp5-W.js +0 -36
|
@@ -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
5
|
import { Text as v } from "../../Typography/Text.js";
|
|
6
6
|
import "../../Typography/Caption.js";
|
|
7
7
|
import { ETextSize as _ } from "../../Typography/enums.js";
|
|
8
|
-
const h = "
|
|
8
|
+
const h = "paginationSelect__47a62f36", b = "paginationSelectControl__353ad334", o = {
|
|
9
9
|
paginationSelect: h,
|
|
10
10
|
paginationSelectControl: b
|
|
11
|
-
},
|
|
12
|
-
({ paginationLabel: c, className: s, hidden: d, options: i, value:
|
|
13
|
-
const l =
|
|
11
|
+
}, y = g.forwardRef(
|
|
12
|
+
({ paginationLabel: c, className: s, hidden: d, options: i, value: n, onChange: a }, 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) || a == null || a(r);
|
|
16
16
|
};
|
|
17
|
-
return d ? null : /* @__PURE__ */
|
|
17
|
+
return d ? null : /* @__PURE__ */ f("div", { className: N(o.paginationSelect, s), ref: m, children: [
|
|
18
18
|
/* @__PURE__ */ t(v, { size: _.B3, id: l.current, children: c }),
|
|
19
19
|
/* @__PURE__ */ t("div", { className: o.paginationSelectControl, children: /* @__PURE__ */ t(
|
|
20
20
|
"select",
|
|
21
21
|
{
|
|
22
22
|
"aria-labelledby": l.current,
|
|
23
|
-
value:
|
|
23
|
+
value: n !== void 0 ? String(n) : 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 h = "paginationSelect__298ede71", b = "paginationSelectControl__fd309273",
|
|
|
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__a228ac39", y = "md__99c5e64f", x = "lg__9bd8c338", R = "nonempty__479eb95e", u = "disabled__0c07e456", I = "radio__02eaf8bf", g = "radioIcon__7f2be5d4", a = {
|
|
6
6
|
label: N,
|
|
7
7
|
md: y,
|
|
8
8
|
lg: x,
|
|
@@ -17,7 +17,7 @@ const N = "label__27b58300", y = "md__14690406", x = "lg__32ac9eba", 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": "
|
|
20
|
+
return /* @__PURE__ */ b("label", { ...s, className: _, "data-tx": "1.1.0", 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,14 +1,14 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as s } from "../../chunks/vendor-
|
|
3
|
-
const
|
|
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-
|
|
2
|
+
import { c as s } from "../../chunks/vendor-D-uL_icH.js";
|
|
3
|
+
const c = "radioXGroup__b5727c09", _ = "label__a228ac39", n = {
|
|
4
|
+
radioXGroup: c,
|
|
5
|
+
"indent-12": "indent-12__e8fd8ebf",
|
|
6
|
+
label: _,
|
|
7
|
+
"indent-16": "indent-16__1a5d9f91",
|
|
8
|
+
"indent-20": "indent-20__b9096aeb",
|
|
9
|
+
"indent-24": "indent-24__2c389c32",
|
|
10
|
+
"indent-28": "indent-28__752184a6",
|
|
11
|
+
"indent-32": "indent-32__af1075cf"
|
|
12
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 });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
const
|
|
4
|
-
radioYGroup:
|
|
5
|
-
},
|
|
6
|
-
const { children: r, className: s, ...a } = o,
|
|
7
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "../../chunks/vendor-D-uL_icH.js";
|
|
3
|
+
const p = "radioYGroup__300812ec", t = {
|
|
4
|
+
radioYGroup: p
|
|
5
|
+
}, d = (o) => {
|
|
6
|
+
const { children: r, className: s, ...a } = o, c = e(t.radioYGroup, s);
|
|
7
|
+
return /* @__PURE__ */ i("div", { className: c, role: "radiogroup", ...a, children: r });
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
d.displayName = "RadioYGroup";
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
d as RadioYGroup
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=RadioYGroup.js.map
|
package/components/Row/Row.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
const
|
|
4
|
-
row:
|
|
5
|
-
noPaddingBottom:
|
|
6
|
-
},
|
|
7
|
-
const
|
|
8
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../chunks/vendor-D-uL_icH.js";
|
|
3
|
+
const m = "row__e936ac25", i = "noPaddingBottom__af38257c", o = {
|
|
4
|
+
row: m,
|
|
5
|
+
noPaddingBottom: i
|
|
6
|
+
}, e = ({ children: t, className: n, paddingBottom: s = !0, ...r }) => {
|
|
7
|
+
const a = d(n, o.row, { [o.noPaddingBottom]: !s });
|
|
8
|
+
return /* @__PURE__ */ c("div", { className: a, ...r, children: t });
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
e.displayName = "Row";
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
e 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 d } from "./enums.js";
|
|
2
|
+
import { SegmentedControlSegment as N } from "./SegmentedControlSegment.js";
|
|
3
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
4
|
+
import L from "react";
|
|
5
|
+
import { c as R } from "../../chunks/vendor-D-uL_icH.js";
|
|
6
|
+
import { SegmentedControlContext as h } from "./SegmentedControlContext.js";
|
|
7
|
+
const x = "segmentedControl__e439d7f9", M = "general1__1fa4e819", T = "secondary1__e1e701c0", A = "general2__92d13ed6", G = "secondary2__18395e7d", b = "sm__217a3473", D = "md__9618954e", O = "lg__f75cc505", e = {
|
|
8
|
+
segmentedControl: x,
|
|
9
|
+
general1: M,
|
|
10
|
+
secondary1: T,
|
|
11
|
+
general2: A,
|
|
12
|
+
secondary2: G,
|
|
13
|
+
sm: b,
|
|
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
|
+
L.forwardRef(
|
|
27
|
+
({ children: l, className: g, value: n, theme: _, type: a, size: i, disabled: C, onSelect: t, ...f }, S) => {
|
|
28
|
+
const E = R(
|
|
29
|
+
e.segmentedControl,
|
|
30
|
+
j[_],
|
|
31
|
+
v[i],
|
|
32
|
+
g
|
|
33
|
+
), p = ({
|
|
34
|
+
selected: m,
|
|
35
|
+
value: s
|
|
36
|
+
}) => {
|
|
37
|
+
switch (a) {
|
|
38
|
+
case d.SINGLE:
|
|
39
|
+
m && t(s);
|
|
40
|
+
break;
|
|
41
|
+
case d.MULTIPLE:
|
|
42
|
+
t(m ? [...n, s] : [...n].filter((y) => y !== s));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
return /* @__PURE__ */ c(
|
|
46
|
+
h.Provider,
|
|
47
|
+
{
|
|
48
|
+
value: {
|
|
49
|
+
type: a,
|
|
50
|
+
value: n,
|
|
51
|
+
disabled: !!C,
|
|
52
|
+
onSegmentSelect: p
|
|
53
|
+
},
|
|
54
|
+
children: /* @__PURE__ */ c("div", { className: E, ...f, "data-tx": "1.1.0", ref: S, children: l })
|
|
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 x } 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__82f9193f", E = "selected__ded48ae3", I = "content__0dbe8ef6", 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
|
+
} = x(_), 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 = (b) => {
|
|
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(b);
|
|
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 b, EVENT_KEY_CODES as K } 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__e1c16bd5", 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 && b(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: K.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-y6Rvj_dd.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
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { jsxs as L, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import N, { useRef as O } from "react";
|
|
3
|
+
import A from "@sberbusiness/icons-next/CaretdownStrokeSrvIcon24";
|
|
4
|
+
import { EVENT_KEY_CODES as s } from "../../../utils/keyboard.js";
|
|
5
|
+
import { LoaderSmall as y } from "../../Loader/LoaderSmall/LoaderSmall.js";
|
|
6
|
+
import { ELoaderSmallTheme as B, ELoaderSmallSize as C } from "../../Loader/LoaderSmall/enum.js";
|
|
7
|
+
import "../../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
8
|
+
import { c as E } from "../../../chunks/vendor-D-uL_icH.js";
|
|
9
|
+
import { FormField as P } from "../../FormField/FormField.js";
|
|
10
|
+
import "../../FormField/components/FormFieldDescription.js";
|
|
11
|
+
import "../../FormField/components/FormFieldCounter.js";
|
|
12
|
+
import { FormFieldLabel as k } from "../../FormField/components/FormFieldLabel.js";
|
|
13
|
+
import "../../FormField/components/FormFieldClear.js";
|
|
14
|
+
import { FormFieldTarget as w } from "../../FormField/components/FormFieldTarget.js";
|
|
15
|
+
import "../../../chunks/FormFieldInput-apk1b0w6.js";
|
|
16
|
+
import "../../FormField/components/FormFieldMaskedInput.js";
|
|
17
|
+
import { FormFieldPostfix as z } from "../../FormField/components/FormFieldPostfix.js";
|
|
18
|
+
import "../../FormField/components/FormFieldPrefix.js";
|
|
19
|
+
import "../../FormField/components/FormFieldTextarea.js";
|
|
20
|
+
import { EFormFieldStatus as n } from "../../FormField/enums.js";
|
|
21
|
+
const W = "selectExtendedFieldTarget__dc3507f6", j = "caretIcon__302a605b", K = "selectOpened__322f7e0c", G = "loading__7f9a42cf", U = "disabled__0fe33e7f", t = {
|
|
22
|
+
selectExtendedFieldTarget: W,
|
|
23
|
+
caretIcon: j,
|
|
24
|
+
selectOpened: K,
|
|
25
|
+
loading: G,
|
|
26
|
+
disabled: U
|
|
27
|
+
}, V = N.forwardRef(
|
|
28
|
+
(x, d) => {
|
|
29
|
+
const {
|
|
30
|
+
children: Y,
|
|
31
|
+
className: g,
|
|
32
|
+
label: i,
|
|
33
|
+
placeholder: c,
|
|
34
|
+
onKeyDown: m,
|
|
35
|
+
onClick: p,
|
|
36
|
+
opened: o,
|
|
37
|
+
setOpened: f,
|
|
38
|
+
loading: r,
|
|
39
|
+
size: F,
|
|
40
|
+
status: l,
|
|
41
|
+
tabIndex: _,
|
|
42
|
+
fieldLabel: u,
|
|
43
|
+
...S
|
|
44
|
+
} = x, b = O(null), D = E(
|
|
45
|
+
t.selectExtendedFieldTarget,
|
|
46
|
+
{
|
|
47
|
+
[t.selectOpened]: o,
|
|
48
|
+
[t.loading]: r,
|
|
49
|
+
[t.disabled]: l === n.DISABLED
|
|
50
|
+
},
|
|
51
|
+
g
|
|
52
|
+
), I = () => l === n.DISABLED || r ? -1 : _ || 0, h = (e) => {
|
|
53
|
+
r && l === n.DISABLED || (f(!o), p == null || p(e));
|
|
54
|
+
}, R = (e) => {
|
|
55
|
+
r && l === n.DISABLED || (o || [
|
|
56
|
+
s.SPACE,
|
|
57
|
+
s.ENTER,
|
|
58
|
+
s.ARROW_DOWN,
|
|
59
|
+
s.ARROW_UP
|
|
60
|
+
].includes(e.keyCode) && (e.preventDefault(), e.stopPropagation(), f(!o)), m == null || m(e));
|
|
61
|
+
}, T = (e) => {
|
|
62
|
+
b.current = e, typeof d == "function" ? d(e) : d && (d.current = e);
|
|
63
|
+
};
|
|
64
|
+
return /* @__PURE__ */ L(
|
|
65
|
+
P,
|
|
66
|
+
{
|
|
67
|
+
onClick: h,
|
|
68
|
+
tabIndex: I(),
|
|
69
|
+
onKeyDown: R,
|
|
70
|
+
status: l,
|
|
71
|
+
size: F,
|
|
72
|
+
className: D,
|
|
73
|
+
"aria-expanded": o,
|
|
74
|
+
"aria-haspopup": "listbox",
|
|
75
|
+
"data-tx": "1.1.0",
|
|
76
|
+
...S,
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ a(k, { floating: !!i || !!c, children: u }),
|
|
79
|
+
/* @__PURE__ */ a(
|
|
80
|
+
w,
|
|
81
|
+
{
|
|
82
|
+
ref: T,
|
|
83
|
+
className: E(t.target, {
|
|
84
|
+
[t.placeholder]: !!c && !i,
|
|
85
|
+
[t.label]: !!i
|
|
86
|
+
}),
|
|
87
|
+
placeholder: c,
|
|
88
|
+
children: i
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ a(z, { children: r ? /* @__PURE__ */ a(y, { size: C.LG, theme: B.BRAND }) : /* @__PURE__ */ a(A, { paletteIndex: 5, className: t.caretIcon }) })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
V.displayName = "SelectExtendedFieldTarget";
|
|
98
|
+
export {
|
|
99
|
+
V as SelectExtendedFieldTarget
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=SelectExtendedFieldTarget.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SelectExtendedField as t } from "./SelectExtendedField.js";
|
|
2
|
+
import { SelectExtendedFieldDropdown as r } from "./components/SelectExtendedFieldDropdown.js";
|
|
3
|
+
import { SelectExtendedFieldTarget as x } from "./components/SelectExtendedFieldTarget.js";
|
|
4
|
+
export {
|
|
5
|
+
t as SelectExtendedField,
|
|
6
|
+
r as SelectExtendedFieldDropdown,
|
|
7
|
+
x as SelectExtendedFieldTarget
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|