@sberbusiness/triplex-next 1.2.0 → 1.3.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-B3Xzh0I2.js → AlertProcessSpoiler-B91XiZ7K.js} +6 -6
- package/chunks/Card.module-NgdHcwYS.js +17 -0
- package/chunks/Chip-XyednI9u.js +87 -0
- package/chunks/{DropdownListItem-B1GkU8rn.js → DropdownListItem-g0mYNHIW.js} +16 -16
- package/chunks/DropdownMobile.module-BBY44sVr.js +21 -0
- package/chunks/Footer.module-4a0n1yRR.js +11 -0
- package/chunks/{FormFieldInput-n8Ee4EcP.js → FormFieldInput-qaJqBTBV.js} +16 -16
- package/chunks/HeaderLayoutSidebar.module-BP0DyJae.js +9 -0
- package/chunks/HeaderTabs.module-CXcyvbb5.js +9 -0
- package/chunks/HeaderTitle.module-B-6xJFnf.js +9 -0
- package/chunks/{ListItemControlsButton-BdtSkcyn.js → ListItemControlsButton-Ms4q9wDe.js} +2 -2
- package/chunks/ListItemTail.module-D5VudFCz.js +12 -0
- package/chunks/ListMasterFooter.module-DzXu5TSC.js +10 -0
- package/chunks/Notification.module-MX1NZXsu.js +21 -0
- package/chunks/Overlay.module-B1IlIRoo.js +18 -0
- package/chunks/Page.module-Cwb_zvqj.js +12 -0
- package/chunks/{RightBorderArrow-BA2_2Ry3.js → RightBorderArrow-D6ZllSTT.js} +14 -14
- package/chunks/{SuggestFieldMobileDropdownHint-Dz-VDDoR.js → SuggestFieldMobileDropdownHint-Cc_fZLBH.js} +2 -2
- package/chunks/TableFooter.module-D9_esv5A.js +13 -0
- package/chunks/TabsExtended.module--2PQhvJQ.js +16 -0
- package/chunks/TabsLine.module-CH_sqFyE.js +23 -0
- package/chunks/TooltipDesktop.module-D3cbaDX1.js +19 -0
- package/chunks/{UploadZoneInput-CioKsqkV.js → UploadZoneInput-Bkv3b0F5.js} +9 -9
- package/chunks/{utils-B5p23Ple.js → utils-BZFu5eVD.js} +10 -10
- package/chunks/utils-CVSz7tV_.js +20 -0
- package/chunks/utils-D8e1oAR3.js +72 -0
- package/chunks/utils-DWPj89gs.js +36 -0
- package/chunks/utils-dyCpsmr1.js +48 -0
- package/components/AbstractTree/AbstractTreeNode.js +50 -0
- package/components/AccordionBase/protected/AccordionBase.js +83 -0
- package/components/AccordionBase/types.js +2 -0
- package/components/Alert/AlertContext/AlertContext.js +6 -6
- package/components/Alert/AlertProcess/AlertProcess.js +2 -2
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +1 -1
- package/components/Amount/Amount.js +8 -8
- package/components/AmountField/AmountField.js +2 -2
- package/components/Body/Body.js +7 -7
- package/components/Button/Button.js +17 -17
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +13 -13
- package/components/Button/ButtonDropdownExtended.js +4 -4
- package/components/Button/ButtonIcon.js +16 -20
- package/components/Button/enums.js +2 -3
- package/components/Button/index.js +9 -10
- package/components/Card/CardAction.js +11 -11
- package/components/Card/CardStatic.js +2 -2
- package/components/Card/components/CardContent/CardContent.js +1 -1
- package/components/Card/components/CardContent/components/CardContentBody.js +1 -1
- package/components/Card/components/CardContent/components/CardContentFooter.js +1 -1
- package/components/Card/components/CardContent/components/CardContentHeader.js +1 -1
- package/components/Card/components/CardMedia.js +1 -1
- package/components/Card/utils.js +1 -1
- package/components/CarouselExtended/CarouselExtended.js +6 -6
- package/components/Checkbox/Checkbox.js +14 -14
- package/components/Checkbox/CheckboxXGroup.js +12 -12
- package/components/Checkbox/CheckboxYGroup.js +3 -3
- package/components/CheckboxTree/CheckboxTree.js +39 -0
- package/components/CheckboxTree/types.js +2 -0
- package/components/CheckboxTree/utils.js +22 -0
- package/components/CheckboxTreeExtended/CheckboxTreeExtended.js +13 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedArrow.js +52 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedCheckbox.js +39 -0
- package/components/CheckboxTreeExtended/components/CheckboxTreeExtendedNode.js +53 -0
- package/components/CheckboxTreeExtended/isStaticCheckboxTreeExtended.js +5 -0
- package/components/Chip/Chip.js +6 -83
- package/components/Chip/ChipClearButton.js +5 -5
- package/components/Chip/ChipDropdownArrow.js +5 -5
- package/components/Chip/ChipIcon.js +4 -4
- package/components/Chip/ChipOptions.js +9 -9
- package/components/Chip/ChipSelect.js +55 -0
- package/components/Chip/index.js +5 -5
- package/components/ChipGroup/ChipGroup.js +11 -11
- package/components/Col/Col.js +136 -136
- package/components/CollapsableTree/CollapsableTree.js +10 -0
- package/components/CollapsableTree/components/CollapsableTreeNode.js +79 -0
- package/components/DesignTokens/DesignTokenUtils.js +1 -1
- package/components/DesignTokens/DesignTokensComponents.js +31 -24
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +33 -26
- package/components/DesignTokens/components/LoaderScreen.js +17 -0
- package/components/DesignTokens/components/Marker.js +4 -4
- package/components/DesignTokens/components/Notification.js +15 -0
- package/components/DesignTokens/components/Tag.js +9 -0
- package/components/DesignTokens/components/index.js +38 -32
- package/components/Divider/Divider.js +17 -17
- package/components/Dropdown/desktop/DropdownDesktop.js +10 -10
- package/components/Dropdown/desktop/DropdownList.js +1 -1
- package/components/Dropdown/desktop/DropdownListItem.js +1 -1
- package/components/Dropdown/desktop/index.js +1 -1
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/mobile/DropdownMobile.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileBody.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileClose.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileFooter.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileHeader.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInner.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileInput.js +7 -7
- package/components/Dropdown/mobile/DropdownMobileList.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileListItem.js +1 -1
- package/components/Dropdown/mobile/DropdownMobileLoader.js +1 -1
- package/components/Ellipsis/Ellipsis.js +10 -10
- package/components/ExpandAnimation/ExpandAnimation.js +1 -1
- package/components/Footer/Footer.js +2 -2
- package/components/Footer/components/FooterDescription.js +1 -1
- package/components/Footer/components/FooterDescriptionContent.js +1 -1
- package/components/Footer/components/FooterDescriptionControls.js +1 -1
- package/components/FormField/FormField.js +21 -21
- package/components/FormField/components/FormFieldClear.js +7 -7
- package/components/FormField/components/FormFieldCounter.js +1 -1
- package/components/FormField/components/FormFieldDescription.js +4 -4
- package/components/FormField/components/FormFieldInput.js +1 -1
- package/components/FormField/components/FormFieldLabel.js +12 -12
- package/components/FormField/components/FormFieldMaskedInput.js +15 -15
- package/components/FormField/components/FormFieldPostfix.js +4 -4
- package/components/FormField/components/FormFieldPrefix.js +3 -3
- package/components/FormField/components/FormFieldTarget.js +21 -21
- package/components/FormField/components/FormFieldTextarea.js +1 -1
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +4 -4
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebar.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarContent.js +1 -1
- package/components/Header/components/HeaderLayoutSidebar/HeaderLayoutSidebarSidebar.js +1 -1
- package/components/Header/components/HeaderSubheader/HeaderSubheader.js +5 -5
- package/components/Header/components/HeaderTabs/HeaderTabs.js +1 -1
- package/components/Header/components/HeaderTabs/HeaderTabsContent.js +1 -1
- package/components/Header/components/HeaderTabs/HeaderTabsControls.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitle.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitleContent.js +1 -1
- package/components/Header/components/HeaderTitle/HeaderTitleControls.js +1 -1
- package/components/HelpBox/HelpBox.js +17 -17
- package/components/Island/Island.js +1 -1
- package/components/Island/components/IslandBody.js +3 -3
- package/components/Island/components/IslandFooter.js +3 -3
- package/components/Island/components/IslandHeader.js +3 -3
- package/components/Island/utils.js +1 -1
- package/components/Link/Link.js +17 -17
- package/components/List/List.js +7 -7
- package/components/List/components/ListEmptyState.js +1 -1
- package/components/List/components/ListItem.js +1 -1
- package/components/List/components/ListItemContent.js +11 -11
- package/components/List/components/ListItemControls.js +7 -7
- package/components/List/components/ListItemControlsButton.js +1 -1
- package/components/List/components/ListItemControlsButtonDropdown.js +1 -1
- package/components/List/components/ListItemLoading.js +7 -7
- package/components/List/components/ListItemSelectable.js +10 -10
- package/components/List/components/ListItemTable.js +5 -5
- package/components/List/components/ListItemTailLeft.js +1 -1
- package/components/List/components/ListItemTailRight.js +1 -1
- package/components/List/components/ListSortableItem.js +5 -5
- package/components/List/components/ListSortableItemControls.js +1 -1
- package/components/List/components/ListSortableItemTarget.js +4 -4
- package/components/List/index.js +1 -1
- package/components/ListMaster/ListMaster.js +1 -1
- package/components/ListMaster/components/ListMasterBody.js +1 -1
- package/components/ListMaster/components/ListMasterChipGroup.js +7 -7
- package/components/ListMaster/components/ListMasterFooter.js +1 -1
- package/components/ListMaster/components/ListMasterFooterControls.js +1 -1
- package/components/ListMaster/components/ListMasterFooterDescription.js +1 -1
- package/components/ListMaster/components/ListMasterHeader.js +13 -13
- package/components/ListMaster/components/SelectionControls.js +6 -6
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +1 -1
- package/components/Loader/LoaderSmall/LoaderSmall.js +12 -12
- package/components/LoaderScreen/LoaderScreen.js +29 -0
- package/components/LoaderScreen/index.js +5 -0
- package/components/Marker/Marker.js +1 -1
- package/components/Marker/utils.js +1 -1
- package/components/MarkerStatus/MarkerStatus.js +31 -27
- package/components/Notification/Notification.js +40 -0
- package/components/Notification/NotificationGrouped.js +12 -0
- package/components/Notification/components/NotificationBody.js +19 -0
- package/components/Notification/components/NotificationBodyContent.js +8 -0
- package/components/Notification/components/NotificationBodyList.js +11 -0
- package/components/Notification/components/NotificationClose.js +14 -0
- package/components/Notification/components/NotificationFooter.js +8 -0
- package/components/Notification/components/NotificationGroupedFooter.js +11 -0
- package/components/Notification/components/NotificationHeader.js +8 -0
- package/components/Notification/components/NotificationIcon.js +8 -0
- package/components/Notification/components/NotificationTime.js +8 -0
- package/components/NumberField/NumberField.js +8 -0
- package/components/NumberField/NumberFieldInput.js +38 -0
- package/components/NumberField/index.js +5 -0
- package/components/NumberField/types.js +2 -0
- package/components/OrderedList/OrderedList.js +8 -8
- package/components/OrderedList/OrderedListItem.js +6 -6
- package/components/Overlay/Overlay.js +1 -1
- package/components/Overlay/OverlayMask.js +1 -1
- package/components/Overlay/OverlayPanel.js +1 -1
- package/components/Page/Page.js +1 -1
- package/components/Page/components/BodyPage.js +1 -1
- package/components/Page/components/FooterPage.js +1 -1
- package/components/Page/components/HeaderPage.js +1 -1
- package/components/Pagination/components/PaginationExtended.js +2 -2
- package/components/Pagination/components/PaginationNavigationButton.js +4 -4
- package/components/Pagination/components/PaginationNavigationExtended.js +1 -1
- package/components/Pagination/components/PaginationPageButton.js +1 -1
- package/components/Pagination/components/PaginationPageEllipsis.js +2 -2
- package/components/Pagination/components/PaginationSelect.js +11 -11
- package/components/Radio/Radio.js +16 -16
- package/components/Radio/RadioXGroup.js +13 -13
- package/components/Radio/RadioYGroup.js +6 -6
- package/components/Row/Row.js +6 -6
- package/components/SegmentedControl/SegmentedControl.js +5 -5
- package/components/SegmentedControl/SegmentedControlSegment.js +10 -10
- package/components/SelectExtendedField/SelectExtendedField.js +6 -6
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +1 -1
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +7 -7
- package/components/Skeleton/Skeleton.js +10 -10
- package/components/Stepper/RightBorderArrow.js +1 -1
- package/components/Stepper/Stepper.js +8 -8
- package/components/Stepper/StepperExtended.js +4 -4
- package/components/Stepper/StepperStep.js +2 -2
- package/components/Stepper/StepperWrapper.js +2 -2
- package/components/SuggestField/SuggestField.js +1 -1
- package/components/SuggestField/SuggestFieldTarget.js +1 -1
- package/components/SuggestField/SuggestFieldTargetPostfix.js +1 -1
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +3 -3
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +1 -1
- package/components/SuggestField/index.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobile.js +1 -1
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +2 -2
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +1 -1
- package/components/SuggestField/mobile/index.js +1 -1
- package/components/SwipeableArea/SwipeableArea.js +20 -20
- package/components/Table/FilterPanel.js +2 -2
- package/components/Table/MasterTable.js +17 -17
- package/components/Table/NoColumns.js +1 -1
- package/components/Table/PaginationPanel.js +2 -2
- package/components/Table/TableBasic/TableBasic.js +1 -1
- package/components/Table/TableBasic/components/TableBasicBody.js +1 -1
- package/components/Table/TableBasic/components/TableBasicHeader.js +1 -1
- package/components/Table/TableBasic/components/TableBasicRow.js +1 -1
- package/components/Table/TableBasicSettings/TableBasicSettings.js +1 -1
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +5 -5
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +1 -1
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +1 -1
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +1 -1
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +6 -6
- package/components/Table/TableFooter/TableFooter.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummary.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +1 -1
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +1 -1
- package/components/Table/TabsLinePanel.js +2 -2
- package/components/Table/TabsLinePanelLinks.js +1 -1
- package/components/Table/utils.js +1 -1
- package/components/Tabs/Tabs.js +13 -13
- package/components/TabsExtended/TabsExtended.js +2 -2
- package/components/TabsExtended/components/TabsExtendedContent.js +1 -1
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTab.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTabButton.js +1 -1
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +1 -1
- package/components/TabsExtended/utils.js +1 -1
- package/components/TabsLine/TabsLine.js +1 -1
- package/components/TabsLine/components/TabsLineDesktop.js +1 -1
- package/components/TabsLine/components/TabsLineDropdown.js +3 -3
- package/components/TabsLine/components/TabsLineItem.js +1 -1
- package/components/TabsLine/components/TabsLineMobile.js +8 -8
- package/components/Tag/Tag.js +70 -0
- package/components/Tag/index.js +5 -0
- package/components/Tag/types.js +2 -0
- package/components/TagGroup/TagGroup.js +25 -0
- package/components/TagGroup/index.js +5 -0
- package/components/TagGroup/types.js +2 -0
- package/components/TextField/TextField.js +1 -1
- package/components/Tooltip/components/common/TooltipBody.js +1 -1
- 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 +1 -1
- package/components/Tooltip/components/desktop/components/TooltipDesktopTip.js +1 -1
- package/components/Tooltip/components/mobile/TooltipMobile.js +1 -1
- package/components/TreeView/TreeView.js +88 -0
- package/components/TreeView/TreeViewAbstractNode.js +38 -0
- package/components/TreeView/TreeViewAbstractNodeUtils.js +112 -0
- package/components/TreeView/TreeViewContext.js +30 -0
- package/components/TreeView/components/TreeViewGroup.js +6 -0
- package/components/TreeView/components/TreeViewNode.js +81 -0
- package/components/Typography/Caption.js +15 -15
- package/components/Typography/Text.js +16 -16
- package/components/Typography/Title.js +13 -13
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +5 -5
- package/components/UnorderedList/UnorderedListItem.js +6 -6
- package/components/UploadZone/UploadZone.js +2 -2
- package/components/UploadZone/components/UploadZoneInput.js +1 -1
- package/components/index.js +358 -348
- package/helpers/less/z-indexes.less +3 -3
- package/index.d.ts +215 -33
- package/index.js +362 -352
- package/package.json +17 -5
- package/styles/triplex-next.css +441 -436
- package/chunks/Card.module-Dh5vP2zv.js +0 -17
- package/chunks/DropdownMobile.module-CYlB98Oc.js +0 -21
- package/chunks/Footer.module-Bk8QkaWN.js +0 -11
- package/chunks/HeaderLayoutSidebar.module-CDNHX5_G.js +0 -9
- package/chunks/HeaderTabs.module-yaGpurOU.js +0 -9
- package/chunks/HeaderTitle.module-XzB-YndL.js +0 -9
- package/chunks/ListItemTail.module-D_m5pMsh.js +0 -12
- package/chunks/ListMasterFooter.module-DXrsYZZo.js +0 -10
- package/chunks/Overlay.module-BghrPKKn.js +0 -18
- package/chunks/Page.module-D6xCdUbr.js +0 -12
- package/chunks/TableFooter.module-BzfTOGS_.js +0 -13
- package/chunks/TabsExtended.module-B3nvdhKr.js +0 -16
- package/chunks/TabsLine.module-Dlj__Yjk.js +0 -23
- package/chunks/TooltipDesktop.module-TiWl3v5C.js +0 -19
- package/chunks/utils-BtcCJ4_U.js +0 -20
- package/chunks/utils-D7E_PKCe.js +0 -36
- package/chunks/utils-DPXynVs1.js +0 -72
- package/chunks/utils-DjxtOr-n.js +0 -48
- package/components/Chip/enums.js +0 -5
- package/components/DesignTokens/components/LoaderWidget.js +0 -17
- package/components/LoaderWidget/LoaderWidget.js +0 -29
- package/components/LoaderWidget/index.js +0 -5
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { ETabsExtendedType as s } from "../components/TabsExtended/enums.js";
|
|
2
2
|
import { EComponentSize as t } from "../enums/EComponentSize.js";
|
|
3
3
|
import { ETextSize as e } from "../components/Typography/enums.js";
|
|
4
|
-
const
|
|
5
|
-
tabsExtendedTabButton:
|
|
6
|
-
tabButtonText:
|
|
7
|
-
lg:
|
|
8
|
-
md:
|
|
4
|
+
const n = "tabsExtendedTabButton__0bf89cb6", a = "tabButtonText__e20e4163", c = "lg__cf1e590f", d = "md__53a6f9e8", _ = "sm__c56f25e3", p = "type1__9427a8c8", T = "selected__0023f5ac", b = "type2__eca07e76", o = {
|
|
5
|
+
tabsExtendedTabButton: n,
|
|
6
|
+
tabButtonText: a,
|
|
7
|
+
lg: c,
|
|
8
|
+
md: d,
|
|
9
9
|
sm: _,
|
|
10
10
|
type1: p,
|
|
11
|
-
selected:
|
|
12
|
-
type2:
|
|
11
|
+
selected: T,
|
|
12
|
+
type2: b
|
|
13
13
|
}, E = {
|
|
14
14
|
[t.LG]: e.B2,
|
|
15
15
|
[t.MD]: e.B3,
|
|
16
16
|
[t.SM]: e.B4
|
|
17
|
-
},
|
|
17
|
+
}, f = {
|
|
18
18
|
[s.TYPE_1]: o.type1,
|
|
19
19
|
[s.TYPE_2]: o.type2
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
22
|
E as a,
|
|
23
23
|
o as s,
|
|
24
|
-
|
|
24
|
+
f as t
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=utils-
|
|
26
|
+
//# sourceMappingURL=utils-BZFu5eVD.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EMarkerStatus as s } from "../components/Marker/enums.js";
|
|
2
|
+
const a = "marker__69951def", c = "md__ca6543b5", n = "lg__0997c3e8", t = "success__894c6a7c", e = "error__f8626be0", o = "warning__5513efab", _ = "waiting__929225a4", r = {
|
|
3
|
+
marker: a,
|
|
4
|
+
md: c,
|
|
5
|
+
lg: n,
|
|
6
|
+
success: t,
|
|
7
|
+
error: e,
|
|
8
|
+
warning: o,
|
|
9
|
+
waiting: _
|
|
10
|
+
}, g = {
|
|
11
|
+
[s.SUCCESS]: r.success,
|
|
12
|
+
[s.ERROR]: r.error,
|
|
13
|
+
[s.WARNING]: r.warning,
|
|
14
|
+
[s.WAITING]: r.waiting
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
r as a,
|
|
18
|
+
g as s
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=utils-CVSz7tV_.js.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { EHorizontalAlign as a, EVerticalAlign as t, ECellType as c } from "../components/Table/TableBasic/enums.js";
|
|
2
|
+
const n = "tableBasic__6769beb3", r = "alignLeft__0c0f39b0", i = "alignRight__52270a5c", o = "alignCenter__a364bdf2", s = "verticalAlignBaseline__59598751", g = "verticalAlignSub__ba5aad46", T = "verticalAlignSuper__bf6232ef", _ = "verticalAlignTextTop__14aa50c7", p = "verticalAlignTextBottom__afbefb3b", v = "verticalAlignMiddle__423052e3", A = "verticalAlignTop__90ac81f7", b = "verticalAlignBottom__081f7b3d", d = "thBlock__98743a3d", B = "order__ee449a92", u = "orderButton__23a5bc90", m = "sorted__9a93dc6e", E = "textType__446052c4", y = "componentsType__0bb0d6cf", f = "checkboxType__508a230c", h = "selected__e7d5535e", x = "clickable__8370728a", C = "hoverable__d4b651dc", S = "footerEmptyData__dc479983", k = "spinnerWrapper__4243a98f", L = "overlayCover__41b0537d", e = {
|
|
3
|
+
tableBasic: n,
|
|
4
|
+
alignLeft: r,
|
|
5
|
+
alignRight: i,
|
|
6
|
+
alignCenter: o,
|
|
7
|
+
verticalAlignBaseline: s,
|
|
8
|
+
verticalAlignSub: g,
|
|
9
|
+
verticalAlignSuper: T,
|
|
10
|
+
verticalAlignTextTop: _,
|
|
11
|
+
verticalAlignTextBottom: p,
|
|
12
|
+
verticalAlignMiddle: v,
|
|
13
|
+
verticalAlignTop: A,
|
|
14
|
+
verticalAlignBottom: b,
|
|
15
|
+
thBlock: d,
|
|
16
|
+
order: B,
|
|
17
|
+
orderButton: u,
|
|
18
|
+
sorted: m,
|
|
19
|
+
textType: E,
|
|
20
|
+
componentsType: y,
|
|
21
|
+
checkboxType: f,
|
|
22
|
+
selected: h,
|
|
23
|
+
clickable: x,
|
|
24
|
+
hoverable: C,
|
|
25
|
+
footerEmptyData: S,
|
|
26
|
+
spinnerWrapper: k,
|
|
27
|
+
overlayCover: L
|
|
28
|
+
}, M = (l = a.LEFT) => {
|
|
29
|
+
switch (l) {
|
|
30
|
+
case a.LEFT:
|
|
31
|
+
return e.alignLeft;
|
|
32
|
+
case a.RIGHT:
|
|
33
|
+
return e.alignRight;
|
|
34
|
+
case a.CENTER:
|
|
35
|
+
return e.alignCenter;
|
|
36
|
+
}
|
|
37
|
+
}, N = (l = t.BASELINE) => {
|
|
38
|
+
switch (l) {
|
|
39
|
+
case t.BASELINE:
|
|
40
|
+
return e.verticalAlignBaseline;
|
|
41
|
+
case t.SUB:
|
|
42
|
+
return e.verticalAlignSub;
|
|
43
|
+
case t.SUPER:
|
|
44
|
+
return e.verticalAlignSuper;
|
|
45
|
+
case t.TEXT_TOP:
|
|
46
|
+
return e.verticalAlignTextTop;
|
|
47
|
+
case t.TEXT_BOTTOM:
|
|
48
|
+
return e.verticalAlignTextBottom;
|
|
49
|
+
case t.MIDDLE:
|
|
50
|
+
return e.verticalAlignMiddle;
|
|
51
|
+
case t.TOP:
|
|
52
|
+
return e.verticalAlignTop;
|
|
53
|
+
case t.BOTTOM:
|
|
54
|
+
return e.verticalAlignBottom;
|
|
55
|
+
}
|
|
56
|
+
}, R = (l = c.TEXT) => {
|
|
57
|
+
switch (l) {
|
|
58
|
+
case c.TEXT:
|
|
59
|
+
return e.textType;
|
|
60
|
+
case c.COMPONENTS:
|
|
61
|
+
return e.componentsType;
|
|
62
|
+
case c.CHECKBOX:
|
|
63
|
+
return e.checkboxType;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
N as a,
|
|
68
|
+
R as b,
|
|
69
|
+
M as m,
|
|
70
|
+
e as s
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=utils-D8e1oAR3.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EFontType as r } from "../components/Typography/enums.js";
|
|
2
|
+
const t = "underline__bc726870", n = "strikethrough__8d6da80b", s = "underlineStrikethrough__3626cb97", o = "typography__bbfaa1e8", c = "primary__75033e2a", a = "complementary__50f7298c", i = "secondary__2b77987a", _ = "tertiary__7af094ca", d = "disabled__f4fce665", y = "brand__14cfba66", p = "info__ac7d76c4", m = "success__54d9fd95", b = "error__2124b3ce", h = "warning__8e8dc571", l = "system__f842d153", u = "compact__6103ddcb", e = {
|
|
3
|
+
underline: t,
|
|
4
|
+
strikethrough: n,
|
|
5
|
+
underlineStrikethrough: s,
|
|
6
|
+
typography: o,
|
|
7
|
+
primary: c,
|
|
8
|
+
complementary: a,
|
|
9
|
+
secondary: i,
|
|
10
|
+
tertiary: _,
|
|
11
|
+
disabled: d,
|
|
12
|
+
brand: y,
|
|
13
|
+
info: p,
|
|
14
|
+
success: m,
|
|
15
|
+
error: b,
|
|
16
|
+
warning: h,
|
|
17
|
+
system: l,
|
|
18
|
+
compact: u
|
|
19
|
+
}, f = {
|
|
20
|
+
[r.PRIMARY]: e.primary,
|
|
21
|
+
[r.COMPLEMENTARY]: e.complementary,
|
|
22
|
+
[r.SECONDARY]: e.secondary,
|
|
23
|
+
[r.TERTIARY]: e.tertiary,
|
|
24
|
+
[r.DISABLED]: e.disabled,
|
|
25
|
+
[r.BRAND]: e.brand,
|
|
26
|
+
[r.INFO]: e.info,
|
|
27
|
+
[r.SUCCESS]: e.success,
|
|
28
|
+
[r.ERROR]: e.error,
|
|
29
|
+
[r.WARNING]: e.warning,
|
|
30
|
+
[r.SYSTEM]: e.system
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
f as m,
|
|
34
|
+
e as t
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=utils-DWPj89gs.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EIslandType as e } from "../components/Island/enums.js";
|
|
2
|
+
const s = "island__3ebbe1f6", r = "type1__f59b1833", t = "type2__0c29631d", n = "type3__b32bd02e", i = "borderRadius16__0643f336", o = "borderRadius24__a4c6d395", p = "borderRadius32__aad3b749", c = "padding16__70939dc8", u = "padding24__b2da8d0f", _ = "padding32__b2e142a1", d = {
|
|
3
|
+
island: s,
|
|
4
|
+
type1: r,
|
|
5
|
+
type2: t,
|
|
6
|
+
type3: n,
|
|
7
|
+
borderRadius16: i,
|
|
8
|
+
borderRadius24: o,
|
|
9
|
+
borderRadius32: p,
|
|
10
|
+
padding16: c,
|
|
11
|
+
padding24: u,
|
|
12
|
+
padding32: _
|
|
13
|
+
}, y = (a) => {
|
|
14
|
+
switch (a) {
|
|
15
|
+
case 16:
|
|
16
|
+
return d.borderRadius16;
|
|
17
|
+
case 24:
|
|
18
|
+
return d.borderRadius24;
|
|
19
|
+
case 32:
|
|
20
|
+
return d.borderRadius32;
|
|
21
|
+
}
|
|
22
|
+
return "";
|
|
23
|
+
}, g = (a) => {
|
|
24
|
+
switch (a) {
|
|
25
|
+
case 16:
|
|
26
|
+
return d.padding16;
|
|
27
|
+
case 24:
|
|
28
|
+
return d.padding24;
|
|
29
|
+
case 32:
|
|
30
|
+
return d.padding32;
|
|
31
|
+
}
|
|
32
|
+
}, R = (a) => {
|
|
33
|
+
switch (a) {
|
|
34
|
+
case e.TYPE_1:
|
|
35
|
+
return d.type1;
|
|
36
|
+
case e.TYPE_2:
|
|
37
|
+
return d.type2;
|
|
38
|
+
case e.TYPE_3:
|
|
39
|
+
return d.type3;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
y as a,
|
|
44
|
+
g as b,
|
|
45
|
+
R as m,
|
|
46
|
+
d as s
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=utils-dyCpsmr1.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var d = (t, e, i) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
|
+
var s = (t, e, i) => d(t, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
+
import { i as l } from "../../chunks/vendor-CehxOAkM.js";
|
|
5
|
+
class u {
|
|
6
|
+
constructor() {
|
|
7
|
+
// Массив дочерних нод.
|
|
8
|
+
s(this, "children", []);
|
|
9
|
+
// Родительская нода.
|
|
10
|
+
s(this, "parent", null);
|
|
11
|
+
/** Возвращает дочерние ноды. */
|
|
12
|
+
s(this, "getChildren", () => this.children);
|
|
13
|
+
/** Добавляет дочернюю ноду к текущим. */
|
|
14
|
+
s(this, "addChild", (e, i, r) => {
|
|
15
|
+
if (e.setParent(this), i) {
|
|
16
|
+
const h = this.children.findIndex((n) => l(n, i));
|
|
17
|
+
this.children.splice(h + 1, 0, e);
|
|
18
|
+
} else if (r) {
|
|
19
|
+
const h = this.children.findIndex((n) => l(n, r));
|
|
20
|
+
this.children.splice(h, 0, e);
|
|
21
|
+
} else
|
|
22
|
+
this.children.push(e);
|
|
23
|
+
});
|
|
24
|
+
/** Удаляет дочернюю ноду. */
|
|
25
|
+
s(this, "removeChild", (e) => {
|
|
26
|
+
const i = this.children.findIndex((r) => l(r, e));
|
|
27
|
+
i > -1 && (this.children.splice(i, 1), e.setParent(null));
|
|
28
|
+
});
|
|
29
|
+
/** Устанавливает дочерние ноды вместо текущих дочерних нод. */
|
|
30
|
+
s(this, "setChildren", (e) => {
|
|
31
|
+
this.children.forEach((i) => i.setParent(null)), e.forEach((i) => i.setParent(this)), this.children = e;
|
|
32
|
+
});
|
|
33
|
+
/** Возвращает родительскую ноду. */
|
|
34
|
+
s(this, "getParent", () => this.parent);
|
|
35
|
+
/** Устанавливает родительскую ноду. */
|
|
36
|
+
s(this, "setParent", (e) => {
|
|
37
|
+
this.parent = e;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function a(t, e) {
|
|
42
|
+
if (e(t) && t.getChildren().length)
|
|
43
|
+
for (const r of t.getChildren())
|
|
44
|
+
a(r, e);
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
u as AbstractTreeNode,
|
|
48
|
+
a as traverseAbstractTree
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=AbstractTreeNode.js.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var l = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e;
|
|
3
|
+
var o = (a, s, e) => l(a, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { jsxs as O, Fragment as m, jsx as g } from "react/jsx-runtime";
|
|
5
|
+
import h from "react";
|
|
6
|
+
import { ExpandAnimation as f } from "../../ExpandAnimation/ExpandAnimation.js";
|
|
7
|
+
import { a as u, c as x } from "../../../chunks/vendor-CehxOAkM.js";
|
|
8
|
+
class I extends h.Component {
|
|
9
|
+
constructor(e) {
|
|
10
|
+
super(e);
|
|
11
|
+
o(this, "displayName", "AccordionBase");
|
|
12
|
+
// Уникальный id, для передачи a11y aria-атрибутов в header и body.
|
|
13
|
+
o(this, "instanceId", `AccordionBase-${u()}`);
|
|
14
|
+
o(this, "renderHeader", () => {
|
|
15
|
+
const { renderHeader: e, isOpen: n } = this.props, { animating: t, controlled: i, isOpen: r } = this.state, p = !!(i ? n : r);
|
|
16
|
+
return e({
|
|
17
|
+
animating: t,
|
|
18
|
+
ariaAttributes: {
|
|
19
|
+
controls: this.instanceId,
|
|
20
|
+
expanded: p.toString()
|
|
21
|
+
},
|
|
22
|
+
isOpen: p,
|
|
23
|
+
toggle: this.toggle
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
/**
|
|
27
|
+
* Раскрывает/скрывает контент аккордеона.
|
|
28
|
+
*/
|
|
29
|
+
o(this, "toggle", () => {
|
|
30
|
+
const { controlled: e, isOpen: n } = this.state, { toggle: t, isOpen: i } = this.props;
|
|
31
|
+
e ? t && t(!!!(e ? i : n)) : this.setState((p) => ({
|
|
32
|
+
animating: !0,
|
|
33
|
+
isOpen: !p.isOpen
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
36
|
+
o(this, "handleAnimationEnd", () => {
|
|
37
|
+
const { controlled: e, isOpen: n } = this.state, { onToggle: t, isOpen: i } = this.props, r = !!(e ? i : n);
|
|
38
|
+
this.setState({ animating: !1 }, () => {
|
|
39
|
+
t && t(r);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
o(this, "renderBody", () => {
|
|
43
|
+
const { expandAnimationClassName: e, renderBody: n, isOpen: t } = this.props, { animating: i, controlled: r, isOpen: p } = this.state, d = !!(r ? t : p);
|
|
44
|
+
return /* @__PURE__ */ g(
|
|
45
|
+
f,
|
|
46
|
+
{
|
|
47
|
+
className: x(e, {
|
|
48
|
+
"cssClass[globalExpandAnimationAnimating]": i,
|
|
49
|
+
"cssClass[globalExpandAnimationOpened]": d
|
|
50
|
+
}),
|
|
51
|
+
expanded: d,
|
|
52
|
+
onEnd: this.handleAnimationEnd,
|
|
53
|
+
id: this.instanceId,
|
|
54
|
+
children: n({
|
|
55
|
+
animating: i,
|
|
56
|
+
isOpen: d,
|
|
57
|
+
toggle: this.toggle
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
this.state = {
|
|
63
|
+
animating: !1,
|
|
64
|
+
controlled: typeof e.isOpen < "u",
|
|
65
|
+
isOpen: !!e.isOpen
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
componentDidUpdate(e) {
|
|
69
|
+
const { isOpen: n } = this.props, { isOpen: t } = e;
|
|
70
|
+
n !== t && this.setState({ animating: !0 });
|
|
71
|
+
}
|
|
72
|
+
render() {
|
|
73
|
+
const e = this.renderHeader(), n = this.renderBody();
|
|
74
|
+
return /* @__PURE__ */ O(m, { children: [
|
|
75
|
+
e,
|
|
76
|
+
n
|
|
77
|
+
] });
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
I as AccordionBase
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=AccordionBase.js.map
|
|
@@ -5,10 +5,10 @@ import { alertTypeToClassNameMap as m } from "../AlertTypeUtils.js";
|
|
|
5
5
|
import { Text as y } from "../../Typography/Text.js";
|
|
6
6
|
import { EFontType as r, ETextSize as f } from "../../Typography/enums.js";
|
|
7
7
|
import { SystemStrokeStsIcon16 as I, ErrorStrokeStsIcon16 as S, WarningStrokeStsIcon16 as i, InfoStrokeStsIcon16 as R } from "@sberbusiness/icons-next";
|
|
8
|
-
import { c as
|
|
9
|
-
const
|
|
10
|
-
alertContext:
|
|
11
|
-
alertContextText:
|
|
8
|
+
import { c as d } from "../../../chunks/vendor-CehxOAkM.js";
|
|
9
|
+
const N = "alertContext__6fd00d51", _ = "alertContextText__7677c26a", E = "alertTypeError__21cadb04", C = "alertTypeInfo__802e847a", u = "alertTypeWarning__fb08ad45", A = "alertTypeSystem__c1241af3", n = {
|
|
10
|
+
alertContext: N,
|
|
11
|
+
alertContextText: _,
|
|
12
12
|
alertTypeError: E,
|
|
13
13
|
alertTypeInfo: C,
|
|
14
14
|
alertTypeWarning: u,
|
|
@@ -34,9 +34,9 @@ const _ = "alertContext__4a4ed76d", d = "alertContextText__3e3e2ba8", E = "alert
|
|
|
34
34
|
"span",
|
|
35
35
|
{
|
|
36
36
|
role: "alert",
|
|
37
|
-
className:
|
|
37
|
+
className: d(n.alertContext, m[a](n), l),
|
|
38
38
|
...p,
|
|
39
|
-
"data-tx": "1.
|
|
39
|
+
"data-tx": "1.3.0",
|
|
40
40
|
ref: c,
|
|
41
41
|
children: [
|
|
42
42
|
s || O(a),
|
|
@@ -3,7 +3,7 @@ import P, { useState as n } from "react";
|
|
|
3
3
|
import { EAlertType as t } from "../EAlertType.js";
|
|
4
4
|
import { alertTypeToClassNameMap as k } from "../AlertTypeUtils.js";
|
|
5
5
|
import { ButtonIcon as v } from "../../Button/ButtonIcon.js";
|
|
6
|
-
import { s as r, A as i } from "../../../chunks/AlertProcessSpoiler-
|
|
6
|
+
import { s as r, A as i } from "../../../chunks/AlertProcessSpoiler-B91XiZ7K.js";
|
|
7
7
|
import { AlertProcessContext as R } from "./AlertProcessContext.js";
|
|
8
8
|
import { CrossStrokeSrvIcon16 as E, DefaulticonStrokePrdIcon20 as T, SystemStrokeStsIcon20 as y, ErrorStrokeStsIcon20 as j, WarningStrokeStsIcon20 as w, InfoStrokeStsIcon20 as B } from "@sberbusiness/icons-next";
|
|
9
9
|
import { c as C } from "../../../chunks/vendor-CehxOAkM.js";
|
|
@@ -38,7 +38,7 @@ const O = (o) => {
|
|
|
38
38
|
d
|
|
39
39
|
),
|
|
40
40
|
...f,
|
|
41
|
-
"data-tx": "1.
|
|
41
|
+
"data-tx": "1.3.0",
|
|
42
42
|
ref: u,
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ e("div", { className: r.themeIcon, children: l || O(a) }),
|
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import "@sberbusiness/icons-next";
|
|
4
4
|
import "../../../Button/ButtonIcon.js";
|
|
5
5
|
import "../AlertProcessContext.js";
|
|
6
|
-
import { A as l } from "../../../../chunks/AlertProcessSpoiler-
|
|
6
|
+
import { A as l } from "../../../../chunks/AlertProcessSpoiler-B91XiZ7K.js";
|
|
7
7
|
import "../../../../chunks/vendor-CehxOAkM.js";
|
|
8
8
|
export {
|
|
9
9
|
l as AlertProcessSpoiler
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
1
|
+
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { formatAmount as d } from "../../utils/amountUtils.js";
|
|
3
3
|
import { c as A } from "../../chunks/vendor-CehxOAkM.js";
|
|
4
|
-
const f = "
|
|
4
|
+
const f = "amountAdaptive__0f4963ea", N = {
|
|
5
5
|
amountAdaptive: f
|
|
6
6
|
}, _ = 14, h = ({
|
|
7
7
|
className: o,
|
|
8
8
|
value: m,
|
|
9
9
|
fractionLength: r,
|
|
10
|
-
currency:
|
|
10
|
+
currency: e,
|
|
11
11
|
currencyTitle: s,
|
|
12
12
|
adaptive: c,
|
|
13
|
-
dataTestId:
|
|
13
|
+
dataTestId: a,
|
|
14
14
|
...i
|
|
15
15
|
}) => {
|
|
16
16
|
let t = d(m, r);
|
|
@@ -23,11 +23,11 @@ const f = "amountAdaptive__f512039e", N = {
|
|
|
23
23
|
t[0] == "-" && (t = t.replace("-", "−"));
|
|
24
24
|
const u = () => [
|
|
25
25
|
" ",
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__currencyName`, title: s, children: e }, "currencyName")
|
|
27
27
|
];
|
|
28
|
-
return /* @__PURE__ */ l("span", { className: p, ...i, "data-tx": "1.
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
28
|
+
return /* @__PURE__ */ l("span", { className: p, ...i, "data-tx": "1.3.0", children: [
|
|
29
|
+
/* @__PURE__ */ n("span", { "data-test-id": a && `${a}__amount`, children: t }),
|
|
30
|
+
e && u()
|
|
31
31
|
] });
|
|
32
32
|
};
|
|
33
33
|
h.displayName = "Amount";
|
|
@@ -6,11 +6,11 @@ import { FormFieldDescription as T } from "../FormField/components/FormFieldDesc
|
|
|
6
6
|
import { FormFieldLabel as V } from "../FormField/components/FormFieldLabel.js";
|
|
7
7
|
import { FormFieldPostfix as D } from "../FormField/components/FormFieldPostfix.js";
|
|
8
8
|
import { FormFieldClear as K } from "../FormField/components/FormFieldClear.js";
|
|
9
|
-
import { F as j } from "../../chunks/FormFieldInput-
|
|
9
|
+
import { F as j } from "../../chunks/FormFieldInput-qaJqBTBV.js";
|
|
10
10
|
import { AmountBaseInputCore as A } from "./AmountBaseInputCore.js";
|
|
11
11
|
import { setCaretPosition as L } from "../../utils/inputUtils.js";
|
|
12
12
|
import { createPlaceholder as M, setFallbackCaret as g } from "./utils.js";
|
|
13
|
-
const $ = "
|
|
13
|
+
const $ = "currency__ca53f7fe", b = {
|
|
14
14
|
currency: $
|
|
15
15
|
}, Z = R.forwardRef(
|
|
16
16
|
({
|
package/components/Body/Body.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
const y = "
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { c as t } from "../../chunks/vendor-CehxOAkM.js";
|
|
4
|
+
const y = "body__15d00f25", c = "bodyInner__edae3e0c", d = {
|
|
5
5
|
body: y,
|
|
6
|
-
bodyInner:
|
|
7
|
-
},
|
|
8
|
-
|
|
6
|
+
bodyInner: c
|
|
7
|
+
}, m = n.forwardRef(({ children: e, className: r, ...s }, a) => /* @__PURE__ */ o("div", { className: t(d.body, r), ...s, "data-tx": "1.3.0", ref: a, children: /* @__PURE__ */ o("div", { className: d.bodyInner, children: e }) }));
|
|
8
|
+
m.displayName = "Body";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
m as Body
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=Body.js.map
|
|
@@ -7,21 +7,21 @@ import "../Loader/LoaderMiddle/LoaderMiddle.js";
|
|
|
7
7
|
import { ButtonBase as C } from "./ButtonBase.js";
|
|
8
8
|
import { EButtonTheme as o } from "./enums.js";
|
|
9
9
|
import { EComponentSize as s } from "../../enums/EComponentSize.js";
|
|
10
|
-
const A = "
|
|
10
|
+
const A = "general__d777ad8a", B = "expanded__0f9ec2f8", p = {
|
|
11
11
|
general: A,
|
|
12
12
|
expanded: B
|
|
13
|
-
}, D = "
|
|
13
|
+
}, D = "secondary__6cb9db5d", T = "expanded__0f9ec2f8", b = {
|
|
14
14
|
secondary: D,
|
|
15
15
|
expanded: T
|
|
16
|
-
}, G = "
|
|
16
|
+
}, G = "secondaryLight__dd9ab1a9", I = "expanded__0f9ec2f8", f = {
|
|
17
17
|
secondaryLight: G,
|
|
18
18
|
expanded: I
|
|
19
|
-
}, v = "
|
|
19
|
+
}, v = "danger__cdafe116", O = "expanded__0f9ec2f8", h = {
|
|
20
20
|
danger: v,
|
|
21
21
|
expanded: O
|
|
22
|
-
}, Y = "
|
|
22
|
+
}, Y = "link__11e542de", x = {
|
|
23
23
|
link: Y
|
|
24
|
-
}, w = "
|
|
24
|
+
}, w = "button__5a21ca4b", z = "sm__76554eb1", M = "icon__869334b6", $ = "md__6e4c7cb9", j = "lg__4e890226", H = "block__924cbdf4", K = "content__3400a5b6", U = "loading__e2ab8adf", q = "loader__4e118552", F = "hidden__ec160c4e", e = {
|
|
25
25
|
button: w,
|
|
26
26
|
sm: z,
|
|
27
27
|
icon: M,
|
|
@@ -38,18 +38,18 @@ const A = "general__5141d3ad", B = "expanded__fc18fd80", p = {
|
|
|
38
38
|
return { [p.general]: !0, [p.expanded]: n };
|
|
39
39
|
case o.SECONDARY:
|
|
40
40
|
return {
|
|
41
|
-
[
|
|
42
|
-
[
|
|
41
|
+
[b.secondary]: !0,
|
|
42
|
+
[b.expanded]: n
|
|
43
43
|
};
|
|
44
44
|
case o.SECONDARY_LIGHT:
|
|
45
45
|
return {
|
|
46
|
-
[
|
|
47
|
-
[
|
|
46
|
+
[f.secondaryLight]: !0,
|
|
47
|
+
[f.expanded]: n
|
|
48
48
|
};
|
|
49
49
|
case o.DANGER:
|
|
50
50
|
return {
|
|
51
|
-
[
|
|
52
|
-
[
|
|
51
|
+
[h.danger]: !0,
|
|
52
|
+
[h.expanded]: n
|
|
53
53
|
};
|
|
54
54
|
case o.LINK:
|
|
55
55
|
return {
|
|
@@ -70,27 +70,27 @@ const A = "general__5141d3ad", B = "expanded__fc18fd80", p = {
|
|
|
70
70
|
const d = [o.SECONDARY, o.SECONDARY_LIGHT].includes(t) ? u.BRAND : u.NEUTRAL;
|
|
71
71
|
return /* @__PURE__ */ y(R, { theme: d, size: n });
|
|
72
72
|
}, V = k.forwardRef((t, n) => {
|
|
73
|
-
const { children: d, className: N, disabled:
|
|
73
|
+
const { children: d, className: N, disabled: c, theme: r, size: l = s.MD, block: L, loading: a, icon: i, ...S } = t, { "aria-expanded": _ } = t, E = g(
|
|
74
74
|
e.button,
|
|
75
75
|
J(r, !!_),
|
|
76
76
|
P(l),
|
|
77
|
-
{ [e.block]: !!L, [e.loading]: !!
|
|
77
|
+
{ [e.block]: !!L, [e.loading]: !!a },
|
|
78
78
|
{ [e.icon]: !!i && !d },
|
|
79
79
|
// Классы для иконок, начало.
|
|
80
80
|
"hoverable",
|
|
81
81
|
{
|
|
82
82
|
active: !!_,
|
|
83
|
-
disabled: !!
|
|
83
|
+
disabled: !!c
|
|
84
84
|
},
|
|
85
85
|
// Классы для иконок, конец.
|
|
86
86
|
N
|
|
87
87
|
);
|
|
88
|
-
return /* @__PURE__ */ m(C, { className: E, tabIndex:
|
|
88
|
+
return /* @__PURE__ */ m(C, { className: E, tabIndex: a ? -1 : void 0, disabled: c, ...S, ref: n, children: [
|
|
89
89
|
/* @__PURE__ */ m("span", { className: e.content, children: [
|
|
90
90
|
i,
|
|
91
91
|
d
|
|
92
92
|
] }),
|
|
93
|
-
/* @__PURE__ */ y("div", { className: g(e.loader, !
|
|
93
|
+
/* @__PURE__ */ y("div", { className: g(e.loader, !a && e.hidden), children: Q(r, l) })
|
|
94
94
|
] });
|
|
95
95
|
});
|
|
96
96
|
V.displayName = "Button";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
|
-
const r = e.forwardRef((t, o) => /* @__PURE__ */ a("button", { type: "button", ...t, "data-tx": "1.
|
|
3
|
+
const r = e.forwardRef((t, o) => /* @__PURE__ */ a("button", { type: "button", ...t, "data-tx": "1.3.0", ref: o }));
|
|
4
4
|
r.displayName = "ButtonBase";
|
|
5
5
|
export {
|
|
6
6
|
r as ButtonBase
|