@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
|
@@ -2,7 +2,7 @@ import { type Key, type MutableRefObject, type ReactElement, type ReactNode, typ
|
|
|
2
2
|
import { type InputProps } from './Input/Input';
|
|
3
3
|
import { type MultiselectDropdownContentProps } from './DropdownContent/MultiselectDropdownContent';
|
|
4
4
|
import { type ShortDropdownContentProps } from './ShortDropdownContent/ShortDropdownContent';
|
|
5
|
-
import { type DropdownItem, type RenderSelectedItem } from './types';
|
|
5
|
+
import { type AllSelectedChipTextVariant, type DropdownItem, type GetAllSelectedChipText, type RenderSelectedItem } from './types';
|
|
6
6
|
type SharedProps<T extends Key, DTO = unknown> = Pick<InputProps, 'placeholder' | 'getOtherText' | 'tooltipDelay'> & {
|
|
7
7
|
id?: HTMLElement['id'];
|
|
8
8
|
label?: string;
|
|
@@ -24,8 +24,14 @@ type SharedProps<T extends Key, DTO = unknown> = Pick<InputProps, 'placeholder'
|
|
|
24
24
|
wrapSelectedItems?: boolean;
|
|
25
25
|
closeDropdownOnCreateButtonClick?: boolean;
|
|
26
26
|
onDropdownVisibleChange?: (visible: boolean) => void;
|
|
27
|
+
/**
|
|
28
|
+
* асинхронный коллбэк, вызываемый при изменении input, возвращает список отфильтрованных опций
|
|
29
|
+
*/
|
|
30
|
+
onSearch?: (value: string) => Promise<DropdownItem<T>[]>;
|
|
27
31
|
renderItem?: (item: DropdownItem<T, DTO>) => ReactNode;
|
|
28
32
|
renderSelectedItem?: RenderSelectedItem;
|
|
33
|
+
allSelectedChipTextVariant?: AllSelectedChipTextVariant;
|
|
34
|
+
getAllSelectedChipText?: GetAllSelectedChipText;
|
|
29
35
|
};
|
|
30
36
|
type DefaultProps<T extends Key, DTO = any> = MultiselectDropdownContentProps<T, DTO> & {
|
|
31
37
|
variant?: 'default' | 'textarea';
|
|
@@ -42,4 +48,4 @@ export { useChipsKeyDown } from './lib/useChipsKeyDown';
|
|
|
42
48
|
export { SelectedItemArchive, type SelectedItemArchiveProps, } from './SelectedItem/SelectedItemArchive';
|
|
43
49
|
export { ShortDropdownContent, type ShortDropdownContentProps, } from './ShortDropdownContent/ShortDropdownContent';
|
|
44
50
|
export { chipStyles, TooltipedChip, type TooltipedChipProps, } from './TooltipedChip/TooltipedChip';
|
|
45
|
-
export { type DropdownItem } from './types';
|
|
51
|
+
export { type AllSelectedChipTextVariant, type DropdownItem, type GetAllSelectedChipText, } from './types';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useCallback } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
|
+
import { FieldRow } from "../_shared/FieldRow/FieldRow.js";
|
|
5
|
+
import { Info } from "../_shared/Info/Info.js";
|
|
4
6
|
import { Input } from "./Input/Input.js";
|
|
5
7
|
import { useId } from "../../hooks/useId/index.js";
|
|
6
8
|
import { Dropdown, useDropdown } from "../Dropdown/Dropdown.js";
|
|
7
|
-
import { FieldRow } from "../FieldRow/FieldRow.js";
|
|
8
|
-
import { Info } from "../Info/Info.js";
|
|
9
9
|
import { Label } from "../Label/Label.js";
|
|
10
10
|
import { AsyncDropdownContextProvider, useAsyncDropdownContext } from "./AsyncDropdownContext/AsyncDropdownContextProvider.js";
|
|
11
11
|
import { MultiselectDropdownContent } from "./DropdownContent/MultiselectDropdownContent.js";
|
|
12
|
+
import { isAllItemsSelected } from "./lib/helpers.js";
|
|
12
13
|
import { useUpdateEffect } from "./lib/useUpdateEffect.js";
|
|
13
14
|
import { ShortDropdownContent } from "./ShortDropdownContent/ShortDropdownContent.js";
|
|
14
15
|
import { MultiselectTextField } from "./TextField/MultiselectTextField.js";
|
|
@@ -39,6 +40,7 @@ const Multiselect = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
39
40
|
props.onCreateButtonClick(searchInputValue);
|
|
40
41
|
if (props.closeDropdownOnCreateButtonClick) handleClose();
|
|
41
42
|
};
|
|
43
|
+
const isAllSelected = props.showSelectAllCheckbox && isAllItemsSelected(props.items, props.values);
|
|
42
44
|
return /*#__PURE__*/ jsxs("div", {
|
|
43
45
|
ref: ref,
|
|
44
46
|
className: cn(Multiselect_module.container, props.className ?? ''),
|
|
@@ -80,6 +82,10 @@ const Multiselect = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
80
82
|
getOtherText: props.getOtherText,
|
|
81
83
|
tooltipDelay: props.tooltipDelay,
|
|
82
84
|
disabled: props.disabled,
|
|
85
|
+
canShowAllSelectedChip: props.showSelectAllCheckbox,
|
|
86
|
+
isAllSelected: isAllSelected,
|
|
87
|
+
allSelectedChipTextVariant: props.allSelectedChipTextVariant,
|
|
88
|
+
getAllSelectedChipText: props.getAllSelectedChipText,
|
|
83
89
|
wrapSelectedItems: props.wrapSelectedItems,
|
|
84
90
|
renderSelectedItem: props.renderSelectedItem,
|
|
85
91
|
triggerAriaProps: triggerAriaProps
|
|
@@ -96,6 +102,10 @@ const Multiselect = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
96
102
|
onItemDelete: handleItemDelete,
|
|
97
103
|
tooltipDelay: props.tooltipDelay,
|
|
98
104
|
disabled: props.disabled,
|
|
105
|
+
canShowAllSelectedChip: props.showSelectAllCheckbox,
|
|
106
|
+
isAllSelected: isAllSelected,
|
|
107
|
+
allSelectedChipTextVariant: props.allSelectedChipTextVariant,
|
|
108
|
+
getAllSelectedChipText: props.getAllSelectedChipText,
|
|
99
109
|
renderSelectedItem: props.renderSelectedItem,
|
|
100
110
|
triggerAriaProps: triggerAriaProps
|
|
101
111
|
}),
|
|
@@ -117,6 +127,8 @@ const Multiselect = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
117
127
|
onChange: props.onChange,
|
|
118
128
|
values: props.values,
|
|
119
129
|
getManyItemsChipText: props.getManyItemsChipText,
|
|
130
|
+
allSelectedChipTextVariant: props.allSelectedChipTextVariant,
|
|
131
|
+
getAllSelectedChipText: props.getAllSelectedChipText,
|
|
120
132
|
getNotFoundText: props.getNotFoundText,
|
|
121
133
|
showCreateButton: props.showCreateButton,
|
|
122
134
|
getCreateButtonText: props.getCreateButtonText,
|
|
@@ -4,6 +4,7 @@ import { Button } from "../../Button/Button.js";
|
|
|
4
4
|
import { Checkbox } from "../../Checkbox/Checkbox.js";
|
|
5
5
|
import { Add16Icon } from "../../../icon/index.js";
|
|
6
6
|
import { selectAllCheckboxDefaultText } from "../lib/consts.js";
|
|
7
|
+
import { canSelectAllItems } from "../lib/helpers.js";
|
|
7
8
|
import { useItemKeyDown } from "../lib/useItemKeyDown.js";
|
|
8
9
|
import { SelectAllCheckbox } from "../SelectAllCheckbox/SelectAllCheckbox.js";
|
|
9
10
|
import { TooltipedOptionText } from "../TooltipedOptionText/TooltipedOptionText.js";
|
|
@@ -20,7 +21,7 @@ const ShortDropdownContent = (props)=>{
|
|
|
20
21
|
className: ShortDropdownContent_module.itemsList,
|
|
21
22
|
"data-test-id": props.testId ? `${props.testId}-items-list` : '',
|
|
22
23
|
children: [
|
|
23
|
-
props.showSelectAllCheckbox && /*#__PURE__*/ jsx(SelectAllCheckbox, {
|
|
24
|
+
props.showSelectAllCheckbox && canSelectAllItems(props.items) && /*#__PURE__*/ jsx(SelectAllCheckbox, {
|
|
24
25
|
values: props.values,
|
|
25
26
|
items: props.items,
|
|
26
27
|
onChange: props.onChange,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AriaAttributes, type Ref } from 'react';
|
|
2
|
-
import { type InputValue, type RenderSelectedItem } from '../types';
|
|
2
|
+
import { type AllSelectedChipTextVariant, type GetAllSelectedChipText, type InputValue, type RenderSelectedItem } from '../types';
|
|
3
3
|
interface MultiselectTextFieldProps {
|
|
4
4
|
id?: HTMLTextAreaElement['id'];
|
|
5
5
|
selectedItems: InputValue[];
|
|
@@ -12,6 +12,10 @@ interface MultiselectTextFieldProps {
|
|
|
12
12
|
onItemDelete?: (value: InputValue['value']) => void;
|
|
13
13
|
tooltipDelay?: number;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
+
canShowAllSelectedChip?: boolean;
|
|
16
|
+
isAllSelected?: boolean;
|
|
17
|
+
allSelectedChipTextVariant?: AllSelectedChipTextVariant;
|
|
18
|
+
getAllSelectedChipText?: GetAllSelectedChipText;
|
|
15
19
|
renderSelectedItem?: RenderSelectedItem;
|
|
16
20
|
triggerAriaProps?: Pick<AriaAttributes, 'aria-controls' | 'aria-expanded' | 'aria-haspopup'>;
|
|
17
21
|
}
|
|
@@ -3,10 +3,12 @@ import { useEffect, useRef, useState } from "react";
|
|
|
3
3
|
import { cn } from "../../../common/css/cn.js";
|
|
4
4
|
import { mergeRefs } from "../../../common/react/mergeRefs.js";
|
|
5
5
|
import { Textfield } from "../../Textfield/Textfield.js";
|
|
6
|
+
import { AllSelectedChip } from "../AllSelectedChip/AllSelectedChip.js";
|
|
6
7
|
import { useAsyncDropdownContext } from "../AsyncDropdownContext/AsyncDropdownContextProvider.js";
|
|
7
8
|
import { minChipsWidth } from "../lib/consts.js";
|
|
9
|
+
import { getAllSelectedChipState, getDefaultAllSelectedChipText } from "../lib/helpers.js";
|
|
8
10
|
import { useChipsKeyDown } from "../lib/useChipsKeyDown.js";
|
|
9
|
-
import { TooltipedChip } from "../TooltipedChip/TooltipedChip.js";
|
|
11
|
+
import { TooltipedChip, chipStyles } from "../TooltipedChip/TooltipedChip.js";
|
|
10
12
|
import MultiselectTextField_module from "./MultiselectTextField.module.js";
|
|
11
13
|
const minHeight = 90;
|
|
12
14
|
const defaultPadding = {
|
|
@@ -23,6 +25,12 @@ const MultiselectTextField = (props)=>{
|
|
|
23
25
|
]);
|
|
24
26
|
const asyncDropdownContext = useAsyncDropdownContext();
|
|
25
27
|
const selectedItems = asyncDropdownContext?.selectedValues ?? props.selectedItems;
|
|
28
|
+
const allSelectedChipState = getAllSelectedChipState({
|
|
29
|
+
asyncItems: asyncDropdownContext?.cachedItems,
|
|
30
|
+
canShowAllSelectedChip: props.canShowAllSelectedChip,
|
|
31
|
+
isAllSelected: props.isAllSelected,
|
|
32
|
+
selectedItems
|
|
33
|
+
});
|
|
26
34
|
const [height, setHeight] = useState(`${minHeight}px`);
|
|
27
35
|
const [padding, setPadding] = useState(defaultPadding);
|
|
28
36
|
const chipsContainerStyle = {
|
|
@@ -96,7 +104,12 @@ const MultiselectTextField = (props)=>{
|
|
|
96
104
|
/*#__PURE__*/ jsx("div", {
|
|
97
105
|
className: MultiselectTextField_module.chipsContainer,
|
|
98
106
|
style: chipsContainerStyle,
|
|
99
|
-
children:
|
|
107
|
+
children: allSelectedChipState.isAllSelected ? /*#__PURE__*/ jsx(AllSelectedChip, {
|
|
108
|
+
label: props.getAllSelectedChipText?.(allSelectedChipState.itemsCount) ?? getDefaultAllSelectedChipText(allSelectedChipState.itemsCount, props.allSelectedChipTextVariant),
|
|
109
|
+
disabled: props.disabled,
|
|
110
|
+
className: cn(chipStyles.chip, chipStyles.multiselectChip, MultiselectTextField_module.chip),
|
|
111
|
+
testId: props.testId ? `${props.testId}-all-selected` : void 0
|
|
112
|
+
}) : selectedItems.map((item, index)=>/*#__PURE__*/ jsx(TooltipedChip, {
|
|
100
113
|
minWidth: minChipsWidth,
|
|
101
114
|
text: item.label,
|
|
102
115
|
ref: (ref)=>chipRefs.current[index] = ref,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const minChipsWidth = 64;
|
|
2
2
|
export declare const chipsContainerGap = 4;
|
|
3
|
-
export declare const selectAllCheckboxDefaultText = "\u0412\
|
|
3
|
+
export declare const selectAllCheckboxDefaultText = "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Key } from 'react';
|
|
2
|
+
import type { AllSelectedChipTextVariant } from '../types';
|
|
3
|
+
type AllSelectedChipStateParams<T extends Key> = {
|
|
4
|
+
asyncItems?: {
|
|
5
|
+
value: T;
|
|
6
|
+
}[];
|
|
7
|
+
canShowAllSelectedChip?: boolean;
|
|
8
|
+
isAllSelected?: boolean;
|
|
9
|
+
selectedItems: {
|
|
10
|
+
value: T;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
export declare const canSelectAllItems: <T extends Key>(items: {
|
|
14
|
+
value: T;
|
|
15
|
+
}[]) => boolean;
|
|
16
|
+
export declare const isAllItemsSelected: <T extends Key>(items: {
|
|
17
|
+
value: T;
|
|
18
|
+
}[], values: T[]) => boolean;
|
|
19
|
+
export declare const getAllSelectedChipState: <T extends Key>({ asyncItems, canShowAllSelectedChip, isAllSelected, selectedItems, }: AllSelectedChipStateParams<T>) => {
|
|
20
|
+
isAllSelected: boolean;
|
|
21
|
+
itemsCount: number;
|
|
22
|
+
};
|
|
23
|
+
export declare const getDefaultAllSelectedChipText: (itemsCount: number, variant?: AllSelectedChipTextVariant) => string;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const canSelectAllItems = (items)=>items.length > 1;
|
|
2
|
+
const isAllItemsSelected = (items, values)=>canSelectAllItems(items) && items.every((item)=>values.includes(item.value));
|
|
3
|
+
const getAllSelectedChipState = ({ asyncItems, canShowAllSelectedChip, isAllSelected, selectedItems })=>{
|
|
4
|
+
const selectedItemValues = selectedItems.map((item)=>item.value);
|
|
5
|
+
const isAllSelectedInAsyncContext = canShowAllSelectedChip && !!asyncItems && isAllItemsSelected(asyncItems, selectedItemValues);
|
|
6
|
+
return {
|
|
7
|
+
isAllSelected: Boolean(isAllSelected || isAllSelectedInAsyncContext),
|
|
8
|
+
itemsCount: asyncItems?.length || selectedItems.length
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
const getDefaultAllSelectedChipText = (itemsCount, variant = 'full')=>{
|
|
12
|
+
if ('short' === variant) return 'Выбраны все';
|
|
13
|
+
return `Выбраны все ${itemsCount}`;
|
|
14
|
+
};
|
|
15
|
+
export { canSelectAllItems, getAllSelectedChipState, getDefaultAllSelectedChipText, isAllItemsSelected };
|
|
@@ -9,6 +9,8 @@ export interface DropdownItem<T extends Key, DTO = unknown> {
|
|
|
9
9
|
label: string;
|
|
10
10
|
dto?: DTO;
|
|
11
11
|
}
|
|
12
|
+
export type GetAllSelectedChipText = (itemsCount: number) => string;
|
|
13
|
+
export type AllSelectedChipTextVariant = 'full' | 'short';
|
|
12
14
|
export type RenderSelectedItemProps = {
|
|
13
15
|
element: ReactNode;
|
|
14
16
|
chipRef: ForwardedRef<HTMLButtonElement> | undefined;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type HTMLAttributes, type Key, type ReactNode } from 'react';
|
|
2
|
+
import { type IHasTestId } from '../../common';
|
|
3
|
+
export interface PanelItem {
|
|
4
|
+
id: Key;
|
|
5
|
+
element: ReactNode;
|
|
6
|
+
width: number;
|
|
7
|
+
}
|
|
8
|
+
export interface PanelProps extends HTMLAttributes<HTMLDivElement>, IHasTestId {
|
|
9
|
+
items: PanelItem[];
|
|
10
|
+
/**
|
|
11
|
+
* maximum - 40
|
|
12
|
+
*
|
|
13
|
+
* @default 6
|
|
14
|
+
*/
|
|
15
|
+
columnsCount?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default 12
|
|
18
|
+
*/
|
|
19
|
+
rowGap?: number;
|
|
20
|
+
/**
|
|
21
|
+
* @default 20
|
|
22
|
+
*/
|
|
23
|
+
columnGap?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @default 38
|
|
26
|
+
*/
|
|
27
|
+
minRowHeight?: number;
|
|
28
|
+
}
|
|
29
|
+
declare const ForwardedRefPanel: import("react").ForwardRefExoticComponent<PanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
declare const Empty: (props: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const Panel: typeof ForwardedRefPanel & {
|
|
32
|
+
EmptyItem: typeof Empty;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { cn, getOptionalTestId } from "../../common/index.js";
|
|
4
|
+
import Panel_module from "./Panel.module.js";
|
|
5
|
+
const ForwardedRefPanel = /*#__PURE__*/ forwardRef(({ items, columnsCount: columnsCountProp = 6, rowGap = 12, columnGap = 20, minRowHeight = 38, testId, ...restProps }, ref)=>{
|
|
6
|
+
const columnsCount = Math.min(columnsCountProp, 40);
|
|
7
|
+
const containerStyles = {
|
|
8
|
+
'--panel-columns-count': columnsCount,
|
|
9
|
+
'--panel-row-gap': `${rowGap}px`,
|
|
10
|
+
'--panel-column-gap': `${columnGap}px`,
|
|
11
|
+
'--panel-min-row-height': `${minRowHeight}px`
|
|
12
|
+
};
|
|
13
|
+
const getItemStyles = (bentoItem)=>({
|
|
14
|
+
'--panel-item-width': Math.min(Math.round(bentoItem.width), columnsCount)
|
|
15
|
+
});
|
|
16
|
+
return /*#__PURE__*/ jsx("div", {
|
|
17
|
+
...restProps,
|
|
18
|
+
ref: ref,
|
|
19
|
+
className: cn(Panel_module.container, restProps.className),
|
|
20
|
+
style: {
|
|
21
|
+
...restProps.style,
|
|
22
|
+
...containerStyles
|
|
23
|
+
},
|
|
24
|
+
"data-test-id": testId,
|
|
25
|
+
children: items.map((panelItem)=>/*#__PURE__*/ jsx("div", {
|
|
26
|
+
className: Panel_module.item,
|
|
27
|
+
style: getItemStyles(panelItem),
|
|
28
|
+
"data-test-id": getOptionalTestId(testId, `item-${panelItem.id}`),
|
|
29
|
+
children: panelItem.element
|
|
30
|
+
}, panelItem.id))
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
ForwardedRefPanel.displayName = 'Panel';
|
|
34
|
+
const Empty = (props)=>/*#__PURE__*/ jsx("div", {
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
const Panel = ForwardedRefPanel;
|
|
38
|
+
Panel.EmptyItem = Empty;
|
|
39
|
+
export { Panel };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.container-iTBnxl {
|
|
2
|
+
--panel-columns-count: 6;
|
|
3
|
+
--panel-row-gap: 12px;
|
|
4
|
+
--panel-column-gap: 20px;
|
|
5
|
+
--panel-min-row-height: 38px;
|
|
6
|
+
grid-template-columns: repeat(var(--panel-columns-count), minmax(50px, 1fr));
|
|
7
|
+
grid-auto-rows: minmax(var(--panel-min-row-height), auto);
|
|
8
|
+
gap: var(--panel-row-gap) var(--panel-column-gap);
|
|
9
|
+
display: grid;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.item-mDdH69 {
|
|
13
|
+
--panel-item-width: 1;
|
|
14
|
+
grid-column: auto/span var(--panel-item-width);
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
|
|
@@ -2,9 +2,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useMemo } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
4
|
import { getOptionalTestId } from "../../common/testId/index.js";
|
|
5
|
+
import { Info } from "../_shared/Info/Info.js";
|
|
5
6
|
import { Indicator } from "../Indicator/Indicator.js";
|
|
6
7
|
import { getIndicatorProps } from "../Indicator/Indicator.helpers.js";
|
|
7
|
-
import { Info } from "../Info/Info.js";
|
|
8
8
|
import { RadiobuttonContent } from "./components/RadiobuttonContent.js";
|
|
9
9
|
import { RadiobuttonHelp } from "./components/RadiobuttonHelp.js";
|
|
10
10
|
import Radiobutton_module from "./Radiobutton.module.js";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
-
import type { ISelectOption } from '../types';
|
|
3
2
|
interface ArchivedInputValueProps {
|
|
4
|
-
value: ISelectOption;
|
|
5
3
|
input: ReactNode;
|
|
6
4
|
isShowIcon: boolean;
|
|
7
|
-
|
|
5
|
+
inputHintText?: string;
|
|
8
6
|
disabled?: boolean;
|
|
7
|
+
testId?: string;
|
|
9
8
|
}
|
|
10
|
-
export declare const ArchivedInputValue: (
|
|
9
|
+
export declare const ArchivedInputValue: ({ input, isShowIcon, inputHintText, disabled, testId, }: ArchivedInputValueProps) => ReactElement;
|
|
11
10
|
export {};
|
|
@@ -5,40 +5,35 @@ import { Hint } from "../../Hint/Hint.js";
|
|
|
5
5
|
import { Text, TextColor } from "../../Text/Text.js";
|
|
6
6
|
import { Archived16Icon } from "../../../icon/index.js";
|
|
7
7
|
import ArchivedInputValue_module from "./ArchivedInputValue.module.js";
|
|
8
|
-
const ArchivedInputValue = ({ input,
|
|
8
|
+
const ArchivedInputValue = ({ input, isShowIcon, inputHintText = 'В архиве', disabled, testId })=>{
|
|
9
9
|
const [visible, setVisible] = useState(false);
|
|
10
10
|
const handleVisibleChange = (show)=>{
|
|
11
|
-
setVisible(isShowIcon &&
|
|
11
|
+
setVisible(isShowIcon && show);
|
|
12
12
|
};
|
|
13
|
-
return /*#__PURE__*/
|
|
14
|
-
children:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
}),
|
|
26
|
-
children: input
|
|
13
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
14
|
+
children: /*#__PURE__*/ jsx(Hint, {
|
|
15
|
+
visible: visible,
|
|
16
|
+
onVisibleChange: handleVisibleChange,
|
|
17
|
+
mouseEnterDelay: 0.3,
|
|
18
|
+
overlay: /*#__PURE__*/ jsx(Fragment, {
|
|
19
|
+
children: /*#__PURE__*/ jsx(Text.Body, {
|
|
20
|
+
colorToken: TextColor.invert,
|
|
21
|
+
preline: true,
|
|
22
|
+
children: inputHintText
|
|
23
|
+
})
|
|
27
24
|
}),
|
|
28
|
-
|
|
29
|
-
className: ArchivedInputValue_module.
|
|
25
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
26
|
+
className: ArchivedInputValue_module.textContainer,
|
|
30
27
|
children: [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
children: value.label
|
|
34
|
-
}),
|
|
35
|
-
/*#__PURE__*/ jsx("div", {
|
|
28
|
+
input,
|
|
29
|
+
isShowIcon && /*#__PURE__*/ jsx("div", {
|
|
36
30
|
className: cn(ArchivedInputValue_module.rightIcon, disabled && ArchivedInputValue_module.rightIconDisabled),
|
|
31
|
+
"data-test-id": testId ? `${testId}-archived-icon` : void 0,
|
|
37
32
|
children: /*#__PURE__*/ jsx(Archived16Icon, {})
|
|
38
33
|
})
|
|
39
34
|
]
|
|
40
35
|
})
|
|
41
|
-
|
|
36
|
+
})
|
|
42
37
|
});
|
|
43
38
|
};
|
|
44
39
|
export { ArchivedInputValue };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./ArchivedInputValue_module.css";
|
|
2
2
|
const ArchivedInputValue_module = {
|
|
3
|
-
|
|
4
|
-
rightIconText: "rightIconText-fpxSCr",
|
|
3
|
+
textContainer: "textContainer-BEuqYt",
|
|
5
4
|
rightIcon: "rightIcon-PUbQMv",
|
|
6
5
|
rightIconDisabled: "rightIconDisabled-chCxrA"
|
|
7
6
|
};
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
1
|
+
.textContainer-BEuqYt {
|
|
2
|
+
align-items: center;
|
|
3
|
+
gap: 8px;
|
|
3
4
|
width: 100%;
|
|
4
|
-
|
|
5
|
+
min-width: 0;
|
|
5
6
|
display: flex;
|
|
6
|
-
position: absolute;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.rightIconText-fpxSCr {
|
|
10
|
-
opacity: 0;
|
|
11
|
-
text-overflow: ellipsis;
|
|
12
|
-
height: 0;
|
|
13
|
-
margin-right: 8px;
|
|
14
|
-
overflow: hidden;
|
|
15
7
|
}
|
|
16
8
|
|
|
17
9
|
.rightIcon-PUbQMv {
|
|
18
10
|
color: var(--elements-disable, #d1d6df);
|
|
11
|
+
flex-shrink: 0;
|
|
19
12
|
align-items: center;
|
|
20
13
|
display: flex;
|
|
21
14
|
}
|
|
@@ -5,11 +5,13 @@ interface Props extends IBaseSelectProps, HTMLAttributes<HTMLDivElement>, IHasTe
|
|
|
5
5
|
id?: HTMLInputElement['id'];
|
|
6
6
|
searchText?: string;
|
|
7
7
|
inputProps?: HTMLAttributes<HTMLInputElement>;
|
|
8
|
+
inputHintText?: string;
|
|
8
9
|
onToggle?: () => void;
|
|
9
10
|
onSearch: (searchText: string) => void;
|
|
10
11
|
isDropdownOpen: boolean;
|
|
11
12
|
actions?: ReactNode;
|
|
12
|
-
|
|
13
|
+
showArchived?: boolean;
|
|
14
|
+
isFocus?: boolean;
|
|
13
15
|
triggerAriaProps?: Pick<AriaAttributes, 'aria-controls' | 'aria-expanded' | 'aria-haspopup' | 'aria-activedescendant'>;
|
|
14
16
|
}
|
|
15
17
|
export declare const Combobox: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
3
3
|
import { cn } from "../../../common/css/cn.js";
|
|
4
|
+
import { FieldRow } from "../../_shared/FieldRow/FieldRow.js";
|
|
5
|
+
import { Info } from "../../_shared/Info/Info.js";
|
|
4
6
|
import { Text, TextColor } from "../../Text/Text.js";
|
|
5
7
|
import { useId } from "../../../hooks/useId/index.js";
|
|
6
8
|
import { Down12Icon } from "../../../icon/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import { Info } from "../../Info/Info.js";
|
|
9
|
+
import { checkIsArchivedValue } from "../../../utils/checkIsArchivedValue.js";
|
|
9
10
|
import { Label } from "../../Label/Label.js";
|
|
10
11
|
import { ActionButton } from "../ActionButton/ActionButton.js";
|
|
12
|
+
import { ArchivedInputValue } from "../ArchivedInputValue/ArchivedInputValue.js";
|
|
11
13
|
import Combobox_module from "./Combobox.module.js";
|
|
12
|
-
const Combobox = /*#__PURE__*/ forwardRef(({ id, label, required, testId, disabled, placeholder, searchable, error, helperText, info, helpComponent, actions, searchText, fullWidth, inputProps, triggerAriaProps, style, value, onSearch, onToggle, onMouseEnter, onMouseLeave, renderValue, isDropdownOpen,
|
|
14
|
+
const Combobox = /*#__PURE__*/ forwardRef(({ id, label, required, testId, disabled, placeholder, searchable, error, helperText, info, helpComponent, actions, searchText, fullWidth, inputProps, inputHintText, triggerAriaProps, style, value, onSearch, onToggle, onMouseEnter, onMouseLeave, renderValue, isDropdownOpen, showArchived = false, isFocus = false, ...otherProps }, ref)=>{
|
|
13
15
|
const [hovered, setHovered] = useState(false);
|
|
14
16
|
const inputRef = useRef(null);
|
|
15
17
|
const inputId = useId(id);
|
|
18
|
+
const isArchived = showArchived && checkIsArchivedValue(value);
|
|
16
19
|
useEffect(()=>{
|
|
17
20
|
if (inputRef.current && isDropdownOpen) inputRef.current.focus();
|
|
18
21
|
}, [
|
|
@@ -28,7 +31,7 @@ const Combobox = /*#__PURE__*/ forwardRef(({ id, label, required, testId, disabl
|
|
|
28
31
|
id: inputId,
|
|
29
32
|
ref: inputRef,
|
|
30
33
|
type: "text",
|
|
31
|
-
className: cn(Combobox_module.search, isArchived && Combobox_module.archivedTextColor),
|
|
34
|
+
className: cn(Combobox_module.search, isArchived && Combobox_module.archivedTextColor, isArchived && Combobox_module.archivedFitContent),
|
|
32
35
|
value: searchText,
|
|
33
36
|
onChange: (e)=>onSearch(e.target.value),
|
|
34
37
|
disabled: disabled,
|
|
@@ -38,19 +41,27 @@ const Combobox = /*#__PURE__*/ forwardRef(({ id, label, required, testId, disabl
|
|
|
38
41
|
...inputProps
|
|
39
42
|
});
|
|
40
43
|
const inputComponentNotEdit = /*#__PURE__*/ jsx(Text.Body, {
|
|
41
|
-
className: cn(Combobox_module.selectedValue, isArchived && !disabled && Combobox_module.archivedTextColor, isArchived &&
|
|
44
|
+
className: cn(Combobox_module.selectedValue, isArchived && !disabled && Combobox_module.archivedTextColor, disabled && Combobox_module.disabledTextColor, isArchived && !isFocus && Combobox_module.archivedFitContent),
|
|
42
45
|
children: searchText
|
|
43
46
|
});
|
|
44
47
|
const renderValueComponent = ()=>{
|
|
48
|
+
const input = searchable ? inputComponent : inputComponentNotEdit;
|
|
49
|
+
if (showArchived) return /*#__PURE__*/ jsx(ArchivedInputValue, {
|
|
50
|
+
input: input,
|
|
51
|
+
isShowIcon: isArchived && !isFocus,
|
|
52
|
+
disabled: disabled,
|
|
53
|
+
inputHintText: inputHintText,
|
|
54
|
+
testId: testId
|
|
55
|
+
});
|
|
45
56
|
if (renderValue) return renderValue({
|
|
46
|
-
input
|
|
57
|
+
input,
|
|
47
58
|
placeholder: placeholderComponent,
|
|
48
59
|
value,
|
|
49
60
|
searchable,
|
|
50
61
|
searchText,
|
|
51
62
|
disabled
|
|
52
63
|
});
|
|
53
|
-
return
|
|
64
|
+
return input;
|
|
54
65
|
};
|
|
55
66
|
return /*#__PURE__*/ jsxs("div", {
|
|
56
67
|
className: cn(Combobox_module.container, fullWidth && Combobox_module.fullWidth),
|
|
@@ -84,7 +95,7 @@ const Combobox = /*#__PURE__*/ forwardRef(({ id, label, required, testId, disabl
|
|
|
84
95
|
},
|
|
85
96
|
style: {
|
|
86
97
|
...style,
|
|
87
|
-
width:
|
|
98
|
+
width: fullWidth ? void 0 : style?.width
|
|
88
99
|
},
|
|
89
100
|
"data-searchable": searchable,
|
|
90
101
|
"data-test-id": testId ? `${testId}-search-container` : '',
|
|
@@ -8,9 +8,10 @@ const Combobox_module = {
|
|
|
8
8
|
innerCombobox: "innerCombobox-ojzOuH",
|
|
9
9
|
placeholder: "placeholder-_WVTl5",
|
|
10
10
|
selectedValue: "selectedValue-oFS_XU",
|
|
11
|
-
archivedDisabledTextColor: "archivedDisabledTextColor-qThU95",
|
|
12
|
-
arrowAction: "arrowAction-lxn4Ah",
|
|
13
11
|
search: "search-_t7sYi",
|
|
14
|
-
|
|
12
|
+
archivedFitContent: "archivedFitContent-IhCvaO",
|
|
13
|
+
arrowAction: "arrowAction-lxn4Ah",
|
|
14
|
+
archivedTextColor: "archivedTextColor-TFgYY_",
|
|
15
|
+
disabledTextColor: "disabledTextColor-TmImIF"
|
|
15
16
|
};
|
|
16
17
|
export default Combobox_module;
|