@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
package/README.md
CHANGED
|
@@ -57,6 +57,7 @@ ReactDOM.render(
|
|
|
57
57
|
- AutoComplete
|
|
58
58
|
- Badge
|
|
59
59
|
- Banner
|
|
60
|
+
- BentoBlock
|
|
60
61
|
- BodyL
|
|
61
62
|
- BodyText
|
|
62
63
|
- BodyTextStrong
|
|
@@ -70,12 +71,13 @@ ReactDOM.render(
|
|
|
70
71
|
- Chip
|
|
71
72
|
- Counter
|
|
72
73
|
- Datepicker
|
|
74
|
+
- DateRange
|
|
73
75
|
- Dot
|
|
74
76
|
- Dropdown
|
|
77
|
+
- EditableDate
|
|
75
78
|
- EditableTitle
|
|
76
79
|
- EmptyState
|
|
77
80
|
- EmptyStateLarge
|
|
78
|
-
- FieldRow
|
|
79
81
|
- FileUploader
|
|
80
82
|
- H1
|
|
81
83
|
- H2
|
|
@@ -87,16 +89,19 @@ ReactDOM.render(
|
|
|
87
89
|
- HStack
|
|
88
90
|
- ImagePreview
|
|
89
91
|
- Indicator
|
|
90
|
-
-
|
|
92
|
+
- Informer
|
|
91
93
|
- Input
|
|
92
|
-
- InputClear
|
|
93
94
|
- InputUnit
|
|
94
95
|
- Label
|
|
95
96
|
- LabelValue
|
|
97
|
+
- LabelValueCheckbox
|
|
96
98
|
- LabelValueDate
|
|
99
|
+
- LabelValueFile
|
|
97
100
|
- LabelValueInput
|
|
101
|
+
- LabelValueLink
|
|
98
102
|
- LabelValueSelect
|
|
99
103
|
- LabelValueTextfield
|
|
104
|
+
- Layout
|
|
100
105
|
- Link
|
|
101
106
|
- Listing
|
|
102
107
|
- MentionsTextfield
|
|
@@ -104,6 +109,7 @@ ReactDOM.render(
|
|
|
104
109
|
- Multiselect
|
|
105
110
|
- OverlayActions
|
|
106
111
|
- Pagination
|
|
112
|
+
- Panel
|
|
107
113
|
- Progressbar
|
|
108
114
|
- Quantity
|
|
109
115
|
- Radiobutton
|
|
@@ -117,6 +123,7 @@ ReactDOM.render(
|
|
|
117
123
|
- Skeleton
|
|
118
124
|
- Snackbar
|
|
119
125
|
- Spinner
|
|
126
|
+
- StatusBadge
|
|
120
127
|
- Switch
|
|
121
128
|
- Tabs
|
|
122
129
|
- Text
|
|
@@ -125,4 +132,5 @@ ReactDOM.render(
|
|
|
125
132
|
- Tooltip
|
|
126
133
|
- Typography
|
|
127
134
|
- VerticalTab
|
|
135
|
+
- ViewersStack
|
|
128
136
|
- VStack
|
package/dist/colorVariables.css
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
--light-grey-alpha-8: #84a0ca14;
|
|
19
19
|
--light-grey-alpha-10: #84a0ca1a;
|
|
20
20
|
--light-grey-alpha-12: #84a0ca1f;
|
|
21
|
+
--light-blue-50: #dff0fe;
|
|
21
22
|
--light-blue-100: #bfddf7bf;
|
|
22
23
|
--light-blue-200: #b9d3f0cc;
|
|
23
24
|
--light-blue-350: #b5cae8f2;
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
--bgd-grey: var(--light-grey-100);
|
|
66
67
|
--bgd-secondary: var(--light-grey-200);
|
|
67
68
|
--bgd-overlay: #01040b5c;
|
|
69
|
+
--bgd-accent: var(--light-blue-50);
|
|
68
70
|
--button-primary-normal: var(--product-blue-700);
|
|
69
71
|
--button-primary-hover: var(--product-blue-600);
|
|
70
72
|
--button-primary-focus: var(--product-blue-500);
|
|
@@ -77,13 +79,13 @@
|
|
|
77
79
|
--button-secondary-disabled: var(--light-grey-100);
|
|
78
80
|
--border-normal: var(--light-grey-400);
|
|
79
81
|
--border-hover: var(--dark-grey-grey-800);
|
|
82
|
+
--border-focused: var(--dark-grey-dark-900);
|
|
80
83
|
--border-disable: var(--light-grey-200);
|
|
81
84
|
--border-accent: var(--product-blue-700);
|
|
82
85
|
--border-critical: var(--colorful-red-600);
|
|
83
86
|
--elements-normal: var(--dark-grey-grey-800);
|
|
84
87
|
--elements-hover: var(--dark-grey-dark-900);
|
|
85
88
|
--elements-disable: var(--light-grey-400);
|
|
86
|
-
--elements-disabled: var(--dark-grey-grey-500);
|
|
87
89
|
--elements-inactive: var(--dark-grey-grey-500);
|
|
88
90
|
--elements-accent: var(--product-blue-700);
|
|
89
91
|
--elements-positive: var(--colorful-green-600);
|
|
@@ -170,6 +172,36 @@
|
|
|
170
172
|
--status-black-01-bg: #c5c7cc;
|
|
171
173
|
}
|
|
172
174
|
}
|
|
175
|
+
|
|
176
|
+
@layer gwt-status {
|
|
177
|
+
:root {
|
|
178
|
+
--gwt-statuses-grey: #999;
|
|
179
|
+
--gwt-statuses-red: #e92919;
|
|
180
|
+
--gwt-statuses-orange: #e68116;
|
|
181
|
+
--gwt-statuses-brown: #694b1e;
|
|
182
|
+
--gwt-statuses-yellow-green: #bdae00;
|
|
183
|
+
--gwt-statuses-lime-green: #a2c617;
|
|
184
|
+
--gwt-statuses-mint-green: #86aa60;
|
|
185
|
+
--gwt-statuses-green: #008739;
|
|
186
|
+
--gwt-statuses-sky-blue: #85c6de;
|
|
187
|
+
--gwt-statuses-blue: #009fe3;
|
|
188
|
+
--gwt-statuses-dusty-blue: #427081;
|
|
189
|
+
--gwt-statuses-dark-blue: #00499a;
|
|
190
|
+
--gwt-statuses-pink: #ec619f;
|
|
191
|
+
--gwt-statuses-violet: #a466bd;
|
|
192
|
+
--gwt-statuses-dark-red: #8d1430;
|
|
193
|
+
--gwt-statuses-black: #000;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@layer viewers-stack {
|
|
198
|
+
:root {
|
|
199
|
+
--viewers-stack-green: #bae86b;
|
|
200
|
+
--viewers-stack-yellow: #ffcc71;
|
|
201
|
+
--viewers-stack-pink: #ffcad0;
|
|
202
|
+
--viewers-stack-violet: #b9aaff;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
173
205
|
}
|
|
174
206
|
}
|
|
175
207
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { IHasTabIndex, IHasTestId } from '../../common/types';
|
|
3
|
-
import type { ISelectOption } from '../Select/types';
|
|
3
|
+
import type { IRenderActionsOptions, ISelectOption } from '../Select/types';
|
|
4
4
|
import type { IRenderDropdownContentOptions, RenderInputOptions } from './type';
|
|
5
5
|
export interface AutoCompleteProps<T, R> extends IHasTestId, IHasTabIndex {
|
|
6
6
|
/** @deprecated задается через компонент в renderInput **/
|
|
@@ -25,8 +25,10 @@ export interface AutoCompleteProps<T, R> extends IHasTestId, IHasTabIndex {
|
|
|
25
25
|
renderInput: ({ inputId, ref, onOpen, onClose, onChange, }: RenderInputOptions<R>) => ReactNode;
|
|
26
26
|
renderDropdownContent?: (options: IRenderDropdownContentOptions<T>) => ReactNode;
|
|
27
27
|
helpComponent?: ReactNode;
|
|
28
|
+
renderDropdownActions?: (options: IRenderActionsOptions) => ReactNode;
|
|
29
|
+
maxDropdownHeight?: number;
|
|
28
30
|
}
|
|
29
31
|
export declare const AutoComplete: {
|
|
30
|
-
<T, R extends HTMLElement>({ testId, className, optionClassName, dropdownClassName, label, info, required, error, warning, disabled, dropdownZIndex, offsetY, offsetX, options, onSelectOption, renderInput, renderDropdownContent, helpComponent, id, }: AutoCompleteProps<T, R>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
<T, R extends HTMLElement>({ testId, className, optionClassName, dropdownClassName, label, info, required, error, warning, disabled, dropdownZIndex, offsetY, offsetX, options, onSelectOption, renderInput, renderDropdownContent, helpComponent, id, renderDropdownActions, maxDropdownHeight, }: AutoCompleteProps<T, R>): import("react/jsx-runtime").JSX.Element;
|
|
31
33
|
displayName: string;
|
|
32
34
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
|
+
import { FieldRow } from "../_shared/FieldRow/FieldRow.js";
|
|
5
|
+
import { Info } from "../_shared/Info/Info.js";
|
|
4
6
|
import { Dropdown, useDropdown } from "../Dropdown/Dropdown.js";
|
|
5
7
|
import { getListboxTriggerA11y } from "../Dropdown/utils/getListboxTriggerA11y.js";
|
|
6
|
-
import { FieldRow } from "../FieldRow/FieldRow.js";
|
|
7
|
-
import { Info } from "../Info/Info.js";
|
|
8
8
|
import { Label } from "../Label/Label.js";
|
|
9
9
|
import { OptionsList } from "../Select/OptionsList/OptionsList.js";
|
|
10
10
|
import { useId } from "../../hooks/useId/index.js";
|
|
11
|
+
import { DropdownActionsContainer } from "../Select/DropdownActionsContainer/DropdownActionsContainer.js";
|
|
12
|
+
import { useDropdownPadding } from "../Select/useDropdownPadding.js";
|
|
11
13
|
import AutoComplete_module from "./AutoComplete.module.js";
|
|
12
|
-
const AutoComplete = ({ testId, className, optionClassName, dropdownClassName, label, info, required, error, warning, disabled, dropdownZIndex, offsetY = 0, offsetX = 0, options, onSelectOption, renderInput, renderDropdownContent, helpComponent, id })=>{
|
|
14
|
+
const AutoComplete = ({ testId, className, optionClassName, dropdownClassName, label, info, required, error, warning, disabled, dropdownZIndex, offsetY = 0, offsetX = 0, options, onSelectOption, renderInput, renderDropdownContent, helpComponent, id, renderDropdownActions, maxDropdownHeight })=>{
|
|
13
15
|
const [cursor, setCursor] = useState(null);
|
|
14
16
|
const inputId = useId(id);
|
|
15
17
|
const { open, triggerRef, handleClose, handleOpen, triggerAriaProps: baseTriggerAriaProps, dropdownAriaProps } = useDropdown({
|
|
@@ -27,6 +29,7 @@ const AutoComplete = ({ testId, className, optionClassName, dropdownClassName, l
|
|
|
27
29
|
open,
|
|
28
30
|
options
|
|
29
31
|
]);
|
|
32
|
+
const { scrollPaddings, dropdownActionsContainerRefCb } = useDropdownPadding();
|
|
30
33
|
useEffect(()=>{
|
|
31
34
|
const triggerElement = triggerRef.current;
|
|
32
35
|
if (!triggerElement) return;
|
|
@@ -38,15 +41,6 @@ const AutoComplete = ({ testId, className, optionClassName, dropdownClassName, l
|
|
|
38
41
|
listboxTriggerAriaProps,
|
|
39
42
|
triggerRef
|
|
40
43
|
]);
|
|
41
|
-
const getDropdownStyle = ()=>{
|
|
42
|
-
const triggerWidth = triggerRef.current?.getBoundingClientRect()?.width ?? 0;
|
|
43
|
-
if (renderDropdownContent) return {
|
|
44
|
-
minWidth: triggerWidth
|
|
45
|
-
};
|
|
46
|
-
return {
|
|
47
|
-
width: triggerWidth
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
44
|
const handleSelect = useCallback((option)=>{
|
|
51
45
|
if (!option) return;
|
|
52
46
|
onSelectOption?.(option);
|
|
@@ -56,6 +50,17 @@ const AutoComplete = ({ testId, className, optionClassName, dropdownClassName, l
|
|
|
56
50
|
handleClose,
|
|
57
51
|
onSelectOption
|
|
58
52
|
]);
|
|
53
|
+
const getDropdownStyle = ()=>{
|
|
54
|
+
const triggerWidth = triggerRef.current?.getBoundingClientRect()?.width ?? 0;
|
|
55
|
+
if (renderDropdownContent) return {
|
|
56
|
+
minWidth: triggerWidth,
|
|
57
|
+
...scrollPaddings
|
|
58
|
+
};
|
|
59
|
+
return {
|
|
60
|
+
width: triggerWidth,
|
|
61
|
+
...scrollPaddings
|
|
62
|
+
};
|
|
63
|
+
};
|
|
59
64
|
const handleMouseDown = useCallback((e, option)=>{
|
|
60
65
|
e.preventDefault();
|
|
61
66
|
e.stopPropagation();
|
|
@@ -101,7 +106,7 @@ const AutoComplete = ({ testId, className, optionClassName, dropdownClassName, l
|
|
|
101
106
|
warning: warning,
|
|
102
107
|
disabled: disabled
|
|
103
108
|
}),
|
|
104
|
-
options && /*#__PURE__*/
|
|
109
|
+
options && /*#__PURE__*/ jsxs(Dropdown, {
|
|
105
110
|
...dropdownAriaProps,
|
|
106
111
|
open: open,
|
|
107
112
|
triggerRef: triggerRef,
|
|
@@ -112,26 +117,35 @@ const AutoComplete = ({ testId, className, optionClassName, dropdownClassName, l
|
|
|
112
117
|
className: dropdownClassName,
|
|
113
118
|
style: getDropdownStyle(),
|
|
114
119
|
onClose: handleClose,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
120
|
+
maxHeight: maxDropdownHeight,
|
|
121
|
+
children: [
|
|
122
|
+
renderDropdownContent ? renderDropdownContent({
|
|
123
|
+
cursor,
|
|
124
|
+
testId,
|
|
125
|
+
listboxId,
|
|
126
|
+
options,
|
|
127
|
+
onSelect: handleSelect,
|
|
128
|
+
onMouseDown: handleMouseDown,
|
|
129
|
+
onSetCursor: setCursor
|
|
130
|
+
}) : /*#__PURE__*/ jsx(OptionsList, {
|
|
131
|
+
listboxId: listboxId,
|
|
132
|
+
skipSelectOnTab: true,
|
|
133
|
+
items: options,
|
|
134
|
+
optionClassName: optionClassName,
|
|
135
|
+
onSelect: handleSelect,
|
|
136
|
+
onMouseDown: handleMouseDown,
|
|
137
|
+
testId: testId,
|
|
138
|
+
searchable: false,
|
|
139
|
+
cursor: cursor,
|
|
140
|
+
onSetCursor: setCursor
|
|
141
|
+
}),
|
|
142
|
+
renderDropdownActions && /*#__PURE__*/ jsx(DropdownActionsContainer, {
|
|
143
|
+
ref: dropdownActionsContainerRefCb,
|
|
144
|
+
children: renderDropdownActions({
|
|
145
|
+
closeDropdown: handleClose
|
|
146
|
+
})
|
|
147
|
+
})
|
|
148
|
+
]
|
|
135
149
|
})
|
|
136
150
|
]
|
|
137
151
|
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
|
-
import { Help } from "../Help/Help.js";
|
|
4
|
+
import { Help, HelpSize } from "../Help/Help.js";
|
|
5
5
|
import { Hint } from "../Hint/Hint.js";
|
|
6
6
|
import { Text, TextColor } from "../Text/Text.js";
|
|
7
7
|
import { Placement } from "../Tooltip/Tooltip.js";
|
|
8
|
-
import { Support12Icon } from "../../icon/index.js";
|
|
9
8
|
import Badge_module from "./Badge.module.js";
|
|
10
9
|
const badgeColors = {
|
|
11
10
|
green: 'green',
|
|
@@ -54,7 +53,7 @@ const Badge = ({ icon, label, labelClassName, help, className, variant, hintPlac
|
|
|
54
53
|
help && /*#__PURE__*/ jsx(Help, {
|
|
55
54
|
testId: "badge-help",
|
|
56
55
|
className: Badge_module.help,
|
|
57
|
-
|
|
56
|
+
size: HelpSize.S,
|
|
58
57
|
popup: /*#__PURE__*/ jsx(Text.Body, {
|
|
59
58
|
children: help
|
|
60
59
|
}),
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
padding: 0 8px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.
|
|
11
|
-
|
|
10
|
+
.help-eK4Uwn:not(:hover, :active, :focus-visible, [data-visible="true"]) {
|
|
11
|
+
color: inherit;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.content-CwHzRb {
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
gap: 4px;
|
|
18
18
|
display: flex;
|
|
19
|
-
overflow: hidden;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
.content-CwHzRb > svg {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ElementRef, type HTMLAttributes, type ReactNode, type Ref } from 'react';
|
|
2
|
+
import { type ValueOf } from '../../common';
|
|
3
|
+
import { BentoBlockPaddingVariant, BentoBlockTag } from './consts';
|
|
4
|
+
type BentoBlockTagValue = ValueOf<typeof BentoBlockTag>;
|
|
5
|
+
type DefaultBentoBlockTagValue = (typeof BentoBlockTag)['div'];
|
|
6
|
+
export interface BentoBlockProps<Tag extends BentoBlockTagValue = DefaultBentoBlockTagValue> extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
as?: Tag;
|
|
8
|
+
paddingVariant?: ValueOf<typeof BentoBlockPaddingVariant>;
|
|
9
|
+
containerClassName?: string;
|
|
10
|
+
testId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const BentoBlock: <Tag extends BentoBlockTagValue = DefaultBentoBlockTagValue>(props: BentoBlockProps<Tag> & {
|
|
13
|
+
ref?: Ref<ElementRef<Tag>>;
|
|
14
|
+
}) => ReactNode;
|
|
15
|
+
export { BentoBlockPaddingVariant, BentoBlockTag } from './consts';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createElement, forwardRef } from "react";
|
|
3
|
+
import { getOptionalTestId } from "../../common/index.js";
|
|
4
|
+
import { cn } from "../../common/css/index.js";
|
|
5
|
+
import { BentoBlockPaddingVariant, BentoBlockTag } from "./consts.js";
|
|
6
|
+
import BentoBlock_module from "./BentoBlock.module.js";
|
|
7
|
+
const ForwardedRefBentoBlock = /*#__PURE__*/ forwardRef(({ as: element = BentoBlockTag.div, paddingVariant = BentoBlockPaddingVariant.P20, containerClassName, testId, ...props }, ref)=>/*#__PURE__*/ createElement(element, {
|
|
8
|
+
...props,
|
|
9
|
+
ref,
|
|
10
|
+
'data-test-id': testId,
|
|
11
|
+
className: cn(BentoBlock_module.container, BentoBlock_module[paddingVariant], containerClassName)
|
|
12
|
+
}, /*#__PURE__*/ jsx("div", {
|
|
13
|
+
className: cn(BentoBlock_module.scrollContainer, props.className),
|
|
14
|
+
style: props.style,
|
|
15
|
+
"data-test-id": getOptionalTestId(testId, 'scroll-container'),
|
|
16
|
+
children: props.children
|
|
17
|
+
})));
|
|
18
|
+
ForwardedRefBentoBlock.displayName = 'BentoBlock';
|
|
19
|
+
const BentoBlock = ForwardedRefBentoBlock;
|
|
20
|
+
export { BentoBlock, BentoBlockPaddingVariant, BentoBlockTag };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.container-xzbFVY {
|
|
2
|
+
--bento-padding: 20px;
|
|
3
|
+
--bento-scrollbar-width: 8px;
|
|
4
|
+
--bento-right-padding: calc((var(--bento-padding) - var(--bento-scrollbar-width)) / 2);
|
|
5
|
+
padding: var(--bento-padding);
|
|
6
|
+
padding-right: var(--bento-right-padding);
|
|
7
|
+
background-color: var(--bgd-white, #fff);
|
|
8
|
+
border-radius: 12px;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
display: flex;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.p12-_3Iki0 {
|
|
14
|
+
--bento-padding: 12px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.p16-ef7B_k {
|
|
18
|
+
--bento-padding: 16px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.p20-Xgd0vH {
|
|
22
|
+
--bento-padding: 20px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.scrollContainer-_5IBjn {
|
|
26
|
+
scrollbar-gutter: stable;
|
|
27
|
+
padding-right: calc(var(--bento-right-padding) + var(--bento-scrollbar-width));
|
|
28
|
+
overflow: auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@supports selector(::-webkit-scrollbar) {
|
|
32
|
+
.scrollContainer-_5IBjn {
|
|
33
|
+
padding-right: var(--bento-right-padding);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.scrollContainer-_5IBjn::-webkit-scrollbar {
|
|
37
|
+
width: var(--bento-scrollbar-width);
|
|
38
|
+
height: var(--bento-scrollbar-width);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.scrollContainer-_5IBjn::-webkit-scrollbar-track {
|
|
42
|
+
background: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.scrollContainer-_5IBjn::-webkit-scrollbar-thumb {
|
|
46
|
+
background-color: var(--light-grey-400);
|
|
47
|
+
border-radius: 8px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const BentoBlockPaddingVariant: {
|
|
2
|
+
readonly P12: "p12";
|
|
3
|
+
readonly P16: "p16";
|
|
4
|
+
readonly P20: "p20";
|
|
5
|
+
};
|
|
6
|
+
export declare const BentoBlockTag: {
|
|
7
|
+
div: "div";
|
|
8
|
+
section: "section";
|
|
9
|
+
article: "article";
|
|
10
|
+
aside: "aside";
|
|
11
|
+
header: "header";
|
|
12
|
+
footer: "footer";
|
|
13
|
+
nav: "nav";
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const BentoBlockPaddingVariant = {
|
|
2
|
+
P12: 'p12',
|
|
3
|
+
P16: 'p16',
|
|
4
|
+
P20: 'p20'
|
|
5
|
+
};
|
|
6
|
+
const BentoBlockTag = {
|
|
7
|
+
div: 'div',
|
|
8
|
+
section: 'section',
|
|
9
|
+
article: 'article',
|
|
10
|
+
aside: 'aside',
|
|
11
|
+
header: 'header',
|
|
12
|
+
footer: 'footer',
|
|
13
|
+
nav: 'nav'
|
|
14
|
+
};
|
|
15
|
+
export { BentoBlockPaddingVariant, BentoBlockTag };
|
|
@@ -3,12 +3,12 @@ import { memo, useCallback, useEffect, useId, useRef, useState } from "react";
|
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
4
|
import { useLatestValue } from "@dnd-kit/utilities";
|
|
5
5
|
import { AnimatePresence, motion, useDragControls } from "framer-motion";
|
|
6
|
-
import lodash_debounce from "lodash.debounce";
|
|
7
6
|
import { cn } from "../../common/index.js";
|
|
8
7
|
import { useSheetContext } from "./BottomSheetContextProvider.js";
|
|
9
8
|
import { Text } from "../Text/Text.js";
|
|
10
9
|
import { useMediaQuery } from "../../hooks/index.js";
|
|
11
10
|
import { RemoveCloseIcon16Icon, Support20Icon } from "../../icon/index.js";
|
|
11
|
+
import { debounce } from "../../utils/debounce/debounce.js";
|
|
12
12
|
import { TRANSITION } from "./BottomSheet.constants.js";
|
|
13
13
|
import { BottomSheetBody } from "./BottomSheetBody.js";
|
|
14
14
|
import BottomSheet_module from "./BottomSheet.module.js";
|
|
@@ -125,7 +125,7 @@ const BottomSheet = /*#__PURE__*/ memo(({ testId = 'bottomSheet', isOpen, onClos
|
|
|
125
125
|
'TEXTAREA'
|
|
126
126
|
].includes(element.tagName);
|
|
127
127
|
};
|
|
128
|
-
const scrollIntoActive =
|
|
128
|
+
const scrollIntoActive = debounce(()=>{
|
|
129
129
|
if (!editableInFocus()) return;
|
|
130
130
|
document.activeElement?.scrollIntoView({
|
|
131
131
|
block: 'nearest',
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import { type TextAtomProps } from '../Text/Text.atom';
|
|
3
|
-
type BreadcrumbItemProps = Omit<TextAtomProps, 'variant'> & HTMLAttributes<HTMLSpanElement
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type BreadcrumbItemProps = Omit<TextAtomProps, 'variant'> & HTMLAttributes<HTMLSpanElement> & {
|
|
4
|
+
charLimitThreshold?: number;
|
|
5
|
+
hintZIndex?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const BreadcrumbItem: import("react").MemoExoticComponent<({ className, onClick, charLimitThreshold, hintZIndex, children, ...restProps }: BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,14 +1,45 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from "react";
|
|
2
|
+
import { memo, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
|
-
import {
|
|
4
|
+
import { HintWithSkip } from "../_shared/HintWithSkip/HintWithSkip.js";
|
|
5
|
+
import { Text, TextColor, TextVariant } from "../Text/Text.js";
|
|
5
6
|
import { TextAtom } from "../Text/Text.atom.js";
|
|
7
|
+
import { Placement } from "../Tooltip/Tooltip.js";
|
|
6
8
|
import Breadcrumbs_module from "./Breadcrumbs.module.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const HINT_SHOW_DELAY_SECONDS = 0.3;
|
|
10
|
+
const BreadcrumbItem = /*#__PURE__*/ memo(({ className, onClick, charLimitThreshold, hintZIndex, children, ...restProps })=>{
|
|
11
|
+
const textElementRef = useRef(null);
|
|
12
|
+
const [isTextOverflow, setIsTextOverflow] = useState(false);
|
|
13
|
+
const value = useMemo(()=>{
|
|
14
|
+
const textValue = children;
|
|
15
|
+
const isOverflow = 'number' == typeof charLimitThreshold && charLimitThreshold > 0 && textValue.length - charLimitThreshold > 1;
|
|
16
|
+
setIsTextOverflow(isOverflow);
|
|
17
|
+
if (isOverflow) return `${textValue.substring(0, charLimitThreshold)}...`;
|
|
18
|
+
return textValue;
|
|
19
|
+
}, [
|
|
20
|
+
children,
|
|
21
|
+
charLimitThreshold
|
|
22
|
+
]);
|
|
23
|
+
return /*#__PURE__*/ jsx(HintWithSkip, {
|
|
24
|
+
testId: restProps.testId,
|
|
25
|
+
overlay: /*#__PURE__*/ jsx(Text.Body, {
|
|
26
|
+
colorToken: TextColor.invert,
|
|
27
|
+
children: children
|
|
28
|
+
}),
|
|
29
|
+
skip: !isTextOverflow,
|
|
30
|
+
placement: Placement.BOTTOM,
|
|
31
|
+
zIndex: hintZIndex,
|
|
32
|
+
mouseEnterDelay: HINT_SHOW_DELAY_SECONDS,
|
|
33
|
+
mouseLeaveDelay: 0,
|
|
34
|
+
children: /*#__PURE__*/ jsx(TextAtom, {
|
|
35
|
+
ref: textElementRef,
|
|
36
|
+
variant: TextVariant.caption,
|
|
37
|
+
className: cn(Breadcrumbs_module.item, className, onClick && Breadcrumbs_module.hasClick),
|
|
38
|
+
onClick: onClick,
|
|
39
|
+
...restProps,
|
|
40
|
+
children: value
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
});
|
|
13
44
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
14
45
|
export { BreadcrumbItem };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { type FC, type HTMLAttributes } from 'react';
|
|
2
2
|
import { type IHasTestId } from '../../common/types';
|
|
3
3
|
import { BreadcrumbItem } from './BreadcrumbItem';
|
|
4
|
-
export type IBreadcrumbsProps = HTMLAttributes<HTMLDivElement> & IHasTestId
|
|
4
|
+
export type IBreadcrumbsProps = HTMLAttributes<HTMLDivElement> & IHasTestId & {
|
|
5
|
+
charLimitThreshold?: number;
|
|
6
|
+
hintZIndex?: number;
|
|
7
|
+
};
|
|
5
8
|
export declare const Breadcrumbs: FC<IBreadcrumbsProps> & {
|
|
6
9
|
Item: typeof BreadcrumbItem;
|
|
7
10
|
};
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Children, isValidElement } from "react";
|
|
2
|
+
import { Children, cloneElement, isValidElement } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
4
|
import { Right12Icon } from "../../icon/index.js";
|
|
5
5
|
import { BreadcrumbItem } from "./BreadcrumbItem.js";
|
|
6
6
|
import Breadcrumbs_module from "./Breadcrumbs.module.js";
|
|
7
|
-
const
|
|
7
|
+
const CHAR_LIMIT_THRESHOLD = 40;
|
|
8
|
+
const renderBreadcrumbItems = (children, charLimitThreshold, hintZIndex)=>{
|
|
8
9
|
const childrenArray = Children.toArray(children);
|
|
9
10
|
const lastIndex = childrenArray.length - 1;
|
|
10
11
|
return childrenArray.filter(isValidElement).map((child, idx)=>/*#__PURE__*/ jsxs("div", {
|
|
11
12
|
className: Breadcrumbs_module.itemContainer,
|
|
12
13
|
children: [
|
|
13
|
-
child,
|
|
14
|
+
/*#__PURE__*/ cloneElement(child, {
|
|
15
|
+
charLimitThreshold,
|
|
16
|
+
hintZIndex
|
|
17
|
+
}),
|
|
14
18
|
idx !== lastIndex && /*#__PURE__*/ jsx(Right12Icon, {})
|
|
15
19
|
]
|
|
16
20
|
}, idx));
|
|
17
21
|
};
|
|
18
|
-
const Breadcrumbs = ({ children, className, testId, ...
|
|
19
|
-
const items = renderBreadcrumbItems(children);
|
|
22
|
+
const Breadcrumbs = ({ children, className, testId, charLimitThreshold = CHAR_LIMIT_THRESHOLD, hintZIndex = 1, ...restProps })=>{
|
|
23
|
+
const items = renderBreadcrumbItems(children, charLimitThreshold, hintZIndex);
|
|
20
24
|
return /*#__PURE__*/ jsx("div", {
|
|
21
25
|
className: cn(Breadcrumbs_module.container, className),
|
|
22
26
|
"data-test-id": testId,
|
|
23
|
-
...
|
|
27
|
+
...restProps,
|
|
24
28
|
children: items
|
|
25
29
|
});
|
|
26
30
|
};
|
|
@@ -20,13 +20,17 @@ export declare const ButtonColor: {
|
|
|
20
20
|
readonly WHITE: "white";
|
|
21
21
|
};
|
|
22
22
|
export type ButtonColorValue = ValueOf<typeof ButtonColor>;
|
|
23
|
-
export interface
|
|
23
|
+
export interface ButtonOwnProps extends IHasTestId {
|
|
24
24
|
variant?: ButtonVariantsValue;
|
|
25
25
|
color?: ButtonColorValue;
|
|
26
26
|
size?: ButtonSizeValue;
|
|
27
|
+
disabled?: boolean;
|
|
27
28
|
isLoading?: boolean;
|
|
28
29
|
isIconButton?: boolean;
|
|
29
30
|
stretch?: boolean;
|
|
30
31
|
withHorisontalPadding?: boolean;
|
|
32
|
+
noPadding?: boolean;
|
|
31
33
|
}
|
|
32
|
-
export
|
|
34
|
+
export interface IButtonProps extends ButtonOwnProps, Omit<PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>, keyof ButtonOwnProps> {
|
|
35
|
+
}
|
|
36
|
+
export declare const Button: import("../_shared/utils/polymorphicClickableTypes").ClickableComponent<ButtonOwnProps, "button">;
|