@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
|
@@ -1,20 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
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 { ROOT_ACTION_CELL_WIDTH as o } from "../constants.mjs";
|
|
12
|
+
import r 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 = r("header", {
|
|
14
|
+
shouldForwardProp: (t) => !["$gridColumns"].includes(t.toString())
|
|
5
15
|
})`
|
|
6
16
|
display: grid;
|
|
7
|
-
grid-template-columns: ${({ $gridColumns:
|
|
17
|
+
grid-template-columns: ${({ $gridColumns: t }) => t};
|
|
8
18
|
|
|
9
|
-
border-bottom: 2px solid ${({ theme:
|
|
10
|
-
`,
|
|
19
|
+
border-bottom: 2px solid ${({ theme: t }) => t.palette.divider};
|
|
20
|
+
`, C = r("div")`
|
|
11
21
|
display: flex;
|
|
12
22
|
align-items: center;
|
|
13
23
|
justify-content: center;
|
|
14
24
|
|
|
15
|
-
width: ${
|
|
25
|
+
width: ${o}px;
|
|
16
26
|
`;
|
|
17
27
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
28
|
+
C as CheckboxCell,
|
|
29
|
+
x as Wrapper
|
|
20
30
|
};
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { j as r } from "../../../_virtual/jsx-runtime.mjs";
|
|
2
2
|
import { useMemo as f } from "react";
|
|
3
|
-
import { SortStates as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import { SortStates as n } from "../enums.mjs";
|
|
4
|
+
import { SvgIcon as a } from "@mui/material";
|
|
5
|
+
import { ArrowDownUp as l, ArrowDownWideNarrow as u, ArrowDownNarrowWide as x } from "lucide-react";
|
|
6
|
+
import { Wrapper as j, StyledTypography as w } from "./styles.mjs";
|
|
7
|
+
import { useLogic as S } from "./useLogic/useLogic.mjs";
|
|
8
|
+
const I = (e) => {
|
|
9
|
+
const { wrapperProps: m } = S(e), { startAdornment: i, field: s, isSortable: o, align: p, label: c, sorting: t } = e, d = f(() => {
|
|
9
10
|
if (!o)
|
|
10
11
|
return null;
|
|
11
|
-
if (t?.fieldId !==
|
|
12
|
-
return /* @__PURE__ */ r.jsx(
|
|
12
|
+
if (t?.fieldId !== s)
|
|
13
|
+
return /* @__PURE__ */ r.jsx(l, {});
|
|
13
14
|
switch (t?.sort) {
|
|
14
|
-
case
|
|
15
|
-
return /* @__PURE__ */ r.jsx(
|
|
16
|
-
case
|
|
17
|
-
return /* @__PURE__ */ r.jsx(
|
|
15
|
+
case n.ASC:
|
|
16
|
+
return /* @__PURE__ */ r.jsx(a, { color: "primary", children: /* @__PURE__ */ r.jsx(x, {}) });
|
|
17
|
+
case n.DESC:
|
|
18
|
+
return /* @__PURE__ */ r.jsx(a, { color: "primary", children: /* @__PURE__ */ r.jsx(u, {}) });
|
|
18
19
|
default:
|
|
19
|
-
return /* @__PURE__ */ r.jsx(
|
|
20
|
+
return /* @__PURE__ */ r.jsx(l, {});
|
|
20
21
|
}
|
|
21
|
-
}, [t, o,
|
|
22
|
-
return /* @__PURE__ */ r.jsxs(
|
|
23
|
-
|
|
24
|
-
/* @__PURE__ */ r.jsxs(
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
}, [t, o, s]);
|
|
23
|
+
return /* @__PURE__ */ r.jsxs(j, { $align: p, $isSortable: o, ...m, children: [
|
|
24
|
+
i && i,
|
|
25
|
+
/* @__PURE__ */ r.jsxs(w, { variant: "caption", children: [
|
|
26
|
+
c,
|
|
27
|
+
d
|
|
27
28
|
] })
|
|
28
29
|
] });
|
|
29
30
|
};
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
I as HeadCell
|
|
32
33
|
};
|
|
@@ -6,8 +6,8 @@ type HeadCellProps = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & HeadCellProps, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
8
|
export declare const StyledTypography: import('@emotion/styled').StyledComponent<{
|
|
9
|
-
ref?: import('react').Ref<HTMLSpanElement> | undefined;
|
|
10
9
|
children?: import('react').ReactNode;
|
|
10
|
+
ref?: import('react').Ref<HTMLSpanElement> | undefined;
|
|
11
11
|
align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
|
|
12
12
|
gutterBottom?: boolean | undefined;
|
|
13
13
|
noWrap?: boolean | undefined;
|
|
@@ -16,7 +16,7 @@ export declare const StyledTypography: import('@emotion/styled').StyledComponent
|
|
|
16
16
|
color?: import('../../Typography').TypographyColor;
|
|
17
17
|
variant?: import('../../Typography').TypographyVariant;
|
|
18
18
|
colorIntensity?: import('../../Typography').Intensity;
|
|
19
|
-
component?: "symbol" | "object" | "
|
|
19
|
+
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>;
|
|
20
20
|
isUpperCase?: boolean;
|
|
21
21
|
} & import('react').HTMLAttributes<HTMLParagraphElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
22
22
|
export {};
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
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 { Typography as o } from "../../Typography/Typography.mjs";
|
|
12
|
+
import { alignToJustifyContent as p } from "../utils/alignToJustifyContent/alignToJustifyContent.mjs";
|
|
13
|
+
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";
|
|
14
|
+
const u = i("div", {
|
|
5
15
|
shouldForwardProp: (t) => !["$align", "$isSortable", "$hasStartAdornment"].includes(t.toString())
|
|
6
16
|
})`
|
|
7
17
|
cursor: ${({ $isSortable: t }) => t ? "pointer" : "initial"};
|
|
@@ -9,15 +19,16 @@ const a = i("div", {
|
|
|
9
19
|
|
|
10
20
|
display: flex;
|
|
11
21
|
align-items: center;
|
|
12
|
-
justify-content: ${({ $align: t }) =>
|
|
22
|
+
justify-content: ${({ $align: t }) => p(t)};
|
|
13
23
|
|
|
14
24
|
height: 40px;
|
|
15
25
|
padding: ${({ theme: t, $hasStartAdornment: r }) => r ? t.spacing(1, 2, 1, 0) : t.spacing(1, 2)};
|
|
16
26
|
|
|
17
27
|
color: ${({ theme: t }) => t.palette.grey[700]};
|
|
18
|
-
`,
|
|
28
|
+
`, x = i(o)`
|
|
19
29
|
display: flex;
|
|
20
30
|
align-items: center;
|
|
31
|
+
gap: ${({ theme: t }) => t.spacing(1)};
|
|
21
32
|
|
|
22
33
|
> svg {
|
|
23
34
|
width: 16px;
|
|
@@ -25,6 +36,6 @@ const a = i("div", {
|
|
|
25
36
|
}
|
|
26
37
|
`;
|
|
27
38
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
x as StyledTypography,
|
|
40
|
+
u as Wrapper
|
|
30
41
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChangeEvent, ReactNode } from 'react';
|
|
2
|
-
import { Variant } from '../enums';
|
|
3
2
|
import { CellValue, DataGridColumns, DataGridRowOptions } from '../types';
|
|
4
3
|
export type RowProps<TData extends Record<string, CellValue>> = {
|
|
5
4
|
/**
|
|
@@ -18,50 +17,14 @@ export type RowProps<TData extends Record<string, CellValue>> = {
|
|
|
18
17
|
* Конфигурация колонок для таблицы
|
|
19
18
|
*/
|
|
20
19
|
columns: DataGridColumns<TData>[];
|
|
21
|
-
/**
|
|
22
|
-
* Вариант отображения вложенных элементов
|
|
23
|
-
*/
|
|
24
|
-
variant: `${Variant}`;
|
|
25
20
|
/**
|
|
26
21
|
* Конфигурация ширины колонок
|
|
27
22
|
*/
|
|
28
23
|
gridColumns: string;
|
|
29
|
-
/**
|
|
30
|
-
* Уровень вложенности в дереве
|
|
31
|
-
*/
|
|
32
|
-
level: number;
|
|
33
|
-
/**
|
|
34
|
-
* Вложенные элементы
|
|
35
|
-
*/
|
|
36
|
-
nestedChildren: Array<TData & {
|
|
37
|
-
options?: DataGridRowOptions<TData>;
|
|
38
|
-
}>;
|
|
39
24
|
/**
|
|
40
25
|
* Идентификатор активного элемента массива rows. Выделяет активную строку в таблице
|
|
41
26
|
*/
|
|
42
27
|
activeRowId?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Если true, то дерево будет раскрыто по умолчанию
|
|
45
|
-
*/
|
|
46
|
-
isInitialExpanded: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Уровень раскрытия дерева по умолчанию, при isInitialExpanded=true
|
|
49
|
-
*/
|
|
50
|
-
expandedLevel: number;
|
|
51
|
-
/**
|
|
52
|
-
* Количество отображаемых по умолчанию дочерних элементов
|
|
53
|
-
*/
|
|
54
|
-
initialVisibleChildrenCount: number;
|
|
55
|
-
/**
|
|
56
|
-
* Номер колонки, в которой будет расположена кнопка "Показать все"
|
|
57
|
-
* Работает только для `variant="subrows"`
|
|
58
|
-
*/
|
|
59
|
-
moreButtonColumnPosition: number;
|
|
60
|
-
/**
|
|
61
|
-
* Если false, кнопка разворачивания элементов не показывается
|
|
62
|
-
* Работает только для `variant="subrows"`
|
|
63
|
-
*/
|
|
64
|
-
isVisibleCollapseButton: boolean;
|
|
65
28
|
/**
|
|
66
29
|
* Если true, то будет отображаться чекбокс для выбора элемента
|
|
67
30
|
*/
|
|
@@ -78,7 +41,7 @@ export type RowProps<TData extends Record<string, CellValue>> = {
|
|
|
78
41
|
/**
|
|
79
42
|
* Дополнительные настройки строки
|
|
80
43
|
*/
|
|
81
|
-
options?: DataGridRowOptions
|
|
44
|
+
options?: DataGridRowOptions;
|
|
82
45
|
/**
|
|
83
46
|
* Обработчик выбора строки
|
|
84
47
|
*/
|
|
@@ -1,159 +1,67 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import { Checkbox as
|
|
4
|
-
import { Tooltip as
|
|
5
|
-
import {
|
|
6
|
-
import { DISABLE_ROW_ATTR as
|
|
7
|
-
import {
|
|
8
|
-
import { useLogic as
|
|
9
|
-
import { checkIsDisabled as
|
|
10
|
-
const
|
|
11
|
-
const {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
className: L,
|
|
25
|
-
row: T,
|
|
26
|
-
options: E,
|
|
27
|
-
variant: n,
|
|
28
|
-
isSelectable: s,
|
|
29
|
-
gridColumns: o,
|
|
30
|
-
isInitialExpanded: j,
|
|
31
|
-
expandedLevel: w,
|
|
32
|
-
level: t,
|
|
33
|
-
nestedChildren: N,
|
|
34
|
-
initialVisibleChildrenCount: i,
|
|
35
|
-
moreButtonColumnPosition: c,
|
|
36
|
-
isVisibleCollapseButton: V,
|
|
37
|
-
columns: a,
|
|
38
|
-
emptyCellValue: W,
|
|
39
|
-
selectedRows: f,
|
|
40
|
-
activeRowId: v,
|
|
41
|
-
keyId: d,
|
|
42
|
-
onSelectRow: R,
|
|
43
|
-
onRowClick: $,
|
|
1
|
+
import { j as o } from "../../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { useCallback as D } from "react";
|
|
3
|
+
import { Checkbox as P } from "../../Checkbox/Checkbox.mjs";
|
|
4
|
+
import { Tooltip as S } from "../../Tooltip/Tooltip.mjs";
|
|
5
|
+
import { Cell as v } from "../Cell/Cell.mjs";
|
|
6
|
+
import { DISABLE_ROW_ATTR as A } from "./constants.mjs";
|
|
7
|
+
import { Wrapper as $, ContentWrapper as y, CheckboxCell as L } from "./styles.mjs";
|
|
8
|
+
import { useLogic as T } from "./useLogic/useLogic.mjs";
|
|
9
|
+
import { checkIsDisabled as W } from "./utils/checkIsDisabled/checkIsDisabled.mjs";
|
|
10
|
+
const Q = (s) => {
|
|
11
|
+
const { rowId: m, checkboxProps: a, rowProps: p, tooltipProps: d, disabled: r } = T(s), {
|
|
12
|
+
className: u,
|
|
13
|
+
row: C,
|
|
14
|
+
options: f,
|
|
15
|
+
isSelectable: i,
|
|
16
|
+
gridColumns: n,
|
|
17
|
+
columns: e,
|
|
18
|
+
emptyCellValue: b,
|
|
19
|
+
selectedRows: B,
|
|
20
|
+
activeRowId: E,
|
|
21
|
+
keyId: N,
|
|
22
|
+
onSelectRow: _,
|
|
23
|
+
onRowClick: F,
|
|
44
24
|
// В этот rest-оператор попадают специфичные пропсы (атрибуты) virtuoso
|
|
45
25
|
// Необходимы для NewDataGridInfinite
|
|
46
|
-
...
|
|
47
|
-
} =
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
const l = O ? void 0 : [a.length - 1];
|
|
59
|
-
return a?.map((C, m) => {
|
|
60
|
-
const G = `${S}-${m}`, H = se(
|
|
26
|
+
...x
|
|
27
|
+
} = s, { isDisabledLastCell: w = !0, isNotSelectable: c } = f || {}, h = () => !i || c ? null : i && !c && /* @__PURE__ */ o.jsx(
|
|
28
|
+
L,
|
|
29
|
+
{
|
|
30
|
+
inert: r ? !0 : void 0,
|
|
31
|
+
onClick: (t) => t.stopPropagation(),
|
|
32
|
+
children: /* @__PURE__ */ o.jsx(P, { ...a })
|
|
33
|
+
}
|
|
34
|
+
), j = D(() => {
|
|
35
|
+
const t = w ? void 0 : [e.length - 1];
|
|
36
|
+
return e?.map((k, l) => {
|
|
37
|
+
const R = `${m}-${l}`, I = W(
|
|
61
38
|
r,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
),
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
|
|
39
|
+
t,
|
|
40
|
+
l
|
|
41
|
+
), g = !l;
|
|
42
|
+
return /* @__PURE__ */ o.jsx(
|
|
43
|
+
v,
|
|
67
44
|
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
isDisabled: H
|
|
45
|
+
row: C,
|
|
46
|
+
cell: k,
|
|
47
|
+
emptyCellValue: b,
|
|
48
|
+
startAdornment: g && h(),
|
|
49
|
+
isDisabled: I
|
|
74
50
|
},
|
|
75
|
-
|
|
51
|
+
R
|
|
76
52
|
);
|
|
77
53
|
});
|
|
78
|
-
}, [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
...C
|
|
82
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
83
|
-
te,
|
|
84
|
-
{
|
|
85
|
-
keyId: d,
|
|
86
|
-
...C,
|
|
87
|
-
variant: n,
|
|
88
|
-
isSelectable: s,
|
|
89
|
-
selectedRows: f,
|
|
90
|
-
gridColumns: o,
|
|
91
|
-
isInitialExpanded: j,
|
|
92
|
-
expandedLevel: w,
|
|
93
|
-
initialVisibleChildrenCount: i,
|
|
94
|
-
moreButtonColumnPosition: c,
|
|
95
|
-
isVisibleCollapseButton: V,
|
|
96
|
-
activeRowId: v,
|
|
97
|
-
columns: x,
|
|
98
|
-
onSelectRow: R,
|
|
99
|
-
onRowClick: $
|
|
100
|
-
},
|
|
101
|
-
l
|
|
102
|
-
),
|
|
103
|
-
[
|
|
104
|
-
d,
|
|
105
|
-
n,
|
|
106
|
-
s,
|
|
107
|
-
f,
|
|
108
|
-
o,
|
|
109
|
-
j,
|
|
110
|
-
w,
|
|
111
|
-
i,
|
|
112
|
-
c,
|
|
113
|
-
v,
|
|
114
|
-
x,
|
|
115
|
-
R,
|
|
116
|
-
$
|
|
117
|
-
]
|
|
118
|
-
);
|
|
119
|
-
return /* @__PURE__ */ e.jsxs(
|
|
120
|
-
X,
|
|
54
|
+
}, [e, r]);
|
|
55
|
+
return /* @__PURE__ */ o.jsx($, { $gridColumns: n, className: u, ...x, children: /* @__PURE__ */ o.jsx(S, { followCursor: !0, arrow: !1, ...d, children: /* @__PURE__ */ o.jsx(
|
|
56
|
+
y,
|
|
121
57
|
{
|
|
122
|
-
$
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
...F,
|
|
127
|
-
children: [
|
|
128
|
-
/* @__PURE__ */ e.jsx(K, { followCursor: !0, arrow: !1, ...D, children: /* @__PURE__ */ e.jsx(
|
|
129
|
-
Y,
|
|
130
|
-
{
|
|
131
|
-
$level: t,
|
|
132
|
-
$isShowConnector: h,
|
|
133
|
-
$gridColumns: o,
|
|
134
|
-
[Q]: r,
|
|
135
|
-
...A,
|
|
136
|
-
children: q()
|
|
137
|
-
}
|
|
138
|
-
) }),
|
|
139
|
-
/* @__PURE__ */ e.jsx(
|
|
140
|
-
M,
|
|
141
|
-
{
|
|
142
|
-
...y,
|
|
143
|
-
data: N,
|
|
144
|
-
keyId: d,
|
|
145
|
-
level: t,
|
|
146
|
-
variant: n,
|
|
147
|
-
gridColumns: o,
|
|
148
|
-
initialVisibleChildrenCount: i,
|
|
149
|
-
moreButtonColumnPosition: c,
|
|
150
|
-
renderRow: z
|
|
151
|
-
}
|
|
152
|
-
)
|
|
153
|
-
]
|
|
58
|
+
$gridColumns: n,
|
|
59
|
+
[A]: r,
|
|
60
|
+
...p,
|
|
61
|
+
children: j()
|
|
154
62
|
}
|
|
155
|
-
);
|
|
63
|
+
) }) });
|
|
156
64
|
};
|
|
157
65
|
export {
|
|
158
|
-
|
|
66
|
+
Q as Row
|
|
159
67
|
};
|
|
@@ -1,31 +1,9 @@
|
|
|
1
1
|
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
2
|
-
$isShowConnector: boolean;
|
|
3
2
|
$gridColumns: string;
|
|
4
|
-
$level: number;
|
|
5
3
|
}, import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
6
4
|
export declare const ContentWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
7
|
-
$isShowConnector: boolean;
|
|
8
5
|
$isHovered?: boolean;
|
|
9
6
|
$isSelected?: boolean;
|
|
10
7
|
$gridColumns: string;
|
|
11
|
-
$level: number;
|
|
12
8
|
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
-
export declare const CellStyled: import('@emotion/styled').StyledComponent<import('../Cell').CellProps<Record<string, unknown>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
14
|
-
$level: number;
|
|
15
|
-
}, {}, {}>;
|
|
16
9
|
export declare const CheckboxCell: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
-
export declare const CollapseCell: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
-
export declare const CollapseButton: import('@emotion/styled').StyledComponent<Omit<import('../../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
|
|
19
|
-
variant?: `${import('../..').ButtonVariants}`;
|
|
20
|
-
loading?: boolean;
|
|
21
|
-
loadingIndicator?: import('react').ReactNode;
|
|
22
|
-
loadingPosition?: "start" | "end" | "center";
|
|
23
|
-
color?: `${import('../..').ButtonColors}`;
|
|
24
|
-
component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
|
-
selected?: boolean;
|
|
26
|
-
} & {
|
|
27
|
-
loading?: boolean;
|
|
28
|
-
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
29
|
-
export declare const ChevronIcon: import('@emotion/styled').StyledComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
30
|
-
$isActive?: boolean;
|
|
31
|
-
}, {}, {}>;
|
|
@@ -1,102 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
1
|
+
import { ROOT_ACTION_CELL_WIDTH as e } from "../constants.mjs";
|
|
2
|
+
import "@mui/material";
|
|
3
|
+
import "remeda";
|
|
4
|
+
import "../../../_virtual/jsx-runtime.mjs";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "../../Button/styles.mjs";
|
|
7
|
+
import "react";
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
/* empty css */
|
|
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 b = o("li")`
|
|
8
14
|
position: relative;
|
|
9
|
-
|
|
10
15
|
&:not(:last-of-type)::before,
|
|
11
|
-
|
|
12
|
-
content: '';
|
|
13
|
-
|
|
14
|
-
position: absolute;
|
|
15
|
-
z-index: 1;
|
|
16
|
-
top: 0;
|
|
17
|
-
transform: ${({ $level: t }) => `translateX(calc(${r}px * ${t} - ${n}px))`};
|
|
18
|
-
|
|
19
|
-
display: ${({ $isShowConnector: t }) => t ? "block" : "none"};
|
|
20
|
-
|
|
21
|
-
width: 0;
|
|
22
|
-
height: 100%;
|
|
23
|
-
|
|
24
|
-
border-left: 1px solid ${({ theme: t }) => t.palette.grey[400]};
|
|
25
|
-
}
|
|
26
|
-
`, u = o("div")`
|
|
16
|
+
`, v = o("div")`
|
|
27
17
|
position: relative;
|
|
28
18
|
|
|
29
19
|
display: grid;
|
|
30
20
|
grid-template-columns: ${({ $gridColumns: t }) => t};
|
|
31
21
|
|
|
32
|
-
background-color: ${({ theme: t, $isSelected:
|
|
22
|
+
background-color: ${({ theme: t, $isSelected: r }) => r ? t.palette.primary[100] : "transparent"};
|
|
33
23
|
|
|
34
24
|
transition: ${({ theme: t }) => t.transitions.create(["background-color"], {
|
|
35
25
|
duration: t.transitions.duration.short
|
|
36
26
|
})};
|
|
37
27
|
|
|
38
|
-
&::before {
|
|
39
|
-
content: '';
|
|
40
|
-
|
|
41
|
-
position: absolute;
|
|
42
|
-
top: 0;
|
|
43
|
-
transform: ${({ $level: t }) => `translateX(calc(${r}px * ${t} - ${n}px))`};
|
|
44
|
-
|
|
45
|
-
display: ${({ $isShowConnector: t }) => t ? "block" : "none"};
|
|
46
|
-
|
|
47
|
-
width: ${n}px;
|
|
48
|
-
height: 50%;
|
|
49
|
-
|
|
50
|
-
border-bottom: 1px solid ${({ theme: t }) => t.palette.grey[400]};
|
|
51
|
-
border-left: 1px solid ${({ theme: t }) => t.palette.grey[400]};
|
|
52
|
-
border-radius: 0 0 0 ${({ theme: t }) => t.shape.small};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
28
|
&:hover {
|
|
56
29
|
cursor: ${({ $isHovered: t }) => t ? "pointer" : "default"};
|
|
57
30
|
|
|
58
|
-
background-color: ${({ theme: t, $isHovered:
|
|
31
|
+
background-color: ${({ theme: t, $isHovered: r }) => r ? t.palette.background.elementHover : "transparent"};
|
|
59
32
|
}
|
|
60
|
-
`,
|
|
61
|
-
margin-left: ${({ $level: t }) => `${t * r}px`};
|
|
62
|
-
`, b = o("div")`
|
|
33
|
+
`, y = o("div")`
|
|
63
34
|
display: flex;
|
|
64
35
|
align-items: center;
|
|
65
36
|
align-self: center;
|
|
66
37
|
justify-content: center;
|
|
67
38
|
|
|
68
|
-
width: ${
|
|
69
|
-
`, x = o("div")`
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
|
|
74
|
-
width: ${r}px;
|
|
75
|
-
`, y = o(a)`
|
|
76
|
-
width: 24px;
|
|
77
|
-
height: 24px;
|
|
78
|
-
|
|
79
|
-
color: inherit;
|
|
80
|
-
|
|
81
|
-
&:hover {
|
|
82
|
-
background-color: ${({ theme: t }) => t.palette.grey[300]};
|
|
83
|
-
}
|
|
84
|
-
`, C = o(i, {
|
|
85
|
-
shouldForwardProp: (t) => t !== "$isActive"
|
|
86
|
-
})`
|
|
87
|
-
transform: rotateZ(${({ $isActive: t }) => t ? 90 : 0}deg);
|
|
88
|
-
|
|
89
|
-
transition: ${({ theme: t }) => t.transitions.create("transform", {
|
|
90
|
-
easing: t.transitions.easing.sharp,
|
|
91
|
-
duration: t.transitions.duration.short
|
|
92
|
-
})};
|
|
39
|
+
width: ${e}px;
|
|
93
40
|
`;
|
|
94
41
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
y as CollapseButton,
|
|
99
|
-
x as CollapseCell,
|
|
100
|
-
u as ContentWrapper,
|
|
101
|
-
m as Wrapper
|
|
42
|
+
y as CheckboxCell,
|
|
43
|
+
v as ContentWrapper,
|
|
44
|
+
b as Wrapper
|
|
102
45
|
};
|