@max-ts/components 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_virtual/jsx-runtime.cjs +1 -0
- package/lib/_virtual/jsx-runtime.mjs +5 -0
- package/lib/_virtual/jsx-runtime2.cjs +1 -0
- package/lib/_virtual/jsx-runtime2.mjs +4 -0
- package/lib/_virtual/react-jsx-runtime.development.cjs +1 -0
- package/lib/_virtual/react-jsx-runtime.development.mjs +4 -0
- package/lib/_virtual/react-jsx-runtime.production.cjs +1 -0
- package/lib/_virtual/react-jsx-runtime.production.mjs +4 -0
- package/lib/components/Accordion/Accordion.cjs +1 -0
- package/lib/components/Accordion/Accordion.d.ts +39 -0
- package/lib/components/Accordion/Accordion.mjs +35 -0
- package/lib/components/Accordion/styles.cjs +17 -0
- package/lib/components/Accordion/styles.d.ts +21 -0
- package/lib/components/Accordion/styles.mjs +25 -0
- package/lib/components/ActionCell/ActionCell.cjs +1 -0
- package/lib/components/ActionCell/ActionCell.d.ts +24 -0
- package/lib/components/ActionCell/ActionCell.mjs +40 -0
- package/lib/components/ActionCell/MainAction/MainAction.cjs +1 -0
- package/lib/components/ActionCell/MainAction/MainAction.d.ts +13 -0
- package/lib/components/ActionCell/MainAction/MainAction.mjs +78 -0
- package/lib/components/ActionCell/SecondaryAction/SecondaryActions.cjs +1 -0
- package/lib/components/ActionCell/SecondaryAction/SecondaryActions.d.ts +13 -0
- package/lib/components/ActionCell/SecondaryAction/SecondaryActions.mjs +34 -0
- package/lib/components/ActionCell/styles.cjs +4 -0
- package/lib/components/ActionCell/styles.d.ts +1 -0
- package/lib/components/ActionCell/styles.mjs +8 -0
- package/lib/components/ActionCell/types.d.ts +66 -0
- package/lib/components/ActionCell/useLogic/useLogic.cjs +1 -0
- package/lib/components/ActionCell/useLogic/useLogic.d.ts +11 -0
- package/lib/components/ActionCell/useLogic/useLogic.mjs +23 -0
- package/lib/components/AsyncAutocomplete/AsyncAutocomplete.cjs +1 -0
- package/lib/components/AsyncAutocomplete/AsyncAutocomplete.d.ts +61 -0
- package/lib/components/AsyncAutocomplete/AsyncAutocomplete.mjs +45 -0
- package/lib/components/AsyncAutocomplete/constants.cjs +1 -0
- package/lib/components/AsyncAutocomplete/constants.mjs +7 -0
- package/lib/components/AsyncAutocomplete/useLogic/useLogic.cjs +1 -0
- package/lib/components/AsyncAutocomplete/useLogic/useLogic.d.ts +12 -0
- package/lib/components/AsyncAutocomplete/useLogic/useLogic.mjs +47 -0
- package/lib/components/Autocomplete/Autocomplete.cjs +1 -0
- package/lib/components/Autocomplete/Autocomplete.d.ts +47 -0
- package/lib/components/Autocomplete/Autocomplete.mjs +134 -0
- package/lib/components/Autocomplete/constants.cjs +1 -0
- package/lib/components/Autocomplete/constants.mjs +5 -0
- package/lib/components/Autocomplete/enums.cjs +1 -0
- package/lib/components/Autocomplete/enums.mjs +4 -0
- package/lib/components/Autocomplete/styles.cjs +7 -0
- package/lib/components/Autocomplete/styles.d.ts +7 -0
- package/lib/components/Autocomplete/styles.mjs +12 -0
- package/lib/components/Autocomplete/useLogic/useLogic.cjs +1 -0
- package/lib/components/Autocomplete/useLogic/useLogic.d.ts +15 -0
- package/lib/components/Autocomplete/useLogic/useLogic.mjs +34 -0
- package/lib/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.cjs +1 -0
- package/lib/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.mjs +4 -0
- package/lib/components/Badge/Badge.cjs +1 -0
- package/lib/components/Badge/Badge.d.ts +18 -0
- package/lib/components/Badge/Badge.mjs +23 -0
- package/lib/components/Badge/styles.cjs +21 -0
- package/lib/components/Badge/styles.d.ts +8 -0
- package/lib/components/Badge/styles.mjs +73 -0
- package/lib/components/BottomDrawer/BottomDrawer.cjs +1 -0
- package/lib/components/BottomDrawer/BottomDrawer.d.ts +15 -0
- package/lib/components/BottomDrawer/BottomDrawer.mjs +26 -0
- package/lib/components/BottomDrawer/constants.cjs +1 -0
- package/lib/components/BottomDrawer/constants.mjs +5 -0
- package/lib/components/BottomDrawer/styles.cjs +26 -0
- package/lib/components/BottomDrawer/styles.d.ts +20 -0
- package/lib/components/BottomDrawer/styles.mjs +34 -0
- package/lib/components/Button/Button.cjs +1 -0
- package/lib/components/Button/Button.d.ts +35 -0
- package/lib/components/Button/Button.mjs +38 -0
- package/lib/components/Button/constants.cjs +1 -0
- package/lib/components/Button/constants.mjs +4 -0
- package/lib/components/Button/enums.cjs +1 -0
- package/lib/components/Button/enums.mjs +7 -0
- package/lib/components/Button/styles.cjs +10 -0
- package/lib/components/Button/styles.d.ts +5 -0
- package/lib/components/Button/styles.mjs +17 -0
- package/lib/components/Button/types.d.ts +19 -0
- package/lib/components/Button/useLogic/useLogic.cjs +1 -0
- package/lib/components/Button/useLogic/useLogic.d.ts +5 -0
- package/lib/components/Button/useLogic/useLogic.mjs +9 -0
- package/lib/components/Checkbox/Checkbox.cjs +1 -0
- package/lib/components/Checkbox/Checkbox.d.ts +9 -0
- package/lib/components/Checkbox/Checkbox.mjs +24 -0
- package/lib/components/Checkbox/icons.cjs +1 -0
- package/lib/components/Checkbox/icons.d.ts +4 -0
- package/lib/components/Checkbox/icons.mjs +45 -0
- package/lib/components/Checkbox/styles.cjs +59 -0
- package/lib/components/Checkbox/styles.d.ts +5 -0
- package/lib/components/Checkbox/styles.mjs +65 -0
- package/lib/components/CheckboxField/CheckboxField.cjs +1 -0
- package/lib/components/CheckboxField/CheckboxField.d.ts +24 -0
- package/lib/components/CheckboxField/CheckboxField.mjs +41 -0
- package/lib/components/CheckboxField/styles.cjs +5 -0
- package/lib/components/CheckboxField/styles.d.ts +8 -0
- package/lib/components/CheckboxField/styles.mjs +12 -0
- package/lib/components/Chevron/Chevron.cjs +1 -0
- package/lib/components/Chevron/Chevron.d.ts +7 -0
- package/lib/components/Chevron/Chevron.mjs +6 -0
- package/lib/components/Chevron/styles.cjs +6 -0
- package/lib/components/Chevron/styles.d.ts +5 -0
- package/lib/components/Chevron/styles.mjs +16 -0
- package/lib/components/CircularProgress/CircularProgress.cjs +1 -0
- package/lib/components/CircularProgress/CircularProgress.d.ts +19 -0
- package/lib/components/CircularProgress/CircularProgress.mjs +18 -0
- package/lib/components/CircularProgress/constants.cjs +1 -0
- package/lib/components/CircularProgress/constants.mjs +4 -0
- package/lib/components/CircularProgress/useLogic/useLogic.cjs +1 -0
- package/lib/components/CircularProgress/useLogic/useLogic.d.ts +6 -0
- package/lib/components/CircularProgress/useLogic/useLogic.mjs +4 -0
- package/lib/components/Collapse/Collapse.cjs +1 -0
- package/lib/components/Collapse/Collapse.d.ts +4 -0
- package/lib/components/Collapse/Collapse.mjs +6 -0
- package/lib/components/ConfigProvider/ConfigProvider.cjs +2 -0
- package/lib/components/ConfigProvider/ConfigProvider.d.ts +91 -0
- package/lib/components/ConfigProvider/ConfigProvider.mjs +53 -0
- package/lib/components/ConfirmAction/ConfirmAction.cjs +1 -0
- package/lib/components/ConfirmAction/ConfirmAction.d.ts +38 -0
- package/lib/components/ConfirmAction/ConfirmAction.mjs +43 -0
- package/lib/components/ConfirmAction/constants.cjs +1 -0
- package/lib/components/ConfirmAction/constants.mjs +11 -0
- package/lib/components/ConfirmAction/styles.cjs +10 -0
- package/lib/components/ConfirmAction/styles.d.ts +16 -0
- package/lib/components/ConfirmAction/styles.mjs +17 -0
- package/lib/components/ConfirmAction/useLogic/useLogic.cjs +1 -0
- package/lib/components/ConfirmAction/useLogic/useLogic.d.ts +22 -0
- package/lib/components/ConfirmAction/useLogic/useLogic.mjs +36 -0
- package/lib/components/ConfirmDialog/ConfirmDialog.cjs +1 -0
- package/lib/components/ConfirmDialog/ConfirmDialog.d.ts +37 -0
- package/lib/components/ConfirmDialog/ConfirmDialog.mjs +26 -0
- package/lib/components/ConfirmDialog/styles.cjs +5 -0
- package/lib/components/ConfirmDialog/styles.d.ts +9 -0
- package/lib/components/ConfirmDialog/styles.mjs +10 -0
- package/lib/components/ConfirmDialog/useLogic/useLogic.cjs +1 -0
- package/lib/components/ConfirmDialog/useLogic/useLogic.d.ts +10 -0
- package/lib/components/ConfirmDialog/useLogic/useLogic.mjs +12 -0
- package/lib/components/Container/Container.cjs +1 -0
- package/lib/components/Container/Container.d.ts +8 -0
- package/lib/components/Container/Container.mjs +6 -0
- package/lib/components/Container/styles.cjs +19 -0
- package/lib/components/Container/styles.d.ts +24 -0
- package/lib/components/Container/styles.mjs +48 -0
- package/lib/components/ContentState/ContentState.cjs +1 -0
- package/lib/components/ContentState/ContentState.d.ts +36 -0
- package/lib/components/ContentState/ContentState.mjs +49 -0
- package/lib/components/ContentState/styles.cjs +9 -0
- package/lib/components/ContentState/styles.d.ts +1 -0
- package/lib/components/ContentState/styles.mjs +13 -0
- package/lib/components/ContentState/types.d.ts +29 -0
- package/lib/components/CopyTypography/CopyTypography.cjs +1 -0
- package/lib/components/CopyTypography/CopyTypography.d.ts +17 -0
- package/lib/components/CopyTypography/CopyTypography.mjs +32 -0
- package/lib/components/CopyTypography/enums.cjs +1 -0
- package/lib/components/CopyTypography/enums.mjs +4 -0
- package/lib/components/CopyTypography/styles.cjs +18 -0
- package/lib/components/CopyTypography/styles.d.ts +17 -0
- package/lib/components/CopyTypography/styles.mjs +27 -0
- package/lib/components/CopyTypography/useLogic/useLogic.cjs +1 -0
- package/lib/components/CopyTypography/useLogic/useLogic.d.ts +10 -0
- package/lib/components/CopyTypography/useLogic/useLogic.mjs +20 -0
- package/lib/components/DataGrid/Body/Body.cjs +1 -0
- package/lib/components/DataGrid/Body/Body.d.ts +99 -0
- package/lib/components/DataGrid/Body/Body.mjs +53 -0
- package/lib/components/DataGrid/Body/styles.cjs +9 -0
- package/lib/components/DataGrid/Body/styles.d.ts +4 -0
- package/lib/components/DataGrid/Body/styles.mjs +16 -0
- package/lib/components/DataGrid/Body/useLogic/useLogic.cjs +1 -0
- package/lib/components/DataGrid/Body/useLogic/useLogic.d.ts +11 -0
- package/lib/components/DataGrid/Body/useLogic/useLogic.mjs +17 -0
- package/lib/components/DataGrid/Cell/Cell.cjs +1 -0
- package/lib/components/DataGrid/Cell/Cell.d.ts +26 -0
- package/lib/components/DataGrid/Cell/Cell.mjs +25 -0
- package/lib/components/DataGrid/Cell/styles.cjs +11 -0
- package/lib/components/DataGrid/Cell/styles.d.ts +8 -0
- package/lib/components/DataGrid/Cell/styles.mjs +19 -0
- package/lib/components/DataGrid/Cell/useLogic/useLogic.cjs +1 -0
- package/lib/components/DataGrid/Cell/useLogic/useLogic.d.ts +8 -0
- package/lib/components/DataGrid/Cell/useLogic/useLogic.mjs +13 -0
- package/lib/components/DataGrid/DataGrid.cjs +1 -0
- package/lib/components/DataGrid/DataGrid.d.ts +154 -0
- package/lib/components/DataGrid/DataGrid.mjs +90 -0
- package/lib/components/DataGrid/DataGridContext/DataGridContext.cjs +1 -0
- package/lib/components/DataGrid/DataGridContext/DataGridContext.d.ts +7 -0
- package/lib/components/DataGrid/DataGridContext/DataGridContext.mjs +12 -0
- package/lib/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.cjs +1 -0
- package/lib/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +6 -0
- package/lib/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.mjs +41 -0
- package/lib/components/DataGrid/Head/Head.cjs +1 -0
- package/lib/components/DataGrid/Head/Head.d.ts +37 -0
- package/lib/components/DataGrid/Head/Head.mjs +35 -0
- package/lib/components/DataGrid/Head/styles.cjs +12 -0
- package/lib/components/DataGrid/Head/styles.d.ts +4 -0
- package/lib/components/DataGrid/Head/styles.mjs +20 -0
- package/lib/components/DataGrid/Head/useLogic/useLogic.cjs +1 -0
- package/lib/components/DataGrid/Head/useLogic/useLogic.d.ts +12 -0
- package/lib/components/DataGrid/Head/useLogic/useLogic.mjs +39 -0
- package/lib/components/DataGrid/HeadCell/HeadCell.cjs +1 -0
- package/lib/components/DataGrid/HeadCell/HeadCell.d.ts +18 -0
- package/lib/components/DataGrid/HeadCell/HeadCell.mjs +32 -0
- package/lib/components/DataGrid/HeadCell/styles.cjs +21 -0
- package/lib/components/DataGrid/HeadCell/styles.d.ts +22 -0
- package/lib/components/DataGrid/HeadCell/styles.mjs +30 -0
- package/lib/components/DataGrid/HeadCell/useLogic/useLogic.cjs +1 -0
- package/lib/components/DataGrid/HeadCell/useLogic/useLogic.d.ts +10 -0
- package/lib/components/DataGrid/HeadCell/useLogic/useLogic.mjs +16 -0
- package/lib/components/DataGrid/Loader/Loader.cjs +1 -0
- package/lib/components/DataGrid/Loader/Loader.mjs +14 -0
- package/lib/components/DataGrid/Loader/styles.cjs +16 -0
- package/lib/components/DataGrid/Loader/styles.d.ts +4 -0
- package/lib/components/DataGrid/Loader/styles.mjs +24 -0
- package/lib/components/DataGrid/NoData/NoData.cjs +1 -0
- package/lib/components/DataGrid/NoData/NoData.d.ts +34 -0
- package/lib/components/DataGrid/NoData/NoData.mjs +29 -0
- package/lib/components/DataGrid/Row/NestedChildren/NestedChildren.cjs +1 -0
- package/lib/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +55 -0
- package/lib/components/DataGrid/Row/NestedChildren/NestedChildren.mjs +72 -0
- package/lib/components/DataGrid/Row/NestedChildren/styles.cjs +54 -0
- package/lib/components/DataGrid/Row/NestedChildren/styles.d.ts +20 -0
- package/lib/components/DataGrid/Row/NestedChildren/styles.mjs +68 -0
- package/lib/components/DataGrid/Row/NestedChildren/useLogic/useLogic.cjs +1 -0
- package/lib/components/DataGrid/Row/NestedChildren/useLogic/useLogic.d.ts +18 -0
- package/lib/components/DataGrid/Row/NestedChildren/useLogic/useLogic.mjs +27 -0
- package/lib/components/DataGrid/Row/Row.cjs +1 -0
- package/lib/components/DataGrid/Row/Row.d.ts +91 -0
- package/lib/components/DataGrid/Row/Row.mjs +159 -0
- package/lib/components/DataGrid/Row/RowContext/RowContext.cjs +1 -0
- package/lib/components/DataGrid/Row/RowContext/RowContext.d.ts +7 -0
- package/lib/components/DataGrid/Row/RowContext/RowContext.mjs +11 -0
- package/lib/components/DataGrid/Row/RowContext/RowProvider/RowProvider.cjs +1 -0
- package/lib/components/DataGrid/Row/RowContext/RowProvider/RowProvider.d.ts +6 -0
- package/lib/components/DataGrid/Row/RowContext/RowProvider/RowProvider.mjs +25 -0
- package/lib/components/DataGrid/Row/constants.cjs +1 -0
- package/lib/components/DataGrid/Row/constants.mjs +5 -0
- package/lib/components/DataGrid/Row/styles.cjs +80 -0
- package/lib/components/DataGrid/Row/styles.d.ts +31 -0
- package/lib/components/DataGrid/Row/styles.mjs +102 -0
- package/lib/components/DataGrid/Row/useLogic/useLogic.cjs +1 -0
- package/lib/components/DataGrid/Row/useLogic/useLogic.d.ts +35 -0
- package/lib/components/DataGrid/Row/useLogic/useLogic.mjs +79 -0
- package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.cjs +1 -0
- package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.d.ts +4 -0
- package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.mjs +8 -0
- package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.cjs +1 -0
- package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.d.ts +2 -0
- package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.mjs +14 -0
- package/lib/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.cjs +1 -0
- package/lib/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.mjs +4 -0
- package/lib/components/DataGrid/constants.cjs +1 -0
- package/lib/components/DataGrid/constants.mjs +9 -0
- package/lib/components/DataGrid/enums.cjs +1 -0
- package/lib/components/DataGrid/enums.mjs +5 -0
- package/lib/components/DataGrid/faker.d.ts +24 -0
- package/lib/components/DataGrid/styles.cjs +22 -0
- package/lib/components/DataGrid/styles.d.ts +5 -0
- package/lib/components/DataGrid/styles.mjs +30 -0
- package/lib/components/DataGrid/types.d.ts +91 -0
- package/lib/components/DataGrid/useLogic/useLogic.cjs +1 -0
- package/lib/components/DataGrid/useLogic/useLogic.d.ts +32 -0
- package/lib/components/DataGrid/useLogic/useLogic.mjs +79 -0
- package/lib/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.cjs +1 -0
- package/lib/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.mjs +4 -0
- package/lib/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.cjs +1 -0
- package/lib/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.d.ts +5 -0
- package/lib/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.mjs +5 -0
- package/lib/components/DataGrid/utils/alignToJustifyContent/constants.cjs +1 -0
- package/lib/components/DataGrid/utils/alignToJustifyContent/constants.mjs +9 -0
- package/lib/components/DataGridActionCell/DataGridActionCell.cjs +1 -0
- package/lib/components/DataGridActionCell/DataGridActionCell.d.ts +22 -0
- package/lib/components/DataGridActionCell/DataGridActionCell.mjs +35 -0
- package/lib/components/DataGridActionCell/MainAction/MainAction.cjs +1 -0
- package/lib/components/DataGridActionCell/MainAction/MainAction.d.ts +22 -0
- package/lib/components/DataGridActionCell/MainAction/MainAction.mjs +57 -0
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.cjs +1 -0
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts +19 -0
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.mjs +54 -0
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.cjs +1 -0
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.d.ts +11 -0
- package/lib/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.mjs +17 -0
- package/lib/components/DataGridActionCell/SecondaryAction/SecondaryAction.cjs +1 -0
- package/lib/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts +22 -0
- package/lib/components/DataGridActionCell/SecondaryAction/SecondaryAction.mjs +34 -0
- package/lib/components/DataGridActionCell/styles.cjs +4 -0
- package/lib/components/DataGridActionCell/styles.d.ts +1 -0
- package/lib/components/DataGridActionCell/styles.mjs +8 -0
- package/lib/components/DataGridActionCell/types.d.ts +98 -0
- package/lib/components/DataGridActionCell/useLogic/useLogic.cjs +1 -0
- package/lib/components/DataGridActionCell/useLogic/useLogic.d.ts +10 -0
- package/lib/components/DataGridActionCell/useLogic/useLogic.mjs +49 -0
- package/lib/components/DataGridOld/Body/Body.d.ts +13 -0
- package/lib/components/DataGridOld/Body/styles.d.ts +1 -0
- package/lib/components/DataGridOld/Cell/Cell.d.ts +7 -0
- package/lib/components/DataGridOld/Cell/styles.d.ts +4 -0
- package/lib/components/DataGridOld/DataGridOld.d.ts +20 -0
- package/lib/components/DataGridOld/Head/Head.d.ts +7 -0
- package/lib/components/DataGridOld/Head/styles.d.ts +4 -0
- package/lib/components/DataGridOld/HeadCell/HeadCell.d.ts +5 -0
- package/lib/components/DataGridOld/HeadCell/styles.d.ts +3 -0
- package/lib/components/DataGridOld/Row/Row.d.ts +11 -0
- package/lib/components/DataGridOld/Row/styles.d.ts +5 -0
- package/lib/components/DataGridOld/State/styles.d.ts +1 -0
- package/lib/components/DataGridOld/styles.d.ts +7 -0
- package/lib/components/DataGridOld/types.d.ts +15 -0
- package/lib/components/DataGridPagination/DataGridPagination.cjs +1 -0
- package/lib/components/DataGridPagination/DataGridPagination.d.ts +25 -0
- package/lib/components/DataGridPagination/DataGridPagination.mjs +57 -0
- package/lib/components/DataGridPagination/constants.cjs +1 -0
- package/lib/components/DataGridPagination/constants.mjs +5 -0
- package/lib/components/DataGridPagination/faker.d.ts +3 -0
- package/lib/components/DataGridPagination/styles.cjs +18 -0
- package/lib/components/DataGridPagination/styles.d.ts +16 -0
- package/lib/components/DataGridPagination/styles.mjs +25 -0
- package/lib/components/DataGridPagination/useLogic/useLogic.cjs +1 -0
- package/lib/components/DataGridPagination/useLogic/useLogic.d.ts +10 -0
- package/lib/components/DataGridPagination/useLogic/useLogic.mjs +28 -0
- package/lib/components/Description/Description.cjs +1 -0
- package/lib/components/Description/Description.d.ts +34 -0
- package/lib/components/Description/Description.mjs +39 -0
- package/lib/components/Description/DescriptionContext/DescriptionContext.cjs +1 -0
- package/lib/components/Description/DescriptionContext/DescriptionContext.d.ts +6 -0
- package/lib/components/Description/DescriptionContext/DescriptionContext.mjs +10 -0
- package/lib/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.cjs +1 -0
- package/lib/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts +7 -0
- package/lib/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.mjs +11 -0
- package/lib/components/Description/Name/Name.cjs +1 -0
- package/lib/components/Description/Name/Name.d.ts +3 -0
- package/lib/components/Description/Name/Name.mjs +22 -0
- package/lib/components/Description/Name/styles.cjs +18 -0
- package/lib/components/Description/Name/styles.d.ts +6 -0
- package/lib/components/Description/Name/styles.mjs +25 -0
- package/lib/components/Description/Value/Value.cjs +1 -0
- package/lib/components/Description/Value/Value.d.ts +22 -0
- package/lib/components/Description/Value/Value.mjs +37 -0
- package/lib/components/Description/Value/styles.cjs +35 -0
- package/lib/components/Description/Value/styles.d.ts +43 -0
- package/lib/components/Description/Value/styles.mjs +47 -0
- package/lib/components/Description/Value/useLogic/useLogic.cjs +1 -0
- package/lib/components/Description/Value/useLogic/useLogic.d.ts +9 -0
- package/lib/components/Description/Value/useLogic/useLogic.mjs +11 -0
- package/lib/components/Description/constants.cjs +1 -0
- package/lib/components/Description/constants.mjs +6 -0
- package/lib/components/Description/styles.cjs +17 -0
- package/lib/components/Description/styles.d.ts +4 -0
- package/lib/components/Description/styles.mjs +23 -0
- package/lib/components/Description/useLogic/useLogic.cjs +1 -0
- package/lib/components/Description/useLogic/useLogic.d.ts +9 -0
- package/lib/components/Description/useLogic/useLogic.mjs +15 -0
- package/lib/components/DescriptionList/DescriptionList.cjs +1 -0
- package/lib/components/DescriptionList/DescriptionList.d.ts +2 -0
- package/lib/components/DescriptionList/DescriptionList.mjs +78 -0
- package/lib/components/DescriptionList/styles.cjs +30 -0
- package/lib/components/DescriptionList/styles.d.ts +22 -0
- package/lib/components/DescriptionList/styles.mjs +46 -0
- package/lib/components/DescriptionList/types.d.ts +32 -0
- package/lib/components/DescriptionList/utils/getTooltipProps/getTooltipProps.cjs +1 -0
- package/lib/components/DescriptionList/utils/getTooltipProps/getTooltipProps.mjs +4 -0
- package/lib/components/Dialog/Dialog.cjs +1 -0
- package/lib/components/Dialog/Dialog.d.ts +20 -0
- package/lib/components/Dialog/Dialog.mjs +25 -0
- package/lib/components/Dialog/constants.cjs +1 -0
- package/lib/components/Dialog/constants.mjs +10 -0
- package/lib/components/Dialog/styles.cjs +9 -0
- package/lib/components/Dialog/styles.d.ts +5 -0
- package/lib/components/Dialog/styles.mjs +16 -0
- package/lib/components/DialogActions/DialogActions.cjs +1 -0
- package/lib/components/DialogActions/DialogActions.d.ts +4 -0
- package/lib/components/DialogActions/DialogActions.mjs +10 -0
- package/lib/components/DialogActions/styles.cjs +12 -0
- package/lib/components/DialogActions/styles.d.ts +6 -0
- package/lib/components/DialogActions/styles.mjs +18 -0
- package/lib/components/DialogContent/DialogContent.cjs +1 -0
- package/lib/components/DialogContent/DialogContent.d.ts +4 -0
- package/lib/components/DialogContent/DialogContent.mjs +6 -0
- package/lib/components/DialogContent/styles.cjs +7 -0
- package/lib/components/DialogContent/styles.d.ts +2 -0
- package/lib/components/DialogContent/styles.mjs +11 -0
- package/lib/components/DialogContentText/DialogContentText.cjs +1 -0
- package/lib/components/DialogContentText/DialogContentText.d.ts +4 -0
- package/lib/components/DialogContentText/DialogContentText.mjs +6 -0
- package/lib/components/DialogContentText/styles.cjs +3 -0
- package/lib/components/DialogContentText/styles.d.ts +1 -0
- package/lib/components/DialogContentText/styles.mjs +7 -0
- package/lib/components/DialogHeader/DialogHeader.cjs +1 -0
- package/lib/components/DialogHeader/DialogHeader.d.ts +16 -0
- package/lib/components/DialogHeader/DialogHeader.mjs +39 -0
- package/lib/components/DialogHeader/styles.cjs +20 -0
- package/lib/components/DialogHeader/styles.d.ts +18 -0
- package/lib/components/DialogHeader/styles.mjs +31 -0
- package/lib/components/DialogTitle/DialogTitle.cjs +1 -0
- package/lib/components/DialogTitle/DialogTitle.d.ts +6 -0
- package/lib/components/DialogTitle/DialogTitle.mjs +28 -0
- package/lib/components/Divider/Divider.cjs +1 -0
- package/lib/components/Divider/Divider.d.ts +4 -0
- package/lib/components/Divider/Divider.mjs +6 -0
- package/lib/components/DropdownButton/DropdownButton.cjs +1 -0
- package/lib/components/DropdownButton/DropdownButton.d.ts +9 -0
- package/lib/components/DropdownButton/DropdownButton.mjs +32 -0
- package/lib/components/ErrorBoundary/ErrorBoundary.cjs +1 -0
- package/lib/components/ErrorBoundary/ErrorBoundary.d.ts +36 -0
- package/lib/components/ErrorBoundary/ErrorBoundary.mjs +33 -0
- package/lib/components/ErrorBoundary/constants.cjs +1 -0
- package/lib/components/ErrorBoundary/constants.mjs +11 -0
- package/lib/components/ErrorBoundary/enums.cjs +1 -0
- package/lib/components/ErrorBoundary/enums.mjs +4 -0
- package/lib/components/Filename/Filename.cjs +1 -0
- package/lib/components/Filename/Filename.d.ts +21 -0
- package/lib/components/Filename/Filename.mjs +34 -0
- package/lib/components/Filename/styles.cjs +11 -0
- package/lib/components/Filename/styles.d.ts +17 -0
- package/lib/components/Filename/styles.mjs +19 -0
- package/lib/components/Filename/useLogic/useLogic.cjs +1 -0
- package/lib/components/Filename/useLogic/useLogic.d.ts +16 -0
- package/lib/components/Filename/useLogic/useLogic.mjs +16 -0
- package/lib/components/Filename/useLogic/utils/findExtension/constants.cjs +1 -0
- package/lib/components/Filename/useLogic/utils/findExtension/constants.mjs +19 -0
- package/lib/components/Filename/useLogic/utils/findExtension/findExtension.cjs +1 -0
- package/lib/components/Filename/useLogic/utils/findExtension/findExtension.mjs +12 -0
- package/lib/components/Filename/useLogic/utils/truncateString/constants.cjs +1 -0
- package/lib/components/Filename/useLogic/utils/truncateString/constants.mjs +4 -0
- package/lib/components/Filename/useLogic/utils/truncateString/truncateString.cjs +1 -0
- package/lib/components/Filename/useLogic/utils/truncateString/truncateString.mjs +19 -0
- package/lib/components/FormControl/FormControl.cjs +1 -0
- package/lib/components/FormControl/FormControl.d.ts +4 -0
- package/lib/components/FormControl/FormControl.mjs +6 -0
- package/lib/components/FormControlLabel/FormControlLabel.cjs +1 -0
- package/lib/components/FormControlLabel/FormControlLabel.d.ts +2 -0
- package/lib/components/FormControlLabel/FormControlLabel.mjs +6 -0
- package/lib/components/FormControlLabel/styles.cjs +8 -0
- package/lib/components/FormControlLabel/styles.d.ts +2 -0
- package/lib/components/FormControlLabel/styles.mjs +14 -0
- package/lib/components/FormControlLabel/types.d.ts +3 -0
- package/lib/components/FormHelperText/FormHelperText.cjs +1 -0
- package/lib/components/FormHelperText/FormHelperText.d.ts +7 -0
- package/lib/components/FormHelperText/FormHelperText.mjs +12 -0
- package/lib/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.cjs +1 -0
- package/lib/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.d.ts +7 -0
- package/lib/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.mjs +17 -0
- package/lib/components/FormHelperText/FormHelperTextContent/styles.cjs +14 -0
- package/lib/components/FormHelperText/FormHelperTextContent/styles.d.ts +9 -0
- package/lib/components/FormHelperText/FormHelperTextContent/styles.mjs +22 -0
- package/lib/components/FormLabel/FormLabel.cjs +1 -0
- package/lib/components/FormLabel/FormLabel.d.ts +4 -0
- package/lib/components/FormLabel/FormLabel.mjs +6 -0
- package/lib/components/FormLabel/styles.cjs +4 -0
- package/lib/components/FormLabel/styles.d.ts +1 -0
- package/lib/components/FormLabel/styles.mjs +8 -0
- package/lib/components/GuidTypography/GuidTypography.cjs +1 -0
- package/lib/components/GuidTypography/GuidTypography.d.ts +3 -0
- package/lib/components/GuidTypography/GuidTypography.mjs +6 -0
- package/lib/components/IconButton/IconButton.cjs +1 -0
- package/lib/components/IconButton/IconButton.d.ts +9 -0
- package/lib/components/IconButton/IconButton.mjs +28 -0
- package/lib/components/IconButton/styles.cjs +11 -0
- package/lib/components/IconButton/styles.d.ts +23 -0
- package/lib/components/IconButton/styles.mjs +33 -0
- package/lib/components/IconDropdownButton/IconDropdownButton.cjs +1 -0
- package/lib/components/IconDropdownButton/IconDropdownButton.d.ts +9 -0
- package/lib/components/IconDropdownButton/IconDropdownButton.mjs +25 -0
- package/lib/components/InternalErrorPlaceholder/InternalErrorPlaceholder.cjs +1 -0
- package/lib/components/InternalErrorPlaceholder/InternalErrorPlaceholder.mjs +35 -0
- package/lib/components/Link/Link.cjs +1 -0
- package/lib/components/Link/Link.d.ts +24 -0
- package/lib/components/Link/Link.mjs +18 -0
- package/lib/components/Link/styles.cjs +35 -0
- package/lib/components/Link/styles.d.ts +1 -0
- package/lib/components/Link/styles.mjs +39 -0
- package/lib/components/List/List.cjs +1 -0
- package/lib/components/List/List.d.ts +4 -0
- package/lib/components/List/List.mjs +6 -0
- package/lib/components/ListItem/ListItem.cjs +1 -0
- package/lib/components/ListItem/ListItem.d.ts +4 -0
- package/lib/components/ListItem/ListItem.mjs +6 -0
- package/lib/components/ListItem/constants.cjs +1 -0
- package/lib/components/ListItem/constants.d.ts +5 -0
- package/lib/components/ListItem/constants.mjs +4 -0
- package/lib/components/ListItem/styles.cjs +11 -0
- package/lib/components/ListItem/styles.d.ts +11 -0
- package/lib/components/ListItem/styles.mjs +25 -0
- package/lib/components/ListItemButton/ListItemButton.cjs +1 -0
- package/lib/components/ListItemButton/ListItemButton.d.ts +21 -0
- package/lib/components/ListItemButton/ListItemButton.mjs +33 -0
- package/lib/components/ListItemIcon/ListItemIcon.cjs +1 -0
- package/lib/components/ListItemIcon/ListItemIcon.d.ts +5 -0
- package/lib/components/ListItemIcon/ListItemIcon.mjs +9 -0
- package/lib/components/ListItemIcon/styles.cjs +3 -0
- package/lib/components/ListItemIcon/styles.d.ts +1 -0
- package/lib/components/ListItemIcon/styles.mjs +7 -0
- package/lib/components/ListItemText/ListItemText.cjs +1 -0
- package/lib/components/ListItemText/ListItemText.d.ts +4 -0
- package/lib/components/ListItemText/ListItemText.mjs +6 -0
- package/lib/components/ListSubheader/ListSubheader.cjs +1 -0
- package/lib/components/ListSubheader/ListSubheader.d.ts +4 -0
- package/lib/components/ListSubheader/ListSubheader.mjs +6 -0
- package/lib/components/Menu/Menu.cjs +1 -0
- package/lib/components/Menu/Menu.d.ts +9 -0
- package/lib/components/Menu/Menu.mjs +19 -0
- package/lib/components/MenuItem/MenuItem.cjs +1 -0
- package/lib/components/MenuItem/MenuItem.d.ts +28 -0
- package/lib/components/MenuItem/MenuItem.mjs +35 -0
- package/lib/components/MenuList/MenuList.cjs +1 -0
- package/lib/components/MenuList/MenuList.d.ts +2 -0
- package/lib/components/MenuList/MenuList.mjs +6 -0
- package/lib/components/MenuList/styles.cjs +8 -0
- package/lib/components/MenuList/styles.d.ts +1 -0
- package/lib/components/MenuList/styles.mjs +12 -0
- package/lib/components/MenuList/types.d.ts +3 -0
- package/lib/components/NavMenu/Item/Item.cjs +1 -0
- package/lib/components/NavMenu/Item/Item.d.ts +16 -0
- package/lib/components/NavMenu/Item/Item.mjs +44 -0
- package/lib/components/NavMenu/Item/ItemButton/ItemButton.cjs +1 -0
- package/lib/components/NavMenu/Item/ItemButton/ItemButton.d.ts +11 -0
- package/lib/components/NavMenu/Item/ItemButton/ItemButton.mjs +49 -0
- package/lib/components/NavMenu/Item/ItemButton/styles.cjs +105 -0
- package/lib/components/NavMenu/Item/ItemButton/styles.d.ts +639 -0
- package/lib/components/NavMenu/Item/ItemButton/styles.mjs +126 -0
- package/lib/components/NavMenu/Item/List/List.cjs +1 -0
- package/lib/components/NavMenu/Item/List/List.d.ts +13 -0
- package/lib/components/NavMenu/Item/List/List.mjs +23 -0
- package/lib/components/NavMenu/NavMenu.cjs +1 -0
- package/lib/components/NavMenu/NavMenu.d.ts +15 -0
- package/lib/components/NavMenu/NavMenu.mjs +10 -0
- package/lib/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.cjs +1 -0
- package/lib/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.mjs +26 -0
- package/lib/components/OverflowTypography/OverflowTypography.cjs +1 -0
- package/lib/components/OverflowTypography/OverflowTypography.d.ts +34 -0
- package/lib/components/OverflowTypography/OverflowTypography.mjs +46 -0
- package/lib/components/OverflowTypography/hooks/useOverflowed/useOverflowed.cjs +1 -0
- package/lib/components/OverflowTypography/hooks/useOverflowed/useOverflowed.d.ts +5 -0
- package/lib/components/OverflowTypography/hooks/useOverflowed/useOverflowed.mjs +27 -0
- package/lib/components/OverflowTypography/styles.cjs +20 -0
- package/lib/components/OverflowTypography/styles.d.ts +35 -0
- package/lib/components/OverflowTypography/styles.mjs +30 -0
- package/lib/components/OverflowTypography/useLogic/useLogic.cjs +1 -0
- package/lib/components/OverflowTypography/useLogic/useLogic.d.ts +8 -0
- package/lib/components/OverflowTypography/useLogic/useLogic.mjs +19 -0
- package/lib/components/OverflowTypography/utils/truncateString/truncateString.cjs +1 -0
- package/lib/components/OverflowTypography/utils/truncateString/truncateString.mjs +7 -0
- package/lib/components/Pagination/Pagination.cjs +1 -0
- package/lib/components/Pagination/Pagination.d.ts +2 -0
- package/lib/components/Pagination/Pagination.mjs +6 -0
- package/lib/components/Pagination/types.d.ts +3 -0
- package/lib/components/Paper/Paper.cjs +1 -0
- package/lib/components/Paper/Paper.d.ts +14 -0
- package/lib/components/Paper/Paper.mjs +6 -0
- package/lib/components/Placeholder/Image/Image.cjs +1 -0
- package/lib/components/Placeholder/Image/Image.d.ts +21 -0
- package/lib/components/Placeholder/Image/Image.mjs +6 -0
- package/lib/components/Placeholder/Image/styles.cjs +17 -0
- package/lib/components/Placeholder/Image/styles.d.ts +4 -0
- package/lib/components/Placeholder/Image/styles.mjs +24 -0
- package/lib/components/Placeholder/Placeholder.cjs +1 -0
- package/lib/components/Placeholder/Placeholder.d.ts +45 -0
- package/lib/components/Placeholder/Placeholder.mjs +42 -0
- package/lib/components/Placeholder/constants.cjs +1 -0
- package/lib/components/Placeholder/constants.d.ts +14 -0
- package/lib/components/Placeholder/constants.mjs +28 -0
- package/lib/components/Placeholder/styles.cjs +59 -0
- package/lib/components/Placeholder/styles.d.ts +35 -0
- package/lib/components/Placeholder/styles.mjs +77 -0
- package/lib/components/Popover/Popover.cjs +1 -0
- package/lib/components/Popover/Popover.d.ts +9 -0
- package/lib/components/Popover/Popover.mjs +18 -0
- package/lib/components/ProgressBar/ProgressBar.cjs +1 -0
- package/lib/components/ProgressBar/ProgressBar.mjs +16 -0
- package/lib/components/Radio/Icon/Icon.cjs +1 -0
- package/lib/components/Radio/Icon/Icon.mjs +46 -0
- package/lib/components/Radio/Radio.cjs +1 -0
- package/lib/components/Radio/Radio.d.ts +9 -0
- package/lib/components/Radio/Radio.mjs +11 -0
- package/lib/components/Radio/constants.cjs +1 -0
- package/lib/components/Radio/constants.mjs +11 -0
- package/lib/components/Radio/styles.cjs +57 -0
- package/lib/components/Radio/styles.d.ts +5 -0
- package/lib/components/Radio/styles.mjs +64 -0
- package/lib/components/RadioField/RadioField.cjs +1 -0
- package/lib/components/RadioField/RadioField.d.ts +25 -0
- package/lib/components/RadioField/RadioField.mjs +33 -0
- package/lib/components/RadioField/styles.cjs +4 -0
- package/lib/components/RadioField/styles.d.ts +2 -0
- package/lib/components/RadioField/styles.mjs +10 -0
- package/lib/components/RadioGroup/RadioGroup.cjs +1 -0
- package/lib/components/RadioGroup/RadioGroup.d.ts +30 -0
- package/lib/components/RadioGroup/RadioGroup.mjs +43 -0
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContext.cjs +1 -0
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContext.d.ts +4 -0
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContext.mjs +7 -0
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.cjs +1 -0
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.d.ts +6 -0
- package/lib/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.mjs +6 -0
- package/lib/components/RadioGroupField/RadioGroupField.cjs +1 -0
- package/lib/components/RadioGroupField/RadioGroupField.d.ts +8 -0
- package/lib/components/RadioGroupField/RadioGroupField.mjs +14 -0
- package/lib/components/SearchField/SearchField.cjs +1 -0
- package/lib/components/SearchField/SearchField.d.ts +3 -0
- package/lib/components/SearchField/SearchField.mjs +57 -0
- package/lib/components/SearchField/styles.cjs +23 -0
- package/lib/components/SearchField/styles.d.ts +22 -0
- package/lib/components/SearchField/styles.mjs +35 -0
- package/lib/components/Select/Select.cjs +1 -0
- package/lib/components/Select/Select.d.ts +25 -0
- package/lib/components/Select/Select.mjs +125 -0
- package/lib/components/Select/constants.cjs +1 -0
- package/lib/components/Select/constants.mjs +4 -0
- package/lib/components/Select/styles.cjs +44 -0
- package/lib/components/Select/styles.d.ts +23 -0
- package/lib/components/Select/styles.mjs +56 -0
- package/lib/components/Select/useLogic/useLogic.cjs +1 -0
- package/lib/components/Select/useLogic/useLogic.d.ts +10 -0
- package/lib/components/Select/useLogic/useLogic.mjs +33 -0
- package/lib/components/Skeleton/Skeleton.cjs +1 -0
- package/lib/components/Skeleton/Skeleton.d.ts +14 -0
- package/lib/components/Skeleton/Skeleton.mjs +6 -0
- package/lib/components/Skeleton/styles.cjs +14 -0
- package/lib/components/Skeleton/styles.d.ts +1 -0
- package/lib/components/Skeleton/styles.mjs +18 -0
- package/lib/components/Switch/Switch.cjs +1 -0
- package/lib/components/Switch/Switch.d.ts +4 -0
- package/lib/components/Switch/Switch.mjs +9 -0
- package/lib/components/Switch/styles.cjs +12 -0
- package/lib/components/Switch/styles.d.ts +1 -0
- package/lib/components/Switch/styles.mjs +16 -0
- package/lib/components/Tab/Tab.cjs +1 -0
- package/lib/components/Tab/Tab.d.ts +7 -0
- package/lib/components/Tab/Tab.mjs +6 -0
- package/lib/components/Tab/styles.cjs +20 -0
- package/lib/components/Tab/styles.d.ts +1 -0
- package/lib/components/Tab/styles.mjs +24 -0
- package/lib/components/Tabs/Tabs.cjs +1 -0
- package/lib/components/Tabs/Tabs.d.ts +13 -0
- package/lib/components/Tabs/Tabs.mjs +10 -0
- package/lib/components/Tabs/styles.cjs +16 -0
- package/lib/components/Tabs/styles.d.ts +2 -0
- package/lib/components/Tabs/styles.mjs +21 -0
- package/lib/components/Tag/Tag.cjs +1 -0
- package/lib/components/Tag/Tag.d.ts +36 -0
- package/lib/components/Tag/Tag.mjs +59 -0
- package/lib/components/Tag/enums.cjs +1 -0
- package/lib/components/Tag/enums.mjs +6 -0
- package/lib/components/Tag/styles.cjs +79 -0
- package/lib/components/Tag/styles.d.ts +26 -0
- package/lib/components/Tag/styles.mjs +214 -0
- package/lib/components/Tag/types.d.ts +5 -0
- package/lib/components/TagBadge/TagBadge.cjs +1 -0
- package/lib/components/TagBadge/TagBadge.d.ts +23 -0
- package/lib/components/TagBadge/TagBadge.mjs +25 -0
- package/lib/components/TagBadge/styles.cjs +11 -0
- package/lib/components/TagBadge/styles.d.ts +5 -0
- package/lib/components/TagBadge/styles.mjs +16 -0
- package/lib/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.cjs +1 -0
- package/lib/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.d.ts +15 -0
- package/lib/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.mjs +9 -0
- package/lib/components/TagsList/Tag/Tag.cjs +1 -0
- package/lib/components/TagsList/Tag/Tag.d.ts +25 -0
- package/lib/components/TagsList/Tag/Tag.mjs +19 -0
- package/lib/components/TagsList/Tag/styles.cjs +10 -0
- package/lib/components/TagsList/Tag/styles.d.ts +11 -0
- package/lib/components/TagsList/Tag/styles.mjs +17 -0
- package/lib/components/TagsList/Tag/useLogic/useLogic.cjs +1 -0
- package/lib/components/TagsList/Tag/useLogic/useLogic.d.ts +4 -0
- package/lib/components/TagsList/Tag/useLogic/useLogic.mjs +8 -0
- package/lib/components/TagsList/TagsList.cjs +1 -0
- package/lib/components/TagsList/TagsList.d.ts +34 -0
- package/lib/components/TagsList/TagsList.mjs +34 -0
- package/lib/components/TagsList/styles.cjs +4 -0
- package/lib/components/TagsList/styles.d.ts +1 -0
- package/lib/components/TagsList/styles.mjs +8 -0
- package/lib/components/TagsList/useLogic/useLogic.cjs +1 -0
- package/lib/components/TagsList/useLogic/useLogic.d.ts +14 -0
- package/lib/components/TagsList/useLogic/useLogic.mjs +69 -0
- package/lib/components/TagsList/utils/getElementByText/getElementByText.cjs +1 -0
- package/lib/components/TagsList/utils/getElementByText/getElementByText.mjs +13 -0
- package/lib/components/TagsList/utils/getKey/getKey.cjs +1 -0
- package/lib/components/TagsList/utils/getKey/getKey.d.ts +2 -0
- package/lib/components/TagsList/utils/getKey/getKey.mjs +9 -0
- package/lib/components/TextArea/TextArea.cjs +1 -0
- package/lib/components/TextArea/TextArea.d.ts +3 -0
- package/lib/components/TextArea/TextArea.mjs +6 -0
- package/lib/components/TextField/TextField.cjs +1 -0
- package/lib/components/TextField/TextField.d.ts +28 -0
- package/lib/components/TextField/TextField.mjs +56 -0
- package/lib/components/Tooltip/Tooltip.cjs +1 -0
- package/lib/components/Tooltip/Tooltip.d.ts +16 -0
- package/lib/components/Tooltip/Tooltip.mjs +27 -0
- package/lib/components/Tooltip/constants.cjs +1 -0
- package/lib/components/Tooltip/constants.mjs +4 -0
- package/lib/components/Tooltip/styles.cjs +37 -0
- package/lib/components/Tooltip/styles.d.ts +7 -0
- package/lib/components/Tooltip/styles.mjs +46 -0
- package/lib/components/Tooltip/types.d.ts +2 -0
- package/lib/components/Typography/Typography.cjs +1 -0
- package/lib/components/Typography/Typography.d.ts +34 -0
- package/lib/components/Typography/Typography.mjs +25 -0
- package/lib/components/Typography/enums.cjs +1 -0
- package/lib/components/Typography/enums.mjs +4 -0
- package/lib/components/Typography/hooks/useTypographyColor/useTypographyColor.cjs +1 -0
- package/lib/components/Typography/hooks/useTypographyColor/useTypographyColor.d.ts +16 -0
- package/lib/components/Typography/hooks/useTypographyColor/useTypographyColor.mjs +24 -0
- package/lib/components/Typography/styles.cjs +3 -0
- package/lib/components/Typography/styles.mjs +9 -0
- package/lib/components/Typography/types.d.ts +4 -0
- package/lib/components/index.d.ts +76 -0
- package/lib/hooks/useMenu/useMenu.cjs +1 -0
- package/lib/hooks/useMenu/useMenu.d.ts +21 -0
- package/lib/hooks/useMenu/useMenu.mjs +10 -0
- package/lib/hooks/usePopover/usePopover.cjs +1 -0
- package/lib/hooks/usePopover/usePopover.d.ts +11 -0
- package/lib/hooks/usePopover/usePopover.mjs +11 -0
- package/lib/hooks/useToggle/useToggle.cjs +1 -0
- package/lib/hooks/useToggle/useToggle.mjs +12 -0
- package/lib/hooks/useViewportType/useViewportType.cjs +1 -0
- package/lib/hooks/useViewportType/useViewportType.mjs +8 -0
- package/lib/index.cjs +1 -0
- package/lib/index.mjs +215 -0
- package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.cjs +23 -0
- package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.mjs +408 -0
- package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.cjs +9 -0
- package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.mjs +35 -0
- package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.cjs +1 -0
- package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.mjs +10 -0
- package/lib/theme/baseTheme/baseTheme.cjs +1 -0
- package/lib/theme/baseTheme/baseTheme.d.ts +9 -0
- package/lib/theme/baseTheme/baseTheme.mjs +28 -0
- package/lib/theme/breakpoints.cjs +1 -0
- package/lib/theme/breakpoints.d.ts +2 -0
- package/lib/theme/breakpoints.mjs +12 -0
- package/lib/theme/components/MuiAlert.cjs +1 -0
- package/lib/theme/components/MuiAlert.d.ts +3 -0
- package/lib/theme/components/MuiAlert.mjs +67 -0
- package/lib/theme/components/MuiAutocomplete.cjs +1 -0
- package/lib/theme/components/MuiAutocomplete.d.ts +3 -0
- package/lib/theme/components/MuiAutocomplete.mjs +85 -0
- package/lib/theme/components/MuiButton.cjs +1 -0
- package/lib/theme/components/MuiButton.d.ts +32 -0
- package/lib/theme/components/MuiButton.mjs +296 -0
- package/lib/theme/components/MuiButtonBase.cjs +1 -0
- package/lib/theme/components/MuiButtonBase.d.ts +3 -0
- package/lib/theme/components/MuiButtonBase.mjs +15 -0
- package/lib/theme/components/MuiCircularProgress.cjs +1 -0
- package/lib/theme/components/MuiCircularProgress.d.ts +4 -0
- package/lib/theme/components/MuiCircularProgress.mjs +14 -0
- package/lib/theme/components/MuiDialog.cjs +1 -0
- package/lib/theme/components/MuiDialog.d.ts +3 -0
- package/lib/theme/components/MuiDialog.mjs +12 -0
- package/lib/theme/components/MuiDialogActions.cjs +1 -0
- package/lib/theme/components/MuiDialogActions.d.ts +3 -0
- package/lib/theme/components/MuiDialogActions.mjs +13 -0
- package/lib/theme/components/MuiDialogContent.cjs +1 -0
- package/lib/theme/components/MuiDialogContent.d.ts +3 -0
- package/lib/theme/components/MuiDialogContent.mjs +12 -0
- package/lib/theme/components/MuiDialogTitle.cjs +1 -0
- package/lib/theme/components/MuiDialogTitle.d.ts +3 -0
- package/lib/theme/components/MuiDialogTitle.mjs +23 -0
- package/lib/theme/components/MuiDrawer.cjs +1 -0
- package/lib/theme/components/MuiDrawer.d.ts +3 -0
- package/lib/theme/components/MuiDrawer.mjs +15 -0
- package/lib/theme/components/MuiFormHelperText.cjs +1 -0
- package/lib/theme/components/MuiFormHelperText.d.ts +4 -0
- package/lib/theme/components/MuiFormHelperText.mjs +20 -0
- package/lib/theme/components/MuiFormLabel.cjs +1 -0
- package/lib/theme/components/MuiFormLabel.d.ts +4 -0
- package/lib/theme/components/MuiFormLabel.mjs +14 -0
- package/lib/theme/components/MuiInputLabel.cjs +1 -0
- package/lib/theme/components/MuiInputLabel.d.ts +4 -0
- package/lib/theme/components/MuiInputLabel.mjs +31 -0
- package/lib/theme/components/MuiLinearProgress.cjs +1 -0
- package/lib/theme/components/MuiLinearProgress.d.ts +4 -0
- package/lib/theme/components/MuiLinearProgress.mjs +20 -0
- package/lib/theme/components/MuiListItemButton.cjs +1 -0
- package/lib/theme/components/MuiListItemButton.d.ts +3 -0
- package/lib/theme/components/MuiListItemButton.mjs +15 -0
- package/lib/theme/components/MuiListItemText.cjs +1 -0
- package/lib/theme/components/MuiListItemText.d.ts +3 -0
- package/lib/theme/components/MuiListItemText.mjs +15 -0
- package/lib/theme/components/MuiMenu.cjs +1 -0
- package/lib/theme/components/MuiMenu.d.ts +4 -0
- package/lib/theme/components/MuiMenu.mjs +31 -0
- package/lib/theme/components/MuiMenuItem.cjs +1 -0
- package/lib/theme/components/MuiMenuItem.d.ts +4 -0
- package/lib/theme/components/MuiMenuItem.mjs +30 -0
- package/lib/theme/components/MuiOutlinedInput.cjs +1 -0
- package/lib/theme/components/MuiOutlinedInput.d.ts +4 -0
- package/lib/theme/components/MuiOutlinedInput.mjs +73 -0
- package/lib/theme/components/MuiPaginationItem.cjs +1 -0
- package/lib/theme/components/MuiPaginationItem.d.ts +3 -0
- package/lib/theme/components/MuiPaginationItem.mjs +15 -0
- package/lib/theme/components/MuiPaper.cjs +1 -0
- package/lib/theme/components/MuiPaper.d.ts +3 -0
- package/lib/theme/components/MuiPaper.mjs +17 -0
- package/lib/theme/components/MuiStep.cjs +1 -0
- package/lib/theme/components/MuiStep.d.ts +3 -0
- package/lib/theme/components/MuiStep.mjs +15 -0
- package/lib/theme/components/MuiStepConnector.cjs +1 -0
- package/lib/theme/components/MuiStepConnector.d.ts +3 -0
- package/lib/theme/components/MuiStepConnector.mjs +10 -0
- package/lib/theme/components/MuiStepLabel.cjs +1 -0
- package/lib/theme/components/MuiStepLabel.d.ts +3 -0
- package/lib/theme/components/MuiStepLabel.mjs +28 -0
- package/lib/theme/components/MuiSwitch.cjs +1 -0
- package/lib/theme/components/MuiSwitch.d.ts +3 -0
- package/lib/theme/components/MuiSwitch.mjs +123 -0
- package/lib/theme/components/MuiTab.cjs +1 -0
- package/lib/theme/components/MuiTab.d.ts +3 -0
- package/lib/theme/components/MuiTab.mjs +14 -0
- package/lib/theme/components/MuiTableCell.cjs +1 -0
- package/lib/theme/components/MuiTableCell.d.ts +3 -0
- package/lib/theme/components/MuiTableCell.mjs +15 -0
- package/lib/theme/components/MuiTableHead.cjs +1 -0
- package/lib/theme/components/MuiTableHead.d.ts +3 -0
- package/lib/theme/components/MuiTableHead.mjs +14 -0
- package/lib/theme/components/MuiTableRow.cjs +1 -0
- package/lib/theme/components/MuiTableRow.d.ts +3 -0
- package/lib/theme/components/MuiTableRow.mjs +18 -0
- package/lib/theme/components/MuiTabs.cjs +1 -0
- package/lib/theme/components/MuiTabs.d.ts +3 -0
- package/lib/theme/components/MuiTabs.mjs +18 -0
- package/lib/theme/components/MuiTextField.cjs +1 -0
- package/lib/theme/components/MuiTextField.d.ts +3 -0
- package/lib/theme/components/MuiTextField.mjs +24 -0
- package/lib/theme/components/MuiToggleButton.cjs +1 -0
- package/lib/theme/components/MuiToggleButton.d.ts +3 -0
- package/lib/theme/components/MuiToggleButton.mjs +13 -0
- package/lib/theme/components/MuiToggleButtonGroup.cjs +1 -0
- package/lib/theme/components/MuiToggleButtonGroup.d.ts +3 -0
- package/lib/theme/components/MuiToggleButtonGroup.mjs +9 -0
- package/lib/theme/components/MuiTypography.cjs +1 -0
- package/lib/theme/components/MuiTypography.d.ts +21 -0
- package/lib/theme/components/MuiTypography.mjs +22 -0
- package/lib/theme/components/components.cjs +30 -0
- package/lib/theme/components/components.d.ts +21 -0
- package/lib/theme/components/components.mjs +120 -0
- package/lib/theme/constants.cjs +1 -0
- package/lib/theme/constants.mjs +4 -0
- package/lib/theme/elevation.cjs +1 -0
- package/lib/theme/elevation.mjs +10 -0
- package/lib/theme/hooks/useTheme/index.cjs +1 -0
- package/lib/theme/hooks/useTheme/index.d.ts +2 -0
- package/lib/theme/hooks/useTheme/index.mjs +5 -0
- package/lib/theme/palette/componentsColors/componentsColors.cjs +1 -0
- package/lib/theme/palette/componentsColors/componentsColors.d.ts +5 -0
- package/lib/theme/palette/componentsColors/componentsColors.mjs +7 -0
- package/lib/theme/palette/componentsColors/linkColors/linkColors.cjs +1 -0
- package/lib/theme/palette/componentsColors/linkColors/linkColors.mjs +9 -0
- package/lib/theme/palette/palette.cjs +1 -0
- package/lib/theme/palette/palette.d.ts +2 -0
- package/lib/theme/palette/palette.mjs +125 -0
- package/lib/theme/palette/types.d.ts +44 -0
- package/lib/theme/shape.cjs +1 -0
- package/lib/theme/shape.mjs +8 -0
- package/lib/theme/types.d.ts +19 -0
- package/lib/theme/typography.cjs +1 -0
- package/lib/theme/typography.d.ts +3 -0
- package/lib/theme/typography.mjs +95 -0
- package/package.json +19 -10
- package/.storybook/main.ts +0 -26
- package/.storybook/preview.ts +0 -14
- package/.turbo/turbo-build.log +0 -26
- package/.turbo/turbo-type$colon$check.log +0 -5
- package/CHANGELOG.md +0 -13
- package/dist/components/Accordion/Accordion.d.ts +0 -39
- package/dist/components/Accordion/styles.d.ts +0 -21
- package/dist/components/ActionCell/ActionCell.d.ts +0 -24
- package/dist/components/ActionCell/MainAction/MainAction.d.ts +0 -13
- package/dist/components/ActionCell/SecondaryAction/SecondaryActions.d.ts +0 -13
- package/dist/components/ActionCell/styles.d.ts +0 -1
- package/dist/components/ActionCell/types.d.ts +0 -66
- package/dist/components/ActionCell/useLogic/useLogic.d.ts +0 -11
- package/dist/components/AsyncAutocomplete/AsyncAutocomplete.d.ts +0 -61
- package/dist/components/AsyncAutocomplete/useLogic/useLogic.d.ts +0 -12
- package/dist/components/Autocomplete/Autocomplete.d.ts +0 -47
- package/dist/components/Autocomplete/styles.d.ts +0 -7
- package/dist/components/Autocomplete/useLogic/useLogic.d.ts +0 -15
- package/dist/components/Badge/Badge.d.ts +0 -18
- package/dist/components/Badge/styles.d.ts +0 -8
- package/dist/components/BottomDrawer/BottomDrawer.d.ts +0 -15
- package/dist/components/BottomDrawer/styles.d.ts +0 -20
- package/dist/components/Button/Button.d.ts +0 -35
- package/dist/components/Button/styles.d.ts +0 -5
- package/dist/components/Button/types.d.ts +0 -19
- package/dist/components/Button/useLogic/useLogic.d.ts +0 -5
- package/dist/components/Checkbox/Checkbox.d.ts +0 -9
- package/dist/components/Checkbox/icons.d.ts +0 -4
- package/dist/components/Checkbox/styles.d.ts +0 -5
- package/dist/components/CheckboxField/CheckboxField.d.ts +0 -24
- package/dist/components/CheckboxField/styles.d.ts +0 -8
- package/dist/components/Chevron/Chevron.d.ts +0 -7
- package/dist/components/Chevron/styles.d.ts +0 -5
- package/dist/components/CircularProgress/CircularProgress.d.ts +0 -19
- package/dist/components/CircularProgress/useLogic/useLogic.d.ts +0 -6
- package/dist/components/Collapse/Collapse.d.ts +0 -4
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +0 -91
- package/dist/components/ConfirmAction/ConfirmAction.d.ts +0 -38
- package/dist/components/ConfirmAction/styles.d.ts +0 -16
- package/dist/components/ConfirmAction/useLogic/useLogic.d.ts +0 -22
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +0 -37
- package/dist/components/ConfirmDialog/styles.d.ts +0 -9
- package/dist/components/ConfirmDialog/useLogic/useLogic.d.ts +0 -10
- package/dist/components/Container/Container.d.ts +0 -8
- package/dist/components/Container/styles.d.ts +0 -24
- package/dist/components/ContentState/ContentState.d.ts +0 -36
- package/dist/components/ContentState/styles.d.ts +0 -1
- package/dist/components/ContentState/types.d.ts +0 -29
- package/dist/components/CopyTypography/CopyTypography.d.ts +0 -17
- package/dist/components/CopyTypography/styles.d.ts +0 -17
- package/dist/components/CopyTypography/useLogic/useLogic.d.ts +0 -10
- package/dist/components/DataGrid/Body/Body.d.ts +0 -99
- package/dist/components/DataGrid/Body/styles.d.ts +0 -4
- package/dist/components/DataGrid/Body/useLogic/useLogic.d.ts +0 -11
- package/dist/components/DataGrid/Cell/Cell.d.ts +0 -26
- package/dist/components/DataGrid/Cell/styles.d.ts +0 -8
- package/dist/components/DataGrid/Cell/useLogic/useLogic.d.ts +0 -8
- package/dist/components/DataGrid/DataGrid.d.ts +0 -154
- package/dist/components/DataGrid/DataGridContext/DataGridContext.d.ts +0 -7
- package/dist/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +0 -6
- package/dist/components/DataGrid/Head/Head.d.ts +0 -37
- package/dist/components/DataGrid/Head/styles.d.ts +0 -4
- package/dist/components/DataGrid/Head/useLogic/useLogic.d.ts +0 -12
- package/dist/components/DataGrid/HeadCell/HeadCell.d.ts +0 -18
- package/dist/components/DataGrid/HeadCell/styles.d.ts +0 -22
- package/dist/components/DataGrid/HeadCell/useLogic/useLogic.d.ts +0 -10
- package/dist/components/DataGrid/Loader/styles.d.ts +0 -4
- package/dist/components/DataGrid/NoData/NoData.d.ts +0 -34
- package/dist/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +0 -55
- package/dist/components/DataGrid/Row/NestedChildren/styles.d.ts +0 -20
- package/dist/components/DataGrid/Row/NestedChildren/useLogic/useLogic.d.ts +0 -18
- package/dist/components/DataGrid/Row/Row.d.ts +0 -91
- package/dist/components/DataGrid/Row/RowContext/RowContext.d.ts +0 -7
- package/dist/components/DataGrid/Row/RowContext/RowProvider/RowProvider.d.ts +0 -6
- package/dist/components/DataGrid/Row/styles.d.ts +0 -31
- package/dist/components/DataGrid/Row/useLogic/useLogic.d.ts +0 -35
- package/dist/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.d.ts +0 -4
- package/dist/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.d.ts +0 -2
- package/dist/components/DataGrid/faker.d.ts +0 -24
- package/dist/components/DataGrid/styles.d.ts +0 -5
- package/dist/components/DataGrid/types.d.ts +0 -91
- package/dist/components/DataGrid/useLogic/useLogic.d.ts +0 -32
- package/dist/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.d.ts +0 -5
- package/dist/components/DataGridActionCell/DataGridActionCell.d.ts +0 -22
- package/dist/components/DataGridActionCell/MainAction/MainAction.d.ts +0 -22
- package/dist/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.d.ts +0 -19
- package/dist/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.d.ts +0 -11
- package/dist/components/DataGridActionCell/SecondaryAction/SecondaryAction.d.ts +0 -22
- package/dist/components/DataGridActionCell/styles.d.ts +0 -1
- package/dist/components/DataGridActionCell/types.d.ts +0 -98
- package/dist/components/DataGridActionCell/useLogic/useLogic.d.ts +0 -10
- package/dist/components/DataGridOld/Body/Body.d.ts +0 -13
- package/dist/components/DataGridOld/Body/styles.d.ts +0 -1
- package/dist/components/DataGridOld/Cell/Cell.d.ts +0 -7
- package/dist/components/DataGridOld/Cell/styles.d.ts +0 -4
- package/dist/components/DataGridOld/DataGridOld.d.ts +0 -20
- package/dist/components/DataGridOld/Head/Head.d.ts +0 -7
- package/dist/components/DataGridOld/Head/styles.d.ts +0 -4
- package/dist/components/DataGridOld/HeadCell/HeadCell.d.ts +0 -5
- package/dist/components/DataGridOld/HeadCell/styles.d.ts +0 -3
- package/dist/components/DataGridOld/Row/Row.d.ts +0 -11
- package/dist/components/DataGridOld/Row/styles.d.ts +0 -5
- package/dist/components/DataGridOld/State/styles.d.ts +0 -1
- package/dist/components/DataGridOld/styles.d.ts +0 -7
- package/dist/components/DataGridOld/types.d.ts +0 -15
- package/dist/components/DataGridPagination/DataGridPagination.d.ts +0 -25
- package/dist/components/DataGridPagination/faker.d.ts +0 -3
- package/dist/components/DataGridPagination/styles.d.ts +0 -16
- package/dist/components/DataGridPagination/useLogic/useLogic.d.ts +0 -10
- package/dist/components/Description/Description.d.ts +0 -34
- package/dist/components/Description/DescriptionContext/DescriptionContext.d.ts +0 -6
- package/dist/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.d.ts +0 -7
- package/dist/components/Description/Name/Name.d.ts +0 -3
- package/dist/components/Description/Name/styles.d.ts +0 -6
- package/dist/components/Description/Value/Value.d.ts +0 -22
- package/dist/components/Description/Value/styles.d.ts +0 -43
- package/dist/components/Description/Value/useLogic/useLogic.d.ts +0 -9
- package/dist/components/Description/styles.d.ts +0 -4
- package/dist/components/Description/useLogic/useLogic.d.ts +0 -9
- package/dist/components/DescriptionList/DescriptionList.d.ts +0 -2
- package/dist/components/DescriptionList/styles.d.ts +0 -22
- package/dist/components/DescriptionList/types.d.ts +0 -32
- package/dist/components/Dialog/Dialog.d.ts +0 -20
- package/dist/components/Dialog/styles.d.ts +0 -5
- package/dist/components/DialogActions/DialogActions.d.ts +0 -4
- package/dist/components/DialogActions/styles.d.ts +0 -6
- package/dist/components/DialogContent/DialogContent.d.ts +0 -4
- package/dist/components/DialogContent/styles.d.ts +0 -2
- package/dist/components/DialogContentText/DialogContentText.d.ts +0 -4
- package/dist/components/DialogContentText/styles.d.ts +0 -1
- package/dist/components/DialogHeader/DialogHeader.d.ts +0 -17
- package/dist/components/DialogHeader/styles.d.ts +0 -18
- package/dist/components/DialogTitle/DialogTitle.d.ts +0 -6
- package/dist/components/Divider/Divider.d.ts +0 -4
- package/dist/components/DropdownButton/DropdownButton.d.ts +0 -9
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +0 -36
- package/dist/components/Filename/Filename.d.ts +0 -21
- package/dist/components/Filename/styles.d.ts +0 -17
- package/dist/components/Filename/useLogic/useLogic.d.ts +0 -16
- package/dist/components/FormControl/FormControl.d.ts +0 -4
- package/dist/components/FormControlLabel/FormControlLabel.d.ts +0 -2
- package/dist/components/FormControlLabel/styles.d.ts +0 -2
- package/dist/components/FormControlLabel/types.d.ts +0 -3
- package/dist/components/FormHelperText/FormHelperText.d.ts +0 -7
- package/dist/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.d.ts +0 -7
- package/dist/components/FormHelperText/FormHelperTextContent/styles.d.ts +0 -9
- package/dist/components/FormLabel/FormLabel.d.ts +0 -4
- package/dist/components/FormLabel/styles.d.ts +0 -1
- package/dist/components/GuidTypography/GuidTypography.d.ts +0 -3
- package/dist/components/IconButton/IconButton.d.ts +0 -9
- package/dist/components/IconButton/styles.d.ts +0 -23
- package/dist/components/IconDropdownButton/IconDropdownButton.d.ts +0 -9
- package/dist/components/Link/Link.d.ts +0 -24
- package/dist/components/Link/styles.d.ts +0 -1
- package/dist/components/List/List.d.ts +0 -4
- package/dist/components/ListItem/ListItem.d.ts +0 -4
- package/dist/components/ListItemButton/ListItemButton.d.ts +0 -21
- package/dist/components/ListItemIcon/ListItemIcon.d.ts +0 -5
- package/dist/components/ListItemIcon/styles.d.ts +0 -1
- package/dist/components/ListItemText/ListItemText.d.ts +0 -4
- package/dist/components/ListSubheader/ListSubheader.d.ts +0 -4
- package/dist/components/Menu/Menu.d.ts +0 -9
- package/dist/components/MenuItem/MenuItem.d.ts +0 -28
- package/dist/components/MenuList/MenuList.d.ts +0 -2
- package/dist/components/MenuList/styles.d.ts +0 -1
- package/dist/components/MenuList/types.d.ts +0 -3
- package/dist/components/NavMenu/Item/Item.d.ts +0 -16
- package/dist/components/NavMenu/Item/ItemButton/ItemButton.d.ts +0 -11
- package/dist/components/NavMenu/Item/ItemButton/styles.d.ts +0 -639
- package/dist/components/NavMenu/Item/List/List.d.ts +0 -13
- package/dist/components/NavMenu/NavMenu.d.ts +0 -15
- package/dist/components/OverflowTypography/OverflowTypography.d.ts +0 -35
- package/dist/components/OverflowTypography/hooks/useOverflowed/useOverflowed.d.ts +0 -5
- package/dist/components/OverflowTypography/styles.d.ts +0 -35
- package/dist/components/OverflowTypography/useLogic/useLogic.d.ts +0 -8
- package/dist/components/Pagination/Pagination.d.ts +0 -2
- package/dist/components/Pagination/types.d.ts +0 -3
- package/dist/components/Paper/Paper.d.ts +0 -14
- package/dist/components/Placeholder/Image/Image.d.ts +0 -21
- package/dist/components/Placeholder/Image/styles.d.ts +0 -4
- package/dist/components/Placeholder/Placeholder.d.ts +0 -45
- package/dist/components/Placeholder/constants.d.ts +0 -14
- package/dist/components/Placeholder/styles.d.ts +0 -35
- package/dist/components/Popover/Popover.d.ts +0 -9
- package/dist/components/Radio/Radio.d.ts +0 -9
- package/dist/components/Radio/styles.d.ts +0 -5
- package/dist/components/RadioField/RadioField.d.ts +0 -25
- package/dist/components/RadioField/styles.d.ts +0 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -30
- package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContext.d.ts +0 -4
- package/dist/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.d.ts +0 -6
- package/dist/components/RadioGroupField/RadioGroupField.d.ts +0 -8
- package/dist/components/SearchField/SearchField.d.ts +0 -3
- package/dist/components/SearchField/styles.d.ts +0 -22
- package/dist/components/Select/Select.d.ts +0 -25
- package/dist/components/Select/styles.d.ts +0 -23
- package/dist/components/Select/useLogic/useLogic.d.ts +0 -10
- package/dist/components/Skeleton/Skeleton.d.ts +0 -14
- package/dist/components/Skeleton/styles.d.ts +0 -1
- package/dist/components/Switch/Switch.d.ts +0 -4
- package/dist/components/Switch/styles.d.ts +0 -1
- package/dist/components/Tab/Tab.d.ts +0 -7
- package/dist/components/Tab/styles.d.ts +0 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -13
- package/dist/components/Tabs/styles.d.ts +0 -2
- package/dist/components/Tag/Tag.d.ts +0 -36
- package/dist/components/Tag/styles.d.ts +0 -27
- package/dist/components/Tag/types.d.ts +0 -5
- package/dist/components/TagBadge/TagBadge.d.ts +0 -23
- package/dist/components/TagBadge/styles.d.ts +0 -5
- package/dist/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.d.ts +0 -15
- package/dist/components/TagsList/Tag/Tag.d.ts +0 -25
- package/dist/components/TagsList/Tag/styles.d.ts +0 -11
- package/dist/components/TagsList/Tag/useLogic/useLogic.d.ts +0 -4
- package/dist/components/TagsList/TagsList.d.ts +0 -34
- package/dist/components/TagsList/styles.d.ts +0 -1
- package/dist/components/TagsList/useLogic/useLogic.d.ts +0 -14
- package/dist/components/TagsList/utils/getKey/getKey.d.ts +0 -2
- package/dist/components/TextArea/TextArea.d.ts +0 -3
- package/dist/components/TextField/TextField.d.ts +0 -28
- package/dist/components/Tooltip/Tooltip.d.ts +0 -16
- package/dist/components/Tooltip/styles.d.ts +0 -7
- package/dist/components/Tooltip/types.d.ts +0 -2
- package/dist/components/Typography/Typography.d.ts +0 -48
- package/dist/components/Typography/hooks/useTypographyColor/useTypographyColor.d.ts +0 -16
- package/dist/components/Typography/types.d.ts +0 -4
- package/dist/components/index.d.ts +0 -62
- package/dist/hooks/useMenu/useMenu.d.ts +0 -21
- package/dist/hooks/usePopover/usePopover.d.ts +0 -11
- package/dist/index.js +0 -1080
- package/dist/index.mjs +0 -1080
- package/dist/theme/baseTheme/baseTheme.d.ts +0 -9
- package/dist/theme/breakpoints.d.ts +0 -2
- package/dist/theme/components/MuiAlert.d.ts +0 -3
- package/dist/theme/components/MuiAutocomplete.d.ts +0 -3
- package/dist/theme/components/MuiButton.d.ts +0 -32
- package/dist/theme/components/MuiButtonBase.d.ts +0 -3
- package/dist/theme/components/MuiCircularProgress.d.ts +0 -4
- package/dist/theme/components/MuiDialog.d.ts +0 -3
- package/dist/theme/components/MuiDialogActions.d.ts +0 -3
- package/dist/theme/components/MuiDialogContent.d.ts +0 -3
- package/dist/theme/components/MuiDialogTitle.d.ts +0 -3
- package/dist/theme/components/MuiDrawer.d.ts +0 -3
- package/dist/theme/components/MuiFormHelperText.d.ts +0 -4
- package/dist/theme/components/MuiFormLabel.d.ts +0 -4
- package/dist/theme/components/MuiInputLabel.d.ts +0 -4
- package/dist/theme/components/MuiLinearProgress.d.ts +0 -4
- package/dist/theme/components/MuiListItemButton.d.ts +0 -3
- package/dist/theme/components/MuiListItemText.d.ts +0 -3
- package/dist/theme/components/MuiMenu.d.ts +0 -4
- package/dist/theme/components/MuiMenuItem.d.ts +0 -4
- package/dist/theme/components/MuiOutlinedInput.d.ts +0 -4
- package/dist/theme/components/MuiPaginationItem.d.ts +0 -3
- package/dist/theme/components/MuiPaper.d.ts +0 -3
- package/dist/theme/components/MuiStep.d.ts +0 -3
- package/dist/theme/components/MuiStepConnector.d.ts +0 -3
- package/dist/theme/components/MuiStepLabel.d.ts +0 -3
- package/dist/theme/components/MuiSwitch.d.ts +0 -3
- package/dist/theme/components/MuiTab.d.ts +0 -3
- package/dist/theme/components/MuiTableCell.d.ts +0 -3
- package/dist/theme/components/MuiTableHead.d.ts +0 -3
- package/dist/theme/components/MuiTableRow.d.ts +0 -3
- package/dist/theme/components/MuiTabs.d.ts +0 -3
- package/dist/theme/components/MuiTextField.d.ts +0 -3
- package/dist/theme/components/MuiToggleButton.d.ts +0 -3
- package/dist/theme/components/MuiToggleButtonGroup.d.ts +0 -3
- package/dist/theme/components/MuiTypography.d.ts +0 -21
- package/dist/theme/components/components.d.ts +0 -21
- package/dist/theme/hooks/useTheme/index.d.ts +0 -2
- package/dist/theme/palette/componentsColors/componentsColors.d.ts +0 -5
- package/dist/theme/palette/palette.d.ts +0 -2
- package/dist/theme/palette/types.d.ts +0 -44
- package/dist/theme/types.d.ts +0 -21
- package/dist/theme/typography.d.ts +0 -153
- package/rslib.config.ts +0 -32
- package/src/components/Accordion/Accordion.stories.tsx +0 -128
- package/src/components/Accordion/Accordion.tsx +0 -80
- package/src/components/Accordion/index.ts +0 -1
- package/src/components/Accordion/styles.ts +0 -30
- package/src/components/ActionCell/ActionCell.stories.tsx +0 -227
- package/src/components/ActionCell/ActionCell.tsx +0 -71
- package/src/components/ActionCell/MainAction/MainAction.tsx +0 -86
- package/src/components/ActionCell/MainAction/index.ts +0 -1
- package/src/components/ActionCell/SecondaryAction/SecondaryActions.tsx +0 -45
- package/src/components/ActionCell/SecondaryAction/index.ts +0 -1
- package/src/components/ActionCell/index.ts +0 -1
- package/src/components/ActionCell/styles.ts +0 -6
- package/src/components/ActionCell/types.ts +0 -89
- package/src/components/ActionCell/useLogic/index.ts +0 -1
- package/src/components/ActionCell/useLogic/useLogic.ts +0 -46
- package/src/components/AsyncAutocomplete/AsyncAutocomplete.stories.tsx +0 -245
- package/src/components/AsyncAutocomplete/AsyncAutocomplete.tsx +0 -139
- package/src/components/AsyncAutocomplete/constants.ts +0 -7
- package/src/components/AsyncAutocomplete/index.ts +0 -1
- package/src/components/AsyncAutocomplete/useLogic/index.ts +0 -1
- package/src/components/AsyncAutocomplete/useLogic/useLogic.ts +0 -117
- package/src/components/Autocomplete/Autocomplete.stories.tsx +0 -276
- package/src/components/Autocomplete/Autocomplete.tsx +0 -301
- package/src/components/Autocomplete/constants.ts +0 -3
- package/src/components/Autocomplete/enums.ts +0 -4
- package/src/components/Autocomplete/index.ts +0 -1
- package/src/components/Autocomplete/styles.ts +0 -10
- package/src/components/Autocomplete/useLogic/index.ts +0 -1
- package/src/components/Autocomplete/useLogic/useLogic.ts +0 -88
- package/src/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.ts +0 -8
- package/src/components/Autocomplete/useLogic/utils/checkIsInputEmpty/index.ts +0 -1
- package/src/components/Autocomplete/useLogic/utils/index.ts +0 -1
- package/src/components/Badge/Badge.stories.tsx +0 -190
- package/src/components/Badge/Badge.tsx +0 -43
- package/src/components/Badge/index.ts +0 -3
- package/src/components/Badge/styles.ts +0 -104
- package/src/components/Badge/types.ts +0 -9
- package/src/components/BottomDrawer/BottomDrawer.stories.tsx +0 -105
- package/src/components/BottomDrawer/BottomDrawer.tsx +0 -52
- package/src/components/BottomDrawer/constants.ts +0 -3
- package/src/components/BottomDrawer/index.ts +0 -1
- package/src/components/BottomDrawer/styles.ts +0 -44
- package/src/components/Button/Button.stories.tsx +0 -204
- package/src/components/Button/Button.tsx +0 -84
- package/src/components/Button/constants.ts +0 -1
- package/src/components/Button/enums.ts +0 -26
- package/src/components/Button/index.ts +0 -7
- package/src/components/Button/styles.ts +0 -19
- package/src/components/Button/types.ts +0 -30
- package/src/components/Button/useLogic/index.ts +0 -1
- package/src/components/Button/useLogic/useLogic.ts +0 -19
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -152
- package/src/components/Checkbox/Checkbox.tsx +0 -39
- package/src/components/Checkbox/icons.tsx +0 -41
- package/src/components/Checkbox/index.ts +0 -1
- package/src/components/Checkbox/styles.ts +0 -70
- package/src/components/CheckboxField/CheckboxField.stories.tsx +0 -51
- package/src/components/CheckboxField/CheckboxField.tsx +0 -64
- package/src/components/CheckboxField/index.ts +0 -1
- package/src/components/CheckboxField/styles.ts +0 -17
- package/src/components/Chevron/Chevron.stories.tsx +0 -36
- package/src/components/Chevron/Chevron.tsx +0 -12
- package/src/components/Chevron/index.ts +0 -1
- package/src/components/Chevron/styles.tsx +0 -17
- package/src/components/CircularProgress/CircularProgress.stories.tsx +0 -53
- package/src/components/CircularProgress/CircularProgress.tsx +0 -42
- package/src/components/CircularProgress/constants.ts +0 -9
- package/src/components/CircularProgress/index.ts +0 -1
- package/src/components/CircularProgress/useLogic/index.ts +0 -1
- package/src/components/CircularProgress/useLogic/useLogic.ts +0 -9
- package/src/components/Collapse/Collapse.stories.tsx +0 -69
- package/src/components/Collapse/Collapse.tsx +0 -10
- package/src/components/Collapse/index.ts +0 -1
- package/src/components/ConfigProvider/ConfigProvider.tsx +0 -165
- package/src/components/ConfigProvider/index.ts +0 -1
- package/src/components/ConfirmAction/ConfirmAction.stories.tsx +0 -116
- package/src/components/ConfirmAction/ConfirmAction.tsx +0 -97
- package/src/components/ConfirmAction/constants.ts +0 -9
- package/src/components/ConfirmAction/index.ts +0 -1
- package/src/components/ConfirmAction/styles.ts +0 -17
- package/src/components/ConfirmAction/useLogic/index.ts +0 -1
- package/src/components/ConfirmAction/useLogic/useLogic.ts +0 -46
- package/src/components/ConfirmDialog/ConfirmDialog.stories.tsx +0 -69
- package/src/components/ConfirmDialog/ConfirmDialog.tsx +0 -83
- package/src/components/ConfirmDialog/index.ts +0 -1
- package/src/components/ConfirmDialog/styles.ts +0 -8
- package/src/components/ConfirmDialog/useLogic/index.ts +0 -1
- package/src/components/ConfirmDialog/useLogic/useLogic.ts +0 -23
- package/src/components/Container/Container.tsx +0 -15
- package/src/components/Container/index.ts +0 -1
- package/src/components/Container/styles.ts +0 -76
- package/src/components/ContentState/ContentState.stories.tsx +0 -244
- package/src/components/ContentState/ContentState.tsx +0 -90
- package/src/components/ContentState/index.ts +0 -3
- package/src/components/ContentState/styles.ts +0 -11
- package/src/components/ContentState/types.ts +0 -30
- package/src/components/CopyTypography/CopyTypography.stories.tsx +0 -94
- package/src/components/CopyTypography/CopyTypography.tsx +0 -55
- package/src/components/CopyTypography/enums.ts +0 -5
- package/src/components/CopyTypography/index.ts +0 -1
- package/src/components/CopyTypography/styles.ts +0 -28
- package/src/components/CopyTypography/useLogic/index.ts +0 -1
- package/src/components/CopyTypography/useLogic/useLogic.ts +0 -38
- package/src/components/DataGrid/Body/Body.tsx +0 -185
- package/src/components/DataGrid/Body/index.ts +0 -1
- package/src/components/DataGrid/Body/styles.tsx +0 -16
- package/src/components/DataGrid/Body/useLogic/index.ts +0 -1
- package/src/components/DataGrid/Body/useLogic/useLogic.ts +0 -20
- package/src/components/DataGrid/Cell/Cell.tsx +0 -63
- package/src/components/DataGrid/Cell/index.ts +0 -1
- package/src/components/DataGrid/Cell/styles.ts +0 -26
- package/src/components/DataGrid/Cell/useLogic/index.ts +0 -1
- package/src/components/DataGrid/Cell/useLogic/useLogic.ts +0 -35
- package/src/components/DataGrid/DataGrid.stories.tsx +0 -1883
- package/src/components/DataGrid/DataGrid.tsx +0 -307
- package/src/components/DataGrid/DataGridContext/DataGridContext.ts +0 -15
- package/src/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.tsx +0 -83
- package/src/components/DataGrid/DataGridContext/DataGridProvider/index.ts +0 -1
- package/src/components/DataGrid/DataGridContext/index.ts +0 -3
- package/src/components/DataGrid/Head/Head.tsx +0 -110
- package/src/components/DataGrid/Head/index.ts +0 -1
- package/src/components/DataGrid/Head/styles.ts +0 -21
- package/src/components/DataGrid/Head/useLogic/index.ts +0 -1
- package/src/components/DataGrid/Head/useLogic/useLogic.tsx +0 -65
- package/src/components/DataGrid/HeadCell/HeadCell.tsx +0 -68
- package/src/components/DataGrid/HeadCell/index.ts +0 -1
- package/src/components/DataGrid/HeadCell/styles.ts +0 -39
- package/src/components/DataGrid/HeadCell/useLogic/index.ts +0 -1
- package/src/components/DataGrid/HeadCell/useLogic/useLogic.ts +0 -29
- package/src/components/DataGrid/Loader/Loader.tsx +0 -26
- package/src/components/DataGrid/Loader/index.ts +0 -1
- package/src/components/DataGrid/Loader/styles.ts +0 -26
- package/src/components/DataGrid/NoData/NoData.tsx +0 -65
- package/src/components/DataGrid/NoData/index.ts +0 -1
- package/src/components/DataGrid/Row/NestedChildren/NestedChildren.tsx +0 -158
- package/src/components/DataGrid/Row/NestedChildren/index.ts +0 -1
- package/src/components/DataGrid/Row/NestedChildren/styles.ts +0 -80
- package/src/components/DataGrid/Row/NestedChildren/useLogic/index.ts +0 -1
- package/src/components/DataGrid/Row/NestedChildren/useLogic/useLogic.ts +0 -44
- package/src/components/DataGrid/Row/Row.tsx +0 -307
- package/src/components/DataGrid/Row/RowContext/RowContext.ts +0 -14
- package/src/components/DataGrid/Row/RowContext/RowProvider/RowProvider.tsx +0 -35
- package/src/components/DataGrid/Row/RowContext/RowProvider/index.ts +0 -1
- package/src/components/DataGrid/Row/RowContext/index.ts +0 -3
- package/src/components/DataGrid/Row/constants.ts +0 -3
- package/src/components/DataGrid/Row/index.ts +0 -3
- package/src/components/DataGrid/Row/styles.ts +0 -124
- package/src/components/DataGrid/Row/useLogic/index.ts +0 -1
- package/src/components/DataGrid/Row/useLogic/useLogic.ts +0 -144
- package/src/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.ts +0 -20
- package/src/components/DataGrid/Row/useLogic/utils/getColumnsMap/index.ts +0 -1
- package/src/components/DataGrid/Row/useLogic/utils/index.ts +0 -3
- package/src/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/index.ts +0 -1
- package/src/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.ts +0 -34
- package/src/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.ts +0 -15
- package/src/components/DataGrid/Row/utils/checkIsDisabled/index.ts +0 -1
- package/src/components/DataGrid/Row/utils/index.ts +0 -1
- package/src/components/DataGrid/constants.ts +0 -11
- package/src/components/DataGrid/enums.ts +0 -9
- package/src/components/DataGrid/faker.ts +0 -116
- package/src/components/DataGrid/index.ts +0 -11
- package/src/components/DataGrid/styles.ts +0 -31
- package/src/components/DataGrid/types.ts +0 -118
- package/src/components/DataGrid/useLogic/index.ts +0 -1
- package/src/components/DataGrid/useLogic/useLogic.tsx +0 -139
- package/src/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.ts +0 -7
- package/src/components/DataGrid/useLogic/utils/getGridTemplateColumns/index.ts +0 -1
- package/src/components/DataGrid/useLogic/utils/index.ts +0 -1
- package/src/components/DataGrid/utils/alignToJustifyContent/alignToJustifyContent.ts +0 -20
- package/src/components/DataGrid/utils/alignToJustifyContent/constants.ts +0 -7
- package/src/components/DataGrid/utils/alignToJustifyContent/index.ts +0 -1
- package/src/components/DataGrid/utils/index.ts +0 -1
- package/src/components/DataGridActionCell/DataGridActionCell.stories.tsx +0 -272
- package/src/components/DataGridActionCell/DataGridActionCell.tsx +0 -70
- package/src/components/DataGridActionCell/MainAction/MainAction.tsx +0 -76
- package/src/components/DataGridActionCell/MainAction/MainIconButton/MainIconButton.tsx +0 -88
- package/src/components/DataGridActionCell/MainAction/MainIconButton/index.ts +0 -1
- package/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.ts +0 -1
- package/src/components/DataGridActionCell/MainAction/MainIconButton/useLogic/useLogic.ts +0 -31
- package/src/components/DataGridActionCell/MainAction/index.ts +0 -1
- package/src/components/DataGridActionCell/SecondaryAction/SecondaryAction.tsx +0 -54
- package/src/components/DataGridActionCell/SecondaryAction/index.ts +0 -1
- package/src/components/DataGridActionCell/index.ts +0 -1
- package/src/components/DataGridActionCell/styles.ts +0 -6
- package/src/components/DataGridActionCell/types.ts +0 -123
- package/src/components/DataGridActionCell/useLogic/index.ts +0 -1
- package/src/components/DataGridActionCell/useLogic/useLogic.ts +0 -53
- package/src/components/DataGridOld/Body/Body.tsx +0 -56
- package/src/components/DataGridOld/Body/index.ts +0 -1
- package/src/components/DataGridOld/Body/styles.ts +0 -12
- package/src/components/DataGridOld/Cell/Cell.tsx +0 -41
- package/src/components/DataGridOld/Cell/index.ts +0 -1
- package/src/components/DataGridOld/Cell/styles.ts +0 -25
- package/src/components/DataGridOld/DataGridOld.tsx +0 -65
- package/src/components/DataGridOld/Head/Head.tsx +0 -31
- package/src/components/DataGridOld/Head/index.ts +0 -1
- package/src/components/DataGridOld/Head/styles.ts +0 -11
- package/src/components/DataGridOld/HeadCell/HeadCell.tsx +0 -14
- package/src/components/DataGridOld/HeadCell/index.ts +0 -1
- package/src/components/DataGridOld/HeadCell/styles.ts +0 -29
- package/src/components/DataGridOld/Row/Row.tsx +0 -53
- package/src/components/DataGridOld/Row/index.ts +0 -1
- package/src/components/DataGridOld/Row/styles.ts +0 -24
- package/src/components/DataGridOld/State/State.tsx +0 -32
- package/src/components/DataGridOld/State/index.ts +0 -1
- package/src/components/DataGridOld/State/styles.ts +0 -25
- package/src/components/DataGridOld/constants.ts +0 -1
- package/src/components/DataGridOld/index.ts +0 -2
- package/src/components/DataGridOld/styles.ts +0 -24
- package/src/components/DataGridOld/types.ts +0 -18
- package/src/components/DataGridPagination/DataGridPagination.stories.tsx +0 -207
- package/src/components/DataGridPagination/DataGridPagination.tsx +0 -102
- package/src/components/DataGridPagination/constants.ts +0 -3
- package/src/components/DataGridPagination/faker.ts +0 -36
- package/src/components/DataGridPagination/index.ts +0 -1
- package/src/components/DataGridPagination/styles.ts +0 -26
- package/src/components/DataGridPagination/useLogic/index.ts +0 -1
- package/src/components/DataGridPagination/useLogic/useLogic.ts +0 -53
- package/src/components/Description/Description.stories.tsx +0 -328
- package/src/components/Description/Description.tsx +0 -73
- package/src/components/Description/DescriptionContext/DescriptionContext.tsx +0 -15
- package/src/components/Description/DescriptionContext/DescriptionContextProvider/DescriptionContextProvider.tsx +0 -21
- package/src/components/Description/DescriptionContext/DescriptionContextProvider/index.ts +0 -1
- package/src/components/Description/DescriptionContext/index.ts +0 -3
- package/src/components/Description/Name/Name.tsx +0 -28
- package/src/components/Description/Name/index.ts +0 -1
- package/src/components/Description/Name/styles.ts +0 -29
- package/src/components/Description/Value/Value.tsx +0 -73
- package/src/components/Description/Value/index.ts +0 -1
- package/src/components/Description/Value/styles.ts +0 -62
- package/src/components/Description/Value/useLogic/index.ts +0 -1
- package/src/components/Description/Value/useLogic/useLogic.ts +0 -18
- package/src/components/Description/constants.ts +0 -5
- package/src/components/Description/index.ts +0 -3
- package/src/components/Description/styles.ts +0 -27
- package/src/components/Description/useLogic/index.ts +0 -1
- package/src/components/Description/useLogic/useLogic.ts +0 -21
- package/src/components/DescriptionList/DescriptionList.stories.tsx +0 -476
- package/src/components/DescriptionList/DescriptionList.tsx +0 -108
- package/src/components/DescriptionList/index.ts +0 -3
- package/src/components/DescriptionList/styles.ts +0 -67
- package/src/components/DescriptionList/types.ts +0 -46
- package/src/components/DescriptionList/utils/getTooltipProps/getTooltipProps.ts +0 -3
- package/src/components/DescriptionList/utils/getTooltipProps/index.ts +0 -1
- package/src/components/DescriptionList/utils/index.ts +0 -1
- package/src/components/Dialog/Dialog.stories.tsx +0 -430
- package/src/components/Dialog/Dialog.tsx +0 -68
- package/src/components/Dialog/constants.ts +0 -7
- package/src/components/Dialog/index.ts +0 -1
- package/src/components/Dialog/styles.ts +0 -26
- package/src/components/DialogActions/DialogActions.stories.tsx +0 -112
- package/src/components/DialogActions/DialogActions.tsx +0 -19
- package/src/components/DialogActions/index.ts +0 -1
- package/src/components/DialogActions/styles.ts +0 -17
- package/src/components/DialogContent/DialogContent.stories.tsx +0 -68
- package/src/components/DialogContent/DialogContent.tsx +0 -11
- package/src/components/DialogContent/index.ts +0 -1
- package/src/components/DialogContent/styles.ts +0 -13
- package/src/components/DialogContentText/DialogContentText.stories.tsx +0 -65
- package/src/components/DialogContentText/DialogContentText.tsx +0 -12
- package/src/components/DialogContentText/index.ts +0 -1
- package/src/components/DialogContentText/styles.ts +0 -8
- package/src/components/DialogHeader/DialogHeader.stories.tsx +0 -108
- package/src/components/DialogHeader/DialogHeader.tsx +0 -58
- package/src/components/DialogHeader/index.ts +0 -1
- package/src/components/DialogHeader/styles.ts +0 -63
- package/src/components/DialogTitle/DialogTitle.tsx +0 -43
- package/src/components/DialogTitle/index.ts +0 -1
- package/src/components/Divider/Divider.stories.tsx +0 -58
- package/src/components/Divider/Divider.tsx +0 -10
- package/src/components/Divider/index.ts +0 -1
- package/src/components/DropdownButton/DropdownButton.stories.tsx +0 -191
- package/src/components/DropdownButton/DropdownButton.tsx +0 -46
- package/src/components/DropdownButton/index.ts +0 -1
- package/src/components/ErrorBoundary/ErrorBoundary.stories.tsx +0 -58
- package/src/components/ErrorBoundary/ErrorBoundary.stubs.tsx +0 -67
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +0 -73
- package/src/components/ErrorBoundary/constants.ts +0 -15
- package/src/components/ErrorBoundary/enums.ts +0 -9
- package/src/components/ErrorBoundary/index.ts +0 -1
- package/src/components/Filename/Filename.stories.tsx +0 -244
- package/src/components/Filename/Filename.tsx +0 -57
- package/src/components/Filename/index.ts +0 -1
- package/src/components/Filename/styles.ts +0 -18
- package/src/components/Filename/useLogic/index.ts +0 -1
- package/src/components/Filename/useLogic/useLogic.ts +0 -36
- package/src/components/Filename/useLogic/utils/findExtension/constants.ts +0 -16
- package/src/components/Filename/useLogic/utils/findExtension/findExtension.ts +0 -17
- package/src/components/Filename/useLogic/utils/findExtension/index.ts +0 -1
- package/src/components/Filename/useLogic/utils/index.ts +0 -1
- package/src/components/Filename/useLogic/utils/truncateString/constants.ts +0 -1
- package/src/components/Filename/useLogic/utils/truncateString/index.ts +0 -1
- package/src/components/Filename/useLogic/utils/truncateString/truncateString.ts +0 -24
- package/src/components/FormControl/FormControl.tsx +0 -12
- package/src/components/FormControl/index.tsx +0 -1
- package/src/components/FormControlLabel/FormControlLabel.tsx +0 -6
- package/src/components/FormControlLabel/index.ts +0 -3
- package/src/components/FormControlLabel/styles.ts +0 -14
- package/src/components/FormControlLabel/types.ts +0 -6
- package/src/components/FormHelperText/FormHelperText.tsx +0 -29
- package/src/components/FormHelperText/FormHelperTextContent/FormHelperTextContent.tsx +0 -38
- package/src/components/FormHelperText/FormHelperTextContent/index.ts +0 -1
- package/src/components/FormHelperText/FormHelperTextContent/styles.ts +0 -44
- package/src/components/FormHelperText/index.ts +0 -3
- package/src/components/FormLabel/FormLabel.tsx +0 -11
- package/src/components/FormLabel/index.ts +0 -1
- package/src/components/FormLabel/styles.ts +0 -6
- package/src/components/GuidTypography/GuidTypography.stories.tsx +0 -58
- package/src/components/GuidTypography/GuidTypography.tsx +0 -10
- package/src/components/GuidTypography/index.ts +0 -1
- package/src/components/IconButton/IconButton.stories.tsx +0 -236
- package/src/components/IconButton/IconButton.tsx +0 -52
- package/src/components/IconButton/index.ts +0 -1
- package/src/components/IconButton/styles.ts +0 -52
- package/src/components/IconDropdownButton/IconDropdownButton.stories.tsx +0 -197
- package/src/components/IconDropdownButton/IconDropdownButton.tsx +0 -38
- package/src/components/IconDropdownButton/index.ts +0 -1
- package/src/components/InternalErrorPlaceholder/InternalErrorPlaceholder.stories.tsx +0 -34
- package/src/components/InternalErrorPlaceholder/InternalErrorPlaceholder.tsx +0 -39
- package/src/components/InternalErrorPlaceholder/index.ts +0 -1
- package/src/components/Link/Link.stories.tsx +0 -89
- package/src/components/Link/Link.tsx +0 -44
- package/src/components/Link/index.ts +0 -1
- package/src/components/Link/styles.ts +0 -37
- package/src/components/List/List.stories.tsx +0 -255
- package/src/components/List/List.tsx +0 -9
- package/src/components/List/index.ts +0 -1
- package/src/components/ListItem/ListItem.stories.tsx +0 -85
- package/src/components/ListItem/ListItem.tsx +0 -12
- package/src/components/ListItem/index.ts +0 -1
- package/src/components/ListItemButton/ListItemButton.stories.tsx +0 -113
- package/src/components/ListItemButton/ListItemButton.tsx +0 -68
- package/src/components/ListItemButton/constants.ts +0 -5
- package/src/components/ListItemButton/index.ts +0 -1
- package/src/components/ListItemIcon/ListItemIcon.stories.tsx +0 -42
- package/src/components/ListItemIcon/ListItemIcon.tsx +0 -14
- package/src/components/ListItemIcon/index.ts +0 -1
- package/src/components/ListItemIcon/styles.ts +0 -5
- package/src/components/ListItemText/ListItemText.stories.tsx +0 -40
- package/src/components/ListItemText/ListItemText.tsx +0 -11
- package/src/components/ListItemText/index.ts +0 -1
- package/src/components/ListSubheader/ListSubheader.stories.tsx +0 -43
- package/src/components/ListSubheader/ListSubheader.tsx +0 -12
- package/src/components/ListSubheader/index.ts +0 -1
- package/src/components/Menu/Menu.stories.tsx +0 -109
- package/src/components/Menu/Menu.tsx +0 -38
- package/src/components/Menu/index.ts +0 -1
- package/src/components/MenuItem/MenuItem.stories.tsx +0 -111
- package/src/components/MenuItem/MenuItem.tsx +0 -67
- package/src/components/MenuItem/index.ts +0 -1
- package/src/components/MenuList/MenuList.stories.tsx +0 -87
- package/src/components/MenuList/MenuList.tsx +0 -6
- package/src/components/MenuList/index.ts +0 -3
- package/src/components/MenuList/styles.ts +0 -10
- package/src/components/MenuList/types.ts +0 -6
- package/src/components/NavMenu/Item/Item.tsx +0 -87
- package/src/components/NavMenu/Item/ItemButton/ItemButton.tsx +0 -75
- package/src/components/NavMenu/Item/ItemButton/index.ts +0 -1
- package/src/components/NavMenu/Item/ItemButton/styles.ts +0 -143
- package/src/components/NavMenu/Item/List/List.tsx +0 -43
- package/src/components/NavMenu/Item/List/index.ts +0 -1
- package/src/components/NavMenu/Item/index.ts +0 -1
- package/src/components/NavMenu/NavMenu.stories.tsx +0 -117
- package/src/components/NavMenu/NavMenu.tsx +0 -32
- package/src/components/NavMenu/index.ts +0 -1
- package/src/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.stories.tsx +0 -32
- package/src/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.tsx +0 -30
- package/src/components/OutdatedReleasePlaceholder/index.ts +0 -1
- package/src/components/OverflowTypography/OverflowTypography.stories.tsx +0 -105
- package/src/components/OverflowTypography/OverflowTypography.tsx +0 -106
- package/src/components/OverflowTypography/hooks/index.ts +0 -1
- package/src/components/OverflowTypography/hooks/useOverflowed/index.ts +0 -1
- package/src/components/OverflowTypography/hooks/useOverflowed/useOverflowed.ts +0 -58
- package/src/components/OverflowTypography/index.ts +0 -1
- package/src/components/OverflowTypography/styles.ts +0 -39
- package/src/components/OverflowTypography/useLogic/index.ts +0 -1
- package/src/components/OverflowTypography/useLogic/useLogic.ts +0 -29
- package/src/components/OverflowTypography/utils/index.ts +0 -1
- package/src/components/OverflowTypography/utils/truncateString/index.ts +0 -1
- package/src/components/OverflowTypography/utils/truncateString/truncateString.ts +0 -9
- package/src/components/Pagination/Pagination.stories.tsx +0 -56
- package/src/components/Pagination/Pagination.tsx +0 -7
- package/src/components/Pagination/index.ts +0 -3
- package/src/components/Pagination/types.ts +0 -13
- package/src/components/Paper/Paper.tsx +0 -25
- package/src/components/Paper/index.ts +0 -1
- package/src/components/Placeholder/Image/Image.tsx +0 -16
- package/src/components/Placeholder/Image/index.ts +0 -1
- package/src/components/Placeholder/Image/styles.ts +0 -24
- package/src/components/Placeholder/Placeholder.stories.tsx +0 -205
- package/src/components/Placeholder/Placeholder.tsx +0 -108
- package/src/components/Placeholder/constants.ts +0 -31
- package/src/components/Placeholder/index.ts +0 -5
- package/src/components/Placeholder/styles.ts +0 -94
- package/src/components/Placeholder/types.ts +0 -1
- package/src/components/Popover/Popover.stories.tsx +0 -211
- package/src/components/Popover/Popover.tsx +0 -39
- package/src/components/Popover/index.ts +0 -1
- package/src/components/ProgressBar/ProgressBar.stories.tsx +0 -31
- package/src/components/ProgressBar/ProgressBar.tsx +0 -26
- package/src/components/ProgressBar/index.ts +0 -1
- package/src/components/Radio/Icon/Icon.tsx +0 -37
- package/src/components/Radio/Icon/index.ts +0 -1
- package/src/components/Radio/Radio.stories.tsx +0 -32
- package/src/components/Radio/Radio.tsx +0 -24
- package/src/components/Radio/constants.ts +0 -9
- package/src/components/Radio/index.ts +0 -1
- package/src/components/Radio/styles.ts +0 -70
- package/src/components/RadioField/RadioField.stories.tsx +0 -74
- package/src/components/RadioField/RadioField.tsx +0 -55
- package/src/components/RadioField/index.ts +0 -1
- package/src/components/RadioField/styles.ts +0 -10
- package/src/components/RadioGroup/RadioGroup.stories.tsx +0 -60
- package/src/components/RadioGroup/RadioGroup.tsx +0 -79
- package/src/components/RadioGroup/RadioGroupContext/RadioGroupContext.ts +0 -9
- package/src/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/RadioGroupContextProvider.tsx +0 -18
- package/src/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.ts +0 -1
- package/src/components/RadioGroup/RadioGroupContext/index.ts +0 -3
- package/src/components/RadioGroup/index.ts +0 -3
- package/src/components/RadioGroupField/RadioGroupField.tsx +0 -17
- package/src/components/RadioGroupField/index.ts +0 -1
- package/src/components/SearchField/SearchField.tsx +0 -93
- package/src/components/SearchField/index.ts +0 -1
- package/src/components/SearchField/styles.ts +0 -38
- package/src/components/Select/Select.stories.tsx +0 -320
- package/src/components/Select/Select.tsx +0 -204
- package/src/components/Select/constants.ts +0 -1
- package/src/components/Select/index.ts +0 -1
- package/src/components/Select/styles.ts +0 -60
- package/src/components/Select/useLogic/index.ts +0 -1
- package/src/components/Select/useLogic/useLogic.ts +0 -53
- package/src/components/Skeleton/Skeleton.stories.tsx +0 -78
- package/src/components/Skeleton/Skeleton.tsx +0 -31
- package/src/components/Skeleton/index.ts +0 -1
- package/src/components/Skeleton/styles.ts +0 -16
- package/src/components/Switch/Switch.stories.tsx +0 -179
- package/src/components/Switch/Switch.tsx +0 -14
- package/src/components/Switch/index.ts +0 -1
- package/src/components/Switch/styles.ts +0 -14
- package/src/components/Tab/Tab.stories.tsx +0 -53
- package/src/components/Tab/Tab.tsx +0 -20
- package/src/components/Tab/index.ts +0 -1
- package/src/components/Tab/styles.ts +0 -22
- package/src/components/Tabs/Tabs.stories.tsx +0 -74
- package/src/components/Tabs/Tabs.tsx +0 -27
- package/src/components/Tabs/index.ts +0 -1
- package/src/components/Tabs/styles.ts +0 -20
- package/src/components/Tag/Tag.stories.tsx +0 -592
- package/src/components/Tag/Tag.tsx +0 -102
- package/src/components/Tag/enums.ts +0 -20
- package/src/components/Tag/index.ts +0 -3
- package/src/components/Tag/styles.ts +0 -332
- package/src/components/Tag/types.ts +0 -9
- package/src/components/TagBadge/TagBadge.stories.tsx +0 -231
- package/src/components/TagBadge/TagBadge.tsx +0 -47
- package/src/components/TagBadge/index.ts +0 -1
- package/src/components/TagBadge/styles.ts +0 -14
- package/src/components/TagBadge/utils/getCheckableTagBadgeBgColor/getCheckableTagBadgeBgColor.ts +0 -31
- package/src/components/TagBadge/utils/getCheckableTagBadgeBgColor/index.ts +0 -1
- package/src/components/TagBadge/utils/index.ts +0 -1
- package/src/components/TagsList/Tag/Tag.tsx +0 -49
- package/src/components/TagsList/Tag/index.ts +0 -1
- package/src/components/TagsList/Tag/styles.ts +0 -19
- package/src/components/TagsList/Tag/useLogic/index.ts +0 -1
- package/src/components/TagsList/Tag/useLogic/useLogic.ts +0 -11
- package/src/components/TagsList/TagsList.tsx +0 -80
- package/src/components/TagsList/index.ts +0 -3
- package/src/components/TagsList/styles.ts +0 -6
- package/src/components/TagsList/types.ts +0 -1
- package/src/components/TagsList/useLogic/index.ts +0 -1
- package/src/components/TagsList/useLogic/useLogic.ts +0 -184
- package/src/components/TagsList/utils/getElementByText/getElementByText.ts +0 -21
- package/src/components/TagsList/utils/getElementByText/index.ts +0 -1
- package/src/components/TagsList/utils/getKey/getKey.ts +0 -11
- package/src/components/TagsList/utils/getKey/index.ts +0 -1
- package/src/components/TagsList/utils/index.ts +0 -3
- package/src/components/TextArea/TextArea.stories.tsx +0 -81
- package/src/components/TextArea/TextArea.tsx +0 -12
- package/src/components/TextArea/index.ts +0 -1
- package/src/components/TextField/TextField.stories.tsx +0 -94
- package/src/components/TextField/TextField.tsx +0 -117
- package/src/components/TextField/index.ts +0 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -234
- package/src/components/Tooltip/Tooltip.tsx +0 -48
- package/src/components/Tooltip/constants.ts +0 -4
- package/src/components/Tooltip/index.ts +0 -3
- package/src/components/Tooltip/styles.tsx +0 -65
- package/src/components/Tooltip/types.ts +0 -3
- package/src/components/Typography/Typography.stories.tsx +0 -191
- package/src/components/Typography/Typography.tsx +0 -107
- package/src/components/Typography/enums.ts +0 -14
- package/src/components/Typography/hooks/index.ts +0 -1
- package/src/components/Typography/hooks/useTypographyColor/index.ts +0 -1
- package/src/components/Typography/hooks/useTypographyColor/useTypographyColor.tsx +0 -54
- package/src/components/Typography/index.ts +0 -3
- package/src/components/Typography/styles.ts +0 -9
- package/src/components/Typography/types.ts +0 -30
- package/src/components/index.ts +0 -123
- package/src/components/types.ts +0 -1
- package/src/hooks/index.ts +0 -4
- package/src/hooks/useMenu/index.ts +0 -1
- package/src/hooks/useMenu/useMenu.stories.tsx +0 -31
- package/src/hooks/useMenu/useMenu.ts +0 -45
- package/src/hooks/usePopover/index.ts +0 -1
- package/src/hooks/usePopover/usePopover.ts +0 -27
- package/src/hooks/useToggle/index.ts +0 -1
- package/src/hooks/useToggle/useToggle.ts +0 -76
- package/src/hooks/useViewportType/index.ts +0 -1
- package/src/hooks/useViewportType/useViewportType.stories.tsx +0 -30
- package/src/hooks/useViewportType/useViewportType.ts +0 -13
- package/src/illustrations/certificates-not-found.svg +0 -91
- package/src/illustrations/data-access-disabled.svg +0 -103
- package/src/illustrations/data-access-success.svg +0 -119
- package/src/illustrations/drop-files-in.svg +0 -40
- package/src/illustrations/drop-files-out.svg +0 -43
- package/src/illustrations/error.svg +0 -159
- package/src/illustrations/features.svg +0 -35
- package/src/illustrations/mail.svg +0 -84
- package/src/illustrations/no-data.svg +0 -1
- package/src/illustrations/no-notifications.svg +0 -102
- package/src/illustrations/outdated-release.svg +0 -173
- package/src/illustrations/placeholder.svg +0 -20
- package/src/illustrations/search.svg +0 -38
- package/src/illustrations/sketchpad.svg +0 -114
- package/src/illustrations/technical-support.svg +0 -341
- package/src/theme/baseTheme/baseTheme.ts +0 -49
- package/src/theme/baseTheme/index.ts +0 -1
- package/src/theme/breakpoints.ts +0 -11
- package/src/theme/components/MuiAlert.ts +0 -70
- package/src/theme/components/MuiAutocomplete.ts +0 -94
- package/src/theme/components/MuiButton.ts +0 -418
- package/src/theme/components/MuiButtonBase.ts +0 -16
- package/src/theme/components/MuiCircularProgress.ts +0 -22
- package/src/theme/components/MuiDialog.ts +0 -13
- package/src/theme/components/MuiDialogActions.ts +0 -17
- package/src/theme/components/MuiDialogContent.ts +0 -13
- package/src/theme/components/MuiDialogTitle.ts +0 -24
- package/src/theme/components/MuiDrawer.ts +0 -15
- package/src/theme/components/MuiFormHelperText.ts +0 -23
- package/src/theme/components/MuiFormLabel.ts +0 -16
- package/src/theme/components/MuiInputLabel.ts +0 -33
- package/src/theme/components/MuiLinearProgress.ts +0 -22
- package/src/theme/components/MuiListItemButton.ts +0 -16
- package/src/theme/components/MuiListItemText.ts +0 -16
- package/src/theme/components/MuiMenu.ts +0 -32
- package/src/theme/components/MuiMenuItem.ts +0 -36
- package/src/theme/components/MuiOutlinedInput.ts +0 -75
- package/src/theme/components/MuiPaginationItem.ts +0 -16
- package/src/theme/components/MuiPaper.ts +0 -38
- package/src/theme/components/MuiStep.ts +0 -16
- package/src/theme/components/MuiStepConnector.ts +0 -11
- package/src/theme/components/MuiStepLabel.ts +0 -30
- package/src/theme/components/MuiSwitch.ts +0 -153
- package/src/theme/components/MuiTab.ts +0 -15
- package/src/theme/components/MuiTableCell.ts +0 -16
- package/src/theme/components/MuiTableHead.ts +0 -15
- package/src/theme/components/MuiTableRow.ts +0 -19
- package/src/theme/components/MuiTabs.ts +0 -19
- package/src/theme/components/MuiTextField.ts +0 -28
- package/src/theme/components/MuiToggleButton.ts +0 -14
- package/src/theme/components/MuiToggleButtonGroup.ts +0 -10
- package/src/theme/components/MuiTypography.ts +0 -41
- package/src/theme/components/components.ts +0 -155
- package/src/theme/components/index.ts +0 -1
- package/src/theme/constants.ts +0 -1
- package/src/theme/elevation.ts +0 -15
- package/src/theme/hooks/index.ts +0 -1
- package/src/theme/hooks/useTheme/index.ts +0 -7
- package/src/theme/index.ts +0 -13
- package/src/theme/palette/componentsColors/componentsColors.ts +0 -9
- package/src/theme/palette/componentsColors/index.ts +0 -1
- package/src/theme/palette/componentsColors/linkColors/index.ts +0 -1
- package/src/theme/palette/componentsColors/linkColors/linkColors.ts +0 -13
- package/src/theme/palette/index.ts +0 -5
- package/src/theme/palette/palette.ts +0 -125
- package/src/theme/palette/types.ts +0 -55
- package/src/theme/shape.ts +0 -11
- package/src/theme/types.ts +0 -30
- package/src/theme/typography.ts +0 -191
- package/test.tsx +0 -1
- package/tsconfig.json +0 -16
- /package/{dist → lib}/components/Accordion/index.d.ts +0 -0
- /package/{dist → lib}/components/ActionCell/MainAction/index.d.ts +0 -0
- /package/{dist → lib}/components/ActionCell/SecondaryAction/index.d.ts +0 -0
- /package/{dist → lib}/components/ActionCell/index.d.ts +0 -0
- /package/{dist → lib}/components/ActionCell/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/AsyncAutocomplete/constants.d.ts +0 -0
- /package/{dist → lib}/components/AsyncAutocomplete/index.d.ts +0 -0
- /package/{dist → lib}/components/AsyncAutocomplete/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/Autocomplete/constants.d.ts +0 -0
- /package/{dist → lib}/components/Autocomplete/enums.d.ts +0 -0
- /package/{dist → lib}/components/Autocomplete/index.d.ts +0 -0
- /package/{dist → lib}/components/Autocomplete/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/Autocomplete/useLogic/utils/checkIsInputEmpty/checkIsInputEmpty.d.ts +0 -0
- /package/{dist → lib}/components/Autocomplete/useLogic/utils/checkIsInputEmpty/index.d.ts +0 -0
- /package/{dist → lib}/components/Autocomplete/useLogic/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/Badge/index.d.ts +0 -0
- /package/{dist → lib}/components/Badge/types.d.ts +0 -0
- /package/{dist → lib}/components/BottomDrawer/constants.d.ts +0 -0
- /package/{dist → lib}/components/BottomDrawer/index.d.ts +0 -0
- /package/{dist → lib}/components/Button/constants.d.ts +0 -0
- /package/{dist → lib}/components/Button/enums.d.ts +0 -0
- /package/{dist → lib}/components/Button/index.d.ts +0 -0
- /package/{dist → lib}/components/Button/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/Checkbox/index.d.ts +0 -0
- /package/{dist → lib}/components/CheckboxField/index.d.ts +0 -0
- /package/{dist → lib}/components/Chevron/index.d.ts +0 -0
- /package/{dist → lib}/components/CircularProgress/constants.d.ts +0 -0
- /package/{dist → lib}/components/CircularProgress/index.d.ts +0 -0
- /package/{dist → lib}/components/CircularProgress/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/Collapse/index.d.ts +0 -0
- /package/{dist → lib}/components/ConfigProvider/index.d.ts +0 -0
- /package/{dist → lib}/components/ConfirmAction/constants.d.ts +0 -0
- /package/{dist → lib}/components/ConfirmAction/index.d.ts +0 -0
- /package/{dist → lib}/components/ConfirmAction/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/ConfirmDialog/index.d.ts +0 -0
- /package/{dist → lib}/components/ConfirmDialog/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/Container/index.d.ts +0 -0
- /package/{dist → lib}/components/ContentState/index.d.ts +0 -0
- /package/{dist → lib}/components/CopyTypography/enums.d.ts +0 -0
- /package/{dist → lib}/components/CopyTypography/index.d.ts +0 -0
- /package/{dist → lib}/components/CopyTypography/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Body/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Body/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Cell/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Cell/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/DataGridContext/DataGridProvider/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/DataGridContext/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Head/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Head/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/HeadCell/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/HeadCell/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Loader/Loader.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Loader/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/NoData/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/NestedChildren/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/NestedChildren/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/RowContext/RowProvider/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/RowContext/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/constants.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/useLogic/utils/getColumnsMap/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/useLogic/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/utils/checkIsDisabled/checkIsDisabled.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/utils/checkIsDisabled/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/Row/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/constants.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/enums.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/useLogic/utils/getGridTemplateColumns/getGridTemplateColumns.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/useLogic/utils/getGridTemplateColumns/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/useLogic/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/utils/alignToJustifyContent/constants.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/utils/alignToJustifyContent/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGrid/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridActionCell/MainAction/MainIconButton/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridActionCell/MainAction/MainIconButton/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridActionCell/MainAction/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridActionCell/SecondaryAction/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridActionCell/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridActionCell/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridOld/Body/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridOld/Cell/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridOld/Head/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridOld/HeadCell/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridOld/Row/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridOld/State/State.d.ts +0 -0
- /package/{dist → lib}/components/DataGridOld/State/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridOld/constants.d.ts +0 -0
- /package/{dist → lib}/components/DataGridOld/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridPagination/constants.d.ts +0 -0
- /package/{dist → lib}/components/DataGridPagination/index.d.ts +0 -0
- /package/{dist → lib}/components/DataGridPagination/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/Description/DescriptionContext/DescriptionContextProvider/index.d.ts +0 -0
- /package/{dist → lib}/components/Description/DescriptionContext/index.d.ts +0 -0
- /package/{dist → lib}/components/Description/Name/index.d.ts +0 -0
- /package/{dist → lib}/components/Description/Value/index.d.ts +0 -0
- /package/{dist → lib}/components/Description/Value/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/Description/constants.d.ts +0 -0
- /package/{dist → lib}/components/Description/index.d.ts +0 -0
- /package/{dist → lib}/components/Description/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/DescriptionList/index.d.ts +0 -0
- /package/{dist → lib}/components/DescriptionList/utils/getTooltipProps/getTooltipProps.d.ts +0 -0
- /package/{dist → lib}/components/DescriptionList/utils/getTooltipProps/index.d.ts +0 -0
- /package/{dist → lib}/components/DescriptionList/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/Dialog/constants.d.ts +0 -0
- /package/{dist → lib}/components/Dialog/index.d.ts +0 -0
- /package/{dist → lib}/components/DialogActions/index.d.ts +0 -0
- /package/{dist → lib}/components/DialogContent/index.d.ts +0 -0
- /package/{dist → lib}/components/DialogContentText/index.d.ts +0 -0
- /package/{dist → lib}/components/DialogHeader/index.d.ts +0 -0
- /package/{dist → lib}/components/DialogTitle/index.d.ts +0 -0
- /package/{dist → lib}/components/Divider/index.d.ts +0 -0
- /package/{dist → lib}/components/DropdownButton/index.d.ts +0 -0
- /package/{dist → lib}/components/ErrorBoundary/ErrorBoundary.stubs.d.ts +0 -0
- /package/{dist → lib}/components/ErrorBoundary/constants.d.ts +0 -0
- /package/{dist → lib}/components/ErrorBoundary/enums.d.ts +0 -0
- /package/{dist → lib}/components/ErrorBoundary/index.d.ts +0 -0
- /package/{dist → lib}/components/Filename/index.d.ts +0 -0
- /package/{dist → lib}/components/Filename/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/Filename/useLogic/utils/findExtension/constants.d.ts +0 -0
- /package/{dist → lib}/components/Filename/useLogic/utils/findExtension/findExtension.d.ts +0 -0
- /package/{dist → lib}/components/Filename/useLogic/utils/findExtension/index.d.ts +0 -0
- /package/{dist → lib}/components/Filename/useLogic/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/Filename/useLogic/utils/truncateString/constants.d.ts +0 -0
- /package/{dist → lib}/components/Filename/useLogic/utils/truncateString/index.d.ts +0 -0
- /package/{dist → lib}/components/Filename/useLogic/utils/truncateString/truncateString.d.ts +0 -0
- /package/{dist → lib}/components/FormControl/index.d.ts +0 -0
- /package/{dist → lib}/components/FormControlLabel/index.d.ts +0 -0
- /package/{dist → lib}/components/FormHelperText/FormHelperTextContent/index.d.ts +0 -0
- /package/{dist → lib}/components/FormHelperText/index.d.ts +0 -0
- /package/{dist → lib}/components/FormLabel/index.d.ts +0 -0
- /package/{dist → lib}/components/GuidTypography/index.d.ts +0 -0
- /package/{dist → lib}/components/IconButton/index.d.ts +0 -0
- /package/{dist → lib}/components/IconDropdownButton/index.d.ts +0 -0
- /package/{dist → lib}/components/InternalErrorPlaceholder/InternalErrorPlaceholder.d.ts +0 -0
- /package/{dist → lib}/components/InternalErrorPlaceholder/index.d.ts +0 -0
- /package/{dist → lib}/components/Link/index.d.ts +0 -0
- /package/{dist → lib}/components/List/index.d.ts +0 -0
- /package/{dist → lib}/components/ListItem/index.d.ts +0 -0
- /package/{dist → lib}/components/ListItemButton/constants.d.ts +0 -0
- /package/{dist → lib}/components/ListItemButton/index.d.ts +0 -0
- /package/{dist → lib}/components/ListItemIcon/index.d.ts +0 -0
- /package/{dist → lib}/components/ListItemText/index.d.ts +0 -0
- /package/{dist → lib}/components/ListSubheader/index.d.ts +0 -0
- /package/{dist → lib}/components/Menu/index.d.ts +0 -0
- /package/{dist → lib}/components/MenuItem/index.d.ts +0 -0
- /package/{dist → lib}/components/MenuList/index.d.ts +0 -0
- /package/{dist → lib}/components/NavMenu/Item/ItemButton/index.d.ts +0 -0
- /package/{dist → lib}/components/NavMenu/Item/List/index.d.ts +0 -0
- /package/{dist → lib}/components/NavMenu/Item/index.d.ts +0 -0
- /package/{dist → lib}/components/NavMenu/index.d.ts +0 -0
- /package/{dist → lib}/components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.d.ts +0 -0
- /package/{dist → lib}/components/OutdatedReleasePlaceholder/index.d.ts +0 -0
- /package/{dist → lib}/components/OverflowTypography/hooks/index.d.ts +0 -0
- /package/{dist → lib}/components/OverflowTypography/hooks/useOverflowed/index.d.ts +0 -0
- /package/{dist → lib}/components/OverflowTypography/index.d.ts +0 -0
- /package/{dist → lib}/components/OverflowTypography/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/OverflowTypography/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/OverflowTypography/utils/truncateString/index.d.ts +0 -0
- /package/{dist → lib}/components/OverflowTypography/utils/truncateString/truncateString.d.ts +0 -0
- /package/{dist → lib}/components/Pagination/index.d.ts +0 -0
- /package/{dist → lib}/components/Paper/index.d.ts +0 -0
- /package/{dist → lib}/components/Placeholder/Image/index.d.ts +0 -0
- /package/{dist → lib}/components/Placeholder/index.d.ts +0 -0
- /package/{dist → lib}/components/Placeholder/types.d.ts +0 -0
- /package/{dist → lib}/components/Popover/index.d.ts +0 -0
- /package/{dist → lib}/components/ProgressBar/ProgressBar.d.ts +0 -0
- /package/{dist → lib}/components/ProgressBar/index.d.ts +0 -0
- /package/{dist → lib}/components/Radio/Icon/Icon.d.ts +0 -0
- /package/{dist → lib}/components/Radio/Icon/index.d.ts +0 -0
- /package/{dist → lib}/components/Radio/constants.d.ts +0 -0
- /package/{dist → lib}/components/Radio/index.d.ts +0 -0
- /package/{dist → lib}/components/RadioField/index.d.ts +0 -0
- /package/{dist → lib}/components/RadioGroup/RadioGroupContext/RadioGroupContextProvider/index.d.ts +0 -0
- /package/{dist → lib}/components/RadioGroup/RadioGroupContext/index.d.ts +0 -0
- /package/{dist → lib}/components/RadioGroup/index.d.ts +0 -0
- /package/{dist → lib}/components/RadioGroupField/index.d.ts +0 -0
- /package/{dist → lib}/components/SearchField/index.d.ts +0 -0
- /package/{dist → lib}/components/Select/constants.d.ts +0 -0
- /package/{dist → lib}/components/Select/index.d.ts +0 -0
- /package/{dist → lib}/components/Select/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/Skeleton/index.d.ts +0 -0
- /package/{dist → lib}/components/Switch/index.d.ts +0 -0
- /package/{dist → lib}/components/Tab/index.d.ts +0 -0
- /package/{dist → lib}/components/Tabs/index.d.ts +0 -0
- /package/{dist → lib}/components/Tag/enums.d.ts +0 -0
- /package/{dist → lib}/components/Tag/index.d.ts +0 -0
- /package/{dist → lib}/components/TagBadge/index.d.ts +0 -0
- /package/{dist → lib}/components/TagBadge/utils/getCheckableTagBadgeBgColor/index.d.ts +0 -0
- /package/{dist → lib}/components/TagBadge/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/TagsList/Tag/index.d.ts +0 -0
- /package/{dist → lib}/components/TagsList/Tag/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/TagsList/index.d.ts +0 -0
- /package/{dist → lib}/components/TagsList/types.d.ts +0 -0
- /package/{dist → lib}/components/TagsList/useLogic/index.d.ts +0 -0
- /package/{dist → lib}/components/TagsList/utils/getElementByText/getElementByText.d.ts +0 -0
- /package/{dist → lib}/components/TagsList/utils/getElementByText/index.d.ts +0 -0
- /package/{dist → lib}/components/TagsList/utils/getKey/index.d.ts +0 -0
- /package/{dist → lib}/components/TagsList/utils/index.d.ts +0 -0
- /package/{dist → lib}/components/TextArea/index.d.ts +0 -0
- /package/{dist → lib}/components/TextField/index.d.ts +0 -0
- /package/{dist → lib}/components/Tooltip/constants.d.ts +0 -0
- /package/{dist → lib}/components/Tooltip/index.d.ts +0 -0
- /package/{dist → lib}/components/Typography/enums.d.ts +0 -0
- /package/{dist → lib}/components/Typography/hooks/index.d.ts +0 -0
- /package/{dist → lib}/components/Typography/hooks/useTypographyColor/index.d.ts +0 -0
- /package/{dist → lib}/components/Typography/index.d.ts +0 -0
- /package/{dist → lib}/components/Typography/styles.d.ts +0 -0
- /package/{dist → lib}/components/types.d.ts +0 -0
- /package/{dist → lib}/hooks/index.d.ts +0 -0
- /package/{dist → lib}/hooks/useMenu/index.d.ts +0 -0
- /package/{dist → lib}/hooks/usePopover/index.d.ts +0 -0
- /package/{dist → lib}/hooks/useToggle/index.d.ts +0 -0
- /package/{dist → lib}/hooks/useToggle/useToggle.d.ts +0 -0
- /package/{dist → lib}/hooks/useViewportType/index.d.ts +0 -0
- /package/{dist → lib}/hooks/useViewportType/useViewportType.d.ts +0 -0
- /package/{dist → lib}/index.d.ts +0 -0
- /package/{dist → lib}/theme/baseTheme/index.d.ts +0 -0
- /package/{dist → lib}/theme/components/index.d.ts +0 -0
- /package/{dist → lib}/theme/constants.d.ts +0 -0
- /package/{dist → lib}/theme/elevation.d.ts +0 -0
- /package/{dist → lib}/theme/hooks/index.d.ts +0 -0
- /package/{dist → lib}/theme/index.d.ts +0 -0
- /package/{dist → lib}/theme/palette/componentsColors/index.d.ts +0 -0
- /package/{dist → lib}/theme/palette/componentsColors/linkColors/index.d.ts +0 -0
- /package/{dist → lib}/theme/palette/componentsColors/linkColors/linkColors.d.ts +0 -0
- /package/{dist → lib}/theme/palette/index.d.ts +0 -0
- /package/{dist → lib}/theme/shape.d.ts +0 -0
|
@@ -1,1883 +0,0 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
-
import { type ChangeEvent, useEffect, useMemo, useState } from 'react';
|
|
3
|
-
|
|
4
|
-
import { ConfigProvider } from '../ConfigProvider';
|
|
5
|
-
import {
|
|
6
|
-
DataGridActionCell,
|
|
7
|
-
type DataGridActionCellProps,
|
|
8
|
-
type DataGridActions,
|
|
9
|
-
} from '../DataGridActionCell';
|
|
10
|
-
import { DataGridPagination } from '../DataGridPagination';
|
|
11
|
-
|
|
12
|
-
import { Eye, Pencil, Send, Trash } from 'lucide-react';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import { DataGrid } from './DataGrid';
|
|
15
|
-
import {
|
|
16
|
-
makeColumns,
|
|
17
|
-
makeDataList,
|
|
18
|
-
makeDataListWithTree,
|
|
19
|
-
makeRandomDate,
|
|
20
|
-
} from './faker';
|
|
21
|
-
import type {
|
|
22
|
-
DataGridColumns,
|
|
23
|
-
DataGridRowWithOptions,
|
|
24
|
-
DataGridSort,
|
|
25
|
-
} from './types';
|
|
26
|
-
|
|
27
|
-
const errorIllustration = '../../illustrations/error.svg';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* DataGrid — отображает информацию в удобном для просмотра виде. Может включать:
|
|
31
|
-
- Соответствующую визуализацию
|
|
32
|
-
- Навигацию
|
|
33
|
-
- Инструменты для запроса и обработки данных
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
const meta: Meta<typeof DataGrid> = {
|
|
37
|
-
title: 'Components/Data Display/DataGrid',
|
|
38
|
-
component: DataGrid,
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export default meta;
|
|
42
|
-
|
|
43
|
-
type DataType = {
|
|
44
|
-
id: string;
|
|
45
|
-
documentName: string;
|
|
46
|
-
recipient: string;
|
|
47
|
-
createDate: string;
|
|
48
|
-
actions?: object;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
type SortField = 'documentName' | 'recipient' | 'createDate';
|
|
52
|
-
|
|
53
|
-
const FAKE_DATA_TEMPLATE: DataType = {
|
|
54
|
-
id: '1',
|
|
55
|
-
documentName: 'Договор №1',
|
|
56
|
-
recipient: 'ИП Иванов О.В.',
|
|
57
|
-
createDate: '2022-03-24T17:50:40.206Z',
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const FAKE_ACTIONS: DataGridActions<DataType> = {
|
|
61
|
-
main: [
|
|
62
|
-
{
|
|
63
|
-
icon: <Eye />,
|
|
64
|
-
name: 'Просмотреть',
|
|
65
|
-
onClick: () => console.log('main'),
|
|
66
|
-
isBlockingOperation: true,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
icon: <Send />,
|
|
70
|
-
nested: true,
|
|
71
|
-
name: 'Отправить',
|
|
72
|
-
actions: [
|
|
73
|
-
{ name: 'Туда', onClick: () => console.log('nested 1') },
|
|
74
|
-
{ name: 'Сюда', onClick: () => console.log('nested 2') },
|
|
75
|
-
],
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
secondary: [
|
|
79
|
-
{ name: 'Редактировать', onClick: () => console.log('secondary 1') },
|
|
80
|
-
{ name: 'Удалить', onClick: () => console.log('secondary 2') },
|
|
81
|
-
],
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const FAKE_COLUMNS: DataGridColumns<DataType>[] = [
|
|
85
|
-
{
|
|
86
|
-
field: 'documentName',
|
|
87
|
-
label: 'Наименование документа',
|
|
88
|
-
sortable: true,
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
field: 'recipient',
|
|
92
|
-
label: 'Получатель',
|
|
93
|
-
sortable: true,
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
field: 'createDate',
|
|
97
|
-
label: 'Дата создания',
|
|
98
|
-
sortable: true,
|
|
99
|
-
format: ({ createDate }) => new Date(createDate).toLocaleDateString(),
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
field: 'actions',
|
|
103
|
-
label: 'Действия',
|
|
104
|
-
sortable: false,
|
|
105
|
-
align: 'center',
|
|
106
|
-
width: '120px',
|
|
107
|
-
renderCell: (row) => {
|
|
108
|
-
return <DataGridActionCell actions={FAKE_ACTIONS} row={row} />;
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
];
|
|
112
|
-
|
|
113
|
-
type FakeActionCellProps<TRow> = Pick<DataGridActionCellProps<TRow>, 'row'>;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* DataGrid без пагинации
|
|
117
|
-
*/
|
|
118
|
-
export const Example = () => {
|
|
119
|
-
const columns = makeColumns(FAKE_COLUMNS);
|
|
120
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
121
|
-
{
|
|
122
|
-
id: '123456789',
|
|
123
|
-
documentName: 'Договор №12345678',
|
|
124
|
-
recipient: 'ПАО "Первый завод"',
|
|
125
|
-
createDate: makeRandomDate(),
|
|
126
|
-
},
|
|
127
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
128
|
-
];
|
|
129
|
-
|
|
130
|
-
const [isLoading, setLoading] = useState(true);
|
|
131
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
132
|
-
|
|
133
|
-
useEffect(() => {
|
|
134
|
-
setTimeout(() => {
|
|
135
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
136
|
-
setLoading(false);
|
|
137
|
-
}, 1500);
|
|
138
|
-
}, []);
|
|
139
|
-
|
|
140
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
141
|
-
|
|
142
|
-
return (
|
|
143
|
-
<DataGrid<DataType, SortField>
|
|
144
|
-
keyId='id'
|
|
145
|
-
rows={slicedData}
|
|
146
|
-
columns={columns}
|
|
147
|
-
isLoading={isLoading}
|
|
148
|
-
onRowClick={handleRowClick}
|
|
149
|
-
onRetry={() => {}}
|
|
150
|
-
/>
|
|
151
|
-
);
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Постраничное отображение данных в таблице.
|
|
156
|
-
* Внизу таблицы есть область, в которой слева отображается счетчик данных на странице из общего количества данных, справа - кнопки с нумерацией страниц таблицы для переключения между ними.
|
|
157
|
-
*/
|
|
158
|
-
export const WithPagination = () => {
|
|
159
|
-
const columns = makeColumns(FAKE_COLUMNS);
|
|
160
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
161
|
-
{
|
|
162
|
-
id: '123456789',
|
|
163
|
-
documentName: 'Договор №12345678',
|
|
164
|
-
recipient: 'ПАО "Первый завод"',
|
|
165
|
-
createDate: makeRandomDate(),
|
|
166
|
-
},
|
|
167
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
168
|
-
];
|
|
169
|
-
|
|
170
|
-
const [isLoading, setLoading] = useState(true);
|
|
171
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
172
|
-
const [page, setPage] = useState<number>(1);
|
|
173
|
-
|
|
174
|
-
useEffect(() => {
|
|
175
|
-
setTimeout(() => {
|
|
176
|
-
setSlicedData(fakeData.slice((page - 1) * 10, page * 10));
|
|
177
|
-
setLoading(false);
|
|
178
|
-
}, 1500);
|
|
179
|
-
}, []);
|
|
180
|
-
|
|
181
|
-
const handleChangePage = (
|
|
182
|
-
_event: ChangeEvent<unknown>,
|
|
183
|
-
newPage: number,
|
|
184
|
-
): void => {
|
|
185
|
-
setLoading(true);
|
|
186
|
-
setPage(newPage);
|
|
187
|
-
|
|
188
|
-
setTimeout(() => {
|
|
189
|
-
setLoading(false);
|
|
190
|
-
setSlicedData(fakeData.slice((newPage - 1) * 10, newPage * 10));
|
|
191
|
-
}, 1500);
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
195
|
-
|
|
196
|
-
return (
|
|
197
|
-
<DataGrid<DataType, SortField>
|
|
198
|
-
keyId='id'
|
|
199
|
-
rows={slicedData}
|
|
200
|
-
columns={columns}
|
|
201
|
-
isLoading={isLoading}
|
|
202
|
-
footer={
|
|
203
|
-
<DataGridPagination
|
|
204
|
-
rowsPerPage={10}
|
|
205
|
-
totalCount={fakeData.length}
|
|
206
|
-
onChange={handleChangePage}
|
|
207
|
-
page={page}
|
|
208
|
-
/>
|
|
209
|
-
}
|
|
210
|
-
onRowClick={handleRowClick}
|
|
211
|
-
onRetry={() => {}}
|
|
212
|
-
/>
|
|
213
|
-
);
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* DataGrid с сортировкой
|
|
218
|
-
*/
|
|
219
|
-
export const WithSorting = () => {
|
|
220
|
-
const columns = makeColumns(FAKE_COLUMNS);
|
|
221
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
222
|
-
{
|
|
223
|
-
id: '123456789',
|
|
224
|
-
documentName: 'Договор №12345678',
|
|
225
|
-
recipient: 'ПАО "Первый завод"',
|
|
226
|
-
createDate: makeRandomDate(),
|
|
227
|
-
},
|
|
228
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
229
|
-
];
|
|
230
|
-
|
|
231
|
-
const [isLoading, setLoading] = useState(true);
|
|
232
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
233
|
-
const [sorting, setSorting] = useState<DataGridSort<SortField>>();
|
|
234
|
-
|
|
235
|
-
useEffect(() => {
|
|
236
|
-
setTimeout(() => {
|
|
237
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
238
|
-
setLoading(false);
|
|
239
|
-
}, 1500);
|
|
240
|
-
}, []);
|
|
241
|
-
|
|
242
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
243
|
-
|
|
244
|
-
const handleSort = (newSorting: DataGridSort<SortField> | undefined) => {
|
|
245
|
-
if (newSorting) {
|
|
246
|
-
const sortData = (
|
|
247
|
-
array: DataType[],
|
|
248
|
-
field: SortField,
|
|
249
|
-
sortOrder: 'asc' | 'desc',
|
|
250
|
-
) => {
|
|
251
|
-
const sortedArray = [...array];
|
|
252
|
-
|
|
253
|
-
sortedArray.sort((a, b) => {
|
|
254
|
-
const valueA = a[field];
|
|
255
|
-
const valueB = b[field];
|
|
256
|
-
|
|
257
|
-
if (valueA === valueB) {
|
|
258
|
-
return 0;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
if (field === 'documentName') {
|
|
262
|
-
// Разделение текстовой и числовой частей
|
|
263
|
-
const regex = /([^\d]+)(\d+)/;
|
|
264
|
-
const matchA = valueA.match(regex);
|
|
265
|
-
const matchB = valueB.match(regex);
|
|
266
|
-
|
|
267
|
-
// Проверка на null
|
|
268
|
-
if (matchA === null || matchB === null) {
|
|
269
|
-
return 0;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
const [, textA, numberA] = matchA;
|
|
273
|
-
const [, textB, numberB] = matchB;
|
|
274
|
-
|
|
275
|
-
const comparison =
|
|
276
|
-
textA.localeCompare(textB) || Number(numberA) - Number(numberB);
|
|
277
|
-
|
|
278
|
-
// Определение порядка сортировки
|
|
279
|
-
return sortOrder === 'desc' ? -1 * comparison : comparison;
|
|
280
|
-
}
|
|
281
|
-
// Если не сортируем по полю documentName, используем прежний код сортировки
|
|
282
|
-
if (valueA < valueB) {
|
|
283
|
-
return sortOrder === 'desc' ? 1 : -1;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
if (valueA > valueB) {
|
|
287
|
-
return sortOrder === 'desc' ? -1 : 1;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
return 0;
|
|
291
|
-
});
|
|
292
|
-
|
|
293
|
-
return sortedArray;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
setSlicedData(sortData(slicedData, newSorting.fieldId, newSorting.sort));
|
|
297
|
-
} else {
|
|
298
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
setSorting(newSorting);
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
return (
|
|
305
|
-
<DataGrid<DataType, SortField>
|
|
306
|
-
keyId='id'
|
|
307
|
-
rows={slicedData}
|
|
308
|
-
columns={columns}
|
|
309
|
-
isLoading={isLoading}
|
|
310
|
-
onSort={handleSort}
|
|
311
|
-
sorting={sorting}
|
|
312
|
-
onRowClick={handleRowClick}
|
|
313
|
-
onRetry={() => {}}
|
|
314
|
-
/>
|
|
315
|
-
);
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Prop `activeRowId` позволяет отобразить активный ряд в таблице в зависимости от значения prop `keyId`
|
|
320
|
-
*/
|
|
321
|
-
export const WithActiveRow = () => {
|
|
322
|
-
const columns = makeColumns(FAKE_COLUMNS);
|
|
323
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
324
|
-
{
|
|
325
|
-
id: '123456789',
|
|
326
|
-
documentName: 'Договор №12345678',
|
|
327
|
-
recipient: 'ПАО "Первый завод"',
|
|
328
|
-
createDate: makeRandomDate(),
|
|
329
|
-
},
|
|
330
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
331
|
-
];
|
|
332
|
-
|
|
333
|
-
const [isLoading, setLoading] = useState(true);
|
|
334
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
335
|
-
|
|
336
|
-
useEffect(() => {
|
|
337
|
-
setTimeout(() => {
|
|
338
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
339
|
-
setLoading(false);
|
|
340
|
-
}, 1500);
|
|
341
|
-
}, []);
|
|
342
|
-
|
|
343
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
344
|
-
|
|
345
|
-
return (
|
|
346
|
-
<DataGrid<DataType, SortField>
|
|
347
|
-
keyId='id'
|
|
348
|
-
activeRowId={'3'}
|
|
349
|
-
rows={slicedData}
|
|
350
|
-
columns={columns}
|
|
351
|
-
isLoading={isLoading}
|
|
352
|
-
onRowClick={handleRowClick}
|
|
353
|
-
onRetry={() => {}}
|
|
354
|
-
/>
|
|
355
|
-
);
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* В таблице может добавляться возможность выбора отдельных строк или всего списка значений посредством использования компонента checkbox.
|
|
360
|
-
* В страничном варинте таблицы при выборе checkbox в datagrid_header выбираются все значения на странице
|
|
361
|
-
*/
|
|
362
|
-
export const WithCheckbox = () => {
|
|
363
|
-
const columns = makeColumns(FAKE_COLUMNS);
|
|
364
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
365
|
-
{
|
|
366
|
-
id: '123456789',
|
|
367
|
-
documentName: 'Договор №12345678',
|
|
368
|
-
recipient: 'ПАО "Первый завод"',
|
|
369
|
-
createDate: makeRandomDate(),
|
|
370
|
-
},
|
|
371
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
372
|
-
];
|
|
373
|
-
|
|
374
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
375
|
-
const [selected, setSelected] = useState<DataType[]>([]);
|
|
376
|
-
const [isLoading, setLoading] = useState(true);
|
|
377
|
-
|
|
378
|
-
useEffect(() => {
|
|
379
|
-
setTimeout(() => {
|
|
380
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
381
|
-
setLoading(false);
|
|
382
|
-
}, 1500);
|
|
383
|
-
}, []);
|
|
384
|
-
|
|
385
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
386
|
-
|
|
387
|
-
const handleSelect = (rows: DataType[]) => setSelected(rows);
|
|
388
|
-
|
|
389
|
-
return (
|
|
390
|
-
<DataGrid<DataType, SortField>
|
|
391
|
-
keyId='id'
|
|
392
|
-
rows={slicedData}
|
|
393
|
-
columns={columns}
|
|
394
|
-
isLoading={isLoading}
|
|
395
|
-
selectedRows={selected}
|
|
396
|
-
onSelectRow={handleSelect}
|
|
397
|
-
onRowClick={handleRowClick}
|
|
398
|
-
onRetry={() => {}}
|
|
399
|
-
/>
|
|
400
|
-
);
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* В качестве значения параметра width должны указываться явные единицы: `px`, `%`, `fr`.
|
|
405
|
-
* При использовании таких значений, как auto, max-content, min-content, которые автоматически подстраиваются под ширину содержимого, сетка может сломаться.
|
|
406
|
-
* Если значение не указано, то автоматически задается `1fr`
|
|
407
|
-
*/
|
|
408
|
-
export const WidthOptions = () => {
|
|
409
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
410
|
-
{
|
|
411
|
-
field: 'documentName',
|
|
412
|
-
width: '2fr',
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
field: 'recipient',
|
|
416
|
-
width: '1fr',
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
field: 'createDate',
|
|
420
|
-
width: '15%',
|
|
421
|
-
},
|
|
422
|
-
]);
|
|
423
|
-
|
|
424
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
425
|
-
{
|
|
426
|
-
id: '123456789',
|
|
427
|
-
documentName: 'Договор №12345678',
|
|
428
|
-
recipient: 'ПАО "Первый завод"',
|
|
429
|
-
createDate: makeRandomDate(),
|
|
430
|
-
},
|
|
431
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
432
|
-
];
|
|
433
|
-
|
|
434
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
435
|
-
const [isLoading, setLoading] = useState(true);
|
|
436
|
-
|
|
437
|
-
useEffect(() => {
|
|
438
|
-
setTimeout(() => {
|
|
439
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
440
|
-
setLoading(false);
|
|
441
|
-
}, 1500);
|
|
442
|
-
}, []);
|
|
443
|
-
|
|
444
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
445
|
-
|
|
446
|
-
return (
|
|
447
|
-
<DataGrid<DataType, SortField>
|
|
448
|
-
keyId='id'
|
|
449
|
-
rows={slicedData}
|
|
450
|
-
columns={columns}
|
|
451
|
-
isLoading={isLoading}
|
|
452
|
-
onRowClick={handleRowClick}
|
|
453
|
-
onRetry={() => {}}
|
|
454
|
-
/>
|
|
455
|
-
);
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
export const ConfirmAction = () => {
|
|
459
|
-
const ACTIONS: DataGridActions<DataType> = {
|
|
460
|
-
main: [
|
|
461
|
-
{
|
|
462
|
-
icon: <Trash />,
|
|
463
|
-
name: 'Удалить',
|
|
464
|
-
needConfirm: true,
|
|
465
|
-
confirmText:
|
|
466
|
-
'Если вы удалите черновик, то черновик с такими же данными нужно будет создать заново. Удалить черновик из списка?',
|
|
467
|
-
confirmButtonProps: {
|
|
468
|
-
text: 'Да, удалить',
|
|
469
|
-
isAccented: true,
|
|
470
|
-
},
|
|
471
|
-
onClick: (row) => alert(`Delete: ${JSON.stringify(row)}`),
|
|
472
|
-
},
|
|
473
|
-
],
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
477
|
-
{
|
|
478
|
-
field: 'actions',
|
|
479
|
-
renderCell: (row) => {
|
|
480
|
-
return <DataGridActionCell actions={ACTIONS} row={row} />;
|
|
481
|
-
},
|
|
482
|
-
},
|
|
483
|
-
]);
|
|
484
|
-
|
|
485
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
486
|
-
{
|
|
487
|
-
id: '123456789',
|
|
488
|
-
documentName: 'Договор №12345678',
|
|
489
|
-
recipient: 'ПАО "Первый завод"',
|
|
490
|
-
createDate: makeRandomDate(),
|
|
491
|
-
},
|
|
492
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
493
|
-
];
|
|
494
|
-
|
|
495
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
496
|
-
const [selected, setSelected] = useState<DataType[]>([]);
|
|
497
|
-
const [isLoading, setLoading] = useState(true);
|
|
498
|
-
|
|
499
|
-
useEffect(() => {
|
|
500
|
-
setTimeout(() => {
|
|
501
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
502
|
-
setLoading(false);
|
|
503
|
-
}, 1500);
|
|
504
|
-
}, []);
|
|
505
|
-
|
|
506
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
507
|
-
|
|
508
|
-
const handleSelect = (rows: DataType[]) => setSelected(rows);
|
|
509
|
-
|
|
510
|
-
return (
|
|
511
|
-
<DataGrid<DataType, SortField>
|
|
512
|
-
keyId='id'
|
|
513
|
-
rows={slicedData}
|
|
514
|
-
columns={columns}
|
|
515
|
-
isLoading={isLoading}
|
|
516
|
-
selectedRows={selected}
|
|
517
|
-
onSelectRow={handleSelect}
|
|
518
|
-
onRowClick={handleRowClick}
|
|
519
|
-
onRetry={() => {}}
|
|
520
|
-
/>
|
|
521
|
-
);
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
/**
|
|
525
|
-
* Prop `disabled` позволяет заблокировать контент
|
|
526
|
-
*/
|
|
527
|
-
export const WithDisabledContent = () => {
|
|
528
|
-
const columns = makeColumns(FAKE_COLUMNS);
|
|
529
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
530
|
-
{
|
|
531
|
-
id: '123456789',
|
|
532
|
-
documentName: 'Договор №12345678',
|
|
533
|
-
recipient: 'ПАО "Первый завод"',
|
|
534
|
-
createDate: makeRandomDate(),
|
|
535
|
-
},
|
|
536
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
537
|
-
];
|
|
538
|
-
|
|
539
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
540
|
-
const [isLoading, setLoading] = useState(true);
|
|
541
|
-
|
|
542
|
-
useEffect(() => {
|
|
543
|
-
setTimeout(() => {
|
|
544
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
545
|
-
setLoading(false);
|
|
546
|
-
}, 1500);
|
|
547
|
-
}, []);
|
|
548
|
-
|
|
549
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
550
|
-
|
|
551
|
-
return (
|
|
552
|
-
<DataGrid<DataType, SortField>
|
|
553
|
-
keyId='id'
|
|
554
|
-
rows={slicedData}
|
|
555
|
-
columns={columns}
|
|
556
|
-
isLoading={isLoading}
|
|
557
|
-
isDisabled={true}
|
|
558
|
-
onRowClick={handleRowClick}
|
|
559
|
-
onRetry={() => {}}
|
|
560
|
-
/>
|
|
561
|
-
);
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
export const WithDisabledRow = () => {
|
|
565
|
-
const ACTIONS: DataGridActions<DataType> = {
|
|
566
|
-
main: [
|
|
567
|
-
{
|
|
568
|
-
icon: <Trash />,
|
|
569
|
-
name: 'Удалить',
|
|
570
|
-
onClick: () => console.log('delete'),
|
|
571
|
-
},
|
|
572
|
-
],
|
|
573
|
-
};
|
|
574
|
-
|
|
575
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
576
|
-
{
|
|
577
|
-
field: 'actions',
|
|
578
|
-
renderCell: (row) => {
|
|
579
|
-
return <DataGridActionCell actions={ACTIONS} row={row} />;
|
|
580
|
-
},
|
|
581
|
-
},
|
|
582
|
-
]);
|
|
583
|
-
|
|
584
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
585
|
-
{
|
|
586
|
-
id: '123456789',
|
|
587
|
-
documentName: 'Договор №12345678',
|
|
588
|
-
recipient: 'ПАО "Первый завод"',
|
|
589
|
-
createDate: makeRandomDate(),
|
|
590
|
-
options: {
|
|
591
|
-
isDisabled: true,
|
|
592
|
-
disabledReason: 'Нет доступа',
|
|
593
|
-
},
|
|
594
|
-
},
|
|
595
|
-
...makeDataList(FAKE_DATA_TEMPLATE, {
|
|
596
|
-
isDisabled: true,
|
|
597
|
-
disabledReason: 'Нет доступа',
|
|
598
|
-
}),
|
|
599
|
-
];
|
|
600
|
-
|
|
601
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
602
|
-
const [selected, setSelected] = useState<DataType[]>([]);
|
|
603
|
-
const [isLoading, setLoading] = useState(true);
|
|
604
|
-
|
|
605
|
-
useEffect(() => {
|
|
606
|
-
setTimeout(() => {
|
|
607
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
608
|
-
setLoading(false);
|
|
609
|
-
}, 1500);
|
|
610
|
-
}, []);
|
|
611
|
-
|
|
612
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
613
|
-
|
|
614
|
-
const handleSelect = (rows: DataType[]) => setSelected(rows);
|
|
615
|
-
|
|
616
|
-
return (
|
|
617
|
-
<DataGrid<DataType, SortField>
|
|
618
|
-
keyId='id'
|
|
619
|
-
rows={slicedData}
|
|
620
|
-
columns={columns}
|
|
621
|
-
isLoading={isLoading}
|
|
622
|
-
selectedRows={selected}
|
|
623
|
-
onSelectRow={handleSelect}
|
|
624
|
-
onRowClick={handleRowClick}
|
|
625
|
-
onRetry={() => {}}
|
|
626
|
-
/>
|
|
627
|
-
);
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* `isDisabledLastCell` позволяет не блокировать последнюю ячейку
|
|
632
|
-
*/
|
|
633
|
-
export const DisabledLastCell = () => {
|
|
634
|
-
const ACTIONS: DataGridActions<DataType> = {
|
|
635
|
-
main: [
|
|
636
|
-
{
|
|
637
|
-
icon: <Trash />,
|
|
638
|
-
name: 'Удалить',
|
|
639
|
-
onClick: () => console.log('delete'),
|
|
640
|
-
},
|
|
641
|
-
],
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
645
|
-
{
|
|
646
|
-
field: 'actions',
|
|
647
|
-
renderCell: (row) => {
|
|
648
|
-
return <DataGridActionCell actions={ACTIONS} row={row} />;
|
|
649
|
-
},
|
|
650
|
-
},
|
|
651
|
-
]);
|
|
652
|
-
|
|
653
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
654
|
-
{
|
|
655
|
-
id: '123456789',
|
|
656
|
-
documentName: 'Договор №12345678',
|
|
657
|
-
recipient: 'ПАО "Первый завод"',
|
|
658
|
-
createDate: makeRandomDate(),
|
|
659
|
-
options: {
|
|
660
|
-
isDisabled: true,
|
|
661
|
-
isDisabledLastCell: false,
|
|
662
|
-
disabledReason: 'Нет доступа',
|
|
663
|
-
},
|
|
664
|
-
},
|
|
665
|
-
...makeDataList(FAKE_DATA_TEMPLATE, {
|
|
666
|
-
isDisabled: true,
|
|
667
|
-
isDisabledLastCell: false,
|
|
668
|
-
disabledReason: 'Нет доступа',
|
|
669
|
-
}),
|
|
670
|
-
];
|
|
671
|
-
|
|
672
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
673
|
-
const [selected, setSelected] = useState<DataType[]>([]);
|
|
674
|
-
const [isLoading, setLoading] = useState(true);
|
|
675
|
-
|
|
676
|
-
useEffect(() => {
|
|
677
|
-
setTimeout(() => {
|
|
678
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
679
|
-
setLoading(false);
|
|
680
|
-
}, 1500);
|
|
681
|
-
}, []);
|
|
682
|
-
|
|
683
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
684
|
-
|
|
685
|
-
const handleSelect = (rows: DataType[]) => setSelected(rows);
|
|
686
|
-
|
|
687
|
-
return (
|
|
688
|
-
<DataGrid<DataType, SortField>
|
|
689
|
-
keyId='id'
|
|
690
|
-
rows={slicedData}
|
|
691
|
-
columns={columns}
|
|
692
|
-
isLoading={isLoading}
|
|
693
|
-
selectedRows={selected}
|
|
694
|
-
onSelectRow={handleSelect}
|
|
695
|
-
onRowClick={handleRowClick}
|
|
696
|
-
onRetry={() => {}}
|
|
697
|
-
/>
|
|
698
|
-
);
|
|
699
|
-
};
|
|
700
|
-
|
|
701
|
-
/**
|
|
702
|
-
* При состоянии `loading=true` и `isBlockingOperation=true` у действия, строка блокируется и появляется тултип с `loadingNote`
|
|
703
|
-
*/
|
|
704
|
-
export const ActionsDataGrid = () => {
|
|
705
|
-
const FakeActionCell = <TRow,>({ row }: FakeActionCellProps<TRow>) => {
|
|
706
|
-
const [isEditing, setIsEditing] = useState(false);
|
|
707
|
-
const [isDeleting, setIsDeleting] = useState(false);
|
|
708
|
-
const [isSigning, setIsSigning] = useState(false);
|
|
709
|
-
|
|
710
|
-
const handleEdit = () => {
|
|
711
|
-
setIsEditing(true);
|
|
712
|
-
};
|
|
713
|
-
|
|
714
|
-
const handleDelete = () => {
|
|
715
|
-
setIsDeleting(true);
|
|
716
|
-
};
|
|
717
|
-
|
|
718
|
-
const handleSign = () => {
|
|
719
|
-
setIsSigning(true);
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
useEffect(() => {
|
|
723
|
-
if (isEditing) {
|
|
724
|
-
setTimeout(() => setIsEditing(false), 1500);
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
if (isDeleting) {
|
|
728
|
-
setTimeout(() => setIsDeleting(false), 1500);
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
if (isSigning) {
|
|
732
|
-
setTimeout(() => setIsSigning(false), 1500);
|
|
733
|
-
}
|
|
734
|
-
}, [isEditing, isDeleting, isSigning]);
|
|
735
|
-
|
|
736
|
-
const fakeActions = useMemo(
|
|
737
|
-
() => ({
|
|
738
|
-
main: [
|
|
739
|
-
{
|
|
740
|
-
icon: <Pencil />,
|
|
741
|
-
name: 'Редактировать',
|
|
742
|
-
loading: isEditing,
|
|
743
|
-
onClick: handleEdit,
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
icon: <Trash />,
|
|
747
|
-
name: 'Удалить',
|
|
748
|
-
loading: isDeleting,
|
|
749
|
-
loadingNote: 'Происходит удаление',
|
|
750
|
-
isBlockingOperation: true,
|
|
751
|
-
onClick: handleDelete,
|
|
752
|
-
},
|
|
753
|
-
],
|
|
754
|
-
secondary: [
|
|
755
|
-
{
|
|
756
|
-
name: 'Подписать',
|
|
757
|
-
loading: isSigning,
|
|
758
|
-
loadingNote: 'Происходит подписание',
|
|
759
|
-
isBlockingOperation: true,
|
|
760
|
-
onClick: handleSign,
|
|
761
|
-
},
|
|
762
|
-
],
|
|
763
|
-
}),
|
|
764
|
-
[isEditing, isDeleting, isSigning],
|
|
765
|
-
);
|
|
766
|
-
|
|
767
|
-
return <DataGridActionCell actions={fakeActions} row={row} />;
|
|
768
|
-
};
|
|
769
|
-
|
|
770
|
-
const fakeColumns: DataGridColumns<DataType>[] = [
|
|
771
|
-
{
|
|
772
|
-
field: 'documentName',
|
|
773
|
-
label: 'Наименование документа',
|
|
774
|
-
sortable: true,
|
|
775
|
-
},
|
|
776
|
-
{
|
|
777
|
-
field: 'recipient',
|
|
778
|
-
label: 'Получатель',
|
|
779
|
-
sortable: true,
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
field: 'createDate',
|
|
783
|
-
label: 'Дата создания',
|
|
784
|
-
sortable: true,
|
|
785
|
-
format: ({ createDate }) => new Date(createDate).toLocaleDateString(),
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
field: 'actions',
|
|
789
|
-
label: 'Действия',
|
|
790
|
-
sortable: false,
|
|
791
|
-
align: 'center',
|
|
792
|
-
width: '120px',
|
|
793
|
-
renderCell: (row) => {
|
|
794
|
-
return <FakeActionCell row={row} />;
|
|
795
|
-
},
|
|
796
|
-
},
|
|
797
|
-
];
|
|
798
|
-
|
|
799
|
-
const columns = makeColumns(fakeColumns);
|
|
800
|
-
|
|
801
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
802
|
-
{
|
|
803
|
-
id: '123456789',
|
|
804
|
-
documentName: 'Договор №12345678',
|
|
805
|
-
recipient: 'ПАО "Первый завод"',
|
|
806
|
-
createDate: makeRandomDate(),
|
|
807
|
-
},
|
|
808
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
809
|
-
];
|
|
810
|
-
|
|
811
|
-
const [loading, setLoading] = useState(true);
|
|
812
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
813
|
-
|
|
814
|
-
useEffect(() => {
|
|
815
|
-
setTimeout(() => {
|
|
816
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
817
|
-
setLoading(false);
|
|
818
|
-
}, 1500);
|
|
819
|
-
}, []);
|
|
820
|
-
|
|
821
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
822
|
-
|
|
823
|
-
return (
|
|
824
|
-
<DataGrid<DataType>
|
|
825
|
-
keyId='id'
|
|
826
|
-
rows={slicedData}
|
|
827
|
-
columns={columns}
|
|
828
|
-
onRowClick={handleRowClick}
|
|
829
|
-
isLoading={loading}
|
|
830
|
-
onRetry={() => {}}
|
|
831
|
-
/>
|
|
832
|
-
);
|
|
833
|
-
};
|
|
834
|
-
|
|
835
|
-
export const EmptyCellValue = () => {
|
|
836
|
-
type DataTypeEmptyCell = {
|
|
837
|
-
id: string;
|
|
838
|
-
documentName?: string;
|
|
839
|
-
recipient?: string;
|
|
840
|
-
createDate: string;
|
|
841
|
-
};
|
|
842
|
-
|
|
843
|
-
const fakeDataTemplate: DataTypeEmptyCell = {
|
|
844
|
-
id: '1',
|
|
845
|
-
documentName: 'Договор №1',
|
|
846
|
-
createDate: '2022-03-24T17:50:40.206Z',
|
|
847
|
-
};
|
|
848
|
-
|
|
849
|
-
const fakeColumns: DataGridColumns<DataTypeEmptyCell>[] = [
|
|
850
|
-
{
|
|
851
|
-
field: 'documentName',
|
|
852
|
-
label: 'Наименование документа',
|
|
853
|
-
sortable: true,
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
field: 'recipient',
|
|
857
|
-
label: 'Получатель',
|
|
858
|
-
sortable: true,
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
field: 'createDate',
|
|
862
|
-
label: 'Дата создания',
|
|
863
|
-
sortable: true,
|
|
864
|
-
format: ({ createDate }) => new Date(createDate).toLocaleDateString(),
|
|
865
|
-
},
|
|
866
|
-
];
|
|
867
|
-
|
|
868
|
-
const columns = makeColumns(fakeColumns);
|
|
869
|
-
const fakeData: DataGridRowWithOptions<DataTypeEmptyCell>[] = [
|
|
870
|
-
{
|
|
871
|
-
id: '123456789',
|
|
872
|
-
createDate: makeRandomDate(),
|
|
873
|
-
},
|
|
874
|
-
...makeDataList(fakeDataTemplate),
|
|
875
|
-
];
|
|
876
|
-
|
|
877
|
-
return (
|
|
878
|
-
<DataGrid<DataTypeEmptyCell>
|
|
879
|
-
keyId='id'
|
|
880
|
-
rows={fakeData}
|
|
881
|
-
columns={columns}
|
|
882
|
-
onRetry={() => {}}
|
|
883
|
-
/>
|
|
884
|
-
);
|
|
885
|
-
};
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
* Таблица можем работать с вложенными структурами
|
|
889
|
-
*/
|
|
890
|
-
export const Tree = () => {
|
|
891
|
-
const ACTIONS: DataGridActions<DataType> = {
|
|
892
|
-
main: [
|
|
893
|
-
{
|
|
894
|
-
icon: <Trash />,
|
|
895
|
-
name: 'Удалить',
|
|
896
|
-
onClick: () => console.log('delete'),
|
|
897
|
-
},
|
|
898
|
-
],
|
|
899
|
-
};
|
|
900
|
-
|
|
901
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
902
|
-
{
|
|
903
|
-
field: 'actions',
|
|
904
|
-
renderCell: (row) => {
|
|
905
|
-
return <DataGridActionCell actions={ACTIONS} row={row} />;
|
|
906
|
-
},
|
|
907
|
-
},
|
|
908
|
-
]);
|
|
909
|
-
|
|
910
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
911
|
-
{
|
|
912
|
-
id: '123456789',
|
|
913
|
-
documentName: 'Пакет документов',
|
|
914
|
-
recipient: 'ПАО "Первый завод"',
|
|
915
|
-
createDate: makeRandomDate(),
|
|
916
|
-
children: [
|
|
917
|
-
{
|
|
918
|
-
id: '1234567890',
|
|
919
|
-
documentName: 'Договор №12345678',
|
|
920
|
-
recipient: 'ПАО "Первый завод"',
|
|
921
|
-
createDate: makeRandomDate(),
|
|
922
|
-
},
|
|
923
|
-
],
|
|
924
|
-
},
|
|
925
|
-
...makeDataListWithTree(9),
|
|
926
|
-
];
|
|
927
|
-
|
|
928
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
929
|
-
|
|
930
|
-
return (
|
|
931
|
-
<DataGrid
|
|
932
|
-
keyId='id'
|
|
933
|
-
rows={fakeData}
|
|
934
|
-
columns={columns}
|
|
935
|
-
onRowClick={handleRowClick}
|
|
936
|
-
onRetry={() => {}}
|
|
937
|
-
/>
|
|
938
|
-
);
|
|
939
|
-
};
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* Использую пропс `tree` можно настраивать поведение таблицы при работе с древовидной структурой данных.
|
|
943
|
-
* Параметр `isInitialExpanded` позволяет раскрыть вложенные структуру при первичном отображении
|
|
944
|
-
*/
|
|
945
|
-
export const TreeWithInitialExpanded = () => {
|
|
946
|
-
const ACTIONS: DataGridActions<DataType> = {
|
|
947
|
-
main: [
|
|
948
|
-
{
|
|
949
|
-
icon: <Trash />,
|
|
950
|
-
name: 'Удалить',
|
|
951
|
-
onClick: () => console.log('delete'),
|
|
952
|
-
},
|
|
953
|
-
],
|
|
954
|
-
};
|
|
955
|
-
|
|
956
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
957
|
-
{
|
|
958
|
-
field: 'actions',
|
|
959
|
-
renderCell: (row) => {
|
|
960
|
-
return <DataGridActionCell actions={ACTIONS} row={row} />;
|
|
961
|
-
},
|
|
962
|
-
},
|
|
963
|
-
]);
|
|
964
|
-
|
|
965
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
966
|
-
{
|
|
967
|
-
id: '123456789',
|
|
968
|
-
documentName: 'Пакет документов',
|
|
969
|
-
recipient: 'ПАО "Первый завод"',
|
|
970
|
-
createDate: makeRandomDate(),
|
|
971
|
-
children: [
|
|
972
|
-
{
|
|
973
|
-
id: '1234567890',
|
|
974
|
-
documentName: 'Договор №12345678',
|
|
975
|
-
recipient: 'ПАО "Первый завод"',
|
|
976
|
-
createDate: makeRandomDate(),
|
|
977
|
-
},
|
|
978
|
-
],
|
|
979
|
-
},
|
|
980
|
-
...makeDataListWithTree(9),
|
|
981
|
-
];
|
|
982
|
-
|
|
983
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
984
|
-
|
|
985
|
-
return (
|
|
986
|
-
<DataGrid
|
|
987
|
-
keyId='id'
|
|
988
|
-
rows={fakeData}
|
|
989
|
-
columns={columns}
|
|
990
|
-
tree={{
|
|
991
|
-
isInitialExpanded: true,
|
|
992
|
-
}}
|
|
993
|
-
onRowClick={handleRowClick}
|
|
994
|
-
onRetry={() => {}}
|
|
995
|
-
/>
|
|
996
|
-
);
|
|
997
|
-
};
|
|
998
|
-
|
|
999
|
-
/**
|
|
1000
|
-
* Используя пропс `expandedLevel` можно настраивать глубину раскрытия дерева при первичном отображении, если `isInitialExpanded=true`
|
|
1001
|
-
*/
|
|
1002
|
-
export const TreeWithExpandedLevel = () => {
|
|
1003
|
-
const ACTIONS: DataGridActions<DataType> = {
|
|
1004
|
-
main: [
|
|
1005
|
-
{
|
|
1006
|
-
icon: <Trash />,
|
|
1007
|
-
name: 'Удалить',
|
|
1008
|
-
onClick: () => console.log('delete'),
|
|
1009
|
-
},
|
|
1010
|
-
],
|
|
1011
|
-
};
|
|
1012
|
-
|
|
1013
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
1014
|
-
{
|
|
1015
|
-
field: 'actions',
|
|
1016
|
-
renderCell: (row) => {
|
|
1017
|
-
return <DataGridActionCell actions={ACTIONS} row={row} />;
|
|
1018
|
-
},
|
|
1019
|
-
},
|
|
1020
|
-
]);
|
|
1021
|
-
|
|
1022
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
1023
|
-
{
|
|
1024
|
-
id: '123456789',
|
|
1025
|
-
documentName: 'Пакет документов',
|
|
1026
|
-
recipient: 'ПАО "Первый завод"',
|
|
1027
|
-
createDate: makeRandomDate(),
|
|
1028
|
-
children: [
|
|
1029
|
-
{
|
|
1030
|
-
id: '1234567890',
|
|
1031
|
-
documentName: 'Договор №12345678',
|
|
1032
|
-
recipient: 'ПАО "Первый завод"',
|
|
1033
|
-
createDate: makeRandomDate(),
|
|
1034
|
-
},
|
|
1035
|
-
],
|
|
1036
|
-
},
|
|
1037
|
-
...makeDataListWithTree(9),
|
|
1038
|
-
];
|
|
1039
|
-
|
|
1040
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1041
|
-
|
|
1042
|
-
return (
|
|
1043
|
-
<DataGrid
|
|
1044
|
-
keyId='id'
|
|
1045
|
-
rows={fakeData}
|
|
1046
|
-
columns={columns}
|
|
1047
|
-
tree={{
|
|
1048
|
-
isInitialExpanded: true,
|
|
1049
|
-
expandedLevel: 3,
|
|
1050
|
-
}}
|
|
1051
|
-
onRowClick={handleRowClick}
|
|
1052
|
-
onRetry={() => {}}
|
|
1053
|
-
/>
|
|
1054
|
-
);
|
|
1055
|
-
};
|
|
1056
|
-
|
|
1057
|
-
/**
|
|
1058
|
-
* Пропс `initialVisibleChildrenCount` позволяет настраивать количество отображаемых элементов при раскрытии корневого элемента.
|
|
1059
|
-
* Элементы, сверх этого значения, будут скрыты под кнопку "Показать все"
|
|
1060
|
-
*/
|
|
1061
|
-
export const TreeWithInitialVisibleChildrenCount = () => {
|
|
1062
|
-
const ACTIONS: DataGridActions<DataType> = {
|
|
1063
|
-
main: [
|
|
1064
|
-
{
|
|
1065
|
-
icon: <Trash />,
|
|
1066
|
-
name: 'Удалить',
|
|
1067
|
-
onClick: () => console.log('delete'),
|
|
1068
|
-
},
|
|
1069
|
-
],
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
1073
|
-
{
|
|
1074
|
-
field: 'actions',
|
|
1075
|
-
renderCell: (row) => {
|
|
1076
|
-
return <DataGridActionCell actions={ACTIONS} row={row} />;
|
|
1077
|
-
},
|
|
1078
|
-
},
|
|
1079
|
-
]);
|
|
1080
|
-
|
|
1081
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
1082
|
-
{
|
|
1083
|
-
id: '123456789',
|
|
1084
|
-
documentName: 'Пакет документов',
|
|
1085
|
-
recipient: 'ПАО "Первый завод"',
|
|
1086
|
-
createDate: makeRandomDate(),
|
|
1087
|
-
children: [
|
|
1088
|
-
{
|
|
1089
|
-
id: '1234567890',
|
|
1090
|
-
documentName: 'Договор №12345678',
|
|
1091
|
-
recipient: 'ПАО "Первый завод"',
|
|
1092
|
-
createDate: makeRandomDate(),
|
|
1093
|
-
},
|
|
1094
|
-
],
|
|
1095
|
-
},
|
|
1096
|
-
...makeDataListWithTree(9),
|
|
1097
|
-
];
|
|
1098
|
-
|
|
1099
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1100
|
-
|
|
1101
|
-
return (
|
|
1102
|
-
<DataGrid
|
|
1103
|
-
keyId='id'
|
|
1104
|
-
rows={fakeData}
|
|
1105
|
-
columns={columns}
|
|
1106
|
-
tree={{
|
|
1107
|
-
isInitialExpanded: true,
|
|
1108
|
-
initialVisibleChildrenCount: 5,
|
|
1109
|
-
}}
|
|
1110
|
-
onRowClick={handleRowClick}
|
|
1111
|
-
onRetry={() => {}}
|
|
1112
|
-
/>
|
|
1113
|
-
);
|
|
1114
|
-
};
|
|
1115
|
-
|
|
1116
|
-
/**
|
|
1117
|
-
* Таблица с древовидной структурой так же работает в варианте с множественным выбором (чекбоксы)
|
|
1118
|
-
*/
|
|
1119
|
-
export const TreeWithCheckbox = () => {
|
|
1120
|
-
const ACTIONS: DataGridActions<DataType> = {
|
|
1121
|
-
main: [
|
|
1122
|
-
{
|
|
1123
|
-
icon: <Trash />,
|
|
1124
|
-
name: 'Удалить',
|
|
1125
|
-
onClick: () => console.log('delete'),
|
|
1126
|
-
},
|
|
1127
|
-
],
|
|
1128
|
-
};
|
|
1129
|
-
|
|
1130
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
1131
|
-
{
|
|
1132
|
-
field: 'actions',
|
|
1133
|
-
renderCell: (row) => {
|
|
1134
|
-
return <DataGridActionCell actions={ACTIONS} row={row} />;
|
|
1135
|
-
},
|
|
1136
|
-
},
|
|
1137
|
-
]);
|
|
1138
|
-
|
|
1139
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
1140
|
-
{
|
|
1141
|
-
id: '123456789',
|
|
1142
|
-
documentName: 'Пакет документов',
|
|
1143
|
-
recipient: 'ПАО "Первый завод"',
|
|
1144
|
-
createDate: makeRandomDate(),
|
|
1145
|
-
children: [
|
|
1146
|
-
{
|
|
1147
|
-
id: '1234567890',
|
|
1148
|
-
documentName: 'Договор №12345678',
|
|
1149
|
-
recipient: 'ПАО "Первый завод"',
|
|
1150
|
-
createDate: makeRandomDate(),
|
|
1151
|
-
},
|
|
1152
|
-
],
|
|
1153
|
-
},
|
|
1154
|
-
...makeDataListWithTree(9),
|
|
1155
|
-
];
|
|
1156
|
-
|
|
1157
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
1158
|
-
const [selected, setSelected] = useState<DataType[]>([]);
|
|
1159
|
-
const [isLoading, setLoading] = useState(true);
|
|
1160
|
-
|
|
1161
|
-
useEffect(() => {
|
|
1162
|
-
setTimeout(() => {
|
|
1163
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
1164
|
-
setLoading(false);
|
|
1165
|
-
}, 1500);
|
|
1166
|
-
}, []);
|
|
1167
|
-
|
|
1168
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1169
|
-
const handleSelect = (rows: DataType[]) => setSelected(rows);
|
|
1170
|
-
|
|
1171
|
-
return (
|
|
1172
|
-
<DataGrid<DataType, SortField>
|
|
1173
|
-
keyId='id'
|
|
1174
|
-
rows={slicedData}
|
|
1175
|
-
columns={columns}
|
|
1176
|
-
isLoading={isLoading}
|
|
1177
|
-
selectedRows={selected}
|
|
1178
|
-
onSelectRow={handleSelect}
|
|
1179
|
-
onRowClick={handleRowClick}
|
|
1180
|
-
onRetry={() => {}}
|
|
1181
|
-
/>
|
|
1182
|
-
);
|
|
1183
|
-
};
|
|
1184
|
-
|
|
1185
|
-
/**
|
|
1186
|
-
* Указав значение `isNotSelectable` в `options` можно сделать строку не доступной для выбора
|
|
1187
|
-
*/
|
|
1188
|
-
export const TreeWithOptionIsNotSelectable = () => {
|
|
1189
|
-
const columns = makeColumns(FAKE_COLUMNS);
|
|
1190
|
-
|
|
1191
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
1192
|
-
{
|
|
1193
|
-
id: '123456789',
|
|
1194
|
-
documentName: 'Пакет документов',
|
|
1195
|
-
recipient: 'ПАО "Первый завод"',
|
|
1196
|
-
createDate: makeRandomDate(),
|
|
1197
|
-
options: {
|
|
1198
|
-
isNotSelectable: true,
|
|
1199
|
-
},
|
|
1200
|
-
children: [
|
|
1201
|
-
{
|
|
1202
|
-
id: '1234567890',
|
|
1203
|
-
documentName: 'Договор №12345678',
|
|
1204
|
-
recipient: 'ПАО "Первый завод"',
|
|
1205
|
-
createDate: makeRandomDate(),
|
|
1206
|
-
options: {
|
|
1207
|
-
isNotSelectable: true,
|
|
1208
|
-
},
|
|
1209
|
-
},
|
|
1210
|
-
],
|
|
1211
|
-
},
|
|
1212
|
-
{
|
|
1213
|
-
id: '1234544545',
|
|
1214
|
-
documentName: 'Пакет документов',
|
|
1215
|
-
recipient: 'ООО "Купи Продай"',
|
|
1216
|
-
createDate: makeRandomDate(),
|
|
1217
|
-
options: {
|
|
1218
|
-
isNotSelectable: true,
|
|
1219
|
-
},
|
|
1220
|
-
children: [
|
|
1221
|
-
{
|
|
1222
|
-
id: '1234567890',
|
|
1223
|
-
documentName: 'Договор №12345678',
|
|
1224
|
-
recipient: 'ПАО "Первый завод"',
|
|
1225
|
-
createDate: makeRandomDate(),
|
|
1226
|
-
},
|
|
1227
|
-
],
|
|
1228
|
-
},
|
|
1229
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
1230
|
-
];
|
|
1231
|
-
|
|
1232
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
1233
|
-
const [selected, setSelected] = useState<DataType[]>([]);
|
|
1234
|
-
const [isLoading, setLoading] = useState(true);
|
|
1235
|
-
|
|
1236
|
-
useEffect(() => {
|
|
1237
|
-
setTimeout(() => {
|
|
1238
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
1239
|
-
setLoading(false);
|
|
1240
|
-
}, 1500);
|
|
1241
|
-
}, []);
|
|
1242
|
-
|
|
1243
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1244
|
-
|
|
1245
|
-
const handleSelect = (rows: DataType[]) => setSelected(rows);
|
|
1246
|
-
|
|
1247
|
-
return (
|
|
1248
|
-
<DataGrid<DataType, SortField>
|
|
1249
|
-
keyId='id'
|
|
1250
|
-
rows={slicedData}
|
|
1251
|
-
columns={columns}
|
|
1252
|
-
isLoading={isLoading}
|
|
1253
|
-
selectedRows={selected}
|
|
1254
|
-
onSelectRow={handleSelect}
|
|
1255
|
-
onRowClick={handleRowClick}
|
|
1256
|
-
onRetry={() => {}}
|
|
1257
|
-
/>
|
|
1258
|
-
);
|
|
1259
|
-
};
|
|
1260
|
-
|
|
1261
|
-
/**
|
|
1262
|
-
* `options` и `childrenColumns` на уровне строки, позволяет настраивать отображение дочерних элементов,
|
|
1263
|
-
* например указать кастомный список действий для вложенных элементов
|
|
1264
|
-
*/
|
|
1265
|
-
export const TreeWithOverrideColumns = () => {
|
|
1266
|
-
const ACTIONS: DataGridActions<DataType> = {
|
|
1267
|
-
main: [
|
|
1268
|
-
{
|
|
1269
|
-
icon: <Trash />,
|
|
1270
|
-
name: 'Удалить',
|
|
1271
|
-
onClick: () => console.log('delete'),
|
|
1272
|
-
},
|
|
1273
|
-
],
|
|
1274
|
-
};
|
|
1275
|
-
|
|
1276
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
1277
|
-
{
|
|
1278
|
-
field: 'actions',
|
|
1279
|
-
renderCell: (row) => {
|
|
1280
|
-
return <DataGridActionCell actions={ACTIONS} row={row} />;
|
|
1281
|
-
},
|
|
1282
|
-
},
|
|
1283
|
-
]);
|
|
1284
|
-
|
|
1285
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
1286
|
-
{
|
|
1287
|
-
id: '123456789',
|
|
1288
|
-
documentName: 'Пакет документов',
|
|
1289
|
-
recipient: 'ПАО "Первый завод"',
|
|
1290
|
-
createDate: makeRandomDate(),
|
|
1291
|
-
children: [
|
|
1292
|
-
{
|
|
1293
|
-
id: '1234567890',
|
|
1294
|
-
documentName: 'Договор №12345678',
|
|
1295
|
-
recipient: 'ПАО "Первый завод"',
|
|
1296
|
-
createDate: makeRandomDate(),
|
|
1297
|
-
},
|
|
1298
|
-
],
|
|
1299
|
-
options: {
|
|
1300
|
-
childrenColumns: [
|
|
1301
|
-
{
|
|
1302
|
-
field: 'actions',
|
|
1303
|
-
renderCell: (row) => {
|
|
1304
|
-
return (
|
|
1305
|
-
<DataGridActionCell
|
|
1306
|
-
actions={{
|
|
1307
|
-
main: [
|
|
1308
|
-
{
|
|
1309
|
-
icon: <Eye />,
|
|
1310
|
-
name: 'Просмотреть',
|
|
1311
|
-
onClick: () => console.log('main'),
|
|
1312
|
-
},
|
|
1313
|
-
],
|
|
1314
|
-
}}
|
|
1315
|
-
row={row}
|
|
1316
|
-
/>
|
|
1317
|
-
);
|
|
1318
|
-
},
|
|
1319
|
-
},
|
|
1320
|
-
],
|
|
1321
|
-
},
|
|
1322
|
-
},
|
|
1323
|
-
...makeDataListWithTree(9, {
|
|
1324
|
-
childrenColumns: [
|
|
1325
|
-
{
|
|
1326
|
-
field: 'actions',
|
|
1327
|
-
renderCell: (row) => {
|
|
1328
|
-
return (
|
|
1329
|
-
<DataGridActionCell
|
|
1330
|
-
actions={{
|
|
1331
|
-
main: [
|
|
1332
|
-
{
|
|
1333
|
-
icon: <Eye />,
|
|
1334
|
-
name: 'Просмотреть',
|
|
1335
|
-
onClick: () => console.log('main'),
|
|
1336
|
-
},
|
|
1337
|
-
],
|
|
1338
|
-
}}
|
|
1339
|
-
row={row}
|
|
1340
|
-
/>
|
|
1341
|
-
);
|
|
1342
|
-
},
|
|
1343
|
-
},
|
|
1344
|
-
],
|
|
1345
|
-
}),
|
|
1346
|
-
];
|
|
1347
|
-
|
|
1348
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
1349
|
-
const [selected, setSelected] = useState<DataType[]>([]);
|
|
1350
|
-
const [isLoading, setLoading] = useState(true);
|
|
1351
|
-
|
|
1352
|
-
useEffect(() => {
|
|
1353
|
-
setTimeout(() => {
|
|
1354
|
-
setSlicedData(fakeData.slice(0, 10));
|
|
1355
|
-
setLoading(false);
|
|
1356
|
-
}, 1500);
|
|
1357
|
-
}, []);
|
|
1358
|
-
|
|
1359
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1360
|
-
|
|
1361
|
-
const handleSelect = (rows: DataType[]) => setSelected(rows);
|
|
1362
|
-
|
|
1363
|
-
return (
|
|
1364
|
-
<DataGrid<DataType, SortField>
|
|
1365
|
-
keyId='id'
|
|
1366
|
-
rows={slicedData}
|
|
1367
|
-
columns={columns}
|
|
1368
|
-
isLoading={isLoading}
|
|
1369
|
-
selectedRows={selected}
|
|
1370
|
-
onSelectRow={handleSelect}
|
|
1371
|
-
onRowClick={handleRowClick}
|
|
1372
|
-
onRetry={() => {}}
|
|
1373
|
-
/>
|
|
1374
|
-
);
|
|
1375
|
-
};
|
|
1376
|
-
|
|
1377
|
-
/**
|
|
1378
|
-
* Возможно отображение дочерних элементов в виде вложенных строк. Для этого необходимо указать `variant="subrows"`
|
|
1379
|
-
* В таком варианте отображения вложенные элементы отображаются сразу и только часть из них прячется под кнопку "Показать все"
|
|
1380
|
-
*/
|
|
1381
|
-
export const Subrows = () => {
|
|
1382
|
-
const columns: DataGridColumns<DataType>[] = [
|
|
1383
|
-
{
|
|
1384
|
-
field: 'recipient',
|
|
1385
|
-
label: 'Получатель',
|
|
1386
|
-
sortable: true,
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
field: 'documentName',
|
|
1390
|
-
label: 'Наименование документа',
|
|
1391
|
-
sortable: true,
|
|
1392
|
-
},
|
|
1393
|
-
{
|
|
1394
|
-
field: 'createDate',
|
|
1395
|
-
label: 'Дата создания',
|
|
1396
|
-
sortable: true,
|
|
1397
|
-
format: ({ createDate }) => new Date(createDate).toLocaleDateString(),
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
field: 'actions',
|
|
1401
|
-
label: 'Действия',
|
|
1402
|
-
sortable: false,
|
|
1403
|
-
align: 'center',
|
|
1404
|
-
width: '120px',
|
|
1405
|
-
renderCell: (row) => {
|
|
1406
|
-
return <DataGridActionCell actions={FAKE_ACTIONS} row={row} />;
|
|
1407
|
-
},
|
|
1408
|
-
},
|
|
1409
|
-
];
|
|
1410
|
-
|
|
1411
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
1412
|
-
{
|
|
1413
|
-
id: '123456789',
|
|
1414
|
-
documentName: 'УКД № 47',
|
|
1415
|
-
recipient: 'ПАО "Первый завод"',
|
|
1416
|
-
createDate: makeRandomDate(),
|
|
1417
|
-
options: {
|
|
1418
|
-
isNotSelectable: true,
|
|
1419
|
-
childrenColumns: [
|
|
1420
|
-
{
|
|
1421
|
-
field: 'recipient',
|
|
1422
|
-
renderCell: () => null,
|
|
1423
|
-
},
|
|
1424
|
-
{
|
|
1425
|
-
field: 'actions',
|
|
1426
|
-
renderCell: () => null,
|
|
1427
|
-
},
|
|
1428
|
-
],
|
|
1429
|
-
},
|
|
1430
|
-
children: [
|
|
1431
|
-
{
|
|
1432
|
-
id: '1234567890',
|
|
1433
|
-
documentName: 'Акт № УТ000006319',
|
|
1434
|
-
recipient: 'ПАО "Первый завод"',
|
|
1435
|
-
createDate: makeRandomDate(),
|
|
1436
|
-
options: {
|
|
1437
|
-
isNotSelectable: true,
|
|
1438
|
-
},
|
|
1439
|
-
},
|
|
1440
|
-
{
|
|
1441
|
-
id: '1234567891',
|
|
1442
|
-
documentName: 'Торг-12 № 1446',
|
|
1443
|
-
recipient: 'ПАО "Первый завод"',
|
|
1444
|
-
createDate: makeRandomDate(),
|
|
1445
|
-
options: {
|
|
1446
|
-
isNotSelectable: true,
|
|
1447
|
-
},
|
|
1448
|
-
},
|
|
1449
|
-
{
|
|
1450
|
-
id: '1234567892',
|
|
1451
|
-
documentName: 'Счет-фактура №1237',
|
|
1452
|
-
recipient: 'ПАО "Первый завод"',
|
|
1453
|
-
createDate: makeRandomDate(),
|
|
1454
|
-
options: {
|
|
1455
|
-
isNotSelectable: true,
|
|
1456
|
-
},
|
|
1457
|
-
},
|
|
1458
|
-
],
|
|
1459
|
-
},
|
|
1460
|
-
{
|
|
1461
|
-
id: '1234544545',
|
|
1462
|
-
documentName: 'УКД № 46',
|
|
1463
|
-
recipient: 'ООО "Купи Продай"',
|
|
1464
|
-
createDate: makeRandomDate(),
|
|
1465
|
-
options: {
|
|
1466
|
-
childrenColumns: [
|
|
1467
|
-
{
|
|
1468
|
-
field: 'recipient',
|
|
1469
|
-
renderCell: () => null,
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
field: 'actions',
|
|
1473
|
-
renderCell: () => null,
|
|
1474
|
-
},
|
|
1475
|
-
],
|
|
1476
|
-
},
|
|
1477
|
-
children: [
|
|
1478
|
-
{
|
|
1479
|
-
id: '1234567890',
|
|
1480
|
-
documentName: 'Счет-фактура №1231',
|
|
1481
|
-
recipient: 'ПАО "Первый завод"',
|
|
1482
|
-
createDate: makeRandomDate(),
|
|
1483
|
-
options: {
|
|
1484
|
-
isNotSelectable: true,
|
|
1485
|
-
},
|
|
1486
|
-
},
|
|
1487
|
-
],
|
|
1488
|
-
},
|
|
1489
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
1490
|
-
];
|
|
1491
|
-
|
|
1492
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
1493
|
-
const [selected, setSelected] = useState<DataType[]>([]);
|
|
1494
|
-
const [isLoading, setLoading] = useState(true);
|
|
1495
|
-
const [page, setPage] = useState<number>(1);
|
|
1496
|
-
|
|
1497
|
-
useEffect(() => {
|
|
1498
|
-
setTimeout(() => {
|
|
1499
|
-
setSlicedData(fakeData.slice((page - 1) * 10, page * 10));
|
|
1500
|
-
setLoading(false);
|
|
1501
|
-
}, 1500);
|
|
1502
|
-
}, []);
|
|
1503
|
-
|
|
1504
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1505
|
-
|
|
1506
|
-
const handleSelect = (rows: DataType[]) => setSelected(rows);
|
|
1507
|
-
|
|
1508
|
-
const handleChangePage = (
|
|
1509
|
-
_event: ChangeEvent<unknown>,
|
|
1510
|
-
newPage: number,
|
|
1511
|
-
): void => {
|
|
1512
|
-
setLoading(true);
|
|
1513
|
-
setPage(newPage);
|
|
1514
|
-
|
|
1515
|
-
setTimeout(() => {
|
|
1516
|
-
setLoading(false);
|
|
1517
|
-
setSlicedData(fakeData.slice((newPage - 1) * 10, newPage * 10));
|
|
1518
|
-
}, 1500);
|
|
1519
|
-
};
|
|
1520
|
-
|
|
1521
|
-
return (
|
|
1522
|
-
<DataGrid<DataType, SortField>
|
|
1523
|
-
keyId='id'
|
|
1524
|
-
rows={slicedData}
|
|
1525
|
-
columns={columns}
|
|
1526
|
-
variant='subrows'
|
|
1527
|
-
subrows={{
|
|
1528
|
-
moreButtonColumnPosition: 2,
|
|
1529
|
-
}}
|
|
1530
|
-
isLoading={isLoading}
|
|
1531
|
-
selectedRows={selected}
|
|
1532
|
-
footer={
|
|
1533
|
-
<DataGridPagination
|
|
1534
|
-
rowsPerPage={10}
|
|
1535
|
-
totalCount={fakeData.length}
|
|
1536
|
-
onChange={handleChangePage}
|
|
1537
|
-
page={page}
|
|
1538
|
-
/>
|
|
1539
|
-
}
|
|
1540
|
-
onSelectRow={handleSelect}
|
|
1541
|
-
onRowClick={handleRowClick}
|
|
1542
|
-
onRetry={() => {}}
|
|
1543
|
-
/>
|
|
1544
|
-
);
|
|
1545
|
-
};
|
|
1546
|
-
|
|
1547
|
-
/**
|
|
1548
|
-
* Можно отключить отображение шеврона с помощью параметра `isVisibleCollapseButton=false`
|
|
1549
|
-
*/
|
|
1550
|
-
export const IsVisibleCollapseButton = () => {
|
|
1551
|
-
const columns: DataGridColumns<DataType>[] = [
|
|
1552
|
-
{
|
|
1553
|
-
field: 'recipient',
|
|
1554
|
-
label: 'Получатель',
|
|
1555
|
-
sortable: true,
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
field: 'documentName',
|
|
1559
|
-
label: 'Наименование документа',
|
|
1560
|
-
sortable: true,
|
|
1561
|
-
},
|
|
1562
|
-
{
|
|
1563
|
-
field: 'createDate',
|
|
1564
|
-
label: 'Дата создания',
|
|
1565
|
-
sortable: true,
|
|
1566
|
-
format: ({ createDate }) => new Date(createDate).toLocaleDateString(),
|
|
1567
|
-
},
|
|
1568
|
-
{
|
|
1569
|
-
field: 'actions',
|
|
1570
|
-
label: 'Действия',
|
|
1571
|
-
sortable: false,
|
|
1572
|
-
align: 'center',
|
|
1573
|
-
width: '120px',
|
|
1574
|
-
renderCell: (row) => {
|
|
1575
|
-
return <DataGridActionCell actions={FAKE_ACTIONS} row={row} />;
|
|
1576
|
-
},
|
|
1577
|
-
},
|
|
1578
|
-
];
|
|
1579
|
-
|
|
1580
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
1581
|
-
{
|
|
1582
|
-
id: '123456789',
|
|
1583
|
-
documentName: 'УКД № 47',
|
|
1584
|
-
recipient: 'ПАО "Первый завод"',
|
|
1585
|
-
createDate: makeRandomDate(),
|
|
1586
|
-
options: {
|
|
1587
|
-
childrenColumns: [
|
|
1588
|
-
{
|
|
1589
|
-
field: 'recipient',
|
|
1590
|
-
renderCell: () => null,
|
|
1591
|
-
},
|
|
1592
|
-
{
|
|
1593
|
-
field: 'actions',
|
|
1594
|
-
renderCell: () => null,
|
|
1595
|
-
},
|
|
1596
|
-
],
|
|
1597
|
-
},
|
|
1598
|
-
children: [
|
|
1599
|
-
{
|
|
1600
|
-
id: '1234567890',
|
|
1601
|
-
documentName: 'Акт № УТ000006319',
|
|
1602
|
-
recipient: 'ПАО "Первый завод"',
|
|
1603
|
-
createDate: makeRandomDate(),
|
|
1604
|
-
options: {
|
|
1605
|
-
isNotSelectable: true,
|
|
1606
|
-
},
|
|
1607
|
-
},
|
|
1608
|
-
{
|
|
1609
|
-
id: '1234567891',
|
|
1610
|
-
documentName: 'Торг-12 № 1446',
|
|
1611
|
-
recipient: 'ПАО "Первый завод"',
|
|
1612
|
-
createDate: makeRandomDate(),
|
|
1613
|
-
options: {
|
|
1614
|
-
isNotSelectable: true,
|
|
1615
|
-
},
|
|
1616
|
-
},
|
|
1617
|
-
{
|
|
1618
|
-
id: '1234567892',
|
|
1619
|
-
documentName: 'Счет-фактура №1237',
|
|
1620
|
-
recipient: 'ПАО "Первый завод"',
|
|
1621
|
-
createDate: makeRandomDate(),
|
|
1622
|
-
options: {
|
|
1623
|
-
isNotSelectable: true,
|
|
1624
|
-
},
|
|
1625
|
-
},
|
|
1626
|
-
],
|
|
1627
|
-
},
|
|
1628
|
-
{
|
|
1629
|
-
id: '1234544545',
|
|
1630
|
-
documentName: 'УКД № 46',
|
|
1631
|
-
recipient: 'ООО "Купи Продай"',
|
|
1632
|
-
createDate: makeRandomDate(),
|
|
1633
|
-
options: {
|
|
1634
|
-
childrenColumns: [
|
|
1635
|
-
{
|
|
1636
|
-
field: 'recipient',
|
|
1637
|
-
renderCell: () => null,
|
|
1638
|
-
},
|
|
1639
|
-
{
|
|
1640
|
-
field: 'actions',
|
|
1641
|
-
renderCell: () => null,
|
|
1642
|
-
},
|
|
1643
|
-
],
|
|
1644
|
-
},
|
|
1645
|
-
children: [
|
|
1646
|
-
{
|
|
1647
|
-
id: '1234567890',
|
|
1648
|
-
documentName: 'Счет-фактура №1231',
|
|
1649
|
-
recipient: 'ПАО "Первый завод"',
|
|
1650
|
-
createDate: makeRandomDate(),
|
|
1651
|
-
options: {
|
|
1652
|
-
isNotSelectable: true,
|
|
1653
|
-
},
|
|
1654
|
-
},
|
|
1655
|
-
],
|
|
1656
|
-
},
|
|
1657
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
1658
|
-
];
|
|
1659
|
-
|
|
1660
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
1661
|
-
const [selected, setSelected] = useState<DataType[]>([]);
|
|
1662
|
-
const [isLoading, setLoading] = useState(true);
|
|
1663
|
-
const [page, setPage] = useState<number>(1);
|
|
1664
|
-
|
|
1665
|
-
useEffect(() => {
|
|
1666
|
-
setTimeout(() => {
|
|
1667
|
-
setSlicedData(fakeData.slice((page - 1) * 10, page * 10));
|
|
1668
|
-
setLoading(false);
|
|
1669
|
-
}, 1500);
|
|
1670
|
-
}, []);
|
|
1671
|
-
|
|
1672
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1673
|
-
|
|
1674
|
-
const handleSelect = (rows: DataType[]) => setSelected(rows);
|
|
1675
|
-
|
|
1676
|
-
const handleChangePage = (
|
|
1677
|
-
_event: ChangeEvent<unknown>,
|
|
1678
|
-
newPage: number,
|
|
1679
|
-
): void => {
|
|
1680
|
-
setLoading(true);
|
|
1681
|
-
setPage(newPage);
|
|
1682
|
-
|
|
1683
|
-
setTimeout(() => {
|
|
1684
|
-
setLoading(false);
|
|
1685
|
-
setSlicedData(fakeData.slice((newPage - 1) * 10, newPage * 10));
|
|
1686
|
-
}, 1500);
|
|
1687
|
-
};
|
|
1688
|
-
|
|
1689
|
-
return (
|
|
1690
|
-
<DataGrid<DataType, SortField>
|
|
1691
|
-
keyId='id'
|
|
1692
|
-
rows={slicedData}
|
|
1693
|
-
columns={columns}
|
|
1694
|
-
variant='subrows'
|
|
1695
|
-
subrows={{
|
|
1696
|
-
moreButtonColumnPosition: 2,
|
|
1697
|
-
isVisibleCollapseButton: false,
|
|
1698
|
-
}}
|
|
1699
|
-
isLoading={isLoading}
|
|
1700
|
-
selectedRows={selected}
|
|
1701
|
-
footer={
|
|
1702
|
-
<DataGridPagination
|
|
1703
|
-
rowsPerPage={10}
|
|
1704
|
-
totalCount={fakeData.length}
|
|
1705
|
-
onChange={handleChangePage}
|
|
1706
|
-
page={page}
|
|
1707
|
-
/>
|
|
1708
|
-
}
|
|
1709
|
-
onSelectRow={handleSelect}
|
|
1710
|
-
onRowClick={handleRowClick}
|
|
1711
|
-
onRetry={() => {}}
|
|
1712
|
-
/>
|
|
1713
|
-
);
|
|
1714
|
-
};
|
|
1715
|
-
|
|
1716
|
-
/**
|
|
1717
|
-
* Состояние загрузки регулируется полем `loading` экшенов переданных в `<ActionCell/>`
|
|
1718
|
-
*/
|
|
1719
|
-
export const WithLoaderInButton = () => {
|
|
1720
|
-
const ACTIONS_WITH_LOADER: DataGridActions<DataType> = {
|
|
1721
|
-
main: [
|
|
1722
|
-
{
|
|
1723
|
-
icon: <Eye />,
|
|
1724
|
-
name: 'Просмотреть',
|
|
1725
|
-
onClick: () => console.log('main'),
|
|
1726
|
-
},
|
|
1727
|
-
{
|
|
1728
|
-
icon: <Send />,
|
|
1729
|
-
loading: true,
|
|
1730
|
-
name: 'Отправить',
|
|
1731
|
-
},
|
|
1732
|
-
],
|
|
1733
|
-
secondary: [
|
|
1734
|
-
{ name: 'Редактировать', onClick: () => console.log('secondary 1') },
|
|
1735
|
-
{ name: 'Удалить', onClick: () => console.log('secondary 2') },
|
|
1736
|
-
],
|
|
1737
|
-
};
|
|
1738
|
-
|
|
1739
|
-
const columns = makeColumns(FAKE_COLUMNS, [
|
|
1740
|
-
{
|
|
1741
|
-
field: 'actions',
|
|
1742
|
-
renderCell: (row) => {
|
|
1743
|
-
return <DataGridActionCell actions={ACTIONS_WITH_LOADER} row={row} />;
|
|
1744
|
-
},
|
|
1745
|
-
},
|
|
1746
|
-
]);
|
|
1747
|
-
|
|
1748
|
-
const fakeData: DataGridRowWithOptions<DataType>[] = [
|
|
1749
|
-
{
|
|
1750
|
-
id: '123456789',
|
|
1751
|
-
documentName: 'Договор №12345678',
|
|
1752
|
-
recipient: 'ПАО "Первый завод"',
|
|
1753
|
-
createDate: makeRandomDate(),
|
|
1754
|
-
},
|
|
1755
|
-
...makeDataList(FAKE_DATA_TEMPLATE),
|
|
1756
|
-
];
|
|
1757
|
-
|
|
1758
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
1759
|
-
const [isLoading, setLoading] = useState(true);
|
|
1760
|
-
|
|
1761
|
-
useEffect(() => {
|
|
1762
|
-
setTimeout(() => {
|
|
1763
|
-
setSlicedData(fakeData.slice(0, 5));
|
|
1764
|
-
setLoading(false);
|
|
1765
|
-
}, 1500);
|
|
1766
|
-
}, []);
|
|
1767
|
-
|
|
1768
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1769
|
-
|
|
1770
|
-
return (
|
|
1771
|
-
<DataGrid<DataType, SortField>
|
|
1772
|
-
keyId='id'
|
|
1773
|
-
rows={slicedData}
|
|
1774
|
-
columns={columns}
|
|
1775
|
-
isLoading={isLoading}
|
|
1776
|
-
onRowClick={handleRowClick}
|
|
1777
|
-
onRetry={() => {}}
|
|
1778
|
-
/>
|
|
1779
|
-
);
|
|
1780
|
-
};
|
|
1781
|
-
|
|
1782
|
-
/**
|
|
1783
|
-
* В случае, когда нет данных для отображения их в таблице, необходимо показать изображение и текст “Нет данных” и убрать сортировку для столбцов, если она присутствует.
|
|
1784
|
-
* Изображение можно передать через ConfigProvider.
|
|
1785
|
-
*/
|
|
1786
|
-
export const NoData = () => {
|
|
1787
|
-
const noDataStubSrc = '/no-data-stub.svg';
|
|
1788
|
-
const columns = FAKE_COLUMNS;
|
|
1789
|
-
|
|
1790
|
-
const [isLoading, setLoading] = useState(true);
|
|
1791
|
-
const [slicedData, setSlicedData] = useState<DataType[]>([]);
|
|
1792
|
-
|
|
1793
|
-
useEffect(() => {
|
|
1794
|
-
setTimeout(() => {
|
|
1795
|
-
setSlicedData([]);
|
|
1796
|
-
setLoading(false);
|
|
1797
|
-
}, 1500);
|
|
1798
|
-
}, []);
|
|
1799
|
-
|
|
1800
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1801
|
-
|
|
1802
|
-
return (
|
|
1803
|
-
<ConfigProvider
|
|
1804
|
-
imagesMap={{
|
|
1805
|
-
defaultErrorImgSrc: '',
|
|
1806
|
-
noDataImgSrc: noDataStubSrc,
|
|
1807
|
-
outdatedReleaseErrorImgSrc: '',
|
|
1808
|
-
}}
|
|
1809
|
-
>
|
|
1810
|
-
<DataGrid<DataType, SortField>
|
|
1811
|
-
keyId='id'
|
|
1812
|
-
activeRowId={'3'}
|
|
1813
|
-
rows={slicedData}
|
|
1814
|
-
columns={columns}
|
|
1815
|
-
isLoading={isLoading}
|
|
1816
|
-
onRowClick={handleRowClick}
|
|
1817
|
-
onRetry={() => {}}
|
|
1818
|
-
noDataOptions={{
|
|
1819
|
-
action: {
|
|
1820
|
-
text: 'Сбросить фильтры',
|
|
1821
|
-
onClick: () => {},
|
|
1822
|
-
},
|
|
1823
|
-
}}
|
|
1824
|
-
/>
|
|
1825
|
-
</ConfigProvider>
|
|
1826
|
-
);
|
|
1827
|
-
};
|
|
1828
|
-
|
|
1829
|
-
export const Loading = () => {
|
|
1830
|
-
const noDataStubSrc = '/no-data-stub.svg';
|
|
1831
|
-
|
|
1832
|
-
const columns = FAKE_COLUMNS;
|
|
1833
|
-
|
|
1834
|
-
const handleRetry = () => console.log('retry request');
|
|
1835
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1836
|
-
|
|
1837
|
-
return (
|
|
1838
|
-
<ConfigProvider
|
|
1839
|
-
imagesMap={{
|
|
1840
|
-
defaultErrorImgSrc: errorIllustration,
|
|
1841
|
-
noDataImgSrc: noDataStubSrc,
|
|
1842
|
-
outdatedReleaseErrorImgSrc: '',
|
|
1843
|
-
}}
|
|
1844
|
-
>
|
|
1845
|
-
<DataGrid<DataType, SortField>
|
|
1846
|
-
keyId='id'
|
|
1847
|
-
isLoading
|
|
1848
|
-
rows={[]}
|
|
1849
|
-
columns={columns}
|
|
1850
|
-
onRowClick={handleRowClick}
|
|
1851
|
-
onRetry={handleRetry}
|
|
1852
|
-
/>
|
|
1853
|
-
</ConfigProvider>
|
|
1854
|
-
);
|
|
1855
|
-
};
|
|
1856
|
-
|
|
1857
|
-
export const ErrorExample = () => {
|
|
1858
|
-
const noDataStubSrc = '/no-data-stub.svg';
|
|
1859
|
-
const columns = FAKE_COLUMNS;
|
|
1860
|
-
|
|
1861
|
-
const handleRetry = () => console.log('retry request');
|
|
1862
|
-
const handleRowClick = (row: DataType) => console.log('row clicked', row);
|
|
1863
|
-
|
|
1864
|
-
return (
|
|
1865
|
-
<ConfigProvider
|
|
1866
|
-
imagesMap={{
|
|
1867
|
-
defaultErrorImgSrc: errorIllustration,
|
|
1868
|
-
noDataImgSrc: noDataStubSrc,
|
|
1869
|
-
outdatedReleaseErrorImgSrc: '',
|
|
1870
|
-
}}
|
|
1871
|
-
>
|
|
1872
|
-
<DataGrid<DataType, SortField>
|
|
1873
|
-
keyId='id'
|
|
1874
|
-
isError
|
|
1875
|
-
errorMsg='Ошибка 500'
|
|
1876
|
-
rows={[]}
|
|
1877
|
-
columns={columns}
|
|
1878
|
-
onRowClick={handleRowClick}
|
|
1879
|
-
onRetry={handleRetry}
|
|
1880
|
-
/>
|
|
1881
|
-
</ConfigProvider>
|
|
1882
|
-
);
|
|
1883
|
-
};
|