@max-ts/components 0.2.2 → 0.2.4

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 (64) hide show
  1. package/lib/components/Autocomplete/Autocomplete.mjs +53 -53
  2. package/lib/components/DataGrid/Body/Body.d.ts +1 -29
  3. package/lib/components/DataGrid/Body/Body.mjs +26 -29
  4. package/lib/components/DataGrid/DataGrid.d.ts +0 -53
  5. package/lib/components/DataGrid/DataGrid.mjs +49 -71
  6. package/lib/components/DataGrid/HeadCell/HeadCell.mjs +21 -20
  7. package/lib/components/DataGrid/HeadCell/styles.mjs +3 -2
  8. package/lib/components/DataGrid/Row/Row.d.ts +1 -38
  9. package/lib/components/DataGrid/Row/Row.mjs +55 -147
  10. package/lib/components/DataGrid/Row/constants.d.ts +0 -1
  11. package/lib/components/DataGrid/Row/constants.mjs +2 -3
  12. package/lib/components/DataGrid/Row/index.d.ts +0 -1
  13. package/lib/components/DataGrid/Row/styles.d.ts +0 -22
  14. package/lib/components/DataGrid/Row/styles.mjs +11 -78
  15. package/lib/components/DataGrid/Row/useLogic/useLogic.d.ts +2 -10
  16. package/lib/components/DataGrid/Row/useLogic/useLogic.mjs +36 -67
  17. package/lib/components/DataGrid/constants.d.ts +0 -3
  18. package/lib/components/DataGrid/constants.mjs +3 -6
  19. package/lib/components/DataGrid/enums.d.ts +0 -4
  20. package/lib/components/DataGrid/enums.mjs +2 -3
  21. package/lib/components/DataGrid/faker.d.ts +1 -1
  22. package/lib/components/DataGrid/types.d.ts +2 -7
  23. package/lib/components/DataGrid/useLogic/useLogic.d.ts +1 -6
  24. package/lib/components/DataGrid/useLogic/useLogic.mjs +31 -36
  25. package/lib/components/DataGridActionCell/useLogic/useLogic.mjs +13 -42
  26. package/lib/components/DataGridPagination/DataGridPagination.mjs +9 -9
  27. package/lib/components/DataGridPagination/faker.d.ts +1 -1
  28. package/lib/components/SearchField/SearchField.d.ts +3 -1
  29. package/lib/components/SearchField/SearchField.mjs +40 -37
  30. package/lib/components/SearchField/styles.mjs +7 -9
  31. package/lib/components/Select/Select.d.ts +1 -1
  32. package/lib/components/Select/Select.mjs +1 -1
  33. package/lib/components/TextField/TextField.d.ts +1 -1
  34. package/lib/components/TextField/TextField.mjs +26 -26
  35. package/lib/index.mjs +189 -197
  36. package/lib/theme/components/MuiAutocomplete.mjs +1 -2
  37. package/package.json +13 -13
  38. package/lib/components/DataGrid/DataGridContext/DataGridContext.d.ts +0 -7
  39. package/lib/components/DataGrid/DataGridContext/DataGridContext.mjs +0 -12
  40. package/lib/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.d.ts +0 -6
  41. package/lib/components/DataGrid/DataGridContext/DataGridProvider/DataGridProvider.mjs +0 -41
  42. package/lib/components/DataGrid/DataGridContext/DataGridProvider/index.d.ts +0 -1
  43. package/lib/components/DataGrid/DataGridContext/index.d.ts +0 -2
  44. package/lib/components/DataGrid/Row/NestedChildren/NestedChildren.d.ts +0 -55
  45. package/lib/components/DataGrid/Row/NestedChildren/NestedChildren.mjs +0 -72
  46. package/lib/components/DataGrid/Row/NestedChildren/index.d.ts +0 -1
  47. package/lib/components/DataGrid/Row/NestedChildren/styles.d.ts +0 -20
  48. package/lib/components/DataGrid/Row/NestedChildren/styles.mjs +0 -68
  49. package/lib/components/DataGrid/Row/NestedChildren/useLogic/index.d.ts +0 -1
  50. package/lib/components/DataGrid/Row/NestedChildren/useLogic/useLogic.d.ts +0 -18
  51. package/lib/components/DataGrid/Row/NestedChildren/useLogic/useLogic.mjs +0 -27
  52. package/lib/components/DataGrid/Row/RowContext/RowContext.d.ts +0 -7
  53. package/lib/components/DataGrid/Row/RowContext/RowContext.mjs +0 -11
  54. package/lib/components/DataGrid/Row/RowContext/RowProvider/RowProvider.d.ts +0 -6
  55. package/lib/components/DataGrid/Row/RowContext/RowProvider/RowProvider.mjs +0 -25
  56. package/lib/components/DataGrid/Row/RowContext/RowProvider/index.d.ts +0 -1
  57. package/lib/components/DataGrid/Row/RowContext/index.d.ts +0 -2
  58. package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.d.ts +0 -4
  59. package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/getColumnsMap.mjs +0 -8
  60. package/lib/components/DataGrid/Row/useLogic/utils/getColumnsMap/index.d.ts +0 -1
  61. package/lib/components/DataGrid/Row/useLogic/utils/index.d.ts +0 -2
  62. package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/index.d.ts +0 -1
  63. package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.d.ts +0 -2
  64. package/lib/components/DataGrid/Row/useLogic/utils/mergeColumnsOptions/mergeColumnsOptions.mjs +0 -14
package/lib/index.mjs CHANGED
@@ -3,213 +3,205 @@ import { ActionCell as m } from "./components/ActionCell/ActionCell.mjs";
3
3
  import { AsyncAutocomplete as f } from "./components/AsyncAutocomplete/AsyncAutocomplete.mjs";
4
4
  import { Autocomplete as i } from "./components/Autocomplete/Autocomplete.mjs";
5
5
  import { Badge as l } from "./components/Badge/Badge.mjs";
6
- import { BottomDrawer as s } from "./components/BottomDrawer/BottomDrawer.mjs";
7
- import { Button as D } from "./components/Button/Button.mjs";
8
- import { ButtonColors as u, ButtonSizes as L, ButtonStates as _, ButtonVariants as g } from "./components/Button/enums.mjs";
9
- import { LOADING_BUTTON_CLASSNAME as I } from "./components/Button/constants.mjs";
10
- import { Checkbox as c } from "./components/Checkbox/Checkbox.mjs";
11
- import { CheckboxField as B } from "./components/CheckboxField/CheckboxField.mjs";
12
- import { Chevron as R } from "./components/Chevron/Chevron.mjs";
13
- import { CircularProgress as O } from "./components/CircularProgress/CircularProgress.mjs";
14
- import { Collapse as h } from "./components/Collapse/Collapse.mjs";
6
+ import { BottomDrawer as T } from "./components/BottomDrawer/BottomDrawer.mjs";
7
+ import { Button as u } from "./components/Button/Button.mjs";
8
+ import { ButtonColors as g, ButtonSizes as c, ButtonStates as D, ButtonVariants as A } from "./components/Button/enums.mjs";
9
+ import { LOADING_BUTTON_CLASSNAME as S } from "./components/Button/constants.mjs";
10
+ import { Checkbox as B } from "./components/Checkbox/Checkbox.mjs";
11
+ import { CheckboxField as h } from "./components/CheckboxField/CheckboxField.mjs";
12
+ import { Chevron as P } from "./components/Chevron/Chevron.mjs";
13
+ import { CircularProgress as R } from "./components/CircularProgress/CircularProgress.mjs";
14
+ import { Collapse as E } from "./components/Collapse/Collapse.mjs";
15
15
  import { ConfigContext as G, ConfigProvider as M } from "./components/ConfigProvider/ConfigProvider.mjs";
16
- import { ConfirmAction as w } from "./components/ConfirmAction/ConfirmAction.mjs";
17
- import { ConfirmDialog as U } from "./components/ConfirmDialog/ConfirmDialog.mjs";
18
- import { Container as W } from "./components/Container/Container.mjs";
19
- import { ContentState as k } from "./components/ContentState/ContentState.mjs";
16
+ import { ConfirmAction as b } from "./components/ConfirmAction/ConfirmAction.mjs";
17
+ import { ConfirmDialog as H } from "./components/ConfirmDialog/ConfirmDialog.mjs";
18
+ import { Container as k } from "./components/Container/Container.mjs";
19
+ import { ContentState as Y } from "./components/ContentState/ContentState.mjs";
20
20
  import { CopyTypography as z } from "./components/CopyTypography/CopyTypography.mjs";
21
- import { DataGrid as j } from "./components/DataGrid/DataGrid.mjs";
22
- import { Head as J } from "./components/DataGrid/Head/Head.mjs";
23
- import { Row as Q } from "./components/DataGrid/Row/Row.mjs";
24
- import { RowContext as $ } from "./components/DataGrid/Row/RowContext/RowContext.mjs";
25
- import { RowContextProvider as ro } from "./components/DataGrid/Row/RowContext/RowProvider/RowProvider.mjs";
26
- import { EXPANDED_LEVEL_BY_DEFAULT as to, INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT as po, MIN_DISPLAY_ROWS_BY_DEFAULT as mo, MIN_ROW_HEIGHT as xo, ROOT_ACTION_CELL_WIDTH as fo, TREE_LINE_WIDTH as ao } from "./components/DataGrid/constants.mjs";
27
- import { SortStates as no, Variant as lo } from "./components/DataGrid/enums.mjs";
28
- import { DataGridActionCell as so } from "./components/DataGridActionCell/DataGridActionCell.mjs";
29
- import { DataGridPagination as Do } from "./components/DataGridPagination/DataGridPagination.mjs";
30
- import { Description as Lo } from "./components/Description/Description.mjs";
31
- import { DEFAULT_SEPARATOR as go, DEFAULT_SYMBOL as Ao, DESCRIPTION_ROOT_CLASSNAME as Io } from "./components/Description/constants.mjs";
32
- import { DescriptionList as co } from "./components/DescriptionList/DescriptionList.mjs";
33
- import { Dialog as Bo } from "./components/Dialog/Dialog.mjs";
34
- import { DialogActions as Ro } from "./components/DialogActions/DialogActions.mjs";
35
- import { DialogContent as Oo } from "./components/DialogContent/DialogContent.mjs";
36
- import { DialogContentText as ho } from "./components/DialogContentText/DialogContentText.mjs";
37
- import { DialogHeader as Go } from "./components/DialogHeader/DialogHeader.mjs";
38
- import { DialogTitle as vo } from "./components/DialogTitle/DialogTitle.mjs";
39
- import { Divider as Ho } from "./components/Divider/Divider.mjs";
40
- import { DropdownButton as bo } from "./components/DropdownButton/DropdownButton.mjs";
41
- import { ErrorBoundary as Yo } from "./components/ErrorBoundary/ErrorBoundary.mjs";
42
- import { Filename as Vo } from "./components/Filename/Filename.mjs";
43
- import { FormControl as Xo } from "./components/FormControl/FormControl.mjs";
44
- import { FormControlLabel as qo } from "./components/FormControlLabel/FormControlLabel.mjs";
45
- import { FormHelperText as Ko } from "./components/FormHelperText/FormHelperText.mjs";
46
- import { FormHelperTextContent as Zo } from "./components/FormHelperText/FormHelperTextContent/FormHelperTextContent.mjs";
47
- import { FormLabel as or } from "./components/FormLabel/FormLabel.mjs";
48
- import { GuidTypography as er } from "./components/GuidTypography/GuidTypography.mjs";
49
- import { IconButton as pr } from "./components/IconButton/IconButton.mjs";
50
- import { IconDropdownButton as xr } from "./components/IconDropdownButton/IconDropdownButton.mjs";
51
- import { InternalErrorPlaceholder as ar } from "./components/InternalErrorPlaceholder/InternalErrorPlaceholder.mjs";
52
- import { Link as nr } from "./components/Link/Link.mjs";
53
- import { List as Tr } from "./components/List/List.mjs";
54
- import { ListItem as Cr } from "./components/ListItem/ListItem.mjs";
55
- import { ListItemButton as dr } from "./components/ListItemButton/ListItemButton.mjs";
56
- import { ListItemIcon as Lr } from "./components/ListItemIcon/ListItemIcon.mjs";
57
- import { ListItemText as gr } from "./components/ListItemText/ListItemText.mjs";
58
- import { ListSubheader as Ir } from "./components/ListSubheader/ListSubheader.mjs";
59
- import { Menu as cr } from "./components/Menu/Menu.mjs";
60
- import { MenuItem as Br } from "./components/MenuItem/MenuItem.mjs";
61
- import { MenuList as Rr } from "./components/MenuList/MenuList.mjs";
62
- import { NavMenu as Or } from "./components/NavMenu/NavMenu.mjs";
63
- import { OutdatedReleasePlaceholder as hr } from "./components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.mjs";
64
- import { DEFAULT_ROWS_COUNT as Gr, OverflowTypography as Mr } from "./components/OverflowTypography/OverflowTypography.mjs";
65
- import { Pagination as wr } from "./components/Pagination/Pagination.mjs";
66
- import { Paper as Ur } from "./components/Paper/Paper.mjs";
67
- import { Image as Wr, setDefaultImageStyles as Yr } from "./components/Placeholder/Image/Image.mjs";
68
- import { Placeholder as Vr } from "./components/Placeholder/Placeholder.mjs";
69
- import { Popover as Xr } from "./components/Popover/Popover.mjs";
70
- import { ProgressBar as qr } from "./components/ProgressBar/ProgressBar.mjs";
71
- import { Radio as Kr } from "./components/Radio/Radio.mjs";
72
- import { RadioField as Zr } from "./components/RadioField/RadioField.mjs";
73
- import { RadioGroup as oe } from "./components/RadioGroup/RadioGroup.mjs";
74
- import { RadioGroupContext as ee } from "./components/RadioGroup/RadioGroupContext/RadioGroupContext.mjs";
21
+ import { DataGrid as q } from "./components/DataGrid/DataGrid.mjs";
22
+ import { Head as K } from "./components/DataGrid/Head/Head.mjs";
23
+ import { Row as X } from "./components/DataGrid/Row/Row.mjs";
24
+ import { MIN_DISPLAY_ROWS_BY_DEFAULT as $, MIN_ROW_HEIGHT as oo, ROOT_ACTION_CELL_WIDTH as ro } from "./components/DataGrid/constants.mjs";
25
+ import { SortStates as to } from "./components/DataGrid/enums.mjs";
26
+ import { DataGridActionCell as mo } from "./components/DataGridActionCell/DataGridActionCell.mjs";
27
+ import { DataGridPagination as fo } from "./components/DataGridPagination/DataGridPagination.mjs";
28
+ import { Description as io } from "./components/Description/Description.mjs";
29
+ import { DEFAULT_SEPARATOR as lo, DEFAULT_SYMBOL as so, DESCRIPTION_ROOT_CLASSNAME as To } from "./components/Description/constants.mjs";
30
+ import { DescriptionList as Co } from "./components/DescriptionList/DescriptionList.mjs";
31
+ import { Dialog as co } from "./components/Dialog/Dialog.mjs";
32
+ import { DialogActions as Ao } from "./components/DialogActions/DialogActions.mjs";
33
+ import { DialogContent as So } from "./components/DialogContent/DialogContent.mjs";
34
+ import { DialogContentText as Bo } from "./components/DialogContentText/DialogContentText.mjs";
35
+ import { DialogHeader as ho } from "./components/DialogHeader/DialogHeader.mjs";
36
+ import { DialogTitle as Po } from "./components/DialogTitle/DialogTitle.mjs";
37
+ import { Divider as Ro } from "./components/Divider/Divider.mjs";
38
+ import { DropdownButton as Eo } from "./components/DropdownButton/DropdownButton.mjs";
39
+ import { ErrorBoundary as Go } from "./components/ErrorBoundary/ErrorBoundary.mjs";
40
+ import { Filename as vo } from "./components/Filename/Filename.mjs";
41
+ import { FormControl as wo } from "./components/FormControl/FormControl.mjs";
42
+ import { FormControlLabel as Uo } from "./components/FormControlLabel/FormControlLabel.mjs";
43
+ import { FormHelperText as Wo } from "./components/FormHelperText/FormHelperText.mjs";
44
+ import { FormHelperTextContent as Vo } from "./components/FormHelperText/FormHelperTextContent/FormHelperTextContent.mjs";
45
+ import { FormLabel as jo } from "./components/FormLabel/FormLabel.mjs";
46
+ import { GuidTypography as Jo } from "./components/GuidTypography/GuidTypography.mjs";
47
+ import { IconButton as Qo } from "./components/IconButton/IconButton.mjs";
48
+ import { IconDropdownButton as Zo } from "./components/IconDropdownButton/IconDropdownButton.mjs";
49
+ import { InternalErrorPlaceholder as or } from "./components/InternalErrorPlaceholder/InternalErrorPlaceholder.mjs";
50
+ import { Link as er } from "./components/Link/Link.mjs";
51
+ import { List as pr } from "./components/List/List.mjs";
52
+ import { ListItem as xr } from "./components/ListItem/ListItem.mjs";
53
+ import { ListItemButton as ar } from "./components/ListItemButton/ListItemButton.mjs";
54
+ import { ListItemIcon as nr } from "./components/ListItemIcon/ListItemIcon.mjs";
55
+ import { ListItemText as sr } from "./components/ListItemText/ListItemText.mjs";
56
+ import { ListSubheader as dr } from "./components/ListSubheader/ListSubheader.mjs";
57
+ import { Menu as Cr } from "./components/Menu/Menu.mjs";
58
+ import { MenuItem as cr } from "./components/MenuItem/MenuItem.mjs";
59
+ import { MenuList as Ar } from "./components/MenuList/MenuList.mjs";
60
+ import { NavMenu as Sr } from "./components/NavMenu/NavMenu.mjs";
61
+ import { OutdatedReleasePlaceholder as Br } from "./components/OutdatedReleasePlaceholder/OutdatedReleasePlaceholder.mjs";
62
+ import { DEFAULT_ROWS_COUNT as hr, OverflowTypography as Or } from "./components/OverflowTypography/OverflowTypography.mjs";
63
+ import { Pagination as Fr } from "./components/Pagination/Pagination.mjs";
64
+ import { Paper as yr } from "./components/Paper/Paper.mjs";
65
+ import { Image as Nr, setDefaultImageStyles as Gr } from "./components/Placeholder/Image/Image.mjs";
66
+ import { Placeholder as vr } from "./components/Placeholder/Placeholder.mjs";
67
+ import { Popover as wr } from "./components/Popover/Popover.mjs";
68
+ import { ProgressBar as Ur } from "./components/ProgressBar/ProgressBar.mjs";
69
+ import { Radio as Wr } from "./components/Radio/Radio.mjs";
70
+ import { RadioField as Vr } from "./components/RadioField/RadioField.mjs";
71
+ import { RadioGroup as jr } from "./components/RadioGroup/RadioGroup.mjs";
72
+ import { RadioGroupContext as Jr } from "./components/RadioGroup/RadioGroupContext/RadioGroupContext.mjs";
75
73
  import "./_virtual/jsx-runtime.mjs";
76
- import { RadioGroupField as pe } from "./components/RadioGroupField/RadioGroupField.mjs";
77
- import { SearchField as xe } from "./components/SearchField/SearchField.mjs";
78
- import { Select as ae } from "./components/Select/Select.mjs";
79
- import { Skeleton as ne } from "./components/Skeleton/Skeleton.mjs";
80
- import { Switch as Te } from "./components/Switch/Switch.mjs";
81
- import { Tab as Ce } from "./components/Tab/Tab.mjs";
82
- import { Tabs as de } from "./components/Tabs/Tabs.mjs";
83
- import { Tag as Le } from "./components/Tag/Tag.mjs";
84
- import { TagBadge as ge } from "./components/TagBadge/TagBadge.mjs";
85
- import { TagsList as Ie } from "./components/TagsList/TagsList.mjs";
86
- import { TextArea as ce } from "./components/TextArea/TextArea.mjs";
87
- import { TextField as Be } from "./components/TextField/TextField.mjs";
88
- import { Tooltip as Re } from "./components/Tooltip/Tooltip.mjs";
89
- import { Typography as Oe } from "./components/Typography/Typography.mjs";
90
- import { createTheme as he } from "./theme/baseTheme/baseTheme.mjs";
91
- import { componentsColors as Ge } from "./theme/palette/componentsColors/componentsColors.mjs";
92
- import { getPalette as ve } from "./theme/palette/palette.mjs";
93
- import { SPACING as He } from "./theme/constants.mjs";
94
- import { elevation as be } from "./theme/elevation.mjs";
95
- import { shape as Ye } from "./theme/shape.mjs";
96
- import { useTheme as Ve } from "./theme/hooks/useTheme/index.mjs";
97
- import { useViewportType as Xe } from "./hooks/useViewportType/useViewportType.mjs";
98
- import { useMenu as qe } from "./hooks/useMenu/useMenu.mjs";
99
- import { usePopover as Ke } from "./hooks/usePopover/usePopover.mjs";
100
- import { useToggle as Ze } from "./hooks/useToggle/useToggle.mjs";
74
+ import { RadioGroupField as Qr } from "./components/RadioGroupField/RadioGroupField.mjs";
75
+ import { SearchField as Zr } from "./components/SearchField/SearchField.mjs";
76
+ import { Select as oe } from "./components/Select/Select.mjs";
77
+ import { Skeleton as ee } from "./components/Skeleton/Skeleton.mjs";
78
+ import { Switch as pe } from "./components/Switch/Switch.mjs";
79
+ import { Tab as xe } from "./components/Tab/Tab.mjs";
80
+ import { Tabs as ae } from "./components/Tabs/Tabs.mjs";
81
+ import { Tag as ne } from "./components/Tag/Tag.mjs";
82
+ import { TagBadge as se } from "./components/TagBadge/TagBadge.mjs";
83
+ import { TagsList as de } from "./components/TagsList/TagsList.mjs";
84
+ import { TextArea as Ce } from "./components/TextArea/TextArea.mjs";
85
+ import { TextField as ce } from "./components/TextField/TextField.mjs";
86
+ import { Tooltip as Ae } from "./components/Tooltip/Tooltip.mjs";
87
+ import { Typography as Se } from "./components/Typography/Typography.mjs";
88
+ import { createTheme as Be } from "./theme/baseTheme/baseTheme.mjs";
89
+ import { componentsColors as he } from "./theme/palette/componentsColors/componentsColors.mjs";
90
+ import { getPalette as Pe } from "./theme/palette/palette.mjs";
91
+ import { SPACING as Re } from "./theme/constants.mjs";
92
+ import { elevation as Ee } from "./theme/elevation.mjs";
93
+ import { shape as Ge } from "./theme/shape.mjs";
94
+ import { useTheme as ve } from "./theme/hooks/useTheme/index.mjs";
95
+ import { useViewportType as we } from "./hooks/useViewportType/useViewportType.mjs";
96
+ import { useMenu as Ue } from "./hooks/useMenu/useMenu.mjs";
97
+ import { usePopover as We } from "./hooks/usePopover/usePopover.mjs";
98
+ import { useToggle as Ve } from "./hooks/useToggle/useToggle.mjs";
101
99
  export {
102
100
  t as Accordion,
103
101
  m as ActionCell,
104
102
  f as AsyncAutocomplete,
105
103
  i as Autocomplete,
106
104
  l as Badge,
107
- s as BottomDrawer,
108
- D as Button,
109
- u as ButtonColors,
110
- L as ButtonSizes,
111
- _ as ButtonStates,
112
- g as ButtonVariants,
113
- c as Checkbox,
114
- B as CheckboxField,
115
- R as Chevron,
116
- O as CircularProgress,
117
- h as Collapse,
105
+ T as BottomDrawer,
106
+ u as Button,
107
+ g as ButtonColors,
108
+ c as ButtonSizes,
109
+ D as ButtonStates,
110
+ A as ButtonVariants,
111
+ B as Checkbox,
112
+ h as CheckboxField,
113
+ P as Chevron,
114
+ R as CircularProgress,
115
+ E as Collapse,
118
116
  G as ConfigContext,
119
117
  M as ConfigProvider,
120
- w as ConfirmAction,
121
- U as ConfirmDialog,
122
- W as Container,
123
- k as ContentState,
118
+ b as ConfirmAction,
119
+ H as ConfirmDialog,
120
+ k as Container,
121
+ Y as ContentState,
124
122
  z as CopyTypography,
125
- Gr as DEFAULT_ROWS_COUNT,
126
- go as DEFAULT_SEPARATOR,
127
- Ao as DEFAULT_SYMBOL,
128
- Io as DESCRIPTION_ROOT_CLASSNAME,
129
- j as DataGrid,
130
- so as DataGridActionCell,
131
- Do as DataGridPagination,
132
- Lo as Description,
133
- co as DescriptionList,
134
- Bo as Dialog,
135
- Ro as DialogActions,
136
- Oo as DialogContent,
137
- ho as DialogContentText,
138
- Go as DialogHeader,
139
- vo as DialogTitle,
140
- Ho as Divider,
141
- bo as DropdownButton,
142
- to as EXPANDED_LEVEL_BY_DEFAULT,
143
- Yo as ErrorBoundary,
144
- Vo as Filename,
145
- Xo as FormControl,
146
- qo as FormControlLabel,
147
- Ko as FormHelperText,
148
- Zo as FormHelperTextContent,
149
- or as FormLabel,
150
- er as GuidTypography,
151
- J as Head,
152
- po as INITIAL_OPENED_NESTED_CHILDREN_COUNT_BY_DEFAULT,
153
- pr as IconButton,
154
- xr as IconDropdownButton,
155
- Wr as Image,
156
- ar as InternalErrorPlaceholder,
157
- I as LOADING_BUTTON_CLASSNAME,
158
- nr as Link,
159
- Tr as List,
160
- Cr as ListItem,
161
- dr as ListItemButton,
162
- Lr as ListItemIcon,
163
- gr as ListItemText,
164
- Ir as ListSubheader,
165
- mo as MIN_DISPLAY_ROWS_BY_DEFAULT,
166
- xo as MIN_ROW_HEIGHT,
167
- cr as Menu,
168
- Br as MenuItem,
169
- Rr as MenuList,
170
- Or as NavMenu,
171
- hr as OutdatedReleasePlaceholder,
172
- Mr as OverflowTypography,
173
- wr as Pagination,
174
- Ur as Paper,
175
- Vr as Placeholder,
176
- Xr as Popover,
177
- qr as ProgressBar,
178
- fo as ROOT_ACTION_CELL_WIDTH,
179
- Kr as Radio,
180
- Zr as RadioField,
181
- oe as RadioGroup,
182
- ee as RadioGroupContext,
183
- pe as RadioGroupField,
184
- Q as Row,
185
- $ as RowContext,
186
- ro as RowContextProvider,
187
- He as SPACING,
188
- xe as SearchField,
189
- ae as Select,
190
- ne as Skeleton,
191
- no as SortStates,
192
- Te as Switch,
193
- ao as TREE_LINE_WIDTH,
194
- Ce as Tab,
195
- de as Tabs,
196
- Le as Tag,
197
- ge as TagBadge,
198
- Ie as TagsList,
199
- ce as TextArea,
200
- Be as TextField,
201
- Re as Tooltip,
202
- Oe as Typography,
203
- lo as Variant,
204
- Ge as componentsColors,
205
- he as createTheme,
206
- be as elevation,
207
- ve as getPalette,
208
- Yr as setDefaultImageStyles,
209
- Ye as shape,
210
- qe as useMenu,
211
- Ke as usePopover,
212
- Ve as useTheme,
213
- Ze as useToggle,
214
- Xe as useViewportType
123
+ hr as DEFAULT_ROWS_COUNT,
124
+ lo as DEFAULT_SEPARATOR,
125
+ so as DEFAULT_SYMBOL,
126
+ To as DESCRIPTION_ROOT_CLASSNAME,
127
+ q as DataGrid,
128
+ mo as DataGridActionCell,
129
+ fo as DataGridPagination,
130
+ io as Description,
131
+ Co as DescriptionList,
132
+ co as Dialog,
133
+ Ao as DialogActions,
134
+ So as DialogContent,
135
+ Bo as DialogContentText,
136
+ ho as DialogHeader,
137
+ Po as DialogTitle,
138
+ Ro as Divider,
139
+ Eo as DropdownButton,
140
+ Go as ErrorBoundary,
141
+ vo as Filename,
142
+ wo as FormControl,
143
+ Uo as FormControlLabel,
144
+ Wo as FormHelperText,
145
+ Vo as FormHelperTextContent,
146
+ jo as FormLabel,
147
+ Jo as GuidTypography,
148
+ K as Head,
149
+ Qo as IconButton,
150
+ Zo as IconDropdownButton,
151
+ Nr as Image,
152
+ or as InternalErrorPlaceholder,
153
+ S as LOADING_BUTTON_CLASSNAME,
154
+ er as Link,
155
+ pr as List,
156
+ xr as ListItem,
157
+ ar as ListItemButton,
158
+ nr as ListItemIcon,
159
+ sr as ListItemText,
160
+ dr as ListSubheader,
161
+ $ as MIN_DISPLAY_ROWS_BY_DEFAULT,
162
+ oo as MIN_ROW_HEIGHT,
163
+ Cr as Menu,
164
+ cr as MenuItem,
165
+ Ar as MenuList,
166
+ Sr as NavMenu,
167
+ Br as OutdatedReleasePlaceholder,
168
+ Or as OverflowTypography,
169
+ Fr as Pagination,
170
+ yr as Paper,
171
+ vr as Placeholder,
172
+ wr as Popover,
173
+ Ur as ProgressBar,
174
+ ro as ROOT_ACTION_CELL_WIDTH,
175
+ Wr as Radio,
176
+ Vr as RadioField,
177
+ jr as RadioGroup,
178
+ Jr as RadioGroupContext,
179
+ Qr as RadioGroupField,
180
+ X as Row,
181
+ Re as SPACING,
182
+ Zr as SearchField,
183
+ oe as Select,
184
+ ee as Skeleton,
185
+ to as SortStates,
186
+ pe as Switch,
187
+ xe as Tab,
188
+ ae as Tabs,
189
+ ne as Tag,
190
+ se as TagBadge,
191
+ de as TagsList,
192
+ Ce as TextArea,
193
+ ce as TextField,
194
+ Ae as Tooltip,
195
+ Se as Typography,
196
+ he as componentsColors,
197
+ Be as createTheme,
198
+ Ee as elevation,
199
+ Pe as getPalette,
200
+ Gr as setDefaultImageStyles,
201
+ Ge as shape,
202
+ Ue as useMenu,
203
+ We as usePopover,
204
+ ve as useTheme,
205
+ Ve as useToggle,
206
+ we as useViewportType
215
207
  };
@@ -28,8 +28,7 @@ const i = {
28
28
  return {
29
29
  display: "flex",
30
30
  alignItems: "center",
31
- justifyContent: "flex-end",
32
- top: "calc(50% - 16px)"
31
+ justifyContent: "flex-end"
33
32
  };
34
33
  },
35
34
  paper({ theme: t }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@max-ts/components",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "browser": "./src/index.ts",
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -20,29 +20,29 @@
20
20
  "dependencies": {
21
21
  "@emotion/react": "^11.14.0",
22
22
  "@emotion/styled": "^11.14.0",
23
- "@mui/material": "^6.4.4",
23
+ "@mui/material": "^6.4.5",
24
24
  "@mui/system": "^6.4.3",
25
25
  "clsx": "^2.1.1",
26
26
  "lucide-react": "^0.475.0",
27
27
  "react": "^19.0.0",
28
28
  "react-dom": "^19.0.0",
29
29
  "react-use": "^17.6.0",
30
- "remeda": "^2.20.1"
30
+ "remeda": "^2.20.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@chromatic-com/storybook": "^3.2.4",
34
34
  "@faker-js/faker": "^9.5.0",
35
- "@storybook/addon-essentials": "^8.5.6",
36
- "@storybook/addon-interactions": "^8.5.6",
37
- "@storybook/addon-onboarding": "^8.5.6",
38
- "@storybook/blocks": "^8.5.6",
39
- "@storybook/builder-vite": "^8.5.6",
40
- "@storybook/react": "^8.5.6",
41
- "@storybook/react-vite": "^8.5.6",
42
- "@storybook/test": "^8.5.6",
43
- "@types/react": "^19.0.8",
35
+ "@storybook/addon-essentials": "^8.5.8",
36
+ "@storybook/addon-interactions": "^8.5.8",
37
+ "@storybook/addon-onboarding": "^8.5.8",
38
+ "@storybook/blocks": "^8.5.8",
39
+ "@storybook/builder-vite": "^8.5.8",
40
+ "@storybook/react": "^8.5.8",
41
+ "@storybook/react-vite": "^8.5.8",
42
+ "@storybook/test": "^8.5.8",
43
+ "@types/react": "^19.0.10",
44
44
  "prop-types": "^15.8.1",
45
- "storybook": "^8.5.6"
45
+ "storybook": "^8.5.8"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "vite build",
@@ -1,7 +0,0 @@
1
- export type DataGridContextProps = {
2
- checkIsOpened: (key: string) => boolean;
3
- checkIsMoreOpened: (key: string) => boolean;
4
- toggleOpenItems: (key: string) => void;
5
- toggleOpenMoreItems: (key: string) => void;
6
- };
7
- export declare const DataGridContext: import('react').Context<DataGridContextProps>;
@@ -1,12 +0,0 @@
1
- import { createContext as e } from "react";
2
- const o = e({
3
- checkIsOpened: () => !1,
4
- checkIsMoreOpened: () => !1,
5
- toggleOpenItems: () => {
6
- },
7
- toggleOpenMoreItems: () => {
8
- }
9
- });
10
- export {
11
- o as DataGridContext
12
- };
@@ -1,6 +0,0 @@
1
- import { ReactNode } from 'react';
2
- type DataGridContextProviderProps = {
3
- children: ReactNode;
4
- };
5
- export declare const DataGridContextProvider: ({ children, }: DataGridContextProviderProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -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)>;