@moysklad/uikit 28.1.0 → 31.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/dist/colorVariables.css +33 -1
- package/dist/components/AutoComplete/AutoComplete.d.ts +4 -2
- package/dist/components/AutoComplete/AutoComplete.js +47 -33
- package/dist/components/Badge/Badge.js +2 -3
- package/dist/components/Badge/Badge_module.css +2 -3
- package/dist/components/BentoBlock/BentoBlock.d.ts +15 -0
- package/dist/components/BentoBlock/BentoBlock.js +20 -0
- package/dist/components/BentoBlock/BentoBlock.module.js +9 -0
- package/dist/components/BentoBlock/BentoBlock_module.css +50 -0
- package/dist/components/BentoBlock/consts.d.ts +14 -0
- package/dist/components/BentoBlock/consts.js +15 -0
- package/dist/components/BottomSheet/BottomSheet.js +2 -2
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +5 -3
- package/dist/components/Breadcrumbs/BreadcrumbItem.js +39 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +4 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +10 -6
- package/dist/components/Button/Button.d.ts +6 -2
- package/dist/components/Button/Button.js +29 -20
- package/dist/components/Button/Button.module.js +1 -0
- package/dist/components/Button/Button_module.css +20 -14
- package/dist/components/Carousel/Carousel.js +5 -4
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Chip/Chip.helpers.js +5 -2
- package/dist/components/Chip/Chip.js +9 -3
- package/dist/components/Chip/Chip.legacy_module.css +2 -2
- package/dist/components/Chip/Chip.types.d.ts +10 -4
- package/dist/components/Chip/Chip_module.css +5 -5
- package/dist/components/Chip/components/ChipLabel.d.ts +3 -1
- package/dist/components/Chip/components/ChipLabel.js +4 -2
- package/dist/components/Chip/components/ChipMainButton.d.ts +3 -4
- package/dist/components/Chip/components/ChipMainButton.js +2 -1
- package/dist/components/Chip/components/ChipRoot.d.ts +3 -2
- package/dist/components/Chip/components/ChipRoot.js +2 -1
- package/dist/components/DateRange/ArrowButton/ArrowButton.module.js +6 -0
- package/dist/components/DateRange/ArrowButton/ArrowButton_module.css +26 -0
- package/dist/components/DateRange/ArrowButton/index.d.ts +8 -0
- package/dist/components/DateRange/ArrowButton/index.js +23 -0
- package/dist/components/DateRange/Calendar/index.d.ts +12 -0
- package/dist/components/DateRange/Calendar/index.js +22 -0
- package/dist/components/DateRange/DateRange.d.ts +6 -0
- package/dist/components/DateRange/DateRange.js +51 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.d.ts +44 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.js +128 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.module.js +19 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger_module.css +170 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger.module.js +12 -0
- package/dist/components/DateRange/DateRangeDefaultTrigger_module.css +43 -0
- package/dist/components/DateRange/DateRangeInput/DateRangeInput.d.ts +4 -0
- package/dist/components/DateRange/DateRangeInput/DateRangeInput.js +69 -0
- package/dist/components/DateRange/Day/Day.module.js +16 -0
- package/dist/components/DateRange/Day/Day_module.css +80 -0
- package/dist/components/DateRange/Day/index.d.ts +12 -0
- package/dist/components/DateRange/Day/index.js +39 -0
- package/dist/components/DateRange/DropdownContent/DropdownContent.module.js +10 -0
- package/dist/components/DateRange/DropdownContent/DropdownContent_module.css +34 -0
- package/dist/components/DateRange/DropdownContent/index.d.ts +24 -0
- package/dist/components/DateRange/DropdownContent/index.js +132 -0
- package/dist/components/DateRange/InputContent/InputContent.module.js +9 -0
- package/dist/components/DateRange/InputContent/InputContent_module.css +31 -0
- package/dist/components/DateRange/InputContent/index.d.ts +12 -0
- package/dist/components/DateRange/InputContent/index.js +59 -0
- package/dist/components/DateRange/Month/Month.module.js +7 -0
- package/dist/components/DateRange/Month/Month_module.css +17 -0
- package/dist/components/DateRange/Month/index.d.ts +15 -0
- package/dist/components/DateRange/Month/index.js +158 -0
- package/dist/components/DateRange/Month/utils.d.ts +2 -0
- package/dist/components/DateRange/Month/utils.js +8 -0
- package/dist/components/DateRange/MonthHeader/MonthHeader.module.js +5 -0
- package/dist/components/DateRange/MonthHeader/MonthHeader_module.css +10 -0
- package/dist/components/DateRange/MonthHeader/index.d.ts +5 -0
- package/dist/components/DateRange/MonthHeader/index.js +26 -0
- package/dist/components/DateRange/MonthList/MonthList.module.js +7 -0
- package/dist/components/DateRange/MonthList/MonthList_module.css +25 -0
- package/dist/components/DateRange/MonthList/index.d.ts +11 -0
- package/dist/components/DateRange/MonthList/index.js +91 -0
- package/dist/components/DateRange/PeriodVariantList/PeriodVariantList.module.js +9 -0
- package/dist/components/DateRange/PeriodVariantList/PeriodVariantList_module.css +18 -0
- package/dist/components/DateRange/PeriodVariantList/index.d.ts +18 -0
- package/dist/components/DateRange/PeriodVariantList/index.js +83 -0
- package/dist/components/DateRange/SideMenu/SideMenu.module.js +6 -0
- package/dist/components/DateRange/SideMenu/SideMenu_module.css +18 -0
- package/dist/components/DateRange/SideMenu/index.d.ts +13 -0
- package/dist/components/DateRange/SideMenu/index.js +73 -0
- package/dist/components/DateRange/TooltipedText/index.d.ts +8 -0
- package/dist/components/DateRange/TooltipedText/index.js +30 -0
- package/dist/components/DateRange/Year/Year.module.js +11 -0
- package/dist/components/DateRange/Year/Year_module.css +60 -0
- package/dist/components/DateRange/Year/index.d.ts +8 -0
- package/dist/components/DateRange/Year/index.js +47 -0
- package/dist/components/DateRange/YearsList/YearsList.module.js +5 -0
- package/dist/components/DateRange/YearsList/YearsList_module.css +15 -0
- package/dist/components/DateRange/YearsList/index.d.ts +12 -0
- package/dist/components/DateRange/YearsList/index.js +47 -0
- package/dist/components/DateRange/consts.d.ts +20 -0
- package/dist/components/DateRange/consts.js +81 -0
- package/dist/components/DateRange/formatDateRangeValue.d.ts +24 -0
- package/dist/components/DateRange/formatDateRangeValue.js +116 -0
- package/dist/components/DateRange/hooks/useCalendar.d.ts +13 -0
- package/dist/components/DateRange/hooks/useCalendar.js +88 -0
- package/dist/components/DateRange/hooks/useDateRange.d.ts +392 -0
- package/dist/components/DateRange/hooks/useDateRange.js +36 -0
- package/dist/components/DateRange/hooks/useDateRangeDropdown.d.ts +47 -0
- package/dist/components/DateRange/hooks/useDateRangeDropdown.js +117 -0
- package/dist/components/DateRange/hooks/useDateRangeValue.d.ts +56 -0
- package/dist/components/DateRange/hooks/useDateRangeValue.js +173 -0
- package/dist/components/DateRange/hooks/useMaskInput.d.ts +18 -0
- package/dist/components/DateRange/hooks/useMaskInput.js +169 -0
- package/dist/components/DateRange/hooks/useMonthList.d.ts +12 -0
- package/dist/components/DateRange/hooks/useMonthList.js +80 -0
- package/dist/components/DateRange/hooks/useSideMenu.d.ts +14 -0
- package/dist/components/DateRange/hooks/useSideMenu.js +113 -0
- package/dist/components/DateRange/index.d.ts +1 -0
- package/dist/components/DateRange/index.js +1 -0
- package/dist/components/DateRange/locale/en-US.d.ts +2 -0
- package/dist/components/DateRange/locale/en-US.js +82 -0
- package/dist/components/DateRange/locale/index.d.ts +4 -0
- package/dist/components/DateRange/locale/index.js +3 -0
- package/dist/components/DateRange/locale/ru-RU.d.ts +2 -0
- package/dist/components/DateRange/locale/ru-RU.js +82 -0
- package/dist/components/DateRange/locale/types.d.ts +9 -0
- package/dist/components/DateRange/locale/types.js +7 -0
- package/dist/components/DateRange/locale/useLocale.d.ts +8 -0
- package/dist/components/DateRange/locale/useLocale.js +31 -0
- package/dist/components/DateRange/props.d.ts +39 -0
- package/dist/components/DateRange/props.js +0 -0
- package/dist/components/DateRange/types.d.ts +126 -0
- package/dist/components/DateRange/types.js +13 -0
- package/dist/components/DateRange/utils.d.ts +33 -0
- package/dist/components/DateRange/utils.js +105 -0
- package/dist/components/Datepicker/Datepicker.d.ts +3 -1
- package/dist/components/Datepicker/Datepicker.js +4 -2
- package/dist/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.js +7 -4
- package/dist/components/Dropdown/hooks/usePosition.d.ts +2 -1
- package/dist/components/Dropdown/hooks/usePosition.js +3 -3
- package/dist/components/EditableDate/DropdownContent/DropdownContent.d.ts +9 -0
- package/dist/components/EditableDate/DropdownContent/DropdownContent.js +36 -0
- package/dist/components/EditableDate/EditableDate.d.ts +9 -0
- package/dist/components/EditableDate/EditableDate.js +142 -0
- package/dist/components/EditableDate/EditableDate.module.js +7 -0
- package/dist/components/EditableDate/EditableDate_module.css +32 -0
- package/dist/components/EditableTitle/EditableTitle.d.ts +7 -2
- package/dist/components/EditableTitle/EditableTitle.js +64 -32
- package/dist/components/EditableTitle/EditableTitle.module.js +1 -0
- package/dist/components/EditableTitle/EditableTitle_module.css +6 -0
- package/dist/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/EmptyStateLarge/EmptyStateLarge_module.css +2 -2
- package/dist/components/FileUploader/FileUploader.helpers.d.ts +1 -0
- package/dist/components/FileUploader/FileUploader.helpers.js +4 -1
- package/dist/components/FileUploader/FileUploader.js +3 -1
- package/dist/components/FileUploader/FileUploader.types.d.ts +1 -0
- package/dist/components/FileUploader/components/FileUploaderPreview/FileUploaderPreview.js +4 -4
- package/dist/components/Help/Help.d.ts +12 -5
- package/dist/components/Help/Help.js +22 -7
- package/dist/components/Help/Help.module.js +6 -2
- package/dist/components/Help/Help_module.css +36 -8
- package/dist/components/Hint/Hint.js +4 -5
- package/dist/components/Hint/Hint.module.js +2 -3
- package/dist/components/Hint/Hint_module.css +0 -9
- package/dist/components/Informer/Informer.d.ts +37 -0
- package/dist/components/Informer/Informer.js +36 -0
- package/dist/components/Informer/Informer.module.js +7 -0
- package/dist/components/Informer/Informer_module.css +24 -0
- package/dist/components/Input/Input.d.ts +10 -0
- package/dist/components/Input/Input.js +99 -43
- package/dist/components/Input/Input.module.js +19 -3
- package/dist/components/Input/Input_module.css +156 -19
- package/dist/components/Input/components/InfoBlock.d.ts +14 -0
- package/dist/components/Input/components/InfoBlock.js +32 -0
- package/dist/components/InputUnit/InputUnit.d.ts +3 -0
- package/dist/components/InputUnit/InputUnit.js +45 -35
- package/dist/components/InputUnit/InputUnit.module.js +6 -1
- package/dist/components/InputUnit/InputUnit_module.css +27 -29
- package/dist/components/InputUnit/SelectUnit/SelectUnit.d.ts +1 -1
- package/dist/components/InputUnit/SelectUnit/SelectUnit.js +1 -4
- package/dist/components/InputUnit/SelectUnit/SelectUnit.module.js +1 -0
- package/dist/components/InputUnit/SelectUnit/SelectUnitVisible.d.ts +1 -1
- package/dist/components/InputUnit/SelectUnit/SelectUnitVisible.js +7 -2
- package/dist/components/InputUnit/SelectUnit/SelectUnit_module.css +29 -37
- package/dist/components/InputUnit/SelectUnit/type.d.ts +1 -0
- package/dist/components/InputUnit/Unit/Unit.js +1 -2
- package/dist/components/InputUnit/Unit/Unit_module.css +1 -0
- package/dist/components/Label/Label.d.ts +1 -0
- package/dist/components/LabelValue/LabelValue.d.ts +14 -10
- package/dist/components/LabelValue/LabelValue.js +59 -72
- package/dist/components/LabelValue/LabelValue.module.js +7 -4
- package/dist/components/LabelValue/LabelValue_module.css +36 -19
- package/dist/components/LabelValue/ValueBlock/ValueBlock.d.ts +2 -0
- package/dist/components/LabelValue/ValueBlock/ValueBlock.js +82 -0
- package/dist/components/LabelValue/ValueBlockWrapper.d.ts +5 -0
- package/dist/components/LabelValue/ValueBlockWrapper.js +13 -0
- package/dist/components/LabelValue/ValueIcon.d.ts +4 -0
- package/dist/components/LabelValue/ValueIcon.js +9 -0
- package/dist/components/LabelValue/ValueText.d.ts +10 -0
- package/dist/components/LabelValue/ValueText.js +24 -0
- package/dist/components/LabelValue/ValueTextWithHint.d.ts +12 -0
- package/dist/components/LabelValue/ValueTextWithHint.js +29 -0
- package/dist/components/LabelValue/hooks/useValueBlock.d.ts +29 -0
- package/dist/components/LabelValue/hooks/useValueBlock.js +72 -0
- package/dist/components/LabelValue/{ValueBlock/index.d.ts → types.d.ts} +8 -4
- package/dist/components/LabelValue/types.js +0 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox.d.ts +10 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox.js +22 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox.module.js +5 -0
- package/dist/components/LabelValueCheckbox/LabelValueCheckbox_module.css +5 -0
- package/dist/components/LabelValueDate/LabelValueDate.js +2 -2
- package/dist/components/LabelValueFile/DeleteButton/DeleteButton.d.ts +9 -0
- package/dist/components/LabelValueFile/DeleteButton/DeleteButton.js +17 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.d.ts +7 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.js +15 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.module.js +6 -0
- package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon_module.css +10 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview.d.ts +8 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview.js +53 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview.module.js +6 -0
- package/dist/components/LabelValueFile/ImagePreview/ImagePreview_module.css +13 -0
- package/dist/components/LabelValueFile/LabelValueFile.d.ts +7 -0
- package/dist/components/LabelValueFile/LabelValueFile.js +42 -0
- package/dist/components/LabelValueFile/LabelValueFile.module.js +12 -0
- package/dist/components/LabelValueFile/LabelValueFile_module.css +57 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock.d.ts +15 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock.js +130 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock.module.js +7 -0
- package/dist/components/LabelValueFile/ValueBlock/ValueBlock_module.css +17 -0
- package/dist/components/LabelValueInput/DropdownConnent/DropdownContent.d.ts +2 -0
- package/dist/components/LabelValueInput/DropdownConnent/DropdownContent.js +2 -0
- package/dist/components/LabelValueLink/LabelValueLink.d.ts +2 -0
- package/dist/components/LabelValueLink/LabelValueLink.js +76 -0
- package/dist/components/LabelValueLink/LabelValueLink.module.js +6 -0
- package/dist/components/LabelValueLink/LabelValueLink_module.css +11 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.d.ts +2 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.js +117 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.module.js +6 -0
- package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock_module.css +8 -0
- package/dist/components/LabelValueLink/normalizeLinkValue.d.ts +1 -0
- package/dist/components/LabelValueLink/normalizeLinkValue.js +10 -0
- package/dist/components/LabelValueLink/useLinkDropdownValue.d.ts +15 -0
- package/dist/components/LabelValueLink/useLinkDropdownValue.js +26 -0
- package/dist/components/LabelValueSelect/Input/Input_module.css +1 -3
- package/dist/components/LabelValueSelect/Input/index.js +1 -1
- package/dist/components/LabelValueSelect/LabelValueSelect.d.ts +4 -2
- package/dist/components/Layout/Layout.d.ts +13 -0
- package/dist/components/Layout/Layout.js +41 -0
- package/dist/components/Layout/Layout.module.js +15 -0
- package/dist/components/Layout/Layout_module.css +77 -0
- package/dist/components/Link/Link.d.ts +5 -6
- package/dist/components/Link/Link.js +35 -9
- package/dist/components/Link/Link.module.js +1 -0
- package/dist/components/Link/Link_module.css +9 -0
- package/dist/components/MentionsTextfield/Mentions/style.css +2 -6
- package/dist/components/MentionsTextfield/MentionsTextfield.d.ts +1 -1
- package/dist/components/MentionsTextfield/MentionsTextfield.js +42 -25
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.d.ts +8 -0
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.js +13 -0
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.module.js +5 -0
- package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip_module.css +9 -0
- package/dist/components/Multiselect/DropdownContent/MultiselectDropdownContent.d.ts +12 -1
- package/dist/components/Multiselect/DropdownContent/MultiselectDropdownContent.js +25 -19
- package/dist/components/Multiselect/Input/Input.d.ts +6 -2
- package/dist/components/Multiselect/Input/Input.js +18 -4
- package/dist/components/Multiselect/Input/Input_module.css +1 -3
- package/dist/components/Multiselect/Multiselect.d.ts +8 -2
- package/dist/components/Multiselect/Multiselect.js +14 -2
- package/dist/components/Multiselect/ShortDropdownContent/ShortDropdownContent.js +2 -1
- package/dist/components/Multiselect/TextField/MultiselectTextField.d.ts +5 -1
- package/dist/components/Multiselect/TextField/MultiselectTextField.js +15 -2
- package/dist/components/Multiselect/lib/consts.d.ts +1 -1
- package/dist/components/Multiselect/lib/consts.js +1 -1
- package/dist/components/Multiselect/lib/helpers.d.ts +24 -0
- package/dist/components/Multiselect/lib/helpers.js +15 -0
- package/dist/components/Multiselect/types.d.ts +2 -0
- package/dist/components/Panel/Panel.d.ts +34 -0
- package/dist/components/Panel/Panel.js +39 -0
- package/dist/components/Panel/Panel.module.js +6 -0
- package/dist/components/Panel/Panel_module.css +17 -0
- package/dist/components/Radiobutton/Radiobutton.js +1 -1
- package/dist/components/Radiobutton/Radiobutton_module.css +5 -0
- package/dist/components/SearchInput/SearchInput_module.css +1 -1
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.d.ts +3 -4
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.js +19 -24
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.module.js +1 -2
- package/dist/components/Select/ArchivedInputValue/ArchivedInputValue_module.css +5 -12
- package/dist/components/Select/Combobox/Combobox.d.ts +3 -1
- package/dist/components/Select/Combobox/Combobox.js +19 -8
- package/dist/components/Select/Combobox/Combobox.module.js +4 -3
- package/dist/components/Select/Combobox/Combobox_module.css +17 -15
- package/dist/components/Select/DropDownWithColors/DropDownWithColors.d.ts +1 -0
- package/dist/components/Select/DropDownWithColors/DropDownWithColors.js +2 -1
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.d.ts +3 -0
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.js +17 -0
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.module.js +6 -0
- package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer_module.css +12 -0
- package/dist/components/Select/OptionsList/OptionsList.d.ts +4 -1
- package/dist/components/Select/OptionsList/OptionsList.js +39 -22
- package/dist/components/Select/OptionsList/OptionsList.module.js +2 -0
- package/dist/components/Select/OptionsList/OptionsList_module.css +19 -0
- package/dist/components/Select/Select.d.ts +10 -5
- package/dist/components/Select/Select.js +45 -40
- package/dist/components/Select/Select.module.js +1 -2
- package/dist/components/Select/Select_module.css +7 -14
- package/dist/components/Select/ShortVariant/ShortVariant.d.ts +5 -1
- package/dist/components/Select/ShortVariant/ShortVariant.js +6 -5
- package/dist/components/Select/ShortVariant/ShortVariant.module.js +1 -0
- package/dist/components/Select/ShortVariant/ShortVariant_module.css +5 -1
- package/dist/components/Select/types.d.ts +1 -0
- package/dist/components/Select/useDropdownPadding.d.ts +5 -0
- package/dist/components/Select/useDropdownPadding.js +22 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +28 -0
- package/dist/components/StatusBadge/StatusBadge.js +167 -0
- package/dist/components/StatusBadge/StatusBadge.module.js +37 -0
- package/dist/components/StatusBadge/StatusBadge_module.css +149 -0
- package/dist/components/StatusBadge/utils/StatusBadgeColor.d.ts +21 -0
- package/dist/components/StatusBadge/utils/StatusBadgeColor.js +20 -0
- package/dist/components/StatusBadge/utils/getStatusBadgeColor.d.ts +2 -0
- package/dist/components/StatusBadge/utils/getStatusBadgeColor.js +8 -0
- package/dist/components/Textfield/Textfield.d.ts +24 -3
- package/dist/components/Textfield/Textfield.js +38 -13
- package/dist/components/Textfield/Textfield.module.js +2 -1
- package/dist/components/Textfield/Textfield_module.css +95 -23
- package/dist/components/Textfield/components/ActionButton/ActionButton.d.ts +9 -0
- package/dist/components/Textfield/components/ActionButton/ActionButton.js +12 -0
- package/dist/components/Textfield/components/ActionButton/ActionButton.module.js +9 -0
- package/dist/components/Textfield/components/ActionButton/ActionButton_module.css +54 -0
- package/dist/components/Textfield/components/ActionButton/index.d.ts +1 -0
- package/dist/components/Textfield/components/ActionButton/index.js +1 -0
- package/dist/components/Textfield/components/Container/Container.d.ts +2 -0
- package/dist/components/Textfield/components/Container/Container.js +21 -7
- package/dist/components/Textfield/components/Container/Container.module.js +2 -1
- package/dist/components/Textfield/components/Container/Container_module.css +4 -0
- package/dist/components/Textfield/components/Counter/Counter.d.ts +3 -1
- package/dist/components/Textfield/components/Counter/Counter.js +5 -3
- package/dist/components/Textfield/components/Info/Info.d.ts +3 -1
- package/dist/components/Textfield/components/Info/Info.js +9 -4
- package/dist/components/Textfield/components/InnerContainer/InnerContainer.d.ts +3 -6
- package/dist/components/Textfield/components/InnerContainer/InnerContainer.js +2 -8
- package/dist/components/Textfield/components/InputContainer/InputContainer.d.ts +14 -3
- package/dist/components/Textfield/components/InputContainer/InputContainer.js +74 -5
- package/dist/components/Textfield/components/InputContainer/InputContainer.module.js +7 -1
- package/dist/components/Textfield/components/InputContainer/InputContainer_module.css +36 -7
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.d.ts +10 -0
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.js +50 -0
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.module.js +7 -0
- package/dist/components/Textfield/components/ResizeHandle/ResizeHandle_module.css +21 -0
- package/dist/components/Textfield/components/ResizeHandle/index.d.ts +1 -0
- package/dist/components/Textfield/components/ResizeHandle/index.js +1 -0
- package/dist/components/Textfield/consts/index.d.ts +2 -0
- package/dist/components/Textfield/consts/index.js +3 -0
- package/dist/components/Textfield/types/index.d.ts +12 -0
- package/dist/components/Textfield/types/index.js +5 -0
- package/dist/components/Textfield/utils/index.d.ts +3 -0
- package/dist/components/Textfield/utils/index.js +8 -0
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -1
- package/dist/components/Tooltip/Tooltip.js +9 -9
- package/dist/components/Tooltip/Tooltip.module.js +3 -1
- package/dist/components/Tooltip/Tooltip_module.css +13 -3
- package/dist/components/Tooltip/{consts.d.ts → constants/ArrowAlign.d.ts} +0 -2
- package/dist/components/Tooltip/constants/TooltipBodyColor.d.ts +4 -0
- package/dist/components/Tooltip/constants/TooltipBodyColor.js +5 -0
- package/dist/components/Tooltip/constants/index.d.ts +2 -0
- package/dist/components/Tooltip/constants/index.js +2 -0
- package/dist/components/Tooltip/hooks.d.ts +2 -2
- package/dist/components/Tooltip/hooks.js +1 -1
- package/dist/components/Tooltip/types.d.ts +4 -0
- package/dist/components/Tooltip/types.js +0 -0
- package/dist/components/ViewersStack/ViewersStack.d.ts +13 -0
- package/dist/components/ViewersStack/ViewersStack.js +79 -0
- package/dist/components/ViewersStack/ViewersStack.module.js +7 -0
- package/dist/components/ViewersStack/ViewersStack_module.css +18 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar.d.ts +13 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar.js +35 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar.module.js +13 -0
- package/dist/components/ViewersStack/components/Avatar/Avatar_module.css +45 -0
- package/dist/components/ViewersStack/components/Counter/Counter.d.ts +9 -0
- package/dist/components/ViewersStack/components/Counter/Counter.js +27 -0
- package/dist/components/ViewersStack/components/Counter/Counter.module.js +5 -0
- package/dist/components/ViewersStack/components/Counter/Counter_module.css +20 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.d.ts +15 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.js +41 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.module.js +6 -0
- package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip_module.css +14 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.d.ts +6 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.js +53 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.module.js +7 -0
- package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem_module.css +18 -0
- package/dist/components/ViewersStack/components/common.module.js +7 -0
- package/dist/components/ViewersStack/components/common_module.css +27 -0
- package/dist/components/ViewersStack/types.d.ts +22 -0
- package/dist/components/ViewersStack/types.js +17 -0
- package/dist/components/ViewersStack/utils.d.ts +3 -0
- package/dist/components/ViewersStack/utils.js +17 -0
- package/dist/components/_shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.d.ts +12 -0
- package/dist/components/{LabelValueDate/DropdownContent/index.js → _shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.js} +10 -10
- package/dist/components/_shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.module.js +9 -0
- package/dist/components/{LabelValueDate/DropdownContent/DropdownContent_module.css → _shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent_module.css} +6 -6
- package/dist/components/_shared/FieldLabel/FieldLabel.constants.d.ts +1 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.constants.js +5 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.d.ts +18 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.js +83 -0
- package/dist/components/_shared/FieldLabel/FieldLabel.module.js +11 -0
- package/dist/components/_shared/FieldLabel/FieldLabel_module.css +42 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton.d.ts +8 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton.js +15 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton.module.js +5 -0
- package/dist/components/_shared/FieldLabel/components/HelpButton_module.css +8 -0
- package/dist/components/_shared/FieldLabel/components/index.d.ts +1 -0
- package/dist/components/_shared/FieldLabel/components/index.js +1 -0
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.d.ts +1 -1
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.js +1 -1
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.module.js +3 -3
- package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow_module.css +3 -3
- package/dist/components/{EditableTitle → _shared/HintWithSkip}/HintWithSkip.d.ts +1 -1
- package/dist/components/{EditableTitle → _shared/HintWithSkip}/HintWithSkip.js +1 -1
- package/dist/components/_shared/Info/Info.d.ts +12 -0
- package/dist/components/_shared/Info/Info.js +46 -0
- package/dist/components/_shared/Info/Info.module.js +9 -0
- package/dist/components/_shared/Info/Info_module.css +32 -0
- package/dist/components/_shared/Info/types/index.d.ts +6 -0
- package/dist/components/_shared/Info/types/index.js +5 -0
- package/dist/components/_shared/InputClear/InputClear.d.ts +14 -0
- package/dist/components/_shared/InputClear/InputClear.js +18 -0
- package/dist/components/{InputClear → _shared/InputClear}/InputClear.module.js +3 -1
- package/dist/components/_shared/InputClear/InputClear_module.css +34 -0
- package/dist/components/_shared/utils/polymorphicClickableTypes.d.ts +17 -0
- package/dist/components/_shared/utils/polymorphicClickableTypes.js +7 -0
- package/dist/data-grid/Filters/DateRangeFilter/DropdownContent/index.js +3 -3
- package/dist/data-grid/Filters/DateRangeFilter/InputContent/index.js +29 -26
- package/dist/data-grid/Filters/DateRangeFilter/PeriodVariantList/index.js +5 -3
- package/dist/data-grid/Filters/DateRangeFilter/Year/index.js +3 -3
- package/dist/data-grid/Filters/DateRangeFilter/consts.js +6 -6
- package/dist/data-grid/Filters/DateRangeFilter/hooks/useMaskInput.js +6 -6
- package/dist/data-grid/Filters/DateRangeFilter/hooks/useSideMenu.js +1 -4
- package/dist/data-grid/Filters/DateRangeFilter/types.d.ts +68 -56
- package/dist/data-grid/Filters/FiltersContainer/FiltersContainer.js +2 -1
- package/dist/data-grid/Filters/FiltersContainer/utils/useRenderParams.d.ts +1 -0
- package/dist/data-grid/Filters/FiltersContainer/utils/useRenderParams.js +14 -6
- package/dist/data-grid/Filters/MultiselectFilter/MultiselectFilter.js +2 -2
- package/dist/data-grid/Filters/OutlineInput/OutlineInput.js +2 -2
- package/dist/data-grid/Filters/OutlineInput/OutlineInput_module.css +1 -1
- package/dist/data-grid/Table/Table.d.ts +14 -22
- package/dist/data-grid/Table/Table.js +99 -61
- package/dist/data-grid/Table/Table.module.js +2 -0
- package/dist/data-grid/Table/Table_module.css +23 -1
- package/dist/data-grid/Table/components/Body/Body.d.ts +10 -14
- package/dist/data-grid/Table/components/Body/Body.js +11 -47
- package/dist/data-grid/Table/components/DraggableRow/DraggableRow.js +1 -1
- package/dist/data-grid/Table/components/Footer/Footer.module.js +0 -1
- package/dist/data-grid/Table/components/Footer/FooterContent.d.ts +9 -0
- package/dist/data-grid/Table/components/Footer/{Footer.js → FooterContent.js} +4 -5
- package/dist/data-grid/Table/components/Footer/Footer_module.css +0 -5
- package/dist/data-grid/Table/components/Header/Header.module.js +0 -1
- package/dist/data-grid/Table/components/Header/HeaderCell.js +3 -1
- package/dist/data-grid/Table/components/Header/HeaderContent.d.ts +1 -0
- package/dist/data-grid/Table/components/Header/{Header.js → HeaderContent.js} +8 -6
- package/dist/data-grid/Table/components/Header/Header_module.css +0 -15
- package/dist/data-grid/Table/components/Row/Row.d.ts +13 -0
- package/dist/data-grid/Table/components/Row/Row.js +40 -0
- package/dist/data-grid/Table/components/Row/Row.module.js +14 -0
- package/dist/data-grid/Table/components/{TableRow/TableRow_module.css → Row/Row_module.css} +7 -7
- package/dist/data-grid/Table/components/SubRows/SubRows.d.ts +5 -4
- package/dist/data-grid/Table/components/SubRows/SubRows.js +3 -3
- package/dist/data-grid/Table/components/TableCell/TableCell.js +2 -0
- package/dist/data-grid/Table/components/TableDragOverlay/TableDragOverlay.d.ts +5 -6
- package/dist/data-grid/Table/components/TableDragOverlay/TableDragOverlay.js +2 -2
- package/dist/data-grid/Table/components/TableRow/TableRow.d.ts +6 -14
- package/dist/data-grid/Table/components/TableRow/TableRow.js +34 -25
- package/dist/data-grid/Table/components/VirtualTable/VirtualTable.d.ts +10 -0
- package/dist/data-grid/Table/components/VirtualTable/VirtualTable.js +78 -0
- package/dist/data-grid/Table/components/VirtualTable/VirtualTableRow.d.ts +11 -0
- package/dist/data-grid/Table/components/VirtualTable/VirtualTableRow.js +18 -0
- package/dist/data-grid/Table/components/index.d.ts +3 -3
- package/dist/data-grid/Table/components/index.js +2 -2
- package/dist/data-grid/Table/constants.d.ts +2 -0
- package/dist/data-grid/Table/constants.js +3 -1
- package/dist/data-grid/Table/hooks/index.d.ts +1 -0
- package/dist/data-grid/Table/hooks/index.js +1 -0
- package/dist/data-grid/Table/hooks/useRowContext.d.ts +16 -0
- package/dist/data-grid/Table/hooks/useRowContext.js +44 -0
- package/dist/data-grid/Table/hooks/useTableContext.d.ts +7 -2
- package/dist/data-grid/Table/hooks/useTableContext.js +12 -2
- package/dist/data-grid/Table/index.d.ts +2 -2
- package/dist/data-grid/Table/types.d.ts +8 -1
- package/dist/data-grid/Table/types.js +5 -0
- package/dist/data-grid/Table/utils/compareColumnIds.d.ts +1 -0
- package/dist/data-grid/Table/utils/compareColumnIds.js +6 -0
- package/dist/data-grid/Table/utils/getColumnWidthStyles.d.ts +5 -0
- package/dist/data-grid/Table/utils/getColumnWidthStyles.js +4 -1
- package/dist/data-grid/Table/utils/getTableColumnIds.d.ts +3 -0
- package/dist/data-grid/Table/utils/getTableColumnIds.js +5 -0
- package/dist/data-grid/Table/utils/index.d.ts +2 -0
- package/dist/data-grid/Table/utils/index.js +2 -0
- package/dist/data-grid/Table/utils/withDnD.js +1 -1
- package/dist/data-grid/base/DropdownItem/DropdownItem.d.ts +3 -3
- package/dist/data-grid/base/DropdownItem/DropdownItem.js +3 -2
- package/dist/data-grid/base/OverflowHint/OverflowHint.d.ts +1 -0
- package/dist/data-grid/base/OverflowHint/OverflowHint.js +5 -3
- package/dist/data-grid/base/OverflowHint/utils.d.ts +1 -0
- package/dist/data-grid/base/OverflowHint/utils.js +7 -0
- package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell.js +3 -4
- package/dist/data-grid/cells/DecimalCell/DecimalCell_module.css +1 -1
- package/dist/data-grid/cells/FileCell/FileCell_module.css +1 -1
- package/dist/data-grid/cells/ImageCell/ImageCell.d.ts +1 -0
- package/dist/data-grid/cells/ImageCell/ImageCell.js +5 -2
- package/dist/data-grid/cells/ImageCell/ImageMiniature/ImageMiniature_module.css +1 -1
- package/dist/data-grid/cells/IndexCheckboxDndCell/IndexCheckboxDndCell.d.ts +7 -2
- package/dist/data-grid/cells/IndexCheckboxDndCell/IndexCheckboxDndCell.js +6 -4
- package/dist/data-grid/cells/InputCell/InputCell.js +3 -4
- package/dist/data-grid/cells/IntegerCell/IntegerCell_module.css +1 -1
- package/dist/data-grid/cells/LinkCell/LinkCell_module.css +1 -1
- package/dist/data-grid/cells/NameCell/NameCell.js +3 -0
- package/dist/data-grid/cells/NameCell/NameCell_module.css +2 -2
- package/dist/data-grid/cells/NumberInputCell/NumberInputCell.js +19 -17
- package/dist/data-grid/cells/SelectCell/SelectCell.js +3 -4
- package/dist/data-grid/cells/TextCell/TextCell_module.css +1 -1
- package/dist/data-grid/cells/ToggleCell/ToggleCell_module.css +1 -1
- package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.d.ts +3 -0
- package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.js +9 -0
- package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.module.js +5 -0
- package/dist/data-grid/cells/{InputCell/InputCell_module.css → components/EditableCellWrapper/EditableCellWrapper_module.css} +2 -2
- package/dist/data-grid/cells/components/EditableCellWrapper/index.d.ts +1 -0
- package/dist/data-grid/cells/components/EditableCellWrapper/index.js +1 -0
- package/dist/data-grid/cells/components/RowActionsMenu/RowActionsMenu.d.ts +4 -3
- package/dist/data-grid/cells/components/RowActionsMenu/RowActionsMenu.js +13 -13
- package/dist/data-grid/cells/components/TableInput/TableInput.js +19 -3
- package/dist/data-grid/cells/components/TableInput/TableInput_module.css +1 -1
- package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.d.ts +5 -3
- package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.js +56 -55
- package/dist/data-grid/cells/components/TableSelect/ActionButton/ActionButton.d.ts +4 -1
- package/dist/data-grid/cells/components/TableSelect/ActionButton/ActionButton.js +4 -3
- package/dist/data-grid/cells/components/TableSelect/TableSelect.d.ts +15 -10
- package/dist/data-grid/cells/components/TableSelect/TableSelect.js +13 -8
- package/dist/data-grid/cells/components/index.d.ts +1 -0
- package/dist/data-grid/cells/components/index.js +1 -0
- package/dist/data-grid/cells/index.d.ts +1 -1
- package/dist/data-grid/cells/index.js +1 -1
- package/dist/data-grid/headers/PlainTextHeader.js +3 -2
- package/dist/data-grid/headers/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/data-grid/headers/components/Dropdown/DropdownArrowBtn/DropdownArrowBtn.js +5 -1
- package/dist/data-grid/headers/components/Dropdown/Option/Option.d.ts +1 -1
- package/dist/data-grid/headers/components/Dropdown/Option/Option.js +2 -2
- package/dist/data-grid/headers/components/Dropdown/Option/Option_module.css +10 -2
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.d.ts +13 -3
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.js +65 -83
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.module.js +2 -1
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder_module.css +21 -0
- package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption.js +7 -15
- package/dist/data-grid/headers/components/HideColumn/HideColumn.js +8 -13
- package/dist/data-grid/headers/components/ResetFilter/ResetFilter.js +7 -10
- package/dist/data-grid/headers/components/ResetFilter/ResetFilter.module.js +0 -1
- package/dist/data-grid/headers/components/ResetFilter/ResetFilter_module.css +1 -21
- package/dist/data-grid/headers/components/index.d.ts +1 -1
- package/dist/data-grid/headers/index.d.ts +1 -1
- package/dist/data-grid/headers/types/types.d.ts +1 -0
- package/dist/data-grid/index.d.ts +0 -4
- package/dist/data-grid/locale/en-US.js +68 -56
- package/dist/data-grid/locale/ru-RU.js +68 -56
- package/dist/data-grid/locale/useLocale.d.ts +6 -1
- package/dist/data-grid/locale/useLocale.js +14 -5
- package/dist/data-grid/types/index.d.ts +1 -0
- package/dist/data-grid/utils/isOverflowed.js +21 -1
- package/dist/hooks/useDebounceCallback/useDebounceCallback.d.ts +2 -0
- package/dist/hooks/useDebounceCallback/useDebounceCallback.js +21 -0
- package/dist/hooks/useDismissOnFocusOutside/index.d.ts +2 -1
- package/dist/hooks/useDismissOnFocusOutside/index.js +4 -3
- package/dist/hooks/useDismissOnOutsideClick/index.d.ts +2 -1
- package/dist/hooks/useDismissOnOutsideClick/index.js +4 -3
- package/dist/hooks/useIsElementOverflowing/index.d.ts +1 -0
- package/dist/hooks/useIsElementOverflowing/index.js +8 -2
- package/dist/hooks/useOverflowHint/index.d.ts +7 -0
- package/dist/hooks/useOverflowHint/index.js +16 -0
- package/dist/hooks/useTextField/useTextField.d.ts +5 -6
- package/dist/hooks/useTextField/useTextField.js +6 -24
- package/dist/hooks/useUnmount/useUnmount.d.ts +1 -0
- package/dist/hooks/useUnmount/useUnmount.js +9 -0
- package/dist/icon/components/MsLogo12Icon.d.ts +8 -0
- package/dist/icon/components/MsLogo12Icon.js +28 -0
- package/dist/icon/components/MsLogo16Icon.d.ts +8 -0
- package/dist/icon/components/MsLogo16Icon.js +26 -0
- package/dist/icon/components/MsLogo20Icon.d.ts +8 -0
- package/dist/icon/components/MsLogo20Icon.js +28 -0
- package/dist/icon/components/MyApps12Icon.d.ts +8 -0
- package/dist/icon/components/MyApps12Icon.js +18 -0
- package/dist/icon/components/MyApps16Icon.d.ts +8 -0
- package/dist/icon/components/MyApps16Icon.js +17 -0
- package/dist/icon/components/MyApps20Icon.d.ts +8 -0
- package/dist/icon/components/MyApps20Icon.js +18 -0
- package/dist/icon/components/Phone12Icon.d.ts +8 -0
- package/dist/icon/components/Phone12Icon.js +18 -0
- package/dist/icon/components/Phone16Icon.d.ts +8 -0
- package/dist/icon/components/Phone16Icon.js +17 -0
- package/dist/icon/components/Phone20Icon.d.ts +8 -0
- package/dist/icon/components/Phone20Icon.js +18 -0
- package/dist/icon/components/Smile12Icon.d.ts +8 -0
- package/dist/icon/components/Smile12Icon.js +17 -0
- package/dist/icon/components/Smile16Icon.d.ts +8 -0
- package/dist/icon/components/Smile16Icon.js +16 -0
- package/dist/icon/components/Smile20Icon.d.ts +8 -0
- package/dist/icon/components/Smile20Icon.js +17 -0
- package/dist/icon/index.d.ts +12 -0
- package/dist/icon/index.js +12 -0
- package/dist/index.d.ts +13 -5
- package/dist/index.js +11 -1
- package/dist/utils/checkIsArchivedValue.d.ts +2 -0
- package/dist/utils/checkIsArchivedValue.js +5 -0
- package/dist/utils/debounce/debounce.d.ts +10 -0
- package/dist/utils/debounce/debounce.js +73 -0
- package/dist/utils/isRecordEqual/isRecordEqual.d.ts +1 -0
- package/dist/utils/isRecordEqual/isRecordEqual.js +9 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/utils.js +3 -0
- package/package.json +88 -12
- package/dist/components/Info/Info.d.ts +0 -13
- package/dist/components/Info/Info.js +0 -20
- package/dist/components/Info/Info.module.js +0 -6
- package/dist/components/Info/Info_module.css +0 -11
- package/dist/components/InputClear/InputClear.d.ts +0 -11
- package/dist/components/InputClear/InputClear.js +0 -12
- package/dist/components/InputClear/InputClear_module.css +0 -21
- package/dist/components/LabelValue/HelpButton/HelpButton.module.js +0 -8
- package/dist/components/LabelValue/HelpButton/HelpButton_module.css +0 -44
- package/dist/components/LabelValue/HelpButton/index.d.ts +0 -8
- package/dist/components/LabelValue/HelpButton/index.js +0 -36
- package/dist/components/LabelValue/ValueBlock/index.js +0 -138
- package/dist/components/LabelValue/hooks/useTooltip.d.ts +0 -8
- package/dist/components/LabelValue/hooks/useTooltip.js +0 -16
- package/dist/components/LabelValueDate/DropdownContent/DropdownContent.module.js +0 -9
- package/dist/components/LabelValueDate/DropdownContent/index.d.ts +0 -12
- package/dist/components/Textfield/components/ClearIcon/ClearIcon.d.ts +0 -6
- package/dist/components/Textfield/components/ClearIcon/ClearIcon.js +0 -13
- package/dist/components/Textfield/components/ClearIcon/ClearIcon.module.js +0 -6
- package/dist/components/Textfield/components/ClearIcon/ClearIcon_module.css +0 -11
- package/dist/components/Textfield/components/Label/Label.d.ts +0 -9
- package/dist/components/Textfield/components/Label/Label.js +0 -32
- package/dist/components/Textfield/components/Label/Label.module.js +0 -7
- package/dist/components/Textfield/components/Label/Label_module.css +0 -17
- package/dist/components/Textfield/components/Label/index.d.ts +0 -1
- package/dist/components/Textfield/components/Label/index.js +0 -1
- package/dist/data-grid/Table/components/Footer/Footer.d.ts +0 -9
- package/dist/data-grid/Table/components/Header/Header.d.ts +0 -8
- package/dist/data-grid/Table/components/TableRow/TableRow.module.js +0 -14
- package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell.module.js +0 -5
- package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell_module.css +0 -8
- package/dist/data-grid/cells/InputCell/InputCell.module.js +0 -5
- package/dist/data-grid/cells/NumberInputCell/NumberInputCell.module.js +0 -5
- package/dist/data-grid/cells/NumberInputCell/NumberInputCell_module.css +0 -8
- package/dist/data-grid/cells/SelectCell/SelectCell.module.js +0 -8
- package/dist/data-grid/cells/SelectCell/SelectCell_module.css +0 -33
- package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption.module.js +0 -7
- package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption_module.css +0 -22
- package/dist/data-grid/headers/components/HideColumn/HideColumn.module.js +0 -6
- package/dist/data-grid/headers/components/HideColumn/HideColumn_module.css +0 -20
- /package/dist/components/Tooltip/{consts.js → constants/ArrowAlign.js} +0 -0
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.inputContainer-gy10zl:focus-visible {
|
|
13
|
-
|
|
14
|
-
box-shadow: 0 0 4px 0 var(--input-shadow);
|
|
15
|
-
border: 1px solid var(--border-accent, #036ce5);
|
|
13
|
+
border: 1px solid var(--border-focused, #091739);
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
.inputContainer-gy10zl {
|
|
@@ -22,9 +20,7 @@
|
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
.inputContainer-gy10zl.focused-ORhBSR {
|
|
25
|
-
|
|
26
|
-
box-shadow: 0 0 4px 0 var(--input-shadow);
|
|
27
|
-
border: 1px solid var(--border-accent, #036ce5);
|
|
23
|
+
border: 1px solid var(--border-focused, #091739);
|
|
28
24
|
}
|
|
29
25
|
|
|
30
26
|
.inputContainer-gy10zl.disabled-NuqWEY {
|
|
@@ -37,7 +33,7 @@
|
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
.inputContainer-gy10zl.error-BWY9xH, .inputContainer-gy10zl.error-BWY9xH:hover {
|
|
40
|
-
border-color: var(--
|
|
36
|
+
border-color: var(--border-critical);
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
.actionsBar-hEerOT {
|
|
@@ -45,3 +41,36 @@
|
|
|
45
41
|
padding-inline: 12px;
|
|
46
42
|
}
|
|
47
43
|
|
|
44
|
+
.files-dNxdJy {
|
|
45
|
+
padding-inline: 12px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.actions-U6Jj6H {
|
|
49
|
+
justify-content: flex-end;
|
|
50
|
+
align-items: center;
|
|
51
|
+
column-gap: 4px;
|
|
52
|
+
margin-bottom: 8px;
|
|
53
|
+
padding-left: 12px;
|
|
54
|
+
padding-right: 8px;
|
|
55
|
+
display: flex;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.actionsL-y4vtZP {
|
|
59
|
+
column-gap: 8px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.mainBtnDivider-omXg1b {
|
|
63
|
+
background-color: var(--border-normal);
|
|
64
|
+
width: 1px;
|
|
65
|
+
height: 16px;
|
|
66
|
+
margin: 0 4px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.mainBtnDividerLarge-hXiU5u {
|
|
70
|
+
height: 20px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.fileUploader-AHKIZK {
|
|
74
|
+
padding: 4px 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
interface ResizeHandleProps {
|
|
3
|
+
direction: 'top' | 'bottom';
|
|
4
|
+
minHeight: number;
|
|
5
|
+
maxHeight?: number;
|
|
6
|
+
startHeight: number;
|
|
7
|
+
onHeightChange: (height: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const ResizeHandle: FC<ResizeHandleProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
3
|
+
import { cn } from "../../../../common/css/cn.js";
|
|
4
|
+
import { Drag12Icon } from "../../../../icon/index.js";
|
|
5
|
+
import ResizeHandle_module from "./ResizeHandle.module.js";
|
|
6
|
+
const getDelta = (direction, startY, clientY)=>{
|
|
7
|
+
if ('top' === direction) return startY - clientY;
|
|
8
|
+
return clientY - startY;
|
|
9
|
+
};
|
|
10
|
+
const ResizeHandle = ({ direction, onHeightChange, startHeight, minHeight, maxHeight })=>{
|
|
11
|
+
const mouseMoveListenerRef = useRef(null);
|
|
12
|
+
const mouseUpListenerRef = useRef(null);
|
|
13
|
+
useEffect(()=>()=>{
|
|
14
|
+
if (mouseMoveListenerRef.current) window.removeEventListener('mousemove', mouseMoveListenerRef.current);
|
|
15
|
+
if (mouseUpListenerRef.current) window.removeEventListener('mouseup', mouseUpListenerRef.current);
|
|
16
|
+
}, []);
|
|
17
|
+
const handleMouseDown = useCallback((e)=>{
|
|
18
|
+
e.preventDefault();
|
|
19
|
+
const startY = e.clientY;
|
|
20
|
+
const handleMouseMove = (moveEvent)=>{
|
|
21
|
+
const delta = getDelta(direction, startY, moveEvent.clientY);
|
|
22
|
+
let next = Math.max(minHeight, startHeight + delta);
|
|
23
|
+
if (maxHeight) next = Math.min(maxHeight, next);
|
|
24
|
+
onHeightChange(next);
|
|
25
|
+
};
|
|
26
|
+
const handleMouseUp = ()=>{
|
|
27
|
+
window.removeEventListener('mousemove', handleMouseMove);
|
|
28
|
+
window.removeEventListener('mouseup', handleMouseUp);
|
|
29
|
+
mouseMoveListenerRef.current = null;
|
|
30
|
+
mouseUpListenerRef.current = null;
|
|
31
|
+
};
|
|
32
|
+
mouseMoveListenerRef.current = handleMouseMove;
|
|
33
|
+
mouseUpListenerRef.current = handleMouseUp;
|
|
34
|
+
window.addEventListener('mousemove', handleMouseMove);
|
|
35
|
+
window.addEventListener('mouseup', handleMouseUp);
|
|
36
|
+
}, [
|
|
37
|
+
direction,
|
|
38
|
+
minHeight,
|
|
39
|
+
maxHeight,
|
|
40
|
+
startHeight,
|
|
41
|
+
onHeightChange
|
|
42
|
+
]);
|
|
43
|
+
return /*#__PURE__*/ jsx("div", {
|
|
44
|
+
className: cn(ResizeHandle_module.handle, ResizeHandle_module[direction]),
|
|
45
|
+
onMouseDown: handleMouseDown,
|
|
46
|
+
children: /*#__PURE__*/ jsx(Drag12Icon, {})
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
ResizeHandle.displayName = 'ResizeHandle';
|
|
50
|
+
export { ResizeHandle };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.handle-KOfccF {
|
|
2
|
+
cursor: ns-resize;
|
|
3
|
+
width: 12px;
|
|
4
|
+
height: 12px;
|
|
5
|
+
color: var(--elements-normal);
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
display: flex;
|
|
9
|
+
position: absolute;
|
|
10
|
+
right: 1px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.top-i74sAn {
|
|
14
|
+
top: 1px;
|
|
15
|
+
transform: rotate(270deg);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.bottom-O20AqX {
|
|
19
|
+
bottom: 1px;
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResizeHandle } from './ResizeHandle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResizeHandle } from "./ResizeHandle.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ValueOf } from '../../../common';
|
|
2
|
+
import type { IFileUploaderProps, IUseFileUploaderOptions } from '../../FileUploader/FileUploader.types';
|
|
3
|
+
export declare const TextfieldSize: {
|
|
4
|
+
readonly M: "m";
|
|
5
|
+
readonly L: "l";
|
|
6
|
+
};
|
|
7
|
+
export type TextfieldSizeValue = ValueOf<typeof TextfieldSize>;
|
|
8
|
+
export type ITextfieldUseFileUploaderOptions = Omit<IUseFileUploaderOptions, 'onDrop'>;
|
|
9
|
+
export interface ITextfieldFileUploaderProps extends Omit<IFileUploaderProps, 'testId'> {
|
|
10
|
+
handleOpen: () => void;
|
|
11
|
+
getInputProps: () => object;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MIN_HEIGHT_L, MIN_HEIGHT_M } from "../consts/index.js";
|
|
2
|
+
import { TextfieldSize } from "../types/index.js";
|
|
3
|
+
const isSizeM = (size)=>size === TextfieldSize.M;
|
|
4
|
+
const getMinHeight = (minHeightProp, size = TextfieldSize.M)=>{
|
|
5
|
+
if (void 0 !== minHeightProp && minHeightProp >= 0) return minHeightProp;
|
|
6
|
+
return isSizeM(size) ? MIN_HEIGHT_M : MIN_HEIGHT_L;
|
|
7
|
+
};
|
|
8
|
+
export { getMinHeight, isSizeM };
|
|
@@ -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 { ToggleContent } from "./components/ToggleContent.js";
|
|
9
9
|
import { ToggleHelp } from "./components/ToggleHelp.js";
|
|
10
10
|
import { ThumbChecked } from "./icons/ThumbChecked.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type TooltipProps as RcTooltipProps } from 'rc-tooltip/es/Tooltip';
|
|
2
2
|
import type { IHasTestId, ValueOf } from '../../common/types';
|
|
3
|
+
import type { TTooltipBodyColorToken } from './types';
|
|
3
4
|
export declare const Placement: {
|
|
4
5
|
readonly TOP: "top";
|
|
5
6
|
readonly TOP_LEFT: "topLeft";
|
|
@@ -22,5 +23,7 @@ export interface TooltipProps extends IHasTestId, RcTooltipProps {
|
|
|
22
23
|
afterHide?: () => void;
|
|
23
24
|
offset: [number, number];
|
|
24
25
|
hideCloseButton?: boolean;
|
|
26
|
+
arrowClassName?: string;
|
|
27
|
+
colorToken?: TTooltipBodyColorToken;
|
|
25
28
|
}
|
|
26
|
-
export declare const Tooltip: (
|
|
29
|
+
export declare const Tooltip: ({ testId, id, overlay, offset, visible, onVisibleChange, placement, trigger, children, afterHide, getTooltipContainer, zIndex, hideCloseButton, overlayClassName, arrowClassName, colorToken, arrowContent, ...restProps }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,7 @@ import rc_tooltip from "rc-tooltip";
|
|
|
4
4
|
import { cn } from "../../common/css/cn.js";
|
|
5
5
|
import { RemoveClose12Icon } from "../../icon/index.js";
|
|
6
6
|
import { ArrowIcon } from "./ArrowIcon.js";
|
|
7
|
-
import { ArrowAlign } from "./
|
|
7
|
+
import { ArrowAlign } from "./constants/index.js";
|
|
8
8
|
import { useCorrectedArrowStyles } from "./hooks.js";
|
|
9
9
|
import Tooltip_module from "./Tooltip.module.js";
|
|
10
10
|
const alignPointsMap = {
|
|
@@ -35,10 +35,9 @@ const Placement = {
|
|
|
35
35
|
BOTTOM_LEFT: 'bottomLeft',
|
|
36
36
|
BOTTOM_RIGHT: 'bottomRight'
|
|
37
37
|
};
|
|
38
|
-
const Tooltip = (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
], children, afterHide, getTooltipContainer, zIndex, hideCloseButton = false, overlayClassName, arrowContent, ...otherProps } = props;
|
|
38
|
+
const Tooltip = ({ testId, id, overlay, offset, visible, onVisibleChange, placement = Placement.RIGHT, trigger = [
|
|
39
|
+
'click'
|
|
40
|
+
], children, afterHide, getTooltipContainer, zIndex, hideCloseButton = false, overlayClassName, arrowClassName, colorToken = 'light', arrowContent, ...restProps })=>{
|
|
42
41
|
const [arrowAlign, setArrowAlign] = useState(ArrowAlign.TOP_LEFT);
|
|
43
42
|
const [refClose, setRefClose] = useState(null);
|
|
44
43
|
const handleHide = useCallback((e)=>{
|
|
@@ -72,18 +71,19 @@ const Tooltip = (props)=>{
|
|
|
72
71
|
const joinedXY = align.points?.join('_') ?? '';
|
|
73
72
|
setArrowAlign(alignPointsMap[joinedXY] ?? Placement.TOP);
|
|
74
73
|
}, []);
|
|
74
|
+
const bodyClassName = Tooltip_module[`${colorToken}ColorToken`];
|
|
75
75
|
return /*#__PURE__*/ jsx(rc_tooltip, {
|
|
76
76
|
id: id,
|
|
77
77
|
visible: visible,
|
|
78
78
|
prefixCls: "tooltip-dt",
|
|
79
|
-
overlayClassName: cn(Tooltip_module.overlayWrapper, overlayClassName),
|
|
79
|
+
overlayClassName: cn(Tooltip_module.overlayWrapper, bodyClassName, overlayClassName),
|
|
80
80
|
placement: placement,
|
|
81
81
|
trigger: trigger,
|
|
82
82
|
destroyTooltipOnHide: true,
|
|
83
83
|
arrowContent: /*#__PURE__*/ jsx("div", {
|
|
84
|
-
className: cn(Tooltip_module.arrowIcon, cssCorrectedArrowAlign),
|
|
84
|
+
className: cn(Tooltip_module.arrowIcon, cssCorrectedArrowAlign, bodyClassName),
|
|
85
85
|
children: arrowContent ? arrowContent : /*#__PURE__*/ jsx(ArrowIcon, {
|
|
86
|
-
className: Tooltip_module.arrow
|
|
86
|
+
className: cn(Tooltip_module.arrow, arrowClassName)
|
|
87
87
|
})
|
|
88
88
|
}),
|
|
89
89
|
onVisibleChange: onVisibleChange,
|
|
@@ -105,7 +105,7 @@ const Tooltip = (props)=>{
|
|
|
105
105
|
})
|
|
106
106
|
]
|
|
107
107
|
}),
|
|
108
|
-
...
|
|
108
|
+
...restProps,
|
|
109
109
|
children: children
|
|
110
110
|
});
|
|
111
111
|
};
|
|
@@ -26,6 +26,8 @@ const Tooltip_module = {
|
|
|
26
26
|
right_top: "right_top-v2LpVW",
|
|
27
27
|
rightTop: "right_top-v2LpVW",
|
|
28
28
|
left_top: "left_top-i5Yqg8",
|
|
29
|
-
leftTop: "left_top-i5Yqg8"
|
|
29
|
+
leftTop: "left_top-i5Yqg8",
|
|
30
|
+
lightColorToken: "lightColorToken-IGd7lI",
|
|
31
|
+
darkColorToken: "darkColorToken-BeXlX6"
|
|
30
32
|
};
|
|
31
33
|
export default Tooltip_module;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.overlayWrapper-Nfxvlh {
|
|
2
2
|
cursor: initial;
|
|
3
|
-
background: var(--light-white);
|
|
3
|
+
background: var(--tooltip-body-background, var(--light-white));
|
|
4
4
|
border-radius: 4px;
|
|
5
5
|
padding: 20px 24px 20px 20px;
|
|
6
6
|
position: absolute;
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.arrowIcon-d14ZUp .arrow-xeigvs {
|
|
19
|
-
fill: var(--bgd-white, #fff);
|
|
19
|
+
fill: var(--tooltip-body-background, var(--bgd-white, #fff));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.closeIcon-YhM5xC {
|
|
23
23
|
cursor: pointer;
|
|
24
|
-
color: var(--dark-grey-dark-900);
|
|
24
|
+
color: var(--tooltip-close-icon-color, var(--dark-grey-dark-900));
|
|
25
25
|
position: absolute;
|
|
26
26
|
top: 13px;
|
|
27
27
|
right: 13px;
|
|
@@ -96,3 +96,13 @@
|
|
|
96
96
|
transform: rotate(180deg);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
.lightColorToken-IGd7lI {
|
|
100
|
+
--tooltip-body-background: var(--bgd-white);
|
|
101
|
+
--tooltip-close-icon-color: var(--text-primary);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.darkColorToken-BeXlX6 {
|
|
105
|
+
--tooltip-body-background: var(--invert-background);
|
|
106
|
+
--tooltip-close-icon-color: var(--invert-text);
|
|
107
|
+
}
|
|
108
|
+
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ValueOf } from '../../common/types';
|
|
2
1
|
export declare const ArrowAlign: {
|
|
3
2
|
readonly TOP_CENTER: "top_center";
|
|
4
3
|
readonly TOP_LEFT: "top_left";
|
|
@@ -13,4 +12,3 @@ export declare const ArrowAlign: {
|
|
|
13
12
|
readonly TOP_RIGHT: "top_right";
|
|
14
13
|
readonly BOTTOM_RIGHT: "bottom_right";
|
|
15
14
|
};
|
|
16
|
-
export type ArrowAlignValue = ValueOf<typeof ArrowAlign>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ArrowAlignValue } from './consts';
|
|
2
1
|
import { type TooltipProps } from './Tooltip';
|
|
2
|
+
import type { TArrowAlignValue } from './types';
|
|
3
3
|
interface ReturnObj {
|
|
4
4
|
correctedOffset?: [number, number];
|
|
5
5
|
cssCorrectedArrowAlign?: string;
|
|
@@ -8,7 +8,7 @@ interface Options {
|
|
|
8
8
|
offset: TooltipProps['offset'];
|
|
9
9
|
placement: TooltipProps['placement'];
|
|
10
10
|
styles: Record<string, string>;
|
|
11
|
-
arrowAlign:
|
|
11
|
+
arrowAlign: TArrowAlignValue;
|
|
12
12
|
}
|
|
13
13
|
export declare const useCorrectedArrowStyles: ({ offset, placement, styles, arrowAlign, }: Options) => ReturnObj;
|
|
14
14
|
export {};
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type IHasTestId } from '../../common';
|
|
2
|
+
import { type Viewer } from './types';
|
|
3
|
+
export type ViewersStackProps = {
|
|
4
|
+
viewers: Viewer[];
|
|
5
|
+
maxVisibleCount?: number;
|
|
6
|
+
label?: string;
|
|
7
|
+
animated?: boolean;
|
|
8
|
+
tooltipZIndex?: number;
|
|
9
|
+
} & IHasTestId;
|
|
10
|
+
export declare const ViewersStack: {
|
|
11
|
+
({ viewers, label, testId, animated, maxVisibleCount, tooltipZIndex, }: ViewersStackProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { Text } from "../Text/Text.js";
|
|
4
|
+
import { Avatar } from "./components/Avatar/Avatar.js";
|
|
5
|
+
import { Counter } from "./components/Counter/Counter.js";
|
|
6
|
+
import { ViewersTooltip } from "./components/ViewersTooltip/ViewersTooltip.js";
|
|
7
|
+
import { COLORS, Size } from "./types.js";
|
|
8
|
+
import { getColorById, getScaledItemZIndexStyle } from "./utils.js";
|
|
9
|
+
import ViewersStack_module from "./ViewersStack.module.js";
|
|
10
|
+
const DEFAULT_MAX_VISIBLE_COUNT = 3;
|
|
11
|
+
const MIN_TOOLTIP_Z_INDEX = 2;
|
|
12
|
+
const DEFAULT_TOOLTIP_Z_INDEX = 10;
|
|
13
|
+
const ViewersStack = ({ viewers, label, testId, animated = true, maxVisibleCount = DEFAULT_MAX_VISIBLE_COUNT, tooltipZIndex = DEFAULT_TOOLTIP_Z_INDEX })=>{
|
|
14
|
+
const viewersLength = viewers.length;
|
|
15
|
+
const hasOverflow = viewersLength > maxVisibleCount;
|
|
16
|
+
const validatedTooltipZIndex = tooltipZIndex < MIN_TOOLTIP_Z_INDEX ? MIN_TOOLTIP_Z_INDEX : tooltipZIndex;
|
|
17
|
+
const [visibleViewers, overflowedViewers] = useMemo(()=>{
|
|
18
|
+
const coloredViewers = viewers.map((viewer)=>({
|
|
19
|
+
...viewer,
|
|
20
|
+
color: getColorById(viewer.id, COLORS)
|
|
21
|
+
}));
|
|
22
|
+
const visibleViewers = hasOverflow ? coloredViewers.slice(0, maxVisibleCount - 1) : coloredViewers;
|
|
23
|
+
const overflowedViewers = hasOverflow ? coloredViewers.slice(maxVisibleCount - 1) : [];
|
|
24
|
+
return [
|
|
25
|
+
visibleViewers,
|
|
26
|
+
overflowedViewers
|
|
27
|
+
];
|
|
28
|
+
}, [
|
|
29
|
+
hasOverflow,
|
|
30
|
+
maxVisibleCount,
|
|
31
|
+
viewers
|
|
32
|
+
]);
|
|
33
|
+
if (!viewersLength) return null;
|
|
34
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
35
|
+
className: ViewersStack_module.wrapper,
|
|
36
|
+
"data-test-id": testId,
|
|
37
|
+
children: [
|
|
38
|
+
/*#__PURE__*/ jsxs("div", {
|
|
39
|
+
className: ViewersStack_module.container,
|
|
40
|
+
"data-test-id": "avatars",
|
|
41
|
+
style: getScaledItemZIndexStyle(validatedTooltipZIndex),
|
|
42
|
+
children: [
|
|
43
|
+
visibleViewers.map((viewer, index)=>/*#__PURE__*/ jsx(ViewersTooltip, {
|
|
44
|
+
viewers: viewer,
|
|
45
|
+
testId: testId,
|
|
46
|
+
zIndex: validatedTooltipZIndex,
|
|
47
|
+
children: /*#__PURE__*/ jsx(Avatar, {
|
|
48
|
+
label: viewer.label,
|
|
49
|
+
image: viewer.image,
|
|
50
|
+
color: viewer.color,
|
|
51
|
+
size: Size.M,
|
|
52
|
+
bordered: true,
|
|
53
|
+
animated: animated,
|
|
54
|
+
className: ViewersStack_module.avatarsItem,
|
|
55
|
+
testId: `${viewer.id}-avatar`
|
|
56
|
+
})
|
|
57
|
+
}, `${viewer.id}-${index}`)),
|
|
58
|
+
hasOverflow && /*#__PURE__*/ jsx(ViewersTooltip, {
|
|
59
|
+
viewers: overflowedViewers,
|
|
60
|
+
testId: testId,
|
|
61
|
+
zIndex: validatedTooltipZIndex,
|
|
62
|
+
children: /*#__PURE__*/ jsx(Counter, {
|
|
63
|
+
count: overflowedViewers.length,
|
|
64
|
+
className: ViewersStack_module.avatarsItem,
|
|
65
|
+
animated: animated
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
}),
|
|
70
|
+
label && /*#__PURE__*/ jsx(Text.Body, {
|
|
71
|
+
as: "label",
|
|
72
|
+
testId: "label",
|
|
73
|
+
children: label
|
|
74
|
+
})
|
|
75
|
+
]
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
ViewersStack.displayName = 'ViewersStack';
|
|
79
|
+
export { ViewersStack };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.wrapper-HKt5AT {
|
|
2
|
+
align-items: center;
|
|
3
|
+
gap: 12px;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.container-Lfw1tF {
|
|
8
|
+
align-items: center;
|
|
9
|
+
height: 20px;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.avatarsItem-hZ6Air {
|
|
15
|
+
cursor: default;
|
|
16
|
+
margin-right: -7px;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import { type IHasTestId } from '../../../../common';
|
|
3
|
+
import { type ColoredViewer, type ColorValue, type SizeValue } from '../../types';
|
|
4
|
+
export type AvatarProps = Omit<ColoredViewer, 'id'> & HTMLAttributes<HTMLDivElement> & IHasTestId & {
|
|
5
|
+
size: SizeValue;
|
|
6
|
+
bordered?: boolean;
|
|
7
|
+
color?: ColorValue;
|
|
8
|
+
animated?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const Avatar: {
|
|
11
|
+
({ image, label, size, bordered, color, className, testId, animated, ...restProps }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn } from "../../../../common/index.js";
|
|
4
|
+
import { Text, TextColor, TextVariant } from "../../../Text/Text.js";
|
|
5
|
+
import { Size } from "../../types.js";
|
|
6
|
+
import common_module from "../common.module.js";
|
|
7
|
+
import Avatar_module from "./Avatar.module.js";
|
|
8
|
+
const Avatar = ({ image, label, size, bordered, color, className, testId, animated, ...restProps })=>{
|
|
9
|
+
const containerClassName = cn(Avatar_module.container, size === Size.M ? Avatar_module.sizeM : Avatar_module.sizeL, color && Avatar_module[color], bordered && Avatar_module.bordered, animated && common_module.animated);
|
|
10
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
11
|
+
className: cn(common_module.wrapper, className),
|
|
12
|
+
children: [
|
|
13
|
+
/*#__PURE__*/ jsx("div", {
|
|
14
|
+
...restProps,
|
|
15
|
+
className: containerClassName,
|
|
16
|
+
"data-test-id": testId,
|
|
17
|
+
children: image && /*#__PURE__*/ jsx("img", {
|
|
18
|
+
"data-test-id": "image",
|
|
19
|
+
src: image,
|
|
20
|
+
alt: label,
|
|
21
|
+
className: Avatar_module.image
|
|
22
|
+
})
|
|
23
|
+
}),
|
|
24
|
+
!image && /*#__PURE__*/ jsx(Text, {
|
|
25
|
+
variant: size === Size.M ? TextVariant.caption : TextVariant.body,
|
|
26
|
+
colorToken: TextColor.invert,
|
|
27
|
+
className: cn(common_module.text),
|
|
28
|
+
"data-test-id": "letter",
|
|
29
|
+
children: label.charAt(0).toUpperCase()
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
Avatar.displayName = 'Avatar';
|
|
35
|
+
export { Avatar };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./Avatar_module.css";
|
|
2
|
+
const Avatar_module = {
|
|
3
|
+
container: "container-cGXPpK",
|
|
4
|
+
sizeM: "sizeM-oMfsK4",
|
|
5
|
+
sizeL: "sizeL-JE5CbR",
|
|
6
|
+
green: "green-ZqE4pT",
|
|
7
|
+
yellow: "yellow-a_8Hj4",
|
|
8
|
+
pink: "pink-RJTX3n",
|
|
9
|
+
violet: "violet-E_1yLC",
|
|
10
|
+
bordered: "bordered-ZIj3OP",
|
|
11
|
+
image: "image-pj5soj"
|
|
12
|
+
};
|
|
13
|
+
export default Avatar_module;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.container-cGXPpK {
|
|
2
|
+
width: var(--avatar-diameter);
|
|
3
|
+
height: var(--avatar-diameter);
|
|
4
|
+
min-width: var(--avatar-diameter);
|
|
5
|
+
min-height: var(--avatar-diameter);
|
|
6
|
+
background-color: var(--border-normal);
|
|
7
|
+
border-radius: 50%;
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sizeM-oMfsK4 {
|
|
13
|
+
--avatar-diameter: 20px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.sizeL-JE5CbR {
|
|
17
|
+
--avatar-diameter: 32px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.green-ZqE4pT {
|
|
21
|
+
background-color: var(--viewers-stack-green);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.yellow-a_8Hj4 {
|
|
25
|
+
background-color: var(--viewers-stack-yellow);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pink-RJTX3n {
|
|
29
|
+
background-color: var(--viewers-stack-pink);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.violet-E_1yLC {
|
|
33
|
+
background-color: var(--viewers-stack-violet);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.bordered-ZIj3OP {
|
|
37
|
+
border: 1px solid var(--border-normal);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.image-pj5soj {
|
|
41
|
+
object-fit: cover;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
export type CounterProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
count: number;
|
|
4
|
+
animated?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const Counter: {
|
|
7
|
+
({ count, animated, className, ...restProps }: CounterProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|