@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.
Files changed (283) hide show
  1. package/lib/_virtual/_commonjsHelpers.mjs +6 -0
  2. package/lib/_virtual/index.mjs +5 -0
  3. package/lib/_virtual/index2.mjs +4 -0
  4. package/lib/_virtual/index3.mjs +4 -0
  5. package/lib/_virtual/index4.mjs +7 -0
  6. package/lib/_virtual/index5.mjs +4 -0
  7. package/lib/_virtual/react-is.development.mjs +4 -0
  8. package/lib/_virtual/react-is.development2.mjs +4 -0
  9. package/lib/_virtual/react-is.production.min.mjs +4 -0
  10. package/lib/_virtual/react-is.production.mjs +4 -0
  11. package/lib/components/Accordion/styles.d.ts +2 -2
  12. package/lib/components/Accordion/styles.mjs +21 -11
  13. package/lib/components/ActionCell/MainAction/MainAction.d.ts +1 -4
  14. package/lib/components/ActionCell/MainAction/MainAction.mjs +110 -44
  15. package/lib/components/ActionCell/SecondaryAction/SecondaryActions.d.ts +0 -3
  16. package/lib/components/ActionCell/styles.mjs +13 -3
  17. package/lib/components/ActionGroup/ActionGroup.d.ts +23 -0
  18. package/lib/components/ActionGroup/ActionGroup.mjs +17 -0
  19. package/lib/components/ActionGroup/MainActions/MainActions.d.ts +65 -0
  20. package/lib/components/ActionGroup/MainActions/MainActions.mjs +129 -0
  21. package/lib/components/ActionGroup/MainActions/index.d.ts +1 -0
  22. package/lib/components/ActionGroup/MainActions/styles.d.ts +13 -0
  23. package/lib/components/ActionGroup/MainActions/styles.mjs +18 -0
  24. package/lib/components/ActionGroup/SecondaryActions/SecondaryActions.d.ts +21 -0
  25. package/lib/components/ActionGroup/SecondaryActions/SecondaryActions.mjs +97 -0
  26. package/lib/components/ActionGroup/SecondaryActions/index.d.ts +1 -0
  27. package/lib/components/ActionGroup/SecondaryVisibleActions/SecondaryVisibleActions.d.ts +19 -0
  28. package/lib/components/ActionGroup/SecondaryVisibleActions/SecondaryVisibleActions.mjs +103 -0
  29. package/lib/components/ActionGroup/SecondaryVisibleActions/index.d.ts +1 -0
  30. package/lib/components/ActionGroup/SecondaryVisibleActions/styles.d.ts +9 -0
  31. package/lib/components/ActionGroup/index.d.ts +1 -0
  32. package/lib/components/ActionGroup/styles.d.ts +1 -0
  33. package/lib/components/ActionGroup/styles.mjs +18 -0
  34. package/lib/components/ActionGroup/useLogic/useLogic.d.ts +7 -0
  35. package/lib/components/ActionGroup/useLogic/useLogic.mjs +9 -0
  36. package/lib/components/Autocomplete/styles.mjs +13 -3
  37. package/lib/components/Badge/styles.d.ts +1 -1
  38. package/lib/components/BottomDrawer/styles.d.ts +3 -3
  39. package/lib/components/Breadcrumbs/index.d.ts +1 -0
  40. package/lib/components/Button/Button.mjs +17 -17
  41. package/lib/components/Button/constants.d.ts +1 -1
  42. package/lib/components/Button/constants.mjs +2 -2
  43. package/lib/components/Button/styles.d.ts +1 -1
  44. package/lib/components/ButtonBase/ButtonBase.d.ts +1 -0
  45. package/lib/components/ButtonBase/index.d.ts +1 -0
  46. package/lib/components/ButtonGroup/index.d.ts +1 -0
  47. package/lib/components/Card/index.d.ts +1 -0
  48. package/lib/components/CardActions/index.d.ts +1 -0
  49. package/lib/components/CardContent/index.d.ts +1 -0
  50. package/lib/components/CardHeader/index.d.ts +1 -0
  51. package/lib/components/CheckboxField/styles.mjs +15 -5
  52. package/lib/components/Chevron/styles.mjs +14 -4
  53. package/lib/components/ConfirmAction/styles.d.ts +2 -2
  54. package/lib/components/ConfirmAction/styles.mjs +17 -7
  55. package/lib/components/ConfirmDialog/styles.mjs +10 -4
  56. package/lib/components/ConfirmDialog/useLogic/useLogic.d.ts +1 -1
  57. package/lib/components/Container/styles.d.ts +1 -0
  58. package/lib/components/Container/styles.mjs +16 -13
  59. package/lib/components/ContentState/styles.mjs +13 -3
  60. package/lib/components/CopyTypography/styles.d.ts +2 -2
  61. package/lib/components/CopyTypography/styles.mjs +16 -6
  62. package/lib/components/DataGrid/Body/Body.d.ts +1 -29
  63. package/lib/components/DataGrid/Body/Body.mjs +26 -29
  64. package/lib/components/DataGrid/Body/styles.mjs +15 -5
  65. package/lib/components/DataGrid/Cell/styles.mjs +15 -5
  66. package/lib/components/DataGrid/DataGrid.d.ts +0 -53
  67. package/lib/components/DataGrid/DataGrid.mjs +49 -71
  68. package/lib/components/DataGrid/Head/styles.mjs +20 -10
  69. package/lib/components/DataGrid/HeadCell/HeadCell.mjs +21 -20
  70. package/lib/components/DataGrid/HeadCell/styles.d.ts +2 -2
  71. package/lib/components/DataGrid/HeadCell/styles.mjs +19 -8
  72. package/lib/components/DataGrid/Row/Row.d.ts +1 -38
  73. package/lib/components/DataGrid/Row/Row.mjs +55 -147
  74. package/lib/components/DataGrid/Row/constants.d.ts +0 -1
  75. package/lib/components/DataGrid/Row/constants.mjs +2 -3
  76. package/lib/components/DataGrid/Row/index.d.ts +0 -1
  77. package/lib/components/DataGrid/Row/styles.d.ts +0 -22
  78. package/lib/components/DataGrid/Row/styles.mjs +21 -78
  79. package/lib/components/DataGrid/Row/useLogic/useLogic.d.ts +2 -10
  80. package/lib/components/DataGrid/Row/useLogic/useLogic.mjs +36 -67
  81. package/lib/components/DataGrid/constants.d.ts +0 -3
  82. package/lib/components/DataGrid/constants.mjs +3 -6
  83. package/lib/components/DataGrid/enums.d.ts +0 -4
  84. package/lib/components/DataGrid/enums.mjs +2 -3
  85. package/lib/components/DataGrid/faker.d.ts +1 -1
  86. package/lib/components/DataGrid/styles.mjs +20 -10
  87. package/lib/components/DataGrid/types.d.ts +2 -7
  88. package/lib/components/DataGrid/useLogic/useLogic.d.ts +1 -6
  89. package/lib/components/DataGrid/useLogic/useLogic.mjs +31 -36
  90. package/lib/components/DataGridActionCell/styles.mjs +13 -3
  91. package/lib/components/DataGridActionCell/useLogic/useLogic.mjs +13 -42
  92. package/lib/components/DataGridOld/Cell/styles.d.ts +1 -1
  93. package/lib/components/DataGridOld/HeadCell/styles.d.ts +1 -1
  94. package/lib/components/DataGridPagination/DataGridPagination.mjs +9 -9
  95. package/lib/components/DataGridPagination/faker.d.ts +1 -1
  96. package/lib/components/DataGridPagination/styles.d.ts +2 -2
  97. package/lib/components/DataGridPagination/styles.mjs +22 -12
  98. package/lib/components/Description/Name/styles.mjs +15 -5
  99. package/lib/components/Description/Value/styles.d.ts +10 -10
  100. package/lib/components/Description/Value/styles.mjs +83 -9
  101. package/lib/components/Description/Value/useLogic/useLogic.mjs +3 -3
  102. package/lib/components/Description/styles.mjs +13 -3
  103. package/lib/components/Description/useLogic/useLogic.d.ts +1 -1
  104. package/lib/components/DescriptionList/styles.mjs +20 -10
  105. package/lib/components/DescriptionTooltip/DescriptionTooltip.d.ts +9 -0
  106. package/lib/components/DescriptionTooltip/DescriptionTooltip.mjs +14 -0
  107. package/lib/components/DescriptionTooltip/index.d.ts +1 -0
  108. package/lib/components/DescriptionTooltip/styles.d.ts +4 -0
  109. package/lib/components/DescriptionTooltip/styles.mjs +27 -0
  110. package/lib/components/DialogContentText/styles.d.ts +1 -1
  111. package/lib/components/DialogHeader/styles.mjs +22 -12
  112. package/lib/components/Filename/styles.d.ts +2 -2
  113. package/lib/components/Filename/styles.mjs +16 -6
  114. package/lib/components/FormHelperText/FormHelperTextContent/styles.mjs +26 -16
  115. package/lib/components/FormLabel/styles.d.ts +1 -1
  116. package/lib/components/IconButton/styles.mjs +20 -14
  117. package/lib/components/Link/Link.d.ts +1 -1
  118. package/lib/components/Link/styles.d.ts +1 -1
  119. package/lib/components/ListItem/styles.d.ts +1 -1
  120. package/lib/components/MaskField/MaskField.d.ts +6 -0
  121. package/lib/components/MaskField/MaskField.mjs +10 -0
  122. package/lib/components/MaskField/index.d.ts +1 -0
  123. package/lib/components/MenuList/styles.d.ts +1 -1
  124. package/lib/components/NavMenu/Item/ItemButton/styles.d.ts +125 -125
  125. package/lib/components/OverflowTypography/styles.d.ts +4 -4
  126. package/lib/components/OverflowTypography/styles.mjs +16 -6
  127. package/lib/components/Placeholder/Image/styles.mjs +14 -4
  128. package/lib/components/Placeholder/styles.d.ts +4 -4
  129. package/lib/components/Placeholder/styles.mjs +31 -21
  130. package/lib/components/SearchField/styles.mjs +22 -12
  131. package/lib/components/Select/styles.d.ts +1 -1
  132. package/lib/components/Skeleton/styles.d.ts +1 -1
  133. package/lib/components/Skeleton/styles.mjs +7 -10
  134. package/lib/components/Slider/Slider.d.ts +2 -0
  135. package/lib/components/Slider/Slider.mjs +6 -0
  136. package/lib/components/Slider/index.d.ts +1 -0
  137. package/lib/components/Slider/styles.d.ts +1 -0
  138. package/lib/components/Slider/styles.mjs +40 -0
  139. package/lib/components/Tab/styles.d.ts +1 -1
  140. package/lib/components/Tabs/styles.mjs +16 -6
  141. package/lib/components/Tag/Tag.mjs +27 -23
  142. package/lib/components/Tag/styles.d.ts +1 -1
  143. package/lib/components/TagBadge/styles.mjs +14 -4
  144. package/lib/components/TagsList/Tag/styles.d.ts +1 -1
  145. package/lib/components/TagsList/Tag/styles.mjs +14 -4
  146. package/lib/components/TagsList/styles.mjs +13 -3
  147. package/lib/components/TextField/TextField.d.ts +1 -1
  148. package/lib/components/TextField/TextField.mjs +1 -1
  149. package/lib/components/ThemeProvider/ThemeProvider.d.ts +11 -0
  150. package/lib/components/ThemeProvider/ThemeProvider.mjs +9 -0
  151. package/lib/components/ThemeProvider/index.d.ts +1 -0
  152. package/lib/components/index.d.ts +12 -0
  153. package/lib/components.css +1 -0
  154. package/lib/icons/index.d.ts +1 -0
  155. package/lib/index.mjs +225 -208
  156. package/lib/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
  157. package/lib/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
  158. package/lib/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs +120 -0
  159. package/lib/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +53 -0
  160. 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
  161. 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
  162. 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
  163. 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
  164. 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
  165. 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
  166. 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
  167. 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
  168. 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
  169. 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
  170. 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
  171. 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
  172. 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
  173. 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
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. 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
  180. 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
  181. 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
  182. 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
  183. 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
  184. 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
  185. 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
  186. 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
  187. 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
  188. 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
  189. 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
  190. 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
  191. 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
  192. 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
  193. 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
  194. 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
  195. 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
  196. 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
  197. 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
  198. 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
  199. 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
  200. 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
  201. 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
  202. 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
  203. 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
  204. 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
  205. 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
  206. 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
  207. 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
  208. 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
  209. 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
  210. 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
  211. 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
  212. 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
  213. 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
  214. 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
  215. 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
  216. 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
  217. 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
  218. 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
  219. 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
  220. 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
  221. 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
  222. 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
  223. 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
  224. 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
  225. 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
  226. 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
  227. 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
  228. 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
  229. 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
  230. package/lib/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.mjs +54 -0
  231. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.mjs +54 -0
  232. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.mjs +52 -0
  233. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.mjs +329 -0
  234. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.mjs +17 -0
  235. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +10 -0
  236. package/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.mjs +7 -0
  237. package/lib/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.mjs +95 -0
  238. package/lib/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.mjs +78 -0
  239. package/lib/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.mjs +10 -0
  240. package/lib/node_modules/.pnpm/react-is@19.0.0/node_modules/react-is/cjs/react-is.development.mjs +76 -0
  241. package/lib/node_modules/.pnpm/react-is@19.0.0/node_modules/react-is/cjs/react-is.production.mjs +76 -0
  242. package/lib/node_modules/.pnpm/react-is@19.0.0/node_modules/react-is/index.mjs +10 -0
  243. package/lib/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.mjs +18 -18
  244. package/lib/theme/baseTheme/baseTheme.d.ts +1 -3
  245. package/lib/theme/baseTheme/baseTheme.mjs +21 -21
  246. package/lib/theme/components/MuiButton.mjs +5 -5
  247. package/lib/theme/components/MuiSwitch.mjs +1 -1
  248. package/lib/theme/components/components.d.ts +1 -19
  249. package/lib/theme/components/components.mjs +71 -108
  250. package/lib/theme/index.d.ts +1 -1
  251. package/lib/theme/palette/palette.mjs +20 -20
  252. package/lib/theme/typography.mjs +6 -2
  253. package/package.json +3 -1
  254. package/lib/components/DataGrid/DataGridContext/DataGridContext.d.ts +0 -7
  255. package/lib/components/DataGrid/DataGridContext/DataGridContext.mjs +0 -12
  256. package/lib/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +0 -6
  257. package/lib/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.mjs +0 -41
  258. package/lib/components/DataGrid/DataGridContext/DataGridProvider/index.d.ts +0 -1
  259. package/lib/components/DataGrid/DataGridContext/index.d.ts +0 -2
  260. package/lib/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +0 -55
  261. package/lib/components/DataGrid/Row/NestedChildren/NestedChildren.mjs +0 -72
  262. package/lib/components/DataGrid/Row/NestedChildren/index.d.ts +0 -1
  263. package/lib/components/DataGrid/Row/NestedChildren/styles.d.ts +0 -20
  264. package/lib/components/DataGrid/Row/NestedChildren/styles.mjs +0 -68
  265. package/lib/components/DataGrid/Row/NestedChildren/useLogic/useLogic.d.ts +0 -18
  266. package/lib/components/DataGrid/Row/NestedChildren/useLogic/useLogic.mjs +0 -27
  267. package/lib/components/DataGrid/Row/RowContext/RowContext.d.ts +0 -7
  268. package/lib/components/DataGrid/Row/RowContext/RowContext.mjs +0 -11
  269. package/lib/components/DataGrid/Row/RowContext/RowProvider/RowProvider.d.ts +0 -6
  270. package/lib/components/DataGrid/Row/RowContext/RowProvider/RowProvider.mjs +0 -25
  271. package/lib/components/DataGrid/Row/RowContext/RowProvider/index.d.ts +0 -1
  272. package/lib/components/DataGrid/Row/RowContext/index.d.ts +0 -2
  273. package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.d.ts +0 -4
  274. package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.mjs +0 -8
  275. package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/index.d.ts +0 -1
  276. package/lib/components/DataGrid/Row/useLogic/utils/index.d.ts +0 -2
  277. package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/index.d.ts +0 -1
  278. package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.d.ts +0 -2
  279. package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.mjs +0 -14
  280. package/lib/theme/hooks/index.d.ts +0 -1
  281. package/lib/theme/hooks/useTheme/index.d.ts +0 -2
  282. package/lib/theme/hooks/useTheme/index.mjs +0 -5
  283. /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, nestedChildren, level, variant, activeRowId, options, isInitialExpanded, expandedLevel, isSelectable, selectedRows, onSelectRow, onRowClick, isVisibleCollapseButton, }: UseLogicParams<TData>) => {
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
- isRenderCollapseButton: boolean;
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 { useContext as m, useState as W, useEffect as q, useMemo as z } from "react";
2
- import { DataGridContext as F } from "../../DataGridContext/DataGridContext.mjs";
3
- import "../../../../_virtual/jsx-runtime.mjs";
4
- import { Variant as J } from "../../enums.mjs";
5
- import { RowContext as K } from "../RowContext/RowContext.mjs";
6
- import { DISABLE_ROW_ATTR as f } from "../constants.mjs";
7
- import { mergeColumnsOptions as N } from "./utils/mergeColumnsOptions/mergeColumnsOptions.mjs";
8
- const oe = ({
9
- keyId: r,
10
- columns: a,
11
- row: s,
12
- nestedChildren: c,
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 R = h && u <= g - 1 && c?.length, { checkIsOpened: v, toggleOpenItems: p } = m(F), { isDisabled: B, disabledReason: M } = m(K), [P, i] = W(!1), e = s[r], {
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
- isOpen: l,
48
- isShowConnector: S,
49
- childrenColumns: I,
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: !!(!t && d),
56
- $isSelected: C === e,
57
- onClick: $,
58
- onMouseMove: _
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: P,
62
- title: t ? A || M : void 0,
63
- onOpen: w,
64
- onClose: L
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: E,
68
- disabled: t,
69
- onChange: O(s)
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
- oe as useLogic
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, E = 32, T = 16, I = 10, L = 1, D = 2;
1
+ const _ = 44, I = 32, O = 10;
2
2
  export {
3
- L as EXPANDED_LEVEL_BY_DEFAULT,
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
- E as ROOT_ACTION_CELL_WIDTH,
8
- T as TREE_LINE_WIDTH
5
+ I as ROOT_ACTION_CELL_WIDTH
9
6
  };
@@ -2,7 +2,3 @@ export declare enum SortStates {
2
2
  ASC = "asc",
3
3
  DESC = "desc"
4
4
  }
5
- export declare enum Variant {
6
- Tree = "tree",
7
- Subrows = "subrows"
8
- }
@@ -1,5 +1,4 @@
1
- var e = /* @__PURE__ */ ((r) => (r.ASC = "asc", r.DESC = "desc", r))(e || {}), s = /* @__PURE__ */ ((r) => (r.Tree = "tree", r.Subrows = "subrows", r))(s || {});
1
+ var c = /* @__PURE__ */ ((r) => (r.ASC = "asc", r.DESC = "desc", r))(c || {});
2
2
  export {
3
- e as SortStates,
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<TData>) => DataGridRowWithOptions<TData>[];
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 { styled as i } from "@mui/material";
2
- const n = i("div", {
3
- shouldForwardProp: (e) => e !== "$maxHeight"
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: e }) => e ? `${e}px` : "initial"};
14
- `, o = i("div")`
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
- `, d = i(o)`
30
+ `, f = o(t)`
21
31
  pointer-events: none;
22
32
 
23
- background: ${({ theme: e }) => e.palette.background.element};
33
+ background: ${({ theme: i }) => i.palette.background.element};
24
34
  mix-blend-mode: luminosity;
25
35
  `;
26
36
  export {
27
- n as Container,
28
- o as DataGridWrapper,
29
- d as DisabledDataGridWrapper
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<TData extends Record<string, CellValue>> = {
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<TData>;
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, variant, tree, subrows, selectedRows, isLoading, isDisabled, onSelectRow, }: UseLogicParams<TData, TSortField>) => {
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 N, useEffect as V, useMemo as j, useCallback as h } from "react";
2
- import { Variant as q } from "../enums.mjs";
3
- import { uniqueBy as M, prop as O } from "remeda";
4
- import { getGridTemplateColumns as S } from "./utils/getGridTemplateColumns/getGridTemplateColumns.mjs";
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: o,
9
+ isLoading: l,
14
10
  isDisabled: u,
15
11
  onSelectRow: n
16
12
  }) => {
17
- const d = !!r?.length, c = !!n, B = o || u, D = Object.is(b, q.Subrows) ? { ...C, isInitialExpanded: !0 } : g, f = r.filter(
13
+ const b = !!r?.length, c = !!n, g = l || u, f = r.filter(
18
14
  (t) => !(t.options?.isDisabled || t.options?.isNotSelectable)
19
- ), p = N([]);
20
- V(() => {
21
- o || (p.current = r);
22
- }, [r, o]);
23
- const m = S(s), v = j(() => f.filter(
24
- (t) => !i.find((l) => l[e] === t[e])
25
- ).length, [f, i, e]), P = h(() => r.length <= 1 ? s.map((t) => ({ ...t, sortable: !1 })) : s, [s, r]), x = o ? p.current : r, A = (t) => {
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 = M(
25
+ const a = q(
30
26
  [...i, ...f],
31
- O(e)
27
+ x(e)
32
28
  );
33
29
  return n(a);
34
30
  }
35
- const l = i.filter(
36
- (a) => !r.find((G) => G[e] === a[e])
31
+ const o = i.filter(
32
+ (a) => !r.find((P) => P[e] === a[e])
37
33
  );
38
- n(l);
39
- }, E = h(
40
- (t) => (l) => {
34
+ n(o);
35
+ }, v = m(
36
+ (t) => (o) => {
41
37
  if (n) {
42
- if (l.target.checked)
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: B,
55
- treeRenderConfig: D,
56
- renderRows: x,
50
+ isDataGridDisabled: g,
51
+ renderRows: D,
57
52
  headProps: {
58
53
  rowsCount: f.length,
59
- uncheckedRowsCount: v,
60
- gridColumns: m,
54
+ uncheckedRowsCount: C,
55
+ gridColumns: h,
61
56
  isSelectable: c,
62
- columns: P(),
63
- onSelectAllRows: A
57
+ columns: B(),
58
+ onSelectAllRows: d
64
59
  },
65
60
  bodyProps: {
66
- gridColumns: m,
61
+ gridColumns: h,
67
62
  isSelectable: c,
68
- onSelectRow: E
63
+ onSelectRow: v
69
64
  },
70
65
  loaderProps: {
71
- isLoading: d && o,
66
+ isLoading: b && l,
72
67
  isVisibleDivider: !!r.length,
73
68
  isDisabled: u
74
69
  }
75
70
  };
76
71
  };
77
72
  export {
78
- J as useLogic
73
+ j as useLogic
79
74
  };
@@ -1,8 +1,18 @@
1
- import { styled as e } from "@mui/material";
2
- const r = e("div")`
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
- r as Wrapper
17
+ c as Wrapper
8
18
  };
@@ -1,49 +1,20 @@
1
- import { useContext as s, useEffect as l, useCallback as d } from "react";
2
- import "../../../_virtual/jsx-runtime.mjs";
3
- import "../../ConfigProvider/ConfigProvider.mjs";
4
- import "clsx";
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: p, secondary: m } = r, { addDisabledRow: n, removeDisabledRow: e } = s(f), t = [...p, ...m || []].find(
30
- (o) => o.isBlockingOperation && o.loading
31
- ), a = !!t;
32
- l(() => {
33
- if (t)
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
- [i]
12
+ [o]
42
13
  );
43
- return { isDisabledAction: a, handleActionClick: c, handleWrapperClick: (o) => {
44
- o.stopPropagation();
14
+ return { isDisabledAction: a, handleActionClick: l, handleWrapperClick: (n) => {
15
+ n.stopPropagation();
45
16
  } };
46
17
  };
47
18
  export {
48
- H as useLogic
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').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
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').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
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 e } from "../../_virtual/jsx-runtime.mjs";
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__ */ e.jsxs(E, { className: g, children: [
27
- /* @__PURE__ */ e.jsxs(_, { children: [
28
- u && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
29
- /* @__PURE__ */ e.jsx(j, { variant: "body1", children: "Строк на странице:" }),
30
- /* @__PURE__ */ e.jsx(
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((r) => /* @__PURE__ */ e.jsx(h, { value: r, children: r }, r))
38
+ children: p.map((e) => /* @__PURE__ */ r.jsx(h, { value: e, children: e }, e))
39
39
  }
40
40
  )
41
41
  ] }),
42
- /* @__PURE__ */ e.jsx(O, { variant: "h6", children: i() })
42
+ /* @__PURE__ */ r.jsx(O, { variant: "h6", children: i() })
43
43
  ] }),
44
- o && /* @__PURE__ */ e.jsx(
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<TData>) => DataGridRowWithOptions<TData>[];
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" | "style" | "clipPath" | "filter" | "mask" | "path" | import('react').ComponentType<any> | "map" | "search" | "big" | "link" | "small" | "sub" | "sup" | "marker" | "svg" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "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" | "main" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "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" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view";
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 { styled as t, formControlClasses as n } from "@mui/material";
2
- import { Typography as o } from "../Typography/Typography.mjs";
3
- const a = t("div")`
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: e }) => e.spacing(4)};
10
- `, r = t(o)`
11
- color: ${({ theme: e }) => e.palette.grey[700]};
12
- `, s = t("div")`
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: e }) => e.spacing(3)};
24
+ gap: ${({ theme: t }) => t.spacing(3)};
15
25
  align-items: center;
16
26
 
17
- .${n.root} {
27
+ .${i.root} {
18
28
  flex-direction: unset;
19
29
  }
20
30
  `;
21
31
  export {
22
- a as PaginationWrapper,
23
- r as Range,
24
- s as RangeWrapper
32
+ x as PaginationWrapper,
33
+ $ as Range,
34
+ h as RangeWrapper
25
35
  };