@astral/ui 4.118.0 → 4.119.1
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/components/DataGrid/Body/types.d.ts +0 -4
- package/components/DataGrid/Cell/useLogic/useLogic.js +2 -1
- package/components/DataGrid/DataGrid.d.ts +1 -1
- package/components/DataGrid/DataGrid.js +9 -5
- package/components/DataGrid/DataGridContext/DataGridContext.d.ts +0 -1
- package/components/DataGrid/DataGridContext/DataGridContext.js +0 -1
- package/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +2 -2
- package/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.js +1 -3
- package/components/DataGrid/Head/Head.d.ts +16 -7
- package/components/DataGrid/Head/Head.js +6 -3
- package/components/DataGrid/Head/HeadColumns/GroupColumns/GroupColumns.d.ts +2 -2
- package/components/DataGrid/Head/HeadColumns/GroupColumns/GroupColumns.js +4 -1
- package/components/DataGrid/Head/HeadColumns/HeadColumns.d.ts +2 -2
- package/components/DataGrid/Head/HeadColumns/HeadColumns.js +2 -2
- package/components/DataGrid/Head/HeadColumns/SingleColumn/SingleColumn.d.ts +3 -3
- package/components/DataGrid/Head/HeadColumns/useLogic/useLogic.d.ts +1 -1
- package/components/DataGrid/Head/HeadColumns/utils/getHeadCellProps.d.ts +1 -1
- package/components/DataGrid/Head/HeadColumns/utils/getHeadCellProps.js +4 -2
- package/components/DataGrid/Head/styles.d.ts +0 -2
- package/components/DataGrid/Head/styles.js +4 -4
- package/components/DataGrid/Head/useLogic/useLogic.d.ts +5 -0
- package/components/DataGrid/Head/useLogic/useLogic.js +7 -0
- package/components/DataGrid/HeadCell/HeadCell.d.ts +3 -3
- package/components/DataGrid/HeadCell/useLogic/useLogic.d.ts +2 -2
- package/components/DataGrid/PinnedSections/PinnedSections.d.ts +4 -8
- package/components/DataGrid/PinnedSections/PinnedSections.js +2 -2
- package/components/DataGrid/PinnedSections/Section/Section.d.ts +1 -1
- package/components/DataGrid/PinnedSections/Section/Section.js +3 -1
- package/components/DataGrid/PinnedSections/Section/types.d.ts +3 -3
- package/components/DataGrid/PinnedSections/styles.d.ts +0 -2
- package/components/DataGrid/PinnedSections/styles.js +1 -1
- package/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +0 -4
- package/components/DataGrid/Row/NestedChildren/NestedChildren.js +2 -2
- package/components/DataGrid/Row/NestedChildren/styles.d.ts +0 -1
- package/components/DataGrid/Row/NestedChildren/styles.js +2 -2
- package/components/DataGrid/Row/Row.js +3 -4
- package/components/DataGrid/Row/styles.d.ts +0 -2
- package/components/DataGrid/Row/styles.js +1 -1
- package/components/DataGrid/Row/types.d.ts +0 -4
- package/components/DataGrid/RowBase/styles.js +1 -3
- package/components/DataGrid/RowBase/types.d.ts +0 -4
- package/components/DataGrid/RowBase/useLogic/useLogic.d.ts +1 -1
- package/components/DataGrid/RowBase/useLogic/useLogic.js +1 -2
- package/components/DataGrid/constants.d.ts +5 -0
- package/components/DataGrid/constants.js +5 -0
- package/components/DataGrid/faker.d.ts +0 -2
- package/components/DataGrid/hooks/index.d.ts +1 -0
- package/components/DataGrid/hooks/index.js +1 -0
- package/components/DataGrid/hooks/usePlugins/index.d.ts +1 -0
- package/components/DataGrid/hooks/usePlugins/index.js +1 -0
- package/components/DataGrid/hooks/usePlugins/usePlugins.d.ts +319 -0
- package/components/DataGrid/hooks/usePlugins/usePlugins.js +54 -0
- package/components/DataGrid/index.d.ts +1 -1
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/ResizeHeadAddon.d.ts +5 -0
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/ResizeHeadAddon.js +21 -0
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/index.js +1 -0
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/styles.d.ts +5 -0
- package/components/DataGrid/plugins/resize/ResizeHeadAddon/styles.js +76 -0
- package/components/DataGrid/plugins/resize/ResizePlugin.d.ts +8 -0
- package/components/DataGrid/plugins/resize/ResizePlugin.js +14 -0
- package/components/DataGrid/plugins/resize/constants.d.ts +9 -0
- package/components/DataGrid/plugins/resize/constants.js +9 -0
- package/components/DataGrid/plugins/resize/hooks/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/hooks/index.js +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/index.d.ts +2 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/index.js +2 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/index.js +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/useResizeStorage.d.ts +22 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/useResizeStorage.js +20 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/index.js +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/useTrackWidths.d.ts +20 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/useTrackWidths.js +33 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/index.js +1 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/useResize.d.ts +15 -0
- package/components/DataGrid/plugins/resize/hooks/useResize/useResize.js +164 -0
- package/components/DataGrid/plugins/resize/index.d.ts +2 -0
- package/components/DataGrid/plugins/resize/index.js +1 -0
- package/components/DataGrid/plugins/resize/public.d.ts +2 -0
- package/components/DataGrid/plugins/resize/public.js +1 -0
- package/components/DataGrid/plugins/resize/types.d.ts +54 -0
- package/components/DataGrid/plugins/resize/utils/assertResizeConfig/assertResizeConfig.d.ts +5 -0
- package/components/DataGrid/plugins/resize/utils/assertResizeConfig/assertResizeConfig.js +21 -0
- package/components/DataGrid/plugins/resize/utils/assertResizeConfig/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/assertResizeConfig/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getFixedColumnsList/getFixedColumnsList.d.ts +6 -0
- package/components/DataGrid/plugins/resize/utils/getFixedColumnsList/getFixedColumnsList.js +5 -0
- package/components/DataGrid/plugins/resize/utils/getFixedColumnsList/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getFixedColumnsList/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getFractionsList/getFractionsList.d.ts +4 -0
- package/components/DataGrid/plugins/resize/utils/getFractionsList/getFractionsList.js +10 -0
- package/components/DataGrid/plugins/resize/utils/getFractionsList/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getFractionsList/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/getHandleOffsetsList.d.ts +4 -0
- package/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/getHandleOffsetsList.js +10 -0
- package/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getMinWidthsList/getMinWidthsList.d.ts +6 -0
- package/components/DataGrid/plugins/resize/utils/getMinWidthsList/getMinWidthsList.js +4 -0
- package/components/DataGrid/plugins/resize/utils/getMinWidthsList/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getMinWidthsList/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getResizedGridColumns/getResizedGridColumns.d.ts +22 -0
- package/components/DataGrid/plugins/resize/utils/getResizedGridColumns/getResizedGridColumns.js +15 -0
- package/components/DataGrid/plugins/resize/utils/getResizedGridColumns/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getResizedGridColumns/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getStorageKey/getStorageKey.d.ts +4 -0
- package/components/DataGrid/plugins/resize/utils/getStorageKey/getStorageKey.js +5 -0
- package/components/DataGrid/plugins/resize/utils/getStorageKey/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getStorageKey/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/getTrackWidthsList/getTrackWidthsList.d.ts +5 -0
- package/components/DataGrid/plugins/resize/utils/getTrackWidthsList/getTrackWidthsList.js +8 -0
- package/components/DataGrid/plugins/resize/utils/getTrackWidthsList/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/getTrackWidthsList/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/index.d.ts +10 -0
- package/components/DataGrid/plugins/resize/utils/index.js +10 -0
- package/components/DataGrid/plugins/resize/utils/parseStorageValue/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/parseStorageValue/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/parseStorageValue/parseStorageValue.d.ts +19 -0
- package/components/DataGrid/plugins/resize/utils/parseStorageValue/parseStorageValue.js +27 -0
- package/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/index.d.ts +1 -0
- package/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/index.js +1 -0
- package/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/resizeAdjacentColumns.d.ts +25 -0
- package/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/resizeAdjacentColumns.js +21 -0
- package/components/DataGrid/public.d.ts +1 -1
- package/components/DataGrid/styles.js +19 -2
- package/components/DataGrid/tests/resize/resizeHelper.d.ts +37 -0
- package/components/DataGrid/tests/resize/resizeHelper.js +66 -0
- package/components/DataGrid/types.d.ts +55 -12
- package/components/DataGrid/useLogic/useLogic.d.ts +293 -3
- package/components/DataGrid/useLogic/useLogic.js +13 -4
- package/components/DataGrid/utils/assertUniquePlugins/assertUniquePlugins.d.ts +5 -0
- package/components/DataGrid/utils/assertUniquePlugins/assertUniquePlugins.js +12 -0
- package/components/DataGrid/utils/assertUniquePlugins/index.d.ts +1 -0
- package/components/DataGrid/utils/assertUniquePlugins/index.js +1 -0
- package/components/DataGrid/utils/findPlugin/findPlugin.d.ts +5 -0
- package/components/DataGrid/utils/findPlugin/findPlugin.js +4 -0
- package/components/DataGrid/utils/findPlugin/index.d.ts +1 -0
- package/components/DataGrid/utils/findPlugin/index.js +1 -0
- package/components/DataGrid/utils/getAutoTableId/getAutoTableId.d.ts +5 -0
- package/components/DataGrid/utils/getAutoTableId/getAutoTableId.js +10 -0
- package/components/DataGrid/utils/getAutoTableId/index.d.ts +1 -0
- package/components/DataGrid/utils/getAutoTableId/index.js +1 -0
- package/components/DataGrid/utils/getColumnsSignature/getColumnsSignature.d.ts +6 -0
- package/components/DataGrid/utils/getColumnsSignature/getColumnsSignature.js +4 -0
- package/components/DataGrid/utils/getColumnsSignature/index.d.ts +1 -0
- package/components/DataGrid/utils/getColumnsSignature/index.js +1 -0
- package/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.d.ts +15 -1
- package/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.js +7 -5
- package/components/DataGrid/utils/index.d.ts +4 -0
- package/components/DataGrid/utils/index.js +4 -0
- package/components/DataGridCollapsibleRow/useLogic/useLogic.d.ts +0 -1
- package/components/DataGridCollapsibleRow/useLogic/useLogic.js +1 -2
- package/components/DataGridInfinite/DataGridInfinite.d.ts +1 -1
- package/components/DataGridInfinite/DataGridInfinite.js +28 -24
- package/components/DataGridInfinite/Row/Row.js +2 -2
- package/components/DataGridInfinite/Row/useLogic/useLogic.d.ts +0 -1
- package/components/DataGridInfinite/Row/useLogic/useLogic.js +1 -2
- package/components/DataGridInfinite/faker.d.ts +0 -1
- package/components/DataGridInfinite/index.d.ts +1 -0
- package/components/DataGridInfinite/public.d.ts +1 -0
- package/components/DataGridInfinite/types.d.ts +1 -1
- package/components/DataGridInfinite/useLogic/useLogic.d.ts +293 -5
- package/components/DataGridInfinite/useLogic/useLogic.js +14 -7
- package/components/DatePicker/useLogic/useLogic.js +18 -13
- package/components/Filename/Filename.js +2 -2
- package/components/Filename/useLogic/useLogic.d.ts +3 -2
- package/components/Filename/useLogic/useLogic.js +6 -2
- package/components/HintPopover/styles.js +5 -0
- package/components/OverflowTypography/OverflowTypography.js +3 -3
- package/components/OverflowTypography/hooks/useOverflowed/useOverflowed.d.ts +20 -3
- package/components/OverflowTypography/hooks/useOverflowed/useOverflowed.js +32 -41
- package/components/OverflowTypography/useLogic/useLogic.d.ts +3 -2
- package/components/OverflowTypography/useLogic/useLogic.js +8 -2
- package/components/RadioCard/RadioCard.d.ts +6 -0
- package/components/RadioCard/RadioCard.js +3 -0
- package/components/Select/OptionMenuItem/OptionMenuItem.d.ts +5 -0
- package/components/Select/OptionMenuItem/OptionMenuItem.js +31 -0
- package/components/Select/OptionMenuItem/index.d.ts +1 -0
- package/components/Select/OptionMenuItem/index.js +1 -0
- package/components/Select/OptionMenuItem/types.d.ts +31 -0
- package/components/Select/Select.d.ts +9 -2
- package/components/Select/Select.js +45 -12
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/GroupMenuItem.d.ts +5 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/GroupMenuItem.js +20 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/constants.d.ts +2 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/constants.js +2 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/index.d.ts +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/index.js +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/styles.d.ts +39 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/styles.js +37 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/types.d.ts +32 -0
- package/components/Select/cases/groups/SelectGroup/GroupMenuItem/types.js +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/GroupOptions.d.ts +2 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/GroupOptions.js +4 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/index.d.ts +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/index.js +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/types.d.ts +31 -0
- package/components/Select/cases/groups/SelectGroup/GroupOptions/types.js +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/GroupSubheader.d.ts +5 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/GroupSubheader.js +7 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/index.d.ts +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/index.js +1 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/styles.d.ts +3 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/styles.js +11 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/types.d.ts +6 -0
- package/components/Select/cases/groups/SelectGroup/GroupSubheader/types.js +1 -0
- package/components/Select/cases/groups/SelectGroup/SelectGroup.d.ts +5 -0
- package/components/Select/cases/groups/SelectGroup/SelectGroup.js +28 -0
- package/components/Select/cases/groups/SelectGroup/index.d.ts +1 -0
- package/components/Select/cases/groups/SelectGroup/index.js +1 -0
- package/components/{ResizingDataGrid/Sliders → Select/cases/groups/SelectGroup}/styles.d.ts +4 -8
- package/components/Select/cases/groups/SelectGroup/styles.js +13 -0
- package/components/Select/cases/groups/SelectGroup/types.d.ts +53 -0
- package/components/Select/cases/groups/SelectGroup/types.js +1 -0
- package/components/Select/cases/groups/SelectGroup/useLogic/index.js +1 -0
- package/components/Select/cases/groups/SelectGroup/useLogic/useLogic.d.ts +9 -0
- package/components/Select/cases/groups/SelectGroup/useLogic/useLogic.js +10 -0
- package/components/Select/cases/groups/constants.d.ts +10 -0
- package/components/Select/cases/groups/constants.js +11 -0
- package/components/Select/cases/groups/hooks/index.d.ts +1 -0
- package/components/Select/cases/groups/hooks/index.js +1 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/index.d.ts +1 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/index.js +1 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/index.d.ts +1 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/index.js +1 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/useCollapsedGroups.d.ts +20 -0
- package/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/useCollapsedGroups.js +23 -0
- package/components/Select/cases/groups/hooks/useGroups/index.d.ts +1 -0
- package/components/Select/cases/groups/hooks/useGroups/index.js +1 -0
- package/components/Select/cases/groups/hooks/useGroups/useGroups.d.ts +55 -0
- package/components/Select/cases/groups/hooks/useGroups/useGroups.js +65 -0
- package/components/Select/cases/groups/index.d.ts +3 -0
- package/components/Select/cases/groups/index.js +2 -0
- package/components/Select/cases/groups/types.d.ts +21 -0
- package/components/Select/cases/groups/types.js +1 -0
- package/components/Select/cases/groups/utils/checkHasBottomDivider/checkHasBottomDivider.d.ts +4 -0
- package/components/Select/cases/groups/utils/checkHasBottomDivider/checkHasBottomDivider.js +12 -0
- package/components/Select/cases/groups/utils/checkHasBottomDivider/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/checkHasBottomDivider/index.js +1 -0
- package/components/Select/cases/groups/utils/expandTagsList/expandTagsList.d.ts +5 -0
- package/components/Select/cases/groups/utils/expandTagsList/expandTagsList.js +8 -0
- package/components/Select/cases/groups/utils/expandTagsList/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/expandTagsList/index.js +1 -0
- package/components/Select/cases/groups/utils/findGroupByValue/findGroupByValue.d.ts +5 -0
- package/components/Select/cases/groups/utils/findGroupByValue/findGroupByValue.js +5 -0
- package/components/Select/cases/groups/utils/findGroupByValue/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/findGroupByValue/index.js +1 -0
- package/components/Select/cases/groups/utils/getGroupSelection/getGroupSelection.d.ts +9 -0
- package/components/Select/cases/groups/utils/getGroupSelection/getGroupSelection.js +12 -0
- package/components/Select/cases/groups/utils/getGroupSelection/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/getGroupSelection/index.js +1 -0
- package/components/Select/cases/groups/utils/getGroupValue/getGroupValue.d.ts +4 -0
- package/components/Select/cases/groups/utils/getGroupValue/getGroupValue.js +5 -0
- package/components/Select/cases/groups/utils/getGroupValue/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/getGroupValue/index.js +1 -0
- package/components/Select/cases/groups/utils/getTagsList/getTagsList.d.ts +5 -0
- package/components/Select/cases/groups/utils/getTagsList/getTagsList.js +15 -0
- package/components/Select/cases/groups/utils/getTagsList/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/getTagsList/index.js +1 -0
- package/components/Select/cases/groups/utils/index.d.ts +7 -0
- package/components/Select/cases/groups/utils/index.js +7 -0
- package/components/Select/cases/groups/utils/toggleGroup/index.d.ts +1 -0
- package/components/Select/cases/groups/utils/toggleGroup/index.js +1 -0
- package/components/Select/cases/groups/utils/toggleGroup/toggleGroup.d.ts +6 -0
- package/components/Select/cases/groups/utils/toggleGroup/toggleGroup.js +14 -0
- package/components/Select/cases/index.d.ts +1 -0
- package/components/Select/cases/index.js +1 -0
- package/components/Select/constants.d.ts +7 -0
- package/components/Select/constants.js +8 -0
- package/components/Select/index.d.ts +1 -1
- package/components/Select/public.d.ts +1 -1
- package/components/Select/styles.d.ts +10 -1
- package/components/Select/styles.js +27 -0
- package/components/Select/types.d.ts +81 -2
- package/components/Select/useLogic/hooks/index.d.ts +1 -0
- package/components/Select/useLogic/hooks/index.js +1 -0
- package/components/Select/useLogic/hooks/useOptions/index.d.ts +1 -0
- package/components/Select/useLogic/hooks/useOptions/index.js +1 -0
- package/components/Select/useLogic/hooks/useOptions/useOptions.d.ts +36 -0
- package/components/Select/useLogic/hooks/useOptions/useOptions.js +38 -0
- package/components/Select/useLogic/useLogic.d.ts +23 -4
- package/components/Select/useLogic/useLogic.js +119 -35
- package/components/Select/utils/checkIsEqualSelectValues/checkIsEqualSelectValues.d.ts +5 -0
- package/components/Select/utils/checkIsEqualSelectValues/checkIsEqualSelectValues.js +14 -0
- package/components/Select/utils/checkIsEqualSelectValues/index.d.ts +1 -0
- package/components/Select/utils/checkIsEqualSelectValues/index.js +1 -0
- package/components/Select/utils/checkIsSelectOptionsGroup/checkIsSelectOptionsGroup.d.ts +5 -0
- package/components/Select/utils/checkIsSelectOptionsGroup/checkIsSelectOptionsGroup.js +8 -0
- package/components/Select/utils/checkIsSelectOptionsGroup/index.d.ts +1 -0
- package/components/Select/utils/checkIsSelectOptionsGroup/index.js +1 -0
- package/components/Select/utils/getSelectOptionsList/getSelectOptionsList.d.ts +5 -0
- package/components/Select/utils/getSelectOptionsList/getSelectOptionsList.js +5 -0
- package/components/Select/utils/getSelectOptionsList/index.d.ts +1 -0
- package/components/Select/utils/getSelectOptionsList/index.js +1 -0
- package/components/Select/utils/index.d.ts +3 -0
- package/components/Select/utils/index.js +3 -0
- package/components/SelectionCard/DefaultIndicator/DefaultIndicator.d.ts +5 -0
- package/components/SelectionCard/DefaultIndicator/DefaultIndicator.js +14 -0
- package/components/SelectionCard/DefaultIndicator/index.d.ts +1 -0
- package/components/SelectionCard/DefaultIndicator/index.js +1 -0
- package/components/SelectionCard/DefaultIndicator/types.d.ts +7 -0
- package/components/SelectionCard/DefaultIndicator/types.js +1 -0
- package/components/SelectionCard/SelectionCard.d.ts +5 -0
- package/components/SelectionCard/SelectionCard.js +48 -0
- package/components/SelectionCard/cases/grouped/index.d.ts +1 -0
- package/components/SelectionCard/cases/grouped/index.js +1 -0
- package/components/SelectionCard/cases/grouped/styles.d.ts +10 -0
- package/components/SelectionCard/cases/grouped/styles.js +128 -0
- package/components/SelectionCard/cases/index.d.ts +2 -0
- package/components/SelectionCard/cases/index.js +2 -0
- package/components/SelectionCard/cases/standalone/index.d.ts +1 -0
- package/components/SelectionCard/cases/standalone/index.js +1 -0
- package/components/SelectionCard/cases/standalone/styles.d.ts +10 -0
- package/components/SelectionCard/cases/standalone/styles.js +77 -0
- package/components/SelectionCard/constants.d.ts +15 -0
- package/components/SelectionCard/constants.js +16 -0
- package/components/SelectionCard/index.d.ts +2 -0
- package/components/SelectionCard/index.js +1 -0
- package/components/SelectionCard/public.d.ts +2 -0
- package/components/SelectionCard/public.js +1 -0
- package/components/SelectionCard/styles.d.ts +39 -0
- package/components/SelectionCard/styles.js +81 -0
- package/components/SelectionCard/types.d.ts +31 -0
- package/components/SelectionCard/types.js +1 -0
- package/components/SelectionCard/useLogic/index.d.ts +1 -0
- package/components/SelectionCard/useLogic/index.js +1 -0
- package/components/SelectionCard/useLogic/useLogic.d.ts +18 -0
- package/components/SelectionCard/useLogic/useLogic.js +48 -0
- package/components/SelectionCardGroup/SelectionCardGroup.d.ts +5 -0
- package/components/SelectionCardGroup/SelectionCardGroup.js +19 -0
- package/components/SelectionCardGroup/SelectionCardGroupContext/SelectionCardGroupContext.d.ts +21 -0
- package/components/SelectionCardGroup/SelectionCardGroupContext/SelectionCardGroupContext.js +14 -0
- package/components/SelectionCardGroup/SelectionCardGroupContext/index.d.ts +1 -0
- package/components/SelectionCardGroup/SelectionCardGroupContext/index.js +1 -0
- package/components/SelectionCardGroup/cases/grouped/constants.d.ts +4 -0
- package/components/SelectionCardGroup/cases/grouped/constants.js +4 -0
- package/components/SelectionCardGroup/cases/grouped/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/grouped/index.js +1 -0
- package/components/SelectionCardGroup/cases/index.d.ts +4 -0
- package/components/SelectionCardGroup/cases/index.js +4 -0
- package/components/SelectionCardGroup/cases/multiple/constants.d.ts +5 -0
- package/components/SelectionCardGroup/cases/multiple/constants.js +9 -0
- package/components/SelectionCardGroup/cases/multiple/index.d.ts +2 -0
- package/components/SelectionCardGroup/cases/multiple/index.js +2 -0
- package/components/SelectionCardGroup/cases/multiple/utils/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/multiple/utils/index.js +1 -0
- package/components/SelectionCardGroup/cases/multiple/utils/toggleValue/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/multiple/utils/toggleValue/index.js +1 -0
- package/components/SelectionCardGroup/cases/multiple/utils/toggleValue/toggleValue.d.ts +4 -0
- package/components/SelectionCardGroup/cases/multiple/utils/toggleValue/toggleValue.js +9 -0
- package/components/SelectionCardGroup/cases/single/constants.d.ts +5 -0
- package/components/SelectionCardGroup/cases/single/constants.js +9 -0
- package/components/SelectionCardGroup/cases/single/index.d.ts +2 -0
- package/components/SelectionCardGroup/cases/single/index.js +2 -0
- package/components/SelectionCardGroup/cases/single/utils/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/single/utils/index.js +1 -0
- package/components/SelectionCardGroup/cases/single/utils/selectValue/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/single/utils/selectValue/index.js +1 -0
- package/components/SelectionCardGroup/cases/single/utils/selectValue/selectValue.d.ts +5 -0
- package/components/SelectionCardGroup/cases/single/utils/selectValue/selectValue.js +10 -0
- package/components/SelectionCardGroup/cases/standalone/constants.d.ts +2 -0
- package/components/SelectionCardGroup/cases/standalone/constants.js +2 -0
- package/components/SelectionCardGroup/cases/standalone/index.d.ts +3 -0
- package/components/SelectionCardGroup/cases/standalone/index.js +3 -0
- package/components/SelectionCardGroup/cases/standalone/styles.d.ts +7 -0
- package/components/SelectionCardGroup/cases/standalone/styles.js +10 -0
- package/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/getGridColumns.d.ts +5 -0
- package/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/getGridColumns.js +10 -0
- package/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/index.js +1 -0
- package/components/SelectionCardGroup/cases/standalone/utils/index.d.ts +1 -0
- package/components/SelectionCardGroup/cases/standalone/utils/index.js +1 -0
- package/components/SelectionCardGroup/constants.d.ts +3 -0
- package/components/SelectionCardGroup/constants.js +4 -0
- package/components/SelectionCardGroup/index.d.ts +3 -0
- package/components/SelectionCardGroup/index.js +2 -0
- package/components/SelectionCardGroup/public.d.ts +2 -0
- package/components/SelectionCardGroup/public.js +1 -0
- package/components/SelectionCardGroup/styles.d.ts +15 -0
- package/components/SelectionCardGroup/styles.js +17 -0
- package/components/SelectionCardGroup/types.d.ts +120 -0
- package/components/SelectionCardGroup/types.js +1 -0
- package/components/SelectionCardGroup/useLogic/index.d.ts +1 -0
- package/components/SelectionCardGroup/useLogic/index.js +1 -0
- package/components/SelectionCardGroup/useLogic/useLogic.d.ts +17 -0
- package/components/SelectionCardGroup/useLogic/useLogic.js +59 -0
- package/components/SelectionCardGroup/useLogic/utils/createSelectHandler/createSelectHandler.d.ts +5 -0
- package/components/SelectionCardGroup/useLogic/utils/createSelectHandler/createSelectHandler.js +10 -0
- package/components/SelectionCardGroup/useLogic/utils/createSelectHandler/index.d.ts +1 -0
- package/components/SelectionCardGroup/useLogic/utils/createSelectHandler/index.js +1 -0
- package/components/SelectionCardGroup/useLogic/utils/index.d.ts +1 -0
- package/components/SelectionCardGroup/useLogic/utils/index.js +1 -0
- package/components/SelectionCardGroup/utils/getSelectedValuesList/getSelectedValuesList.d.ts +5 -0
- package/components/SelectionCardGroup/utils/getSelectedValuesList/getSelectedValuesList.js +12 -0
- package/components/SelectionCardGroup/utils/getSelectedValuesList/index.d.ts +1 -0
- package/components/SelectionCardGroup/utils/getSelectedValuesList/index.js +1 -0
- package/components/SelectionCardGroup/utils/index.d.ts +1 -0
- package/components/SelectionCardGroup/utils/index.js +1 -0
- package/components/Status/Status.d.ts +2 -0
- package/components/Status/Status.js +37 -0
- package/components/Status/constants.d.ts +17 -0
- package/components/Status/constants.js +18 -0
- package/components/Status/index.d.ts +3 -0
- package/components/Status/index.js +2 -0
- package/components/Status/public.d.ts +3 -0
- package/components/Status/public.js +2 -0
- package/components/Status/styles.d.ts +24 -0
- package/components/Status/styles.js +120 -0
- package/components/Status/types.d.ts +17 -0
- package/components/Status/types.js +1 -0
- package/components/Status/useLogic/index.d.ts +1 -0
- package/components/Status/useLogic/index.js +1 -0
- package/components/Status/useLogic/useLogic.d.ts +11 -0
- package/components/Status/useLogic/useLogic.js +33 -0
- package/components/TagBadge/styles.js +21 -3
- package/components/index.d.ts +1 -1
- package/components/utils/setRef/index.d.ts +1 -0
- package/components/utils/setRef/index.js +1 -0
- package/components/utils/setRef/setRef.d.ts +5 -0
- package/components/utils/setRef/setRef.js +12 -0
- package/hook-form/EditableText/EditableText.js +14 -7
- package/hook-form/EditableText/EditingForm/EditingForm.js +2 -2
- package/hook-form/EditableText/EditingForm/styles.js +8 -0
- package/hook-form/EditableText/constants.d.ts +1 -0
- package/hook-form/EditableText/constants.js +1 -0
- package/hook-form/EditableText/styles.d.ts +4 -0
- package/hook-form/EditableText/styles.js +5 -9
- package/hook-form/EditableText/useLogic/useLogic.d.ts +1 -0
- package/hook-form/EditableText/useLogic/useLogic.js +5 -0
- package/hook-form/FormQuickFilters/FormQuickFilters.js +2 -14
- package/hook-form/FormQuickFilters/useLogic/useLogic.d.ts +7 -4
- package/hook-form/FormQuickFilters/useLogic/useLogic.js +12 -7
- package/hook-form/FormSelect/FormSelect.d.ts +5 -2
- package/hook-form/FormSelectionCardGroup/FormSelectionCardGroup.d.ts +7 -0
- package/hook-form/FormSelectionCardGroup/FormSelectionCardGroup.js +18 -0
- package/hook-form/FormSelectionCardGroup/index.d.ts +1 -0
- package/hook-form/FormSelectionCardGroup/index.js +1 -0
- package/hook-form/FormSelectionCardGroup/public.d.ts +1 -0
- package/hook-form/FormSelectionCardGroup/public.js +1 -0
- package/node/components/DataGrid/Body/types.d.ts +0 -4
- package/node/components/DataGrid/Cell/useLogic/useLogic.js +2 -1
- package/node/components/DataGrid/DataGrid.d.ts +1 -1
- package/node/components/DataGrid/DataGrid.js +9 -5
- package/node/components/DataGrid/DataGridContext/DataGridContext.d.ts +0 -1
- package/node/components/DataGrid/DataGridContext/DataGridContext.js +0 -1
- package/node/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +2 -2
- package/node/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.js +1 -3
- package/node/components/DataGrid/Head/Head.d.ts +16 -7
- package/node/components/DataGrid/Head/Head.js +5 -2
- package/node/components/DataGrid/Head/HeadColumns/GroupColumns/GroupColumns.d.ts +2 -2
- package/node/components/DataGrid/Head/HeadColumns/GroupColumns/GroupColumns.js +4 -1
- package/node/components/DataGrid/Head/HeadColumns/HeadColumns.d.ts +2 -2
- package/node/components/DataGrid/Head/HeadColumns/HeadColumns.js +2 -2
- package/node/components/DataGrid/Head/HeadColumns/SingleColumn/SingleColumn.d.ts +3 -3
- package/node/components/DataGrid/Head/HeadColumns/useLogic/useLogic.d.ts +1 -1
- package/node/components/DataGrid/Head/HeadColumns/utils/getHeadCellProps.d.ts +1 -1
- package/node/components/DataGrid/Head/HeadColumns/utils/getHeadCellProps.js +4 -2
- package/node/components/DataGrid/Head/styles.d.ts +0 -2
- package/node/components/DataGrid/Head/styles.js +4 -4
- package/node/components/DataGrid/Head/useLogic/index.d.ts +1 -0
- package/node/components/DataGrid/Head/useLogic/useLogic.d.ts +5 -0
- package/node/components/DataGrid/Head/useLogic/useLogic.js +11 -0
- package/node/components/DataGrid/HeadCell/HeadCell.d.ts +3 -3
- package/node/components/DataGrid/HeadCell/useLogic/useLogic.d.ts +2 -2
- package/node/components/DataGrid/PinnedSections/PinnedSections.d.ts +4 -8
- package/node/components/DataGrid/PinnedSections/PinnedSections.js +2 -2
- package/node/components/DataGrid/PinnedSections/Section/Section.d.ts +1 -1
- package/node/components/DataGrid/PinnedSections/Section/Section.js +3 -1
- package/node/components/DataGrid/PinnedSections/Section/types.d.ts +3 -3
- package/node/components/DataGrid/PinnedSections/styles.d.ts +0 -2
- package/node/components/DataGrid/PinnedSections/styles.js +1 -1
- package/node/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +0 -4
- package/node/components/DataGrid/Row/NestedChildren/NestedChildren.js +2 -2
- package/node/components/DataGrid/Row/NestedChildren/styles.d.ts +0 -1
- package/node/components/DataGrid/Row/NestedChildren/styles.js +2 -2
- package/node/components/DataGrid/Row/Row.js +3 -4
- package/node/components/DataGrid/Row/styles.d.ts +0 -2
- package/node/components/DataGrid/Row/styles.js +1 -1
- package/node/components/DataGrid/Row/types.d.ts +0 -4
- package/node/components/DataGrid/RowBase/styles.js +1 -3
- package/node/components/DataGrid/RowBase/types.d.ts +0 -4
- package/node/components/DataGrid/RowBase/useLogic/useLogic.d.ts +1 -1
- package/node/components/DataGrid/RowBase/useLogic/useLogic.js +1 -2
- package/node/components/DataGrid/constants.d.ts +5 -0
- package/node/components/DataGrid/constants.js +6 -1
- package/node/components/DataGrid/faker.d.ts +0 -2
- package/node/components/DataGrid/hooks/index.d.ts +1 -0
- package/node/components/DataGrid/hooks/index.js +1 -0
- package/node/components/DataGrid/hooks/usePlugins/index.d.ts +1 -0
- package/node/components/{ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey → DataGrid/hooks/usePlugins}/index.js +1 -1
- package/node/components/DataGrid/hooks/usePlugins/usePlugins.d.ts +319 -0
- package/node/components/DataGrid/hooks/usePlugins/usePlugins.js +58 -0
- package/node/components/DataGrid/index.d.ts +1 -1
- package/node/components/DataGrid/plugins/resize/ResizeHeadAddon/ResizeHeadAddon.d.ts +5 -0
- package/node/components/DataGrid/plugins/resize/ResizeHeadAddon/ResizeHeadAddon.js +25 -0
- package/node/components/DataGrid/plugins/resize/ResizeHeadAddon/index.d.ts +1 -0
- package/node/components/{ResizingDataGrid/Sliders/useLogic/utils/computePositions → DataGrid/plugins/resize/ResizeHeadAddon}/index.js +1 -1
- package/node/components/DataGrid/plugins/resize/ResizeHeadAddon/styles.d.ts +5 -0
- package/node/components/DataGrid/plugins/resize/ResizeHeadAddon/styles.js +79 -0
- package/node/components/DataGrid/plugins/resize/ResizePlugin.d.ts +8 -0
- package/node/components/DataGrid/plugins/resize/ResizePlugin.js +17 -0
- package/node/components/DataGrid/plugins/resize/constants.d.ts +9 -0
- package/node/components/DataGrid/plugins/resize/constants.js +12 -0
- package/node/components/DataGrid/plugins/resize/hooks/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/hooks/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/index.d.ts +2 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/index.js +18 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/useResizeStorage.d.ts +22 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useResizeStorage/useResizeStorage.js +24 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/useTrackWidths.d.ts +20 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/hooks/useTrackWidths/useTrackWidths.js +37 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/useResize.d.ts +15 -0
- package/node/components/DataGrid/plugins/resize/hooks/useResize/useResize.js +168 -0
- package/node/components/DataGrid/plugins/resize/index.d.ts +2 -0
- package/node/components/DataGrid/plugins/resize/index.js +5 -0
- package/node/components/DataGrid/plugins/resize/public.d.ts +2 -0
- package/node/components/DataGrid/plugins/resize/public.js +5 -0
- package/node/components/DataGrid/plugins/resize/types.d.ts +54 -0
- package/node/components/DataGrid/plugins/resize/utils/assertResizeConfig/assertResizeConfig.d.ts +5 -0
- package/node/components/DataGrid/plugins/resize/utils/assertResizeConfig/assertResizeConfig.js +25 -0
- package/node/components/DataGrid/plugins/resize/utils/assertResizeConfig/index.d.ts +1 -0
- package/node/components/{ResizingDataGrid/hooks/useComputedColumns → DataGrid/plugins/resize/utils/assertResizeConfig}/index.js +1 -1
- package/node/components/DataGrid/plugins/resize/utils/getFixedColumnsList/getFixedColumnsList.d.ts +6 -0
- package/node/components/DataGrid/plugins/resize/utils/getFixedColumnsList/getFixedColumnsList.js +9 -0
- package/node/components/DataGrid/plugins/resize/utils/getFixedColumnsList/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getFixedColumnsList/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/getFractionsList/getFractionsList.d.ts +4 -0
- package/node/components/DataGrid/plugins/resize/utils/getFractionsList/getFractionsList.js +14 -0
- package/node/components/DataGrid/plugins/resize/utils/getFractionsList/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getFractionsList/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/getHandleOffsetsList.d.ts +4 -0
- package/node/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/getHandleOffsetsList.js +14 -0
- package/node/components/DataGrid/plugins/resize/utils/getHandleOffsetsList/index.d.ts +1 -0
- package/node/components/{ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders → DataGrid/plugins/resize/utils/getHandleOffsetsList}/index.js +1 -1
- package/node/components/DataGrid/plugins/resize/utils/getMinWidthsList/getMinWidthsList.d.ts +6 -0
- package/node/components/DataGrid/plugins/resize/utils/getMinWidthsList/getMinWidthsList.js +8 -0
- package/node/components/DataGrid/plugins/resize/utils/getMinWidthsList/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getMinWidthsList/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/getResizedGridColumns/getResizedGridColumns.d.ts +22 -0
- package/node/components/DataGrid/plugins/resize/utils/getResizedGridColumns/getResizedGridColumns.js +19 -0
- package/node/components/DataGrid/plugins/resize/utils/getResizedGridColumns/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getResizedGridColumns/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/getStorageKey/getStorageKey.d.ts +4 -0
- package/node/components/DataGrid/plugins/resize/utils/getStorageKey/getStorageKey.js +9 -0
- package/node/components/DataGrid/plugins/resize/utils/getStorageKey/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getStorageKey/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/getTrackWidthsList/getTrackWidthsList.d.ts +5 -0
- package/node/components/DataGrid/plugins/resize/utils/getTrackWidthsList/getTrackWidthsList.js +12 -0
- package/node/components/DataGrid/plugins/resize/utils/getTrackWidthsList/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/getTrackWidthsList/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/index.d.ts +10 -0
- package/node/components/DataGrid/plugins/resize/utils/index.js +26 -0
- package/node/components/DataGrid/plugins/resize/utils/parseStorageValue/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/parseStorageValue/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/parseStorageValue/parseStorageValue.d.ts +19 -0
- package/node/components/DataGrid/plugins/resize/utils/parseStorageValue/parseStorageValue.js +31 -0
- package/node/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/index.d.ts +1 -0
- package/node/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/index.js +17 -0
- package/node/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/resizeAdjacentColumns.d.ts +25 -0
- package/node/components/DataGrid/plugins/resize/utils/resizeAdjacentColumns/resizeAdjacentColumns.js +25 -0
- package/node/components/DataGrid/public.d.ts +1 -1
- package/node/components/DataGrid/styles.js +17 -0
- package/node/components/DataGrid/tests/resize/resizeHelper.d.ts +37 -0
- package/node/components/DataGrid/tests/resize/resizeHelper.js +74 -0
- package/node/components/DataGrid/types.d.ts +55 -12
- package/node/components/DataGrid/useLogic/useLogic.d.ts +293 -3
- package/node/components/DataGrid/useLogic/useLogic.js +12 -3
- package/node/components/DataGrid/utils/assertUniquePlugins/assertUniquePlugins.d.ts +5 -0
- package/node/components/DataGrid/utils/assertUniquePlugins/assertUniquePlugins.js +16 -0
- package/node/components/DataGrid/utils/assertUniquePlugins/index.d.ts +1 -0
- package/node/components/DataGrid/utils/assertUniquePlugins/index.js +17 -0
- package/node/components/DataGrid/utils/findPlugin/findPlugin.d.ts +5 -0
- package/node/components/DataGrid/utils/findPlugin/findPlugin.js +8 -0
- package/node/components/DataGrid/utils/findPlugin/index.d.ts +1 -0
- package/node/components/DataGrid/utils/findPlugin/index.js +17 -0
- package/node/components/DataGrid/utils/getAutoTableId/getAutoTableId.d.ts +5 -0
- package/node/components/DataGrid/utils/getAutoTableId/getAutoTableId.js +14 -0
- package/node/components/DataGrid/utils/getAutoTableId/index.d.ts +1 -0
- package/node/components/DataGrid/utils/getAutoTableId/index.js +17 -0
- package/node/components/DataGrid/utils/getColumnsSignature/getColumnsSignature.d.ts +6 -0
- package/node/components/DataGrid/utils/getColumnsSignature/getColumnsSignature.js +8 -0
- package/node/components/DataGrid/utils/getColumnsSignature/index.d.ts +1 -0
- package/node/components/DataGrid/utils/getColumnsSignature/index.js +17 -0
- package/node/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.d.ts +15 -1
- package/node/components/DataGrid/utils/getDataGridCssVars/getDataGridCssVars.js +7 -5
- package/node/components/DataGrid/utils/index.d.ts +4 -0
- package/node/components/DataGrid/utils/index.js +9 -1
- package/node/components/DataGridCollapsibleRow/useLogic/useLogic.d.ts +0 -1
- package/node/components/DataGridCollapsibleRow/useLogic/useLogic.js +1 -2
- package/node/components/DataGridInfinite/DataGridInfinite.d.ts +1 -1
- package/node/components/DataGridInfinite/DataGridInfinite.js +28 -24
- package/node/components/DataGridInfinite/Row/Row.js +2 -2
- package/node/components/DataGridInfinite/Row/useLogic/useLogic.d.ts +0 -1
- package/node/components/DataGridInfinite/Row/useLogic/useLogic.js +1 -2
- package/node/components/DataGridInfinite/faker.d.ts +0 -1
- package/node/components/DataGridInfinite/index.d.ts +1 -0
- package/node/components/DataGridInfinite/public.d.ts +1 -0
- package/node/components/DataGridInfinite/types.d.ts +1 -1
- package/node/components/DataGridInfinite/useLogic/useLogic.d.ts +293 -5
- package/node/components/DataGridInfinite/useLogic/useLogic.js +13 -6
- package/node/components/DatePicker/useLogic/useLogic.js +18 -13
- package/node/components/Filename/Filename.js +2 -2
- package/node/components/Filename/useLogic/useLogic.d.ts +3 -2
- package/node/components/Filename/useLogic/useLogic.js +6 -2
- package/node/components/HintPopover/styles.js +5 -0
- package/node/components/OverflowTypography/OverflowTypography.js +3 -3
- package/node/components/OverflowTypography/hooks/useOverflowed/useOverflowed.d.ts +20 -3
- package/node/components/OverflowTypography/hooks/useOverflowed/useOverflowed.js +31 -40
- package/node/components/OverflowTypography/useLogic/useLogic.d.ts +3 -2
- package/node/components/OverflowTypography/useLogic/useLogic.js +8 -2
- package/node/components/RadioCard/RadioCard.d.ts +6 -0
- package/node/components/RadioCard/RadioCard.js +3 -0
- package/node/components/Select/OptionMenuItem/OptionMenuItem.d.ts +5 -0
- package/node/components/Select/OptionMenuItem/OptionMenuItem.js +35 -0
- package/node/components/Select/OptionMenuItem/index.d.ts +1 -0
- package/node/components/Select/OptionMenuItem/index.js +17 -0
- package/node/components/Select/OptionMenuItem/types.d.ts +31 -0
- package/node/components/Select/Select.d.ts +9 -2
- package/node/components/Select/Select.js +43 -10
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/GroupMenuItem.d.ts +5 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/GroupMenuItem.js +24 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/constants.d.ts +2 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/constants.js +5 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/index.d.ts +1 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/index.js +17 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/styles.d.ts +39 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/styles.js +40 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupMenuItem/types.d.ts +32 -0
- package/node/components/{ResizingDataGrid/hooks/useComputedColumns/constants.js → Select/cases/groups/SelectGroup/GroupMenuItem/types.js} +0 -2
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/GroupOptions.d.ts +2 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/GroupOptions.js +8 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/index.d.ts +1 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/index.js +17 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/types.d.ts +31 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupOptions/types.js +2 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/GroupSubheader.d.ts +5 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/GroupSubheader.js +11 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/index.d.ts +1 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/index.js +17 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/styles.d.ts +3 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/styles.js +14 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/types.d.ts +6 -0
- package/node/components/Select/cases/groups/SelectGroup/GroupSubheader/types.js +2 -0
- package/node/components/Select/cases/groups/SelectGroup/SelectGroup.d.ts +5 -0
- package/node/components/Select/cases/groups/SelectGroup/SelectGroup.js +32 -0
- package/node/components/Select/cases/groups/SelectGroup/index.d.ts +1 -0
- package/node/components/Select/cases/groups/SelectGroup/index.js +17 -0
- package/node/components/{ResizingDataGrid/Sliders → Select/cases/groups/SelectGroup}/styles.d.ts +3 -7
- package/node/components/Select/cases/groups/SelectGroup/styles.js +16 -0
- package/node/components/Select/cases/groups/SelectGroup/types.d.ts +53 -0
- package/node/components/Select/cases/groups/SelectGroup/types.js +2 -0
- package/node/components/Select/cases/groups/SelectGroup/useLogic/index.d.ts +1 -0
- package/node/components/Select/cases/groups/SelectGroup/useLogic/index.js +17 -0
- package/node/components/Select/cases/groups/SelectGroup/useLogic/useLogic.d.ts +9 -0
- package/node/components/Select/cases/groups/SelectGroup/useLogic/useLogic.js +14 -0
- package/node/components/Select/cases/groups/constants.d.ts +10 -0
- package/node/components/Select/cases/groups/constants.js +14 -0
- package/node/components/Select/cases/groups/hooks/index.d.ts +1 -0
- package/node/components/Select/cases/groups/hooks/index.js +17 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/index.d.ts +1 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/index.js +17 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/index.d.ts +1 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/index.js +17 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/useCollapsedGroups.d.ts +20 -0
- package/node/components/Select/cases/groups/hooks/useGroups/hooks/useCollapsedGroups/useCollapsedGroups.js +27 -0
- package/node/components/Select/cases/groups/hooks/useGroups/index.d.ts +1 -0
- package/node/components/Select/cases/groups/hooks/useGroups/index.js +17 -0
- package/node/components/Select/cases/groups/hooks/useGroups/useGroups.d.ts +55 -0
- package/node/components/Select/cases/groups/hooks/useGroups/useGroups.js +69 -0
- package/node/components/Select/cases/groups/index.d.ts +3 -0
- package/node/components/Select/cases/groups/index.js +18 -0
- package/node/components/Select/cases/groups/types.d.ts +21 -0
- package/node/components/Select/cases/groups/types.js +2 -0
- package/node/components/Select/cases/groups/utils/checkHasBottomDivider/checkHasBottomDivider.d.ts +4 -0
- package/node/components/Select/cases/groups/utils/checkHasBottomDivider/checkHasBottomDivider.js +16 -0
- package/node/components/Select/cases/groups/utils/checkHasBottomDivider/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/checkHasBottomDivider/index.js +17 -0
- package/node/components/Select/cases/groups/utils/expandTagsList/expandTagsList.d.ts +5 -0
- package/node/components/Select/cases/groups/utils/expandTagsList/expandTagsList.js +12 -0
- package/node/components/Select/cases/groups/utils/expandTagsList/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/expandTagsList/index.js +17 -0
- package/node/components/Select/cases/groups/utils/findGroupByValue/findGroupByValue.d.ts +5 -0
- package/node/components/Select/cases/groups/utils/findGroupByValue/findGroupByValue.js +9 -0
- package/node/components/Select/cases/groups/utils/findGroupByValue/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/findGroupByValue/index.js +17 -0
- package/node/components/Select/cases/groups/utils/getGroupSelection/getGroupSelection.d.ts +9 -0
- package/node/components/Select/cases/groups/utils/getGroupSelection/getGroupSelection.js +16 -0
- package/node/components/Select/cases/groups/utils/getGroupSelection/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/getGroupSelection/index.js +17 -0
- package/node/components/Select/cases/groups/utils/getGroupValue/getGroupValue.d.ts +4 -0
- package/node/components/Select/cases/groups/utils/getGroupValue/getGroupValue.js +9 -0
- package/node/components/Select/cases/groups/utils/getGroupValue/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/getGroupValue/index.js +17 -0
- package/node/components/Select/cases/groups/utils/getTagsList/getTagsList.d.ts +5 -0
- package/node/components/Select/cases/groups/utils/getTagsList/getTagsList.js +19 -0
- package/node/components/Select/cases/groups/utils/getTagsList/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/getTagsList/index.js +17 -0
- package/node/components/Select/cases/groups/utils/index.d.ts +7 -0
- package/node/components/Select/cases/groups/utils/index.js +23 -0
- package/node/components/Select/cases/groups/utils/toggleGroup/index.d.ts +1 -0
- package/node/components/Select/cases/groups/utils/toggleGroup/index.js +17 -0
- package/node/components/Select/cases/groups/utils/toggleGroup/toggleGroup.d.ts +6 -0
- package/node/components/Select/cases/groups/utils/toggleGroup/toggleGroup.js +18 -0
- package/node/components/Select/cases/index.d.ts +1 -0
- package/node/components/{ResizingDataGrid/Sliders → Select/cases}/index.js +1 -1
- package/node/components/Select/constants.d.ts +7 -0
- package/node/components/Select/constants.js +9 -1
- package/node/components/Select/index.d.ts +1 -1
- package/node/components/Select/public.d.ts +1 -1
- package/node/components/Select/styles.d.ts +10 -1
- package/node/components/Select/styles.js +30 -3
- package/node/components/Select/types.d.ts +81 -2
- package/node/components/Select/useLogic/hooks/index.d.ts +1 -0
- package/node/components/Select/useLogic/hooks/index.js +17 -0
- package/node/components/Select/useLogic/hooks/useOptions/index.d.ts +1 -0
- package/node/components/Select/useLogic/hooks/useOptions/index.js +17 -0
- package/node/components/Select/useLogic/hooks/useOptions/useOptions.d.ts +36 -0
- package/node/components/Select/useLogic/hooks/useOptions/useOptions.js +42 -0
- package/node/components/Select/useLogic/useLogic.d.ts +23 -4
- package/node/components/Select/useLogic/useLogic.js +119 -35
- package/node/components/Select/utils/checkIsEqualSelectValues/checkIsEqualSelectValues.d.ts +5 -0
- package/node/components/Select/utils/checkIsEqualSelectValues/checkIsEqualSelectValues.js +18 -0
- package/node/components/Select/utils/checkIsEqualSelectValues/index.d.ts +1 -0
- package/node/components/Select/utils/checkIsEqualSelectValues/index.js +17 -0
- package/node/components/Select/utils/checkIsSelectOptionsGroup/checkIsSelectOptionsGroup.d.ts +5 -0
- package/node/components/Select/utils/checkIsSelectOptionsGroup/checkIsSelectOptionsGroup.js +12 -0
- package/node/components/Select/utils/checkIsSelectOptionsGroup/index.d.ts +1 -0
- package/node/components/Select/utils/checkIsSelectOptionsGroup/index.js +17 -0
- package/node/components/Select/utils/getSelectOptionsList/getSelectOptionsList.d.ts +5 -0
- package/node/components/Select/utils/getSelectOptionsList/getSelectOptionsList.js +9 -0
- package/node/components/Select/utils/getSelectOptionsList/index.d.ts +1 -0
- package/node/components/Select/utils/getSelectOptionsList/index.js +17 -0
- package/node/components/Select/utils/index.d.ts +3 -0
- package/node/components/Select/utils/index.js +19 -0
- package/node/components/SelectionCard/DefaultIndicator/DefaultIndicator.d.ts +5 -0
- package/node/components/SelectionCard/DefaultIndicator/DefaultIndicator.js +18 -0
- package/node/components/SelectionCard/DefaultIndicator/index.d.ts +1 -0
- package/node/components/SelectionCard/DefaultIndicator/index.js +17 -0
- package/node/components/SelectionCard/DefaultIndicator/types.d.ts +7 -0
- package/node/components/SelectionCard/DefaultIndicator/types.js +2 -0
- package/node/components/SelectionCard/SelectionCard.d.ts +5 -0
- package/node/components/SelectionCard/SelectionCard.js +52 -0
- package/node/components/SelectionCard/cases/grouped/index.d.ts +1 -0
- package/node/components/SelectionCard/cases/grouped/index.js +5 -0
- package/node/components/SelectionCard/cases/grouped/styles.d.ts +10 -0
- package/node/components/SelectionCard/cases/grouped/styles.js +131 -0
- package/node/components/SelectionCard/cases/index.d.ts +2 -0
- package/node/components/SelectionCard/cases/index.js +18 -0
- package/node/components/SelectionCard/cases/standalone/index.d.ts +1 -0
- package/node/components/SelectionCard/cases/standalone/index.js +5 -0
- package/node/components/SelectionCard/cases/standalone/styles.d.ts +10 -0
- package/node/components/SelectionCard/cases/standalone/styles.js +80 -0
- package/node/components/SelectionCard/constants.d.ts +15 -0
- package/node/components/SelectionCard/constants.js +19 -0
- package/node/components/SelectionCard/index.d.ts +2 -0
- package/node/components/SelectionCard/index.js +5 -0
- package/node/components/SelectionCard/public.d.ts +2 -0
- package/node/components/SelectionCard/public.js +5 -0
- package/node/components/SelectionCard/styles.d.ts +39 -0
- package/node/components/SelectionCard/styles.js +84 -0
- package/node/components/SelectionCard/types.d.ts +31 -0
- package/node/components/SelectionCard/types.js +2 -0
- package/node/components/SelectionCard/useLogic/index.d.ts +1 -0
- package/node/components/SelectionCard/useLogic/index.js +17 -0
- package/node/components/SelectionCard/useLogic/useLogic.d.ts +18 -0
- package/node/components/SelectionCard/useLogic/useLogic.js +52 -0
- package/node/components/SelectionCardGroup/SelectionCardGroup.d.ts +5 -0
- package/node/components/SelectionCardGroup/SelectionCardGroup.js +23 -0
- package/node/components/SelectionCardGroup/SelectionCardGroupContext/SelectionCardGroupContext.d.ts +21 -0
- package/node/components/SelectionCardGroup/SelectionCardGroupContext/SelectionCardGroupContext.js +17 -0
- package/node/components/SelectionCardGroup/SelectionCardGroupContext/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/SelectionCardGroupContext/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/grouped/constants.d.ts +4 -0
- package/node/components/SelectionCardGroup/cases/grouped/constants.js +7 -0
- package/node/components/SelectionCardGroup/cases/grouped/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/grouped/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/index.d.ts +4 -0
- package/node/components/SelectionCardGroup/cases/index.js +20 -0
- package/node/components/SelectionCardGroup/cases/multiple/constants.d.ts +5 -0
- package/node/components/SelectionCardGroup/cases/multiple/constants.js +12 -0
- package/node/components/SelectionCardGroup/cases/multiple/index.d.ts +2 -0
- package/node/components/SelectionCardGroup/cases/multiple/index.js +18 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/toggleValue/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/toggleValue/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/toggleValue/toggleValue.d.ts +4 -0
- package/node/components/SelectionCardGroup/cases/multiple/utils/toggleValue/toggleValue.js +13 -0
- package/node/components/SelectionCardGroup/cases/single/constants.d.ts +5 -0
- package/node/components/SelectionCardGroup/cases/single/constants.js +12 -0
- package/node/components/SelectionCardGroup/cases/single/index.d.ts +2 -0
- package/node/components/SelectionCardGroup/cases/single/index.js +18 -0
- package/node/components/SelectionCardGroup/cases/single/utils/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/single/utils/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/single/utils/selectValue/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/single/utils/selectValue/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/single/utils/selectValue/selectValue.d.ts +5 -0
- package/node/components/SelectionCardGroup/cases/single/utils/selectValue/selectValue.js +14 -0
- package/node/components/SelectionCardGroup/cases/standalone/constants.d.ts +2 -0
- package/node/components/SelectionCardGroup/cases/standalone/constants.js +5 -0
- package/node/components/SelectionCardGroup/cases/standalone/index.d.ts +3 -0
- package/node/components/SelectionCardGroup/cases/standalone/index.js +21 -0
- package/node/components/SelectionCardGroup/cases/standalone/styles.d.ts +7 -0
- package/node/components/SelectionCardGroup/cases/standalone/styles.js +13 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/getGridColumns.d.ts +5 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/getGridColumns.js +14 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/getGridColumns/index.js +17 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/cases/standalone/utils/index.js +17 -0
- package/node/components/SelectionCardGroup/constants.d.ts +3 -0
- package/node/components/SelectionCardGroup/constants.js +7 -0
- package/node/components/SelectionCardGroup/index.d.ts +3 -0
- package/node/components/SelectionCardGroup/index.js +7 -0
- package/node/components/SelectionCardGroup/public.d.ts +2 -0
- package/node/components/SelectionCardGroup/public.js +5 -0
- package/node/components/SelectionCardGroup/styles.d.ts +15 -0
- package/node/components/SelectionCardGroup/styles.js +20 -0
- package/node/components/SelectionCardGroup/types.d.ts +120 -0
- package/node/components/SelectionCardGroup/types.js +2 -0
- package/node/components/SelectionCardGroup/useLogic/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/useLogic/index.js +17 -0
- package/node/components/SelectionCardGroup/useLogic/useLogic.d.ts +17 -0
- package/node/components/SelectionCardGroup/useLogic/useLogic.js +63 -0
- package/node/components/SelectionCardGroup/useLogic/utils/createSelectHandler/createSelectHandler.d.ts +5 -0
- package/node/components/SelectionCardGroup/useLogic/utils/createSelectHandler/createSelectHandler.js +14 -0
- package/node/components/SelectionCardGroup/useLogic/utils/createSelectHandler/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/useLogic/utils/createSelectHandler/index.js +17 -0
- package/node/components/SelectionCardGroup/useLogic/utils/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/useLogic/utils/index.js +17 -0
- package/node/components/SelectionCardGroup/utils/getSelectedValuesList/getSelectedValuesList.d.ts +5 -0
- package/node/components/SelectionCardGroup/utils/getSelectedValuesList/getSelectedValuesList.js +16 -0
- package/node/components/SelectionCardGroup/utils/getSelectedValuesList/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/utils/getSelectedValuesList/index.js +17 -0
- package/node/components/SelectionCardGroup/utils/index.d.ts +1 -0
- package/node/components/SelectionCardGroup/utils/index.js +17 -0
- package/node/components/Status/Status.d.ts +2 -0
- package/node/components/Status/Status.js +41 -0
- package/node/components/Status/constants.d.ts +17 -0
- package/node/components/Status/constants.js +21 -0
- package/node/components/Status/index.d.ts +3 -0
- package/node/components/Status/index.js +7 -0
- package/node/components/Status/public.d.ts +3 -0
- package/node/components/Status/public.js +7 -0
- package/node/components/Status/styles.d.ts +24 -0
- package/node/components/Status/styles.js +123 -0
- package/node/components/Status/types.d.ts +17 -0
- package/node/components/Status/types.js +2 -0
- package/node/components/Status/useLogic/index.d.ts +1 -0
- package/node/components/Status/useLogic/index.js +17 -0
- package/node/components/Status/useLogic/useLogic.d.ts +11 -0
- package/node/components/Status/useLogic/useLogic.js +37 -0
- package/node/components/TagBadge/styles.js +21 -3
- package/node/components/index.d.ts +1 -1
- package/node/components/utils/setRef/index.d.ts +1 -0
- package/node/components/utils/setRef/index.js +17 -0
- package/node/components/utils/setRef/setRef.d.ts +5 -0
- package/node/components/utils/setRef/setRef.js +16 -0
- package/node/hook-form/EditableText/EditableText.js +12 -5
- package/node/hook-form/EditableText/EditingForm/EditingForm.js +1 -1
- package/node/hook-form/EditableText/EditingForm/styles.js +8 -0
- package/node/hook-form/EditableText/constants.d.ts +1 -0
- package/node/hook-form/EditableText/constants.js +1 -0
- package/node/hook-form/EditableText/styles.d.ts +4 -0
- package/node/hook-form/EditableText/styles.js +6 -10
- package/node/hook-form/EditableText/useLogic/useLogic.d.ts +1 -0
- package/node/hook-form/EditableText/useLogic/useLogic.js +5 -0
- package/node/hook-form/FormQuickFilters/FormQuickFilters.js +2 -14
- package/node/hook-form/FormQuickFilters/useLogic/useLogic.d.ts +7 -4
- package/node/hook-form/FormQuickFilters/useLogic/useLogic.js +12 -7
- package/node/hook-form/FormSelect/FormSelect.d.ts +5 -2
- package/node/hook-form/FormSelectionCardGroup/FormSelectionCardGroup.d.ts +7 -0
- package/node/hook-form/FormSelectionCardGroup/FormSelectionCardGroup.js +22 -0
- package/node/hook-form/FormSelectionCardGroup/index.d.ts +1 -0
- package/node/hook-form/FormSelectionCardGroup/index.js +17 -0
- package/node/hook-form/FormSelectionCardGroup/public.d.ts +1 -0
- package/node/hook-form/FormSelectionCardGroup/public.js +17 -0
- package/package.json +1 -17
- package/components/ResizingDataGrid/ResizingDataGrid.d.ts +0 -10
- package/components/ResizingDataGrid/ResizingDataGrid.js +0 -15
- package/components/ResizingDataGrid/Sliders/Sliders.d.ts +0 -6
- package/components/ResizingDataGrid/Sliders/Sliders.js +0 -9
- package/components/ResizingDataGrid/Sliders/index.d.ts +0 -1
- package/components/ResizingDataGrid/Sliders/index.js +0 -1
- package/components/ResizingDataGrid/Sliders/styles.js +0 -151
- package/components/ResizingDataGrid/Sliders/useLogic/useLogic.d.ts +0 -13
- package/components/ResizingDataGrid/Sliders/useLogic/useLogic.js +0 -36
- package/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/computePositions.d.ts +0 -7
- package/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/computePositions.js +0 -36
- package/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/index.d.ts +0 -1
- package/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/index.js +0 -1
- package/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/createInitialSliders.d.ts +0 -1
- package/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/createInitialSliders.js +0 -10
- package/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/index.d.ts +0 -1
- package/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/index.js +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/constants.d.ts +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/constants.js +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/index.d.ts +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/index.js +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/useComputedColumns.d.ts +0 -12
- package/components/ResizingDataGrid/hooks/useComputedColumns/useComputedColumns.js +0 -30
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/createComputedColumns.d.ts +0 -11
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/createComputedColumns.js +0 -24
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/index.d.ts +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/index.js +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/createInitialColumnsWidths.d.ts +0 -7
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/createInitialColumnsWidths.js +0 -24
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/index.d.ts +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/index.js +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/createStorageKey.d.ts +0 -7
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/createStorageKey.js +0 -6
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/index.d.ts +0 -1
- package/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/index.js +0 -1
- package/components/ResizingDataGrid/index.d.ts +0 -4
- package/components/ResizingDataGrid/index.js +0 -3
- package/components/ResizingDataGrid/public.d.ts +0 -4
- package/components/ResizingDataGrid/public.js +0 -3
- package/components/ResizingDataGrid/types.d.ts +0 -43
- package/components/ResizingDataGridInfinite/ResizingDataGridInfinite.d.ts +0 -10
- package/components/ResizingDataGridInfinite/ResizingDataGridInfinite.js +0 -14
- package/components/ResizingDataGridInfinite/index.d.ts +0 -2
- package/components/ResizingDataGridInfinite/index.js +0 -1
- package/components/ResizingDataGridInfinite/public.d.ts +0 -2
- package/components/ResizingDataGridInfinite/public.js +0 -1
- package/components/ResizingDataGridInfinite/types.d.ts +0 -7
- package/node/components/ResizingDataGrid/ResizingDataGrid.d.ts +0 -10
- package/node/components/ResizingDataGrid/ResizingDataGrid.js +0 -19
- package/node/components/ResizingDataGrid/Sliders/Sliders.d.ts +0 -6
- package/node/components/ResizingDataGrid/Sliders/Sliders.js +0 -13
- package/node/components/ResizingDataGrid/Sliders/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/Sliders/styles.js +0 -154
- package/node/components/ResizingDataGrid/Sliders/useLogic/useLogic.d.ts +0 -13
- package/node/components/ResizingDataGrid/Sliders/useLogic/useLogic.js +0 -40
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/computePositions.d.ts +0 -7
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/computePositions.js +0 -40
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/computePositions/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/createInitialSliders.d.ts +0 -1
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/createInitialSliders.js +0 -14
- package/node/components/ResizingDataGrid/Sliders/useLogic/utils/createInitialSliders/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/constants.d.ts +0 -1
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/useComputedColumns.d.ts +0 -12
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/useComputedColumns.js +0 -34
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/createComputedColumns.d.ts +0 -11
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/createComputedColumns.js +0 -28
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createComputedColumns/index.js +0 -17
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/createInitialColumnsWidths.d.ts +0 -7
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/createInitialColumnsWidths.js +0 -28
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createInitialColumnsWidths/index.js +0 -17
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/createStorageKey.d.ts +0 -7
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/createStorageKey.js +0 -13
- package/node/components/ResizingDataGrid/hooks/useComputedColumns/utils/createStorageKey/index.d.ts +0 -1
- package/node/components/ResizingDataGrid/index.d.ts +0 -4
- package/node/components/ResizingDataGrid/index.js +0 -9
- package/node/components/ResizingDataGrid/public.d.ts +0 -4
- package/node/components/ResizingDataGrid/public.js +0 -9
- package/node/components/ResizingDataGrid/types.d.ts +0 -43
- package/node/components/ResizingDataGridInfinite/ResizingDataGridInfinite.d.ts +0 -10
- package/node/components/ResizingDataGridInfinite/ResizingDataGridInfinite.js +0 -18
- package/node/components/ResizingDataGridInfinite/index.d.ts +0 -2
- package/node/components/ResizingDataGridInfinite/index.js +0 -5
- package/node/components/ResizingDataGridInfinite/public.d.ts +0 -2
- package/node/components/ResizingDataGridInfinite/public.js +0 -5
- package/node/components/ResizingDataGridInfinite/types.d.ts +0 -7
- /package/components/{ResizingDataGrid/Sliders → DataGrid/Head}/useLogic/index.d.ts +0 -0
- /package/components/{ResizingDataGrid/Sliders → DataGrid/Head}/useLogic/index.js +0 -0
- /package/components/{ResizingDataGrid → DataGrid/plugins/resize}/types.js +0 -0
- /package/components/{ResizingDataGridInfinite → Select/OptionMenuItem}/types.js +0 -0
- /package/{node/components/ResizingDataGrid/Sliders → components/Select/cases/groups/SelectGroup}/useLogic/index.d.ts +0 -0
- /package/node/components/{ResizingDataGrid/Sliders → DataGrid/Head}/useLogic/index.js +0 -0
- /package/node/components/{ResizingDataGrid → DataGrid/plugins/resize}/types.js +0 -0
- /package/node/components/{ResizingDataGridInfinite → Select/OptionMenuItem}/types.js +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { isDate } from '@astral/utils/date/isDate';
|
|
1
2
|
import { useState } from 'react';
|
|
2
3
|
import { useForwardedRef } from '../../useForwardedRef';
|
|
3
4
|
import { usePopover } from '../../usePopover';
|
|
4
5
|
import { useViewportType } from '../../useViewportType';
|
|
6
|
+
import { formatDate } from '../../utils/date';
|
|
5
7
|
import { DEFAULT_DATE_MASK } from '../constants';
|
|
6
8
|
import { useDatePickerOptions } from '../hooks/useDatePickerOptions';
|
|
7
9
|
import { DEFAULT_MAX_DATE, DEFAULT_MIN_DATE } from '../MinMaxDateContext';
|
|
@@ -14,15 +16,10 @@ export const useLogic = ({ label, value, maxDate = DEFAULT_MAX_DATE, minDate = D
|
|
|
14
16
|
const isTitleShow = isMobile && typeof label === 'string';
|
|
15
17
|
const handleOpen = (event) => {
|
|
16
18
|
onOpen?.();
|
|
19
|
+
// value может прийти как Invalid Date — такой черновик подтверждать нечего
|
|
20
|
+
setSelectedDate(isDate(value) ? value : null);
|
|
17
21
|
open(event);
|
|
18
22
|
};
|
|
19
|
-
const handleDayPick = (date) => {
|
|
20
|
-
if (isMobile) {
|
|
21
|
-
setSelectedDate(date);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
handleClose();
|
|
25
|
-
};
|
|
26
23
|
const handleChange = (date) => {
|
|
27
24
|
if (!isMobile) {
|
|
28
25
|
onChange?.(date);
|
|
@@ -33,7 +30,7 @@ export const useLogic = ({ label, value, maxDate = DEFAULT_MAX_DATE, minDate = D
|
|
|
33
30
|
maxDate,
|
|
34
31
|
minDate,
|
|
35
32
|
mask,
|
|
36
|
-
onDatePick:
|
|
33
|
+
onDatePick: () => handleClose(),
|
|
37
34
|
onChange: handleChange,
|
|
38
35
|
});
|
|
39
36
|
/** Blur: неполный ввод -Invalid Date в onChange (при isMobile onChange не шлём), потом внешний onBlur. */
|
|
@@ -53,9 +50,17 @@ export const useLogic = ({ label, value, maxDate = DEFAULT_MAX_DATE, minDate = D
|
|
|
53
50
|
flushMaskedValueAndCallOnBlur();
|
|
54
51
|
};
|
|
55
52
|
const handleConfirm = () => {
|
|
53
|
+
if (!selectedDate) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
56
|
onChange?.(selectedDate);
|
|
57
|
-
|
|
57
|
+
// заносит дату в поле и закрывает шторку, как выбор дня на desktop
|
|
58
|
+
pickerProps.onChange?.(selectedDate);
|
|
58
59
|
};
|
|
60
|
+
// На мобильном выбранный день не попадает в поле до подтверждения
|
|
61
|
+
const calculatedPickerProps = isMobile
|
|
62
|
+
? { ...pickerProps, selectedDate, onChange: setSelectedDate }
|
|
63
|
+
: pickerProps;
|
|
59
64
|
const datePickerProps = {
|
|
60
65
|
open: isOpen,
|
|
61
66
|
anchorEl: ref.current,
|
|
@@ -69,9 +74,9 @@ export const useLogic = ({ label, value, maxDate = DEFAULT_MAX_DATE, minDate = D
|
|
|
69
74
|
const confirmButtonProps = {
|
|
70
75
|
onClick: handleConfirm,
|
|
71
76
|
disabled: !selectedDate,
|
|
72
|
-
children:
|
|
73
|
-
?
|
|
74
|
-
:
|
|
77
|
+
children: selectedDate
|
|
78
|
+
? `Выбрать ${formatDate(selectedDate, mask)}`
|
|
79
|
+
: 'Выберите дату',
|
|
75
80
|
};
|
|
76
81
|
return {
|
|
77
82
|
handleOpen,
|
|
@@ -79,7 +84,7 @@ export const useLogic = ({ label, value, maxDate = DEFAULT_MAX_DATE, minDate = D
|
|
|
79
84
|
confirmButtonProps,
|
|
80
85
|
DatePickerInputProps,
|
|
81
86
|
onAccept,
|
|
82
|
-
pickerProps,
|
|
87
|
+
pickerProps: calculatedPickerProps,
|
|
83
88
|
ref,
|
|
84
89
|
isMobile,
|
|
85
90
|
datePickerProps,
|
|
@@ -6,7 +6,7 @@ import { cn } from '../utils/cn';
|
|
|
6
6
|
import { FileBaseName, FileSuffix, StyledTypography } from './styles';
|
|
7
7
|
import { useLogic } from './useLogic';
|
|
8
8
|
export const Filename = forwardRef((props, forwardedRef) => {
|
|
9
|
-
const { isOverflowed, suffixWithExtension, baseNameProps } = useLogic({
|
|
9
|
+
const { isOverflowed, suffixWithExtension, baseNameProps, handleTooltipOpen, } = useLogic({
|
|
10
10
|
...props,
|
|
11
11
|
ref: forwardedRef,
|
|
12
12
|
});
|
|
@@ -14,5 +14,5 @@ export const Filename = forwardRef((props, forwardedRef) => {
|
|
|
14
14
|
const hidePersonalDataClassname = useHidePersonalData({
|
|
15
15
|
isEnabled: isHidePersonalData,
|
|
16
16
|
});
|
|
17
|
-
return (_jsx(Tooltip, { title: isOverflowed && children, disableInteractive: true, ...tooltipProps, className: cn(tooltipProps?.className, hidePersonalDataClassname), children: _jsxs(StyledTypography, { "$align": align, variant: variant, className: cn(className, hidePersonalDataClassname), ...restProps, children: [_jsx(FileBaseName, { ...baseNameProps }), _jsx(FileSuffix, { children: suffixWithExtension })] }) }));
|
|
17
|
+
return (_jsx(Tooltip, { title: isOverflowed && children, disableInteractive: true, ...tooltipProps, className: cn(tooltipProps?.className, hidePersonalDataClassname), onOpen: handleTooltipOpen, children: _jsxs(StyledTypography, { "$align": align, variant: variant, className: cn(className, hidePersonalDataClassname), ...restProps, children: [_jsx(FileBaseName, { ...baseNameProps }), _jsx(FileSuffix, { children: suffixWithExtension })] }) }));
|
|
18
18
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Ref } from 'react';
|
|
1
|
+
import { type Ref, type SyntheticEvent } from 'react';
|
|
2
2
|
import { type FileNameProps } from '../Filename';
|
|
3
3
|
type SpanProps = {
|
|
4
4
|
children: string;
|
|
@@ -11,6 +11,7 @@ type UseLogicResult = {
|
|
|
11
11
|
isOverflowed: boolean;
|
|
12
12
|
baseNameProps: SpanProps;
|
|
13
13
|
suffixWithExtension: string;
|
|
14
|
+
handleTooltipOpen: (event: SyntheticEvent) => void;
|
|
14
15
|
};
|
|
15
|
-
export declare const useLogic: ({ ref: forwardedRef, children, }: UseLogicParams) => UseLogicResult;
|
|
16
|
+
export declare const useLogic: ({ ref: forwardedRef, children, tooltipProps, }: UseLogicParams) => UseLogicResult;
|
|
16
17
|
export {};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { useOverflowed } from '../../OverflowTypography/hooks';
|
|
2
2
|
import { truncateString } from './utils';
|
|
3
|
-
export const useLogic = ({ ref: forwardedRef, children, }) => {
|
|
4
|
-
const { ref, isOverflowed } = useOverflowed(
|
|
3
|
+
export const useLogic = ({ ref: forwardedRef, children, tooltipProps, }) => {
|
|
4
|
+
const { ref, isOverflowed, handleTooltipOpen } = useOverflowed({
|
|
5
|
+
forwardedRef,
|
|
6
|
+
onTooltipOpen: tooltipProps?.onOpen,
|
|
7
|
+
});
|
|
5
8
|
const { baseName, suffixWithExtension } = truncateString(children);
|
|
6
9
|
return {
|
|
7
10
|
baseNameProps: { ref, children: baseName },
|
|
8
11
|
isOverflowed,
|
|
9
12
|
suffixWithExtension,
|
|
13
|
+
handleTooltipOpen,
|
|
10
14
|
};
|
|
11
15
|
};
|
|
@@ -63,6 +63,11 @@ export const CloseButton = styled(IconButton) `
|
|
|
63
63
|
|
|
64
64
|
color: inherit;
|
|
65
65
|
|
|
66
|
+
/* Тема красит серую кнопку в фокусе в тёмный цвет: на тёмной подложке крестик пропадает. Фокус получает крестик при открытии подсказки */
|
|
67
|
+
.${hintPopoverClassnames.dark} &:focus-visible {
|
|
68
|
+
color: inherit;
|
|
69
|
+
}
|
|
70
|
+
|
|
66
71
|
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
67
72
|
top: ${({ theme }) => theme.spacing(2)};
|
|
68
73
|
right: ${({ theme }) => theme.spacing(2)};
|
|
@@ -6,7 +6,7 @@ import { StyledTypography, Wrapper } from './styles';
|
|
|
6
6
|
import { useLogic } from './useLogic';
|
|
7
7
|
export const DEFAULT_ROWS_COUNT = 1;
|
|
8
8
|
export const OverflowTypography = forwardRef((props, forwardedRef) => {
|
|
9
|
-
const { ref, secondPartLabel, firstPartLabel, hasVisibleLastSymbols, hasMultipleRows, tooltipTitle, } = useLogic({
|
|
9
|
+
const { ref, secondPartLabel, firstPartLabel, hasVisibleLastSymbols, hasMultipleRows, tooltipTitle, handleTooltipOpen, } = useLogic({
|
|
10
10
|
...props,
|
|
11
11
|
forwardedRef,
|
|
12
12
|
});
|
|
@@ -20,7 +20,7 @@ export const OverflowTypography = forwardRef((props, forwardedRef) => {
|
|
|
20
20
|
hasMultipleRows,
|
|
21
21
|
};
|
|
22
22
|
if (hasVisibleLastSymbols) {
|
|
23
|
-
return (_jsx(Tooltip, { title: tooltipTitle, disableInteractive: true, ...tooltipProps, children: _jsxs(Wrapper, { "$align": align, children: [_jsx(StyledTypography, { component: "span", children: firstPartLabel, ref: ref, hasMultipleRows: hasMultipleRows, rowsCount: 1, ...restProps }), _jsx(Typography, { children: secondPartLabel, ...restProps, component: "span" })] }) }));
|
|
23
|
+
return (_jsx(Tooltip, { title: tooltipTitle, disableInteractive: true, ...tooltipProps, onOpen: handleTooltipOpen, children: _jsxs(Wrapper, { "$align": align, children: [_jsx(StyledTypography, { component: "span", children: firstPartLabel, ref: ref, hasMultipleRows: hasMultipleRows, rowsCount: 1, ...restProps }), _jsx(Typography, { children: secondPartLabel, ...restProps, component: "span" })] }) }));
|
|
24
24
|
}
|
|
25
|
-
return (_jsx(Tooltip, { title: tooltipTitle, disableInteractive: true, ...tooltipProps, children: _jsx(StyledTypography, { ...typographyProps }) }));
|
|
25
|
+
return (_jsx(Tooltip, { title: tooltipTitle, disableInteractive: true, ...tooltipProps, onOpen: handleTooltipOpen, children: _jsx(StyledTypography, { ...typographyProps }) }));
|
|
26
26
|
});
|
|
@@ -1,5 +1,22 @@
|
|
|
1
|
-
import { type Ref } from 'react';
|
|
2
|
-
|
|
1
|
+
import { type Ref, type SyntheticEvent } from 'react';
|
|
2
|
+
type UseOverflowedParams = {
|
|
3
|
+
forwardedRef?: Ref<HTMLElement>;
|
|
4
|
+
/**
|
|
5
|
+
* Учитывать переполнение по высоте (многострочный режим)
|
|
6
|
+
*/
|
|
7
|
+
hasMultipleRows?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* onOpen tooltip, переданный продуктом
|
|
10
|
+
*/
|
|
11
|
+
onTooltipOpen?: (event: SyntheticEvent) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Tooltip открыт продуктом через tooltipProps.open
|
|
14
|
+
*/
|
|
15
|
+
isTooltipOpen?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const useOverflowed: ({ forwardedRef, hasMultipleRows, onTooltipOpen, isTooltipOpen, }: UseOverflowedParams) => {
|
|
3
18
|
isOverflowed: boolean;
|
|
4
|
-
ref:
|
|
19
|
+
ref: (node: HTMLElement | null) => void;
|
|
20
|
+
handleTooltipOpen: (event: SyntheticEvent) => void;
|
|
5
21
|
};
|
|
22
|
+
export {};
|
|
@@ -1,47 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useFirstMountState } from '../../../useFirstMountState';
|
|
4
|
-
export const useOverflowed = (forwardedRef, hasMultipleRows = false, hasVisibleLastSymbols = false) => {
|
|
1
|
+
import { useCallback, useLayoutEffect, useRef, useState, } from 'react';
|
|
2
|
+
export const useOverflowed = ({ forwardedRef, hasMultipleRows = false, onTooltipOpen, isTooltipOpen, }) => {
|
|
5
3
|
const localRef = useRef(null);
|
|
6
|
-
const ref =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const isFirstMount = useFirstMountState();
|
|
11
|
-
const checkOverflow = ([{ target, contentRect },]) => {
|
|
12
|
-
// высота контента больше высоты контейнера -> переполнение
|
|
13
|
-
const isScrollHeightBigger = target.scrollHeight > Math.round(contentRect.height);
|
|
14
|
-
// ширина контента больше ширины контейнера -> переполнение
|
|
15
|
-
const isScrollWidthBigger = target.scrollWidth > Math.round(contentRect.width);
|
|
16
|
-
const newIsOverflowed = hasMultipleRows
|
|
17
|
-
? isScrollWidthBigger || isScrollHeightBigger
|
|
18
|
-
: isScrollWidthBigger;
|
|
19
|
-
// Обновляем состояние только если значение действительно изменилось
|
|
20
|
-
setOverflow((prev) => (prev !== newIsOverflowed ? newIsOverflowed : prev));
|
|
21
|
-
};
|
|
22
|
-
useLayoutEffect(() => {
|
|
23
|
-
const node = ref.current;
|
|
24
|
-
if (!node) {
|
|
4
|
+
const ref = useCallback((node) => {
|
|
5
|
+
localRef.current = node;
|
|
6
|
+
if (typeof forwardedRef === 'function') {
|
|
7
|
+
forwardedRef(node);
|
|
25
8
|
return;
|
|
26
9
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
10
|
+
if (forwardedRef) {
|
|
11
|
+
forwardedRef.current = node;
|
|
12
|
+
}
|
|
13
|
+
}, [forwardedRef]);
|
|
14
|
+
const [isOverflowed, setOverflow] = useState(false);
|
|
15
|
+
// Переполнение проверяется в момент открытия tooltip, а не через ResizeObserver,
|
|
16
|
+
// чтобы не держать наблюдателя и не вызывать rerender компонента на каждый resize.
|
|
17
|
+
// Tooltip вызывает onOpen и при пустом title, поэтому после замера он успевает показаться
|
|
18
|
+
const checkOverflow = () => {
|
|
19
|
+
const node = localRef.current;
|
|
20
|
+
if (node) {
|
|
21
|
+
const isWidthOverflowed = node.scrollWidth > node.clientWidth;
|
|
22
|
+
const isHeightOverflowed = hasMultipleRows && node.scrollHeight > node.clientHeight;
|
|
23
|
+
setOverflow(isWidthOverflowed || isHeightOverflowed);
|
|
36
24
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
};
|
|
26
|
+
// MUI не вызывает onOpen у tooltip, открытого через open=true,
|
|
27
|
+
// поэтому замер делается, когда продукт открывает tooltip сам
|
|
28
|
+
useLayoutEffect(() => {
|
|
29
|
+
if (isTooltipOpen) {
|
|
30
|
+
checkOverflow();
|
|
40
31
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
return { isOverflowed, ref };
|
|
32
|
+
}, [isTooltipOpen]);
|
|
33
|
+
const handleTooltipOpen = (event) => {
|
|
34
|
+
checkOverflow();
|
|
35
|
+
onTooltipOpen?.(event);
|
|
36
|
+
};
|
|
37
|
+
return { isOverflowed, ref, handleTooltipOpen };
|
|
47
38
|
};
|
|
@@ -3,12 +3,13 @@ import { type OverflowedTypographyProps } from '../types';
|
|
|
3
3
|
type UseLogicParams = OverflowedTypographyProps & {
|
|
4
4
|
forwardedRef: ForwardedRef<HTMLElement>;
|
|
5
5
|
};
|
|
6
|
-
export declare const useLogic: ({ forwardedRef, children, visibleLastSymbolsCount, rowsCount, }: UseLogicParams) => {
|
|
6
|
+
export declare const useLogic: ({ forwardedRef, children, visibleLastSymbolsCount, rowsCount, tooltipProps, }: UseLogicParams) => {
|
|
7
7
|
hasVisibleLastSymbols: boolean;
|
|
8
|
-
ref:
|
|
8
|
+
ref: (node: HTMLElement | null) => void;
|
|
9
9
|
firstPartLabel: string;
|
|
10
10
|
secondPartLabel: string;
|
|
11
11
|
hasMultipleRows: boolean;
|
|
12
12
|
tooltipTitle: import("react").ReactNode;
|
|
13
|
+
handleTooltipOpen: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
13
14
|
};
|
|
14
15
|
export {};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { useOverflowed } from '../hooks/useOverflowed';
|
|
2
2
|
import { truncateString } from '../utils';
|
|
3
|
-
export const useLogic = ({ forwardedRef, children, visibleLastSymbolsCount = 0, rowsCount = 1, }) => {
|
|
3
|
+
export const useLogic = ({ forwardedRef, children, visibleLastSymbolsCount = 0, rowsCount = 1, tooltipProps, }) => {
|
|
4
4
|
const canSlice = Boolean(children && typeof children === 'string');
|
|
5
5
|
const hasVisibleLastSymbols = canSlice && visibleLastSymbolsCount > 0;
|
|
6
6
|
const hasMultipleRows = hasVisibleLastSymbols ? false : rowsCount > 1;
|
|
7
|
-
const { ref, isOverflowed } = useOverflowed(
|
|
7
|
+
const { ref, isOverflowed, handleTooltipOpen } = useOverflowed({
|
|
8
|
+
forwardedRef,
|
|
9
|
+
hasMultipleRows,
|
|
10
|
+
onTooltipOpen: tooltipProps?.onOpen,
|
|
11
|
+
isTooltipOpen: tooltipProps?.open,
|
|
12
|
+
});
|
|
8
13
|
const { firstPartLabel, secondPartLabel } = hasVisibleLastSymbols && typeof children === 'string'
|
|
9
14
|
? truncateString(visibleLastSymbolsCount, children)
|
|
10
15
|
: { firstPartLabel: '', secondPartLabel: '' };
|
|
@@ -16,5 +21,6 @@ export const useLogic = ({ forwardedRef, children, visibleLastSymbolsCount = 0,
|
|
|
16
21
|
secondPartLabel,
|
|
17
22
|
hasMultipleRows,
|
|
18
23
|
tooltipTitle,
|
|
24
|
+
handleTooltipOpen,
|
|
19
25
|
};
|
|
20
26
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type RadioProps } from '../Radio';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Причина отказа от поддержки: RadioCard поддерживает только одиночный выбор и сгруппированный список. Используйте `SelectionCardGroup variant="grouped"` с `SelectionCard`. Удаление в V5.
|
|
5
|
+
*/
|
|
3
6
|
export type RadioCardProps = Omit<RadioProps, 'icon' | 'required' | 'LinkComponent' | 'edge'> & {
|
|
4
7
|
/**
|
|
5
8
|
* Название класса, применяется к корневому компоненту
|
|
@@ -11,4 +14,7 @@ export type RadioCardProps = Omit<RadioProps, 'icon' | 'required' | 'LinkCompone
|
|
|
11
14
|
header: ReactNode;
|
|
12
15
|
children?: ReactNode;
|
|
13
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Причина отказа от поддержки: RadioCard поддерживает только одиночный выбор и сгруппированный список. Используйте `SelectionCardGroup variant="grouped"` с `SelectionCard`. Удаление в V5.
|
|
19
|
+
*/
|
|
14
20
|
export declare const RadioCard: ({ id, disabled: propsIsDisabled, className, header, children, value, ...props }: RadioCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,9 @@ import { RadioGroupContext } from '../RadioGroup';
|
|
|
4
4
|
import { cn } from '../utils/cn';
|
|
5
5
|
import { radioCardClassnames } from './constants';
|
|
6
6
|
import { Content, StyledRadio, Wrapper } from './styles';
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Причина отказа от поддержки: RadioCard поддерживает только одиночный выбор и сгруппированный список. Используйте `SelectionCardGroup variant="grouped"` с `SelectionCard`. Удаление в V5.
|
|
9
|
+
*/
|
|
7
10
|
export const RadioCard = ({ id, disabled: propsIsDisabled, className, header, children, value, ...props }) => {
|
|
8
11
|
const { isError, value: groupValue, name, onChange, disabled, } = useContext(RadioGroupContext);
|
|
9
12
|
return (_jsxs(Wrapper, { className: cn(className, radioCardClassnames.root), "$isError": isError, "$isChecked": groupValue === value, "$isDisabled": disabled || propsIsDisabled, children: [_jsx(StyledRadio, { disabled: disabled || propsIsDisabled, checked: groupValue === value, name: name, onChange: (event) => onChange?.(event, event.target.value), value: value, ...props }), _jsxs(Content, { className: radioCardClassnames.content, children: [_jsx("div", { children: header }), _jsx("div", { children: children })] })] }));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type OptionMenuItemProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Пункт режима options
|
|
4
|
+
*/
|
|
5
|
+
export declare const OptionMenuItem: ({ children, isSelected, hasCheckbox, isGrouped, hasSolidSelection, hasBottomDivider, onOptionClick, }: OptionMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Checkbox } from '../../Checkbox';
|
|
3
|
+
import { ListItemIcon } from '../../ListItemIcon';
|
|
4
|
+
import { cva } from '../../utils/cva';
|
|
5
|
+
import { selectClassnames } from '../constants';
|
|
6
|
+
import { SelectMenuItem } from '../styles';
|
|
7
|
+
const rootCva = cva(selectClassnames.option, {
|
|
8
|
+
variants: {
|
|
9
|
+
hasCheckbox: {
|
|
10
|
+
true: selectClassnames.withCheckbox,
|
|
11
|
+
},
|
|
12
|
+
isGrouped: {
|
|
13
|
+
true: selectClassnames.grouped,
|
|
14
|
+
},
|
|
15
|
+
hasSolidSelection: {
|
|
16
|
+
true: selectClassnames.solidSelected,
|
|
17
|
+
},
|
|
18
|
+
hasBottomDivider: {
|
|
19
|
+
true: selectClassnames.withBottomDivider,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Пункт режима options
|
|
25
|
+
*/
|
|
26
|
+
export const OptionMenuItem = ({ children, isSelected, hasCheckbox = false, isGrouped = false, hasSolidSelection = false, hasBottomDivider = false, onOptionClick, }) => (_jsxs(SelectMenuItem, { role: "option", "aria-selected": isSelected, selected: isSelected, className: rootCva({
|
|
27
|
+
hasCheckbox,
|
|
28
|
+
isGrouped,
|
|
29
|
+
hasSolidSelection,
|
|
30
|
+
hasBottomDivider,
|
|
31
|
+
}), onClick: onOptionClick, children: [hasCheckbox && (_jsx(ListItemIcon, { children: _jsx(Checkbox, { checked: isSelected }) })), children] }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OptionMenuItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OptionMenuItem';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type MouseEvent, type ReactNode } from 'react';
|
|
2
|
+
export type OptionMenuItemProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Содержимое строки пункта
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Флаг выбранного пункта
|
|
9
|
+
*/
|
|
10
|
+
isSelected: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Показывает чекбокс выбора пункта, используется при multiple
|
|
13
|
+
*/
|
|
14
|
+
hasCheckbox?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Пункт группы: сдвигается под чекбокс группы
|
|
17
|
+
*/
|
|
18
|
+
isGrouped?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Выбранный пункт подсвечивается фоном без полосы слева, используется при multiple с группами
|
|
21
|
+
*/
|
|
22
|
+
hasSolidSelection?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Разделитель между группами
|
|
25
|
+
*/
|
|
26
|
+
hasBottomDivider?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Функция, вызываемая при клике на пункт.
|
|
29
|
+
*/
|
|
30
|
+
onOptionClick: (event: MouseEvent<HTMLLIElement>) => void;
|
|
31
|
+
};
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { type SelectOptions, type SelectOptionValue } from './types';
|
|
3
|
+
export declare const Select: <TValue, TOption = SelectOptionValue<TValue>>(props: import("..").WithoutEmotionSpecific<Omit<import("@mui/material").SelectProps<TValue>, "color" | "variant" | "onOpen">> & {
|
|
4
|
+
options?: SelectOptions<TOption> | undefined;
|
|
5
|
+
renderOption?: ((option: TOption, state: {
|
|
6
|
+
selected: boolean;
|
|
7
|
+
}) => ReactNode) | undefined;
|
|
8
|
+
isCollapsibleGroups?: boolean | undefined;
|
|
3
9
|
loading?: boolean | undefined;
|
|
4
10
|
placeholder?: string | undefined;
|
|
5
|
-
getOptionLabel?: ((
|
|
11
|
+
getOptionLabel?: ((option: TOption) => string | number) | undefined;
|
|
12
|
+
isOptionEqualToValue?: ((option: TOption, value: TOption) => boolean) | undefined;
|
|
6
13
|
helperText?: ReactNode;
|
|
7
14
|
hideHelperText?: boolean | undefined;
|
|
8
15
|
isShowClearButton?: boolean | undefined;
|
|
@@ -11,16 +11,38 @@ import { FormHelperText } from '../FormHelperText';
|
|
|
11
11
|
import { forwardRefWithGeneric } from '../forwardRefWithGeneric';
|
|
12
12
|
import { IconButton } from '../IconButton';
|
|
13
13
|
import { Loader } from '../Loader';
|
|
14
|
-
import { MenuItem } from '../MenuItem';
|
|
15
14
|
import { TagsList } from '../TagsList';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
15
|
+
import { cn } from '../utils/cn';
|
|
16
|
+
import { cva } from '../utils/cva';
|
|
17
|
+
import { SelectGroup } from './cases';
|
|
18
|
+
import { CLEAR_TEXT, SELECT_ALL_VALUE, selectClassnames } from './constants';
|
|
19
|
+
import { OptionMenuItem } from './OptionMenuItem';
|
|
20
|
+
import { EndAdornmentWrapper, Placeholder, SelectMenuItem, StateWrapper, StyledSelect, } from './styles';
|
|
18
21
|
import { useLogic } from './useLogic';
|
|
22
|
+
import { checkIsSelectOptionsGroup } from './utils';
|
|
19
23
|
const ClearButton = forwardRef(({ onClick, disabled }, ref) => (_jsx(IconButton, { disabled: disabled, ref: ref, onClick: onClick, variant: "text", title: CLEAR_TEXT, "aria-label": CLEAR_TEXT, children: _jsx(CrossOutlineMd, {}) })));
|
|
20
|
-
const
|
|
21
|
-
|
|
24
|
+
const selectOptionCva = cva(selectClassnames.option, {
|
|
25
|
+
variants: {
|
|
26
|
+
hasCheckbox: {
|
|
27
|
+
true: selectClassnames.withCheckbox,
|
|
28
|
+
},
|
|
29
|
+
hasBottomDivider: {
|
|
30
|
+
true: selectClassnames.withBottomDivider,
|
|
31
|
+
},
|
|
32
|
+
hasSolidSelection: {
|
|
33
|
+
true: selectClassnames.solidSelected,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
const SelectInner = ({ required, getOptionLabel, isOptionEqualToValue, placeholder, helperText, hideHelperText = false, loading, success, children, disabled, error, label, fullWidth, onChange: externalOnChange, isShowClearButton, isEnableAllSelection = false, valueOptions, value, onSelectAll, onUnselectAll, options, renderOption, multiple, isCollapsibleGroups, ...props }, ref) => {
|
|
38
|
+
const { isOpened, isShowingClearButton, isNoData, onClearAll, openSelect, closeSelect, resetButtonRef, isShowingSelectAll, handleChangeOption, isSelectedAll, isIndeterminate, getTagsData, handleChangeTags, handleOptionClick, selectAllClassName, isShowingPlaceholder, fieldRef, checkIsOptionSelected, getGroupProps, checkHasItemBottomDivider, getTagLabel, getSingleValueLabel, resolveOptionLabel, selectValue, hasSolidSelection, } = useLogic({
|
|
22
39
|
...props,
|
|
40
|
+
multiple,
|
|
41
|
+
isCollapsibleGroups,
|
|
42
|
+
getOptionLabel,
|
|
43
|
+
isOptionEqualToValue,
|
|
23
44
|
children,
|
|
45
|
+
options,
|
|
24
46
|
value,
|
|
25
47
|
onChange: externalOnChange,
|
|
26
48
|
isShowClearButton,
|
|
@@ -35,19 +57,30 @@ const SelectInner = ({ required, getOptionLabel, placeholder, helperText, hideHe
|
|
|
35
57
|
const renderValue = (selectedOptions) => {
|
|
36
58
|
// Массив с выбранными опциями
|
|
37
59
|
if (Array.isArray(selectedOptions) && selectedOptions.length) {
|
|
38
|
-
return (_jsx(TagsList, { data: selectedOptions, getOptionLabel:
|
|
60
|
+
return (_jsx(TagsList, { data: getTagsData(selectedOptions), getOptionLabel: getTagLabel, fieldRef: fieldRef, onChange: handleChangeTags, onClick: openSelect }));
|
|
39
61
|
}
|
|
40
62
|
// Пустой массив или пустая строка
|
|
41
63
|
if ((Array.isArray(selectedOptions) || typeof selectedOptions === 'string') &&
|
|
42
64
|
!selectedOptions.length) {
|
|
43
65
|
return placeholder;
|
|
44
66
|
}
|
|
45
|
-
|
|
46
|
-
// Строка
|
|
47
|
-
return getOptionLabel(selectedOptions);
|
|
48
|
-
}
|
|
49
|
-
return findMenuItemsLabel(children, selectedOptions);
|
|
67
|
+
return getSingleValueLabel(selectedOptions);
|
|
50
68
|
};
|
|
51
|
-
|
|
69
|
+
const renderOptionContent = (option) => renderOption
|
|
70
|
+
? renderOption(option, {
|
|
71
|
+
selected: checkIsOptionSelected(option),
|
|
72
|
+
})
|
|
73
|
+
: resolveOptionLabel(option);
|
|
74
|
+
const renderOptions = (items) => items.map((item, itemIndex) => {
|
|
75
|
+
if (!checkIsSelectOptionsGroup(item)) {
|
|
76
|
+
return (_jsx(OptionMenuItem, { isSelected: checkIsOptionSelected(item), hasCheckbox: multiple, hasSolidSelection: hasSolidSelection, hasBottomDivider: checkHasItemBottomDivider(itemIndex), onOptionClick: (event) => handleOptionClick(item, event), children: renderOptionContent(item) }, `item-${itemIndex}`));
|
|
77
|
+
}
|
|
78
|
+
return (_jsx(SelectGroup, { ...getGroupProps(item, itemIndex), isMultiple: Boolean(multiple), checkIsOptionSelected: checkIsOptionSelected, onOptionClick: handleOptionClick, renderOptionContent: renderOptionContent }, `group-${item.id}`));
|
|
79
|
+
});
|
|
80
|
+
return (_jsxs(FormControl, { error: error, fullWidth: fullWidth, children: [label && (_jsx(InputLabel, { htmlFor: "grouped-select", required: required, disabled: disabled, children: label })), _jsxs(StyledSelect, { ...props, multiple: multiple, value: selectValue, open: isOpened, disabled: disabled, onOpen: openSelect, onClose: closeSelect, renderValue: () => renderValue(value ?? ''), IconComponent: () => null, displayEmpty: true, ref: fieldRef, fullWidth: fullWidth, onChange: handleChangeOption, "$isShowingPlaceholder": isShowingPlaceholder, endAdornment: _jsxs(EndAdornmentWrapper, { children: [loading && _jsx(Loader, { color: "primary", size: "small" }), !loading && isShowingClearButton && (_jsx(ClearButton, { disabled: disabled, ref: resetButtonRef, onClick: onClearAll })), !loading && (_jsx(IconButton, { variant: "text", disabled: disabled, onClick: openSelect, children: !isOpened ? _jsx(DownOutlineMd, {}) : _jsx(UpOutlineMd, {}) }))] }), children: [_jsx(Placeholder, { value: "", children: placeholder }), !loading && isShowingSelectAll && (_jsxs(SelectMenuItem, { className: cn(selectAllClassName, selectOptionCva({
|
|
81
|
+
hasCheckbox: Boolean(options),
|
|
82
|
+
hasBottomDivider: Boolean(options),
|
|
83
|
+
hasSolidSelection,
|
|
84
|
+
})), selected: isSelectedAll, value: SELECT_ALL_VALUE, children: [_jsx(ListItemIcon, { children: _jsx(Checkbox, { checked: isSelectedAll, indeterminate: isIndeterminate }) }), "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435"] })), !loading && (options ? renderOptions(options) : children), !loading && isNoData && _jsx(StateWrapper, { children: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), _jsx(FormHelperText, { error: error, success: success, hideHelperText: hideHelperText, children: helperText })] }));
|
|
52
85
|
};
|
|
53
86
|
export const Select = forwardRefWithGeneric(SelectInner);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type GroupMenuItemProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Строка группы во время multiple режима
|
|
4
|
+
*/
|
|
5
|
+
export declare const GroupMenuItem: ({ label, counter, isChecked, isIndeterminate, isCollapsible, isCollapsed, onCollapseClick, className, ...props }: GroupMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Checkbox } from '../../../../../Checkbox';
|
|
3
|
+
import { ListItemIcon } from '../../../../../ListItemIcon';
|
|
4
|
+
import { cn } from '../../../../../utils/cn';
|
|
5
|
+
import { cva } from '../../../../../utils/cva';
|
|
6
|
+
import { selectClassnames } from '../../../../constants';
|
|
7
|
+
import { groupsClassnames } from '../../constants';
|
|
8
|
+
import { COLLAPSE_GROUP_TEXT, EXPAND_GROUP_TEXT } from './constants';
|
|
9
|
+
import { ChevronIcon, CollapseButton, Counter, StyledMenuItem } from './styles';
|
|
10
|
+
const chevronCva = cva(groupsClassnames.chevron, {
|
|
11
|
+
variants: {
|
|
12
|
+
isExpanded: {
|
|
13
|
+
true: groupsClassnames.chevronExpanded,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Строка группы во время multiple режима
|
|
19
|
+
*/
|
|
20
|
+
export const GroupMenuItem = ({ label, counter, isChecked, isIndeterminate, isCollapsible = false, isCollapsed = false, onCollapseClick, className, ...props }) => (_jsxs(StyledMenuItem, { ...props, className: cn(className, selectClassnames.option, selectClassnames.withCheckbox, selectClassnames.solidSelected), children: [isCollapsible && (_jsx(CollapseButton, { variant: "text", onClick: onCollapseClick, "aria-label": isCollapsed ? EXPAND_GROUP_TEXT : COLLAPSE_GROUP_TEXT, "aria-expanded": !isCollapsed, children: _jsx(ChevronIcon, { className: chevronCva({ isExpanded: !isCollapsed }) }) })), _jsx(ListItemIcon, { children: _jsx(Checkbox, { checked: isChecked, indeterminate: isIndeterminate }) }), label, counter && (_jsx(Counter, { component: "span", variant: "body1", color: "grey", colorIntensity: "600", children: counter }))] }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GroupMenuItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GroupMenuItem';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledMenuItem: import("../../../../../styled").StyledComponent<import("../../../../..").WithoutEmotionSpecific<Omit<import("@mui/material").MenuItemProps, "component">> & {
|
|
3
|
+
disabledReason?: string | undefined;
|
|
4
|
+
note?: string | undefined;
|
|
5
|
+
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined;
|
|
6
|
+
component?: import("react").ElementType | undefined;
|
|
7
|
+
href?: string | undefined;
|
|
8
|
+
} & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement> & {
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
}, {}, {}>;
|
|
11
|
+
export declare const CollapseButton: import("../../../../../styled").StyledComponent<Omit<import("../../../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
12
|
+
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
13
|
+
loading?: boolean | undefined;
|
|
14
|
+
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
15
|
+
component?: import("react").ElementType | undefined;
|
|
16
|
+
selected?: boolean | undefined;
|
|
17
|
+
size?: "large" | "medium" | undefined;
|
|
18
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
export declare const ChevronIcon: import("../../../../../styled").StyledComponent<{
|
|
22
|
+
children?: import("react").ReactNode;
|
|
23
|
+
color?: string | undefined;
|
|
24
|
+
titleAccess?: string | undefined;
|
|
25
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
26
|
+
} & import("react").SVGProps<SVGSVGElement> & {
|
|
27
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
28
|
+
}, {}, {}>;
|
|
29
|
+
export declare const Counter: import("../../../../../styled").StyledComponent<import("../../../../../Typography/types").TypographyPropsBase & {
|
|
30
|
+
color?: import("../../../../../Typography").TypographyColor | undefined;
|
|
31
|
+
variant?: import("../../../../../Typography").TypographyVariant | undefined;
|
|
32
|
+
colorIntensity?: import("../../../../../Typography").Intensity | undefined;
|
|
33
|
+
component?: import("../../../../../Typography/types").ComponentProp | undefined;
|
|
34
|
+
isUpperCase?: boolean | undefined;
|
|
35
|
+
withoutCalt?: boolean | undefined;
|
|
36
|
+
isTabularNums?: boolean | undefined;
|
|
37
|
+
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
38
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
39
|
+
}, {}, {}>;
|