@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
|
@@ -15,8 +15,8 @@ import { AlertProcess_Tokens as a } from "./components/AlertProcess.js";
|
|
|
15
15
|
import { Dropdown_Tokens as f } from "./components/Dropdown.js";
|
|
16
16
|
import { DropdownList_Tokens as H } from "./components/DropdownList.js";
|
|
17
17
|
import { DropdownMobile_Tokens as G } from "./components/DropdownMobile.js";
|
|
18
|
-
import { DropdownMobileList_Tokens as
|
|
19
|
-
import { Overlay_Tokens as
|
|
18
|
+
import { DropdownMobileList_Tokens as d } from "./components/DropdownMobileList.js";
|
|
19
|
+
import { Overlay_Tokens as _ } from "./components/Overlay.js";
|
|
20
20
|
import { ListItem_Tokens as l } from "./components/ListItem.js";
|
|
21
21
|
import { ListItemControlsButton_Tokens as g } from "./components/ListItemControlsButton.js";
|
|
22
22
|
import { ListMaster_Tokens as C } from "./components/ListMaster.js";
|
|
@@ -29,7 +29,8 @@ import { SegmentedControl_Tokens as x } from "./components/SegmentedControl.js";
|
|
|
29
29
|
import { SegmentedControlSegment_Tokens as y } from "./components/SegmentedControlSegment.js";
|
|
30
30
|
import { HeaderPage_Tokens as h } from "./components/HeaderPage.js";
|
|
31
31
|
import { FooterPage_Tokens as F } from "./components/FooterPage.js";
|
|
32
|
-
|
|
32
|
+
import { Island_Tokens as M } from "./components/Island.js";
|
|
33
|
+
const Lo = {
|
|
33
34
|
Button: e(o.LIGHT, r),
|
|
34
35
|
Checkbox: e(o.LIGHT, t),
|
|
35
36
|
FormField: e(o.LIGHT, m),
|
|
@@ -50,7 +51,7 @@ const so = {
|
|
|
50
51
|
),
|
|
51
52
|
DropdownMobileList: e(
|
|
52
53
|
o.LIGHT,
|
|
53
|
-
|
|
54
|
+
d
|
|
54
55
|
),
|
|
55
56
|
Tabs: e(o.LIGHT, T),
|
|
56
57
|
Typography: e(
|
|
@@ -66,7 +67,7 @@ const so = {
|
|
|
66
67
|
o.LIGHT,
|
|
67
68
|
a
|
|
68
69
|
),
|
|
69
|
-
Overlay: e(o.LIGHT,
|
|
70
|
+
Overlay: e(o.LIGHT, _),
|
|
70
71
|
ListItem: e(o.LIGHT, l),
|
|
71
72
|
ListItemControlsButton: e(
|
|
72
73
|
o.LIGHT,
|
|
@@ -103,9 +104,10 @@ const so = {
|
|
|
103
104
|
FooterPage: e(
|
|
104
105
|
o.LIGHT,
|
|
105
106
|
F
|
|
106
|
-
)
|
|
107
|
+
),
|
|
108
|
+
Island: e(o.LIGHT, M)
|
|
107
109
|
};
|
|
108
110
|
export {
|
|
109
|
-
|
|
111
|
+
Lo as DesignTokensComponents
|
|
110
112
|
};
|
|
111
113
|
//# sourceMappingURL=DesignTokensComponents.js.map
|
|
@@ -10,13 +10,13 @@ import { LoaderWidget_Tokens as p } from "./components/LoaderWidget.js";
|
|
|
10
10
|
import { Radio_Tokens as T } from "./components/Radio.js";
|
|
11
11
|
import { Typography_Tokens as D } from "./components/Typography.js";
|
|
12
12
|
import { Tooltip_Tokens as k } from "./components/Tooltip.js";
|
|
13
|
-
import { AlertContext_Tokens as
|
|
14
|
-
import { AlertProcess_Tokens as
|
|
13
|
+
import { AlertContext_Tokens as a } from "./components/AlertContext.js";
|
|
14
|
+
import { AlertProcess_Tokens as A } from "./components/AlertProcess.js";
|
|
15
15
|
import { Dropdown_Tokens as f } from "./components/Dropdown.js";
|
|
16
16
|
import { DropdownList_Tokens as R } from "./components/DropdownList.js";
|
|
17
|
-
import { DropdownMobile_Tokens as
|
|
18
|
-
import { DropdownMobileList_Tokens as
|
|
19
|
-
import { Overlay_Tokens as
|
|
17
|
+
import { DropdownMobile_Tokens as d } from "./components/DropdownMobile.js";
|
|
18
|
+
import { DropdownMobileList_Tokens as K } from "./components/DropdownMobileList.js";
|
|
19
|
+
import { Overlay_Tokens as _ } from "./components/Overlay.js";
|
|
20
20
|
import { ListItem_Tokens as l } from "./components/ListItem.js";
|
|
21
21
|
import { ListItemControlsButton_Tokens as g } from "./components/ListItemControlsButton.js";
|
|
22
22
|
import { ListMaster_Tokens as L } from "./components/ListMaster.js";
|
|
@@ -29,7 +29,8 @@ import { SegmentedControl_Tokens as h } from "./components/SegmentedControl.js";
|
|
|
29
29
|
import { SegmentedControlSegment_Tokens as x } from "./components/SegmentedControlSegment.js";
|
|
30
30
|
import { HeaderPage_Tokens as y } from "./components/HeaderPage.js";
|
|
31
31
|
import { FooterPage_Tokens as F } from "./components/FooterPage.js";
|
|
32
|
-
|
|
32
|
+
import { Island_Tokens as I } from "./components/Island.js";
|
|
33
|
+
const Do = {
|
|
33
34
|
Button: e(o.DARK, r),
|
|
34
35
|
Checkbox: e(o.DARK, t),
|
|
35
36
|
FormField: e(o.DARK, m),
|
|
@@ -48,11 +49,11 @@ const po = {
|
|
|
48
49
|
Tooltip: e(o.DARK, k),
|
|
49
50
|
AlertContext: e(
|
|
50
51
|
o.DARK,
|
|
51
|
-
|
|
52
|
+
a
|
|
52
53
|
),
|
|
53
54
|
AlertProcess: e(
|
|
54
55
|
o.DARK,
|
|
55
|
-
|
|
56
|
+
A
|
|
56
57
|
),
|
|
57
58
|
Dropdown: e(o.DARK, f),
|
|
58
59
|
DropdownList: e(
|
|
@@ -61,13 +62,13 @@ const po = {
|
|
|
61
62
|
),
|
|
62
63
|
DropdownMobile: e(
|
|
63
64
|
o.DARK,
|
|
64
|
-
|
|
65
|
+
d
|
|
65
66
|
),
|
|
66
67
|
DropdownMobileList: e(
|
|
67
68
|
o.DARK,
|
|
68
|
-
|
|
69
|
+
K
|
|
69
70
|
),
|
|
70
|
-
Overlay: e(o.DARK,
|
|
71
|
+
Overlay: e(o.DARK, _),
|
|
71
72
|
ListItem: e(o.DARK, l),
|
|
72
73
|
ListItemControlsButton: e(
|
|
73
74
|
o.DARK,
|
|
@@ -103,9 +104,10 @@ const po = {
|
|
|
103
104
|
FooterPage: e(
|
|
104
105
|
o.DARK,
|
|
105
106
|
F
|
|
106
|
-
)
|
|
107
|
+
),
|
|
108
|
+
Island: e(o.DARK, I)
|
|
107
109
|
};
|
|
108
110
|
export {
|
|
109
|
-
|
|
111
|
+
Do as DesignTokensComponentsThemeDark
|
|
110
112
|
};
|
|
111
113
|
//# sourceMappingURL=DesignTokensComponentsThemeDark.js.map
|
|
@@ -17,6 +17,15 @@ const r = [
|
|
|
17
17
|
"Secondary_Color_Disabled",
|
|
18
18
|
"Secondary_Color_Hover",
|
|
19
19
|
"Secondary_Shadow_Focus",
|
|
20
|
+
"SecondaryLight_Background_Active",
|
|
21
|
+
"SecondaryLight_Background_Default",
|
|
22
|
+
"SecondaryLight_Background_Disabled",
|
|
23
|
+
"SecondaryLight_Background_Hover",
|
|
24
|
+
"SecondaryLight_Color_Active",
|
|
25
|
+
"SecondaryLight_Color_Default",
|
|
26
|
+
"SecondaryLight_Color_Disabled",
|
|
27
|
+
"SecondaryLight_Color_Hover",
|
|
28
|
+
"SecondaryLight_Shadow_Focus",
|
|
20
29
|
"Danger_Background_Active",
|
|
21
30
|
"Danger_Background_Default",
|
|
22
31
|
"Danger_Background_Disabled",
|
|
@@ -69,6 +78,24 @@ const r = [
|
|
|
69
78
|
// var(--triplex-next-Button-Secondary_Color_Hover)
|
|
70
79
|
Secondary_Shadow_Focus: [{ value: "0 0 0 1px #FFD169 inset" }, { value: "0 0 0 1px #FFD169 inset" }],
|
|
71
80
|
// var(--triplex-next-Button-Secondary_Shadow_Focus)
|
|
81
|
+
SecondaryLight_Background_Active: [{ ref: "ColorNeutral.40" }, { ref: "ColorDarkNeutral.70" }],
|
|
82
|
+
// var(--triplex-next-Button-SecondaryLight_Background_Active)
|
|
83
|
+
SecondaryLight_Background_Default: [{ ref: "ColorNeutral.100" }, { ref: "ColorDarkNeutral.50" }],
|
|
84
|
+
// var(--triplex-next-Button-SecondaryLight_Background_Default)
|
|
85
|
+
SecondaryLight_Background_Disabled: [{ ref: "ColorNeutral.90" }, { ref: "ColorDarkNeutral.60" }],
|
|
86
|
+
// var(--triplex-next-Button-SecondaryLight_Background_Disabled)
|
|
87
|
+
SecondaryLight_Background_Hover: [{ ref: "ColorNeutral.80" }, { ref: "ColorDarkNeutral.60" }],
|
|
88
|
+
// var(--triplex-next-Button-SecondaryLight_Background_Hover)
|
|
89
|
+
SecondaryLight_Color_Active: [{ ref: "ColorBrand.30" }, { ref: "ColorBrand.40" }],
|
|
90
|
+
// var(--triplex-next-Button-SecondaryLight_Color_Active)
|
|
91
|
+
SecondaryLight_Color_Default: [{ ref: "ColorBrand.40" }, { ref: "ColorBrand.60" }],
|
|
92
|
+
// var(--triplex-next-Button-SecondaryLight_Color_Default)
|
|
93
|
+
SecondaryLight_Color_Disabled: [{ ref: "ColorDarkNeutralAlpha.70" }, { ref: "ColorNeutralAlpha.80" }],
|
|
94
|
+
// var(--triplex-next-Button-SecondaryLight_Color_Disabled)
|
|
95
|
+
SecondaryLight_Color_Hover: [{ ref: "ColorBrand.50" }, { ref: "ColorBrand.70" }],
|
|
96
|
+
// var(--triplex-next-Button-SecondaryLight_Color_Hover)
|
|
97
|
+
SecondaryLight_Shadow_Focus: [{ value: "0 0 0 1px #FFD169 inset" }, { value: "0 0 0 1px #FFD169 inset" }],
|
|
98
|
+
// var(--triplex-next-Button-SecondaryLight_Shadow_Focus)
|
|
72
99
|
Danger_Background_Active: [{ ref: "ColorError.30" }, { ref: "ColorError.30" }],
|
|
73
100
|
// var(--triplex-next-Button-Danger_Background_Active)
|
|
74
101
|
Danger_Background_Default: [{ ref: "ColorError.50" }, { ref: "ColorError.50" }],
|
|
@@ -5,31 +5,47 @@ const r = [
|
|
|
5
5
|
"Background_Error",
|
|
6
6
|
"Background_Error_Hover",
|
|
7
7
|
"Background_Hover",
|
|
8
|
+
"Background_Warning",
|
|
9
|
+
"Background_Warning_Hover",
|
|
8
10
|
"Input_Color_Default",
|
|
9
11
|
"Input_Color_Disabled",
|
|
12
|
+
"Target_Color_Default",
|
|
13
|
+
"Target_Color_Disabled",
|
|
14
|
+
"Target_PlaceholderColor_Default",
|
|
10
15
|
"Label_Color_Default",
|
|
11
16
|
"Label_Color_Disabled",
|
|
12
17
|
"Shadow_Active",
|
|
13
18
|
"Shadow_Default",
|
|
14
19
|
"Shadow_Error_Active",
|
|
20
|
+
"Shadow_Warning_Active",
|
|
15
21
|
"Placeholder_Color"
|
|
16
22
|
], o = {
|
|
17
|
-
Background_Active: [{ ref: "ColorNeutral.90" }, { ref: "ColorDarkNeutral.
|
|
23
|
+
Background_Active: [{ ref: "ColorNeutral.90" }, { ref: "ColorDarkNeutral.80" }],
|
|
18
24
|
// var(--triplex-next-FormField-Background_Active)
|
|
19
|
-
Background_Default: [{ ref: "ColorNeutral.90" }, { ref: "ColorDarkNeutral.
|
|
25
|
+
Background_Default: [{ ref: "ColorNeutral.90" }, { ref: "ColorDarkNeutral.80" }],
|
|
20
26
|
// var(--triplex-next-FormField-Background_Default)
|
|
21
|
-
Background_Disabled: [{ ref: "ColorNeutral.90" }, { ref: "ColorDarkNeutral.
|
|
27
|
+
Background_Disabled: [{ ref: "ColorNeutral.90" }, { ref: "ColorDarkNeutral.60" }],
|
|
22
28
|
// var(--triplex-next-FormField-Background_Disabled)
|
|
23
29
|
Background_Error: [{ ref: "ColorError.100" }, { ref: "ColorError.0" }],
|
|
24
30
|
// var(--triplex-next-FormField-Background_Error)
|
|
25
31
|
Background_Error_Hover: [{ ref: "ColorError.90" }, { ref: "ColorError.10" }],
|
|
26
32
|
// var(--triplex-next-FormField-Background_Error_Hover)
|
|
27
|
-
Background_Hover: [{ ref: "ColorNeutral.70" }, { ref: "ColorDarkNeutral.
|
|
33
|
+
Background_Hover: [{ ref: "ColorNeutral.70" }, { ref: "ColorDarkNeutral.90" }],
|
|
28
34
|
// var(--triplex-next-FormField-Background_Hover)
|
|
35
|
+
Background_Warning: [{ ref: "ColorWarning.100" }, { ref: "ColorWarning.0" }],
|
|
36
|
+
// var(--triplex-next-FormField-Background_Warning)
|
|
37
|
+
Background_Warning_Hover: [{ ref: "ColorWarning.90" }, { ref: "ColorWarning.10" }],
|
|
38
|
+
// var(--triplex-next-FormField-Background_Warning_Hover)
|
|
29
39
|
Input_Color_Default: [{ ref: "ColorDarkNeutralAlpha.0" }, { ref: "ColorNeutralAlpha.0" }],
|
|
30
40
|
// var(--triplex-next-FormField-Input_Color_Default)
|
|
31
41
|
Input_Color_Disabled: [{ ref: "ColorDarkNeutralAlpha.60" }, { ref: "ColorNeutralAlpha.70" }],
|
|
32
42
|
// var(--triplex-next-FormField-Input_Color_Disabled)
|
|
43
|
+
Target_Color_Default: [{ ref: "ColorDarkNeutralAlpha.0" }, { ref: "ColorNeutralAlpha.0" }],
|
|
44
|
+
// var(--triplex-next-FormField-Target_Color_Default)
|
|
45
|
+
Target_Color_Disabled: [{ ref: "ColorDarkNeutralAlpha.60" }, { ref: "ColorNeutralAlpha.70" }],
|
|
46
|
+
// var(--triplex-next-FormField-Target_Color_Disabled)
|
|
47
|
+
Target_PlaceholderColor_Default: [{ ref: "ColorDarkNeutralAlpha.40" }, { ref: "ColorNeutralAlpha.50" }],
|
|
48
|
+
// var(--triplex-next-FormField-Target_PlaceholderColor_Default)
|
|
33
49
|
Label_Color_Default: [{ ref: "ColorDarkNeutralAlpha.40" }, { ref: "ColorNeutralAlpha.50" }],
|
|
34
50
|
// var(--triplex-next-FormField-Label_Color_Default)
|
|
35
51
|
Label_Color_Disabled: [{ ref: "ColorDarkNeutralAlpha.60" }, { ref: "ColorNeutralAlpha.70" }],
|
|
@@ -40,6 +56,8 @@ const r = [
|
|
|
40
56
|
// var(--triplex-next-FormField-Shadow_Default)
|
|
41
57
|
Shadow_Error_Active: [{ value: "0 0 0 1px #E60037 inset" }, { value: "0 0 0 1px #E60037 inset" }],
|
|
42
58
|
// var(--triplex-next-FormField-Shadow_Error_Active)
|
|
59
|
+
Shadow_Warning_Active: [{ value: "0 0 0 1px #FD6508 inset" }, { value: "0 0 0 1px #FD6508 inset" }],
|
|
60
|
+
// var(--triplex-next-FormField-Shadow_Warning_Active)
|
|
43
61
|
Placeholder_Color: [{ ref: "ColorDarkNeutralAlpha.40" }, { ref: "ColorNeutralAlpha.50" }]
|
|
44
62
|
// var(--triplex-next-FormField-Placeholder_Color)
|
|
45
63
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
"Type1_Background",
|
|
3
|
+
"Type2_Background",
|
|
4
|
+
"Type3_Background",
|
|
5
|
+
"Type1_Shadow",
|
|
6
|
+
"Type2_Shadow",
|
|
7
|
+
"Type3_Shadow"
|
|
8
|
+
], a = {
|
|
9
|
+
Type1_Background: [{ ref: "ColorNeutral.100" }, { ref: "ColorDarkNeutral.30" }],
|
|
10
|
+
// var(--triplex-next-Island-Type1_Background)
|
|
11
|
+
Type2_Background: [{ ref: "ColorNeutralAlpha.70" }, { ref: "ColorDarkNeutralAlpha.50" }],
|
|
12
|
+
// var(--triplex-next-Island-Type2_Background)
|
|
13
|
+
Type3_Background: [{ ref: "ColorNeutral.90" }, { ref: "ColorDarkNeutral.30" }],
|
|
14
|
+
// var(--triplex-next-Island-Type3_Background)
|
|
15
|
+
Type1_Shadow: [{ value: "0 0 0 1px #FFFFFF inset" }, { value: "0 0 0 1px #1F1F22 inset" }],
|
|
16
|
+
// var(--triplex-next-Island-Type1_Shadow)
|
|
17
|
+
Type2_Shadow: [{ value: "0 0 0 1px #FFFFFF inset" }, { value: "0 0 0 1px #19BDB0 inset" }],
|
|
18
|
+
// var(--triplex-next-Island-Type2_Shadow)
|
|
19
|
+
Type3_Shadow: [{ value: "0 0 0 1px #F2F4F7 inset" }, { value: "0 0 0 1px #1F1F22 inset" }]
|
|
20
|
+
// var(--triplex-next-Island-Type3_Shadow)
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
a as Island_Tokens,
|
|
24
|
+
e as designTokensComponentsIslandKeys
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Island.js.map
|
|
@@ -7,8 +7,8 @@ import { Loader_Tokens as f, designTokensComponentsLoaderKeys as K } from "./Loa
|
|
|
7
7
|
import { LoaderWidget_Tokens as l, designTokensComponentsLoaderWidgetKeys as L } from "./LoaderWidget.js";
|
|
8
8
|
import { Radio_Tokens as b, designTokensComponentsRadioKeys as w } from "./Radio.js";
|
|
9
9
|
import { Typography_Tokens as S, designTokensComponentsTypographyKeys as F } from "./Typography.js";
|
|
10
|
-
import { Tooltip_Tokens as
|
|
11
|
-
import { AlertContext_Tokens as
|
|
10
|
+
import { Tooltip_Tokens as M, designTokensComponentsTooltipKeys as c } from "./Tooltip.js";
|
|
11
|
+
import { AlertContext_Tokens as u, designTokensComponentsAlertContextKeys as A } from "./AlertContext.js";
|
|
12
12
|
import { AlertProcess_Tokens as v, designTokensComponentsAlertProcessKeys as H } from "./AlertProcess.js";
|
|
13
13
|
import { Dropdown_Tokens as R, designTokensComponentsDropdownKeys as U } from "./Dropdown.js";
|
|
14
14
|
import { DropdownList_Tokens as Z, designTokensComponentsDropdownListKeys as j } from "./DropdownList.js";
|
|
@@ -24,11 +24,12 @@ import { Pagination_Tokens as xo, designTokensComponentsPaginationKeys as ao } f
|
|
|
24
24
|
import { Card_Tokens as Ko, designTokensComponentsCardKeys as _o } from "./Card.js";
|
|
25
25
|
import { Skeleton_Tokens as Lo, designTokensComponentsSkeletonKeys as Po } from "./Skeleton.js";
|
|
26
26
|
import { SegmentedControl_Tokens as wo, designTokensComponentsSegmentedControlKeys as Do } from "./SegmentedControl.js";
|
|
27
|
-
import { SegmentedControlSegment_Tokens as Fo, designTokensComponentsSegmentedControlSegmentKeys as
|
|
28
|
-
import { HeaderPage_Tokens as
|
|
29
|
-
import { FooterPage_Tokens as
|
|
27
|
+
import { SegmentedControlSegment_Tokens as Fo, designTokensComponentsSegmentedControlSegmentKeys as Io } from "./SegmentedControlSegment.js";
|
|
28
|
+
import { HeaderPage_Tokens as co, designTokensComponentsHeaderPageKeys as ho } from "./HeaderPage.js";
|
|
29
|
+
import { FooterPage_Tokens as Ao, designTokensComponentsFooterPageKeys as Bo } from "./FooterPage.js";
|
|
30
|
+
import { Island_Tokens as Ho, designTokensComponentsIslandKeys as Oo } from "./Island.js";
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
u as AlertContext_Tokens,
|
|
32
33
|
v as AlertProcess_Tokens,
|
|
33
34
|
n as Button_Tokens,
|
|
34
35
|
Ko as Card_Tokens,
|
|
@@ -37,9 +38,10 @@ export {
|
|
|
37
38
|
J as DropdownMobileList_Tokens,
|
|
38
39
|
z as DropdownMobile_Tokens,
|
|
39
40
|
R as Dropdown_Tokens,
|
|
40
|
-
|
|
41
|
+
Ao as FooterPage_Tokens,
|
|
41
42
|
k as FormField_Tokens,
|
|
42
|
-
|
|
43
|
+
co as HeaderPage_Tokens,
|
|
44
|
+
Ho as Island_Tokens,
|
|
43
45
|
i as Link_Tokens,
|
|
44
46
|
no as ListItemControlsButton_Tokens,
|
|
45
47
|
$ as ListItem_Tokens,
|
|
@@ -54,10 +56,10 @@ export {
|
|
|
54
56
|
wo as SegmentedControl_Tokens,
|
|
55
57
|
Lo as Skeleton_Tokens,
|
|
56
58
|
y as Tabs_Tokens,
|
|
57
|
-
|
|
59
|
+
M as Tooltip_Tokens,
|
|
58
60
|
S as Typography_Tokens,
|
|
59
61
|
go as UploadZone_Tokens,
|
|
60
|
-
|
|
62
|
+
A as designTokensComponentsAlertContextKeys,
|
|
61
63
|
H as designTokensComponentsAlertProcessKeys,
|
|
62
64
|
s as designTokensComponentsButtonKeys,
|
|
63
65
|
_o as designTokensComponentsCardKeys,
|
|
@@ -66,9 +68,10 @@ export {
|
|
|
66
68
|
j as designTokensComponentsDropdownListKeys,
|
|
67
69
|
E as designTokensComponentsDropdownMobileKeys,
|
|
68
70
|
N as designTokensComponentsDropdownMobileListKeys,
|
|
69
|
-
|
|
71
|
+
Bo as designTokensComponentsFooterPageKeys,
|
|
70
72
|
T as designTokensComponentsFormFieldKeys,
|
|
71
|
-
|
|
73
|
+
ho as designTokensComponentsHeaderPageKeys,
|
|
74
|
+
Oo as designTokensComponentsIslandKeys,
|
|
72
75
|
g as designTokensComponentsLinkKeys,
|
|
73
76
|
so as designTokensComponentsListItemControlsButtonKeys,
|
|
74
77
|
oo as designTokensComponentsListItemKeys,
|
|
@@ -80,10 +83,10 @@ export {
|
|
|
80
83
|
ao as designTokensComponentsPaginationKeys,
|
|
81
84
|
w as designTokensComponentsRadioKeys,
|
|
82
85
|
Do as designTokensComponentsSegmentedControlKeys,
|
|
83
|
-
|
|
86
|
+
Io as designTokensComponentsSegmentedControlSegmentKeys,
|
|
84
87
|
Po as designTokensComponentsSkeletonKeys,
|
|
85
88
|
x as designTokensComponentsTabsKeys,
|
|
86
|
-
|
|
89
|
+
c as designTokensComponentsTooltipKeys,
|
|
87
90
|
F as designTokensComponentsTypographyKeys,
|
|
88
91
|
Co as designTokensComponentsUploadZoneKeys
|
|
89
92
|
};
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "../Portal/Portal.js";
|
|
4
|
-
import {
|
|
5
|
-
import "./mobile/DropdownMobile.js";
|
|
6
|
-
import "../MobileView/MobileView.js";
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import h, { useRef as l, useEffect as o } from "react";
|
|
3
|
+
import { Portal as x } from "../Portal/Portal.js";
|
|
4
|
+
import { DropdownDesktop as i } from "./desktop/DropdownDesktop.js";
|
|
5
|
+
import { DropdownMobile as y } from "./mobile/DropdownMobile.js";
|
|
6
|
+
import { MobileView as M } from "../MobileView/MobileView.js";
|
|
7
|
+
const _ = h.forwardRef(
|
|
8
|
+
({ children: c, opened: r, setOpened: a, onOpen: m, onClose: u, mobileViewProps: t, ...D }, d) => {
|
|
9
|
+
const R = l(!1);
|
|
10
|
+
return o(() => {
|
|
11
|
+
R.current ? r ? m == null || m() : u == null || u() : R.current = !0;
|
|
12
|
+
}, [r]), /* @__PURE__ */ f(x, { container: document.body, children: t ? /* @__PURE__ */ f(
|
|
13
|
+
M,
|
|
14
|
+
{
|
|
15
|
+
fallback: /* @__PURE__ */ f(i, { opened: r, setOpened: a, ...D, ref: d, children: c }),
|
|
16
|
+
children: /* @__PURE__ */ f(y, { opened: r, setOpened: a, ...t, ref: d, children: (t == null ? void 0 : t.children) || c })
|
|
17
|
+
}
|
|
18
|
+
) : /* @__PURE__ */ f(i, { opened: r, setOpened: a, ...D, ref: d, children: c }) });
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
_.displayName = "Dropdown";
|
|
7
22
|
export {
|
|
8
|
-
|
|
23
|
+
_ as Dropdown
|
|
9
24
|
};
|
|
10
25
|
//# sourceMappingURL=Dropdown.js.map
|
|
@@ -1,21 +1,97 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import "../../../
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
2
|
+
import G, { useState as M, useRef as A, useCallback as i, useEffect as _ } from "react";
|
|
3
|
+
import { EDropdownAlignment as E, EDropdownDirection as O, EDropdownSize as F } from "../enums.js";
|
|
4
|
+
import { isKey as d } from "../../../utils/keyboard.js";
|
|
5
|
+
import { useToken as I } from "../../ThemeProvider/useToken.js";
|
|
6
|
+
import { c as j } from "../../../chunks/vendor-D-uL_icH.js";
|
|
7
|
+
const K = "dropdown__c18f5706", V = "dropdownOverflowHidden__1b51027c", k = {
|
|
8
|
+
dropdown: K,
|
|
9
|
+
"dropdown-sm": "dropdown-sm__4bdc5134",
|
|
10
|
+
"dropdown-md": "dropdown-md__11f9af55",
|
|
11
|
+
"dropdown-lg": "dropdown-lg__c2ced613",
|
|
12
|
+
dropdownOverflowHidden: V
|
|
13
|
+
}, N = "dropdownOverflowHidden", $ = G.forwardRef((P, w) => {
|
|
14
|
+
const {
|
|
15
|
+
alignment: p = E.AUTO,
|
|
16
|
+
children: D,
|
|
17
|
+
fixedWidth: u,
|
|
18
|
+
className: W,
|
|
19
|
+
direction: h = O.AUTO,
|
|
20
|
+
opened: l,
|
|
21
|
+
setOpened: q,
|
|
22
|
+
style: f,
|
|
23
|
+
targetRef: H,
|
|
24
|
+
size: C = F.MD,
|
|
25
|
+
...R
|
|
26
|
+
} = P, { scopeClassName: x } = I(), [U, L] = M({ ...f, opacity: 0 }), s = A(null), a = A({ height: 0, width: 0 }), z = j(k.dropdown, x, W, k[`dropdown-${C}`]), v = i(
|
|
27
|
+
(e) => {
|
|
28
|
+
var o;
|
|
29
|
+
(o = s.current) != null && o.contains(e.target) || e.preventDefault();
|
|
30
|
+
},
|
|
31
|
+
[s]
|
|
32
|
+
), y = i((e) => {
|
|
33
|
+
if (e.target === document.body) {
|
|
34
|
+
const o = e.code || e.keyCode;
|
|
35
|
+
(d(o, "SPACE") || d(o, "PAGE_UP") || d(o, "PAGE_DOWN") || d(o, "END") || d(o, "HOME") || d(o, "ARROW_LEFT") || d(o, "ARROW_UP") || d(o, "ARROW_RIGHT") || d(o, "ARROW_DOWN")) && e.preventDefault();
|
|
36
|
+
}
|
|
37
|
+
}, []), g = i(
|
|
38
|
+
/** Запрет скролла всей страницы. */
|
|
39
|
+
(e) => {
|
|
40
|
+
e ? (document.addEventListener("wheel", v, { passive: !1 }), document.addEventListener("keydown", y)) : (document.removeEventListener("wheel", v), document.removeEventListener("keydown", y));
|
|
41
|
+
},
|
|
42
|
+
[v, y]
|
|
43
|
+
), T = i(
|
|
44
|
+
(e, o, t) => {
|
|
45
|
+
const n = u ? t.width : Math.max(t.width, o.width);
|
|
46
|
+
p === E.AUTO ? t.right - n > 0 ? e.left = t.right - n : t.left + n < document.documentElement.clientWidth ? e.left = t.left : e.left = t.right - n : p === E.RIGHT ? e.left = t.right - n : p === E.LEFT && (e.left = t.left);
|
|
47
|
+
},
|
|
48
|
+
[p, u]
|
|
49
|
+
), b = i(
|
|
50
|
+
(e, o, t) => {
|
|
51
|
+
h === O.AUTO ? t.bottom + 4 + o.height < document.documentElement.clientHeight ? e.top = t.bottom + 4 : t.top - 4 - o.height > 0 ? e.bottom = document.documentElement.clientHeight - t.top + 4 : e.top = t.bottom + 4 : h === O.BOTTOM ? e.top = t.bottom + 4 : h === O.TOP && (e.bottom = document.documentElement.clientHeight - t.top + 4);
|
|
52
|
+
},
|
|
53
|
+
[h]
|
|
54
|
+
), r = i(() => {
|
|
55
|
+
const { current: e } = s, { current: o } = H;
|
|
56
|
+
if (e && o) {
|
|
57
|
+
const t = e.getBoundingClientRect(), n = o.getBoundingClientRect(), m = {};
|
|
58
|
+
u ? m.width = n.width : m.minWidth = n.width, b(m, t, n), T(m, t, n), a.current = { height: t.height, width: t.width }, L({ ...f, ...m });
|
|
59
|
+
}
|
|
60
|
+
}, [H, u, f, b, T]);
|
|
61
|
+
_(() => {
|
|
62
|
+
l ? r() : (a.current = { height: 0, width: 0 }, L({ ...f, opacity: 0 }));
|
|
63
|
+
}, [l, r, f]), _(() => {
|
|
64
|
+
if (s.current) {
|
|
65
|
+
const { width: e, height: o } = s.current.getBoundingClientRect();
|
|
66
|
+
(e != a.current.width || o != a.current.height) && r();
|
|
67
|
+
}
|
|
68
|
+
}, [D, r]);
|
|
69
|
+
const c = i(() => {
|
|
70
|
+
setTimeout(r);
|
|
71
|
+
}, [r]);
|
|
72
|
+
_(() => {
|
|
73
|
+
if (l)
|
|
74
|
+
return document.addEventListener("scroll", c, !0), window.addEventListener("resize", c), g(!0), document.body.classList.add(N), () => {
|
|
75
|
+
document.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), g(!1), document.body.classList.remove(N);
|
|
76
|
+
};
|
|
77
|
+
}, [l, c, g]);
|
|
78
|
+
const B = (e) => {
|
|
79
|
+
s.current = e, typeof w == "function" ? w(e) : w && (w.current = e);
|
|
80
|
+
};
|
|
81
|
+
return l ? /* @__PURE__ */ S(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
className: z,
|
|
85
|
+
style: { ...U },
|
|
86
|
+
ref: B,
|
|
87
|
+
...R,
|
|
88
|
+
"data-tx": "1.1.1",
|
|
89
|
+
children: D
|
|
90
|
+
}
|
|
91
|
+
) : null;
|
|
92
|
+
});
|
|
93
|
+
$.displayName = "DropdownDesktop";
|
|
18
94
|
export {
|
|
19
|
-
|
|
95
|
+
$ as DropdownDesktop
|
|
20
96
|
};
|
|
21
97
|
//# sourceMappingURL=DropdownDesktop.js.map
|