@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
@@ -1,41 +0,0 @@
1
- import { j as c } from "../../../../_virtual/jsx-runtime.mjs";
2
- import { useState as a } from "react";
3
- import { DataGridContext as f } from "../DataGridContext.mjs";
4
- const o = {
5
- isOpenedItems: !0,
6
- iOpenedMoreItems: !1
7
- }, x = ({
8
- children: p
9
- }) => {
10
- const [n, s] = a({}), i = (e) => !!n[e], m = (e) => n[e] ? n[e].iOpenedMoreItems : !1, d = (e) => s((t) => {
11
- if (i(e)) {
12
- const r = { ...t };
13
- return delete r[e], r;
14
- }
15
- return { ...t, [e]: o };
16
- }), u = (e) => s((t) => {
17
- if (m(e)) {
18
- const r = { ...t };
19
- return r[e] = o, r;
20
- }
21
- return {
22
- ...t,
23
- [e]: { ...o, iOpenedMoreItems: !0 }
24
- };
25
- });
26
- return /* @__PURE__ */ c.jsx(
27
- f.Provider,
28
- {
29
- value: {
30
- checkIsOpened: i,
31
- checkIsMoreOpened: m,
32
- toggleOpenItems: d,
33
- toggleOpenMoreItems: u
34
- },
35
- children: p
36
- }
37
- );
38
- };
39
- export {
40
- x as DataGridContextProvider
41
- };
@@ -1 +0,0 @@
1
- export * from './DataGridProvider';
@@ -1,2 +0,0 @@
1
- export * from './DataGridContext';
2
- export * from './DataGridProvider';
@@ -1,55 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { Variant } from '../../enums';
3
- import { CellValue, DataGridRowOptions } from '../../types';
4
- export type NestedChildrenProps<TData extends Record<string, CellValue>> = {
5
- /**
6
- * Если true, список дочерних элементов раскрыт
7
- */
8
- isOpen: boolean;
9
- /**
10
- * Данные для отображения
11
- */
12
- data: Array<TData & {
13
- options?: DataGridRowOptions<TData>;
14
- }>;
15
- /**
16
- * Поле, которое будет использоваться в качестве ключа
17
- */
18
- keyId: keyof TData;
19
- /**
20
- * Идентификатор строки
21
- */
22
- rowId: string;
23
- /**
24
- * Вариант отображения вложенных элементов
25
- */
26
- variant: `${Variant}`;
27
- /**
28
- * Конфигурация ширины колонок
29
- */
30
- gridColumns: string;
31
- /**
32
- * Уровень вложенности в дереве
33
- */
34
- level: number;
35
- /**
36
- * Количество отображаемых по умолчанию дочерних элементов
37
- */
38
- initialVisibleChildrenCount: number;
39
- /**
40
- * Номер колонки, в которой будет расположена кнопка "Показать все"
41
- * Работает только для `variant="subrows"`
42
- */
43
- moreButtonColumnPosition: number;
44
- renderRow: ({ key, level, row, nestedChildren, options, className, }: {
45
- key: string;
46
- row: TData;
47
- level: number;
48
- nestedChildren: Array<TData & {
49
- options?: DataGridRowOptions<TData>;
50
- }>;
51
- options?: DataGridRowOptions<TData>;
52
- className?: string;
53
- }) => ReactElement;
54
- };
55
- export declare const NestedChildren: import('react').MemoExoticComponent<(<TData extends Record<string, CellValue>>(props: NestedChildrenProps<TData>) => import("react/jsx-runtime").JSX.Element | null)>;
@@ -1,72 +0,0 @@
1
- import { j as e } from "../../../../_virtual/jsx-runtime.mjs";
2
- import { memo as f } from "react";
3
- import { Collapse as a } from "../../../Collapse/Collapse.mjs";
4
- import { HIDDEN_CHILDREN_ROW_CLASSNAME as g } from "../constants.mjs";
5
- import { NestedRows as x, MoreButtonRow as E, MoreButton as N } from "./styles.mjs";
6
- import { useLogic as R } from "./useLogic/useLogic.mjs";
7
- const O = f(
8
- (s) => {
9
- const {
10
- isShowAllChildren: m,
11
- isShowMoreButton: w,
12
- isShowConnector: o,
13
- nextLevel: r,
14
- initialVisibleChildren: p,
15
- otherChildren: j,
16
- handleToggleShowAllChildren: S
17
- } = R(s), {
18
- isOpen: d,
19
- data: h,
20
- keyId: u,
21
- level: c,
22
- gridColumns: v,
23
- moreButtonColumnPosition: $,
24
- renderRow: C
25
- } = s;
26
- return !h || !h.length ? null : /* @__PURE__ */ e.jsx(a, { in: d, unmountOnExit: !0, children: /* @__PURE__ */ e.jsxs(x, { $level: c, $isShowConnector: o, children: [
27
- p.map(({ children: t, options: i, ...n }) => {
28
- const l = n[u];
29
- return C({
30
- key: l,
31
- row: n,
32
- options: i,
33
- nestedChildren: t,
34
- level: r
35
- });
36
- }),
37
- d && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
38
- /* @__PURE__ */ e.jsx(a, { in: m, component: "li", unmountOnExit: !0, children: /* @__PURE__ */ e.jsx(x, { $level: c, $isShowConnector: o, children: j.map(({ children: t, options: i, ...n }) => {
39
- const l = n[u];
40
- return C({
41
- key: l,
42
- row: n,
43
- options: i,
44
- nestedChildren: t,
45
- level: r,
46
- className: g
47
- });
48
- }) }) }),
49
- w && /* @__PURE__ */ e.jsx(
50
- E,
51
- {
52
- $level: r,
53
- $isShowConnector: o,
54
- $gridColumns: v,
55
- children: /* @__PURE__ */ e.jsx(
56
- N,
57
- {
58
- $moreButtonColumnPosition: $,
59
- variant: "link",
60
- onClick: S,
61
- children: m ? "Скрыть" : "Показать все"
62
- }
63
- )
64
- }
65
- )
66
- ] })
67
- ] }) });
68
- }
69
- );
70
- export {
71
- O as NestedChildren
72
- };
@@ -1 +0,0 @@
1
- export * from './NestedChildren';
@@ -1,20 +0,0 @@
1
- export declare const NestedRows: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
2
- $level: number;
3
- $isShowConnector: boolean;
4
- }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
5
- export declare const MoreButtonRow: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
6
- $level: number;
7
- $isShowConnector: boolean;
8
- $gridColumns: string;
9
- }, import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
10
- export declare const MoreButton: import('@emotion/styled').StyledComponent<Omit<import('../../../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
11
- variant?: `${import('../../../Button').ButtonVariants}`;
12
- loading?: boolean;
13
- loadingIndicator?: import('react').ReactNode;
14
- loadingPosition?: "start" | "end" | "center";
15
- color?: `${import('../../../Button').ButtonColors}`;
16
- component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
- selected?: boolean;
18
- } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
19
- $moreButtonColumnPosition: number;
20
- }, {}, {}>;
@@ -1,68 +0,0 @@
1
- import { styled as e } from "@mui/material";
2
- import { Button as i } from "../../../Button/Button.mjs";
3
- import { ROOT_ACTION_CELL_WIDTH as r, TREE_LINE_WIDTH as t } from "../../constants.mjs";
4
- const p = e("ul", {
5
- shouldForwardProp: (o) => !["$level", "$isShowConnector"].includes(o.toString())
6
- })`
7
- position: relative;
8
-
9
- margin: 0;
10
- padding: 0;
11
-
12
- list-style: none;
13
-
14
- &::before {
15
- content: '';
16
-
17
- position: absolute;
18
- z-index: 2;
19
- top: 0;
20
- transform: ${({ $level: o }) => `translateX(calc(${r}px * ${o} - ${t}px))`};
21
-
22
- display: ${({ $isShowConnector: o }) => o ? "block" : "none"};
23
-
24
- width: 0;
25
- height: 100%;
26
-
27
- border-left: 1px solid ${({ theme: o }) => o.palette.grey[400]};
28
- }
29
- `, d = e("li", {
30
- shouldForwardProp: (o) => !["$level", "$isShowConnector", "$gridColumns"].includes(o.toString())
31
- })`
32
- position: relative;
33
-
34
- display: grid;
35
- grid-template-columns: ${({ $gridColumns: o }) => o};
36
-
37
- height: 36px;
38
- margin-left: ${({ $level: o }) => `${o * r}px`};
39
-
40
- &::before {
41
- content: '';
42
-
43
- position: absolute;
44
- top: 0;
45
- left: -${t}px;
46
-
47
- display: ${({ $isShowConnector: o }) => o ? "block" : "none"};
48
-
49
- width: ${t}px;
50
- height: 50%;
51
-
52
- border-bottom: 1px solid ${({ theme: o }) => o.palette.grey[400]};
53
- border-left: 1px solid ${({ theme: o }) => o.palette.grey[400]};
54
- border-radius: 0 0 0 ${({ theme: o }) => o.shape.small};
55
- }
56
- `, a = e(i, {
57
- shouldForwardProp: (o) => !["$moreButtonColumnPosition"].includes(o.toString())
58
- })`
59
- grid-column: ${({ $moreButtonColumnPosition: o }) => o};
60
- justify-self: start;
61
-
62
- margin: ${({ theme: o }) => o.spacing(0, 2)};
63
- `;
64
- export {
65
- a as MoreButton,
66
- d as MoreButtonRow,
67
- p as NestedRows
68
- };
@@ -1,18 +0,0 @@
1
- import { MouseEvent } from 'react';
2
- import { CellValue } from '../../../types';
3
- import { NestedChildrenProps } from '../NestedChildren';
4
- type UseLogicParams<TData extends Record<string, CellValue>> = NestedChildrenProps<TData>;
5
- export declare const useLogic: <TData extends Record<string, CellValue>>({ rowId, data, level, variant, initialVisibleChildrenCount, }: UseLogicParams<TData>) => {
6
- isShowAllChildren: boolean;
7
- isShowMoreButton: boolean;
8
- isShowConnector: boolean;
9
- initialVisibleChildren: (TData & {
10
- options?: import('../../../types').DataGridRowOptions<TData> | undefined;
11
- })[];
12
- otherChildren: (TData & {
13
- options?: import('../../../types').DataGridRowOptions<TData> | undefined;
14
- })[];
15
- nextLevel: number;
16
- handleToggleShowAllChildren: (event: MouseEvent<HTMLElement>) => void;
17
- };
18
- export {};
@@ -1,27 +0,0 @@
1
- import { useContext as d } from "react";
2
- import { DataGridContext as C } from "../../../DataGridContext/DataGridContext.mjs";
3
- import "../../../../../_virtual/jsx-runtime.mjs";
4
- import { Variant as S } from "../../../enums.mjs";
5
- const A = ({
6
- rowId: o,
7
- data: e,
8
- level: s,
9
- variant: i,
10
- initialVisibleChildrenCount: t
11
- }) => {
12
- const { checkIsMoreOpened: l, toggleOpenMoreItems: c } = d(C), n = Object.is(i, S.Tree), h = n ? s + 1 : 0, a = e?.slice(0, t), r = e?.slice(t), g = l(o), p = !!r?.length;
13
- return {
14
- isShowAllChildren: g,
15
- isShowMoreButton: p,
16
- isShowConnector: n,
17
- initialVisibleChildren: a,
18
- otherChildren: r,
19
- nextLevel: h,
20
- handleToggleShowAllChildren: (m) => {
21
- m.stopPropagation(), c(o);
22
- }
23
- };
24
- };
25
- export {
26
- A as useLogic
27
- };
@@ -1,7 +0,0 @@
1
- export type RowContextProps = {
2
- isDisabled: boolean;
3
- disabledReason?: string;
4
- addDisabledRow: (disabledReason?: string) => void;
5
- removeDisabledRow: () => void;
6
- };
7
- export declare const RowContext: import('react').Context<RowContextProps>;
@@ -1,11 +0,0 @@
1
- import { createContext as e } from "react";
2
- const t = e({
3
- isDisabled: !1,
4
- addDisabledRow: () => {
5
- },
6
- removeDisabledRow: () => {
7
- }
8
- });
9
- export {
10
- t as RowContext
11
- };
@@ -1,6 +0,0 @@
1
- import { ReactNode } from 'react';
2
- type RowContextProviderProps = {
3
- children: ReactNode;
4
- };
5
- export declare const RowContextProvider: ({ children }: RowContextProviderProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,25 +0,0 @@
1
- import { j as l } from "../../../../../_virtual/jsx-runtime.mjs";
2
- import { useState as s } from "react";
3
- import { RowContext as m } from "../RowContext.mjs";
4
- const c = ({ children: t }) => {
5
- const [r, e] = s(!1), [a, o] = s(), i = (n) => {
6
- e(!0), o(n);
7
- }, d = () => {
8
- e(!1), o(void 0);
9
- };
10
- return /* @__PURE__ */ l.jsx(
11
- m.Provider,
12
- {
13
- value: {
14
- isDisabled: r,
15
- disabledReason: a,
16
- addDisabledRow: i,
17
- removeDisabledRow: d
18
- },
19
- children: t
20
- }
21
- );
22
- };
23
- export {
24
- c as RowContextProvider
25
- };
@@ -1 +0,0 @@
1
- export * from './RowProvider';
@@ -1,2 +0,0 @@
1
- export * from './RowContext';
2
- export * from './RowProvider';
@@ -1,4 +0,0 @@
1
- import { CellValue, DataGridRowOptionColumns } from '../../../../types';
2
- type GetColumnsMapResult<TData> = Record<keyof TData, Omit<TData, 'field'>> | object;
3
- export declare const getColumnsMap: <TData extends Record<string, CellValue>>(columns: DataGridRowOptionColumns<TData>[]) => GetColumnsMapResult<TData>;
4
- export {};
@@ -1,8 +0,0 @@
1
- const u = (t) => t.reduce((r, { field: e, ...n }) => e ? {
2
- // biome-ignore lint/performance/noAccumulatingSpread: <explanation>
3
- ...r,
4
- [e]: n
5
- } : r, {});
6
- export {
7
- u as getColumnsMap
8
- };
@@ -1 +0,0 @@
1
- export * from './getColumnsMap';
@@ -1,2 +0,0 @@
1
- export { getColumnsMap } from './getColumnsMap';
2
- export { mergeColumnsOptions } from './mergeColumnsOptions';
@@ -1 +0,0 @@
1
- export * from './mergeColumnsOptions';
@@ -1,2 +0,0 @@
1
- import { CellValue, DataGridColumns, DataGridRowOptionColumns } from '../../../../types';
2
- export declare const mergeColumnsOptions: <TData extends Record<string, CellValue>>(columns: DataGridColumns<TData>[], childrenColumns: DataGridRowOptionColumns<TData>[] | undefined) => any[];
@@ -1,14 +0,0 @@
1
- import { getColumnsMap as n } from "../getColumnsMap/getColumnsMap.mjs";
2
- const f = (e, t) => {
3
- if (!t)
4
- return e;
5
- const i = n(t);
6
- return Object.keys(i).length ? e.map((r) => r.hasOwnProperty("field") ? {
7
- ...r,
8
- // @ts-ignore
9
- ...i[r.field] || {}
10
- } : r) : e;
11
- };
12
- export {
13
- f as mergeColumnsOptions
14
- };
@@ -1 +0,0 @@
1
- export * from './useTheme';
@@ -1,2 +0,0 @@
1
- import { Theme } from '../../types';
2
- export declare const useTheme: () => Theme;
@@ -1,5 +0,0 @@
1
- import { useTheme as e } from "@emotion/react";
2
- const s = () => e();
3
- export {
4
- s as useTheme
5
- };