@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./getGridColumns"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.selectionCardGroupClassnames = void 0;
|
|
4
|
+
const createUIKitClassname_1 = require("../utils/createUIKitClassname");
|
|
5
|
+
exports.selectionCardGroupClassnames = {
|
|
6
|
+
cards: (0, createUIKitClassname_1.createUIKitClassname)('selection-card-group__cards'),
|
|
7
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { SelectionCardGroup } from './SelectionCardGroup';
|
|
2
|
+
export { SelectionCardGroupContext } from './SelectionCardGroupContext';
|
|
3
|
+
export type { SelectionCardGroupProps, SelectionCardGroupShape, SelectionCardGroupValue, SelectionCardGroupVariant, SelectionCardIndicatorState, SelectionCardInputType, } from './types';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectionCardGroupContext = exports.SelectionCardGroup = void 0;
|
|
4
|
+
var SelectionCardGroup_1 = require("./SelectionCardGroup");
|
|
5
|
+
Object.defineProperty(exports, "SelectionCardGroup", { enumerable: true, get: function () { return SelectionCardGroup_1.SelectionCardGroup; } });
|
|
6
|
+
var SelectionCardGroupContext_1 = require("./SelectionCardGroupContext");
|
|
7
|
+
Object.defineProperty(exports, "SelectionCardGroupContext", { enumerable: true, get: function () { return SelectionCardGroupContext_1.SelectionCardGroupContext; } });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectionCardGroup = void 0;
|
|
4
|
+
var SelectionCardGroup_1 = require("./SelectionCardGroup");
|
|
5
|
+
Object.defineProperty(exports, "SelectionCardGroup", { enumerable: true, get: function () { return SelectionCardGroup_1.SelectionCardGroup; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Fieldset: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, {}>;
|
|
6
|
+
export declare const StyledFormLabel: import("@emotion/styled/dist/declarations/src/types").StyledComponent<import("../FormLabel").FormLabelProps & {
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
}, {}, {}>;
|
|
9
|
+
export declare const StyledFormHelperText: import("@emotion/styled/dist/declarations/src/types").StyledComponent<import("..").WithoutEmotionSpecific<import("@mui/material").FormHelperTextProps> & {
|
|
10
|
+
success?: boolean | undefined;
|
|
11
|
+
error?: boolean | undefined;
|
|
12
|
+
hideHelperText?: boolean | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledFormHelperText = exports.StyledFormLabel = exports.Fieldset = void 0;
|
|
4
|
+
const FormHelperText_1 = require("../FormHelperText");
|
|
5
|
+
const FormLabel_1 = require("../FormLabel");
|
|
6
|
+
const styled_1 = require("../styled");
|
|
7
|
+
exports.Fieldset = styled_1.styled.fieldset `
|
|
8
|
+
min-inline-size: 0;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
|
|
12
|
+
border: unset;
|
|
13
|
+
`;
|
|
14
|
+
exports.StyledFormLabel = (0, styled_1.styled)(FormLabel_1.FormLabel) `
|
|
15
|
+
margin-bottom: ${({ theme }) => theme.spacing(3)};
|
|
16
|
+
padding: 0;
|
|
17
|
+
`;
|
|
18
|
+
exports.StyledFormHelperText = (0, styled_1.styled)(FormHelperText_1.FormHelperText) `
|
|
19
|
+
margin-top: ${({ theme }) => theme.spacing(1)};
|
|
20
|
+
`;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
export type SelectionCardGroupVariant = 'standalone' | 'grouped';
|
|
3
|
+
export type SelectionCardGroupShape = 'medium' | 'large';
|
|
4
|
+
/**
|
|
5
|
+
* Тип нативного input карточки: `radio` в режиме `single`, `checkbox` в режиме `multiple`
|
|
6
|
+
*/
|
|
7
|
+
export type SelectionCardInputType = 'radio' | 'checkbox';
|
|
8
|
+
/**
|
|
9
|
+
* Значение группы: `string | null` в режиме `single`, `string[]` в режиме `multiple`
|
|
10
|
+
*/
|
|
11
|
+
export type SelectionCardGroupValue = string | string[] | null;
|
|
12
|
+
export type SelectionCardIndicatorState = {
|
|
13
|
+
isSelected: boolean;
|
|
14
|
+
isDisabled: boolean;
|
|
15
|
+
isError: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Правила режима выбора `selectionMode`
|
|
19
|
+
*/
|
|
20
|
+
export type SelectionMode<TValue extends string | string[]> = {
|
|
21
|
+
/**
|
|
22
|
+
* Значение группы, в которой не выбрана ни одна карточка
|
|
23
|
+
*/
|
|
24
|
+
emptyValue: TValue | null;
|
|
25
|
+
inputType: SelectionCardInputType;
|
|
26
|
+
/**
|
|
27
|
+
* Новое значение группы после клика по карточке.
|
|
28
|
+
* `undefined` — значение не меняется
|
|
29
|
+
*/
|
|
30
|
+
getNextValue: (selectedValues: string[], cardValue: string) => TValue | undefined;
|
|
31
|
+
};
|
|
32
|
+
type SelectionCardGroupBaseProps = {
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Раскладка карточек:
|
|
36
|
+
* - `standalone` — отдельные карточки в сетке с промежутками
|
|
37
|
+
* - `grouped` — сгруппированный вертикальный список, замена `RadioCard`
|
|
38
|
+
*/
|
|
39
|
+
variant: SelectionCardGroupVariant;
|
|
40
|
+
/**
|
|
41
|
+
* Число равных колонок или CSS-шаблон `grid-template-columns`.
|
|
42
|
+
* Работает только при `variant="standalone"`.
|
|
43
|
+
* На ширине меньше 900px карточки всегда идут в одну колонку
|
|
44
|
+
* @default 1
|
|
45
|
+
* @example columns="repeat(auto-fit, minmax(240px, 1fr))"
|
|
46
|
+
*/
|
|
47
|
+
columns?: number | string;
|
|
48
|
+
/**
|
|
49
|
+
* Скругление всех карточек группы: `medium` — 8px, `large` — 12px
|
|
50
|
+
* @default 'medium'
|
|
51
|
+
*/
|
|
52
|
+
shape?: SelectionCardGroupShape;
|
|
53
|
+
/**
|
|
54
|
+
* Атрибут name нативных input карточек
|
|
55
|
+
*/
|
|
56
|
+
name?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Блокирует все карточки группы
|
|
59
|
+
*/
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Состояние ошибки всех карточек группы
|
|
63
|
+
*/
|
|
64
|
+
isError?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Текст ошибки под группой
|
|
67
|
+
*/
|
|
68
|
+
errorText?: ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Подпись группы, рендерится в `legend`
|
|
71
|
+
*/
|
|
72
|
+
groupLabel?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Помечает подпись группы обязательной
|
|
75
|
+
*/
|
|
76
|
+
required?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* CSS класс для корневого fieldset
|
|
79
|
+
*/
|
|
80
|
+
className?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Ref fieldset для прокрутки react-hook-form к полю с ошибкой
|
|
83
|
+
*/
|
|
84
|
+
inputRef?: RefObject<HTMLFieldSetElement>;
|
|
85
|
+
/**
|
|
86
|
+
* Заменяет радиокнопку или чекбокс всех карточек группы собственным индикатором.
|
|
87
|
+
* Режим выбора и доступность не меняются. Смену иконки при наведении необходимо делать через CSS `:hover`
|
|
88
|
+
*/
|
|
89
|
+
renderIndicator?: (state: SelectionCardIndicatorState) => ReactNode;
|
|
90
|
+
};
|
|
91
|
+
type SingleSelectionProps = {
|
|
92
|
+
/**
|
|
93
|
+
* Режим выбора: `single` — одна карточка, `multiple` — несколько
|
|
94
|
+
*/
|
|
95
|
+
selectionMode: 'single';
|
|
96
|
+
/**
|
|
97
|
+
* Значение выбранной карточки
|
|
98
|
+
*/
|
|
99
|
+
value?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Срабатывает при выборе карточки
|
|
102
|
+
*/
|
|
103
|
+
onChange?: (value: string) => void;
|
|
104
|
+
};
|
|
105
|
+
type MultipleSelectionProps = {
|
|
106
|
+
/**
|
|
107
|
+
* Режим выбора: `single` — одна карточка, `multiple` — несколько
|
|
108
|
+
*/
|
|
109
|
+
selectionMode: 'multiple';
|
|
110
|
+
/**
|
|
111
|
+
* Значения выбранных карточек
|
|
112
|
+
*/
|
|
113
|
+
value?: string[];
|
|
114
|
+
/**
|
|
115
|
+
* Срабатывает при выборе карточки или снятии выбора
|
|
116
|
+
*/
|
|
117
|
+
onChange?: (value: string[]) => void;
|
|
118
|
+
};
|
|
119
|
+
export type SelectionCardGroupProps = SelectionCardGroupBaseProps & (SingleSelectionProps | MultipleSelectionProps);
|
|
120
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useLogic';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./useLogic"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SelectionCardGroupContextValue } from '../SelectionCardGroupContext';
|
|
3
|
+
import type { SelectionCardGroupProps, SelectionCardGroupVariant } from '../types';
|
|
4
|
+
export declare const useLogic: (props: SelectionCardGroupProps) => {
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
variant: SelectionCardGroupVariant;
|
|
7
|
+
contextValue: SelectionCardGroupContextValue;
|
|
8
|
+
gridColumns: string;
|
|
9
|
+
gridSpacing: number | undefined;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
isError: boolean;
|
|
12
|
+
errorText: import("react").ReactNode;
|
|
13
|
+
groupLabel: string | undefined;
|
|
14
|
+
required: boolean | undefined;
|
|
15
|
+
className: string | undefined;
|
|
16
|
+
inputRef: import("react").RefObject<HTMLFieldSetElement> | undefined;
|
|
17
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useLogic = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const useId_1 = require("../../useId");
|
|
6
|
+
const grouped_1 = require("../cases/grouped");
|
|
7
|
+
const multiple_1 = require("../cases/multiple");
|
|
8
|
+
const single_1 = require("../cases/single");
|
|
9
|
+
const standalone_1 = require("../cases/standalone");
|
|
10
|
+
const utils_1 = require("../utils");
|
|
11
|
+
const utils_2 = require("./utils");
|
|
12
|
+
const useLogic = (props) => {
|
|
13
|
+
const { children, variant, columns = standalone_1.STANDALONE_DEFAULT_COLUMNS, shape = 'medium', name, disabled = false, isError = false, errorText, groupLabel, required, className, inputRef, renderIndicator, } = props;
|
|
14
|
+
const generatedName = (0, useId_1.useId)();
|
|
15
|
+
const { emptyValue, inputType } = props.selectionMode === 'multiple' ? multiple_1.MULTIPLE_MODE : single_1.SINGLE_MODE;
|
|
16
|
+
const handleSelect = props.selectionMode === 'multiple'
|
|
17
|
+
? (0, utils_2.createSelectHandler)(multiple_1.MULTIPLE_MODE.getNextValue, props.onChange)
|
|
18
|
+
: (0, utils_2.createSelectHandler)(single_1.SINGLE_MODE.getNextValue, props.onChange);
|
|
19
|
+
const [uncontrolledValue, setUncontrolledValue] = (0, react_1.useState)(emptyValue);
|
|
20
|
+
const currentValue = props.value !== undefined ? props.value : uncontrolledValue;
|
|
21
|
+
const selectedValuesList = (0, utils_1.getSelectedValuesList)(currentValue);
|
|
22
|
+
const checkIsSelected = (cardValue) => selectedValuesList.includes(cardValue);
|
|
23
|
+
const toggle = (cardValue) => {
|
|
24
|
+
const newValue = handleSelect(selectedValuesList, cardValue);
|
|
25
|
+
if (newValue !== undefined) {
|
|
26
|
+
setUncontrolledValue(newValue);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const contextValue = {
|
|
30
|
+
inputType,
|
|
31
|
+
name: name ?? generatedName,
|
|
32
|
+
variant,
|
|
33
|
+
shape,
|
|
34
|
+
isDisabled: disabled,
|
|
35
|
+
isError,
|
|
36
|
+
checkIsSelected,
|
|
37
|
+
toggle,
|
|
38
|
+
renderIndicator,
|
|
39
|
+
};
|
|
40
|
+
const gridLayouts = {
|
|
41
|
+
standalone: {
|
|
42
|
+
gridColumns: (0, standalone_1.getGridColumns)(columns),
|
|
43
|
+
gridSpacing: standalone_1.STANDALONE_GRID_SPACING,
|
|
44
|
+
},
|
|
45
|
+
grouped: { gridColumns: grouped_1.GROUPED_GRID_COLUMNS },
|
|
46
|
+
};
|
|
47
|
+
const { gridColumns, gridSpacing } = gridLayouts[variant];
|
|
48
|
+
return {
|
|
49
|
+
children,
|
|
50
|
+
variant,
|
|
51
|
+
contextValue,
|
|
52
|
+
gridColumns,
|
|
53
|
+
gridSpacing,
|
|
54
|
+
disabled,
|
|
55
|
+
isError,
|
|
56
|
+
errorText,
|
|
57
|
+
groupLabel,
|
|
58
|
+
required,
|
|
59
|
+
className,
|
|
60
|
+
inputRef,
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
exports.useLogic = useLogic;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SelectionMode } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Создаёт обработчик клика по карточке
|
|
4
|
+
*/
|
|
5
|
+
export declare const createSelectHandler: <TValue extends string | string[]>(getNextValue: (selectedValues: string[], cardValue: string) => TValue | undefined, onChange?: ((value: TValue) => void) | undefined) => (selectedValues: string[], cardValue: string) => TValue | undefined;
|
package/node/components/SelectionCardGroup/useLogic/utils/createSelectHandler/createSelectHandler.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createSelectHandler = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Создаёт обработчик клика по карточке
|
|
6
|
+
*/
|
|
7
|
+
const createSelectHandler = (getNextValue, onChange) => (selectedValues, cardValue) => {
|
|
8
|
+
const newValue = getNextValue(selectedValues, cardValue);
|
|
9
|
+
if (newValue !== undefined) {
|
|
10
|
+
onChange?.(newValue);
|
|
11
|
+
}
|
|
12
|
+
return newValue;
|
|
13
|
+
};
|
|
14
|
+
exports.createSelectHandler = createSelectHandler;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createSelectHandler';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./createSelectHandler"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createSelectHandler';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./createSelectHandler"), exports);
|
package/node/components/SelectionCardGroup/utils/getSelectedValuesList/getSelectedValuesList.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSelectedValuesList = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Приводит значение группы любого режима выбора к списку выбранных значений
|
|
6
|
+
*/
|
|
7
|
+
const getSelectedValuesList = (value) => {
|
|
8
|
+
if (Array.isArray(value)) {
|
|
9
|
+
return value;
|
|
10
|
+
}
|
|
11
|
+
if (value === null) {
|
|
12
|
+
return [];
|
|
13
|
+
}
|
|
14
|
+
return [value];
|
|
15
|
+
};
|
|
16
|
+
exports.getSelectedValuesList = getSelectedValuesList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getSelectedValuesList';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./getSelectedValuesList"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getSelectedValuesList';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./getSelectedValuesList"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Status = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cn_1 = require("../utils/cn");
|
|
6
|
+
const cva_1 = require("../utils/cva");
|
|
7
|
+
const constants_1 = require("./constants");
|
|
8
|
+
const styles_1 = require("./styles");
|
|
9
|
+
const useLogic_1 = require("./useLogic");
|
|
10
|
+
const statusCva = (0, cva_1.cva)(constants_1.statusClassnames.root, {
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
small: constants_1.statusClassnames.sizeSmall,
|
|
14
|
+
medium: constants_1.statusClassnames.sizeMedium,
|
|
15
|
+
},
|
|
16
|
+
variant: {
|
|
17
|
+
text: constants_1.statusClassnames.variantText,
|
|
18
|
+
light: constants_1.statusClassnames.variantLight,
|
|
19
|
+
},
|
|
20
|
+
phase: {
|
|
21
|
+
idle: '',
|
|
22
|
+
exit: constants_1.statusClassnames.animExit,
|
|
23
|
+
enter: constants_1.statusClassnames.animEnter,
|
|
24
|
+
},
|
|
25
|
+
color: {
|
|
26
|
+
grey: constants_1.statusClassnames.colorGrey,
|
|
27
|
+
primary: constants_1.statusClassnames.colorPrimary,
|
|
28
|
+
success: constants_1.statusClassnames.colorSuccess,
|
|
29
|
+
warning: constants_1.statusClassnames.colorWarning,
|
|
30
|
+
error: constants_1.statusClassnames.colorError,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
const Status = ({ label, status, size = 'medium', variant = 'text', className, }) => {
|
|
35
|
+
const { displayStatus, displayLabel, phase, handleAnimationEnd } = (0, useLogic_1.useLogic)({
|
|
36
|
+
label,
|
|
37
|
+
status,
|
|
38
|
+
});
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: (0, cn_1.cn)(statusCva({ size, variant, phase, color: displayStatus }), className), onAnimationEnd: handleAnimationEnd, children: [(0, jsx_runtime_1.jsx)(styles_1.Marker, { "aria-hidden": true, className: constants_1.statusClassnames.marker, viewBox: "0 0 20 20", width: "20px", height: "20px", children: (0, jsx_runtime_1.jsx)("circle", { cx: "10", cy: "10", r: "3.33333" }) }), (0, jsx_runtime_1.jsx)(styles_1.Label, { component: "span", children: displayLabel })] }));
|
|
40
|
+
};
|
|
41
|
+
exports.Status = Status;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const statusClassnames: {
|
|
2
|
+
root: string;
|
|
3
|
+
marker: string;
|
|
4
|
+
colorGrey: string;
|
|
5
|
+
colorPrimary: string;
|
|
6
|
+
colorSuccess: string;
|
|
7
|
+
colorWarning: string;
|
|
8
|
+
colorError: string;
|
|
9
|
+
sizeSmall: string;
|
|
10
|
+
sizeMedium: string;
|
|
11
|
+
variantText: string;
|
|
12
|
+
variantLight: string;
|
|
13
|
+
animExit: string;
|
|
14
|
+
animEnter: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const STATUS_EXIT_ANIMATION = "status-content-exit";
|
|
17
|
+
export declare const STATUS_ENTER_ANIMATION = "status-content-enter";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STATUS_ENTER_ANIMATION = exports.STATUS_EXIT_ANIMATION = exports.statusClassnames = void 0;
|
|
4
|
+
const createUIKitClassname_1 = require("../utils/createUIKitClassname");
|
|
5
|
+
exports.statusClassnames = {
|
|
6
|
+
root: (0, createUIKitClassname_1.createUIKitClassname)('status'),
|
|
7
|
+
marker: (0, createUIKitClassname_1.createUIKitClassname)('status__marker'),
|
|
8
|
+
colorGrey: (0, createUIKitClassname_1.createUIKitClassname)('status_color-grey'),
|
|
9
|
+
colorPrimary: (0, createUIKitClassname_1.createUIKitClassname)('status_color-primary'),
|
|
10
|
+
colorSuccess: (0, createUIKitClassname_1.createUIKitClassname)('status_color-success'),
|
|
11
|
+
colorWarning: (0, createUIKitClassname_1.createUIKitClassname)('status_color-warning'),
|
|
12
|
+
colorError: (0, createUIKitClassname_1.createUIKitClassname)('status_color-error'),
|
|
13
|
+
sizeSmall: (0, createUIKitClassname_1.createUIKitClassname)('status_size-small'),
|
|
14
|
+
sizeMedium: (0, createUIKitClassname_1.createUIKitClassname)('status_size-medium'),
|
|
15
|
+
variantText: (0, createUIKitClassname_1.createUIKitClassname)('status_variant-text'),
|
|
16
|
+
variantLight: (0, createUIKitClassname_1.createUIKitClassname)('status_variant-light'),
|
|
17
|
+
animExit: (0, createUIKitClassname_1.createUIKitClassname)('status_anim-exit'),
|
|
18
|
+
animEnter: (0, createUIKitClassname_1.createUIKitClassname)('status_anim-enter'),
|
|
19
|
+
};
|
|
20
|
+
exports.STATUS_EXIT_ANIMATION = 'status-content-exit';
|
|
21
|
+
exports.STATUS_ENTER_ANIMATION = 'status-content-enter';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Status = exports.statusClassnames = void 0;
|
|
4
|
+
var constants_1 = require("./constants");
|
|
5
|
+
Object.defineProperty(exports, "statusClassnames", { enumerable: true, get: function () { return constants_1.statusClassnames; } });
|
|
6
|
+
var Status_1 = require("./Status");
|
|
7
|
+
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return Status_1.Status; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Status = exports.statusClassnames = void 0;
|
|
4
|
+
var constants_1 = require("./constants");
|
|
5
|
+
Object.defineProperty(exports, "statusClassnames", { enumerable: true, get: function () { return constants_1.statusClassnames; } });
|
|
6
|
+
var Status_1 = require("./Status");
|
|
7
|
+
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return Status_1.Status; } });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
6
|
+
export declare const Marker: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
color?: string | undefined;
|
|
9
|
+
titleAccess?: string | undefined;
|
|
10
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
11
|
+
} & import("react").SVGProps<SVGSVGElement> & {
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
}, {}, {}>;
|
|
14
|
+
export declare const Label: import("@emotion/styled/dist/declarations/src/types").StyledComponent<import("../Typography/types").TypographyPropsBase & {
|
|
15
|
+
color?: import("../Typography").TypographyColor | undefined;
|
|
16
|
+
variant?: import("../Typography").TypographyVariant | undefined;
|
|
17
|
+
colorIntensity?: import("../Typography").Intensity | undefined;
|
|
18
|
+
component?: import("../Typography/types").ComponentProp | undefined;
|
|
19
|
+
isUpperCase?: boolean | undefined;
|
|
20
|
+
withoutCalt?: boolean | undefined;
|
|
21
|
+
isTabularNums?: boolean | undefined;
|
|
22
|
+
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
}, {}, {}>;
|