@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
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.container-aL2rxg .combobox-b5S72r:focus-visible {
|
|
25
|
-
|
|
26
|
-
box-shadow: 0 0 4px 0 var(--input-shadow);
|
|
27
|
-
border: 1px solid var(--border-accent, #036ce5);
|
|
25
|
+
border: 1px solid var(--border-focused, #091739);
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
.container-aL2rxg .combobox-b5S72r {
|
|
@@ -40,9 +38,7 @@
|
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
.container-aL2rxg .combobox-b5S72r[data-searchable="true"]:focus-within {
|
|
43
|
-
|
|
44
|
-
box-shadow: 0 0 4px 0 var(--input-shadow);
|
|
45
|
-
border: 1px solid var(--border-accent, #036ce5);
|
|
41
|
+
border: 1px solid var(--border-focused, #091739);
|
|
46
42
|
--action-button-color: var(--elements-hover, #091739);
|
|
47
43
|
}
|
|
48
44
|
|
|
@@ -99,13 +95,18 @@
|
|
|
99
95
|
overflow: hidden;
|
|
100
96
|
}
|
|
101
97
|
|
|
102
|
-
.container-aL2rxg .combobox-b5S72r .innerCombobox-ojzOuH .
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
.container-aL2rxg .combobox-b5S72r .innerCombobox-ojzOuH .search-_t7sYi.archivedFitContent-IhCvaO {
|
|
99
|
+
field-sizing: content;
|
|
100
|
+
width: auto;
|
|
101
|
+
min-width: 0;
|
|
105
102
|
}
|
|
106
103
|
|
|
107
|
-
.container-aL2rxg .combobox-b5S72r .innerCombobox-ojzOuH .
|
|
108
|
-
|
|
104
|
+
.container-aL2rxg .combobox-b5S72r .innerCombobox-ojzOuH .selectedValue-oFS_XU.archivedFitContent-IhCvaO {
|
|
105
|
+
min-width: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.container-aL2rxg .combobox-b5S72r:has([data-select-clear-action]):hover .innerCombobox-ojzOuH, .container-aL2rxg .combobox-b5S72r:has([data-select-clear-action]):focus-within .innerCombobox-ojzOuH {
|
|
109
|
+
width: calc(100% - 25px);
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
.container-aL2rxg .combobox-b5S72r .arrowAction-lxn4Ah {
|
|
@@ -116,6 +117,7 @@
|
|
|
116
117
|
.container-aL2rxg .combobox-b5S72r .search-_t7sYi {
|
|
117
118
|
z-index: 1;
|
|
118
119
|
width: 100%;
|
|
120
|
+
min-width: 0;
|
|
119
121
|
color: var(--text-primary, #091739);
|
|
120
122
|
text-overflow: ellipsis;
|
|
121
123
|
background-color: #0000;
|
|
@@ -134,11 +136,11 @@
|
|
|
134
136
|
color: var(--text-secondary, #5f6d79);
|
|
135
137
|
}
|
|
136
138
|
|
|
137
|
-
.container-aL2rxg .combobox-b5S72r .archivedTextColor-TFgYY_ {
|
|
138
|
-
padding-right: 24px;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
139
|
.container-aL2rxg .combobox-b5S72r .archivedTextColor-TFgYY_:not(:disabled, :focus) {
|
|
142
140
|
color: var(--text-tertiary, #9fa7af);
|
|
143
141
|
}
|
|
144
142
|
|
|
143
|
+
.disabledTextColor-TmImIF, .disabledTextColor-TmImIF:hover, .disabledTextColor-TmImIF:focus {
|
|
144
|
+
color: var(--text-secondary, #5f6d79);
|
|
145
|
+
}
|
|
146
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { OptionsList } from "../OptionsList/OptionsList.js";
|
|
3
3
|
import DropDownWithColors_module from "./DropDownWithColors.module.js";
|
|
4
|
-
const DropDownWithColors = ({ items, listboxId, cursor, onSelect, testId, isLoading, loadingComponent, notFound, isEllipsis = false, onSetCursor, searchText, value })=>{
|
|
4
|
+
const DropDownWithColors = ({ items, listboxId, cursor, onSelect, testId, isLoading, loadingComponent, notFound, isEllipsis = false, onSetCursor, searchText, value, skipSelectOnTab })=>{
|
|
5
5
|
if (isLoading) return /*#__PURE__*/ jsxs(Fragment, {
|
|
6
6
|
children: [
|
|
7
7
|
" ",
|
|
@@ -21,6 +21,7 @@ const DropDownWithColors = ({ items, listboxId, cursor, onSelect, testId, isLoad
|
|
|
21
21
|
onSetCursor: onSetCursor,
|
|
22
22
|
searchText: searchText,
|
|
23
23
|
isOptionEllipsis: isEllipsis,
|
|
24
|
+
skipSelectOnTab: skipSelectOnTab,
|
|
24
25
|
renderOption: ({ color }, highlightedText)=>/*#__PURE__*/ jsxs(Fragment, {
|
|
25
26
|
children: [
|
|
26
27
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { DropdownDivider } from "../../Dropdown/Dropdown.js";
|
|
4
|
+
import DropdownActionsContainer_module from "./DropdownActionsContainer.module.js";
|
|
5
|
+
const DropdownActionsContainer = /*#__PURE__*/ forwardRef(({ children }, ref)=>/*#__PURE__*/ jsxs("div", {
|
|
6
|
+
ref: ref,
|
|
7
|
+
className: DropdownActionsContainer_module.dropdownActionsContainer,
|
|
8
|
+
children: [
|
|
9
|
+
/*#__PURE__*/ jsx(DropdownDivider, {}),
|
|
10
|
+
/*#__PURE__*/ jsx("div", {
|
|
11
|
+
className: DropdownActionsContainer_module.dropdownActions,
|
|
12
|
+
children: children
|
|
13
|
+
})
|
|
14
|
+
]
|
|
15
|
+
}));
|
|
16
|
+
DropdownActionsContainer.displayName = 'DropdownActionsContainer';
|
|
17
|
+
export { DropdownActionsContainer };
|
|
@@ -19,7 +19,10 @@ interface Props<T> extends IHasTestId {
|
|
|
19
19
|
className?: string;
|
|
20
20
|
scrollable?: boolean;
|
|
21
21
|
isFocusable?: boolean;
|
|
22
|
+
title?: string;
|
|
22
23
|
onPressEsc?: () => void;
|
|
24
|
+
onOptionClick?: () => void;
|
|
25
|
+
skipSelectOnEnterWithoutCursor?: boolean;
|
|
23
26
|
}
|
|
24
|
-
export declare const OptionsList: <T>({ listboxId, items, value, searchText, optionClassName, isOptionEllipsis, testId, cursor, onSetCursor, renderOption, skipSelectOnTab, onSelect, onMouseDown, searchable, hintZIndex, className, scrollable, isFocusable, onPressEsc, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const OptionsList: <T>({ listboxId, items, value, searchText, optionClassName, isOptionEllipsis, testId, cursor, onSetCursor, renderOption, skipSelectOnTab, onSelect, onMouseDown, searchable, hintZIndex, className, scrollable, isFocusable, title, onPressEsc, onOptionClick, skipSelectOnEnterWithoutCursor, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
25
28
|
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
|
+
import { getOptionalTestId } from "../../../common/index.js";
|
|
3
4
|
import { cn } from "../../../common/css/index.js";
|
|
5
|
+
import { Text, TextColor } from "../../Text/Text.js";
|
|
4
6
|
import { useId } from "../../../hooks/useId/index.js";
|
|
5
7
|
import { genericMemo } from "../../../utils/genericMemo.js";
|
|
6
8
|
import { Option } from "../Option/Option.js";
|
|
7
9
|
import { KEYBOARD_KEYS } from "../types.js";
|
|
8
10
|
import { useArrowDownListener, useArrowUpListener, useKeyPress } from "./hooks.js";
|
|
9
11
|
import OptionsList_module from "./OptionsList.module.js";
|
|
10
|
-
const Options = ({ listboxId, items, value, searchText, optionClassName, isOptionEllipsis, testId, cursor, onSetCursor, renderOption, skipSelectOnTab, onSelect, onMouseDown, searchable, hintZIndex, className, scrollable, isFocusable = true, onPressEsc })=>{
|
|
12
|
+
const Options = ({ listboxId, items, value, searchText, optionClassName, isOptionEllipsis, testId, cursor, onSetCursor, renderOption, skipSelectOnTab, onSelect, onMouseDown, searchable, hintZIndex, className, scrollable, isFocusable = true, title, onPressEsc, onOptionClick, skipSelectOnEnterWithoutCursor })=>{
|
|
11
13
|
const resolvedListboxId = useId(listboxId);
|
|
12
14
|
const listRef = useRef(null);
|
|
13
15
|
useKeyPress(KEYBOARD_KEYS.TAB, ()=>{
|
|
@@ -29,36 +31,51 @@ const Options = ({ listboxId, items, value, searchText, optionClassName, isOptio
|
|
|
29
31
|
onSetCursor
|
|
30
32
|
});
|
|
31
33
|
useEffect(()=>{
|
|
32
|
-
|
|
34
|
+
const skipOnMissingCursor = skipSelectOnEnterWithoutCursor && null === cursor;
|
|
35
|
+
if (!enterPressed || searchable || skipOnMissingCursor) return;
|
|
33
36
|
onSelect(items[cursor ?? 0]);
|
|
34
37
|
}, [
|
|
35
38
|
enterPressed
|
|
36
39
|
]);
|
|
37
|
-
return /*#__PURE__*/
|
|
40
|
+
return /*#__PURE__*/ jsxs("ul", {
|
|
38
41
|
className: cn(OptionsList_module.optionsList, className, scrollable && OptionsList_module.scrollable),
|
|
39
42
|
id: resolvedListboxId,
|
|
40
43
|
role: "listbox",
|
|
41
44
|
"data-test-id": testId ? `${testId}-options-list` : '',
|
|
42
45
|
ref: listRef,
|
|
43
46
|
tabIndex: isFocusable ? 0 : -1,
|
|
44
|
-
children:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
children: [
|
|
48
|
+
!!title && /*#__PURE__*/ jsx("div", {
|
|
49
|
+
className: OptionsList_module.titleWrapper,
|
|
50
|
+
children: /*#__PURE__*/ jsx(Text.Caption, {
|
|
51
|
+
colorToken: TextColor.secondary,
|
|
52
|
+
className: OptionsList_module.title,
|
|
53
|
+
"data-test-id": getOptionalTestId(testId, 'options-list-title'),
|
|
54
|
+
children: title
|
|
55
|
+
})
|
|
56
|
+
}),
|
|
57
|
+
items.map((option, idx)=>{
|
|
58
|
+
const isSelected = value ? value.value === option.value : false;
|
|
59
|
+
return /*#__PURE__*/ jsx(Option, {
|
|
60
|
+
id: `${resolvedListboxId}-option-${idx}`,
|
|
61
|
+
isSelected: isSelected,
|
|
62
|
+
onClick: (option)=>{
|
|
63
|
+
onSelect(option);
|
|
64
|
+
onOptionClick?.();
|
|
65
|
+
},
|
|
66
|
+
onMouseDown: onMouseDown,
|
|
67
|
+
searchText: searchText,
|
|
68
|
+
isFocused: idx === cursor,
|
|
69
|
+
className: optionClassName,
|
|
70
|
+
isEllipsis: isOptionEllipsis,
|
|
71
|
+
testId: testId ? `${testId}-option-${idx}` : '',
|
|
72
|
+
showHighlight: value ? value.label !== searchText : true,
|
|
73
|
+
option: option,
|
|
74
|
+
renderOption: renderOption,
|
|
75
|
+
hintZIndex: hintZIndex
|
|
76
|
+
}, option.value);
|
|
77
|
+
})
|
|
78
|
+
]
|
|
62
79
|
});
|
|
63
80
|
};
|
|
64
81
|
const OptionsList = genericMemo(Options);
|
|
@@ -1,8 +1,27 @@
|
|
|
1
|
+
.titleWrapper-kzjp2E {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.title-i2hZyT {
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
text-overflow: ellipsis;
|
|
9
|
+
flex: 1;
|
|
10
|
+
width: 10px;
|
|
11
|
+
padding-top: 4px;
|
|
12
|
+
padding-left: 12px;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
1
16
|
.optionsList-nnTF3n {
|
|
2
17
|
margin: 0;
|
|
3
18
|
padding: 4px;
|
|
4
19
|
}
|
|
5
20
|
|
|
21
|
+
.optionsList-nnTF3n:focus {
|
|
22
|
+
outline: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
6
25
|
.scrollable-BpMvGu {
|
|
7
26
|
flex: 1;
|
|
8
27
|
overflow-y: auto;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type CSSProperties, type ForwardedRef, type HTMLAttributes, type ReactElement, type ReactNode } from 'react';
|
|
1
|
+
import { type CSSProperties, type FocusEventHandler, type ForwardedRef, type HTMLAttributes, type KeyboardEventHandler, type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
import { ActionButton } from './ActionButton/ActionButton';
|
|
3
|
-
import { ArchivedInputValue } from './ArchivedInputValue/ArchivedInputValue';
|
|
4
3
|
import { DropDownWithColors } from './DropDownWithColors/DropDownWithColors';
|
|
5
4
|
import { Option } from './Option/Option';
|
|
6
5
|
import { OptionsList } from './OptionsList/OptionsList';
|
|
@@ -22,12 +21,17 @@ export interface SelectProps<T> extends IBaseSelectProps<T> {
|
|
|
22
21
|
dropdownStyle?: CSSProperties;
|
|
23
22
|
dropdownZIndex?: number;
|
|
24
23
|
inputProps?: HTMLAttributes<HTMLInputElement>;
|
|
24
|
+
inputHintText?: string;
|
|
25
25
|
variant?: SelectVariantsEnum;
|
|
26
26
|
disableShortClear?: boolean;
|
|
27
27
|
isSearchDebounced?: boolean;
|
|
28
28
|
searchDebounceTimeout?: number;
|
|
29
29
|
isLoading?: boolean;
|
|
30
30
|
loadingText?: string;
|
|
31
|
+
skipSelectOnTab?: boolean;
|
|
32
|
+
shortVariantTextClassName?: string;
|
|
33
|
+
shortVariantContainerClassName?: string;
|
|
34
|
+
shortVariantIsVisibleFocusOutline?: boolean;
|
|
31
35
|
onSearch?: (searchText: string) => void;
|
|
32
36
|
renderDropdownContent?: (options: IRenderDropdownContentOptions<T>) => ReactNode;
|
|
33
37
|
renderOption?: (option: ISelectOption<T>, highlightedText?: ReactNode) => ReactNode;
|
|
@@ -38,14 +42,16 @@ export interface SelectProps<T> extends IBaseSelectProps<T> {
|
|
|
38
42
|
renderInput?: (options: IRenderInputOptions) => ReactNode;
|
|
39
43
|
isDisableEnterSelect?: boolean;
|
|
40
44
|
isBlurNecessarily?: boolean;
|
|
41
|
-
|
|
45
|
+
showArchived?: boolean;
|
|
42
46
|
onAddButtonClick?: () => void;
|
|
43
47
|
addButtonText?: string;
|
|
44
|
-
skipSelectOnTab?: boolean;
|
|
45
48
|
scrollableOptionsList?: boolean;
|
|
46
49
|
isFocusableOptionsList?: boolean;
|
|
47
50
|
closeOnSelect?: boolean;
|
|
51
|
+
onFocus?: FocusEventHandler;
|
|
52
|
+
onBlur?: FocusEventHandler;
|
|
48
53
|
renderDropdownActions?: (options: IRenderActionsOptions) => ReactNode;
|
|
54
|
+
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
49
55
|
}
|
|
50
56
|
export interface SelectRef<T> {
|
|
51
57
|
closeDropdown: () => void;
|
|
@@ -62,7 +68,6 @@ interface ISelectComponent {
|
|
|
62
68
|
Option: typeof Option;
|
|
63
69
|
DropdownActionButton: typeof DropdownActionButton;
|
|
64
70
|
DropDownWithColors: typeof DropDownWithColors;
|
|
65
|
-
ArchivedInputValue: typeof ArchivedInputValue;
|
|
66
71
|
displayName?: string;
|
|
67
72
|
}
|
|
68
73
|
declare const SelectComponent: ISelectComponent;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useCallback, useEffect, useImperativeHandle, useState } from "react";
|
|
3
|
-
import lodash_debounce from "lodash.debounce";
|
|
4
3
|
import { cn } from "../../common/css/cn.js";
|
|
5
|
-
import { Dropdown
|
|
4
|
+
import { Dropdown } from "../Dropdown/Dropdown.js";
|
|
6
5
|
import { getListboxTriggerA11y } from "../Dropdown/utils/getListboxTriggerA11y.js";
|
|
6
|
+
import { useDebounceCallback } from "../../hooks/useDebounceCallback/useDebounceCallback.js";
|
|
7
7
|
import { Add16Icon, RemoveClose12Icon } from "../../icon/index.js";
|
|
8
8
|
import { ActionButton } from "./ActionButton/ActionButton.js";
|
|
9
|
-
import { ArchivedInputValue } from "./ArchivedInputValue/ArchivedInputValue.js";
|
|
10
9
|
import { Combobox } from "./Combobox/Combobox.js";
|
|
10
|
+
import { DropdownActionsContainer } from "./DropdownActionsContainer/DropdownActionsContainer.js";
|
|
11
11
|
import { DropDownWithColors } from "./DropDownWithColors/DropDownWithColors.js";
|
|
12
12
|
import { EmptyState } from "./EmptyState/EmptyState.js";
|
|
13
13
|
import { Loading } from "./Loading/Loading.js";
|
|
@@ -16,15 +16,16 @@ import { OptionsList } from "./OptionsList/OptionsList.js";
|
|
|
16
16
|
import { ShortVariant } from "./ShortVariant/ShortVariant.js";
|
|
17
17
|
import { DropdownActionButton } from "./DropdownActionButton/index.js";
|
|
18
18
|
import { KEYBOARD_KEYS } from "./types.js";
|
|
19
|
+
import { useDropdownPadding } from "./useDropdownPadding.js";
|
|
19
20
|
import { SELECT_DROPDOWN_CLOSE_REASON, useSelectDropdown } from "./useSelectDropdown.js";
|
|
20
21
|
import { getFilteredOptions } from "./utils.js";
|
|
21
22
|
import Select_module from "./Select.module.js";
|
|
22
|
-
function SelectInner({ options, value, label, required, testId, disabled, placeholder, searchable = true, error, helperText = '', info = '', helpComponent, clearable = true, fullWidth, emptyText, className, dropdownClassName, dropdownOffsetX, dropdownOffsetY, isDropdownInnerScroll, optionClassName, isOptionEllipsis = true, style, dropdownStyle, dropdownZIndex, inputProps, variant = 'default', disableShortClear = false, hintZIndex = 100, isSearchDebounced = true, searchDebounceTimeout = 300, isLoading = false, loadingText = 'Загрузка...', onSearch, renderActions, renderDropdownContent, renderOption, onChange, onClear, renderValue, onDropdownToggle, renderInput, isDisableEnterSelect = false, isBlurNecessarily = false,
|
|
23
|
+
function SelectInner({ options, value, label, required, testId, disabled, placeholder, searchable = true, error, helperText = '', info = '', helpComponent, clearable = true, fullWidth, emptyText, className, dropdownClassName, dropdownOffsetX, dropdownOffsetY, isDropdownInnerScroll, optionClassName, isOptionEllipsis = true, style, dropdownStyle, dropdownZIndex, inputProps, inputHintText, variant = 'default', disableShortClear = false, hintZIndex = 100, isSearchDebounced = true, searchDebounceTimeout = 300, isLoading = false, loadingText = 'Загрузка...', skipSelectOnTab = false, shortVariantTextClassName, shortVariantContainerClassName, shortVariantIsVisibleFocusOutline, onSearch, renderActions, renderDropdownContent, renderOption, onChange, onClear, renderValue, onDropdownToggle, renderInput, isDisableEnterSelect = false, isBlurNecessarily = false, showArchived = false, onAddButtonClick, addButtonText = '', scrollableOptionsList, isFocusableOptionsList, closeOnSelect = true, renderDropdownActions, onFocus, onBlur, onKeyDown }, ref) {
|
|
24
|
+
const [isFocus, setIsFocus] = useState(false);
|
|
23
25
|
const [cursor, setCursor] = useState(null);
|
|
24
26
|
const [searchText, setSearchText] = useState(value?.label ?? '');
|
|
25
27
|
const [newOptions, setNewOptions] = useState([]);
|
|
26
|
-
const
|
|
27
|
-
const showClearButton = clearable && (searchText.length > 0 || value);
|
|
28
|
+
const showClearButton = clearable && !disabled && (searchText.length > 0 || value);
|
|
28
29
|
const valueLabel = value?.label ?? '';
|
|
29
30
|
const filteredOptions = getFilteredOptions({
|
|
30
31
|
searchText,
|
|
@@ -32,10 +33,10 @@ function SelectInner({ options, value, label, required, testId, disabled, placeh
|
|
|
32
33
|
newOptions,
|
|
33
34
|
valueLabel
|
|
34
35
|
});
|
|
35
|
-
const
|
|
36
|
-
onSearch
|
|
37
|
-
searchDebounceTimeout
|
|
36
|
+
const handleSearchCb = useCallback((text)=>onSearch?.(text), [
|
|
37
|
+
onSearch
|
|
38
38
|
]);
|
|
39
|
+
const handleDebouncedSearch = useDebounceCallback(handleSearchCb, searchDebounceTimeout);
|
|
39
40
|
const restoreInputFromValue = useCallback(()=>{
|
|
40
41
|
handleDebouncedSearch.cancel?.();
|
|
41
42
|
setSearchText(valueLabel);
|
|
@@ -85,13 +86,9 @@ function SelectInner({ options, value, label, required, testId, disabled, placeh
|
|
|
85
86
|
cursor,
|
|
86
87
|
hasActiveOption: open && null !== cursor && Boolean(filteredOptions[cursor])
|
|
87
88
|
});
|
|
89
|
+
const { scrollPaddings, dropdownActionsContainerRefCb } = useDropdownPadding();
|
|
88
90
|
const getDropdownStyle = ()=>{
|
|
89
91
|
const triggerWidth = triggerRef.current?.getBoundingClientRect()?.width ?? 0;
|
|
90
|
-
const scrollPadding = 4;
|
|
91
|
-
const scrollPaddings = {
|
|
92
|
-
scrollPaddingTop: scrollPadding,
|
|
93
|
-
scrollPaddingBottom: dropdownActionsContainerHeight + scrollPadding
|
|
94
|
-
};
|
|
95
92
|
if (renderDropdownContent) return {
|
|
96
93
|
minWidth: triggerWidth,
|
|
97
94
|
...scrollPaddings
|
|
@@ -131,6 +128,7 @@ function SelectInner({ options, value, label, required, testId, disabled, placeh
|
|
|
131
128
|
if (closeOnSelect) closeDropdown(SELECT_DROPDOWN_CLOSE_REASON.SELECT);
|
|
132
129
|
}, [
|
|
133
130
|
value,
|
|
131
|
+
closeOnSelect,
|
|
134
132
|
onChange,
|
|
135
133
|
closeDropdown
|
|
136
134
|
]);
|
|
@@ -155,16 +153,20 @@ function SelectInner({ options, value, label, required, testId, disabled, placeh
|
|
|
155
153
|
if (e.key === KEYBOARD_KEYS.ESCAPE) restoreInputFromValue();
|
|
156
154
|
inputProps?.onKeyUp?.(e);
|
|
157
155
|
};
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
const handleInputFocus = useCallback((e)=>{
|
|
157
|
+
setIsFocus(true);
|
|
158
|
+
inputProps?.onFocus?.(e);
|
|
159
|
+
}, [
|
|
160
|
+
inputProps
|
|
161
|
+
]);
|
|
161
162
|
const handleInputBlur = useCallback((e)=>{
|
|
163
|
+
setIsFocus(false);
|
|
162
164
|
if (isBlurNecessarily) inputProps?.onBlur?.(e);
|
|
163
165
|
if (filteredOptions.length && searchText.length) return;
|
|
164
166
|
if (!isBlurNecessarily) inputProps?.onBlur?.(e);
|
|
165
167
|
}, [
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
filteredOptions.length,
|
|
169
|
+
searchText.length,
|
|
168
170
|
inputProps
|
|
169
171
|
]);
|
|
170
172
|
useImperativeHandle(ref, ()=>({
|
|
@@ -233,19 +235,23 @@ function SelectInner({ options, value, label, required, testId, disabled, placeh
|
|
|
233
235
|
onClick: disabled ? void 0 : openDropdown,
|
|
234
236
|
triggerAriaProps: listboxTriggerAriaProps,
|
|
235
237
|
onToggle: disabled ? void 0 : toggleDropdown,
|
|
236
|
-
|
|
238
|
+
showArchived: showArchived,
|
|
239
|
+
isFocus: isFocus,
|
|
237
240
|
inputProps: {
|
|
238
241
|
...listboxTriggerAriaProps,
|
|
239
242
|
...inputProps,
|
|
240
243
|
onKeyUp: handleInputKeyUp,
|
|
244
|
+
onFocus: handleInputFocus,
|
|
241
245
|
onBlur: handleInputBlur
|
|
242
246
|
},
|
|
247
|
+
inputHintText: inputHintText,
|
|
243
248
|
style: style,
|
|
244
249
|
actions: /*#__PURE__*/ jsxs("div", {
|
|
245
250
|
className: cn(Select_module.actions, disabled && Select_module.disabled),
|
|
246
251
|
children: [
|
|
247
252
|
showClearButton && /*#__PURE__*/ jsx(ActionButton, {
|
|
248
253
|
"data-test-id": testId ? `${testId}-clear-button` : '',
|
|
254
|
+
"data-select-clear-action": true,
|
|
249
255
|
onClick: handleClear,
|
|
250
256
|
className: Select_module.clearAction,
|
|
251
257
|
disabled: disabled,
|
|
@@ -277,7 +283,13 @@ function SelectInner({ options, value, label, required, testId, disabled, placeh
|
|
|
277
283
|
style: style,
|
|
278
284
|
disableClear: disableShortClear,
|
|
279
285
|
testId: testId,
|
|
280
|
-
hintZIndex: hintZIndex
|
|
286
|
+
hintZIndex: hintZIndex,
|
|
287
|
+
textClassName: shortVariantTextClassName,
|
|
288
|
+
shortVariantContainerClassName: shortVariantContainerClassName,
|
|
289
|
+
isVisibleFocusOutline: shortVariantIsVisibleFocusOutline,
|
|
290
|
+
onFocus: onFocus,
|
|
291
|
+
onBlur: onBlur,
|
|
292
|
+
onKeyDown: onKeyDown
|
|
281
293
|
}),
|
|
282
294
|
renderInput && renderInput({
|
|
283
295
|
triggerRef,
|
|
@@ -293,8 +305,8 @@ function SelectInner({ options, value, label, required, testId, disabled, placeh
|
|
|
293
305
|
}),
|
|
294
306
|
/*#__PURE__*/ jsxs(Dropdown, {
|
|
295
307
|
...dropdownAriaProps,
|
|
296
|
-
className: dropdownClassName,
|
|
297
|
-
open: open,
|
|
308
|
+
className: cn(Select_module.dropdown, dropdownClassName),
|
|
309
|
+
open: disabled ? false : open,
|
|
298
310
|
triggerRef: triggerRef,
|
|
299
311
|
onClose: closeDropdown,
|
|
300
312
|
testId: testId ? `${testId}-dropdown` : '',
|
|
@@ -326,32 +338,26 @@ function SelectInner({ options, value, label, required, testId, disabled, placeh
|
|
|
326
338
|
value,
|
|
327
339
|
searchHandler: handleSearch,
|
|
328
340
|
inputKeyUpHandler: handleInputKeyUp,
|
|
329
|
-
clearHandler: handleClear
|
|
341
|
+
clearHandler: handleClear,
|
|
342
|
+
isDropdownOpen: open
|
|
330
343
|
}) : /*#__PURE__*/ jsx(Fragment, {
|
|
331
344
|
children: isLoading ? loadingComponent : optionsList
|
|
332
345
|
}),
|
|
333
346
|
!isLoading && !renderDropdownContent && 0 === filteredOptions.length && /*#__PURE__*/ jsx(EmptyState, {
|
|
334
347
|
text: emptyText
|
|
335
348
|
}),
|
|
336
|
-
showDropdownActions && /*#__PURE__*/ jsxs(
|
|
349
|
+
showDropdownActions && /*#__PURE__*/ jsxs(DropdownActionsContainer, {
|
|
337
350
|
ref: dropdownActionsContainerRefCb,
|
|
338
|
-
className: Select_module.dropdownActionsContainer,
|
|
339
351
|
children: [
|
|
340
|
-
/*#__PURE__*/
|
|
341
|
-
|
|
342
|
-
className: Select_module.dropdownActions,
|
|
352
|
+
onAddButtonClick && /*#__PURE__*/ jsxs(DropdownActionButton, {
|
|
353
|
+
onClick: onAddButtonClick,
|
|
343
354
|
children: [
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
children: [
|
|
347
|
-
/*#__PURE__*/ jsx(Add16Icon, {}),
|
|
348
|
-
addButtonText
|
|
349
|
-
]
|
|
350
|
-
}),
|
|
351
|
-
renderDropdownActions?.({
|
|
352
|
-
closeDropdown
|
|
353
|
-
})
|
|
355
|
+
/*#__PURE__*/ jsx(Add16Icon, {}),
|
|
356
|
+
addButtonText
|
|
354
357
|
]
|
|
358
|
+
}),
|
|
359
|
+
renderDropdownActions?.({
|
|
360
|
+
closeDropdown
|
|
355
361
|
})
|
|
356
362
|
]
|
|
357
363
|
})
|
|
@@ -367,6 +373,5 @@ SelectComponent.OptionsList = OptionsList;
|
|
|
367
373
|
SelectComponent.Option = Option;
|
|
368
374
|
SelectComponent.DropdownActionButton = DropdownActionButton;
|
|
369
375
|
SelectComponent.DropDownWithColors = DropDownWithColors;
|
|
370
|
-
SelectComponent.ArchivedInputValue = ArchivedInputValue;
|
|
371
376
|
SelectComponent.displayName = 'Select';
|
|
372
377
|
export { SelectComponent as Select };
|
|
@@ -3,7 +3,6 @@ const Select_module = {
|
|
|
3
3
|
container: "container-C2p99t",
|
|
4
4
|
clearAction: "clearAction-sc7Lsp",
|
|
5
5
|
actions: "actions-cQr4nG",
|
|
6
|
-
|
|
7
|
-
dropdownActions: "dropdownActions-O89Lx9"
|
|
6
|
+
dropdown: "dropdown-_J2KVk"
|
|
8
7
|
};
|
|
9
8
|
export default Select_module;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
justify-content: center;
|
|
7
7
|
align-items: center;
|
|
8
8
|
display: flex;
|
|
9
|
+
position: relative;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.container-C2p99t .actions-cQr4nG .clearAction-sc7Lsp {
|
|
@@ -13,21 +14,13 @@
|
|
|
13
14
|
padding-left: 0;
|
|
14
15
|
padding-right: 12px;
|
|
15
16
|
display: none;
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 50%;
|
|
19
|
+
left: 0;
|
|
20
|
+
transform: translate(-100%, -50%);
|
|
16
21
|
}
|
|
17
22
|
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
position: sticky;
|
|
21
|
-
bottom: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.dropdownActions-O89Lx9 {
|
|
25
|
-
justify-content: center;
|
|
26
|
-
align-items: center;
|
|
27
|
-
padding: 0 16px 8px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.dropdownActions-O89Lx9 > button {
|
|
31
|
-
width: 100%;
|
|
23
|
+
.dropdown-_J2KVk:focus {
|
|
24
|
+
outline: none;
|
|
32
25
|
}
|
|
33
26
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type KeyboardEventHandler } from 'react';
|
|
2
2
|
import type { IHasTestId } from '../../../common/types';
|
|
3
3
|
import type { IBaseSelectProps } from '../types';
|
|
4
4
|
interface Props extends IBaseSelectProps, HTMLAttributes<HTMLDivElement>, IHasTestId {
|
|
5
5
|
onClear: () => void;
|
|
6
6
|
disableClear?: boolean;
|
|
7
|
+
textClassName?: string;
|
|
8
|
+
shortVariantContainerClassName?: string;
|
|
9
|
+
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
10
|
+
isVisibleFocusOutline?: boolean;
|
|
7
11
|
}
|
|
8
12
|
export declare const ShortVariant: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
13
|
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { cn } from "../../../common/css/cn.js";
|
|
4
|
+
import { Info } from "../../_shared/Info/Info.js";
|
|
4
5
|
import { Text } from "../../Text/Text.js";
|
|
5
6
|
import { Down12Icon, RemoveClose12Icon } from "../../../icon/index.js";
|
|
6
|
-
import { Info } from "../../Info/Info.js";
|
|
7
7
|
import { Label } from "../../Label/Label.js";
|
|
8
8
|
import { OverflowingHint } from "../OverflowingHint/OverflowingHint.js";
|
|
9
9
|
import ShortVariant_module from "./ShortVariant.module.js";
|
|
10
|
-
const ShortVariant = /*#__PURE__*/ forwardRef(({ testId, value, placeholder, label, helperText, info, error, required, className, disabled, disableClear, hintZIndex = 100, renderValue, onClear, tabIndex, ...otherProps }, ref)=>{
|
|
10
|
+
const ShortVariant = /*#__PURE__*/ forwardRef(({ testId, value, placeholder, label, helperText, info, error, required, className, disabled, textClassName, disableClear, hintZIndex = 100, shortVariantContainerClassName, renderValue, onClear, tabIndex, onKeyDown, isVisibleFocusOutline = true, ...otherProps }, ref)=>{
|
|
11
11
|
const handleClear = (e)=>{
|
|
12
12
|
e.stopPropagation();
|
|
13
13
|
onClear();
|
|
14
14
|
};
|
|
15
15
|
return /*#__PURE__*/ jsxs("div", {
|
|
16
|
-
className: ShortVariant_module.outerContainer,
|
|
16
|
+
className: cn(ShortVariant_module.outerContainer, shortVariantContainerClassName),
|
|
17
17
|
children: [
|
|
18
18
|
/*#__PURE__*/ jsx(Label, {
|
|
19
19
|
label: label,
|
|
@@ -24,9 +24,10 @@ const ShortVariant = /*#__PURE__*/ forwardRef(({ testId, value, placeholder, lab
|
|
|
24
24
|
role: "combobox",
|
|
25
25
|
tabIndex: disabled ? -1 : tabIndex ?? 0,
|
|
26
26
|
"aria-disabled": disabled,
|
|
27
|
-
className: cn(ShortVariant_module.container, className),
|
|
27
|
+
className: cn(ShortVariant_module.container, !isVisibleFocusOutline && ShortVariant_module.focusOutlineNone, className),
|
|
28
28
|
ref: ref,
|
|
29
29
|
"data-test-id": testId,
|
|
30
|
+
onKeyDown: onKeyDown,
|
|
30
31
|
...otherProps,
|
|
31
32
|
children: [
|
|
32
33
|
renderValue ? renderValue({
|
|
@@ -39,7 +40,7 @@ const ShortVariant = /*#__PURE__*/ forwardRef(({ testId, value, placeholder, lab
|
|
|
39
40
|
zIndex: hintZIndex,
|
|
40
41
|
hintText: value ? value.label : placeholder,
|
|
41
42
|
children: (ref)=>/*#__PURE__*/ jsx(Text.Body, {
|
|
42
|
-
className: ShortVariant_module.value,
|
|
43
|
+
className: cn(ShortVariant_module.value, textClassName),
|
|
43
44
|
ref: ref,
|
|
44
45
|
children: value ? value.label : placeholder
|
|
45
46
|
})
|