@moysklad/uikit 28.1.0 → 31.20.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 +11 -3
- package/dist/colorVariables.css +33 -1
- package/dist/components/AutoComplete/AutoComplete.d.ts +4 -2
- package/dist/components/AutoComplete/AutoComplete.js +47 -33
- package/dist/components/Badge/Badge.js +2 -3
- package/dist/components/Badge/Badge_module.css +2 -3
- package/dist/components/BentoBlock/BentoBlock.d.ts +15 -0
- package/dist/components/BentoBlock/BentoBlock.js +20 -0
- package/dist/components/BentoBlock/BentoBlock.module.js +9 -0
- package/dist/components/BentoBlock/BentoBlock_module.css +50 -0
- package/dist/components/BentoBlock/consts.d.ts +14 -0
- package/dist/components/BentoBlock/consts.js +15 -0
- package/dist/components/BottomSheet/BottomSheet.js +2 -2
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +5 -3
- package/dist/components/Breadcrumbs/BreadcrumbItem.js +39 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +4 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +10 -6
- package/dist/components/Button/Button.d.ts +6 -2
- package/dist/components/Button/Button.js +29 -20
- package/dist/components/Button/Button.module.js +1 -0
- package/dist/components/Button/Button_module.css +20 -14
- package/dist/components/Carousel/Carousel.js +5 -4
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Chip/Chip.helpers.js +5 -2
- package/dist/components/Chip/Chip.js +9 -3
- package/dist/components/Chip/Chip.legacy_module.css +2 -2
- package/dist/components/Chip/Chip.types.d.ts +10 -4
- package/dist/components/Chip/Chip_module.css +5 -5
- package/dist/components/Chip/components/ChipLabel.d.ts +3 -1
- package/dist/components/Chip/components/ChipLabel.js +4 -2
- package/dist/components/Chip/components/ChipMainButton.d.ts +3 -4
- package/dist/components/Chip/components/ChipMainButton.js +2 -1
- package/dist/components/Chip/components/ChipRoot.d.ts +3 -2
- package/dist/components/Chip/components/ChipRoot.js +2 -1
- package/dist/components/DateRange/ArrowButton/ArrowButton.module.js +6 -0
- package/dist/components/DateRange/ArrowButton/ArrowButton_module.css +26 -0
- package/dist/components/DateRange/ArrowButton/index.d.ts +8 -0
- package/dist/components/DateRange/ArrowButton/index.js +23 -0
- package/dist/components/DateRange/Calendar/index.d.ts +12 -0
- package/dist/components/DateRange/Calendar/index.js +22 -0
- package/dist/components/DateRange/DateRange.d.ts +6 -0
- package/dist/components/DateRange/DateRange.js +51 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.d.ts +44 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.js +128 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.module.js +19 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger_module.css +170 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger.module.js +12 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger_module.css +43 -0
- package/dist/components/DateRange/DateRangeInput/DateRangeInput.d.ts +4 -0
- package/dist/components/DateRange/DateRangeInput/DateRangeInput.js +69 -0
- package/dist/components/DateRange/Day/Day.module.js +16 -0
- package/dist/components/DateRange/Day/Day_module.css +80 -0
- package/dist/components/DateRange/Day/index.d.ts +12 -0
- package/dist/components/DateRange/Day/index.js +39 -0
- package/dist/components/DateRange/DropdownContent/DropdownContent.module.js +10 -0
- package/dist/components/DateRange/DropdownContent/DropdownContent_module.css +34 -0
- package/dist/components/DateRange/DropdownContent/index.d.ts +24 -0
- package/dist/components/DateRange/DropdownContent/index.js +132 -0
- package/dist/components/DateRange/InputContent/InputContent.module.js +9 -0
- package/dist/components/DateRange/InputContent/InputContent_module.css +31 -0
- package/dist/components/DateRange/InputContent/index.d.ts +12 -0
- package/dist/components/DateRange/InputContent/index.js +59 -0
- package/dist/components/DateRange/Month/Month.module.js +7 -0
- package/dist/components/DateRange/Month/Month_module.css +17 -0
- package/dist/components/DateRange/Month/index.d.ts +15 -0
- package/dist/components/DateRange/Month/index.js +158 -0
- package/dist/components/DateRange/Month/utils.d.ts +2 -0
- package/dist/components/DateRange/Month/utils.js +8 -0
- package/dist/components/DateRange/MonthHeader/MonthHeader.module.js +5 -0
- package/dist/components/DateRange/MonthHeader/MonthHeader_module.css +10 -0
- package/dist/components/DateRange/MonthHeader/index.d.ts +5 -0
- package/dist/components/DateRange/MonthHeader/index.js +26 -0
- package/dist/components/DateRange/MonthList/MonthList.module.js +7 -0
- package/dist/components/DateRange/MonthList/MonthList_module.css +25 -0
- package/dist/components/DateRange/MonthList/index.d.ts +11 -0
- package/dist/components/DateRange/MonthList/index.js +91 -0
- package/dist/components/DateRange/PeriodVariantList/PeriodVariantList.module.js +9 -0
- package/dist/components/DateRange/PeriodVariantList/PeriodVariantList_module.css +18 -0
- package/dist/components/DateRange/PeriodVariantList/index.d.ts +18 -0
- package/dist/components/DateRange/PeriodVariantList/index.js +83 -0
- package/dist/components/DateRange/SideMenu/SideMenu.module.js +6 -0
- package/dist/components/DateRange/SideMenu/SideMenu_module.css +18 -0
- package/dist/components/DateRange/SideMenu/index.d.ts +13 -0
- package/dist/components/DateRange/SideMenu/index.js +73 -0
- package/dist/components/DateRange/TooltipedText/index.d.ts +8 -0
- package/dist/components/DateRange/TooltipedText/index.js +30 -0
- package/dist/components/DateRange/Year/Year.module.js +11 -0
- package/dist/components/DateRange/Year/Year_module.css +60 -0
- package/dist/components/DateRange/Year/index.d.ts +8 -0
- package/dist/components/DateRange/Year/index.js +47 -0
- package/dist/components/DateRange/YearsList/YearsList.module.js +5 -0
- package/dist/components/DateRange/YearsList/YearsList_module.css +15 -0
- package/dist/components/DateRange/YearsList/index.d.ts +12 -0
- package/dist/components/DateRange/YearsList/index.js +47 -0
- package/dist/components/DateRange/consts.d.ts +20 -0
- package/dist/components/DateRange/consts.js +81 -0
- package/dist/components/DateRange/formatDateRangeValue.d.ts +24 -0
- package/dist/components/DateRange/formatDateRangeValue.js +116 -0
- package/dist/components/DateRange/hooks/useCalendar.d.ts +13 -0
- package/dist/components/DateRange/hooks/useCalendar.js +88 -0
- package/dist/components/DateRange/hooks/useDateRange.d.ts +392 -0
- package/dist/components/DateRange/hooks/useDateRange.js +36 -0
- package/dist/components/DateRange/hooks/useDateRangeDropdown.d.ts +47 -0
- package/dist/components/DateRange/hooks/useDateRangeDropdown.js +117 -0
- package/dist/components/DateRange/hooks/useDateRangeValue.d.ts +56 -0
- package/dist/components/DateRange/hooks/useDateRangeValue.js +173 -0
- package/dist/components/DateRange/hooks/useMaskInput.d.ts +18 -0
- package/dist/components/DateRange/hooks/useMaskInput.js +169 -0
- package/dist/components/DateRange/hooks/useMonthList.d.ts +12 -0
- package/dist/components/DateRange/hooks/useMonthList.js +80 -0
- package/dist/components/DateRange/hooks/useSideMenu.d.ts +14 -0
- package/dist/components/DateRange/hooks/useSideMenu.js +113 -0
- package/dist/components/DateRange/index.d.ts +1 -0
- package/dist/components/DateRange/index.js +1 -0
- package/dist/components/DateRange/locale/en-US.d.ts +2 -0
- package/dist/components/DateRange/locale/en-US.js +82 -0
- package/dist/components/DateRange/locale/index.d.ts +4 -0
- package/dist/components/DateRange/locale/index.js +3 -0
- package/dist/components/DateRange/locale/ru-RU.d.ts +2 -0
- package/dist/components/DateRange/locale/ru-RU.js +82 -0
- package/dist/components/DateRange/locale/types.d.ts +9 -0
- package/dist/components/DateRange/locale/types.js +7 -0
- package/dist/components/DateRange/locale/useLocale.d.ts +8 -0
- package/dist/components/DateRange/locale/useLocale.js +31 -0
- package/dist/components/DateRange/props.d.ts +39 -0
- package/dist/components/DateRange/props.js +0 -0
- package/dist/components/DateRange/types.d.ts +126 -0
- package/dist/components/DateRange/types.js +13 -0
- package/dist/components/DateRange/utils.d.ts +33 -0
- package/dist/components/DateRange/utils.js +105 -0
- package/dist/components/Datepicker/Datepicker.d.ts +3 -1
- package/dist/components/Datepicker/Datepicker.js +4 -2
- package/dist/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.js +7 -4
- package/dist/components/Dropdown/hooks/usePosition.d.ts +2 -1
- package/dist/components/Dropdown/hooks/usePosition.js +3 -3
- package/dist/components/EditableDate/DropdownContent/DropdownContent.d.ts +9 -0
- package/dist/components/EditableDate/DropdownContent/DropdownContent.js +36 -0
- package/dist/components/EditableDate/EditableDate.d.ts +9 -0
- package/dist/components/EditableDate/EditableDate.js +142 -0
- package/dist/components/EditableDate/EditableDate.module.js +7 -0
- package/dist/components/EditableDate/EditableDate_module.css +32 -0
- package/dist/components/EditableTitle/EditableTitle.d.ts +7 -2
- package/dist/components/EditableTitle/EditableTitle.js +64 -32
- package/dist/components/EditableTitle/EditableTitle.module.js +1 -0
- package/dist/components/EditableTitle/EditableTitle_module.css +6 -0
- package/dist/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/EmptyStateLarge/EmptyStateLarge_module.css +2 -2
- package/dist/components/FileUploader/FileUploader.helpers.d.ts +1 -0
- package/dist/components/FileUploader/FileUploader.helpers.js +4 -1
- package/dist/components/FileUploader/FileUploader.js +3 -1
- package/dist/components/FileUploader/FileUploader.types.d.ts +1 -0
- package/dist/components/FileUploader/components/FileUploaderPreview/FileUploaderPreview.js +4 -4
- package/dist/components/Help/Help.d.ts +12 -5
- package/dist/components/Help/Help.js +22 -7
- package/dist/components/Help/Help.module.js +6 -2
- package/dist/components/Help/Help_module.css +36 -8
- package/dist/components/Hint/Hint.js +4 -5
- package/dist/components/Hint/Hint.module.js +2 -3
- package/dist/components/Hint/Hint_module.css +0 -9
- package/dist/components/Informer/Informer.d.ts +37 -0
- package/dist/components/Informer/Informer.js +36 -0
- package/dist/components/Informer/Informer.module.js +7 -0
- package/dist/components/Informer/Informer_module.css +24 -0
- package/dist/components/Input/Input.d.ts +10 -0
- package/dist/components/Input/Input.js +99 -43
- package/dist/components/Input/Input.module.js +19 -3
- package/dist/components/Input/Input_module.css +156 -19
- package/dist/components/Input/components/InfoBlock.d.ts +14 -0
- package/dist/components/Input/components/InfoBlock.js +32 -0
- package/dist/components/InputUnit/InputUnit.d.ts +3 -0
- package/dist/components/InputUnit/InputUnit.js +45 -35
- package/dist/components/InputUnit/InputUnit.module.js +6 -1
- package/dist/components/InputUnit/InputUnit_module.css +27 -29
- package/dist/components/InputUnit/SelectUnit/SelectUnit.d.ts +1 -1
- package/dist/components/InputUnit/SelectUnit/SelectUnit.js +1 -4
- package/dist/components/InputUnit/SelectUnit/SelectUnit.module.js +1 -0
- package/dist/components/InputUnit/SelectUnit/SelectUnitVisible.d.ts +1 -1
- package/dist/components/InputUnit/SelectUnit/SelectUnitVisible.js +7 -2
- package/dist/components/InputUnit/SelectUnit/SelectUnit_module.css +29 -37
- package/dist/components/InputUnit/SelectUnit/type.d.ts +1 -0
- package/dist/components/InputUnit/Unit/Unit.js +1 -2
- package/dist/components/InputUnit/Unit/Unit_module.css +1 -0
- package/dist/components/Label/Label.d.ts +1 -0
- package/dist/components/LabelValue/LabelValue.d.ts +14 -10
- package/dist/components/LabelValue/LabelValue.js +59 -72
- package/dist/components/LabelValue/LabelValue.module.js +7 -4
- package/dist/components/LabelValue/LabelValue_module.css +36 -19
- package/dist/components/LabelValue/ValueBlock/ValueBlock.d.ts +2 -0
- package/dist/components/LabelValue/ValueBlock/ValueBlock.js +82 -0
- package/dist/components/LabelValue/ValueBlockWrapper.d.ts +5 -0
- package/dist/components/LabelValue/ValueBlockWrapper.js +13 -0
- package/dist/components/LabelValue/ValueIcon.d.ts +4 -0
- package/dist/components/LabelValue/ValueIcon.js +9 -0
- package/dist/components/LabelValue/ValueText.d.ts +10 -0
- package/dist/components/LabelValue/ValueText.js +24 -0
- package/dist/components/LabelValue/ValueTextWithHint.d.ts +12 -0
- package/dist/components/LabelValue/ValueTextWithHint.js +29 -0
- package/dist/components/LabelValue/hooks/useValueBlock.d.ts +29 -0
- package/dist/components/LabelValue/hooks/useValueBlock.js +72 -0
- package/dist/components/LabelValue/{ValueBlock/index.d.ts → types.d.ts} +8 -4
- package/dist/components/LabelValue/types.js +0 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox.d.ts +10 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox.js +22 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox.module.js +5 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox_module.css +5 -0
- package/dist/components/LabelValueDate/LabelValueDate.js +2 -2
- package/dist/components/LabelValueFile/DeleteButton/DeleteButton.d.ts +9 -0
- package/dist/components/LabelValueFile/DeleteButton/DeleteButton.js +17 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.d.ts +7 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.js +15 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.module.js +6 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon_module.css +10 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview.d.ts +8 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview.js +53 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview.module.js +6 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview_module.css +13 -0
- package/dist/components/LabelValueFile/LabelValueFile.d.ts +7 -0
- package/dist/components/LabelValueFile/LabelValueFile.js +42 -0
- package/dist/components/LabelValueFile/LabelValueFile.module.js +12 -0
- package/dist/components/LabelValueFile/LabelValueFile_module.css +57 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock.d.ts +15 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock.js +130 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock.module.js +7 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock_module.css +17 -0
- package/dist/components/LabelValueInput/DropdownConnent/DropdownContent.d.ts +2 -0
- package/dist/components/LabelValueInput/DropdownConnent/DropdownContent.js +2 -0
- package/dist/components/LabelValueLink/LabelValueLink.d.ts +2 -0
- package/dist/components/LabelValueLink/LabelValueLink.js +76 -0
- package/dist/components/LabelValueLink/LabelValueLink.module.js +6 -0
- package/dist/components/LabelValueLink/LabelValueLink_module.css +11 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.d.ts +2 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.js +117 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.module.js +6 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock_module.css +8 -0
- package/dist/components/LabelValueLink/normalizeLinkValue.d.ts +1 -0
- package/dist/components/LabelValueLink/normalizeLinkValue.js +10 -0
- package/dist/components/LabelValueLink/useLinkDropdownValue.d.ts +15 -0
- package/dist/components/LabelValueLink/useLinkDropdownValue.js +26 -0
- package/dist/components/LabelValueSelect/Input/Input_module.css +1 -3
- package/dist/components/LabelValueSelect/Input/index.js +1 -1
- package/dist/components/LabelValueSelect/LabelValueSelect.d.ts +4 -2
- package/dist/components/Layout/Layout.d.ts +13 -0
- package/dist/components/Layout/Layout.js +41 -0
- package/dist/components/Layout/Layout.module.js +15 -0
- package/dist/components/Layout/Layout_module.css +77 -0
- package/dist/components/Link/Link.d.ts +5 -6
- package/dist/components/Link/Link.js +35 -9
- package/dist/components/Link/Link.module.js +1 -0
- package/dist/components/Link/Link_module.css +9 -0
- package/dist/components/MentionsTextfield/Mentions/style.css +2 -6
- package/dist/components/MentionsTextfield/MentionsTextfield.d.ts +1 -1
- package/dist/components/MentionsTextfield/MentionsTextfield.js +42 -25
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.d.ts +8 -0
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.js +13 -0
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.module.js +5 -0
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip_module.css +9 -0
- package/dist/components/Multiselect/DropdownContent/MultiselectDropdownContent.d.ts +12 -1
- package/dist/components/Multiselect/DropdownContent/MultiselectDropdownContent.js +25 -19
- package/dist/components/Multiselect/Input/Input.d.ts +6 -2
- package/dist/components/Multiselect/Input/Input.js +18 -4
- package/dist/components/Multiselect/Input/Input_module.css +1 -3
- package/dist/components/Multiselect/Multiselect.d.ts +8 -2
- package/dist/components/Multiselect/Multiselect.js +14 -2
- package/dist/components/Multiselect/ShortDropdownContent/ShortDropdownContent.js +2 -1
- package/dist/components/Multiselect/TextField/MultiselectTextField.d.ts +5 -1
- package/dist/components/Multiselect/TextField/MultiselectTextField.js +15 -2
- package/dist/components/Multiselect/lib/consts.d.ts +1 -1
- package/dist/components/Multiselect/lib/consts.js +1 -1
- package/dist/components/Multiselect/lib/helpers.d.ts +24 -0
- package/dist/components/Multiselect/lib/helpers.js +15 -0
- package/dist/components/Multiselect/types.d.ts +2 -0
- package/dist/components/Panel/Panel.d.ts +34 -0
- package/dist/components/Panel/Panel.js +39 -0
- package/dist/components/Panel/Panel.module.js +6 -0
- package/dist/components/Panel/Panel_module.css +17 -0
- package/dist/components/Radiobutton/Radiobutton.js +1 -1
- package/dist/components/Radiobutton/Radiobutton_module.css +5 -0
- package/dist/components/SearchInput/SearchInput_module.css +1 -1
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.d.ts +3 -4
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.js +19 -24
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.module.js +1 -2
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue_module.css +5 -12
- package/dist/components/Select/Combobox/Combobox.d.ts +3 -1
- package/dist/components/Select/Combobox/Combobox.js +19 -8
- package/dist/components/Select/Combobox/Combobox.module.js +4 -3
- package/dist/components/Select/Combobox/Combobox_module.css +17 -15
- package/dist/components/Select/DropDownWithColors/DropDownWithColors.d.ts +1 -0
- package/dist/components/Select/DropDownWithColors/DropDownWithColors.js +2 -1
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.d.ts +3 -0
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.js +17 -0
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.module.js +6 -0
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer_module.css +12 -0
- package/dist/components/Select/OptionsList/OptionsList.d.ts +4 -1
- package/dist/components/Select/OptionsList/OptionsList.js +39 -22
- package/dist/components/Select/OptionsList/OptionsList.module.js +2 -0
- package/dist/components/Select/OptionsList/OptionsList_module.css +19 -0
- package/dist/components/Select/Select.d.ts +10 -5
- package/dist/components/Select/Select.js +45 -40
- package/dist/components/Select/Select.module.js +1 -2
- package/dist/components/Select/Select_module.css +7 -14
- package/dist/components/Select/ShortVariant/ShortVariant.d.ts +5 -1
- package/dist/components/Select/ShortVariant/ShortVariant.js +6 -5
- package/dist/components/Select/ShortVariant/ShortVariant.module.js +1 -0
- package/dist/components/Select/ShortVariant/ShortVariant_module.css +5 -1
- package/dist/components/Select/types.d.ts +1 -0
- package/dist/components/Select/useDropdownPadding.d.ts +5 -0
- package/dist/components/Select/useDropdownPadding.js +22 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +28 -0
- package/dist/components/StatusBadge/StatusBadge.js +167 -0
- package/dist/components/StatusBadge/StatusBadge.module.js +37 -0
- package/dist/components/StatusBadge/StatusBadge_module.css +149 -0
- package/dist/components/StatusBadge/utils/StatusBadgeColor.d.ts +21 -0
- package/dist/components/StatusBadge/utils/StatusBadgeColor.js +20 -0
- package/dist/components/StatusBadge/utils/getStatusBadgeColor.d.ts +2 -0
- package/dist/components/StatusBadge/utils/getStatusBadgeColor.js +8 -0
- package/dist/components/Textfield/Textfield.d.ts +24 -3
- package/dist/components/Textfield/Textfield.js +38 -13
- package/dist/components/Textfield/Textfield.module.js +2 -1
- package/dist/components/Textfield/Textfield_module.css +95 -23
- package/dist/components/Textfield/components/ActionButton/ActionButton.d.ts +9 -0
- package/dist/components/Textfield/components/ActionButton/ActionButton.js +12 -0
- package/dist/components/Textfield/components/ActionButton/ActionButton.module.js +9 -0
- package/dist/components/Textfield/components/ActionButton/ActionButton_module.css +54 -0
- package/dist/components/Textfield/components/ActionButton/index.d.ts +1 -0
- package/dist/components/Textfield/components/ActionButton/index.js +1 -0
- package/dist/components/Textfield/components/Container/Container.d.ts +2 -0
- package/dist/components/Textfield/components/Container/Container.js +21 -7
- package/dist/components/Textfield/components/Container/Container.module.js +2 -1
- package/dist/components/Textfield/components/Container/Container_module.css +4 -0
- package/dist/components/Textfield/components/Counter/Counter.d.ts +3 -1
- package/dist/components/Textfield/components/Counter/Counter.js +5 -3
- package/dist/components/Textfield/components/Info/Info.d.ts +3 -1
- package/dist/components/Textfield/components/Info/Info.js +9 -4
- package/dist/components/Textfield/components/InnerContainer/InnerContainer.d.ts +3 -6
- package/dist/components/Textfield/components/InnerContainer/InnerContainer.js +2 -8
- package/dist/components/Textfield/components/InputContainer/InputContainer.d.ts +14 -3
- package/dist/components/Textfield/components/InputContainer/InputContainer.js +74 -5
- package/dist/components/Textfield/components/InputContainer/InputContainer.module.js +7 -1
- package/dist/components/Textfield/components/InputContainer/InputContainer_module.css +36 -7
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.d.ts +10 -0
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.js +50 -0
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.module.js +7 -0
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle_module.css +21 -0
- package/dist/components/Textfield/components/ResizeHandle/index.d.ts +1 -0
- package/dist/components/Textfield/components/ResizeHandle/index.js +1 -0
- package/dist/components/Textfield/consts/index.d.ts +2 -0
- package/dist/components/Textfield/consts/index.js +3 -0
- package/dist/components/Textfield/types/index.d.ts +12 -0
- package/dist/components/Textfield/types/index.js +5 -0
- package/dist/components/Textfield/utils/index.d.ts +3 -0
- package/dist/components/Textfield/utils/index.js +8 -0
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -1
- package/dist/components/Tooltip/Tooltip.js +9 -9
- package/dist/components/Tooltip/Tooltip.module.js +3 -1
- package/dist/components/Tooltip/Tooltip_module.css +13 -3
- package/dist/components/Tooltip/{consts.d.ts → constants/ArrowAlign.d.ts} +0 -2
- package/dist/components/Tooltip/constants/TooltipBodyColor.d.ts +4 -0
- package/dist/components/Tooltip/constants/TooltipBodyColor.js +5 -0
- package/dist/components/Tooltip/constants/index.d.ts +2 -0
- package/dist/components/Tooltip/constants/index.js +2 -0
- package/dist/components/Tooltip/hooks.d.ts +2 -2
- package/dist/components/Tooltip/hooks.js +1 -1
- package/dist/components/Tooltip/types.d.ts +4 -0
- package/dist/components/Tooltip/types.js +0 -0
- package/dist/components/ViewersStack/ViewersStack.d.ts +13 -0
- package/dist/components/ViewersStack/ViewersStack.js +79 -0
- package/dist/components/ViewersStack/ViewersStack.module.js +7 -0
- package/dist/components/ViewersStack/ViewersStack_module.css +18 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar.d.ts +13 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar.js +35 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar.module.js +13 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar_module.css +45 -0
- package/dist/components/ViewersStack/components/Counter/Counter.d.ts +9 -0
- package/dist/components/ViewersStack/components/Counter/Counter.js +27 -0
- package/dist/components/ViewersStack/components/Counter/Counter.module.js +5 -0
- package/dist/components/ViewersStack/components/Counter/Counter_module.css +20 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.d.ts +15 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.js +41 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.module.js +6 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip_module.css +14 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.d.ts +6 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.js +53 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.module.js +7 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem_module.css +18 -0
- package/dist/components/ViewersStack/components/common.module.js +7 -0
- package/dist/components/ViewersStack/components/common_module.css +27 -0
- package/dist/components/ViewersStack/types.d.ts +22 -0
- package/dist/components/ViewersStack/types.js +17 -0
- package/dist/components/ViewersStack/utils.d.ts +3 -0
- package/dist/components/ViewersStack/utils.js +17 -0
- package/dist/components/_shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.d.ts +12 -0
- package/dist/components/{LabelValueDate/DropdownContent/index.js → _shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.js} +10 -10
- package/dist/components/_shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.module.js +9 -0
- package/dist/components/{LabelValueDate/DropdownContent/DropdownContent_module.css → _shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent_module.css} +6 -6
- package/dist/components/_shared/FieldLabel/FieldLabel.constants.d.ts +1 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.constants.js +5 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.d.ts +18 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.js +83 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.module.js +11 -0
- package/dist/components/_shared/FieldLabel/FieldLabel_module.css +42 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton.d.ts +8 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton.js +15 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton.module.js +5 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton_module.css +8 -0
- package/dist/components/_shared/FieldLabel/components/index.d.ts +1 -0
- package/dist/components/_shared/FieldLabel/components/index.js +1 -0
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.d.ts +1 -1
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.js +1 -1
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.module.js +3 -3
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow_module.css +3 -3
- package/dist/components/{EditableTitle → _shared/HintWithSkip}/HintWithSkip.d.ts +1 -1
- package/dist/components/{EditableTitle → _shared/HintWithSkip}/HintWithSkip.js +1 -1
- package/dist/components/_shared/Info/Info.d.ts +12 -0
- package/dist/components/_shared/Info/Info.js +46 -0
- package/dist/components/_shared/Info/Info.module.js +9 -0
- package/dist/components/_shared/Info/Info_module.css +32 -0
- package/dist/components/_shared/Info/types/index.d.ts +6 -0
- package/dist/components/_shared/Info/types/index.js +5 -0
- package/dist/components/_shared/InputClear/InputClear.d.ts +14 -0
- package/dist/components/_shared/InputClear/InputClear.js +18 -0
- package/dist/components/{InputClear → _shared/InputClear}/InputClear.module.js +3 -1
- package/dist/components/_shared/InputClear/InputClear_module.css +34 -0
- package/dist/components/_shared/utils/polymorphicClickableTypes.d.ts +17 -0
- package/dist/components/_shared/utils/polymorphicClickableTypes.js +7 -0
- package/dist/data-grid/Filters/DateRangeFilter/DropdownContent/index.js +3 -3
- package/dist/data-grid/Filters/DateRangeFilter/InputContent/index.js +29 -26
- package/dist/data-grid/Filters/DateRangeFilter/PeriodVariantList/index.js +5 -3
- package/dist/data-grid/Filters/DateRangeFilter/Year/index.js +3 -3
- package/dist/data-grid/Filters/DateRangeFilter/consts.js +6 -6
- package/dist/data-grid/Filters/DateRangeFilter/hooks/useMaskInput.js +6 -6
- package/dist/data-grid/Filters/DateRangeFilter/hooks/useSideMenu.js +1 -4
- package/dist/data-grid/Filters/DateRangeFilter/types.d.ts +68 -56
- package/dist/data-grid/Filters/FiltersContainer/FiltersContainer.js +2 -1
- package/dist/data-grid/Filters/FiltersContainer/utils/useRenderParams.d.ts +1 -0
- package/dist/data-grid/Filters/FiltersContainer/utils/useRenderParams.js +14 -6
- package/dist/data-grid/Filters/MultiselectFilter/MultiselectFilter.js +2 -2
- package/dist/data-grid/Filters/OutlineInput/OutlineInput.js +2 -2
- package/dist/data-grid/Filters/OutlineInput/OutlineInput_module.css +1 -1
- package/dist/data-grid/Table/Table.d.ts +14 -22
- package/dist/data-grid/Table/Table.js +99 -61
- package/dist/data-grid/Table/Table.module.js +2 -0
- package/dist/data-grid/Table/Table_module.css +23 -1
- package/dist/data-grid/Table/components/Body/Body.d.ts +10 -14
- package/dist/data-grid/Table/components/Body/Body.js +11 -47
- package/dist/data-grid/Table/components/DraggableRow/DraggableRow.js +1 -1
- package/dist/data-grid/Table/components/Footer/Footer.module.js +0 -1
- package/dist/data-grid/Table/components/Footer/FooterContent.d.ts +9 -0
- package/dist/data-grid/Table/components/Footer/{Footer.js → FooterContent.js} +4 -5
- package/dist/data-grid/Table/components/Footer/Footer_module.css +0 -5
- package/dist/data-grid/Table/components/Header/Header.module.js +0 -1
- package/dist/data-grid/Table/components/Header/HeaderCell.js +3 -1
- package/dist/data-grid/Table/components/Header/HeaderContent.d.ts +1 -0
- package/dist/data-grid/Table/components/Header/{Header.js → HeaderContent.js} +8 -6
- package/dist/data-grid/Table/components/Header/Header_module.css +0 -15
- package/dist/data-grid/Table/components/Row/Row.d.ts +13 -0
- package/dist/data-grid/Table/components/Row/Row.js +40 -0
- package/dist/data-grid/Table/components/Row/Row.module.js +14 -0
- package/dist/data-grid/Table/components/{TableRow/TableRow_module.css → Row/Row_module.css} +7 -7
- package/dist/data-grid/Table/components/SubRows/SubRows.d.ts +5 -4
- package/dist/data-grid/Table/components/SubRows/SubRows.js +3 -3
- package/dist/data-grid/Table/components/TableCell/TableCell.js +2 -0
- package/dist/data-grid/Table/components/TableDragOverlay/TableDragOverlay.d.ts +5 -6
- package/dist/data-grid/Table/components/TableDragOverlay/TableDragOverlay.js +2 -2
- package/dist/data-grid/Table/components/TableRow/TableRow.d.ts +6 -14
- package/dist/data-grid/Table/components/TableRow/TableRow.js +34 -25
- package/dist/data-grid/Table/components/VirtualTable/VirtualTable.d.ts +10 -0
- package/dist/data-grid/Table/components/VirtualTable/VirtualTable.js +78 -0
- package/dist/data-grid/Table/components/VirtualTable/VirtualTableRow.d.ts +11 -0
- package/dist/data-grid/Table/components/VirtualTable/VirtualTableRow.js +18 -0
- package/dist/data-grid/Table/components/index.d.ts +3 -3
- package/dist/data-grid/Table/components/index.js +2 -2
- package/dist/data-grid/Table/constants.d.ts +2 -0
- package/dist/data-grid/Table/constants.js +3 -1
- package/dist/data-grid/Table/hooks/index.d.ts +1 -0
- package/dist/data-grid/Table/hooks/index.js +1 -0
- package/dist/data-grid/Table/hooks/useRowContext.d.ts +16 -0
- package/dist/data-grid/Table/hooks/useRowContext.js +44 -0
- package/dist/data-grid/Table/hooks/useTableContext.d.ts +7 -2
- package/dist/data-grid/Table/hooks/useTableContext.js +12 -2
- package/dist/data-grid/Table/index.d.ts +2 -2
- package/dist/data-grid/Table/types.d.ts +8 -1
- package/dist/data-grid/Table/types.js +5 -0
- package/dist/data-grid/Table/utils/compareColumnIds.d.ts +1 -0
- package/dist/data-grid/Table/utils/compareColumnIds.js +6 -0
- package/dist/data-grid/Table/utils/getColumnWidthStyles.d.ts +5 -0
- package/dist/data-grid/Table/utils/getColumnWidthStyles.js +4 -1
- package/dist/data-grid/Table/utils/getTableColumnIds.d.ts +3 -0
- package/dist/data-grid/Table/utils/getTableColumnIds.js +5 -0
- package/dist/data-grid/Table/utils/index.d.ts +2 -0
- package/dist/data-grid/Table/utils/index.js +2 -0
- package/dist/data-grid/Table/utils/withDnD.js +1 -1
- package/dist/data-grid/base/DropdownItem/DropdownItem.d.ts +3 -3
- package/dist/data-grid/base/DropdownItem/DropdownItem.js +3 -2
- package/dist/data-grid/base/OverflowHint/OverflowHint.d.ts +1 -0
- package/dist/data-grid/base/OverflowHint/OverflowHint.js +5 -3
- package/dist/data-grid/base/OverflowHint/utils.d.ts +1 -0
- package/dist/data-grid/base/OverflowHint/utils.js +7 -0
- package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell.js +3 -4
- package/dist/data-grid/cells/DecimalCell/DecimalCell_module.css +1 -1
- package/dist/data-grid/cells/FileCell/FileCell_module.css +1 -1
- package/dist/data-grid/cells/ImageCell/ImageCell.d.ts +1 -0
- package/dist/data-grid/cells/ImageCell/ImageCell.js +5 -2
- package/dist/data-grid/cells/ImageCell/ImageMiniature/ImageMiniature_module.css +1 -1
- package/dist/data-grid/cells/IndexCheckboxDndCell/IndexCheckboxDndCell.d.ts +7 -2
- package/dist/data-grid/cells/IndexCheckboxDndCell/IndexCheckboxDndCell.js +6 -4
- package/dist/data-grid/cells/InputCell/InputCell.js +3 -4
- package/dist/data-grid/cells/IntegerCell/IntegerCell_module.css +1 -1
- package/dist/data-grid/cells/LinkCell/LinkCell_module.css +1 -1
- package/dist/data-grid/cells/NameCell/NameCell.js +3 -0
- package/dist/data-grid/cells/NameCell/NameCell_module.css +2 -2
- package/dist/data-grid/cells/NumberInputCell/NumberInputCell.js +19 -17
- package/dist/data-grid/cells/SelectCell/SelectCell.js +3 -4
- package/dist/data-grid/cells/TextCell/TextCell_module.css +1 -1
- package/dist/data-grid/cells/ToggleCell/ToggleCell_module.css +1 -1
- package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.d.ts +3 -0
- package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.js +9 -0
- package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.module.js +5 -0
- package/dist/data-grid/cells/{InputCell/InputCell_module.css → components/EditableCellWrapper/EditableCellWrapper_module.css} +2 -2
- package/dist/data-grid/cells/components/EditableCellWrapper/index.d.ts +1 -0
- package/dist/data-grid/cells/components/EditableCellWrapper/index.js +1 -0
- package/dist/data-grid/cells/components/RowActionsMenu/RowActionsMenu.d.ts +4 -3
- package/dist/data-grid/cells/components/RowActionsMenu/RowActionsMenu.js +13 -13
- package/dist/data-grid/cells/components/TableInput/TableInput.js +19 -3
- package/dist/data-grid/cells/components/TableInput/TableInput_module.css +1 -1
- package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.d.ts +5 -3
- package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.js +56 -55
- package/dist/data-grid/cells/components/TableSelect/ActionButton/ActionButton.d.ts +4 -1
- package/dist/data-grid/cells/components/TableSelect/ActionButton/ActionButton.js +4 -3
- package/dist/data-grid/cells/components/TableSelect/TableSelect.d.ts +15 -10
- package/dist/data-grid/cells/components/TableSelect/TableSelect.js +13 -8
- package/dist/data-grid/cells/components/index.d.ts +1 -0
- package/dist/data-grid/cells/components/index.js +1 -0
- package/dist/data-grid/cells/index.d.ts +1 -1
- package/dist/data-grid/cells/index.js +1 -1
- package/dist/data-grid/headers/PlainTextHeader.js +3 -2
- package/dist/data-grid/headers/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/data-grid/headers/components/Dropdown/DropdownArrowBtn/DropdownArrowBtn.js +5 -1
- package/dist/data-grid/headers/components/Dropdown/Option/Option.d.ts +1 -1
- package/dist/data-grid/headers/components/Dropdown/Option/Option.js +2 -2
- package/dist/data-grid/headers/components/Dropdown/Option/Option_module.css +10 -2
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.d.ts +13 -3
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.js +65 -83
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.module.js +2 -1
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder_module.css +21 -0
- package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption.js +7 -15
- package/dist/data-grid/headers/components/HideColumn/HideColumn.js +8 -13
- package/dist/data-grid/headers/components/ResetFilter/ResetFilter.js +7 -10
- package/dist/data-grid/headers/components/ResetFilter/ResetFilter.module.js +0 -1
- package/dist/data-grid/headers/components/ResetFilter/ResetFilter_module.css +1 -21
- package/dist/data-grid/headers/components/index.d.ts +1 -1
- package/dist/data-grid/headers/index.d.ts +1 -1
- package/dist/data-grid/headers/types/types.d.ts +1 -0
- package/dist/data-grid/index.d.ts +0 -4
- package/dist/data-grid/locale/en-US.js +68 -56
- package/dist/data-grid/locale/ru-RU.js +68 -56
- package/dist/data-grid/locale/useLocale.d.ts +6 -1
- package/dist/data-grid/locale/useLocale.js +14 -5
- package/dist/data-grid/types/index.d.ts +1 -0
- package/dist/data-grid/utils/isOverflowed.js +21 -1
- package/dist/hooks/useDebounceCallback/useDebounceCallback.d.ts +2 -0
- package/dist/hooks/useDebounceCallback/useDebounceCallback.js +21 -0
- package/dist/hooks/useDismissOnFocusOutside/index.d.ts +2 -1
- package/dist/hooks/useDismissOnFocusOutside/index.js +4 -3
- package/dist/hooks/useDismissOnOutsideClick/index.d.ts +2 -1
- package/dist/hooks/useDismissOnOutsideClick/index.js +4 -3
- package/dist/hooks/useIsElementOverflowing/index.d.ts +1 -0
- package/dist/hooks/useIsElementOverflowing/index.js +8 -2
- package/dist/hooks/useOverflowHint/index.d.ts +7 -0
- package/dist/hooks/useOverflowHint/index.js +16 -0
- package/dist/hooks/useTextField/useTextField.d.ts +5 -6
- package/dist/hooks/useTextField/useTextField.js +6 -24
- package/dist/hooks/useUnmount/useUnmount.d.ts +1 -0
- package/dist/hooks/useUnmount/useUnmount.js +9 -0
- package/dist/icon/components/MsLogo12Icon.d.ts +8 -0
- package/dist/icon/components/MsLogo12Icon.js +28 -0
- package/dist/icon/components/MsLogo16Icon.d.ts +8 -0
- package/dist/icon/components/MsLogo16Icon.js +26 -0
- package/dist/icon/components/MsLogo20Icon.d.ts +8 -0
- package/dist/icon/components/MsLogo20Icon.js +28 -0
- package/dist/icon/components/MyApps12Icon.d.ts +8 -0
- package/dist/icon/components/MyApps12Icon.js +18 -0
- package/dist/icon/components/MyApps16Icon.d.ts +8 -0
- package/dist/icon/components/MyApps16Icon.js +17 -0
- package/dist/icon/components/MyApps20Icon.d.ts +8 -0
- package/dist/icon/components/MyApps20Icon.js +18 -0
- package/dist/icon/components/Phone12Icon.d.ts +8 -0
- package/dist/icon/components/Phone12Icon.js +18 -0
- package/dist/icon/components/Phone16Icon.d.ts +8 -0
- package/dist/icon/components/Phone16Icon.js +17 -0
- package/dist/icon/components/Phone20Icon.d.ts +8 -0
- package/dist/icon/components/Phone20Icon.js +18 -0
- package/dist/icon/components/Smile12Icon.d.ts +8 -0
- package/dist/icon/components/Smile12Icon.js +17 -0
- package/dist/icon/components/Smile16Icon.d.ts +8 -0
- package/dist/icon/components/Smile16Icon.js +16 -0
- package/dist/icon/components/Smile20Icon.d.ts +8 -0
- package/dist/icon/components/Smile20Icon.js +17 -0
- package/dist/icon/index.d.ts +12 -0
- package/dist/icon/index.js +12 -0
- package/dist/index.d.ts +13 -5
- package/dist/index.js +11 -1
- package/dist/utils/checkIsArchivedValue.d.ts +2 -0
- package/dist/utils/checkIsArchivedValue.js +5 -0
- package/dist/utils/debounce/debounce.d.ts +10 -0
- package/dist/utils/debounce/debounce.js +73 -0
- package/dist/utils/isRecordEqual/isRecordEqual.d.ts +1 -0
- package/dist/utils/isRecordEqual/isRecordEqual.js +9 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/utils.js +3 -0
- package/package.json +88 -12
- package/dist/components/Info/Info.d.ts +0 -13
- package/dist/components/Info/Info.js +0 -20
- package/dist/components/Info/Info.module.js +0 -6
- package/dist/components/Info/Info_module.css +0 -11
- package/dist/components/InputClear/InputClear.d.ts +0 -11
- package/dist/components/InputClear/InputClear.js +0 -12
- package/dist/components/InputClear/InputClear_module.css +0 -21
- package/dist/components/LabelValue/HelpButton/HelpButton.module.js +0 -8
- package/dist/components/LabelValue/HelpButton/HelpButton_module.css +0 -44
- package/dist/components/LabelValue/HelpButton/index.d.ts +0 -8
- package/dist/components/LabelValue/HelpButton/index.js +0 -36
- package/dist/components/LabelValue/ValueBlock/index.js +0 -138
- package/dist/components/LabelValue/hooks/useTooltip.d.ts +0 -8
- package/dist/components/LabelValue/hooks/useTooltip.js +0 -16
- package/dist/components/LabelValueDate/DropdownContent/DropdownContent.module.js +0 -9
- package/dist/components/LabelValueDate/DropdownContent/index.d.ts +0 -12
- package/dist/components/Textfield/components/ClearIcon/ClearIcon.d.ts +0 -6
- package/dist/components/Textfield/components/ClearIcon/ClearIcon.js +0 -13
- package/dist/components/Textfield/components/ClearIcon/ClearIcon.module.js +0 -6
- package/dist/components/Textfield/components/ClearIcon/ClearIcon_module.css +0 -11
- package/dist/components/Textfield/components/Label/Label.d.ts +0 -9
- package/dist/components/Textfield/components/Label/Label.js +0 -32
- package/dist/components/Textfield/components/Label/Label.module.js +0 -7
- package/dist/components/Textfield/components/Label/Label_module.css +0 -17
- package/dist/components/Textfield/components/Label/index.d.ts +0 -1
- package/dist/components/Textfield/components/Label/index.js +0 -1
- package/dist/data-grid/Table/components/Footer/Footer.d.ts +0 -9
- package/dist/data-grid/Table/components/Header/Header.d.ts +0 -8
- package/dist/data-grid/Table/components/TableRow/TableRow.module.js +0 -14
- package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell.module.js +0 -5
- package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell_module.css +0 -8
- package/dist/data-grid/cells/InputCell/InputCell.module.js +0 -5
- package/dist/data-grid/cells/NumberInputCell/NumberInputCell.module.js +0 -5
- package/dist/data-grid/cells/NumberInputCell/NumberInputCell_module.css +0 -8
- package/dist/data-grid/cells/SelectCell/SelectCell.module.js +0 -8
- package/dist/data-grid/cells/SelectCell/SelectCell_module.css +0 -33
- package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption.module.js +0 -7
- package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption_module.css +0 -22
- package/dist/data-grid/headers/components/HideColumn/HideColumn.module.js +0 -6
- package/dist/data-grid/headers/components/HideColumn/HideColumn_module.css +0 -20
- /package/dist/components/Tooltip/{consts.js → constants/ArrowAlign.js} +0 -0
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
.wrapper-oFEm9y .info-VucqZW {
|
|
11
11
|
margin: 0;
|
|
12
12
|
position: relative;
|
|
13
|
+
overflow: hidden;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.wrapper-oFEm9y .labelWrapper-VXBpmH {
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.wrapper-oFEm9y .required-tL_0P7 {
|
|
22
|
-
color: var(--
|
|
23
|
+
color: var(--elements-critical, #e50347);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.wrapper-oFEm9y .inputWrapper-Z2MHzj {
|
|
@@ -45,9 +46,7 @@
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
.wrapper-oFEm9y .input-abYkhJ:focus-visible {
|
|
48
|
-
|
|
49
|
-
box-shadow: 0 0 4px 0 var(--input-shadow);
|
|
50
|
-
border: 1px solid var(--border-accent, #036ce5);
|
|
49
|
+
border: 1px solid var(--border-focused, #091739);
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
.wrapper-oFEm9y .input-abYkhJ {
|
|
@@ -56,15 +55,20 @@
|
|
|
56
55
|
outline: none;
|
|
57
56
|
width: 100%;
|
|
58
57
|
height: 32px;
|
|
59
|
-
padding: 4px 10px 4px 11px;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
.wrapper-oFEm9y .input-abYkhJ + span {
|
|
63
61
|
color: var(--text-primary, #091739);
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
.wrapper-oFEm9y .input-abYkhJ.
|
|
67
|
-
|
|
64
|
+
.wrapper-oFEm9y .input-abYkhJ.large-byNK0a {
|
|
65
|
+
color: var(--text-primary, #091739);
|
|
66
|
+
height: 40px;
|
|
67
|
+
font-family: ALS Hauss, sans-serif;
|
|
68
|
+
font-size: 16px;
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
line-height: 24px;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
.wrapper-oFEm9y .input-abYkhJ.error-LvRHQc, .wrapper-oFEm9y .input-abYkhJ.error-LvRHQc:hover, .wrapper-oFEm9y .input-abYkhJ.error-LvRHQc:focus {
|
|
@@ -92,23 +96,101 @@
|
|
|
92
96
|
color: var(--text-tertiary, #9fa7af);
|
|
93
97
|
}
|
|
94
98
|
|
|
95
|
-
.wrapper-oFEm9y .
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
.wrapper-oFEm9y .actions-mGn9Sv {
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: 8px;
|
|
102
|
+
display: flex;
|
|
99
103
|
position: absolute;
|
|
100
104
|
top: 50%;
|
|
101
|
-
right:
|
|
102
|
-
transform:
|
|
105
|
+
right: 8px;
|
|
106
|
+
transform: translateY(-50%);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.wrapper-oFEm9y .actions-mGn9Sv.large-byNK0a {
|
|
110
|
+
gap: 12px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.wrapper-oFEm9y .actions-mGn9Sv.large-byNK0a .iconActionButton-G0JpZw, .wrapper-oFEm9y .actions-mGn9Sv.large-byNK0a .trailingActionButton-anvK7V {
|
|
114
|
+
padding: 5px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.wrapper-oFEm9y .textActions-wjiHob {
|
|
118
|
+
gap: 4px;
|
|
119
|
+
display: flex;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.wrapper-oFEm9y .textActions-wjiHob.large-byNK0a {
|
|
123
|
+
gap: 8px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.wrapper-oFEm9y .iconActionButton-G0JpZw {
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
color: var(--elements-normal, #5f6d79);
|
|
130
|
+
background: none;
|
|
131
|
+
border: 1px solid #0000;
|
|
132
|
+
border-radius: 4px;
|
|
133
|
+
outline: none;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
align-items: center;
|
|
136
|
+
margin: 0;
|
|
137
|
+
padding: 3px;
|
|
138
|
+
line-height: 0;
|
|
139
|
+
display: flex;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.wrapper-oFEm9y .iconActionButton-G0JpZw:hover, .wrapper-oFEm9y .iconActionButton-G0JpZw:active {
|
|
143
|
+
color: var(--elements-hover, #091739);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.wrapper-oFEm9y .iconActionButton-G0JpZw:focus-visible {
|
|
147
|
+
border-color: var(--border-focused, #091739);
|
|
148
|
+
color: var(--elements-hover, #091739);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.wrapper-oFEm9y .trailingActionButton-anvK7V {
|
|
152
|
+
box-sizing: border-box;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
color: var(--elements-normal, #5f6d79);
|
|
155
|
+
background: none;
|
|
156
|
+
border: 1px solid #0000;
|
|
157
|
+
border-radius: 4px;
|
|
158
|
+
outline: none;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
align-items: center;
|
|
161
|
+
margin: 0;
|
|
162
|
+
padding: 3px;
|
|
163
|
+
line-height: 0;
|
|
164
|
+
display: flex;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.wrapper-oFEm9y .trailingActionButton-anvK7V:hover {
|
|
168
|
+
background-color: var(--elements-chips-regular-hover, #d3d8ddb3);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.wrapper-oFEm9y .trailingActionButton-anvK7V:active {
|
|
172
|
+
background-color: var(--elements-chips-regular-pressed, #55607359);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.wrapper-oFEm9y .trailingActionButton-anvK7V:focus-visible {
|
|
176
|
+
border-color: var(--border-focused, #091739);
|
|
177
|
+
background-color: var(--elements-chips-regular-hover, #d3d8ddb3);
|
|
178
|
+
color: var(--elements-hover, #091739);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.wrapper-oFEm9y .divider-MSupsj {
|
|
182
|
+
background-color: var(--light-grey-400);
|
|
183
|
+
flex-shrink: 0;
|
|
184
|
+
width: 1px;
|
|
185
|
+
height: 16px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.wrapper-oFEm9y .divider-MSupsj.large-byNK0a {
|
|
189
|
+
height: 20px;
|
|
103
190
|
}
|
|
104
191
|
|
|
105
192
|
.wrapper-oFEm9y .label-LenERt {
|
|
106
|
-
|
|
107
|
-
text-overflow: ellipsis;
|
|
108
|
-
white-space: nowrap;
|
|
109
|
-
margin-bottom: 0;
|
|
110
|
-
display: inline-block;
|
|
111
|
-
overflow: hidden;
|
|
193
|
+
width: 100%;
|
|
112
194
|
}
|
|
113
195
|
|
|
114
196
|
.wrapper-oFEm9y .help-i_fDqu {
|
|
@@ -117,3 +199,58 @@
|
|
|
117
199
|
right: -1px;
|
|
118
200
|
}
|
|
119
201
|
|
|
202
|
+
.wrapper-oFEm9y .helpIcon-MR3GpI {
|
|
203
|
+
flex-direction: column;
|
|
204
|
+
justify-content: center;
|
|
205
|
+
align-items: flex-end;
|
|
206
|
+
margin-left: 4px;
|
|
207
|
+
display: flex;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.wrapper-oFEm9y .infoBlock-KVlxEN {
|
|
211
|
+
justify-content: space-between;
|
|
212
|
+
gap: 4px;
|
|
213
|
+
width: 100%;
|
|
214
|
+
display: flex;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.inputPaddingM-vHiTSa {
|
|
218
|
+
padding: 4px 8px 4px 12px;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.inputPaddingL-N8VHsb {
|
|
222
|
+
padding: 8px 8px 8px 12px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.actionsPaddingOneM-ZKwigm {
|
|
226
|
+
padding: 4px 36px 4px 12px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.actionsPaddingTwoM-WD5Jt3 {
|
|
230
|
+
padding: 4px 60px 4px 12px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.actionsPaddingClearTrailM-Lp4qkT {
|
|
234
|
+
padding: 4px 73px 4px 12px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.actionsPaddingFullM-nwz6aQ {
|
|
238
|
+
padding: 4px 97px 4px 12px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.actionsPaddingOneL-vxw7Bt {
|
|
242
|
+
padding: 8px 48px 8px 12px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.actionsPaddingTwoL-MIUbac {
|
|
246
|
+
padding: 8px 84px 8px 12px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.actionsPaddingClearTrailL-vQgKWL {
|
|
250
|
+
padding: 8px 101px 8px 12px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.actionsPaddingFullL-b6pU4F {
|
|
254
|
+
padding: 8px 137px 8px 12px;
|
|
255
|
+
}
|
|
256
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type InfoSizeValue } from '../../_shared/Info/types';
|
|
2
|
+
type InfoBlockProps = {
|
|
3
|
+
info?: string;
|
|
4
|
+
error?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
isInfoEllipsis?: boolean;
|
|
7
|
+
testId?: string;
|
|
8
|
+
showCounterLimit?: boolean;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
value?: string;
|
|
11
|
+
size?: InfoSizeValue;
|
|
12
|
+
};
|
|
13
|
+
export declare const InfoBlock: ({ info, error, disabled, isInfoEllipsis, testId, maxLength, showCounterLimit, value, size, }: InfoBlockProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Info } from "../../_shared/Info/Info.js";
|
|
3
|
+
import { InfoSize } from "../../_shared/Info/types/index.js";
|
|
4
|
+
import { Counter } from "../../Textfield/components/Counter/Counter.js";
|
|
5
|
+
import Input_module from "../Input.module.js";
|
|
6
|
+
const InfoBlock = ({ info, error, disabled, isInfoEllipsis, testId, maxLength, showCounterLimit, value, size = InfoSize.M })=>{
|
|
7
|
+
if (!info && !showCounterLimit && !maxLength) return null;
|
|
8
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
9
|
+
className: Input_module.infoBlock,
|
|
10
|
+
children: [
|
|
11
|
+
info && /*#__PURE__*/ jsx("div", {
|
|
12
|
+
className: Input_module.info,
|
|
13
|
+
children: /*#__PURE__*/ jsx(Info, {
|
|
14
|
+
info: info,
|
|
15
|
+
error: error,
|
|
16
|
+
disabled: disabled,
|
|
17
|
+
isEllipsis: isInfoEllipsis,
|
|
18
|
+
testId: testId,
|
|
19
|
+
size: size
|
|
20
|
+
})
|
|
21
|
+
}),
|
|
22
|
+
showCounterLimit && maxLength && /*#__PURE__*/ jsx(Counter, {
|
|
23
|
+
testId: testId,
|
|
24
|
+
value: value,
|
|
25
|
+
hasHelp: false,
|
|
26
|
+
limit: maxLength,
|
|
27
|
+
size: size
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export { InfoBlock };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { type InputHTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import type { IHasTabIndex, IHasTestId } from '../../common/types';
|
|
3
|
+
import type { HelpProps } from '../Help/Help';
|
|
3
4
|
import type { ISelectOption } from '../Select/types';
|
|
4
5
|
export interface InputUnitProps extends InputHTMLAttributes<HTMLInputElement>, IHasTestId, IHasTabIndex {
|
|
5
6
|
value?: number;
|
|
@@ -27,6 +28,8 @@ export interface InputUnitProps extends InputHTMLAttributes<HTMLInputElement>, I
|
|
|
27
28
|
onClear?: () => void;
|
|
28
29
|
onChangeValue?: (value?: number) => void;
|
|
29
30
|
onUnitChange?: (option: ISelectOption) => void;
|
|
31
|
+
helpProps?: Omit<HelpProps, 'testId'>;
|
|
32
|
+
/** @deprecated Используйте `helpProps` */
|
|
30
33
|
helpComponent?: ReactNode;
|
|
31
34
|
}
|
|
32
35
|
export declare const InputUnit: React.ForwardRefExoticComponent<InputUnitProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useCallback, useEffect, useRef, useState } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
|
+
import { FieldLabel } from "../_shared/FieldLabel/FieldLabel.js";
|
|
5
|
+
import { FieldRow } from "../_shared/FieldRow/FieldRow.js";
|
|
6
|
+
import { Info } from "../_shared/Info/Info.js";
|
|
7
|
+
import { InputClear } from "../_shared/InputClear/InputClear.js";
|
|
4
8
|
import { Chip } from "../Chip/Chip.js";
|
|
5
9
|
import { Dropdown } from "../Dropdown/Dropdown.js";
|
|
6
10
|
import { useDropdown } from "../Dropdown/hooks/useDropdown.js";
|
|
7
11
|
import { getListboxTriggerA11y } from "../Dropdown/utils/getListboxTriggerA11y.js";
|
|
8
|
-
import { FieldRow } from "../FieldRow/FieldRow.js";
|
|
9
|
-
import { Info } from "../Info/Info.js";
|
|
10
|
-
import { InputClear } from "../InputClear/InputClear.js";
|
|
11
|
-
import { Label } from "../Label/Label.js";
|
|
12
12
|
import { OptionsList } from "../Select/OptionsList/OptionsList.js";
|
|
13
|
+
import { TextColor } from "../Text/Text.js";
|
|
13
14
|
import { useId } from "../../hooks/useId/index.js";
|
|
14
15
|
import { useIsElementOverflowing } from "../../hooks/useIsElementOverflowing/index.js";
|
|
15
16
|
import { isValidNumber } from "../../utils/format/isValidNumber.js";
|
|
16
17
|
import { handleFloatKeyDown } from "../../utils/keyDown/handleFloatKeyDown.js";
|
|
17
18
|
import { SelectUnit } from "./SelectUnit/SelectUnit.js";
|
|
18
19
|
import InputUnit_module from "./InputUnit.module.js";
|
|
19
|
-
const InputUnit = /*#__PURE__*/ forwardRef(({ testId, value: valueProp, tabIndex = 0, className, fieldRowClassName, label, info, required, error, warning, disabled, clearable, dropdownZIndex, step = 1, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER, lengthIntegerPart = Number.MAX_SAFE_INTEGER, lengthFractionalPart = 0, autoCompleteText, autoCompleteValue, defaultUnit, selectedUnitOption, unitOptions, onClear, onUnitChange, onChangeValue, helpComponent, onKeyDown = handleFloatKeyDown, ...inputProps }, ref)=>{
|
|
20
|
+
const InputUnit = /*#__PURE__*/ forwardRef(({ testId, value: valueProp, tabIndex = 0, className, fieldRowClassName, label, info, required, error, warning, disabled, clearable, dropdownZIndex, step = 1, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER, lengthIntegerPart = Number.MAX_SAFE_INTEGER, lengthFractionalPart = 0, autoCompleteText, autoCompleteValue, defaultUnit, selectedUnitOption, unitOptions, onClear, onUnitChange, onChangeValue, helpProps, helpComponent, onKeyDown = handleFloatKeyDown, ...inputProps }, ref)=>{
|
|
20
21
|
const [value, setValue] = useState(void 0 === valueProp ? '' : String(valueProp));
|
|
21
22
|
const [isFocused, setIsFocused] = useState(false);
|
|
22
23
|
const [cursor, setCursor] = useState(null);
|
|
@@ -33,8 +34,9 @@ const InputUnit = /*#__PURE__*/ forwardRef(({ testId, value: valueProp, tabIndex
|
|
|
33
34
|
valueProp
|
|
34
35
|
]);
|
|
35
36
|
const inputId = useId(inputProps.id);
|
|
36
|
-
const showClearButton = clearable && value && !disabled;
|
|
37
|
+
const showClearButton = Boolean(clearable && value && !disabled);
|
|
37
38
|
const showAutoCompleteButton = void 0 !== autoCompleteValue && !clearable && !disabled;
|
|
39
|
+
const showUnitSelector = Boolean(defaultUnit || selectedUnitOption);
|
|
38
40
|
const { ref: inputRef, isOverflowing: isOverflowingInput } = useIsElementOverflowing([
|
|
39
41
|
value,
|
|
40
42
|
clearable
|
|
@@ -75,7 +77,7 @@ const InputUnit = /*#__PURE__*/ forwardRef(({ testId, value: valueProp, tabIndex
|
|
|
75
77
|
const handleClear = ()=>{
|
|
76
78
|
handleChangeValue?.('');
|
|
77
79
|
onClear?.();
|
|
78
|
-
|
|
80
|
+
inputRef.current?.focus();
|
|
79
81
|
};
|
|
80
82
|
const handleAutoCompleteClick = ()=>{
|
|
81
83
|
handleChangeValue(String(autoCompleteValue || 0));
|
|
@@ -116,10 +118,9 @@ const InputUnit = /*#__PURE__*/ forwardRef(({ testId, value: valueProp, tabIndex
|
|
|
116
118
|
setIsFocused(true);
|
|
117
119
|
inputProps.onFocus?.(event);
|
|
118
120
|
};
|
|
119
|
-
const
|
|
121
|
+
const handleClearMouseDown = (event)=>{
|
|
120
122
|
event.stopPropagation();
|
|
121
123
|
event.preventDefault();
|
|
122
|
-
handleClear();
|
|
123
124
|
};
|
|
124
125
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
125
126
|
children: [
|
|
@@ -127,16 +128,19 @@ const InputUnit = /*#__PURE__*/ forwardRef(({ testId, value: valueProp, tabIndex
|
|
|
127
128
|
"data-test-id": testId,
|
|
128
129
|
className: cn(InputUnit_module.wrapper, className),
|
|
129
130
|
children: [
|
|
130
|
-
/*#__PURE__*/ jsx(
|
|
131
|
+
/*#__PURE__*/ jsx(FieldLabel, {
|
|
131
132
|
label: label,
|
|
132
133
|
required: required,
|
|
133
|
-
htmlFor: inputId
|
|
134
|
+
htmlFor: inputId,
|
|
135
|
+
testId: testId,
|
|
136
|
+
className: InputUnit_module.label,
|
|
137
|
+
helpProps: helpProps
|
|
134
138
|
}),
|
|
135
139
|
/*#__PURE__*/ jsx(FieldRow, {
|
|
136
140
|
className: fieldRowClassName,
|
|
137
141
|
helpComponent: helpComponent,
|
|
138
142
|
children: /*#__PURE__*/ jsxs("div", {
|
|
139
|
-
className: cn(InputUnit_module.inputWrapper, disabled && InputUnit_module.disabled, error && !disabled && InputUnit_module.error, warning && !disabled && InputUnit_module.warning, isFocused && InputUnit_module.focused),
|
|
143
|
+
className: cn(InputUnit_module.inputWrapper, disabled && InputUnit_module.disabled, error && !disabled && InputUnit_module.error, warning && !disabled && !error && InputUnit_module.warning, isFocused && InputUnit_module.focused),
|
|
140
144
|
children: [
|
|
141
145
|
/*#__PURE__*/ jsx("input", {
|
|
142
146
|
autoComplete: "off",
|
|
@@ -148,39 +152,42 @@ const InputUnit = /*#__PURE__*/ forwardRef(({ testId, value: valueProp, tabIndex
|
|
|
148
152
|
ref: inputRef,
|
|
149
153
|
disabled: disabled,
|
|
150
154
|
"data-test-id": testId ? `${testId}-input` : null,
|
|
151
|
-
className: cn(InputUnit_module.input,
|
|
155
|
+
className: cn(InputUnit_module.input, showClearButton && InputUnit_module.clearable),
|
|
152
156
|
onFocus: handleFocus,
|
|
153
157
|
onBlur: ()=>setIsFocused(false),
|
|
154
158
|
type: "text",
|
|
155
159
|
onKeyDown: handleKeyDown,
|
|
156
160
|
onChange: handleChange
|
|
157
161
|
}),
|
|
158
|
-
showClearButton && /*#__PURE__*/ jsx(
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
showClearButton && /*#__PURE__*/ jsx("span", {
|
|
163
|
+
className: cn(showUnitSelector ? InputUnit_module.clearButtonUnitOffset : InputUnit_module.clearButtonOffset),
|
|
164
|
+
children: /*#__PURE__*/ jsx(InputClear, {
|
|
165
|
+
onClick: handleClear,
|
|
166
|
+
onMouseDown: handleClearMouseDown,
|
|
167
|
+
tabIndex: tabIndex,
|
|
168
|
+
testId: testId
|
|
169
|
+
})
|
|
161
170
|
}),
|
|
162
|
-
showAutoCompleteButton && /*#__PURE__*/
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
171
|
+
showAutoCompleteButton && /*#__PURE__*/ jsx(Chip, {
|
|
172
|
+
selected: true,
|
|
173
|
+
onPress: handleAutoCompleteClick,
|
|
174
|
+
label: `${autoCompleteText} ${autoCompleteValue}`,
|
|
175
|
+
labelColorToken: TextColor.accent,
|
|
176
|
+
size: "compact",
|
|
177
|
+
className: InputUnit_module.autoComplete,
|
|
168
178
|
testId: testId ? `${testId}-auto-complete` : 'auto-complete',
|
|
169
179
|
disabled: '' !== value && Number(value) === autoCompleteValue,
|
|
170
|
-
|
|
171
|
-
autoCompleteText,
|
|
172
|
-
" ",
|
|
173
|
-
autoCompleteValue
|
|
174
|
-
]
|
|
180
|
+
tabIndex: tabIndex
|
|
175
181
|
}),
|
|
176
|
-
/*#__PURE__*/ jsx("div", {
|
|
182
|
+
showUnitSelector && /*#__PURE__*/ jsx("div", {
|
|
177
183
|
className: cn(InputUnit_module.selectWrapper),
|
|
178
184
|
ref: triggerRef,
|
|
179
185
|
children: /*#__PURE__*/ jsx(SelectUnit, {
|
|
180
186
|
testId: testId,
|
|
181
|
-
tabIndex: tabIndex
|
|
187
|
+
tabIndex: tabIndex,
|
|
182
188
|
disabled: disabled,
|
|
183
189
|
onToggle: handleToggle,
|
|
190
|
+
isOpen: open,
|
|
184
191
|
triggerAriaProps: listboxTriggerAriaProps,
|
|
185
192
|
defaultUnit: defaultUnit,
|
|
186
193
|
selectedUnitOption: selectedUnitOption
|
|
@@ -189,12 +196,15 @@ const InputUnit = /*#__PURE__*/ forwardRef(({ testId, value: valueProp, tabIndex
|
|
|
189
196
|
]
|
|
190
197
|
})
|
|
191
198
|
}),
|
|
192
|
-
/*#__PURE__*/ jsx(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
199
|
+
info ? /*#__PURE__*/ jsx("div", {
|
|
200
|
+
className: InputUnit_module.info,
|
|
201
|
+
children: /*#__PURE__*/ jsx(Info, {
|
|
202
|
+
info: info,
|
|
203
|
+
error: error,
|
|
204
|
+
warning: warning,
|
|
205
|
+
disabled: disabled
|
|
206
|
+
})
|
|
207
|
+
}) : null
|
|
198
208
|
]
|
|
199
209
|
}),
|
|
200
210
|
unitOptions && /*#__PURE__*/ jsx(Dropdown, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./InputUnit_module.css";
|
|
2
2
|
const InputUnit_module = {
|
|
3
3
|
wrapper: "wrapper-e72fYe",
|
|
4
|
+
label: "label-sBTy3L",
|
|
4
5
|
inputWrapper: "inputWrapper-LO6lHr",
|
|
5
6
|
focused: "focused-m1zbMv",
|
|
6
7
|
disabled: "disabled-AwnC6Y",
|
|
@@ -8,8 +9,12 @@ const InputUnit_module = {
|
|
|
8
9
|
warning: "warning-EDcjvN",
|
|
9
10
|
help: "help-QeCuV2",
|
|
10
11
|
autoComplete: "autoComplete-_5ZaLO",
|
|
12
|
+
clearButtonOffset: "clearButtonOffset-rEaz5m",
|
|
13
|
+
clearButtonUnitOffset: "clearButtonUnitOffset-IuYmYc",
|
|
11
14
|
selectWrapper: "selectWrapper-cs9PHJ",
|
|
12
15
|
divider: "divider-tZBLhU",
|
|
13
|
-
|
|
16
|
+
info: "info-ZBtD4m",
|
|
17
|
+
input: "input-m950Ev",
|
|
18
|
+
clearable: "clearable-fQkwFf"
|
|
14
19
|
};
|
|
15
20
|
export default InputUnit_module;
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
.wrapper-e72fYe .label-sBTy3L {
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
10
14
|
.wrapper-e72fYe .inputWrapper-LO6lHr {
|
|
11
15
|
color: var(--text-primary, #091739);
|
|
12
16
|
border: 1px solid var(--border-normal, #d1d6df);
|
|
@@ -25,13 +29,11 @@
|
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
.wrapper-e72fYe .inputWrapper-LO6lHr:focus-visible {
|
|
28
|
-
|
|
29
|
-
box-shadow: 0 0 4px 0 var(--input-shadow);
|
|
30
|
-
border: 1px solid var(--border-accent, #036ce5);
|
|
32
|
+
border: 1px solid var(--border-focused, #091739);
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
.wrapper-e72fYe .inputWrapper-LO6lHr {
|
|
34
|
-
box-sizing:
|
|
36
|
+
box-sizing: border-box;
|
|
35
37
|
align-items: center;
|
|
36
38
|
width: 100%;
|
|
37
39
|
height: 32px;
|
|
@@ -41,9 +43,7 @@
|
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
.wrapper-e72fYe .inputWrapper-LO6lHr.focused-m1zbMv {
|
|
44
|
-
|
|
45
|
-
box-shadow: 0 0 4px 0 var(--input-shadow);
|
|
46
|
-
border: 1px solid var(--border-accent, #036ce5);
|
|
46
|
+
border: 1px solid var(--border-focused, #091739);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.wrapper-e72fYe .inputWrapper-LO6lHr.disabled-AwnC6Y {
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.wrapper-e72fYe .inputWrapper-LO6lHr.error-Z0Tri0, .wrapper-e72fYe .inputWrapper-LO6lHr.error-Z0Tri0:hover, .wrapper-e72fYe .inputWrapper-LO6lHr.error-Z0Tri0:focus {
|
|
59
|
-
border: 1px solid var(--
|
|
59
|
+
border: 1px solid var(--elements-critical, #e50347);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.wrapper-e72fYe .inputWrapper-LO6lHr.warning-EDcjvN, .wrapper-e72fYe .inputWrapper-LO6lHr.warning-EDcjvN:hover {
|
|
63
|
-
border: 1px solid var(--
|
|
63
|
+
border: 1px solid var(--elements-attention, #db5202);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.wrapper-e72fYe .inputWrapper-LO6lHr.warning-EDcjvN:focus, .wrapper-e72fYe .inputWrapper-LO6lHr.warning-EDcjvN:focus-visible, .wrapper-e72fYe .inputWrapper-LO6lHr.warning-EDcjvN.focused-m1zbMv {
|
|
67
|
-
--input-shadow: var(--
|
|
68
|
-
border-color: var(--
|
|
67
|
+
--input-shadow: var(--elements-attention, #db5202);
|
|
68
|
+
border-color: var(--elements-attention, #db5202);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.wrapper-e72fYe .inputWrapper-LO6lHr input[type="number"] {
|
|
@@ -87,31 +87,20 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.wrapper-e72fYe .autoComplete-_5ZaLO {
|
|
90
|
-
border-radius: 4px;
|
|
91
|
-
height: 20px;
|
|
92
90
|
margin-right: 8px;
|
|
93
|
-
padding:
|
|
91
|
+
padding-left: 6px;
|
|
92
|
+
padding-right: 6px;
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
.wrapper-e72fYe .
|
|
97
|
-
|
|
98
|
-
font-size: 12px;
|
|
95
|
+
.wrapper-e72fYe .clearButtonOffset-rEaz5m {
|
|
96
|
+
margin-right: 7px;
|
|
99
97
|
}
|
|
100
98
|
|
|
101
|
-
.wrapper-e72fYe .
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.wrapper-e72fYe .autoComplete-_5ZaLO:not(:disabled):hover {
|
|
106
|
-
background-color: #daeaf8;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.wrapper-e72fYe .autoComplete-_5ZaLO:not(:disabled):hover p {
|
|
110
|
-
color: var(--product-blue-600);
|
|
99
|
+
.wrapper-e72fYe .clearButtonUnitOffset-IuYmYc {
|
|
100
|
+
margin-right: 4px;
|
|
111
101
|
}
|
|
112
102
|
|
|
113
103
|
.wrapper-e72fYe .selectWrapper-cs9PHJ {
|
|
114
|
-
border: 1px solid #0000;
|
|
115
104
|
align-items: center;
|
|
116
105
|
max-width: 35%;
|
|
117
106
|
height: 32px;
|
|
@@ -129,11 +118,16 @@
|
|
|
129
118
|
}
|
|
130
119
|
|
|
131
120
|
.wrapper-e72fYe .divider-tZBLhU {
|
|
132
|
-
background-color: var(--
|
|
121
|
+
background-color: var(--border-normal, #d1d6df);
|
|
133
122
|
width: 1px;
|
|
134
123
|
height: 16px;
|
|
135
124
|
}
|
|
136
125
|
|
|
126
|
+
.wrapper-e72fYe .info-ZBtD4m {
|
|
127
|
+
overflow-wrap: anywhere;
|
|
128
|
+
display: flex;
|
|
129
|
+
}
|
|
130
|
+
|
|
137
131
|
.input-m950Ev {
|
|
138
132
|
all: unset;
|
|
139
133
|
box-sizing: border-box;
|
|
@@ -153,3 +147,7 @@
|
|
|
153
147
|
color: var(--text-tertiary, #9fa7af);
|
|
154
148
|
}
|
|
155
149
|
|
|
150
|
+
.clearable-fQkwFf {
|
|
151
|
+
padding-right: 4px;
|
|
152
|
+
}
|
|
153
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SelectUnitProps } from './type';
|
|
2
|
-
export declare const SelectUnit: (props: SelectUnitProps) => import("react/jsx-runtime").JSX.Element
|
|
2
|
+
export declare const SelectUnit: (props: SelectUnitProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { SelectUnitVisible } from "./SelectUnitVisible.js";
|
|
3
3
|
import SelectUnit_module from "./SelectUnit.module.js";
|
|
4
|
-
const SelectUnit = (props)
|
|
5
|
-
if (!props.defaultUnit && !props.selectedUnitOption) return null;
|
|
6
|
-
return /*#__PURE__*/ jsxs(Fragment, {
|
|
4
|
+
const SelectUnit = (props)=>/*#__PURE__*/ jsxs(Fragment, {
|
|
7
5
|
children: [
|
|
8
6
|
/*#__PURE__*/ jsx("span", {
|
|
9
7
|
className: SelectUnit_module.divider
|
|
@@ -13,5 +11,4 @@ const SelectUnit = (props)=>{
|
|
|
13
11
|
})
|
|
14
12
|
]
|
|
15
13
|
});
|
|
16
|
-
};
|
|
17
14
|
export { SelectUnit };
|
|
@@ -3,6 +3,7 @@ const SelectUnit_module = {
|
|
|
3
3
|
selectContainer: "selectContainer-c1sZBO",
|
|
4
4
|
select: "select-jGqAE0",
|
|
5
5
|
focused: "focused-HYSAXe",
|
|
6
|
+
open: "open-Wwk6BC",
|
|
6
7
|
selectArrow: "selectArrow-uYpbBJ",
|
|
7
8
|
disabled: "disabled-TH3t_6",
|
|
8
9
|
unitValueContainer: "unitValueContainer-VVSJeN",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SelectUnitProps } from './type';
|
|
2
|
-
export declare const SelectUnitVisible: ({ testId, tabIndex, disabled, onToggle, defaultUnit, selectedUnitOption, triggerAriaProps, }: SelectUnitProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const SelectUnitVisible: ({ testId, tabIndex, disabled, isOpen, onToggle, defaultUnit, selectedUnitOption, triggerAriaProps, }: SelectUnitProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,11 +4,15 @@ import { cn } from "../../../common/css/cn.js";
|
|
|
4
4
|
import { Down12Icon } from "../../../icon/index.js";
|
|
5
5
|
import { Unit } from "../Unit/Unit.js";
|
|
6
6
|
import SelectUnit_module from "./SelectUnit.module.js";
|
|
7
|
-
const SelectUnitVisible = ({ testId, tabIndex, disabled, onToggle, defaultUnit, selectedUnitOption, triggerAriaProps })=>{
|
|
7
|
+
const SelectUnitVisible = ({ testId, tabIndex, disabled, isOpen, onToggle, defaultUnit, selectedUnitOption, triggerAriaProps })=>{
|
|
8
8
|
const [isFocused, setIsFocused] = useState(false);
|
|
9
9
|
const selectedUnitLabel = useMemo(()=>selectedUnitOption ? selectedUnitOption.label : '', [
|
|
10
10
|
selectedUnitOption
|
|
11
11
|
]);
|
|
12
|
+
const handleInputKeyDown = (e)=>{
|
|
13
|
+
if (!isOpen || 'ArrowUp' !== e.key && 'ArrowDown' !== e.key) return;
|
|
14
|
+
e.preventDefault();
|
|
15
|
+
};
|
|
12
16
|
const handleInputKeyUp = (e)=>{
|
|
13
17
|
if ('Enter' === e.key) {
|
|
14
18
|
if (isFocused) {
|
|
@@ -26,9 +30,10 @@ const SelectUnitVisible = ({ testId, tabIndex, disabled, onToggle, defaultUnit,
|
|
|
26
30
|
className: SelectUnit_module.selectContainer,
|
|
27
31
|
children: /*#__PURE__*/ jsxs("div", {
|
|
28
32
|
...triggerAriaProps,
|
|
29
|
-
className: cn(SelectUnit_module.select, disabled && SelectUnit_module.disabled, isFocused && SelectUnit_module.focused),
|
|
33
|
+
className: cn(SelectUnit_module.select, disabled && SelectUnit_module.disabled, isFocused && SelectUnit_module.focused, isOpen && SelectUnit_module.open),
|
|
30
34
|
role: "combobox",
|
|
31
35
|
"aria-disabled": disabled,
|
|
36
|
+
onKeyDown: handleInputKeyDown,
|
|
32
37
|
onKeyUp: handleInputKeyUp,
|
|
33
38
|
onFocus: ()=>setIsFocused(true),
|
|
34
39
|
onBlur: ()=>setIsFocused(false),
|