@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
|
@@ -70,69 +70,81 @@ const ruLocaleValues = {
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
DateRangeFilter: {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
dayQuickFilters: {
|
|
82
|
-
yesterday: 'Вчера',
|
|
83
|
-
today: 'Сегодня'
|
|
84
|
-
},
|
|
85
|
-
footer: {
|
|
86
|
-
timeSelectionToggle: 'Указать время',
|
|
87
|
-
timeSelectionToggleHint: 'Указать время можно только для\u00A0периода',
|
|
88
|
-
clearFilterButton: 'Сбросить фильтр'
|
|
89
|
-
},
|
|
90
|
-
slider: {
|
|
91
|
-
day: {
|
|
92
|
-
title: 'День',
|
|
93
|
-
placeholder: 'Выберите день',
|
|
94
|
-
dateFormat: 'd MMMM yyyy'
|
|
73
|
+
translate: {
|
|
74
|
+
radiobuttons: {
|
|
75
|
+
period: 'Период',
|
|
76
|
+
day: 'День',
|
|
77
|
+
week: 'Неделя',
|
|
78
|
+
month: 'Месяц',
|
|
79
|
+
anyDate: 'Указана любая дата',
|
|
80
|
+
noDate: 'Дата не указана'
|
|
95
81
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
82
|
+
dayQuickFilters: {
|
|
83
|
+
yesterday: 'Вчера',
|
|
84
|
+
today: 'Сегодня'
|
|
85
|
+
},
|
|
86
|
+
footer: {
|
|
87
|
+
timeSelectionToggle: 'Указать время',
|
|
88
|
+
timeSelectionToggleHint: 'Указать время можно только для\u00A0периода',
|
|
89
|
+
clearFilterButton: 'Сбросить фильтр'
|
|
90
|
+
},
|
|
91
|
+
slider: {
|
|
92
|
+
day: {
|
|
93
|
+
title: 'День',
|
|
94
|
+
placeholder: 'Выберите день'
|
|
95
|
+
},
|
|
96
|
+
week: {
|
|
97
|
+
title: 'Неделя',
|
|
98
|
+
placeholder: 'Выберите неделю'
|
|
108
99
|
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
100
|
+
month: {
|
|
101
|
+
title: 'Месяц',
|
|
102
|
+
placeholder: 'Выберите месяц'
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
format: {
|
|
107
|
+
slider: {
|
|
108
|
+
day: {
|
|
109
|
+
dateFormat: 'd MMMM yyyy'
|
|
110
|
+
},
|
|
111
|
+
week: {
|
|
112
|
+
dateFormat: {
|
|
113
|
+
sameMonth: {
|
|
114
|
+
firstDate: 'd',
|
|
115
|
+
endDate: 'd MMMM yyyy'
|
|
116
|
+
},
|
|
117
|
+
differentMonth: {
|
|
118
|
+
firstDate: 'd MMM',
|
|
119
|
+
endDate: 'd MMM yyyy'
|
|
120
|
+
}
|
|
113
121
|
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
122
|
+
tooltipDateFormat: {
|
|
123
|
+
sameMonth: {
|
|
124
|
+
firstDate: 'd',
|
|
125
|
+
endDate: 'd MMMM yyyy'
|
|
126
|
+
},
|
|
127
|
+
differentMonth: {
|
|
128
|
+
firstDate: 'd MMMM',
|
|
129
|
+
endDate: 'd MMMM yyyy'
|
|
130
|
+
}
|
|
117
131
|
}
|
|
132
|
+
},
|
|
133
|
+
month: {
|
|
134
|
+
dateFormat: 'LLLL yyyy'
|
|
118
135
|
}
|
|
119
136
|
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
137
|
+
monthCalendarFormat: 'LLLL',
|
|
138
|
+
dateFormat: 'dd.MM.yyyy',
|
|
139
|
+
dateWithTimeFormat: 'dd.MM.yyyy HH:mm',
|
|
140
|
+
emptyDate: {
|
|
141
|
+
withTime: '__.__.____ __:__',
|
|
142
|
+
withoutTime: '__.__.____'
|
|
143
|
+
},
|
|
144
|
+
inputMask: {
|
|
145
|
+
withTime: '99.99.9999 99:99',
|
|
146
|
+
withoutTime: '99.99.9999'
|
|
124
147
|
}
|
|
125
|
-
},
|
|
126
|
-
monthCalendarFormat: 'LLLL',
|
|
127
|
-
dateFormat: 'dd.MM.yyyy',
|
|
128
|
-
dateWithTimeFormat: 'dd.MM.yyyy HH:mm',
|
|
129
|
-
emptyDate: {
|
|
130
|
-
withTime: '__.__.____ __:__',
|
|
131
|
-
withoutTime: '__.__.____'
|
|
132
|
-
},
|
|
133
|
-
inputMask: {
|
|
134
|
-
withTime: '99.99.9999 99:99',
|
|
135
|
-
withoutTime: '99.99.9999'
|
|
136
148
|
}
|
|
137
149
|
}
|
|
138
150
|
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import type { ValueOf } from '../../common';
|
|
1
2
|
import type { Locale } from './types';
|
|
2
3
|
export type LocaleComponentName = keyof Locale;
|
|
3
|
-
export declare
|
|
4
|
+
export declare const LocaleKey: {
|
|
5
|
+
readonly Locale: "locale";
|
|
6
|
+
readonly Lang: "lang";
|
|
7
|
+
};
|
|
8
|
+
export declare function useLocale<T extends LocaleComponentName = LocaleComponentName>(componentName?: T, getBy?: ValueOf<typeof LocaleKey>): Locale[T];
|
|
@@ -3,10 +3,19 @@ import { ELanguages, LocaleContext } from "../../context/index.js";
|
|
|
3
3
|
import { enLocaleValues } from "./en-US.js";
|
|
4
4
|
import { ruLocaleValues } from "./ru-RU.js";
|
|
5
5
|
const isEnLocale = (lang)=>lang === ELanguages.EN;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const LocaleKey = {
|
|
7
|
+
Locale: 'locale',
|
|
8
|
+
Lang: 'lang'
|
|
9
|
+
};
|
|
10
|
+
function useLocale(componentName, getBy = LocaleKey.Lang) {
|
|
11
|
+
const { lang, locale, translateValues: contextTranslations } = useContext(LocaleContext);
|
|
12
|
+
const languageValue = useMemo(()=>getBy === LocaleKey.Lang ? lang : locale, [
|
|
13
|
+
getBy,
|
|
14
|
+
lang,
|
|
15
|
+
locale
|
|
16
|
+
]);
|
|
8
17
|
return useMemo(()=>{
|
|
9
|
-
const result = isEnLocale(
|
|
18
|
+
const result = isEnLocale(languageValue) ? enLocaleValues : ruLocaleValues;
|
|
10
19
|
const componentContextTranslations = contextTranslations?.[componentName] ?? {};
|
|
11
20
|
return {
|
|
12
21
|
...result[componentName],
|
|
@@ -14,8 +23,8 @@ function useLocale(componentName) {
|
|
|
14
23
|
};
|
|
15
24
|
}, [
|
|
16
25
|
componentName,
|
|
17
|
-
|
|
26
|
+
languageValue,
|
|
18
27
|
contextTranslations
|
|
19
28
|
]);
|
|
20
29
|
}
|
|
21
|
-
export { useLocale };
|
|
30
|
+
export { LocaleKey, useLocale };
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
const
|
|
1
|
+
const OVERFLOW_SUBPIXEL_TOLERANCE = 0.1;
|
|
2
|
+
const TEXT_FORM_CONTROLS = [
|
|
3
|
+
HTMLInputElement,
|
|
4
|
+
HTMLTextAreaElement
|
|
5
|
+
];
|
|
6
|
+
const isOverflowed = (element)=>{
|
|
7
|
+
const isTextFormControl = TEXT_FORM_CONTROLS.some((ElementClass)=>element instanceof ElementClass);
|
|
8
|
+
if (isTextFormControl) return element.scrollWidth > element.clientWidth;
|
|
9
|
+
if ("u" < typeof document || !element.isConnected) return false;
|
|
10
|
+
const range = document.createRange();
|
|
11
|
+
range.selectNodeContents(element);
|
|
12
|
+
const { width: contentWidth } = range.getBoundingClientRect();
|
|
13
|
+
const { width: elementWidth } = element.getBoundingClientRect();
|
|
14
|
+
const style = getComputedStyle(element);
|
|
15
|
+
const paddingLeft = parseFloat(style.paddingLeft) || 0;
|
|
16
|
+
const paddingRight = parseFloat(style.paddingRight) || 0;
|
|
17
|
+
const borderLeft = parseFloat(style.borderLeftWidth) || 0;
|
|
18
|
+
const borderRight = parseFloat(style.borderRightWidth) || 0;
|
|
19
|
+
const contentBoxWidth = elementWidth - paddingLeft - paddingRight - borderLeft - borderRight;
|
|
20
|
+
return contentWidth - contentBoxWidth > OVERFLOW_SUBPIXEL_TOLERANCE;
|
|
21
|
+
};
|
|
2
22
|
export { isOverflowed };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useEffect, useMemo, useRef } from "react";
|
|
2
|
+
import { debounce } from "../../utils/debounce/debounce.js";
|
|
3
|
+
import { useUnmount } from "../useUnmount/useUnmount.js";
|
|
4
|
+
const useDebounceCallback = (fn, delay = 500, options)=>{
|
|
5
|
+
const debouncedFn = useRef();
|
|
6
|
+
useUnmount(()=>{
|
|
7
|
+
debouncedFn.current?.cancel();
|
|
8
|
+
});
|
|
9
|
+
const debounced = useMemo(()=>debounce(fn, delay, options), [
|
|
10
|
+
fn,
|
|
11
|
+
delay,
|
|
12
|
+
options
|
|
13
|
+
]);
|
|
14
|
+
useEffect(()=>{
|
|
15
|
+
debouncedFn.current = debounced;
|
|
16
|
+
}, [
|
|
17
|
+
debounced
|
|
18
|
+
]);
|
|
19
|
+
return debounced;
|
|
20
|
+
};
|
|
21
|
+
export { useDebounceCallback };
|
|
@@ -4,6 +4,7 @@ interface UseDismissOnFocusOutsideOptions {
|
|
|
4
4
|
ref: RefObject<HTMLElement>;
|
|
5
5
|
onDismiss: () => void;
|
|
6
6
|
ignoreRefs?: Array<RefObject<HTMLElement>>;
|
|
7
|
+
shouldIgnoreTarget?: (target: Node) => boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare const useDismissOnFocusOutside: ({ enabled, ref, onDismiss, ignoreRefs, }: UseDismissOnFocusOutsideOptions) => void;
|
|
9
|
+
export declare const useDismissOnFocusOutside: ({ enabled, ref, onDismiss, ignoreRefs, shouldIgnoreTarget, }: UseDismissOnFocusOutsideOptions) => void;
|
|
9
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
|
-
const useDismissOnFocusOutside = ({ enabled, ref, onDismiss, ignoreRefs = [] })=>{
|
|
2
|
+
const useDismissOnFocusOutside = ({ enabled, ref, onDismiss, ignoreRefs = [], shouldIgnoreTarget })=>{
|
|
3
3
|
useEffect(()=>{
|
|
4
4
|
if (!enabled) return;
|
|
5
5
|
const onFocusin = (event)=>{
|
|
6
6
|
const target = event.target;
|
|
7
|
-
if (!target || ignoreRefs.some((itemRef)=>itemRef.current?.contains(target)) || ref.current?.contains(target)) return;
|
|
7
|
+
if (!target || shouldIgnoreTarget?.(target) || ignoreRefs.some((itemRef)=>itemRef.current?.contains(target)) || ref.current?.contains(target)) return;
|
|
8
8
|
onDismiss();
|
|
9
9
|
};
|
|
10
10
|
document.addEventListener('focusin', onFocusin);
|
|
@@ -15,7 +15,8 @@ const useDismissOnFocusOutside = ({ enabled, ref, onDismiss, ignoreRefs = [] })=
|
|
|
15
15
|
enabled,
|
|
16
16
|
ref,
|
|
17
17
|
onDismiss,
|
|
18
|
-
ignoreRefs
|
|
18
|
+
ignoreRefs,
|
|
19
|
+
shouldIgnoreTarget
|
|
19
20
|
]);
|
|
20
21
|
};
|
|
21
22
|
export { useDismissOnFocusOutside };
|
|
@@ -4,6 +4,7 @@ interface UseDismissOnOutsideClickOptions {
|
|
|
4
4
|
ref: RefObject<HTMLElement>;
|
|
5
5
|
onDismiss: () => void;
|
|
6
6
|
ignoreRefs?: Array<RefObject<HTMLElement>>;
|
|
7
|
+
shouldIgnoreTarget?: (target: Node) => boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare const useDismissOnOutsideClick: ({ enabled, ref, onDismiss, ignoreRefs, }: UseDismissOnOutsideClickOptions) => void;
|
|
9
|
+
export declare const useDismissOnOutsideClick: ({ enabled, ref, onDismiss, ignoreRefs, shouldIgnoreTarget, }: UseDismissOnOutsideClickOptions) => void;
|
|
9
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
|
-
const useDismissOnOutsideClick = ({ enabled, ref, onDismiss, ignoreRefs = [] })=>{
|
|
2
|
+
const useDismissOnOutsideClick = ({ enabled, ref, onDismiss, ignoreRefs = [], shouldIgnoreTarget })=>{
|
|
3
3
|
useEffect(()=>{
|
|
4
4
|
if (!enabled) return;
|
|
5
5
|
const onMousedown = (event)=>{
|
|
6
6
|
const target = event.target;
|
|
7
|
-
if (!target || ignoreRefs.some((itemRef)=>itemRef.current?.contains(target)) || !ref.current || ref.current.contains(target)) return;
|
|
7
|
+
if (!target || shouldIgnoreTarget?.(target) || ignoreRefs.some((itemRef)=>itemRef.current?.contains(target)) || !ref.current || ref.current.contains(target)) return;
|
|
8
8
|
onDismiss();
|
|
9
9
|
};
|
|
10
10
|
document.addEventListener('mousedown', onMousedown);
|
|
@@ -15,7 +15,8 @@ const useDismissOnOutsideClick = ({ enabled, ref, onDismiss, ignoreRefs = [] })=
|
|
|
15
15
|
enabled,
|
|
16
16
|
ref,
|
|
17
17
|
onDismiss,
|
|
18
|
-
ignoreRefs
|
|
18
|
+
ignoreRefs,
|
|
19
|
+
shouldIgnoreTarget
|
|
19
20
|
]);
|
|
20
21
|
};
|
|
21
22
|
export { useDismissOnOutsideClick };
|
|
@@ -3,13 +3,19 @@ const useIsElementOverflowing = (deps = [], forwardRef = null)=>{
|
|
|
3
3
|
const ref = useRef(null);
|
|
4
4
|
const innerRef = forwardRef || ref;
|
|
5
5
|
const [isOverflowing, setIsOverflowing] = useState(false);
|
|
6
|
+
const getIsOverflowing = ()=>{
|
|
7
|
+
const element = innerRef.current;
|
|
8
|
+
if (!element) return false;
|
|
9
|
+
return element.scrollWidth > element.clientWidth;
|
|
10
|
+
};
|
|
6
11
|
useEffect(()=>{
|
|
7
12
|
const element = innerRef.current;
|
|
8
|
-
if (element) setIsOverflowing(
|
|
13
|
+
if (element) setIsOverflowing(getIsOverflowing());
|
|
9
14
|
}, deps);
|
|
10
15
|
return {
|
|
11
16
|
ref: innerRef,
|
|
12
|
-
isOverflowing
|
|
17
|
+
isOverflowing,
|
|
18
|
+
getIsOverflowing
|
|
13
19
|
};
|
|
14
20
|
};
|
|
15
21
|
export { useIsElementOverflowing };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useEffect, useRef, useState } from "react";
|
|
2
|
+
const useOverflowHint = (args)=>{
|
|
3
|
+
const targetRef = useRef(null);
|
|
4
|
+
const [needShowHint, setNeedShowHint] = useState(false);
|
|
5
|
+
useEffect(()=>{
|
|
6
|
+
if (!targetRef.current) return;
|
|
7
|
+
setNeedShowHint(targetRef.current.scrollWidth > targetRef.current.clientWidth);
|
|
8
|
+
}, [
|
|
9
|
+
args.targetText
|
|
10
|
+
]);
|
|
11
|
+
return {
|
|
12
|
+
targetRef,
|
|
13
|
+
needShowHint
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export { useOverflowHint };
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { type RefObject
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
2
|
interface Options {
|
|
3
3
|
value?: string;
|
|
4
4
|
ref: RefObject<HTMLTextAreaElement>;
|
|
5
5
|
autoVerticalResize?: boolean;
|
|
6
6
|
minHeight: number;
|
|
7
|
-
maxHeight
|
|
7
|
+
maxHeight?: number;
|
|
8
8
|
limit?: number;
|
|
9
9
|
resetHeightOnClear?: boolean;
|
|
10
10
|
fitContentHeightOnInit?: boolean;
|
|
11
|
-
|
|
12
|
-
onChange?: TextareaHTMLAttributes<HTMLTextAreaElement>['onChange'];
|
|
11
|
+
hasResizeHandles?: boolean;
|
|
13
12
|
}
|
|
14
|
-
export declare const useTextField: ({ ref, autoVerticalResize, value, minHeight, maxHeight, limit, resetHeightOnClear, fitContentHeightOnInit,
|
|
13
|
+
export declare const useTextField: ({ ref, autoVerticalResize, value, minHeight, maxHeight, limit, resetHeightOnClear, fitContentHeightOnInit, hasResizeHandles, }: Options) => {
|
|
15
14
|
height: number;
|
|
15
|
+
setHeight: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
16
16
|
isFocused: boolean;
|
|
17
17
|
setIsFocused: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
18
18
|
isLimitError: boolean;
|
|
19
|
-
handleClear: () => void;
|
|
20
19
|
};
|
|
21
20
|
export {};
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
import { useLayoutEffect, useState } from "react";
|
|
2
|
-
import { createSyntheticEvent } from "../../common/react/createSyntheticEvent.js";
|
|
3
|
-
const createChangeEvent = (value)=>{
|
|
4
|
-
const nativeEvent = new Event('change');
|
|
5
|
-
Object.defineProperty(nativeEvent, 'target', {
|
|
6
|
-
writable: false,
|
|
7
|
-
value: {
|
|
8
|
-
value
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const event = createSyntheticEvent(nativeEvent);
|
|
12
|
-
return event;
|
|
13
|
-
};
|
|
14
2
|
const clampHeight = (h, minHeight, maxHeight)=>{
|
|
15
3
|
let next = h > minHeight ? h : minHeight;
|
|
16
4
|
if (maxHeight) next = next < maxHeight ? next : maxHeight;
|
|
17
5
|
return next;
|
|
18
6
|
};
|
|
19
|
-
const useTextField = ({ ref, autoVerticalResize, value, minHeight, maxHeight, limit, resetHeightOnClear, fitContentHeightOnInit,
|
|
7
|
+
const useTextField = ({ ref, autoVerticalResize, value, minHeight, maxHeight, limit, resetHeightOnClear, fitContentHeightOnInit, hasResizeHandles })=>{
|
|
20
8
|
const [isFocused, setIsFocused] = useState(false);
|
|
21
9
|
const [height, setHeight] = useState(0);
|
|
22
10
|
const isLimitError = limit ? (value?.length ?? 0) > limit : false;
|
|
@@ -32,12 +20,13 @@ const useTextField = ({ ref, autoVerticalResize, value, minHeight, maxHeight, li
|
|
|
32
20
|
const el = ref.current;
|
|
33
21
|
const prevHeight = el.style.height;
|
|
34
22
|
el.style.height = '0px';
|
|
35
|
-
const
|
|
23
|
+
const contentHeight = clampHeight(el.scrollHeight, minHeight, maxHeight);
|
|
36
24
|
el.style.height = prevHeight;
|
|
37
|
-
setHeight((prev)=>
|
|
25
|
+
setHeight((prev)=>hasResizeHandles ? Math.max(contentHeight, prev) : contentHeight);
|
|
38
26
|
}, [
|
|
39
27
|
value,
|
|
40
28
|
autoVerticalResize,
|
|
29
|
+
hasResizeHandles,
|
|
41
30
|
minHeight,
|
|
42
31
|
maxHeight,
|
|
43
32
|
resetHeightOnClear
|
|
@@ -49,19 +38,12 @@ const useTextField = ({ ref, autoVerticalResize, value, minHeight, maxHeight, li
|
|
|
49
38
|
}, [
|
|
50
39
|
fitContentHeightOnInit
|
|
51
40
|
]);
|
|
52
|
-
const handleClear = ()=>{
|
|
53
|
-
if (onChange) {
|
|
54
|
-
const event = createChangeEvent('');
|
|
55
|
-
onChange(event);
|
|
56
|
-
}
|
|
57
|
-
onClear?.();
|
|
58
|
-
};
|
|
59
41
|
return {
|
|
60
42
|
height,
|
|
43
|
+
setHeight,
|
|
61
44
|
isFocused,
|
|
62
45
|
setIsFocused,
|
|
63
|
-
isLimitError
|
|
64
|
-
handleClear
|
|
46
|
+
isLimitError
|
|
65
47
|
};
|
|
66
48
|
};
|
|
67
49
|
export { useTextField };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useUnmount: (func: () => void) => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const MsLogo12Icon = ({ stroke = 'currentColor', className })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: 12,
|
|
5
|
+
height: 12,
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 12 12",
|
|
8
|
+
className: className,
|
|
9
|
+
children: [
|
|
10
|
+
/*#__PURE__*/ jsx("path", {
|
|
11
|
+
stroke: stroke,
|
|
12
|
+
strokeLinecap: "round",
|
|
13
|
+
strokeLinejoin: "round",
|
|
14
|
+
strokeWidth: 0.9,
|
|
15
|
+
d: "M3.189 2.985c.837 0 1.271 1.416 2.202 3.23-.905 1.888-1.91 3.57-3.216 3.687q-.073.004-.144.005C1.064 9.907.5 9.21.5 8.105c0-1.4.47-2.685 1.03-3.622.538-.901 1.132-1.498 1.659-1.498"
|
|
16
|
+
}),
|
|
17
|
+
/*#__PURE__*/ jsx("path", {
|
|
18
|
+
stroke: stroke,
|
|
19
|
+
strokeLinecap: "round",
|
|
20
|
+
strokeLinejoin: "round",
|
|
21
|
+
strokeWidth: 0.9,
|
|
22
|
+
d: "M2.031 9.91c1.398 0 2.455-1.786 3.402-3.779.456-.966.881-1.979 1.307-2.837.466-.951.946-1.634 1.531-1.634.498 0 .965.413 1.43 1.044.965 1.308 1.799 3.525 1.799 4.979 0 1.218-.626 2.227-1.907 2.227z",
|
|
23
|
+
clipRule: "evenodd"
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
});
|
|
27
|
+
MsLogo12Icon.displayName = 'MsLogo12Icon';
|
|
28
|
+
export { MsLogo12Icon };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const MsLogo16Icon = ({ stroke = 'currentColor', className })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: 16,
|
|
5
|
+
height: 16,
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 16 16",
|
|
8
|
+
className: className,
|
|
9
|
+
children: [
|
|
10
|
+
/*#__PURE__*/ jsx("path", {
|
|
11
|
+
stroke: stroke,
|
|
12
|
+
strokeLinecap: "round",
|
|
13
|
+
strokeLinejoin: "round",
|
|
14
|
+
d: "M4.21 3.938c1.129 0 1.715 1.91 2.97 4.355-1.22 2.547-2.575 4.814-4.336 4.973q-.1.005-.194.006c-1.305 0-2.066-.94-2.066-2.43 0-1.887.635-3.62 1.388-4.884.726-1.216 1.528-2.02 2.238-2.02"
|
|
15
|
+
}),
|
|
16
|
+
/*#__PURE__*/ jsx("path", {
|
|
17
|
+
stroke: stroke,
|
|
18
|
+
strokeLinecap: "round",
|
|
19
|
+
strokeLinejoin: "round",
|
|
20
|
+
d: "M2.648 13.276c1.885 0 3.31-2.409 4.588-5.096.615-1.303 1.188-2.668 1.762-3.825.63-1.283 1.275-2.203 2.065-2.203.67 0 1.301.556 1.928 1.407 1.301 1.764 2.425 4.753 2.425 6.714 0 1.642-.843 3.002-2.57 3.002z",
|
|
21
|
+
clipRule: "evenodd"
|
|
22
|
+
})
|
|
23
|
+
]
|
|
24
|
+
});
|
|
25
|
+
MsLogo16Icon.displayName = 'MsLogo16Icon';
|
|
26
|
+
export { MsLogo16Icon };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const MsLogo20Icon = ({ stroke = 'currentColor', className })=>/*#__PURE__*/ jsxs("svg", {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: 20,
|
|
5
|
+
height: 20,
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 20 20",
|
|
8
|
+
className: className,
|
|
9
|
+
children: [
|
|
10
|
+
/*#__PURE__*/ jsx("path", {
|
|
11
|
+
stroke: stroke,
|
|
12
|
+
strokeLinecap: "round",
|
|
13
|
+
strokeLinejoin: "round",
|
|
14
|
+
strokeWidth: 1.1,
|
|
15
|
+
d: "M5.264 4.922c1.41 0 2.143 2.387 3.71 5.444-1.523 3.183-3.217 6.018-5.419 6.216q-.124.006-.243.008c-1.63 0-2.582-1.176-2.582-3.038 0-2.358.794-4.525 1.736-6.104.907-1.52 1.91-2.526 2.797-2.526"
|
|
16
|
+
}),
|
|
17
|
+
/*#__PURE__*/ jsx("path", {
|
|
18
|
+
stroke: stroke,
|
|
19
|
+
strokeLinecap: "round",
|
|
20
|
+
strokeLinejoin: "round",
|
|
21
|
+
strokeWidth: 1.1,
|
|
22
|
+
d: "M3.31 16.594c2.356 0 4.138-3.01 5.735-6.369.768-1.629 1.485-3.335 2.202-4.781.787-1.604 1.595-2.755 2.582-2.755.838 0 1.626.696 2.41 1.759 1.626 2.206 3.031 5.942 3.031 8.393 0 2.053-1.053 3.753-3.213 3.753z",
|
|
23
|
+
clipRule: "evenodd"
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
});
|
|
27
|
+
MsLogo20Icon.displayName = 'MsLogo20Icon';
|
|
28
|
+
export { MsLogo20Icon };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const MyApps12Icon = ({ stroke = 'currentColor', className })=>/*#__PURE__*/ jsx("svg", {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: 12,
|
|
5
|
+
height: 12,
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 12 12",
|
|
8
|
+
className: className,
|
|
9
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
10
|
+
stroke: stroke,
|
|
11
|
+
strokeLinecap: "round",
|
|
12
|
+
strokeLinejoin: "round",
|
|
13
|
+
strokeWidth: 0.9,
|
|
14
|
+
d: "M3.817 1.643c.27.263.431.62.45.997L5.64 1.275a.502.502 0 0 1 .75 0L7.5 2.43a1.6 1.6 0 0 0-.428.3 1.545 1.545 0 0 0 2.183 2.183q.184-.19.3-.428l1.17 1.155a.5.5 0 0 1 0 .75L9.36 7.733A1.537 1.537 0 1 1 7.732 9.36L6.36 10.725a.503.503 0 0 1-.75 0L4.5 9.57q.238-.116.427-.3A1.549 1.549 0 1 0 2.43 7.515L1.275 6.36a.502.502 0 0 1 0-.75L2.64 4.268a1.5 1.5 0 0 1-.998-.45 1.538 1.538 0 1 1 2.175-2.175"
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
MyApps12Icon.displayName = 'MyApps12Icon';
|
|
18
|
+
export { MyApps12Icon };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const MyApps16Icon = ({ stroke = 'currentColor', className })=>/*#__PURE__*/ jsx("svg", {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: 16,
|
|
5
|
+
height: 16,
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 16 16",
|
|
8
|
+
className: className,
|
|
9
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
10
|
+
stroke: stroke,
|
|
11
|
+
strokeLinecap: "round",
|
|
12
|
+
strokeLinejoin: "round",
|
|
13
|
+
d: "M4.892 1.769c.388.379.618.89.646 1.432l1.97-1.96a.722.722 0 0 1 1.077 0L10.179 2.9q-.342.166-.614.43a2.218 2.218 0 0 0 3.133 3.134c.176-.18.321-.388.431-.614l1.68 1.658a.72.72 0 0 1 0 1.077l-1.96 1.927a2.208 2.208 0 1 1-2.337 2.337l-1.97 1.96a.722.722 0 0 1-1.077 0L5.871 13.15q.342-.166.614-.431A2.223 2.223 0 1 0 2.9 10.2L1.241 8.542a.722.722 0 0 1 0-1.077l1.96-1.927a2.15 2.15 0 0 1-1.432-.646 2.208 2.208 0 1 1 3.123-3.123"
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
MyApps16Icon.displayName = 'MyApps16Icon';
|
|
17
|
+
export { MyApps16Icon };
|