@moysklad/uikit 30.4.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 +9 -4
- package/dist/colorVariables.css +23 -1
- package/dist/components/AutoComplete/AutoComplete.js +2 -2
- 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/Button/Button.d.ts +5 -2
- package/dist/components/Button/Button.js +28 -19
- package/dist/components/Button/Button_module.css +16 -14
- package/dist/components/Checkbox/Checkbox.js +1 -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/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 +63 -31
- 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/Help/Help_module.css +1 -1
- 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.js +10 -5
- package/dist/components/Input/components/InfoBlock.d.ts +3 -1
- package/dist/components/Input/components/InfoBlock.js +7 -4
- package/dist/components/InputUnit/InputUnit.js +4 -4
- package/dist/components/LabelValue/LabelValue.d.ts +14 -10
- package/dist/components/LabelValue/LabelValue.js +46 -25
- package/dist/components/LabelValue/LabelValue.module.js +10 -4
- package/dist/components/LabelValue/LabelValue_module.css +53 -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/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/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.js +2 -1
- 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 +20 -15
- package/dist/components/Multiselect/Input/Input.d.ts +6 -2
- package/dist/components/Multiselect/Input/Input.js +18 -4
- package/dist/components/Multiselect/Multiselect.d.ts +4 -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 +15 -9
- package/dist/components/Select/OptionsList/OptionsList.d.ts +3 -1
- package/dist/components/Select/OptionsList/OptionsList.js +37 -21
- package/dist/components/Select/OptionsList/OptionsList.module.js +2 -0
- package/dist/components/Select/OptionsList/OptionsList_module.css +15 -0
- package/dist/components/Select/Select.d.ts +2 -3
- package/dist/components/Select/Select.js +17 -7
- package/dist/components/Select/Select_module.css +5 -0
- package/dist/components/Select/ShortVariant/ShortVariant.js +1 -1
- 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 +7 -2
- package/dist/components/Textfield/Textfield.js +2 -1
- package/dist/components/Textfield/components/Container/Container.d.ts +2 -0
- package/dist/components/Textfield/components/Container/Container.js +17 -6
- 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/Toggle/Toggle.js +1 -1
- package/dist/components/ViewersStack/ViewersStack.js +5 -3
- 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.d.ts +18 -0
- package/dist/components/{FieldLabel → _shared/FieldLabel}/FieldLabel.js +19 -12
- package/dist/components/_shared/FieldLabel/FieldLabel.module.js +11 -0
- package/dist/components/{FieldLabel → _shared/FieldLabel}/FieldLabel_module.css +8 -8
- package/dist/components/{FieldLabel → _shared/FieldLabel}/components/HelpButton.d.ts +1 -1
- package/dist/components/{FieldLabel → _shared/FieldLabel}/components/HelpButton.js +2 -2
- package/dist/components/{FieldLabel → _shared/FieldLabel}/components/HelpButton.module.js +1 -1
- package/dist/components/{FieldLabel → _shared/FieldLabel}/components/HelpButton_module.css +1 -1
- 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/{Info → _shared/Info}/Info.d.ts +3 -1
- package/dist/components/{Info → _shared/Info}/Info.js +9 -6
- package/dist/components/_shared/Info/Info.module.js +9 -0
- package/dist/components/{Info → _shared/Info}/Info_module.css +6 -6
- package/dist/components/_shared/Info/types/index.d.ts +6 -0
- package/dist/components/_shared/Info/types/index.js +5 -0
- package/dist/components/{InputClear → _shared/InputClear}/InputClear.d.ts +1 -1
- package/dist/components/{InputClear → _shared/InputClear}/InputClear.js +2 -2
- package/dist/components/{InputClear → _shared/InputClear}/InputClear.module.js +3 -3
- package/dist/components/{InputClear → _shared/InputClear}/InputClear_module.css +5 -5
- 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_module.css +0 -1
- package/dist/data-grid/cells/ImageCell/ImageMiniature/ImageMiniature_module.css +1 -1
- package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.d.ts +1 -0
- package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.js +17 -5
- package/dist/data-grid/cells/components/TableSelect/TableSelect.js +3 -2
- package/dist/data-grid/headers/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.js +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/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 +1 -1
- 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/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/index.d.ts +6 -0
- package/dist/icon/index.js +6 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +8 -0
- package/dist/utils/checkIsArchivedValue.d.ts +2 -0
- package/dist/utils/checkIsArchivedValue.js +5 -0
- package/dist/utils/utils.d.ts +1 -0
- package/dist/utils/utils.js +1 -0
- package/package.json +70 -13
- package/dist/components/FieldLabel/FieldLabel.d.ts +0 -17
- package/dist/components/FieldLabel/FieldLabel.module.js +0 -11
- package/dist/components/Info/Info.module.js +0 -9
- 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/MentionsTextfield/OptionForStory/OptionForStory.d.ts +0 -7
- package/dist/components/MentionsTextfield/OptionForStory/OptionForStory.js +0 -27
- package/dist/components/MentionsTextfield/OptionForStory/OptionForStory.module.js +0 -8
- package/dist/components/MentionsTextfield/OptionForStory/OptionForStory_module.css +0 -25
- package/dist/components/MentionsTextfield/OptionForStory/index.d.ts +0 -1
- package/dist/components/MentionsTextfield/OptionForStory/index.js +0 -1
- package/dist/components/Textfield/components/Label/Label.d.ts +0 -11
- package/dist/components/Textfield/components/Label/Label.js +0 -38
- 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/components/{FieldLabel → _shared/FieldLabel}/FieldLabel.constants.d.ts +0 -0
- /package/dist/components/{FieldLabel → _shared/FieldLabel}/FieldLabel.constants.js +0 -0
- /package/dist/components/{FieldLabel → _shared/FieldLabel}/components/index.d.ts +0 -0
- /package/dist/components/{FieldLabel → _shared/FieldLabel}/components/index.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,13 +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
|
-
- FieldLabel
|
|
79
|
-
- FieldRow
|
|
80
81
|
- FileUploader
|
|
81
82
|
- H1
|
|
82
83
|
- H2
|
|
@@ -88,17 +89,19 @@ ReactDOM.render(
|
|
|
88
89
|
- HStack
|
|
89
90
|
- ImagePreview
|
|
90
91
|
- Indicator
|
|
91
|
-
-
|
|
92
|
+
- Informer
|
|
92
93
|
- Input
|
|
93
|
-
- InputClear
|
|
94
94
|
- InputUnit
|
|
95
95
|
- Label
|
|
96
96
|
- LabelValue
|
|
97
97
|
- LabelValueCheckbox
|
|
98
98
|
- LabelValueDate
|
|
99
|
+
- LabelValueFile
|
|
99
100
|
- LabelValueInput
|
|
101
|
+
- LabelValueLink
|
|
100
102
|
- LabelValueSelect
|
|
101
103
|
- LabelValueTextfield
|
|
104
|
+
- Layout
|
|
102
105
|
- Link
|
|
103
106
|
- Listing
|
|
104
107
|
- MentionsTextfield
|
|
@@ -106,6 +109,7 @@ ReactDOM.render(
|
|
|
106
109
|
- Multiselect
|
|
107
110
|
- OverlayActions
|
|
108
111
|
- Pagination
|
|
112
|
+
- Panel
|
|
109
113
|
- Progressbar
|
|
110
114
|
- Quantity
|
|
111
115
|
- Radiobutton
|
|
@@ -119,6 +123,7 @@ ReactDOM.render(
|
|
|
119
123
|
- Skeleton
|
|
120
124
|
- Snackbar
|
|
121
125
|
- Spinner
|
|
126
|
+
- StatusBadge
|
|
122
127
|
- Switch
|
|
123
128
|
- Tabs
|
|
124
129
|
- Text
|
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);
|
|
@@ -84,7 +86,6 @@
|
|
|
84
86
|
--elements-normal: var(--dark-grey-grey-800);
|
|
85
87
|
--elements-hover: var(--dark-grey-dark-900);
|
|
86
88
|
--elements-disable: var(--light-grey-400);
|
|
87
|
-
--elements-disabled: var(--dark-grey-grey-500);
|
|
88
89
|
--elements-inactive: var(--dark-grey-grey-500);
|
|
89
90
|
--elements-accent: var(--product-blue-700);
|
|
90
91
|
--elements-positive: var(--colorful-green-600);
|
|
@@ -172,6 +173,27 @@
|
|
|
172
173
|
}
|
|
173
174
|
}
|
|
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
|
+
|
|
175
197
|
@layer viewers-stack {
|
|
176
198
|
:root {
|
|
177
199
|
--viewers-stack-green: #bae86b;
|
|
@@ -1,10 +1,10 @@
|
|
|
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";
|
|
@@ -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 };
|
|
@@ -20,14 +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;
|
|
31
32
|
noPadding?: boolean;
|
|
32
33
|
}
|
|
33
|
-
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">;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createElement } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
|
+
import { ClickableTag, polymorphicClickableRef } from "../_shared/utils/polymorphicClickableTypes.js";
|
|
4
5
|
import { Loader12Icon, Loader20Icon } from "../../icon/index.js";
|
|
5
6
|
import Button_module from "./Button.module.js";
|
|
6
7
|
const ButtonSize = {
|
|
@@ -34,29 +35,37 @@ const getFilledColorClass = (color)=>{
|
|
|
34
35
|
return Button_module.filledGrey;
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
|
-
const Button =
|
|
38
|
+
const Button = polymorphicClickableRef((props, ref)=>{
|
|
39
|
+
const { testId, as: elementProp = ClickableTag.button, type, variant = ButtonVariants.PRIMARY, color, disabled, className: classNameProp, children, size = ButtonSize.L, isLoading = false, onClick, isIconButton = false, stretch = false, withHorisontalPadding = false, noPadding = false, ...rest } = props;
|
|
40
|
+
const element = elementProp;
|
|
38
41
|
const LoaderIcon = LoaderBySizeMap[size];
|
|
42
|
+
const isAnchor = element === ClickableTag.a;
|
|
39
43
|
const className = cn(Button_module.button, Button_module[variant], Button_module[size], variant === ButtonVariants.FILLED && getFilledColorClass(color), variant === ButtonVariants.FRAMELESS && noPadding && Button_module.noPadding, isLoading ? Button_module.isLoading : '', isIconButton && Button_module.iconButton, stretch && Button_module.stretch, classNameProp, withHorisontalPadding && Button_module.withHorisontalPadding);
|
|
40
44
|
const handleClick = (e)=>{
|
|
41
|
-
if (isLoading || disabled)
|
|
45
|
+
if (isLoading || disabled) {
|
|
46
|
+
if (isAnchor) e.preventDefault();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
42
49
|
onClick?.(e);
|
|
43
50
|
};
|
|
44
|
-
|
|
51
|
+
const tagSpecificProps = isAnchor ? {
|
|
52
|
+
href: disabled ? void 0 : rest.href,
|
|
53
|
+
'aria-disabled': disabled || void 0
|
|
54
|
+
} : {
|
|
55
|
+
type: type ?? 'button',
|
|
56
|
+
disabled
|
|
57
|
+
};
|
|
58
|
+
return /*#__PURE__*/ createElement(element, {
|
|
45
59
|
...rest,
|
|
46
|
-
|
|
47
|
-
ref
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
className: Button_module.spinner,
|
|
56
|
-
children: /*#__PURE__*/ jsx(LoaderIcon, {})
|
|
57
|
-
}) : null
|
|
58
|
-
]
|
|
59
|
-
});
|
|
60
|
+
...tagSpecificProps,
|
|
61
|
+
ref,
|
|
62
|
+
'data-test-id': testId,
|
|
63
|
+
className,
|
|
64
|
+
onClick: handleClick
|
|
65
|
+
}, children, isLoading && !disabled ? /*#__PURE__*/ jsx("div", {
|
|
66
|
+
className: Button_module.spinner,
|
|
67
|
+
children: /*#__PURE__*/ jsx(LoaderIcon, {})
|
|
68
|
+
}) : null);
|
|
60
69
|
});
|
|
61
70
|
Button.displayName = 'Button';
|
|
62
71
|
export { Button, ButtonColor, ButtonSize, ButtonVariants };
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
--cb-button-active-background: var(--cb-button-background);
|
|
11
11
|
--cb-button-disabled-background: var(--button-primary-disabled, #d3d8ddb3);
|
|
12
12
|
background: var(--cb-button-background);
|
|
13
|
+
width: fit-content;
|
|
13
14
|
color: var(--cb-button-color);
|
|
14
15
|
border: none;
|
|
15
16
|
align-items: center;
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
font-family: ALS Hauss, sans-serif;
|
|
18
19
|
font-size: 14px;
|
|
19
20
|
line-height: 20px;
|
|
21
|
+
text-decoration: none;
|
|
20
22
|
display: flex;
|
|
21
23
|
position: relative;
|
|
22
24
|
}
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
color: var(--cb-button-active-color);
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
.button-UGhzQm:disabled {
|
|
41
|
+
.button-UGhzQm:disabled, .button-UGhzQm[aria-disabled="true"] {
|
|
40
42
|
cursor: initial;
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
color: #0000;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
|
-
.isLoading-IoL_rp:hover:not(:disabled) > :not(.spinner-MFPKSD), .isLoading-IoL_rp:not(:disabled) > :not(.spinner-MFPKSD) {
|
|
68
|
+
.isLoading-IoL_rp:hover:not(:disabled, [aria-disabled="true"]) > :not(.spinner-MFPKSD), .isLoading-IoL_rp:not(:disabled, [aria-disabled="true"]) > :not(.spinner-MFPKSD) {
|
|
67
69
|
opacity: 0;
|
|
68
70
|
}
|
|
69
71
|
|
|
@@ -115,12 +117,12 @@
|
|
|
115
117
|
outline: none;
|
|
116
118
|
}
|
|
117
119
|
|
|
118
|
-
.primary-gpQ7Mi:disabled {
|
|
120
|
+
.primary-gpQ7Mi:disabled, .primary-gpQ7Mi[aria-disabled="true"] {
|
|
119
121
|
background: var(--cb-button-disabled-background, #f5f5f5);
|
|
120
122
|
color: var(--text-tertiary, #9fa7af);
|
|
121
123
|
}
|
|
122
124
|
|
|
123
|
-
.primary-gpQ7Mi:disabled svg path {
|
|
125
|
+
.primary-gpQ7Mi:disabled svg path, .primary-gpQ7Mi[aria-disabled="true"] svg path {
|
|
124
126
|
stroke: var(--elements-inactive, #9fa7af);
|
|
125
127
|
}
|
|
126
128
|
|
|
@@ -139,12 +141,12 @@
|
|
|
139
141
|
outline: none;
|
|
140
142
|
}
|
|
141
143
|
|
|
142
|
-
.accent-eZImES:disabled {
|
|
144
|
+
.accent-eZImES:disabled, .accent-eZImES[aria-disabled="true"] {
|
|
143
145
|
background: var(--cb-button-disabled-background, #f5f5f5);
|
|
144
146
|
color: var(--text-tertiary, #9fa7af);
|
|
145
147
|
}
|
|
146
148
|
|
|
147
|
-
.accent-eZImES:disabled svg path {
|
|
149
|
+
.accent-eZImES:disabled svg path, .accent-eZImES[aria-disabled="true"] svg path {
|
|
148
150
|
stroke: var(--elements-inactive, #9fa7af);
|
|
149
151
|
}
|
|
150
152
|
|
|
@@ -181,14 +183,14 @@
|
|
|
181
183
|
outline: 1px solid var(--cb-button-active-color);
|
|
182
184
|
}
|
|
183
185
|
|
|
184
|
-
.additional-Ftulks:disabled {
|
|
186
|
+
.additional-Ftulks:disabled, .additional-Ftulks[aria-disabled="true"] {
|
|
185
187
|
outline: 1px solid var(--border-normal, #d1d6df);
|
|
186
188
|
outline-offset: -1px;
|
|
187
189
|
background: var(--button-secondary-normal, #fff);
|
|
188
190
|
color: var(--text-tertiary, #9fa7af);
|
|
189
191
|
}
|
|
190
192
|
|
|
191
|
-
.additional-Ftulks:disabled svg path {
|
|
193
|
+
.additional-Ftulks:disabled svg path, .additional-Ftulks[aria-disabled="true"] svg path {
|
|
192
194
|
stroke: var(--elements-inactive, #9fa7af);
|
|
193
195
|
}
|
|
194
196
|
|
|
@@ -222,11 +224,11 @@
|
|
|
222
224
|
outline: 0;
|
|
223
225
|
}
|
|
224
226
|
|
|
225
|
-
.frameless-gZ67sX:disabled {
|
|
227
|
+
.frameless-gZ67sX:disabled, .frameless-gZ67sX[aria-disabled="true"] {
|
|
226
228
|
color: var(--text-tertiary, #9fa7af);
|
|
227
229
|
}
|
|
228
230
|
|
|
229
|
-
.frameless-gZ67sX:disabled svg path {
|
|
231
|
+
.frameless-gZ67sX:disabled svg path, .frameless-gZ67sX[aria-disabled="true"] svg path {
|
|
230
232
|
stroke: var(--elements-inactive, #9fa7af);
|
|
231
233
|
}
|
|
232
234
|
|
|
@@ -273,12 +275,12 @@
|
|
|
273
275
|
box-shadow: 0 0 4px 0 var(--product-blue-400, #7eb4ff);
|
|
274
276
|
}
|
|
275
277
|
|
|
276
|
-
.secondary-bjc5zI:disabled {
|
|
278
|
+
.secondary-bjc5zI:disabled, .secondary-bjc5zI[aria-disabled="true"] {
|
|
277
279
|
background: var(--cb-button-disabled-background, #f5f5f5);
|
|
278
280
|
color: var(--text-tertiary, #9fa7af);
|
|
279
281
|
}
|
|
280
282
|
|
|
281
|
-
.secondary-bjc5zI:disabled svg path {
|
|
283
|
+
.secondary-bjc5zI:disabled svg path, .secondary-bjc5zI[aria-disabled="true"] svg path {
|
|
282
284
|
stroke: var(--elements-inactive, #9fa7af);
|
|
283
285
|
}
|
|
284
286
|
|
|
@@ -314,12 +316,12 @@
|
|
|
314
316
|
box-shadow: 0 0 4px 0 var(--product-blue-400, #7eb4ff);
|
|
315
317
|
}
|
|
316
318
|
|
|
317
|
-
.filled-WTubUm:disabled {
|
|
319
|
+
.filled-WTubUm:disabled, .filled-WTubUm[aria-disabled="true"] {
|
|
318
320
|
background: var(--cb-button-disabled-background, #f5f5f5);
|
|
319
321
|
color: var(--elements-disable, #d1d6df);
|
|
320
322
|
}
|
|
321
323
|
|
|
322
|
-
.filled-WTubUm:disabled svg path {
|
|
324
|
+
.filled-WTubUm:disabled svg path, .filled-WTubUm[aria-disabled="true"] svg path {
|
|
323
325
|
stroke: var(--elements-disable, #d1d6df);
|
|
324
326
|
}
|
|
325
327
|
|
|
@@ -2,9 +2,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
|
|
3
3
|
import { cn } from "../../common/css/cn.js";
|
|
4
4
|
import { getTestId } from "../../common/testId/index.js";
|
|
5
|
+
import { Info } from "../_shared/Info/Info.js";
|
|
5
6
|
import { Indicator } from "../Indicator/Indicator.js";
|
|
6
7
|
import { getIndicatorProps } from "../Indicator/Indicator.helpers.js";
|
|
7
|
-
import { Info } from "../Info/Info.js";
|
|
8
8
|
import { useControlledState } from "../../hooks/useControlledState/index.js";
|
|
9
9
|
import { useId } from "../../hooks/useId/index.js";
|
|
10
10
|
import { CheckboxContent } from "./components/CheckboxContent.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.arrowButton-jxtNrM {
|
|
2
|
+
background: none;
|
|
3
|
+
border: none;
|
|
4
|
+
border-radius: 4px;
|
|
5
|
+
outline: none;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
width: 20px;
|
|
9
|
+
height: 20px;
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.arrowButton-jxtNrM:focus-visible:not(.disabled-xcLgOR) {
|
|
16
|
+
outline: 1px solid var(--border-focused, #091739);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.arrowButton-jxtNrM.disabled-xcLgOR svg path {
|
|
20
|
+
stroke: var(--elements-disable, #d1d6df);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.arrowButton-jxtNrM:not(.disabled-xcLgOR) {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { KeyboardEvent, PropsWithChildren } from 'react';
|
|
2
|
+
interface ArrowButtonProps extends PropsWithChildren {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
onPressTab?: (event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ArrowButton: (props: ArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../../common/css/index.js";
|
|
3
|
+
import { KEYBOARD_ACTIVATION_KEYS } from "../consts.js";
|
|
4
|
+
import ArrowButton_module from "./ArrowButton.module.js";
|
|
5
|
+
const ArrowButton = (props)=>{
|
|
6
|
+
const handleKeyDown = (event)=>{
|
|
7
|
+
event.stopPropagation();
|
|
8
|
+
if ('Tab' === event.key) return void props.onPressTab?.(event);
|
|
9
|
+
if (KEYBOARD_ACTIVATION_KEYS.includes(event.key)) props.onClick?.();
|
|
10
|
+
};
|
|
11
|
+
return /*#__PURE__*/ jsx("button", {
|
|
12
|
+
type: "button",
|
|
13
|
+
className: cn(ArrowButton_module.arrowButton, props.disabled && ArrowButton_module.disabled),
|
|
14
|
+
disabled: props.disabled,
|
|
15
|
+
onMouseDown: (event)=>{
|
|
16
|
+
event.stopPropagation();
|
|
17
|
+
props.onClick?.();
|
|
18
|
+
},
|
|
19
|
+
onKeyDown: handleKeyDown,
|
|
20
|
+
children: props.children
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export { ArrowButton };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import type { VirtuosoHandle } from 'react-virtuoso';
|
|
3
|
+
import type { DateRangeValue } from '../types';
|
|
4
|
+
interface CalendarProps {
|
|
5
|
+
virtuosoRef?: RefObject<VirtuosoHandle>;
|
|
6
|
+
minDate: Date;
|
|
7
|
+
maxDate: Date;
|
|
8
|
+
value: DateRangeValue;
|
|
9
|
+
onSelectDate?: (date: Date) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Calendar: (props: CalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { CalendarVariant } from "../consts.js";
|
|
3
|
+
import { MonthList } from "../MonthList/index.js";
|
|
4
|
+
import { YearsList } from "../YearsList/index.js";
|
|
5
|
+
const Calendar = (props)=>{
|
|
6
|
+
const showYearsCalendar = props.value.type === CalendarVariant.month;
|
|
7
|
+
if (showYearsCalendar) return /*#__PURE__*/ jsx(YearsList, {
|
|
8
|
+
virtuosoRef: props.virtuosoRef,
|
|
9
|
+
minDate: props.minDate,
|
|
10
|
+
maxDate: props.maxDate,
|
|
11
|
+
value: props.value,
|
|
12
|
+
onSelectDate: props.onSelectDate
|
|
13
|
+
});
|
|
14
|
+
return /*#__PURE__*/ jsx(MonthList, {
|
|
15
|
+
virtuosoRef: props.virtuosoRef,
|
|
16
|
+
minDate: props.minDate,
|
|
17
|
+
maxDate: props.maxDate,
|
|
18
|
+
onSelectDate: props.onSelectDate,
|
|
19
|
+
value: props.value
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export { Calendar };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DateRangeProps } from './props';
|
|
2
|
+
export type { DateRangeProps, DateRangeRenderInputOptions } from './props';
|
|
3
|
+
export declare const DateRange: import("react").ForwardRefExoticComponent<DateRangeProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export type { DateRangeAnyDateValue, DateRangeDayValue, DateRangeFeatureProps, DateRangeLocale, DateRangeMonthValue, DateRangeNoDateValue, DateRangeRangeValue, DateRangeValue, DateRangeWeekValue, DateSelectVariant, DatesPeriod, DayQuickFilter, } from './types';
|
|
5
|
+
export { DEFAULT_QUICK_FILTER } from './types';
|
|
6
|
+
export { getPeriodValue, getRangeDates, getRequiredDateRangeValue, isAnyDateValue, isDayValue, isMonthValue, isNoDateValue, isRangeValue, isValueNullable, isValuePeriod, isWeekValue, } from './utils';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Dropdown } from "../Dropdown/Dropdown.js";
|
|
4
|
+
import { DateRangeInput } from "./DateRangeInput/DateRangeInput.js";
|
|
5
|
+
import { useDateRange } from "./hooks/useDateRange.js";
|
|
6
|
+
import { DropdownContent } from "./DropdownContent/index.js";
|
|
7
|
+
const DateRange = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
8
|
+
const dateRange = useDateRange(props, ref);
|
|
9
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
10
|
+
children: [
|
|
11
|
+
dateRange.renderInput ? dateRange.renderInput(dateRange.renderInputOptions) : /*#__PURE__*/ jsx(DateRangeInput, {
|
|
12
|
+
...dateRange
|
|
13
|
+
}),
|
|
14
|
+
/*#__PURE__*/ jsx(Dropdown, {
|
|
15
|
+
...dateRange.datepickerDropdown.dropdownAriaProps,
|
|
16
|
+
open: dateRange.datepickerDropdown.open,
|
|
17
|
+
triggerRef: dateRange.datepickerDropdown.triggerRef,
|
|
18
|
+
ref: dateRange.datepickerDropdown.dropdownRef,
|
|
19
|
+
onClose: dateRange.handleCloseDropdown,
|
|
20
|
+
isInnerScroll: true,
|
|
21
|
+
zIndex: props.dropdownZIndex,
|
|
22
|
+
children: /*#__PURE__*/ jsx(DropdownContent, {
|
|
23
|
+
value: dateRange.value,
|
|
24
|
+
withTime: dateRange.withTime,
|
|
25
|
+
minDate: dateRange.calendar.minDate,
|
|
26
|
+
maxDate: dateRange.calendar.maxDate,
|
|
27
|
+
hintZIndex: dateRange.hintZIndex,
|
|
28
|
+
withPeriod: dateRange.withPeriod,
|
|
29
|
+
withAnyDate: dateRange.withAnyDate,
|
|
30
|
+
withNoDate: dateRange.withNoDate,
|
|
31
|
+
withTimeSelection: dateRange.withTimeSelection,
|
|
32
|
+
withClearButton: dateRange.withClearButton,
|
|
33
|
+
quickFilter: dateRange.quickFilter,
|
|
34
|
+
requiredDate: dateRange.requiredDate,
|
|
35
|
+
onChangeWithTime: dateRange.handleChangeWithTime,
|
|
36
|
+
onChange: dateRange.onChange,
|
|
37
|
+
onClearButtonClick: dateRange.handleClickOnClearButton,
|
|
38
|
+
virtuosoRef: dateRange.monthList.virtuosoRef,
|
|
39
|
+
variantsListRef: dateRange.variantsListRef,
|
|
40
|
+
onPickDate: dateRange.calendar.handlePickDate,
|
|
41
|
+
scrollToMonthHandler: dateRange.monthList.scrollToMonth,
|
|
42
|
+
handleClose: dateRange.handleCloseDropdown
|
|
43
|
+
})
|
|
44
|
+
})
|
|
45
|
+
]
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
DateRange.displayName = 'DateRange';
|
|
49
|
+
export { DEFAULT_QUICK_FILTER } from "./types.js";
|
|
50
|
+
export { getPeriodValue, getRangeDates, getRequiredDateRangeValue, isAnyDateValue, isDayValue, isMonthValue, isNoDateValue, isRangeValue, isValueNullable, isValuePeriod, isWeekValue } from "./utils.js";
|
|
51
|
+
export { DateRange };
|