@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
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createElement } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
|
+
import { ClickableTag, polymorphicClickableRef } from "../_shared/utils/polymorphicClickableTypes.js";
|
|
4
5
|
import { Loader12Icon, Loader20Icon } from "../../icon/index.js";
|
|
5
6
|
import Button_module from "./Button.module.js";
|
|
6
7
|
const ButtonSize = {
|
|
@@ -34,29 +35,37 @@ const getFilledColorClass = (color)=>{
|
|
|
34
35
|
return Button_module.filledGrey;
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
|
-
const Button =
|
|
38
|
+
const Button = polymorphicClickableRef((props, ref)=>{
|
|
39
|
+
const { testId, as: elementProp = ClickableTag.button, type, variant = ButtonVariants.PRIMARY, color, disabled, className: classNameProp, children, size = ButtonSize.L, isLoading = false, onClick, isIconButton = false, stretch = false, withHorisontalPadding = false, noPadding = false, ...rest } = props;
|
|
40
|
+
const element = elementProp;
|
|
38
41
|
const LoaderIcon = LoaderBySizeMap[size];
|
|
39
|
-
const
|
|
42
|
+
const isAnchor = element === ClickableTag.a;
|
|
43
|
+
const className = cn(Button_module.button, Button_module[variant], Button_module[size], variant === ButtonVariants.FILLED && getFilledColorClass(color), variant === ButtonVariants.FRAMELESS && noPadding && Button_module.noPadding, isLoading ? Button_module.isLoading : '', isIconButton && Button_module.iconButton, stretch && Button_module.stretch, classNameProp, withHorisontalPadding && Button_module.withHorisontalPadding);
|
|
40
44
|
const handleClick = (e)=>{
|
|
41
|
-
if (isLoading || disabled)
|
|
45
|
+
if (isLoading || disabled) {
|
|
46
|
+
if (isAnchor) e.preventDefault();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
42
49
|
onClick?.(e);
|
|
43
50
|
};
|
|
44
|
-
|
|
51
|
+
const tagSpecificProps = isAnchor ? {
|
|
52
|
+
href: disabled ? void 0 : rest.href,
|
|
53
|
+
'aria-disabled': disabled || void 0
|
|
54
|
+
} : {
|
|
55
|
+
type: type ?? 'button',
|
|
56
|
+
disabled
|
|
57
|
+
};
|
|
58
|
+
return /*#__PURE__*/ createElement(element, {
|
|
45
59
|
...rest,
|
|
46
|
-
|
|
47
|
-
ref
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
className: Button_module.spinner,
|
|
56
|
-
children: /*#__PURE__*/ jsx(LoaderIcon, {})
|
|
57
|
-
}) : null
|
|
58
|
-
]
|
|
59
|
-
});
|
|
60
|
+
...tagSpecificProps,
|
|
61
|
+
ref,
|
|
62
|
+
'data-test-id': testId,
|
|
63
|
+
className,
|
|
64
|
+
onClick: handleClick
|
|
65
|
+
}, children, isLoading && !disabled ? /*#__PURE__*/ jsx("div", {
|
|
66
|
+
className: Button_module.spinner,
|
|
67
|
+
children: /*#__PURE__*/ jsx(LoaderIcon, {})
|
|
68
|
+
}) : null);
|
|
60
69
|
});
|
|
61
70
|
Button.displayName = 'Button';
|
|
62
71
|
export { Button, ButtonColor, ButtonSize, ButtonVariants };
|
|
@@ -14,6 +14,7 @@ const Button_module = {
|
|
|
14
14
|
additional: "additional-Ftulks",
|
|
15
15
|
frameless: "frameless-gZ67sX",
|
|
16
16
|
withHorisontalPadding: "withHorisontalPadding-DDBSv8",
|
|
17
|
+
noPadding: "noPadding-Ja7zyG",
|
|
17
18
|
secondary: "secondary-bjc5zI",
|
|
18
19
|
filled: "filled-WTubUm",
|
|
19
20
|
filledGrey: "filledGrey-cyhUUI",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
--cb-button-active-background: var(--cb-button-background);
|
|
11
11
|
--cb-button-disabled-background: var(--button-primary-disabled, #d3d8ddb3);
|
|
12
12
|
background: var(--cb-button-background);
|
|
13
|
+
width: fit-content;
|
|
13
14
|
color: var(--cb-button-color);
|
|
14
15
|
border: none;
|
|
15
16
|
align-items: center;
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
font-family: ALS Hauss, sans-serif;
|
|
18
19
|
font-size: 14px;
|
|
19
20
|
line-height: 20px;
|
|
21
|
+
text-decoration: none;
|
|
20
22
|
display: flex;
|
|
21
23
|
position: relative;
|
|
22
24
|
}
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
color: var(--cb-button-active-color);
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
.button-UGhzQm:disabled {
|
|
41
|
+
.button-UGhzQm:disabled, .button-UGhzQm[aria-disabled="true"] {
|
|
40
42
|
cursor: initial;
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
color: #0000;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
|
-
.isLoading-IoL_rp:hover:not(:disabled) > :not(.spinner-MFPKSD), .isLoading-IoL_rp:not(:disabled) > :not(.spinner-MFPKSD) {
|
|
68
|
+
.isLoading-IoL_rp:hover:not(:disabled, [aria-disabled="true"]) > :not(.spinner-MFPKSD), .isLoading-IoL_rp:not(:disabled, [aria-disabled="true"]) > :not(.spinner-MFPKSD) {
|
|
67
69
|
opacity: 0;
|
|
68
70
|
}
|
|
69
71
|
|
|
@@ -115,12 +117,12 @@
|
|
|
115
117
|
outline: none;
|
|
116
118
|
}
|
|
117
119
|
|
|
118
|
-
.primary-gpQ7Mi:disabled {
|
|
120
|
+
.primary-gpQ7Mi:disabled, .primary-gpQ7Mi[aria-disabled="true"] {
|
|
119
121
|
background: var(--cb-button-disabled-background, #f5f5f5);
|
|
120
122
|
color: var(--text-tertiary, #9fa7af);
|
|
121
123
|
}
|
|
122
124
|
|
|
123
|
-
.primary-gpQ7Mi:disabled svg path {
|
|
125
|
+
.primary-gpQ7Mi:disabled svg path, .primary-gpQ7Mi[aria-disabled="true"] svg path {
|
|
124
126
|
stroke: var(--elements-inactive, #9fa7af);
|
|
125
127
|
}
|
|
126
128
|
|
|
@@ -139,12 +141,12 @@
|
|
|
139
141
|
outline: none;
|
|
140
142
|
}
|
|
141
143
|
|
|
142
|
-
.accent-eZImES:disabled {
|
|
144
|
+
.accent-eZImES:disabled, .accent-eZImES[aria-disabled="true"] {
|
|
143
145
|
background: var(--cb-button-disabled-background, #f5f5f5);
|
|
144
146
|
color: var(--text-tertiary, #9fa7af);
|
|
145
147
|
}
|
|
146
148
|
|
|
147
|
-
.accent-eZImES:disabled svg path {
|
|
149
|
+
.accent-eZImES:disabled svg path, .accent-eZImES[aria-disabled="true"] svg path {
|
|
148
150
|
stroke: var(--elements-inactive, #9fa7af);
|
|
149
151
|
}
|
|
150
152
|
|
|
@@ -181,14 +183,14 @@
|
|
|
181
183
|
outline: 1px solid var(--cb-button-active-color);
|
|
182
184
|
}
|
|
183
185
|
|
|
184
|
-
.additional-Ftulks:disabled {
|
|
186
|
+
.additional-Ftulks:disabled, .additional-Ftulks[aria-disabled="true"] {
|
|
185
187
|
outline: 1px solid var(--border-normal, #d1d6df);
|
|
186
188
|
outline-offset: -1px;
|
|
187
189
|
background: var(--button-secondary-normal, #fff);
|
|
188
190
|
color: var(--text-tertiary, #9fa7af);
|
|
189
191
|
}
|
|
190
192
|
|
|
191
|
-
.additional-Ftulks:disabled svg path {
|
|
193
|
+
.additional-Ftulks:disabled svg path, .additional-Ftulks[aria-disabled="true"] svg path {
|
|
192
194
|
stroke: var(--elements-inactive, #9fa7af);
|
|
193
195
|
}
|
|
194
196
|
|
|
@@ -222,11 +224,11 @@
|
|
|
222
224
|
outline: 0;
|
|
223
225
|
}
|
|
224
226
|
|
|
225
|
-
.frameless-gZ67sX:disabled {
|
|
227
|
+
.frameless-gZ67sX:disabled, .frameless-gZ67sX[aria-disabled="true"] {
|
|
226
228
|
color: var(--text-tertiary, #9fa7af);
|
|
227
229
|
}
|
|
228
230
|
|
|
229
|
-
.frameless-gZ67sX:disabled svg path {
|
|
231
|
+
.frameless-gZ67sX:disabled svg path, .frameless-gZ67sX[aria-disabled="true"] svg path {
|
|
230
232
|
stroke: var(--elements-inactive, #9fa7af);
|
|
231
233
|
}
|
|
232
234
|
|
|
@@ -235,6 +237,10 @@
|
|
|
235
237
|
padding-right: 12px;
|
|
236
238
|
}
|
|
237
239
|
|
|
240
|
+
.noPadding-Ja7zyG {
|
|
241
|
+
padding: 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
238
244
|
.secondary-bjc5zI {
|
|
239
245
|
--cb-button-color: var(--text-primary, #091739);
|
|
240
246
|
--cb-button-background: var(--button-secondary-normal, #fff);
|
|
@@ -269,12 +275,12 @@
|
|
|
269
275
|
box-shadow: 0 0 4px 0 var(--product-blue-400, #7eb4ff);
|
|
270
276
|
}
|
|
271
277
|
|
|
272
|
-
.secondary-bjc5zI:disabled {
|
|
278
|
+
.secondary-bjc5zI:disabled, .secondary-bjc5zI[aria-disabled="true"] {
|
|
273
279
|
background: var(--cb-button-disabled-background, #f5f5f5);
|
|
274
280
|
color: var(--text-tertiary, #9fa7af);
|
|
275
281
|
}
|
|
276
282
|
|
|
277
|
-
.secondary-bjc5zI:disabled svg path {
|
|
283
|
+
.secondary-bjc5zI:disabled svg path, .secondary-bjc5zI[aria-disabled="true"] svg path {
|
|
278
284
|
stroke: var(--elements-inactive, #9fa7af);
|
|
279
285
|
}
|
|
280
286
|
|
|
@@ -310,12 +316,12 @@
|
|
|
310
316
|
box-shadow: 0 0 4px 0 var(--product-blue-400, #7eb4ff);
|
|
311
317
|
}
|
|
312
318
|
|
|
313
|
-
.filled-WTubUm:disabled {
|
|
319
|
+
.filled-WTubUm:disabled, .filled-WTubUm[aria-disabled="true"] {
|
|
314
320
|
background: var(--cb-button-disabled-background, #f5f5f5);
|
|
315
321
|
color: var(--elements-disable, #d1d6df);
|
|
316
322
|
}
|
|
317
323
|
|
|
318
|
-
.filled-WTubUm:disabled svg path {
|
|
324
|
+
.filled-WTubUm:disabled svg path, .filled-WTubUm[aria-disabled="true"] svg path {
|
|
319
325
|
stroke: var(--elements-disable, #d1d6df);
|
|
320
326
|
}
|
|
321
327
|
|
|
@@ -22,15 +22,16 @@ const Carousel = ({ isVisible, sources, onClose, startIndex = 0, testId, portalE
|
|
|
22
22
|
startIndex
|
|
23
23
|
]);
|
|
24
24
|
const sourcesLength = sources.length;
|
|
25
|
-
const withToolbar = sourcesLength > 1;
|
|
26
25
|
const handleClickPrev = ()=>setCurrentIndex((index)=>0 === index ? sourcesLength - 1 : index - 1);
|
|
27
26
|
const handleClickNext = ()=>setCurrentIndex((index)=>(index + 1) % sourcesLength);
|
|
28
27
|
const handleClose = ()=>{
|
|
29
28
|
onClose();
|
|
30
29
|
};
|
|
30
|
+
const isToolbarVisible = sourcesLength > 1;
|
|
31
|
+
const isArrowNavigationEnabled = isVisible && isToolbarVisible;
|
|
31
32
|
useKeyDownListener('Escape', handleClose, isVisible);
|
|
32
|
-
useKeyDownListener('ArrowLeft', handleClickPrev,
|
|
33
|
-
useKeyDownListener('ArrowRight', handleClickNext,
|
|
33
|
+
useKeyDownListener('ArrowLeft', handleClickPrev, isArrowNavigationEnabled);
|
|
34
|
+
useKeyDownListener('ArrowRight', handleClickNext, isArrowNavigationEnabled);
|
|
34
35
|
useTabNavigation(ref, isVisible);
|
|
35
36
|
if (!isVisible || 0 === sourcesLength) return null;
|
|
36
37
|
const label = toolbarLabel ? toolbarLabel(currentIndex, sources.length) : `${currentIndex + 1} из ${sources.length}`;
|
|
@@ -75,7 +76,7 @@ const Carousel = ({ isVisible, sources, onClose, startIndex = 0, testId, portalE
|
|
|
75
76
|
]
|
|
76
77
|
})
|
|
77
78
|
}),
|
|
78
|
-
|
|
79
|
+
isToolbarVisible && /*#__PURE__*/ jsx(Toolbar, {
|
|
79
80
|
label: label,
|
|
80
81
|
onPrevClick: handleClickPrev,
|
|
81
82
|
onNextClick: handleClickNext,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { CheckboxProps } from './Checkbox.types';
|
|
2
|
-
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "
|
|
2
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "children" | "onChange" | "onClick" | "type"> & import("../Indicator/Indicator.types").IndicatorProps & import("../..").IHasTestId & import("../..").IHasTabIndex & {
|
|
3
3
|
className?: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
children?: import("react").ReactNode;
|
|
@@ -2,9 +2,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
4
|
import { getTestId } 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 { useControlledState } from "../../hooks/useControlledState/index.js";
|
|
9
9
|
import { useId } from "../../hooks/useId/index.js";
|
|
10
10
|
import { CheckboxContent } from "./components/CheckboxContent.js";
|
|
@@ -157,10 +157,10 @@ const resolveProps = (props)=>{
|
|
|
157
157
|
legacy
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
const { variant = 'regular', size = 'regular', disabled = false, label, leadingIcon, onPress, selected, onSelectedChange, trailingIcon, trailingIconBehavior, onTrailingIconClick, trailingIconHint, indicatorMode, count, novelty, clearable, onClear, clearIconHint, constrainWidth, maxWidthPx, hintZIndex } = props;
|
|
160
|
+
const { variant = 'regular', size = 'regular', disabled = false, label, labelColorToken, className, leadingIcon, tabIndex, onPress, selected, onSelectedChange, trailingIcon, trailingIconBehavior, onTrailingIconClick, trailingIconHint, indicatorMode, count, novelty, clearable, onClear, clearIconHint, constrainWidth, maxWidthPx, hintZIndex } = props;
|
|
161
161
|
const clickHandler = (e)=>{
|
|
162
162
|
onPress?.(e);
|
|
163
|
-
onSelectedChange(!selected);
|
|
163
|
+
onSelectedChange?.(!selected);
|
|
164
164
|
};
|
|
165
165
|
const indicators = resolveIndicators({
|
|
166
166
|
size,
|
|
@@ -193,7 +193,10 @@ const resolveProps = (props)=>{
|
|
|
193
193
|
disabled,
|
|
194
194
|
selected,
|
|
195
195
|
label,
|
|
196
|
+
labelColorToken,
|
|
197
|
+
className,
|
|
196
198
|
leadingIcon,
|
|
199
|
+
tabIndex,
|
|
197
200
|
trailing,
|
|
198
201
|
indicators,
|
|
199
202
|
clear,
|
|
@@ -128,7 +128,7 @@ const Chip = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
128
128
|
]
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
const { variant, size, disabled, selected, clickHandler, label, leadingIcon, trailing, indicators, clear, textBehavior, hintZIndex } = resolved;
|
|
131
|
+
const { variant, size, disabled, selected, clickHandler, label, labelColorToken, className, leadingIcon, tabIndex, trailing, indicators, clear, textBehavior, hintZIndex } = resolved;
|
|
132
132
|
const isCompact = 'compact' === size;
|
|
133
133
|
const isTrailingButton = 'button' === trailing.mode;
|
|
134
134
|
const isClearButton = 'button' === clear.mode;
|
|
@@ -163,7 +163,8 @@ const Chip = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
163
163
|
disabled,
|
|
164
164
|
hasLeading,
|
|
165
165
|
hasTrailing,
|
|
166
|
-
constrainWidth: textBehavior.constrainWidth
|
|
166
|
+
constrainWidth: textBehavior.constrainWidth,
|
|
167
|
+
className
|
|
167
168
|
});
|
|
168
169
|
const wrapperStyle = getConstrainedStyle(textBehavior);
|
|
169
170
|
const mainButtonClassName = isTrailingButton ? Chip_module.chipButton : cn(Chip_module.chipButton, leadingIcon && Chip_module.hasLeading);
|
|
@@ -179,10 +180,12 @@ const Chip = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
179
180
|
onClick: clickHandler,
|
|
180
181
|
className: mainButtonClassName,
|
|
181
182
|
disabled: disabled,
|
|
183
|
+
tabIndex: tabIndex,
|
|
182
184
|
children: [
|
|
183
185
|
leadingIconNode,
|
|
184
186
|
/*#__PURE__*/ jsx(ChipLabel, {
|
|
185
187
|
label: label,
|
|
188
|
+
colorToken: labelColorToken,
|
|
186
189
|
isCompact: isCompact,
|
|
187
190
|
textBehavior: textBehavior,
|
|
188
191
|
hintZIndex: hintZIndex
|
|
@@ -220,7 +223,8 @@ const Chip = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
220
223
|
isCompact,
|
|
221
224
|
hasLeading,
|
|
222
225
|
hasTrailing,
|
|
223
|
-
constrainWidth: textBehavior.constrainWidth
|
|
226
|
+
constrainWidth: textBehavior.constrainWidth,
|
|
227
|
+
className
|
|
224
228
|
});
|
|
225
229
|
const rootStyle = getConstrainedStyle(textBehavior);
|
|
226
230
|
return /*#__PURE__*/ jsxs(ChipRoot, {
|
|
@@ -231,10 +235,12 @@ const Chip = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
231
235
|
disabled: disabled,
|
|
232
236
|
onClick: clickHandler,
|
|
233
237
|
buttonRef: ref,
|
|
238
|
+
tabIndex: tabIndex,
|
|
234
239
|
children: [
|
|
235
240
|
leadingIconNode,
|
|
236
241
|
/*#__PURE__*/ jsx(ChipLabel, {
|
|
237
242
|
label: label,
|
|
243
|
+
colorToken: labelColorToken,
|
|
238
244
|
isCompact: isCompact,
|
|
239
245
|
textBehavior: textBehavior,
|
|
240
246
|
hintZIndex: hintZIndex
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.chip-sfyie1:focus-visible {
|
|
20
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
20
|
+
box-shadow: inset 0 0 0 1px var(--border-focused, #091739);
|
|
21
21
|
background-color: var(--elements-chips-normal, #f1f4f9);
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.active-uGgP1c:focus-visible {
|
|
50
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
50
|
+
box-shadow: inset 0 0 0 1px var(--border-focused, #091739);
|
|
51
51
|
background-color: var(--elements-chips-normal-current, #dff0fe);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes, HTMLAttributes, MouseEvent, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import type { IHasTestId, ValueOf } from '../../common/types';
|
|
2
|
+
import type { IHasTabIndex, IHasTestId, ValueOf } from '../../common/types';
|
|
3
|
+
import type { TextColorToken } from '../Text/Text';
|
|
3
4
|
/**
|
|
4
5
|
* Этот тип сейчас необходим для поддержки legacy-поведения.
|
|
5
6
|
* Все они уже фактически используются.
|
|
@@ -73,10 +74,12 @@ type ChipAppearanceProps = {
|
|
|
73
74
|
};
|
|
74
75
|
type ChipNewSelectionProps = {
|
|
75
76
|
selected: boolean;
|
|
76
|
-
onSelectedChange
|
|
77
|
+
onSelectedChange?: (nextSelected: boolean) => void;
|
|
77
78
|
};
|
|
78
|
-
type ChipNewContentProps = {
|
|
79
|
+
type ChipNewContentProps = IHasTabIndex & {
|
|
79
80
|
label: string;
|
|
81
|
+
labelColorToken?: TextColorToken;
|
|
82
|
+
className?: string;
|
|
80
83
|
leadingIcon?: ReactNode;
|
|
81
84
|
};
|
|
82
85
|
type ChipClearProps = {
|
|
@@ -169,6 +172,7 @@ export interface ChipLegacyProps extends ChipButtonLegacyCompatProps {
|
|
|
169
172
|
onSelectedChange?: never;
|
|
170
173
|
onPress?: never;
|
|
171
174
|
label?: never;
|
|
175
|
+
labelColorToken?: never;
|
|
172
176
|
leadingIcon?: never;
|
|
173
177
|
trailingIcon?: never;
|
|
174
178
|
trailingIconBehavior?: never;
|
|
@@ -259,9 +263,11 @@ export type ChipTextBehaviorResolved = {
|
|
|
259
263
|
export type Resolved = (ResolvedBase & {
|
|
260
264
|
mode: 'legacy';
|
|
261
265
|
legacy: LegacyResolved;
|
|
262
|
-
}) | (ResolvedBase & {
|
|
266
|
+
}) | (ResolvedBase & IHasTabIndex & {
|
|
263
267
|
mode: 'new';
|
|
264
268
|
label: string;
|
|
269
|
+
labelColorToken?: TextColorToken;
|
|
270
|
+
className?: string;
|
|
265
271
|
leadingIcon?: ReactNode;
|
|
266
272
|
trailing: ResolvedTrailing;
|
|
267
273
|
indicators: ResolvedIndicators;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.chip-m4AltR:focus-visible {
|
|
15
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
15
|
+
box-shadow: inset 0 0 0 1px var(--border-focused, #091739);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.chip-m4AltR:disabled {
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.wrapper-BRrIHY:has(.chipButton-_9Yan_:focus-visible) {
|
|
129
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
129
|
+
box-shadow: inset 0 0 0 1px var(--border-focused, #091739);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.chipButton-_9Yan_ {
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.chipButton-_9Yan_:focus-visible {
|
|
146
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
146
|
+
box-shadow: inset 0 0 0 1px var(--border-focused, #091739);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.trailingButton-D8uCaI {
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.trailingButton-D8uCaI:focus-visible {
|
|
166
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
166
|
+
box-shadow: inset 0 0 0 1px var(--border-focused, #091739);
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.clearButton-fN81yO {
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
.clearButton-fN81yO:focus-visible {
|
|
186
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
186
|
+
box-shadow: inset 0 0 0 1px var(--border-focused, #091739);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.rightActions-f8Q4y9 {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { type TextColorToken } from '../../Text/Text';
|
|
1
2
|
import type { ChipTextBehaviorResolved } from '../Chip.types';
|
|
2
3
|
type ChipLabelProps = {
|
|
3
4
|
label: string;
|
|
5
|
+
colorToken?: TextColorToken;
|
|
4
6
|
isCompact: boolean;
|
|
5
7
|
textBehavior: ChipTextBehaviorResolved;
|
|
6
8
|
hintZIndex?: number;
|
|
7
9
|
};
|
|
8
|
-
export declare const ChipLabel: ({ label, isCompact, textBehavior, hintZIndex, }: ChipLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ChipLabel: ({ label, colorToken, isCompact, textBehavior, hintZIndex, }: ChipLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -4,19 +4,21 @@ import { cn } from "../../../common/index.js";
|
|
|
4
4
|
import { Hint } from "../../Hint/Hint.js";
|
|
5
5
|
import { Text, TextColor, TextVariant } from "../../Text/Text.js";
|
|
6
6
|
import Chip_module from "../Chip.module.js";
|
|
7
|
-
const ChipLabel = ({ label, isCompact, textBehavior, hintZIndex })=>{
|
|
7
|
+
const ChipLabel = ({ label, colorToken, isCompact, textBehavior, hintZIndex })=>{
|
|
8
8
|
const labelParagraphRef = useRef(null);
|
|
9
9
|
const [isTruncated, setIsTruncated] = useState(false);
|
|
10
|
+
const maxWidthPx = textBehavior.constrainWidth ? textBehavior.maxWidthPx : void 0;
|
|
10
11
|
useLayoutEffect(()=>{
|
|
11
12
|
if (!labelParagraphRef.current) return void setIsTruncated(false);
|
|
12
13
|
setIsTruncated(labelParagraphRef.current.scrollWidth > labelParagraphRef.current.clientWidth);
|
|
13
14
|
}, [
|
|
14
15
|
label,
|
|
15
|
-
|
|
16
|
+
maxWidthPx
|
|
16
17
|
]);
|
|
17
18
|
const text = /*#__PURE__*/ jsx(Text, {
|
|
18
19
|
variant: isCompact ? TextVariant.caption : TextVariant.body,
|
|
19
20
|
ref: labelParagraphRef,
|
|
21
|
+
colorToken: colorToken,
|
|
20
22
|
className: cn(Chip_module.label, Chip_module.ellipsis),
|
|
21
23
|
children: label
|
|
22
24
|
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { type CSSProperties, type MouseEvent, type ReactNode } from 'react';
|
|
2
|
-
type
|
|
2
|
+
import type { IHasTabIndex } from '../../../common/types';
|
|
3
|
+
export declare const ChipMainButton: import("react").ForwardRefExoticComponent<IHasTabIndex & {
|
|
3
4
|
testId?: string;
|
|
4
5
|
className?: string;
|
|
5
6
|
disabled: boolean;
|
|
6
7
|
onClick: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
7
8
|
style?: CSSProperties;
|
|
8
9
|
children: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare const ChipMainButton: import("react").ForwardRefExoticComponent<ChipMainButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
-
export {};
|
|
10
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
const ChipMainButton = /*#__PURE__*/ forwardRef(({ testId, className, disabled, onClick, style, children }, ref)=>/*#__PURE__*/ jsx("button", {
|
|
3
|
+
const ChipMainButton = /*#__PURE__*/ forwardRef(({ testId, className, disabled, onClick, style, tabIndex, children }, ref)=>/*#__PURE__*/ jsx("button", {
|
|
4
4
|
"data-test-id": testId,
|
|
5
5
|
ref: ref,
|
|
6
6
|
onClick: onClick,
|
|
7
7
|
className: className,
|
|
8
8
|
disabled: disabled,
|
|
9
9
|
style: style,
|
|
10
|
+
tabIndex: tabIndex,
|
|
10
11
|
type: "button",
|
|
11
12
|
children: children
|
|
12
13
|
}));
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { CSSProperties, ForwardedRef, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import type { IHasTabIndex } from '../../../common/types';
|
|
2
3
|
type ChipRootProps = {
|
|
3
4
|
mode: 'group';
|
|
4
5
|
testId?: string;
|
|
5
6
|
className?: string;
|
|
6
7
|
style?: CSSProperties;
|
|
7
8
|
children: ReactNode;
|
|
8
|
-
} | {
|
|
9
|
+
} | (IHasTabIndex & {
|
|
9
10
|
mode: 'single';
|
|
10
11
|
testId?: string;
|
|
11
12
|
className?: string;
|
|
@@ -14,6 +15,6 @@ type ChipRootProps = {
|
|
|
14
15
|
onClick: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
15
16
|
buttonRef?: ForwardedRef<HTMLButtonElement>;
|
|
16
17
|
children: ReactNode;
|
|
17
|
-
};
|
|
18
|
+
});
|
|
18
19
|
export declare const ChipRoot: (props: ChipRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export {};
|
|
@@ -11,7 +11,7 @@ const ChipRoot = (props)=>{
|
|
|
11
11
|
children: children
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
const { testId, className, style, disabled, onClick, buttonRef, children } = props;
|
|
14
|
+
const { testId, className, style, disabled, onClick, buttonRef, tabIndex, children } = props;
|
|
15
15
|
return /*#__PURE__*/ jsx(ChipMainButton, {
|
|
16
16
|
testId: testId,
|
|
17
17
|
ref: buttonRef,
|
|
@@ -19,6 +19,7 @@ const ChipRoot = (props)=>{
|
|
|
19
19
|
className: className,
|
|
20
20
|
disabled: disabled,
|
|
21
21
|
style: style,
|
|
22
|
+
tabIndex: tabIndex,
|
|
22
23
|
children: children
|
|
23
24
|
});
|
|
24
25
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.arrowButton-jxtNrM {
|
|
2
|
+
background: none;
|
|
3
|
+
border: none;
|
|
4
|
+
border-radius: 4px;
|
|
5
|
+
outline: none;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
width: 20px;
|
|
9
|
+
height: 20px;
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.arrowButton-jxtNrM:focus-visible:not(.disabled-xcLgOR) {
|
|
16
|
+
outline: 1px solid var(--border-focused, #091739);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.arrowButton-jxtNrM.disabled-xcLgOR svg path {
|
|
20
|
+
stroke: var(--elements-disable, #d1d6df);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.arrowButton-jxtNrM:not(.disabled-xcLgOR) {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { KeyboardEvent, PropsWithChildren } from 'react';
|
|
2
|
+
interface ArrowButtonProps extends PropsWithChildren {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
onPressTab?: (event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ArrowButton: (props: ArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../common/css/index.js";
|
|
3
|
+
import { KEYBOARD_ACTIVATION_KEYS } from "../consts.js";
|
|
4
|
+
import ArrowButton_module from "./ArrowButton.module.js";
|
|
5
|
+
const ArrowButton = (props)=>{
|
|
6
|
+
const handleKeyDown = (event)=>{
|
|
7
|
+
event.stopPropagation();
|
|
8
|
+
if ('Tab' === event.key) return void props.onPressTab?.(event);
|
|
9
|
+
if (KEYBOARD_ACTIVATION_KEYS.includes(event.key)) props.onClick?.();
|
|
10
|
+
};
|
|
11
|
+
return /*#__PURE__*/ jsx("button", {
|
|
12
|
+
type: "button",
|
|
13
|
+
className: cn(ArrowButton_module.arrowButton, props.disabled && ArrowButton_module.disabled),
|
|
14
|
+
disabled: props.disabled,
|
|
15
|
+
onMouseDown: (event)=>{
|
|
16
|
+
event.stopPropagation();
|
|
17
|
+
props.onClick?.();
|
|
18
|
+
},
|
|
19
|
+
onKeyDown: handleKeyDown,
|
|
20
|
+
children: props.children
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export { ArrowButton };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import type { VirtuosoHandle } from 'react-virtuoso';
|
|
3
|
+
import type { DateRangeValue } from '../types';
|
|
4
|
+
interface CalendarProps {
|
|
5
|
+
virtuosoRef?: RefObject<VirtuosoHandle>;
|
|
6
|
+
minDate: Date;
|
|
7
|
+
maxDate: Date;
|
|
8
|
+
value: DateRangeValue;
|
|
9
|
+
onSelectDate?: (date: Date) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Calendar: (props: CalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { CalendarVariant } from "../consts.js";
|
|
3
|
+
import { MonthList } from "../MonthList/index.js";
|
|
4
|
+
import { YearsList } from "../YearsList/index.js";
|
|
5
|
+
const Calendar = (props)=>{
|
|
6
|
+
const showYearsCalendar = props.value.type === CalendarVariant.month;
|
|
7
|
+
if (showYearsCalendar) return /*#__PURE__*/ jsx(YearsList, {
|
|
8
|
+
virtuosoRef: props.virtuosoRef,
|
|
9
|
+
minDate: props.minDate,
|
|
10
|
+
maxDate: props.maxDate,
|
|
11
|
+
value: props.value,
|
|
12
|
+
onSelectDate: props.onSelectDate
|
|
13
|
+
});
|
|
14
|
+
return /*#__PURE__*/ jsx(MonthList, {
|
|
15
|
+
virtuosoRef: props.virtuosoRef,
|
|
16
|
+
minDate: props.minDate,
|
|
17
|
+
maxDate: props.maxDate,
|
|
18
|
+
onSelectDate: props.onSelectDate,
|
|
19
|
+
value: props.value
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export { Calendar };
|