@sberbusiness/triplex-next 1.1.0 → 1.2.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/README.md +8 -8
- package/chunks/{AlertProcessSpoiler-Dp7FRT9y.js → AlertProcessSpoiler-B3Xzh0I2.js} +13 -13
- package/chunks/Card.module-Dh5vP2zv.js +17 -0
- package/chunks/DropdownListItem-B1GkU8rn.js +57 -0
- package/chunks/DropdownMobile.module-CYlB98Oc.js +21 -0
- package/chunks/Footer.module-Bk8QkaWN.js +11 -0
- package/chunks/{FormFieldInput-apk1b0w6.js → FormFieldInput-n8Ee4EcP.js} +23 -23
- package/chunks/HeaderLayoutSidebar.module-CDNHX5_G.js +9 -0
- package/chunks/HeaderTabs.module-yaGpurOU.js +9 -0
- package/chunks/HeaderTitle.module-XzB-YndL.js +9 -0
- package/chunks/{ListItemControlsButton-Cn3Vmrsn.js → ListItemControlsButton-BdtSkcyn.js} +10 -10
- package/chunks/ListItemTail.module-D_m5pMsh.js +12 -0
- package/chunks/ListMasterFooter.module-DXrsYZZo.js +10 -0
- package/chunks/Overlay.module-BghrPKKn.js +18 -0
- package/chunks/Page.module-D6xCdUbr.js +12 -0
- package/chunks/RightBorderArrow-BA2_2Ry3.js +146 -0
- package/chunks/SuggestFieldMobileDropdownHint-Dz-VDDoR.js +15 -0
- package/chunks/TableFooter.module-BzfTOGS_.js +13 -0
- package/chunks/TabsExtended.module-B3nvdhKr.js +16 -0
- package/chunks/TabsLine.module-Dlj__Yjk.js +23 -0
- package/chunks/TooltipDesktop.module-TiWl3v5C.js +19 -0
- package/chunks/{UploadZoneInput-R9729LZY.js → UploadZoneInput-CioKsqkV.js} +10 -10
- package/chunks/utils-B5p23Ple.js +26 -0
- package/chunks/utils-BtcCJ4_U.js +20 -0
- package/chunks/utils-D7E_PKCe.js +36 -0
- package/chunks/utils-DPXynVs1.js +72 -0
- package/chunks/utils-DjxtOr-n.js +48 -0
- package/chunks/vendor-CehxOAkM.js +11907 -0
- package/components/Alert/AlertContext/AlertContext.js +6 -6
- package/components/Alert/AlertProcess/AlertProcess.js +3 -3
- package/components/Alert/AlertProcess/components/AlertProcessSpoiler.js +2 -2
- package/components/Amount/Amount.js +37 -0
- package/components/Amount/index.js +5 -0
- package/components/AmountField/AmountBaseInputCore.js +46 -0
- package/components/AmountField/AmountBaseInputFormatter.js +57 -0
- package/components/AmountField/AmountBaseInputParser.js +110 -0
- package/components/AmountField/AmountField.js +76 -0
- package/components/AmountField/index.js +5 -0
- package/components/AmountField/utils.js +38 -0
- package/components/Body/Body.js +6 -6
- package/components/Button/Button.js +73 -72
- package/components/Button/ButtonBase.js +1 -1
- package/components/Button/ButtonDropdown.js +113 -127
- package/components/Button/ButtonDropdownExtended.js +2 -2
- package/components/Button/ButtonIcon.js +2 -2
- package/components/Card/CardAction.js +10 -10
- 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/CarouselExtended/CarouselExtended.js +48 -0
- package/components/Checkbox/Checkbox.js +46 -30
- package/components/Checkbox/CheckboxXGroup.js +14 -14
- package/components/Checkbox/CheckboxYGroup.js +4 -4
- package/components/Checkbox/index.js +4 -6
- package/components/Chip/Chip.js +86 -0
- package/components/Chip/ChipClearButton.js +28 -0
- package/components/Chip/ChipDropdownArrow.js +18 -0
- package/components/Chip/ChipIcon.js +9 -0
- package/components/Chip/ChipOptions.js +27 -0
- package/components/Chip/enums.js +5 -0
- package/components/Chip/index.js +15 -0
- package/components/ChipGroup/ChipGroup.js +32 -0
- package/components/ChipGroup/index.js +5 -0
- package/components/Col/Col.js +142 -142
- package/components/DesignTokens/DesignTokenUtils.js +2 -2
- package/components/DesignTokens/DesignTokensComponents.js +89 -69
- package/components/DesignTokens/DesignTokensComponentsThemeDark.js +92 -77
- package/components/DesignTokens/components/Card.js +23 -20
- package/components/DesignTokens/components/Checkbox.js +32 -14
- package/components/DesignTokens/components/Chip.js +59 -0
- package/components/DesignTokens/components/Divider.js +9 -0
- package/components/DesignTokens/components/Dropdown.js +1 -1
- package/components/DesignTokens/components/DropdownList.js +2 -2
- package/components/DesignTokens/components/DropdownMobile.js +3 -3
- package/components/DesignTokens/components/FooterPage.js +3 -3
- package/components/DesignTokens/components/HeaderPage.js +4 -4
- package/components/DesignTokens/components/ListItemControlsButton.js +20 -5
- package/components/DesignTokens/components/Marker.js +20 -0
- package/components/DesignTokens/components/MarkerStatus.js +9 -0
- package/components/DesignTokens/components/Radio.js +22 -13
- package/components/DesignTokens/components/Stepper.js +71 -0
- package/components/DesignTokens/components/TableBasic.js +41 -0
- package/components/DesignTokens/components/Tabs.js +45 -15
- package/components/DesignTokens/components/TabsLine.js +32 -0
- package/components/DesignTokens/components/index.js +100 -79
- package/components/Divider/Divider.js +34 -0
- package/components/Divider/index.js +5 -0
- package/components/Dropdown/desktop/DropdownDesktop.js +52 -51
- package/components/Dropdown/desktop/DropdownList.js +66 -53
- package/components/Dropdown/desktop/DropdownListItem.js +2 -2
- package/components/Dropdown/desktop/index.js +9 -0
- package/components/Dropdown/index.js +33 -29
- 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 +9 -8
- package/components/Dropdown/mobile/DropdownMobileList.js +26 -17
- package/components/Dropdown/mobile/DropdownMobileListItem.js +2 -2
- package/components/Dropdown/mobile/DropdownMobileLoader.js +20 -0
- package/components/Dropdown/mobile/index.js +5 -3
- package/components/Ellipsis/Ellipsis.js +27 -0
- package/components/Ellipsis/index.js +5 -0
- package/components/ExpandAnimation/ExpandAnimation.js +72 -0
- 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 +34 -33
- package/components/FormField/FormFieldContext.js +8 -7
- package/components/FormField/components/FormFieldClear.js +24 -20
- package/components/FormField/components/FormFieldCounter.js +5 -5
- package/components/FormField/components/FormFieldDescription.js +5 -5
- package/components/FormField/components/FormFieldInput.js +2 -2
- package/components/FormField/components/FormFieldLabel.js +14 -14
- package/components/FormField/components/FormFieldMaskedInput.js +12 -12
- package/components/FormField/components/FormFieldPostfix.js +6 -6
- package/components/FormField/components/FormFieldPrefix.js +7 -7
- package/components/FormField/components/FormFieldTarget.js +22 -22
- package/components/FormField/components/FormFieldTextarea.js +6 -6
- package/components/FormField/index.js +1 -1
- package/components/Header/Header.js +12 -12
- 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/HelpBox/HelpBox.js +94 -0
- package/components/Island/Island.js +25 -66
- package/components/Island/components/IslandBody.js +4 -4
- package/components/Island/components/IslandFooter.js +4 -4
- package/components/Island/components/IslandHeader.js +2 -2
- package/components/Island/enums.js +1 -3
- package/components/Island/index.js +4 -6
- package/components/Island/types.js +2 -0
- package/components/Island/utils.js +8 -0
- package/components/Link/Link.js +27 -27
- package/components/List/List.js +12 -20
- package/components/List/ListSortable.js +1 -1
- package/components/List/components/ListEmptyState.js +6 -6
- package/components/List/components/ListItem.js +1 -10
- 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 +4 -2
- package/components/List/components/ListItemLoading.js +11 -9
- package/components/List/components/ListItemSelectable.js +5 -5
- package/components/List/components/ListItemTable.js +9 -9
- package/components/List/components/ListItemTailLeft.js +2 -2
- package/components/List/components/ListItemTailRight.js +2 -2
- package/components/List/components/ListSortableItem.js +2 -2
- package/components/List/components/ListSortableItemControls.js +2 -2
- package/components/List/components/ListSortableItemTarget.js +8 -8
- 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 +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 +6 -6
- package/components/ListMaster/components/SelectionControls.js +3 -3
- package/components/Loader/LoaderMiddle/LoaderMiddle.js +5 -5
- package/components/Loader/LoaderSmall/LoaderSmall.js +24 -35
- package/components/LoaderWidget/LoaderWidget.js +15 -14
- package/components/Marker/Marker.js +20 -0
- package/components/Marker/enums.js +5 -0
- package/components/Marker/index.js +7 -0
- package/components/Marker/utils.js +6 -0
- package/components/MarkerStatus/MarkerStatus.js +36 -0
- package/components/MarkerStatus/index.js +5 -0
- package/components/OrderedList/OrderedList.js +25 -0
- package/components/OrderedList/OrderedListItem.js +27 -0
- package/components/OrderedList/index.js +7 -0
- package/components/OrderedList/types.js +2 -0
- 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 +28 -31
- package/components/Page/components/HeaderPage.js +26 -29
- package/components/Page/components/useStickyCornerRadius.js +34 -0
- 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 +3 -3
- package/components/Pagination/components/PaginationSelect.js +7 -7
- package/components/Pagination/utils/paginationUtils.js +1 -1
- package/components/Radio/Radio.js +29 -21
- package/components/Radio/RadioXGroup.js +10 -10
- package/components/Radio/RadioYGroup.js +5 -5
- package/components/Radio/index.js +4 -6
- package/components/Row/Row.js +6 -6
- package/components/SegmentedControl/SegmentedControl.js +36 -39
- package/components/SegmentedControl/SegmentedControlSegment.js +6 -6
- package/components/SelectExtendedField/SelectExtendedField.js +9 -9
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdown.js +5 -2
- package/components/SelectExtendedField/components/SelectExtendedFieldDropdownDefault.js +22 -18
- package/components/SelectExtendedField/components/SelectExtendedFieldTarget.js +38 -37
- package/components/SelectField/SelectField.js +62 -0
- package/components/SelectField/index.js +5 -0
- package/components/Skeleton/Skeleton.js +11 -11
- package/components/Stepper/RightBorderArrow.js +7 -0
- package/components/Stepper/Stepper.js +103 -0
- package/components/Stepper/StepperExtended.js +26 -0
- package/components/Stepper/StepperExtendedContext.js +12 -0
- package/components/Stepper/StepperStep.js +88 -0
- package/components/Stepper/StepperStepIcon.js +23 -0
- package/components/Stepper/StepperWrapper.js +12 -0
- package/components/Stepper/enums.js +7 -0
- package/components/Stepper/index.js +11 -0
- package/components/SuggestField/SuggestField.js +64 -0
- package/components/SuggestField/SuggestFieldTarget.js +67 -0
- package/components/SuggestField/SuggestFieldTargetPostfix.js +28 -0
- package/components/SuggestField/desktop/SuggestFieldDesktop.js +196 -0
- package/components/SuggestField/desktop/SuggestFieldDesktopDropdown.js +76 -0
- package/components/SuggestField/desktop/index.js +7 -0
- package/components/SuggestField/desktop/types.js +2 -0
- package/components/SuggestField/index.js +17 -0
- package/components/SuggestField/mobile/SuggestFieldMobile.js +79 -0
- package/components/SuggestField/mobile/SuggestFieldMobileDropdown.js +94 -0
- package/components/SuggestField/mobile/SuggestFieldMobileDropdownHint.js +10 -0
- package/components/SuggestField/mobile/SuggestFieldMobileTarget.js +30 -0
- package/components/SuggestField/mobile/index.js +11 -0
- package/components/SuggestField/mobile/types.js +2 -0
- package/components/SuggestField/types.js +2 -0
- package/components/SwipeableArea/SwipeableArea.js +21 -21
- package/components/Table/FilterPanel.js +18 -0
- package/components/Table/MasterTable.js +49 -0
- package/components/Table/MasterTableContext.js +11 -0
- package/components/Table/NoColumns.js +17 -0
- package/components/Table/PaginationPanel.js +18 -0
- package/components/Table/TableBasic/TableBasic.js +51 -0
- package/components/Table/TableBasic/components/TableBasicBody.js +18 -0
- package/components/Table/TableBasic/components/TableBasicHeader.js +83 -0
- package/components/Table/TableBasic/components/TableBasicRow.js +53 -0
- package/components/Table/TableBasic/enums.js +8 -0
- package/components/Table/TableBasic/types.js +2 -0
- package/components/Table/TableBasicSettings/TableBasicSettings.js +58 -0
- package/components/Table/TableBasicSettings/components/ColumnSettings.js +20 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableList.js +24 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItem.js +25 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsSortableListItemTarget.js +29 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticList.js +17 -0
- package/components/Table/TableBasicSettings/components/ColumnSettingsStaticListItem.js +14 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsBody.js +13 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsFooter.js +13 -0
- package/components/Table/TableBasicSettings/components/TableBasicSettingsHeader.js +26 -0
- package/components/Table/TableFooter/TableFooter.js +14 -0
- package/components/Table/TableFooter/components/TableFooterSummary.js +19 -0
- package/components/Table/TableFooter/components/TableFooterSummaryAmount.js +18 -0
- package/components/Table/TableFooter/components/TableFooterSummarySelectAllButton.js +31 -0
- package/components/Table/TableFooter/components/TableFooterSummarySelectedCount.js +8 -0
- package/components/Table/TabsLinePanel.js +12 -0
- package/components/Table/TabsLinePanelLinks.js +14 -0
- package/components/Table/index.js +26 -0
- package/components/Table/utils.js +8 -0
- package/components/Tabs/Tabs.js +75 -0
- package/components/Tabs/index.js +5 -0
- package/components/TabsExtended/TabsExtended.js +37 -21
- package/components/TabsExtended/TabsExtendedContext.js +6 -4
- package/components/TabsExtended/components/TabsExtendedContent.js +19 -15
- package/components/TabsExtended/components/TabsExtendedDropdownWrapper.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTab.js +2 -2
- package/components/TabsExtended/components/TabsExtendedTabButton.js +17 -15
- package/components/TabsExtended/components/TabsExtendedTabsWrapper.js +7 -7
- package/components/TabsExtended/components/index.js +15 -0
- package/components/TabsExtended/enums.js +2 -2
- package/components/TabsExtended/index.js +15 -3
- package/components/TabsExtended/utils.js +9 -0
- package/components/TabsLine/TabsLine.js +48 -0
- package/components/TabsLine/components/TabsLineDesktop.js +81 -0
- package/components/TabsLine/components/TabsLineDropdown.js +151 -0
- package/components/TabsLine/components/TabsLineItem.js +26 -0
- package/components/TabsLine/components/TabsLineMobile.js +21 -0
- package/components/TabsLine/components/index.js +11 -0
- package/components/TabsLine/index.js +13 -0
- package/components/TabsLine/types.js +2 -0
- package/components/TextField/TextField.js +1 -1
- package/components/ThemeProvider/ThemeProvider.js +1 -1
- package/components/ThemeProvider/components/ThemeProviderView.js +4 -4
- package/components/Tooltip/components/common/TooltipBody.js +2 -2
- package/components/Tooltip/components/common/TooltipLink.js +11 -11
- 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 +7 -7
- package/components/Typography/Caption.js +17 -17
- package/components/Typography/Text.js +20 -20
- package/components/Typography/Title.js +15 -15
- package/components/Typography/utils.js +1 -1
- package/components/UnorderedList/UnorderedList.js +25 -0
- package/components/UnorderedList/UnorderedListItem.js +27 -0
- package/components/UnorderedList/index.js +7 -0
- package/components/UnorderedList/types.js +2 -0
- package/components/UploadZone/UploadZone.js +3 -3
- package/components/UploadZone/components/UploadZoneInput.js +2 -2
- package/components/index.js +366 -275
- package/consts/AmountConst.js +10 -0
- package/consts/DataTestId.js +19 -0
- package/enums/EComponentSize.js +5 -0
- package/enums/index.js +7 -0
- package/index.d.ts +1029 -124
- package/index.js +361 -268
- package/package.json +69 -2
- package/styles/triplex-next.css +436 -354
- package/types/CoreTypes.js +2 -0
- package/utils/amountUtils.js +34 -0
- package/utils/classNameMaps.js +10 -0
- package/utils/html/AriaAttributes.js +11 -0
- package/utils/html/DataAttributes.js +11 -0
- package/utils/inputUtils.js +11 -0
- package/utils/isNullOrUndefined.js +5 -0
- package/utils/scroll.js +13 -0
- package/utils/stringUtils.js +13 -0
- package/chunks/Card.module-Ddt7TQ9Z.js +0 -17
- package/chunks/DropdownListItem-y6Rvj_dd.js +0 -56
- package/chunks/DropdownMobile.module-DrQkghxs.js +0 -19
- package/chunks/Footer.module-CKfl241m.js +0 -11
- package/chunks/HeaderLayoutSidebar.module-DTXnksBK.js +0 -9
- package/chunks/HeaderTabs.module-DVh6MotJ.js +0 -9
- package/chunks/HeaderTitle.module-DOeVL9zC.js +0 -9
- package/chunks/ListItemTail.module-BnbT61OM.js +0 -12
- package/chunks/ListMasterFooter.module-C6QFamKQ.js +0 -10
- package/chunks/Overlay.module-BTSQ5G6t.js +0 -18
- package/chunks/Page.module-DfMBQJob.js +0 -16
- package/chunks/TabsExtended.module-okOlTNQG.js +0 -13
- package/chunks/TabsExtendedUtils-NCwWiX7O.js +0 -23
- package/chunks/TooltipDesktop.module-DTbnIWo1.js +0 -19
- package/chunks/utils-B0khB-Lq.js +0 -36
- package/chunks/vendor-D-uL_icH.js +0 -5895
- package/components/Checkbox/enum.js +0 -5
- package/components/Radio/enum.js +0 -5
- package/components/TabsExtended/TabsExtendedUtils.js +0 -8
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import U, { useRef as y } from "react";
|
|
3
|
+
import { w as b, c as j } from "../../chunks/vendor-CehxOAkM.js";
|
|
4
|
+
const F = "expandAnimation__f6d49864", I = {
|
|
5
|
+
expandAnimation: F
|
|
6
|
+
}, L = 300, M = U.forwardRef(
|
|
7
|
+
({
|
|
8
|
+
children: A,
|
|
9
|
+
className: E,
|
|
10
|
+
expanded: v,
|
|
11
|
+
animationTime: x = L,
|
|
12
|
+
style: R,
|
|
13
|
+
onStart: l,
|
|
14
|
+
onEnd: h,
|
|
15
|
+
transitionProps: e,
|
|
16
|
+
...w
|
|
17
|
+
}, f) => {
|
|
18
|
+
const m = y({
|
|
19
|
+
entering: { height: void 0, overflow: "hidden" },
|
|
20
|
+
entered: {},
|
|
21
|
+
exiting: { height: 0, overflow: "hidden" },
|
|
22
|
+
exited: { height: 0, overflow: "hidden", visibility: "hidden" },
|
|
23
|
+
unmounted: {}
|
|
24
|
+
}), d = y(null), _ = (c) => {
|
|
25
|
+
var u;
|
|
26
|
+
d.current && (m.current.entering.height = d.current.scrollHeight), l == null || l(), (u = e == null ? void 0 : e.onEnter) == null || u.call(e, c);
|
|
27
|
+
}, H = (c) => {
|
|
28
|
+
var u;
|
|
29
|
+
h == null || h(), (u = e == null ? void 0 : e.onEntered) == null || u.call(e, c);
|
|
30
|
+
}, T = () => {
|
|
31
|
+
var c;
|
|
32
|
+
d.current && (d.current.style.height = d.current.scrollHeight + "px", d.current.scrollHeight), l == null || l(), (c = e == null ? void 0 : e.onExit) == null || c.call(e);
|
|
33
|
+
}, D = () => {
|
|
34
|
+
var c;
|
|
35
|
+
h == null || h(), (c = e == null ? void 0 : e.onExited) == null || c.call(e);
|
|
36
|
+
}, N = (c) => {
|
|
37
|
+
d.current = c, typeof f == "function" ? f(c) : f && (f.current = c);
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ g(
|
|
40
|
+
b,
|
|
41
|
+
{
|
|
42
|
+
in: v,
|
|
43
|
+
timeout: x,
|
|
44
|
+
nodeRef: d,
|
|
45
|
+
...e,
|
|
46
|
+
onEnter: _,
|
|
47
|
+
onEntered: H,
|
|
48
|
+
onExit: T,
|
|
49
|
+
onExited: D,
|
|
50
|
+
children: (c) => /* @__PURE__ */ g(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: j(I.expandAnimation, E),
|
|
54
|
+
style: {
|
|
55
|
+
transitionDuration: x + "ms",
|
|
56
|
+
...m.current[c],
|
|
57
|
+
...R
|
|
58
|
+
},
|
|
59
|
+
...w,
|
|
60
|
+
ref: N,
|
|
61
|
+
children: A
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
M.displayName = "ExpandAnimation";
|
|
69
|
+
export {
|
|
70
|
+
M as ExpandAnimation
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=ExpandAnimation.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import a from "react";
|
|
3
3
|
import { FooterDescription as p } from "./components/FooterDescription.js";
|
|
4
|
-
import { c } from "../../chunks/vendor-
|
|
5
|
-
import { s as o } from "../../chunks/Footer.module-
|
|
4
|
+
import { c } from "../../chunks/vendor-CehxOAkM.js";
|
|
5
|
+
import { s as o } from "../../chunks/Footer.module-Bk8QkaWN.js";
|
|
6
6
|
import "./components/FooterDescriptionControls.js";
|
|
7
7
|
import "./components/FooterDescriptionContent.js";
|
|
8
8
|
const f = Object.assign(
|
|
@@ -12,7 +12,7 @@ const f = Object.assign(
|
|
|
12
12
|
{
|
|
13
13
|
className: c(o.footer, { [o.sticky]: !!e }, r),
|
|
14
14
|
...i,
|
|
15
|
-
"data-tx": "1.
|
|
15
|
+
"data-tx": "1.2.0",
|
|
16
16
|
ref: s,
|
|
17
17
|
children: t
|
|
18
18
|
}
|
|
@@ -2,8 +2,8 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import s from "react";
|
|
3
3
|
import { FooterDescriptionContent as n } from "./FooterDescriptionContent.js";
|
|
4
4
|
import { FooterDescriptionControls as m } from "./FooterDescriptionControls.js";
|
|
5
|
-
import { c as p } from "../../../chunks/vendor-
|
|
6
|
-
import { s as c } from "../../../chunks/Footer.module-
|
|
5
|
+
import { c as p } from "../../../chunks/vendor-CehxOAkM.js";
|
|
6
|
+
import { s as c } from "../../../chunks/Footer.module-Bk8QkaWN.js";
|
|
7
7
|
const f = Object.assign(
|
|
8
8
|
s.forwardRef(function({ children: o, className: t, ...r }, e) {
|
|
9
9
|
return /* @__PURE__ */ i("div", { className: p(c.footerDescription, t), ...r, ref: e, children: o });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { c as m } from "../../../chunks/vendor-
|
|
4
|
-
import { s as n } from "../../../chunks/Footer.module-
|
|
3
|
+
import { c as m } from "../../../chunks/vendor-CehxOAkM.js";
|
|
4
|
+
import { s as n } from "../../../chunks/Footer.module-Bk8QkaWN.js";
|
|
5
5
|
const a = i.forwardRef(
|
|
6
6
|
({ children: o, className: t, ...r }, e) => /* @__PURE__ */ s("div", { className: m(n.footerDescriptionContent, t), ...r, ref: e, children: o })
|
|
7
7
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { c as m } from "../../../chunks/vendor-
|
|
4
|
-
import { s as a } from "../../../chunks/Footer.module-
|
|
3
|
+
import { c as m } from "../../../chunks/vendor-CehxOAkM.js";
|
|
4
|
+
import { s as a } from "../../../chunks/Footer.module-Bk8QkaWN.js";
|
|
5
5
|
const p = i.forwardRef(
|
|
6
6
|
({ children: o, className: r, ...t }, s) => /* @__PURE__ */ e("div", { className: m(a.footerDescriptionControls, r), ...t, ref: s, children: o })
|
|
7
7
|
);
|
|
@@ -1,77 +1,78 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { useState as e } from "react";
|
|
3
3
|
import { FormFieldContext as G } from "./FormFieldContext.js";
|
|
4
4
|
import { TARGET_PADDING_X_DEFAULT as _ } from "./consts.js";
|
|
5
|
-
import { c as I } from "../../chunks/vendor-
|
|
6
|
-
import {
|
|
7
|
-
|
|
5
|
+
import { c as I } from "../../chunks/vendor-CehxOAkM.js";
|
|
6
|
+
import { EFormFieldStatus as r } from "./enums.js";
|
|
7
|
+
import { EComponentSize as N } from "../../enums/EComponentSize.js";
|
|
8
|
+
const P = "formField__2343db3d", S = "disabled__4cfae557", T = "active__b42bba09", L = "error__b5abc124", u = "warning__9c3c1e9a", i = {
|
|
8
9
|
formField: P,
|
|
9
10
|
disabled: S,
|
|
10
11
|
active: T,
|
|
11
12
|
error: L,
|
|
12
13
|
warning: u,
|
|
13
|
-
"size-sm": "size-
|
|
14
|
-
"size-md": "size-
|
|
15
|
-
"size-lg": "size-
|
|
16
|
-
},
|
|
17
|
-
children:
|
|
18
|
-
className:
|
|
14
|
+
"size-sm": "size-sm__be18d678",
|
|
15
|
+
"size-md": "size-md__0c7d8630",
|
|
16
|
+
"size-lg": "size-lg__25f7cc71"
|
|
17
|
+
}, V = ({
|
|
18
|
+
children: p,
|
|
19
|
+
className: F,
|
|
19
20
|
status: t = r.DEFAULT,
|
|
20
21
|
onMouseEnter: s,
|
|
21
22
|
onMouseLeave: d,
|
|
22
|
-
style:
|
|
23
|
-
size:
|
|
24
|
-
...
|
|
23
|
+
style: b,
|
|
24
|
+
size: c = N.LG,
|
|
25
|
+
...x
|
|
25
26
|
}) => {
|
|
26
|
-
const [
|
|
27
|
-
|
|
28
|
-
}, w = (
|
|
29
|
-
|
|
27
|
+
const [a, g] = e(!1), [h, l] = e(!1), [v, z] = e(""), [m, E] = e(_), [n, A] = e(_), [D, R] = e(!1), W = (o) => {
|
|
28
|
+
l(!0), s == null || s(o);
|
|
29
|
+
}, w = (o) => {
|
|
30
|
+
l(!1), d == null || d(o);
|
|
30
31
|
};
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ f(
|
|
32
33
|
G.Provider,
|
|
33
34
|
{
|
|
34
35
|
value: {
|
|
35
36
|
status: t,
|
|
36
|
-
focused:
|
|
37
|
+
focused: a,
|
|
37
38
|
hovered: h,
|
|
38
39
|
id: v,
|
|
39
40
|
postfixWidth: m,
|
|
40
|
-
prefixWidth:
|
|
41
|
+
prefixWidth: n,
|
|
41
42
|
setFocused: g,
|
|
42
|
-
setId:
|
|
43
|
-
setPostfixWidth:
|
|
43
|
+
setId: z,
|
|
44
|
+
setPostfixWidth: E,
|
|
44
45
|
setPrefixWidth: A,
|
|
45
46
|
setValueExist: R,
|
|
46
47
|
valueExist: D,
|
|
47
|
-
size:
|
|
48
|
+
size: c
|
|
48
49
|
},
|
|
49
|
-
children: /* @__PURE__ */
|
|
50
|
+
children: /* @__PURE__ */ f(
|
|
50
51
|
"div",
|
|
51
52
|
{
|
|
52
53
|
className: I(
|
|
53
54
|
i.formField,
|
|
55
|
+
i[`size-${c}`],
|
|
54
56
|
{
|
|
55
|
-
[i.active]:
|
|
57
|
+
[i.active]: a,
|
|
56
58
|
[i.disabled]: t === r.DISABLED,
|
|
57
59
|
[i.error]: t === r.ERROR,
|
|
58
|
-
[i.warning]: t === r.WARNING
|
|
59
|
-
[i[`size-${o}`]]: o
|
|
60
|
+
[i.warning]: t === r.WARNING
|
|
60
61
|
},
|
|
61
|
-
|
|
62
|
+
F
|
|
62
63
|
),
|
|
63
64
|
onMouseEnter: W,
|
|
64
65
|
onMouseLeave: w,
|
|
65
|
-
"data-tx": "1.
|
|
66
|
-
style: { paddingLeft:
|
|
67
|
-
...
|
|
68
|
-
children:
|
|
66
|
+
"data-tx": "1.2.0",
|
|
67
|
+
style: { paddingLeft: n, paddingRight: m, ...b },
|
|
68
|
+
...x,
|
|
69
|
+
children: p
|
|
69
70
|
}
|
|
70
71
|
)
|
|
71
72
|
}
|
|
72
73
|
);
|
|
73
74
|
};
|
|
74
75
|
export {
|
|
75
|
-
|
|
76
|
+
V as FormField
|
|
76
77
|
};
|
|
77
78
|
//# sourceMappingURL=FormField.js.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import t from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { EFormFieldStatus as e } from "./enums.js";
|
|
3
|
+
import { EComponentSize as i } from "../../enums/EComponentSize.js";
|
|
4
|
+
const o = {
|
|
5
|
+
status: e.DEFAULT,
|
|
5
6
|
focused: !1,
|
|
6
7
|
hovered: !1,
|
|
7
8
|
id: "",
|
|
@@ -18,10 +19,10 @@ const s = {
|
|
|
18
19
|
setValueExist: () => {
|
|
19
20
|
},
|
|
20
21
|
valueExist: !1,
|
|
21
|
-
size:
|
|
22
|
-
},
|
|
22
|
+
size: i.MD
|
|
23
|
+
}, f = t.createContext(o);
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
f as FormFieldContext,
|
|
26
|
+
o as initialFormFieldContext
|
|
26
27
|
};
|
|
27
28
|
//# sourceMappingURL=FormFieldContext.js.map
|
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { CrossStrokeSrvIcon16 as
|
|
4
|
-
import { FormFieldContext as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import c, { useContext as p } from "react";
|
|
3
|
+
import { CrossStrokeSrvIcon16 as F } from "@sberbusiness/icons-next";
|
|
4
|
+
import { FormFieldContext as h } from "../FormFieldContext.js";
|
|
5
|
+
import { EFormFieldStatus as C } from "../enums.js";
|
|
6
|
+
import { c as u } from "../../../chunks/vendor-CehxOAkM.js";
|
|
7
|
+
import "../../Button/Button.js";
|
|
8
|
+
import "../../Button/ButtonBase.js";
|
|
9
|
+
import { ButtonIcon as x } from "../../Button/ButtonIcon.js";
|
|
10
|
+
import "../../Button/ButtonDropdown.js";
|
|
11
|
+
import "../../Button/ButtonDropdownExtended.js";
|
|
12
|
+
const _ = "formFieldClear__d62a50e0", v = "hidden__92a02eff", t = {
|
|
13
|
+
formFieldClear: _,
|
|
14
|
+
hidden: v
|
|
15
|
+
}, I = c.forwardRef(
|
|
16
|
+
({ className: m, onMouseDown: e, ...l }, a) => {
|
|
17
|
+
const { status: d, focused: i, hovered: s, valueExist: f } = p(h), n = u(
|
|
16
18
|
t.formFieldClear,
|
|
17
19
|
"hoverable",
|
|
18
20
|
{
|
|
19
|
-
[t.
|
|
21
|
+
[t.hidden]: !f || d === C.DISABLED || !(i || s)
|
|
20
22
|
},
|
|
21
|
-
|
|
23
|
+
m
|
|
22
24
|
);
|
|
23
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ o(x, { className: n, onMouseDown: (r) => {
|
|
26
|
+
r.preventDefault(), e == null || e(r);
|
|
27
|
+
}, ...l, ref: a, children: /* @__PURE__ */ o(F, { paletteIndex: 5 }) });
|
|
24
28
|
}
|
|
25
29
|
);
|
|
26
|
-
|
|
30
|
+
I.displayName = "FormFieldClear";
|
|
27
31
|
export {
|
|
28
|
-
|
|
32
|
+
I as FormFieldClear
|
|
29
33
|
};
|
|
30
34
|
//# sourceMappingURL=FormFieldClear.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as i, useEffect as m } from "react";
|
|
3
3
|
import { FormFieldDescriptionContext as n } from "../FormFieldDescriptionContext.js";
|
|
4
|
-
const s = "
|
|
4
|
+
const s = "formFieldCounter__c806e084", u = {
|
|
5
5
|
formFieldCounter: s
|
|
6
|
-
},
|
|
6
|
+
}, l = ({ children: e, ...o }) => {
|
|
7
7
|
const { setWithCounter: t } = i(n);
|
|
8
8
|
return m(() => {
|
|
9
9
|
t(!0);
|
|
10
|
-
}, []), /* @__PURE__ */ r("div", { className:
|
|
10
|
+
}, []), /* @__PURE__ */ r("div", { className: u.formFieldCounter, ...o, children: e });
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
l.displayName = "FormFieldCounter";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
l as FormFieldCounter
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=FormFieldCounter.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as n } from "react";
|
|
3
|
-
import { c } from "../../../chunks/vendor-
|
|
4
|
-
import { FormFieldDescriptionContext as
|
|
5
|
-
const l = "
|
|
3
|
+
import { c as m } from "../../../chunks/vendor-CehxOAkM.js";
|
|
4
|
+
import { FormFieldDescriptionContext as c } from "../FormFieldDescriptionContext.js";
|
|
5
|
+
const l = "formFieldDescription__38e70df1", p = "withCounter__907f80b8", i = {
|
|
6
6
|
formFieldDescription: l,
|
|
7
7
|
withCounter: p
|
|
8
|
-
}, d = ({ children:
|
|
8
|
+
}, d = ({ children: e, ...r }) => {
|
|
9
9
|
const [o, s] = n(!1);
|
|
10
|
-
return /* @__PURE__ */ t(
|
|
10
|
+
return /* @__PURE__ */ t(c.Provider, { value: { withCounter: o, setWithCounter: s }, children: /* @__PURE__ */ t("div", { className: m(i.formFieldDescription, { [i.withCounter]: o }), ...r, children: e }) });
|
|
11
11
|
};
|
|
12
12
|
d.displayName = "FormFieldDescription";
|
|
13
13
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../FormFieldContext.js";
|
|
4
|
-
import "../../../chunks/vendor-
|
|
5
|
-
import { F as e } from "../../../chunks/FormFieldInput-
|
|
4
|
+
import "../../../chunks/vendor-CehxOAkM.js";
|
|
5
|
+
import { F as e } from "../../../chunks/FormFieldInput-n8Ee4EcP.js";
|
|
6
6
|
import "../enums.js";
|
|
7
7
|
export {
|
|
8
8
|
e as FormFieldInput
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import p, { useContext as T, useState as g, useEffect as E } from "react";
|
|
3
3
|
import { FormFieldContext as h } from "../FormFieldContext.js";
|
|
4
|
-
import { TARGET_PADDING_X_DEFAULT as
|
|
5
|
-
import { k as D, c as N } from "../../../chunks/vendor-
|
|
4
|
+
import { TARGET_PADDING_X_DEFAULT as f } from "../consts.js";
|
|
5
|
+
import { k as D, c as N } from "../../../chunks/vendor-CehxOAkM.js";
|
|
6
6
|
import { EFormFieldStatus as y } from "../enums.js";
|
|
7
|
-
const A = "
|
|
7
|
+
const A = "formFieldLabel__0defdf44", R = "floating__377c68bf", S = "formFieldLabelText__b2dd8ed2", C = "disabled__4cfae557", s = {
|
|
8
8
|
formFieldLabel: A,
|
|
9
|
-
"size-sm": "size-
|
|
10
|
-
"size-md": "size-
|
|
11
|
-
"size-lg": "size-
|
|
9
|
+
"size-sm": "size-sm__be18d678",
|
|
10
|
+
"size-md": "size-md__0c7d8630",
|
|
11
|
+
"size-lg": "size-lg__25f7cc71",
|
|
12
12
|
floating: R,
|
|
13
13
|
formFieldLabelText: S,
|
|
14
14
|
disabled: C
|
|
15
15
|
}, G = p.forwardRef(
|
|
16
|
-
({ children:
|
|
17
|
-
const { status:
|
|
16
|
+
({ children: m, className: r, style: c, floating: e, ...n }, b) => {
|
|
17
|
+
const { status: F, focused: t, id: _, prefixWidth: L, postfixWidth: x, size: i, valueExist: o } = T(h), [l, a] = g(!1);
|
|
18
18
|
E(() => {
|
|
19
|
-
!D(e) && e !== l ?
|
|
20
|
-
}, [t,
|
|
19
|
+
!D(e) && e !== l ? a(e) : e !== l && a(t || o);
|
|
20
|
+
}, [t, o, e, l]);
|
|
21
21
|
const u = N(
|
|
22
22
|
s.formFieldLabel,
|
|
23
23
|
{
|
|
24
|
-
[s.disabled]:
|
|
24
|
+
[s.disabled]: F === y.DISABLED,
|
|
25
25
|
[s.floating]: l,
|
|
26
26
|
[s[`size-${i}`]]: i
|
|
27
27
|
},
|
|
28
28
|
r
|
|
29
29
|
), z = {
|
|
30
30
|
// Левая позиция элемента. Когда label по-середине инпута, позиция учитывает иконки по краям, когда сверху, позиция на все ширину поля ввода.
|
|
31
|
-
left: L ||
|
|
31
|
+
left: L || f,
|
|
32
32
|
// Правая позиция элемента. Когда label по-середине инпута, позиция учитывает иконки по краям, когда сверху, позиция на все ширину поля ввода.
|
|
33
|
-
right: x ||
|
|
33
|
+
right: x || f,
|
|
34
34
|
...c
|
|
35
35
|
};
|
|
36
|
-
return /* @__PURE__ */ d("label", { className: u, ref:
|
|
36
|
+
return /* @__PURE__ */ d("label", { className: u, ref: b, htmlFor: _, ...n, style: z, children: /* @__PURE__ */ d("span", { className: s.formFieldLabelText, children: m }) });
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
G.displayName = "FormFieldLabel";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as N, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { useState as O, useRef as A, useContext as B, useEffect as D, useCallback as U } from "react";
|
|
3
|
-
import { c as F,
|
|
3
|
+
import { c as F, m as q, n as p } from "../../../chunks/vendor-CehxOAkM.js";
|
|
4
4
|
import { presets as G } from "./FormFieldMaskedInputPresets.js";
|
|
5
|
-
import { s as H, F as J } from "../../../chunks/FormFieldInput-
|
|
5
|
+
import { s as H, F as J } from "../../../chunks/FormFieldInput-n8Ee4EcP.js";
|
|
6
6
|
import { FormFieldContext as K } from "../FormFieldContext.js";
|
|
7
|
-
const L = "
|
|
7
|
+
const L = "formFieldMaskedInputWrapper__872110eb", Q = "formFieldMaskedInputPlaceholder__1306e418", X = "formFieldMaskedInput__96e3c519", l = {
|
|
8
8
|
formFieldMaskedInputWrapper: L,
|
|
9
9
|
formFieldMaskedInputPlaceholder: Q,
|
|
10
|
-
"size-sm": "size-
|
|
11
|
-
"size-md": "size-
|
|
12
|
-
"size-lg": "size-
|
|
10
|
+
"size-sm": "size-sm__be18d678",
|
|
11
|
+
"size-md": "size-md__0c7d8630",
|
|
12
|
+
"size-lg": "size-lg__25f7cc71",
|
|
13
13
|
formFieldMaskedInput: X
|
|
14
14
|
}, c = ({
|
|
15
15
|
className: I,
|
|
@@ -46,9 +46,9 @@ const L = "formFieldMaskedInputWrapper__2c4006d1", Q = "formFieldMaskedInputPlac
|
|
|
46
46
|
a.current = !1, s !== t && (d == null || d(e));
|
|
47
47
|
},
|
|
48
48
|
[s, d]
|
|
49
|
-
),
|
|
49
|
+
), E = () => {
|
|
50
50
|
a.current = !0;
|
|
51
|
-
},
|
|
51
|
+
}, W = (e, t) => o === c.presets.masks.phone ? e.length ? P(t.rawValue) : e : o === c.presets.masks.swiftCode ? e.toUpperCase() : e, P = (e) => {
|
|
52
52
|
let t = [];
|
|
53
53
|
if (a.current) {
|
|
54
54
|
let n = /^[78]((\D*\d)*)/;
|
|
@@ -58,7 +58,7 @@ const L = "formFieldMaskedInputWrapper__2c4006d1", Q = "formFieldMaskedInputPlac
|
|
|
58
58
|
indexesOfPipedChars: t,
|
|
59
59
|
value: p.conformToMask(e, o, { guide: !1, placeholderChar: i }).conformedValue
|
|
60
60
|
};
|
|
61
|
-
},
|
|
61
|
+
}, b = () => o === c.presets.masks.phone ? (s = P(s).value, s) : p.conformToMask(s, o, { guide: !1, placeholderChar: i }).conformedValue, j = (e) => (t) => {
|
|
62
62
|
t && e(t), typeof f == "function" ? f(t) : f && (f.current = t);
|
|
63
63
|
}, S = () => !y && !z || !s && M ? "" : V;
|
|
64
64
|
return /* @__PURE__ */ N("div", { className: F(l.formFieldMaskedInputWrapper, l[`size-${k}`]), children: [
|
|
@@ -88,10 +88,10 @@ const L = "formFieldMaskedInputWrapper__2c4006d1", Q = "formFieldMaskedInputPlac
|
|
|
88
88
|
render: (e, t) => /* @__PURE__ */ m(J, { ...t, value: s, placeholder: M || "", ref: j(e) }),
|
|
89
89
|
mask: o,
|
|
90
90
|
onChange: T,
|
|
91
|
-
onPaste:
|
|
91
|
+
onPaste: E,
|
|
92
92
|
placeholderChar: i,
|
|
93
|
-
value:
|
|
94
|
-
pipe:
|
|
93
|
+
value: b(),
|
|
94
|
+
pipe: W,
|
|
95
95
|
type: "text",
|
|
96
96
|
..._
|
|
97
97
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import l, { useContext as x, useRef as u, useEffect as a } from "react";
|
|
3
3
|
import { FormFieldContext as F } from "../FormFieldContext.js";
|
|
4
|
-
import { c as p } from "../../../chunks/vendor-
|
|
5
|
-
const P = "
|
|
4
|
+
import { c as p } from "../../../chunks/vendor-CehxOAkM.js";
|
|
5
|
+
const P = "formFieldPostfix__866d6adf", R = {
|
|
6
6
|
formFieldPostfix: P
|
|
7
|
-
}, _ =
|
|
7
|
+
}, _ = l.forwardRef(
|
|
8
8
|
({ children: s, className: f, ...i }, o) => {
|
|
9
9
|
const r = p(R.formFieldPostfix, f), { postfixWidth: n, setPostfixWidth: c } = x(F), e = u(), m = (t) => {
|
|
10
10
|
e.current = t, typeof o == "function" ? o(t) : o && (o.current = t);
|
|
@@ -14,7 +14,7 @@ const P = "formFieldPostfix__9cba074f", R = {
|
|
|
14
14
|
return;
|
|
15
15
|
const { width: t } = e.current.getBoundingClientRect();
|
|
16
16
|
t !== n && c(t);
|
|
17
|
-
}), /* @__PURE__ */
|
|
17
|
+
}), /* @__PURE__ */ d("span", { className: r, ref: m, ...i, children: s });
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
_.displayName = "FormFieldPostfix";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import d, { useContext as x, useRef as u, useEffect as
|
|
3
|
-
import { FormFieldContext as
|
|
4
|
-
import { c as p } from "../../../chunks/vendor-
|
|
5
|
-
const P = "
|
|
2
|
+
import d, { useContext as x, useRef as u, useEffect as a } from "react";
|
|
3
|
+
import { FormFieldContext as F } from "../FormFieldContext.js";
|
|
4
|
+
import { c as p } from "../../../chunks/vendor-CehxOAkM.js";
|
|
5
|
+
const P = "formFieldPrefix__ceae314c", R = {
|
|
6
6
|
formFieldPrefix: P
|
|
7
7
|
}, _ = d.forwardRef(
|
|
8
8
|
({ children: o, className: i, ...f }, r) => {
|
|
9
|
-
const s = p(R.formFieldPrefix, i), { prefixWidth:
|
|
9
|
+
const s = p(R.formFieldPrefix, i), { prefixWidth: c, setPrefixWidth: n } = x(F), t = u(), m = (e) => {
|
|
10
10
|
t.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
11
11
|
};
|
|
12
|
-
return
|
|
12
|
+
return a(() => {
|
|
13
13
|
if (!t.current)
|
|
14
14
|
return;
|
|
15
15
|
const { width: e } = t.current.getBoundingClientRect();
|
|
16
|
-
e !==
|
|
16
|
+
e !== c && n(e);
|
|
17
17
|
}), /* @__PURE__ */ l("span", { className: s, ref: m, ...f, children: o });
|
|
18
18
|
}
|
|
19
19
|
);
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
2
|
import x, { useContext as E, useRef as T, useEffect as m } from "react";
|
|
3
3
|
import { FormFieldContext as B } from "../FormFieldContext.js";
|
|
4
|
-
import { c as S,
|
|
5
|
-
import { EFormFieldStatus as
|
|
6
|
-
const L = "
|
|
4
|
+
import { c as S, a as A } from "../../../chunks/vendor-CehxOAkM.js";
|
|
5
|
+
import { EFormFieldStatus as a } from "../enums.js";
|
|
6
|
+
const L = "formFieldTarget__0340f465", N = "placeholder__23d157f7", R = "disabled__4cfae557", o = {
|
|
7
7
|
formFieldTarget: L,
|
|
8
8
|
placeholder: N,
|
|
9
9
|
disabled: R,
|
|
10
|
-
"size-sm": "size-
|
|
11
|
-
"size-md": "size-
|
|
12
|
-
"size-lg": "size-
|
|
10
|
+
"size-sm": "size-sm__be18d678",
|
|
11
|
+
"size-md": "size-md__0c7d8630",
|
|
12
|
+
"size-lg": "size-lg__25f7cc71"
|
|
13
13
|
}, y = x.forwardRef((F, _) => {
|
|
14
|
-
const { className: p, id: e, onBlur: l, onFocus: i, placeholder: n, children: s, ...g } = F, { status: r, setFocused: f, setId: t, setValueExist: u, size: h } = E(B),
|
|
15
|
-
[o.disabled]: r ===
|
|
16
|
-
[o.placeholder]: !!n && !s && r !==
|
|
17
|
-
}),
|
|
14
|
+
const { className: p, id: e, onBlur: l, onFocus: i, placeholder: n, children: s, ...g } = F, { status: r, setFocused: f, setId: t, setValueExist: u, size: h } = E(B), z = S(o.formFieldTarget, p, o[`size-${h}`], {
|
|
15
|
+
[o.disabled]: r === a.DISABLED,
|
|
16
|
+
[o.placeholder]: !!n && !s && r !== a.DISABLED
|
|
17
|
+
}), d = T(e || A("formFieldTarget_"));
|
|
18
18
|
m(() => {
|
|
19
|
-
t(
|
|
19
|
+
t(d.current);
|
|
20
20
|
}, [t]), m(() => {
|
|
21
|
-
e && (
|
|
21
|
+
e && (d.current = e, t(d.current));
|
|
22
22
|
}, [e, t]), m(() => {
|
|
23
23
|
u(!!s);
|
|
24
24
|
}, [u, s]);
|
|
25
|
-
const
|
|
25
|
+
const D = (c) => {
|
|
26
26
|
f(!1), l == null || l(c);
|
|
27
|
-
},
|
|
27
|
+
}, I = (c) => {
|
|
28
28
|
f(!0), i == null || i(c);
|
|
29
29
|
};
|
|
30
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ b(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
...g,
|
|
34
|
-
className:
|
|
35
|
-
"aria-disabled": r ===
|
|
36
|
-
id:
|
|
37
|
-
onFocus:
|
|
38
|
-
onBlur:
|
|
39
|
-
tabIndex: r ===
|
|
34
|
+
className: z,
|
|
35
|
+
"aria-disabled": r === a.DISABLED,
|
|
36
|
+
id: d.current,
|
|
37
|
+
onFocus: I,
|
|
38
|
+
onBlur: D,
|
|
39
|
+
tabIndex: r === a.DISABLED ? -1 : 0,
|
|
40
40
|
ref: _,
|
|
41
41
|
children: s || n
|
|
42
42
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import _, { useContext as h, useRef as N, useEffect as c } from "react";
|
|
3
3
|
import { FormFieldContext as R } from "../FormFieldContext.js";
|
|
4
|
-
import {
|
|
5
|
-
import { EFormFieldStatus as
|
|
6
|
-
const
|
|
7
|
-
formFieldTextarea:
|
|
4
|
+
import { a as y, c as C } from "../../../chunks/vendor-CehxOAkM.js";
|
|
5
|
+
import { EFormFieldStatus as D } from "../enums.js";
|
|
6
|
+
const S = "formFieldTextarea__8ef5fe96", b = {
|
|
7
|
+
formFieldTextarea: S
|
|
8
8
|
}, j = _.forwardRef(
|
|
9
9
|
({ className: i, id: e, onBlur: a, onFocus: s, placeholder: l, value: o, ...n }, x) => {
|
|
10
|
-
const { status: u, focused: F, setFocused: d, setId: t, setValueExist: f } = h(R), r = N(e ||
|
|
10
|
+
const { status: u, focused: F, setFocused: d, setId: t, setValueExist: f } = h(R), r = N(e || y()), p = C(b.formFieldTextarea, i);
|
|
11
11
|
c(() => {
|
|
12
12
|
t(r.current);
|
|
13
13
|
}, [t]), c(() => {
|
|
@@ -26,7 +26,7 @@ const D = "formFieldTextarea__777f7b21", S = {
|
|
|
26
26
|
...n,
|
|
27
27
|
id: r.current,
|
|
28
28
|
className: p,
|
|
29
|
-
disabled: u ===
|
|
29
|
+
disabled: u === D.DISABLED,
|
|
30
30
|
onFocus: E,
|
|
31
31
|
onBlur: T,
|
|
32
32
|
placeholder: F ? l : void 0,
|