@max-ts/components 0.2.3 → 0.3.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/_commonjsHelpers.mjs +6 -0
- package/lib/_virtual/index.mjs +5 -0
- package/lib/_virtual/index2.mjs +4 -0
- package/lib/_virtual/index3.mjs +4 -0
- package/lib/_virtual/index4.mjs +7 -0
- package/lib/_virtual/index5.mjs +4 -0
- package/lib/_virtual/react-is.development.mjs +4 -0
- package/lib/_virtual/react-is.development2.mjs +4 -0
- package/lib/_virtual/react-is.production.min.mjs +4 -0
- package/lib/_virtual/react-is.production.mjs +4 -0
- package/lib/components/Accordion/styles.d.ts +2 -2
- package/lib/components/Accordion/styles.mjs +21 -11
- package/lib/components/ActionCell/MainAction/MainAction.d.ts +1 -4
- package/lib/components/ActionCell/MainAction/MainAction.mjs +110 -44
- package/lib/components/ActionCell/SecondaryAction/SecondaryActions.d.ts +0 -3
- package/lib/components/ActionCell/styles.mjs +13 -3
- package/lib/components/ActionGroup/ActionGroup.d.ts +23 -0
- package/lib/components/ActionGroup/ActionGroup.mjs +17 -0
- package/lib/components/ActionGroup/MainActions/MainActions.d.ts +65 -0
- package/lib/components/ActionGroup/MainActions/MainActions.mjs +129 -0
- package/lib/components/ActionGroup/MainActions/index.d.ts +1 -0
- package/lib/components/ActionGroup/MainActions/styles.d.ts +13 -0
- package/lib/components/ActionGroup/MainActions/styles.mjs +18 -0
- package/lib/components/ActionGroup/SecondaryActions/SecondaryActions.d.ts +21 -0
- package/lib/components/ActionGroup/SecondaryActions/SecondaryActions.mjs +97 -0
- package/lib/components/ActionGroup/SecondaryActions/index.d.ts +1 -0
- package/lib/components/ActionGroup/SecondaryVisibleActions/SecondaryVisibleActions.d.ts +19 -0
- package/lib/components/ActionGroup/SecondaryVisibleActions/SecondaryVisibleActions.mjs +103 -0
- package/lib/components/ActionGroup/SecondaryVisibleActions/index.d.ts +1 -0
- package/lib/components/ActionGroup/SecondaryVisibleActions/styles.d.ts +9 -0
- package/lib/components/ActionGroup/index.d.ts +1 -0
- package/lib/components/ActionGroup/styles.d.ts +1 -0
- package/lib/components/ActionGroup/styles.mjs +18 -0
- package/lib/components/ActionGroup/useLogic/useLogic.d.ts +7 -0
- package/lib/components/ActionGroup/useLogic/useLogic.mjs +9 -0
- package/lib/components/Autocomplete/styles.mjs +13 -3
- package/lib/components/Badge/styles.d.ts +1 -1
- package/lib/components/BottomDrawer/styles.d.ts +3 -3
- package/lib/components/Breadcrumbs/index.d.ts +1 -0
- package/lib/components/Button/Button.mjs +17 -17
- package/lib/components/Button/constants.d.ts +1 -1
- package/lib/components/Button/constants.mjs +2 -2
- package/lib/components/Button/styles.d.ts +1 -1
- package/lib/components/ButtonBase/ButtonBase.d.ts +1 -0
- package/lib/components/ButtonBase/index.d.ts +1 -0
- package/lib/components/ButtonGroup/index.d.ts +1 -0
- package/lib/components/Card/index.d.ts +1 -0
- package/lib/components/CardActions/index.d.ts +1 -0
- package/lib/components/CardContent/index.d.ts +1 -0
- package/lib/components/CardHeader/index.d.ts +1 -0
- package/lib/components/CheckboxField/styles.mjs +15 -5
- package/lib/components/Chevron/styles.mjs +14 -4
- package/lib/components/ConfirmAction/styles.d.ts +2 -2
- package/lib/components/ConfirmAction/styles.mjs +17 -7
- package/lib/components/ConfirmDialog/styles.mjs +10 -4
- package/lib/components/ConfirmDialog/useLogic/useLogic.d.ts +1 -1
- package/lib/components/Container/styles.d.ts +1 -0
- package/lib/components/Container/styles.mjs +16 -13
- package/lib/components/ContentState/styles.mjs +13 -3
- package/lib/components/CopyTypography/styles.d.ts +2 -2
- package/lib/components/CopyTypography/styles.mjs +16 -6
- package/lib/components/DataGrid/Body/Body.d.ts +1 -29
- package/lib/components/DataGrid/Body/Body.mjs +26 -29
- package/lib/components/DataGrid/Body/styles.mjs +15 -5
- package/lib/components/DataGrid/Cell/styles.mjs +15 -5
- package/lib/components/DataGrid/DataGrid.d.ts +0 -53
- package/lib/components/DataGrid/DataGrid.mjs +49 -71
- package/lib/components/DataGrid/Head/styles.mjs +20 -10
- package/lib/components/DataGrid/HeadCell/HeadCell.mjs +21 -20
- package/lib/components/DataGrid/HeadCell/styles.d.ts +2 -2
- package/lib/components/DataGrid/HeadCell/styles.mjs +19 -8
- package/lib/components/DataGrid/Row/Row.d.ts +1 -38
- package/lib/components/DataGrid/Row/Row.mjs +55 -147
- package/lib/components/DataGrid/Row/constants.d.ts +0 -1
- package/lib/components/DataGrid/Row/constants.mjs +2 -3
- package/lib/components/DataGrid/Row/index.d.ts +0 -1
- package/lib/components/DataGrid/Row/styles.d.ts +0 -22
- package/lib/components/DataGrid/Row/styles.mjs +21 -78
- package/lib/components/DataGrid/Row/useLogic/useLogic.d.ts +2 -10
- package/lib/components/DataGrid/Row/useLogic/useLogic.mjs +36 -67
- package/lib/components/DataGrid/constants.d.ts +0 -3
- package/lib/components/DataGrid/constants.mjs +3 -6
- package/lib/components/DataGrid/enums.d.ts +0 -4
- package/lib/components/DataGrid/enums.mjs +2 -3
- package/lib/components/DataGrid/faker.d.ts +1 -1
- package/lib/components/DataGrid/styles.mjs +20 -10
- package/lib/components/DataGrid/types.d.ts +2 -7
- package/lib/components/DataGrid/useLogic/useLogic.d.ts +1 -6
- package/lib/components/DataGrid/useLogic/useLogic.mjs +31 -36
- package/lib/components/DataGridActionCell/styles.mjs +13 -3
- package/lib/components/DataGridActionCell/useLogic/useLogic.mjs +13 -42
- package/lib/components/DataGridOld/Cell/styles.d.ts +1 -1
- package/lib/components/DataGridOld/HeadCell/styles.d.ts +1 -1
- package/lib/components/DataGridPagination/DataGridPagination.mjs +9 -9
- package/lib/components/DataGridPagination/faker.d.ts +1 -1
- package/lib/components/DataGridPagination/styles.d.ts +2 -2
- package/lib/components/DataGridPagination/styles.mjs +22 -12
- package/lib/components/Description/Name/styles.mjs +15 -5
- package/lib/components/Description/Value/styles.d.ts +10 -10
- package/lib/components/Description/Value/styles.mjs +83 -9
- package/lib/components/Description/Value/useLogic/useLogic.mjs +3 -3
- package/lib/components/Description/styles.mjs +13 -3
- package/lib/components/Description/useLogic/useLogic.d.ts +1 -1
- package/lib/components/DescriptionList/styles.mjs +20 -10
- package/lib/components/DescriptionTooltip/DescriptionTooltip.d.ts +9 -0
- package/lib/components/DescriptionTooltip/DescriptionTooltip.mjs +14 -0
- package/lib/components/DescriptionTooltip/index.d.ts +1 -0
- package/lib/components/DescriptionTooltip/styles.d.ts +4 -0
- package/lib/components/DescriptionTooltip/styles.mjs +27 -0
- package/lib/components/DialogContentText/styles.d.ts +1 -1
- package/lib/components/DialogHeader/styles.mjs +22 -12
- package/lib/components/Filename/styles.d.ts +2 -2
- package/lib/components/Filename/styles.mjs +16 -6
- package/lib/components/FormHelperText/FormHelperTextContent/styles.mjs +26 -16
- package/lib/components/FormLabel/styles.d.ts +1 -1
- package/lib/components/IconButton/styles.mjs +20 -14
- package/lib/components/Link/Link.d.ts +1 -1
- package/lib/components/Link/styles.d.ts +1 -1
- package/lib/components/ListItem/styles.d.ts +1 -1
- package/lib/components/MaskField/MaskField.d.ts +6 -0
- package/lib/components/MaskField/MaskField.mjs +10 -0
- package/lib/components/MaskField/index.d.ts +1 -0
- package/lib/components/MenuList/styles.d.ts +1 -1
- package/lib/components/NavMenu/Item/ItemButton/styles.d.ts +125 -125
- package/lib/components/OverflowTypography/styles.d.ts +4 -4
- package/lib/components/OverflowTypography/styles.mjs +16 -6
- package/lib/components/Placeholder/Image/styles.mjs +14 -4
- package/lib/components/Placeholder/styles.d.ts +4 -4
- package/lib/components/Placeholder/styles.mjs +31 -21
- package/lib/components/SearchField/styles.mjs +22 -12
- package/lib/components/Select/styles.d.ts +1 -1
- package/lib/components/Skeleton/styles.d.ts +1 -1
- package/lib/components/Skeleton/styles.mjs +7 -10
- package/lib/components/Slider/Slider.d.ts +2 -0
- package/lib/components/Slider/Slider.mjs +6 -0
- package/lib/components/Slider/index.d.ts +1 -0
- package/lib/components/Slider/styles.d.ts +1 -0
- package/lib/components/Slider/styles.mjs +40 -0
- package/lib/components/Tab/styles.d.ts +1 -1
- package/lib/components/Tabs/styles.mjs +16 -6
- package/lib/components/Tag/Tag.mjs +27 -23
- package/lib/components/Tag/styles.d.ts +1 -1
- package/lib/components/TagBadge/styles.mjs +14 -4
- package/lib/components/TagsList/Tag/styles.d.ts +1 -1
- package/lib/components/TagsList/Tag/styles.mjs +14 -4
- package/lib/components/TagsList/styles.mjs +13 -3
- package/lib/components/TextField/TextField.d.ts +1 -1
- package/lib/components/TextField/TextField.mjs +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +11 -0
- package/lib/components/ThemeProvider/ThemeProvider.mjs +9 -0
- package/lib/components/ThemeProvider/index.d.ts +1 -0
- package/lib/components/index.d.ts +12 -0
- package/lib/components.css +1 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/index.mjs +225 -208
- package/lib/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
- package/lib/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
- package/lib/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs +120 -0
- package/lib/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +53 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/colors/blue.mjs +10 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/colors/common.mjs +7 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/colors/green.mjs +11 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/colors/grey.mjs +19 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/colors/lightBlue.mjs +10 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/colors/orange.mjs +10 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/colors/purple.mjs +11 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/colors/red.mjs +10 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/createColorScheme.mjs +44 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/createGetSelector.mjs +41 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/createMixins.mjs +19 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/createPalette.mjs +261 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/createTheme.mjs +60 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/createThemeNoVars.mjs +75 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/createThemeWithVars.mjs +161 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/createTransitions.mjs +66 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/createTypography.mjs +80 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/defaultTheme.mjs +5 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/excludeVariablesFromRoot.mjs +4 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/getOverlayAlpha.mjs +7 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/identifier.mjs +4 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/rootShouldForwardProp.mjs +5 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/shadows.mjs +7 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/shouldSkipGeneratingVar.mjs +7 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/slotShouldForwardProp.mjs +6 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/stringifyTheme.mjs +29 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/styled.mjs +13 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/useTheme.mjs +11 -0
- package/lib/node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/zIndex.mjs +13 -0
- package/lib/node_modules/.pnpm/@mui_styled-engine@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emo_6faee6770fc007ef214af3c8aa5695a8/node_modules/@mui/styled-engine/index.mjs +33 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/borders/borders.mjs +45 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/breakpoints/breakpoints.mjs +67 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/colorManipulator/colorManipulator.mjs +145 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/compose/compose.mjs +10 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.mjs +62 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/createStyled/createStyled.mjs +153 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/createTheme/applyStyles.mjs +15 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/createTheme/createSpacing.mjs +15 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/createTheme/createTheme.mjs +44 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/createTheme/shape.mjs +6 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.mjs +49 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/cssGrid/cssGrid.mjs +78 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/cssVars/cssVarsParser.mjs +41 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/cssVars/getColorSchemeSelector.mjs +8 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/cssVars/prepareCssVars.mjs +117 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/cssVars/prepareTypographyVars.mjs +10 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/memoize/memoize.mjs +7 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/merge/merge.mjs +10 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/palette/palette.mjs +26 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/preprocessStyles.mjs +17 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/responsivePropType/responsivePropType.mjs +5 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/sizing/sizing.mjs +63 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/spacing/spacing.mjs +84 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/style/style.mjs +43 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.mjs +296 -0
- package/lib/node_modules/.pnpm/@mui_system@6.4.3_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion_st_5f10f346196051285cfc2e46c43ad4ff/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.mjs +92 -0
- package/lib/node_modules/.pnpm/@mui_utils@6.4.3_@types_react@19.0.10_react@19.0.0/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.mjs +17 -0
- package/lib/node_modules/.pnpm/@mui_utils@6.4.3_@types_react@19.0.10_react@19.0.0/node_modules/@mui/utils/esm/capitalize/capitalize.mjs +9 -0
- package/lib/node_modules/.pnpm/@mui_utils@6.4.3_@types_react@19.0.10_react@19.0.0/node_modules/@mui/utils/esm/clamp/clamp.mjs +6 -0
- package/lib/node_modules/.pnpm/@mui_utils@6.4.3_@types_react@19.0.10_react@19.0.0/node_modules/@mui/utils/esm/deepmerge/deepmerge.mjs +31 -0
- package/lib/node_modules/.pnpm/@mui_utils@6.4.3_@types_react@19.0.10_react@19.0.0/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.mjs +7 -0
- package/lib/node_modules/.pnpm/@mui_utils@6.4.3_@types_react@19.0.10_react@19.0.0/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.mjs +23 -0
- package/lib/node_modules/.pnpm/@mui_utils@6.4.3_@types_react@19.0.10_react@19.0.0/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.mjs +28 -0
- package/lib/node_modules/.pnpm/@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/Input.mjs +55 -0
- package/lib/node_modules/.pnpm/@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/SyntheticChangeError.mjs +11 -0
- package/lib/node_modules/.pnpm/@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/createProxy.mjs +8 -0
- package/lib/node_modules/.pnpm/@react-input_core@2.0.2_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/core/module/helpers-C8k3UfPS.mjs +129 -0
- package/lib/node_modules/.pnpm/@react-input_mask@2.0.4_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/mask/module/Mask.mjs +90 -0
- package/lib/node_modules/.pnpm/@react-input_mask@2.0.4_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/mask/module/helpers-BtaZ0NTN.mjs +226 -0
- package/lib/node_modules/.pnpm/@react-input_mask@2.0.4_@types_react@19.0.10_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/@react-input/mask/module/useMask.mjs +12 -0
- package/lib/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.mjs +54 -0
- package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.mjs +54 -0
- package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.mjs +52 -0
- package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.mjs +329 -0
- package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.mjs +17 -0
- package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +10 -0
- package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.mjs +7 -0
- package/lib/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.mjs +95 -0
- package/lib/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.mjs +78 -0
- package/lib/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.mjs +10 -0
- package/lib/node_modules/.pnpm/react-is@19.0.0/node_modules/react-is/cjs/react-is.development.mjs +76 -0
- package/lib/node_modules/.pnpm/react-is@19.0.0/node_modules/react-is/cjs/react-is.production.mjs +76 -0
- package/lib/node_modules/.pnpm/react-is@19.0.0/node_modules/react-is/index.mjs +10 -0
- package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.mjs +18 -18
- package/lib/theme/baseTheme/baseTheme.d.ts +1 -3
- package/lib/theme/baseTheme/baseTheme.mjs +21 -21
- package/lib/theme/components/MuiButton.mjs +5 -5
- package/lib/theme/components/MuiSwitch.mjs +1 -1
- package/lib/theme/components/components.d.ts +1 -19
- package/lib/theme/components/components.mjs +71 -108
- package/lib/theme/index.d.ts +1 -1
- package/lib/theme/palette/palette.mjs +20 -20
- package/lib/theme/typography.mjs +6 -2
- package/package.json +3 -1
- package/lib/components/DataGrid/DataGridContext/DataGridContext.d.ts +0 -7
- package/lib/components/DataGrid/DataGridContext/DataGridContext.mjs +0 -12
- package/lib/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +0 -6
- package/lib/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.mjs +0 -41
- package/lib/components/DataGrid/DataGridContext/DataGridProvider/index.d.ts +0 -1
- package/lib/components/DataGrid/DataGridContext/index.d.ts +0 -2
- package/lib/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +0 -55
- package/lib/components/DataGrid/Row/NestedChildren/NestedChildren.mjs +0 -72
- package/lib/components/DataGrid/Row/NestedChildren/index.d.ts +0 -1
- package/lib/components/DataGrid/Row/NestedChildren/styles.d.ts +0 -20
- package/lib/components/DataGrid/Row/NestedChildren/styles.mjs +0 -68
- package/lib/components/DataGrid/Row/NestedChildren/useLogic/useLogic.d.ts +0 -18
- package/lib/components/DataGrid/Row/NestedChildren/useLogic/useLogic.mjs +0 -27
- package/lib/components/DataGrid/Row/RowContext/RowContext.d.ts +0 -7
- package/lib/components/DataGrid/Row/RowContext/RowContext.mjs +0 -11
- package/lib/components/DataGrid/Row/RowContext/RowProvider/RowProvider.d.ts +0 -6
- package/lib/components/DataGrid/Row/RowContext/RowProvider/RowProvider.mjs +0 -25
- package/lib/components/DataGrid/Row/RowContext/RowProvider/index.d.ts +0 -1
- package/lib/components/DataGrid/Row/RowContext/index.d.ts +0 -2
- package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.d.ts +0 -4
- package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.mjs +0 -8
- package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/index.d.ts +0 -1
- package/lib/components/DataGrid/Row/useLogic/utils/index.d.ts +0 -2
- package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/index.d.ts +0 -1
- package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.d.ts +0 -2
- package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.mjs +0 -14
- package/lib/theme/hooks/index.d.ts +0 -1
- package/lib/theme/hooks/useTheme/index.d.ts +0 -2
- package/lib/theme/hooks/useTheme/index.mjs +0 -5
- /package/lib/components/{DataGrid/Row/NestedChildren → ActionGroup}/useLogic/index.d.ts +0 -0
|
@@ -2,14 +2,10 @@ import { MouseEvent, SyntheticEvent } from 'react';
|
|
|
2
2
|
import { CellValue } from '../../types';
|
|
3
3
|
import { RowProps } from '../Row';
|
|
4
4
|
type UseLogicParams<TData extends Record<string, CellValue>> = RowProps<TData>;
|
|
5
|
-
export declare const useLogic: <TData extends Record<string, CellValue>>({ keyId, columns, row,
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
isShowConnector: boolean;
|
|
8
|
-
childrenColumns: any[];
|
|
5
|
+
export declare const useLogic: <TData extends Record<string, CellValue>>({ keyId, columns, row, activeRowId, options, isSelectable, selectedRows, onSelectRow, onRowClick, }: UseLogicParams<TData>) => {
|
|
9
6
|
rowId: string;
|
|
10
7
|
disabled: boolean | undefined;
|
|
11
|
-
|
|
12
|
-
handleToggle: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
columns: import('../../types').DataGridColumns<TData>[];
|
|
13
9
|
rowProps: {
|
|
14
10
|
$isHovered: boolean;
|
|
15
11
|
$isSelected: boolean;
|
|
@@ -27,9 +23,5 @@ export declare const useLogic: <TData extends Record<string, CellValue>>({ keyId
|
|
|
27
23
|
disabled: boolean | undefined;
|
|
28
24
|
onChange: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
|
|
29
25
|
};
|
|
30
|
-
nestedChildrenProps: {
|
|
31
|
-
isOpen: boolean;
|
|
32
|
-
rowId: string;
|
|
33
|
-
};
|
|
34
26
|
};
|
|
35
27
|
export {};
|
|
@@ -1,79 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
level: u,
|
|
14
|
-
variant: b,
|
|
15
|
-
activeRowId: C,
|
|
16
|
-
options: n,
|
|
17
|
-
isInitialExpanded: h = !1,
|
|
18
|
-
expandedLevel: g,
|
|
19
|
-
isSelectable: D,
|
|
20
|
-
selectedRows: x,
|
|
21
|
-
onSelectRow: O,
|
|
22
|
-
onRowClick: d,
|
|
23
|
-
isVisibleCollapseButton: T
|
|
1
|
+
import { useState as g } from "react";
|
|
2
|
+
import { DISABLE_ROW_ATTR as a } from "../constants.mjs";
|
|
3
|
+
const R = ({
|
|
4
|
+
keyId: i,
|
|
5
|
+
columns: d,
|
|
6
|
+
row: t,
|
|
7
|
+
activeRowId: c,
|
|
8
|
+
options: r,
|
|
9
|
+
isSelectable: p,
|
|
10
|
+
selectedRows: b,
|
|
11
|
+
onSelectRow: u,
|
|
12
|
+
onRowClick: n
|
|
24
13
|
}) => {
|
|
25
|
-
const
|
|
26
|
-
isDisabled: k,
|
|
27
|
-
disabledReason: A
|
|
28
|
-
} = n || {}, t = B || k, l = v(e);
|
|
29
|
-
q(() => {
|
|
30
|
-
R && !l && p(e);
|
|
31
|
-
}, []);
|
|
32
|
-
const E = D && !!x?.find((o) => o[r] === e), S = Object.is(b, J.Tree), I = z(
|
|
33
|
-
() => N(a, n?.childrenColumns),
|
|
34
|
-
[a, n]
|
|
35
|
-
), V = (o) => {
|
|
36
|
-
o.stopPropagation(), p(e);
|
|
37
|
-
}, w = (o) => {
|
|
38
|
-
o.target.getAttribute(f) === "true" && i(!0);
|
|
39
|
-
}, L = () => i(!1), _ = (o) => {
|
|
40
|
-
if (!t)
|
|
41
|
-
return;
|
|
42
|
-
o.target.getAttribute(f) === "true" || i(!1);
|
|
43
|
-
}, $ = () => {
|
|
44
|
-
t || d?.(s);
|
|
45
|
-
}, j = !!c?.length && T;
|
|
14
|
+
const [h, l] = g(!1), s = t[i], { isDisabled: e, disabledReason: C } = r || {}, f = p && !!b?.find((o) => o[i] === s);
|
|
46
15
|
return {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
rowId: e,
|
|
51
|
-
disabled: t,
|
|
52
|
-
isRenderCollapseButton: j,
|
|
53
|
-
handleToggle: V,
|
|
16
|
+
rowId: s,
|
|
17
|
+
disabled: e,
|
|
18
|
+
columns: d,
|
|
54
19
|
rowProps: {
|
|
55
|
-
$isHovered: !!(!
|
|
56
|
-
$isSelected:
|
|
57
|
-
onClick:
|
|
58
|
-
|
|
20
|
+
$isHovered: !!(!e && n),
|
|
21
|
+
$isSelected: c === s,
|
|
22
|
+
onClick: () => {
|
|
23
|
+
e || n?.(t);
|
|
24
|
+
},
|
|
25
|
+
onMouseMove: (o) => {
|
|
26
|
+
if (!e)
|
|
27
|
+
return;
|
|
28
|
+
o.target.getAttribute(a) === "true" || l(!1);
|
|
29
|
+
}
|
|
59
30
|
},
|
|
60
31
|
tooltipProps: {
|
|
61
|
-
open:
|
|
62
|
-
title:
|
|
63
|
-
onOpen:
|
|
64
|
-
|
|
32
|
+
open: h,
|
|
33
|
+
title: C,
|
|
34
|
+
onOpen: (o) => {
|
|
35
|
+
o.target.getAttribute(a) === "true" && l(!0);
|
|
36
|
+
},
|
|
37
|
+
onClose: () => l(!1)
|
|
65
38
|
},
|
|
66
39
|
checkboxProps: {
|
|
67
|
-
checked:
|
|
68
|
-
disabled:
|
|
69
|
-
onChange:
|
|
70
|
-
},
|
|
71
|
-
nestedChildrenProps: {
|
|
72
|
-
isOpen: l,
|
|
73
|
-
rowId: e
|
|
40
|
+
checked: f,
|
|
41
|
+
disabled: e,
|
|
42
|
+
onChange: u(t)
|
|
74
43
|
}
|
|
75
44
|
};
|
|
76
45
|
};
|
|
77
46
|
export {
|
|
78
|
-
|
|
47
|
+
R as useLogic
|
|
79
48
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
export declare const MIN_ROW_HEIGHT = 44;
|
|
2
2
|
export declare const ROOT_ACTION_CELL_WIDTH = 32;
|
|
3
|
-
export declare const TREE_LINE_WIDTH: number;
|
|
4
3
|
export declare const MIN_DISPLAY_ROWS_BY_DEFAULT = 10;
|
|
5
|
-
export declare const EXPANDED_LEVEL_BY_DEFAULT = 1;
|
|
6
|
-
export declare const INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT = 2;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
const _ = 44,
|
|
1
|
+
const _ = 44, I = 32, O = 10;
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
D as INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT,
|
|
5
|
-
I as MIN_DISPLAY_ROWS_BY_DEFAULT,
|
|
3
|
+
O as MIN_DISPLAY_ROWS_BY_DEFAULT,
|
|
6
4
|
_ as MIN_ROW_HEIGHT,
|
|
7
|
-
|
|
8
|
-
T as TREE_LINE_WIDTH
|
|
5
|
+
I as ROOT_ACTION_CELL_WIDTH
|
|
9
6
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var c = /* @__PURE__ */ ((r) => (r.ASC = "asc", r.DESC = "desc", r))(c || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
s as Variant
|
|
3
|
+
c as SortStates
|
|
5
4
|
};
|
|
@@ -15,7 +15,7 @@ type TreeDataType = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const makeRandomDate: () => string;
|
|
17
17
|
export declare const makeColumns: <T extends DataType>(columnsTemplate: DataGridColumns<T>[], mergedColumns?: DataGridColumns<T>[]) => DataGridColumns<T>[];
|
|
18
|
-
export declare const makeDataList: <TData extends Record<string, CellValue>>(dataObjTemplate: TData, options?: DataGridRowOptions
|
|
18
|
+
export declare const makeDataList: <TData extends Record<string, CellValue>>(dataObjTemplate: TData, options?: DataGridRowOptions) => DataGridRowWithOptions<TData>[];
|
|
19
19
|
export declare const makeDataListWithTree: (length?: number, options?: {
|
|
20
20
|
isNotSelectable?: boolean;
|
|
21
21
|
childrenCount?: number;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import "@mui/material";
|
|
2
|
+
import "remeda";
|
|
3
|
+
import "../../_virtual/jsx-runtime.mjs";
|
|
4
|
+
import "clsx";
|
|
5
|
+
import "../Button/styles.mjs";
|
|
6
|
+
import "react";
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
import o from "../../node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/styled.mjs";
|
|
12
|
+
const x = o("div", {
|
|
13
|
+
shouldForwardProp: (i) => i !== "$maxHeight"
|
|
4
14
|
})`
|
|
5
15
|
position: relative;
|
|
6
16
|
|
|
@@ -10,21 +20,21 @@ const n = i("div", {
|
|
|
10
20
|
|
|
11
21
|
width: 100%;
|
|
12
22
|
height: 100%;
|
|
13
|
-
max-height: ${({ $maxHeight:
|
|
14
|
-
`,
|
|
23
|
+
max-height: ${({ $maxHeight: i }) => i ? `${i}px` : "initial"};
|
|
24
|
+
`, t = o("div")`
|
|
15
25
|
overflow: hidden;
|
|
16
26
|
display: flex;
|
|
17
27
|
flex-direction: column;
|
|
18
28
|
|
|
19
29
|
height: 100%;
|
|
20
|
-
`,
|
|
30
|
+
`, f = o(t)`
|
|
21
31
|
pointer-events: none;
|
|
22
32
|
|
|
23
|
-
background: ${({ theme:
|
|
33
|
+
background: ${({ theme: i }) => i.palette.background.element};
|
|
24
34
|
mix-blend-mode: luminosity;
|
|
25
35
|
`;
|
|
26
36
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
x as Container,
|
|
38
|
+
t as DataGridWrapper,
|
|
39
|
+
f as DisabledDataGridWrapper
|
|
30
40
|
};
|
|
@@ -61,7 +61,7 @@ export type DataGridRowOptionColumns<TData extends Record<string, CellValue>> =
|
|
|
61
61
|
*/
|
|
62
62
|
renderCell?: RenderCell<TData>;
|
|
63
63
|
};
|
|
64
|
-
export type DataGridRowOptions
|
|
64
|
+
export type DataGridRowOptions = {
|
|
65
65
|
/**
|
|
66
66
|
* Если true, строка будет недоступна для взаимодействия
|
|
67
67
|
*/
|
|
@@ -79,13 +79,8 @@ export type DataGridRowOptions<TData extends Record<string, CellValue>> = {
|
|
|
79
79
|
* Причина блокировки строки
|
|
80
80
|
*/
|
|
81
81
|
disabledReason?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Настройка отображения колонок дочерних элементов
|
|
84
|
-
*/
|
|
85
|
-
childrenColumns?: DataGridRowOptionColumns<TData>[];
|
|
86
82
|
};
|
|
87
83
|
export type DataGridRow = Record<string, CellValue>;
|
|
88
84
|
export type DataGridRowWithOptions<TData extends DataGridRow> = TData & {
|
|
89
|
-
options?: DataGridRowOptions
|
|
90
|
-
children?: DataGridRowWithOptions<TData>[];
|
|
85
|
+
options?: DataGridRowOptions;
|
|
91
86
|
};
|
|
@@ -2,13 +2,8 @@ import { ChangeEvent } from 'react';
|
|
|
2
2
|
import { DataGridProps } from '../DataGrid';
|
|
3
3
|
import { CellValue, DataGridRow } from '../types';
|
|
4
4
|
type UseLogicParams<TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData> = DataGridProps<TData, TSortField>;
|
|
5
|
-
export declare const useLogic: <TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData>({ keyId, columns, rows,
|
|
5
|
+
export declare const useLogic: <TData extends Record<string, CellValue> = DataGridRow, TSortField extends keyof TData = keyof TData>({ keyId, columns, rows, selectedRows, isLoading, isDisabled, onSelectRow, }: UseLogicParams<TData, TSortField>) => {
|
|
6
6
|
isDataGridDisabled: boolean | undefined;
|
|
7
|
-
treeRenderConfig: {
|
|
8
|
-
isInitialExpanded?: boolean;
|
|
9
|
-
expandedLevel?: number;
|
|
10
|
-
initialVisibleChildrenCount?: number;
|
|
11
|
-
} | undefined;
|
|
12
7
|
renderRows: TData[];
|
|
13
8
|
headProps: {
|
|
14
9
|
rowsCount: number;
|
|
@@ -1,45 +1,41 @@
|
|
|
1
|
-
import { useRef as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const J = ({
|
|
1
|
+
import { useRef as A, useEffect as G, useMemo as N, useCallback as m } from "react";
|
|
2
|
+
import { uniqueBy as q, prop as x } from "remeda";
|
|
3
|
+
import { getGridTemplateColumns as E } from "./utils/getGridTemplateColumns/getGridTemplateColumns.mjs";
|
|
4
|
+
const j = ({
|
|
6
5
|
keyId: e,
|
|
7
6
|
columns: s,
|
|
8
7
|
rows: r = [],
|
|
9
|
-
variant: b,
|
|
10
|
-
tree: g,
|
|
11
|
-
subrows: C,
|
|
12
8
|
selectedRows: i = [],
|
|
13
|
-
isLoading:
|
|
9
|
+
isLoading: l,
|
|
14
10
|
isDisabled: u,
|
|
15
11
|
onSelectRow: n
|
|
16
12
|
}) => {
|
|
17
|
-
const
|
|
13
|
+
const b = !!r?.length, c = !!n, g = l || u, f = r.filter(
|
|
18
14
|
(t) => !(t.options?.isDisabled || t.options?.isNotSelectable)
|
|
19
|
-
), p =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, [r,
|
|
23
|
-
const
|
|
24
|
-
(t) => !i.find((
|
|
25
|
-
).length, [f, i, e]),
|
|
15
|
+
), p = A([]);
|
|
16
|
+
G(() => {
|
|
17
|
+
l || (p.current = r);
|
|
18
|
+
}, [r, l]);
|
|
19
|
+
const h = E(s), C = N(() => f.filter(
|
|
20
|
+
(t) => !i.find((o) => o[e] === t[e])
|
|
21
|
+
).length, [f, i, e]), B = m(() => r.length <= 1 ? s.map((t) => ({ ...t, sortable: !1 })) : s, [s, r]), D = l ? p.current : r, d = (t) => {
|
|
26
22
|
if (!n)
|
|
27
23
|
return;
|
|
28
24
|
if (t.target.checked) {
|
|
29
|
-
const a =
|
|
25
|
+
const a = q(
|
|
30
26
|
[...i, ...f],
|
|
31
|
-
|
|
27
|
+
x(e)
|
|
32
28
|
);
|
|
33
29
|
return n(a);
|
|
34
30
|
}
|
|
35
|
-
const
|
|
36
|
-
(a) => !r.find((
|
|
31
|
+
const o = i.filter(
|
|
32
|
+
(a) => !r.find((P) => P[e] === a[e])
|
|
37
33
|
);
|
|
38
|
-
n(
|
|
39
|
-
},
|
|
40
|
-
(t) => (
|
|
34
|
+
n(o);
|
|
35
|
+
}, v = m(
|
|
36
|
+
(t) => (o) => {
|
|
41
37
|
if (n) {
|
|
42
|
-
if (
|
|
38
|
+
if (o.target.checked)
|
|
43
39
|
return n([...i, t]);
|
|
44
40
|
n(
|
|
45
41
|
i.filter(
|
|
@@ -51,29 +47,28 @@ const J = ({
|
|
|
51
47
|
[i, n, e]
|
|
52
48
|
);
|
|
53
49
|
return {
|
|
54
|
-
isDataGridDisabled:
|
|
55
|
-
|
|
56
|
-
renderRows: x,
|
|
50
|
+
isDataGridDisabled: g,
|
|
51
|
+
renderRows: D,
|
|
57
52
|
headProps: {
|
|
58
53
|
rowsCount: f.length,
|
|
59
|
-
uncheckedRowsCount:
|
|
60
|
-
gridColumns:
|
|
54
|
+
uncheckedRowsCount: C,
|
|
55
|
+
gridColumns: h,
|
|
61
56
|
isSelectable: c,
|
|
62
|
-
columns:
|
|
63
|
-
onSelectAllRows:
|
|
57
|
+
columns: B(),
|
|
58
|
+
onSelectAllRows: d
|
|
64
59
|
},
|
|
65
60
|
bodyProps: {
|
|
66
|
-
gridColumns:
|
|
61
|
+
gridColumns: h,
|
|
67
62
|
isSelectable: c,
|
|
68
|
-
onSelectRow:
|
|
63
|
+
onSelectRow: v
|
|
69
64
|
},
|
|
70
65
|
loaderProps: {
|
|
71
|
-
isLoading:
|
|
66
|
+
isLoading: b && l,
|
|
72
67
|
isVisibleDivider: !!r.length,
|
|
73
68
|
isDisabled: u
|
|
74
69
|
}
|
|
75
70
|
};
|
|
76
71
|
};
|
|
77
72
|
export {
|
|
78
|
-
|
|
73
|
+
j as useLogic
|
|
79
74
|
};
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "@mui/material";
|
|
2
|
+
import "remeda";
|
|
3
|
+
import "../../_virtual/jsx-runtime.mjs";
|
|
4
|
+
import "clsx";
|
|
5
|
+
import "../Button/styles.mjs";
|
|
6
|
+
import "react";
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
import i from "../../node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/styled.mjs";
|
|
12
|
+
const c = i("div")`
|
|
3
13
|
display: inline-flex;
|
|
4
14
|
align-items: center;
|
|
5
15
|
`;
|
|
6
16
|
export {
|
|
7
|
-
|
|
17
|
+
c as Wrapper
|
|
8
18
|
};
|
|
@@ -1,49 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import "../../Button/styles.mjs";
|
|
6
|
-
import "@mui/material";
|
|
7
|
-
import "../../ErrorBoundary/ErrorBoundary.mjs";
|
|
8
|
-
import "../../Placeholder/Image/Image.mjs";
|
|
9
|
-
import "../../Placeholder/styles.mjs";
|
|
10
|
-
import "../../Typography/styles.mjs";
|
|
11
|
-
import "../../ContentState/styles.mjs";
|
|
12
|
-
import "../../Checkbox/Checkbox.mjs";
|
|
13
|
-
import "../../Tooltip/styles.mjs";
|
|
14
|
-
import "../../DataGrid/Row/NestedChildren/NestedChildren.mjs";
|
|
15
|
-
import "../../DataGrid/Row/styles.mjs";
|
|
16
|
-
import "../../DataGrid/DataGridContext/DataGridContext.mjs";
|
|
17
|
-
import { RowContext as f } from "../../DataGrid/Row/RowContext/RowContext.mjs";
|
|
18
|
-
import "../../DataGrid/Body/styles.mjs";
|
|
19
|
-
import "lucide-react";
|
|
20
|
-
import "../../DataGrid/HeadCell/styles.mjs";
|
|
21
|
-
import "../../DataGrid/Head/styles.mjs";
|
|
22
|
-
import "../../DataGrid/Loader/styles.mjs";
|
|
23
|
-
import "../../DataGrid/styles.mjs";
|
|
24
|
-
import "remeda";
|
|
25
|
-
const H = ({
|
|
26
|
-
row: i,
|
|
27
|
-
actions: r
|
|
1
|
+
import { useCallback as e } from "react";
|
|
2
|
+
const d = ({
|
|
3
|
+
row: o,
|
|
4
|
+
actions: i
|
|
28
5
|
}) => {
|
|
29
|
-
const { main:
|
|
30
|
-
(
|
|
31
|
-
),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return n(t?.loadingNote);
|
|
35
|
-
e();
|
|
36
|
-
}, [t]);
|
|
37
|
-
const c = d(
|
|
38
|
-
(o) => () => {
|
|
39
|
-
o?.(i);
|
|
6
|
+
const { main: c, secondary: t } = i, a = !![...c, ...t || []].find(
|
|
7
|
+
(n) => n.isBlockingOperation && n.loading
|
|
8
|
+
), l = e(
|
|
9
|
+
(n) => () => {
|
|
10
|
+
n?.(o);
|
|
40
11
|
},
|
|
41
|
-
[
|
|
12
|
+
[o]
|
|
42
13
|
);
|
|
43
|
-
return { isDisabledAction: a, handleActionClick:
|
|
44
|
-
|
|
14
|
+
return { isDisabledAction: a, handleActionClick: l, handleWrapperClick: (n) => {
|
|
15
|
+
n.stopPropagation();
|
|
45
16
|
} };
|
|
46
17
|
};
|
|
47
18
|
export {
|
|
48
|
-
|
|
19
|
+
d as useLogic
|
|
49
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const StyledCell: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
2
2
|
$align?: "left" | "center" | "right" | "justify";
|
|
3
3
|
$disabled?: boolean;
|
|
4
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
4
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const StyledHeadCell: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
2
2
|
$align?: "left" | "center" | "right" | "justify";
|
|
3
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as r } from "../../_virtual/jsx-runtime.mjs";
|
|
2
2
|
import { MenuItem as h } from "../MenuItem/MenuItem.mjs";
|
|
3
3
|
import { Pagination as f } from "../Pagination/Pagination.mjs";
|
|
4
4
|
import { Select as x } from "../Select/Select.mjs";
|
|
@@ -23,11 +23,11 @@ const D = (a) => {
|
|
|
23
23
|
onSetCountPerPage: u,
|
|
24
24
|
...d
|
|
25
25
|
} = a;
|
|
26
|
-
return !o && !c || !l ? null : /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
u && /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
26
|
+
return !o && !c || !l ? null : /* @__PURE__ */ r.jsxs(E, { className: g, children: [
|
|
27
|
+
/* @__PURE__ */ r.jsxs(_, { children: [
|
|
28
|
+
u && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
29
|
+
/* @__PURE__ */ r.jsx(j, { variant: "body1", children: "Строк на странице:" }),
|
|
30
|
+
/* @__PURE__ */ r.jsx(
|
|
31
31
|
x,
|
|
32
32
|
{
|
|
33
33
|
size: "small",
|
|
@@ -35,13 +35,13 @@ const D = (a) => {
|
|
|
35
35
|
disabled: n,
|
|
36
36
|
isShowClearButton: !1,
|
|
37
37
|
onChange: s,
|
|
38
|
-
children: p.map((
|
|
38
|
+
children: p.map((e) => /* @__PURE__ */ r.jsx(h, { value: e, children: e }, e))
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
] }),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ r.jsx(O, { variant: "h6", children: i() })
|
|
43
43
|
] }),
|
|
44
|
-
o && /* @__PURE__ */
|
|
44
|
+
o && /* @__PURE__ */ r.jsx(
|
|
45
45
|
f,
|
|
46
46
|
{
|
|
47
47
|
disabled: n,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CellValue, DataGridRowOptions, DataGridRowWithOptions } from '../DataGrid';
|
|
2
2
|
export declare const makeRandomDate: () => string;
|
|
3
|
-
export declare const makeDataList: <TData extends Record<string, CellValue>>(dataObjTemplate: TData, options?: DataGridRowOptions
|
|
3
|
+
export declare const makeDataList: <TData extends Record<string, CellValue>>(dataObjTemplate: TData, options?: DataGridRowOptions) => DataGridRowWithOptions<TData>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const PaginationWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
2
|
export declare const Range: import('@emotion/styled').StyledComponent<{
|
|
3
|
-
ref?: import('react').Ref<HTMLSpanElement> | undefined;
|
|
4
3
|
children?: import('react').ReactNode;
|
|
4
|
+
ref?: import('react').Ref<HTMLSpanElement> | undefined;
|
|
5
5
|
align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
|
|
6
6
|
gutterBottom?: boolean | undefined;
|
|
7
7
|
noWrap?: boolean | undefined;
|
|
@@ -10,7 +10,7 @@ export declare const Range: import('@emotion/styled').StyledComponent<{
|
|
|
10
10
|
color?: import('../Typography').TypographyColor;
|
|
11
11
|
variant?: import('../Typography').TypographyVariant;
|
|
12
12
|
colorIntensity?: import('../Typography').Intensity;
|
|
13
|
-
component?: "symbol" | "object" | "
|
|
13
|
+
component?: "symbol" | "object" | "text" | "main" | "clipPath" | "filter" | "mask" | "marker" | "style" | "div" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | import('react').ComponentType<any>;
|
|
14
14
|
isUpperCase?: boolean;
|
|
15
15
|
} & import('react').HTMLAttributes<HTMLParagraphElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
16
16
|
export declare const RangeWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,25 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { formControlClasses as i } from "@mui/material";
|
|
2
|
+
import "remeda";
|
|
3
|
+
import "../../_virtual/jsx-runtime.mjs";
|
|
4
|
+
import "clsx";
|
|
5
|
+
import "../Button/styles.mjs";
|
|
6
|
+
import "react";
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
import { Typography as p } from "../Typography/Typography.mjs";
|
|
12
|
+
import o from "../../node_modules/.pnpm/@mui_material@6.4.5_@emotion_react@11.14.0_@types_react@19.0.10_react@19.0.0__@emotion__861faf9ddc4761e7658ec96cff5e306a/node_modules/@mui/material/styles/styled.mjs";
|
|
13
|
+
const x = o("div")`
|
|
4
14
|
display: flex;
|
|
5
15
|
align-items: center;
|
|
6
16
|
justify-content: space-between;
|
|
7
17
|
|
|
8
18
|
height: 48px;
|
|
9
|
-
padding-top: ${({ theme:
|
|
10
|
-
`,
|
|
11
|
-
color: ${({ theme:
|
|
12
|
-
`,
|
|
19
|
+
padding-top: ${({ theme: t }) => t.spacing(4)};
|
|
20
|
+
`, $ = o(p)`
|
|
21
|
+
color: ${({ theme: t }) => t.palette.grey[700]};
|
|
22
|
+
`, h = o("div")`
|
|
13
23
|
display: flex;
|
|
14
|
-
gap: ${({ theme:
|
|
24
|
+
gap: ${({ theme: t }) => t.spacing(3)};
|
|
15
25
|
align-items: center;
|
|
16
26
|
|
|
17
|
-
.${
|
|
27
|
+
.${i.root} {
|
|
18
28
|
flex-direction: unset;
|
|
19
29
|
}
|
|
20
30
|
`;
|
|
21
31
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
32
|
+
x as PaginationWrapper,
|
|
33
|
+
$ as Range,
|
|
34
|
+
h as RangeWrapper
|
|
25
35
|
};
|