@astral/ui 0.20.0 → 0.22.1

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 (285) hide show
  1. package/ButtonBase/styled.js +5 -5
  2. package/DataGrid/DataGrid.d.ts +3 -0
  3. package/DataGrid/DataGrid.js +64 -0
  4. package/DataGrid/DataGridBody/DataGridBody.d.ts +3 -0
  5. package/DataGrid/DataGridBody/DataGridBody.js +39 -0
  6. package/DataGrid/DataGridBody/index.d.ts +1 -0
  7. package/DataGrid/DataGridBody/index.js +13 -0
  8. package/DataGrid/DataGridBody/styled.d.ts +13 -0
  9. package/DataGrid/DataGridBody/styled.js +17 -0
  10. package/DataGrid/DataGridBody/types.d.ts +11 -0
  11. package/DataGrid/DataGridBody/types.js +2 -0
  12. package/DataGrid/DataGridCell/DataGridCell.d.ts +3 -0
  13. package/DataGrid/DataGridCell/DataGridCell.js +29 -0
  14. package/DataGrid/DataGridCell/index.d.ts +1 -0
  15. package/DataGrid/DataGridCell/index.js +13 -0
  16. package/DataGrid/DataGridCell/types.d.ts +5 -0
  17. package/DataGrid/DataGridCell/types.js +2 -0
  18. package/DataGrid/DataGridHead/DataGridHead.d.ts +3 -0
  19. package/DataGrid/DataGridHead/DataGridHead.js +71 -0
  20. package/DataGrid/DataGridHead/index.d.ts +2 -0
  21. package/DataGrid/DataGridHead/index.js +14 -0
  22. package/DataGrid/DataGridHead/types.d.ts +11 -0
  23. package/DataGrid/DataGridHead/types.js +2 -0
  24. package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +3 -0
  25. package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +30 -0
  26. package/DataGrid/DataGridHeadColumn/index.d.ts +2 -0
  27. package/DataGrid/DataGridHeadColumn/index.js +14 -0
  28. package/DataGrid/DataGridHeadColumn/styled.d.ts +38 -0
  29. package/DataGrid/DataGridHeadColumn/styled.js +20 -0
  30. package/DataGrid/DataGridHeadColumn/types.d.ts +11 -0
  31. package/DataGrid/DataGridHeadColumn/types.js +2 -0
  32. package/DataGrid/DataGridLoader/DataGridLoader.d.ts +4 -0
  33. package/DataGrid/DataGridLoader/DataGridLoader.js +9 -0
  34. package/DataGrid/DataGridLoader/index.d.ts +2 -0
  35. package/DataGrid/DataGridLoader/index.js +14 -0
  36. package/DataGrid/DataGridLoader/styled.d.ts +27 -0
  37. package/DataGrid/DataGridLoader/styled.js +18 -0
  38. package/DataGrid/DataGridLoader/types.d.ts +3 -0
  39. package/DataGrid/DataGridLoader/types.js +2 -0
  40. package/DataGrid/constants.d.ts +4 -0
  41. package/DataGrid/constants.js +8 -0
  42. package/DataGrid/index.d.ts +2 -0
  43. package/DataGrid/index.js +14 -0
  44. package/DataGrid/styled.d.ts +16 -0
  45. package/DataGrid/styled.js +17 -0
  46. package/DataGrid/types.d.ts +32 -0
  47. package/DataGrid/types.js +2 -0
  48. package/DataGridPagination/DataGridPagination.d.ts +3 -0
  49. package/DataGridPagination/DataGridPagination.js +38 -0
  50. package/DataGridPagination/index.d.ts +2 -0
  51. package/DataGridPagination/index.js +14 -0
  52. package/DataGridPagination/styled.d.ts +10 -0
  53. package/DataGridPagination/styled.js +18 -0
  54. package/DataGridPagination/types.d.ts +6 -0
  55. package/DataGridPagination/types.js +2 -0
  56. package/Dialog/types.d.ts +1 -3
  57. package/DialogTitle/DialogTitle.js +4 -1
  58. package/DialogTitle/types.d.ts +2 -2
  59. package/Pagination/Pagination.d.ts +3 -0
  60. package/Pagination/Pagination.js +32 -0
  61. package/Pagination/index.d.ts +2 -0
  62. package/Pagination/index.js +14 -0
  63. package/Pagination/types.d.ts +2 -0
  64. package/Pagination/types.js +2 -0
  65. package/Select/Select.d.ts +1 -1
  66. package/Select/Select.js +6 -3
  67. package/Select/types.d.ts +1 -0
  68. package/SideDialog/SideDialog.d.ts +3 -0
  69. package/SideDialog/SideDialog.js +33 -0
  70. package/SideDialog/index.d.ts +2 -0
  71. package/SideDialog/index.js +14 -0
  72. package/SideDialog/styled.d.ts +4 -0
  73. package/SideDialog/styled.js +11 -0
  74. package/SideDialog/types.d.ts +4 -0
  75. package/SideDialog/types.js +2 -0
  76. package/SideDialogActions/SideDialogActions.d.ts +1 -0
  77. package/SideDialogActions/SideDialogActions.js +5 -0
  78. package/SideDialogActions/index.d.ts +1 -0
  79. package/SideDialogActions/index.js +13 -0
  80. package/SideDialogActions/types.d.ts +1 -0
  81. package/SideDialogActions/types.js +2 -0
  82. package/SideDialogContent/SideDialogContent.d.ts +1 -0
  83. package/SideDialogContent/SideDialogContent.js +5 -0
  84. package/SideDialogContent/index.d.ts +1 -0
  85. package/SideDialogContent/index.js +13 -0
  86. package/SideDialogContent/types.d.ts +1 -0
  87. package/SideDialogContent/types.js +2 -0
  88. package/SideDialogContentText/SideDialogContentText.d.ts +1 -0
  89. package/SideDialogContentText/SideDialogContentText.js +5 -0
  90. package/SideDialogContentText/index.d.ts +1 -0
  91. package/SideDialogContentText/index.js +13 -0
  92. package/SideDialogContentText/types.d.ts +1 -0
  93. package/SideDialogContentText/types.js +2 -0
  94. package/SideDialogTitle/SideDialogTitle.d.ts +1 -0
  95. package/SideDialogTitle/SideDialogTitle.js +5 -0
  96. package/SideDialogTitle/index.d.ts +1 -0
  97. package/SideDialogTitle/index.js +13 -0
  98. package/SideDialogTitle/types.d.ts +1 -0
  99. package/SideDialogTitle/types.js +2 -0
  100. package/Table/Table.d.ts +3 -0
  101. package/Table/Table.js +32 -0
  102. package/Table/TableBody/TableBody.d.ts +3 -0
  103. package/Table/TableBody/TableBody.js +5 -0
  104. package/Table/TableBody/index.d.ts +1 -0
  105. package/Table/TableBody/index.js +13 -0
  106. package/Table/TableCell/TableCell.d.ts +3 -0
  107. package/Table/TableCell/TableCell.js +5 -0
  108. package/Table/TableCell/index.d.ts +1 -0
  109. package/Table/TableCell/index.js +13 -0
  110. package/Table/TableContainer/TableContainer.d.ts +3 -0
  111. package/Table/TableContainer/TableContainer.js +5 -0
  112. package/Table/TableContainer/index.d.ts +1 -0
  113. package/Table/TableContainer/index.js +13 -0
  114. package/Table/TableFooter/TableFooter.d.ts +3 -0
  115. package/Table/TableFooter/TableFooter.js +5 -0
  116. package/Table/TableFooter/index.d.ts +1 -0
  117. package/Table/TableFooter/index.js +13 -0
  118. package/Table/TableHead/TableHead.d.ts +3 -0
  119. package/Table/TableHead/TableHead.js +5 -0
  120. package/Table/TableHead/index.d.ts +1 -0
  121. package/Table/TableHead/index.js +13 -0
  122. package/Table/TableRow/TableRow.d.ts +3 -0
  123. package/Table/TableRow/TableRow.js +5 -0
  124. package/Table/TableRow/index.d.ts +1 -0
  125. package/Table/TableRow/index.js +13 -0
  126. package/Table/TableSortLabel/TableSortLabel.d.ts +3 -0
  127. package/Table/TableSortLabel/TableSortLabel.js +5 -0
  128. package/Table/TableSortLabel/index.d.ts +1 -0
  129. package/Table/TableSortLabel/index.js +13 -0
  130. package/Table/index.d.ts +7 -0
  131. package/Table/index.js +19 -0
  132. package/esm/ButtonBase/styled.js +5 -5
  133. package/esm/DataGrid/DataGrid.d.ts +3 -0
  134. package/esm/DataGrid/DataGrid.js +57 -0
  135. package/esm/DataGrid/DataGridBody/DataGridBody.d.ts +3 -0
  136. package/esm/DataGrid/DataGridBody/DataGridBody.js +35 -0
  137. package/esm/DataGrid/DataGridBody/index.d.ts +1 -0
  138. package/esm/DataGrid/DataGridBody/index.js +1 -0
  139. package/esm/DataGrid/DataGridBody/styled.d.ts +13 -0
  140. package/esm/DataGrid/DataGridBody/styled.js +14 -0
  141. package/esm/DataGrid/DataGridBody/types.d.ts +11 -0
  142. package/esm/DataGrid/DataGridBody/types.js +1 -0
  143. package/esm/DataGrid/DataGridCell/DataGridCell.d.ts +3 -0
  144. package/esm/DataGrid/DataGridCell/DataGridCell.js +25 -0
  145. package/esm/DataGrid/DataGridCell/index.d.ts +1 -0
  146. package/esm/DataGrid/DataGridCell/index.js +1 -0
  147. package/esm/DataGrid/DataGridCell/types.d.ts +5 -0
  148. package/esm/DataGrid/DataGridCell/types.js +1 -0
  149. package/esm/DataGrid/DataGridHead/DataGridHead.d.ts +3 -0
  150. package/esm/DataGrid/DataGridHead/DataGridHead.js +67 -0
  151. package/esm/DataGrid/DataGridHead/index.d.ts +2 -0
  152. package/esm/DataGrid/DataGridHead/index.js +2 -0
  153. package/esm/DataGrid/DataGridHead/types.d.ts +11 -0
  154. package/esm/DataGrid/DataGridHead/types.js +1 -0
  155. package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +3 -0
  156. package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +26 -0
  157. package/esm/DataGrid/DataGridHeadColumn/index.d.ts +2 -0
  158. package/esm/DataGrid/DataGridHeadColumn/index.js +2 -0
  159. package/esm/DataGrid/DataGridHeadColumn/styled.d.ts +38 -0
  160. package/esm/DataGrid/DataGridHeadColumn/styled.js +17 -0
  161. package/esm/DataGrid/DataGridHeadColumn/types.d.ts +11 -0
  162. package/esm/DataGrid/DataGridHeadColumn/types.js +1 -0
  163. package/esm/DataGrid/DataGridLoader/DataGridLoader.d.ts +4 -0
  164. package/esm/DataGrid/DataGridLoader/DataGridLoader.js +7 -0
  165. package/esm/DataGrid/DataGridLoader/index.d.ts +2 -0
  166. package/esm/DataGrid/DataGridLoader/index.js +2 -0
  167. package/esm/DataGrid/DataGridLoader/styled.d.ts +27 -0
  168. package/esm/DataGrid/DataGridLoader/styled.js +15 -0
  169. package/esm/DataGrid/DataGridLoader/types.d.ts +3 -0
  170. package/esm/DataGrid/DataGridLoader/types.js +1 -0
  171. package/esm/DataGrid/constants.d.ts +4 -0
  172. package/esm/DataGrid/constants.js +5 -0
  173. package/esm/DataGrid/index.d.ts +2 -0
  174. package/esm/DataGrid/index.js +2 -0
  175. package/esm/DataGrid/styled.d.ts +16 -0
  176. package/esm/DataGrid/styled.js +14 -0
  177. package/esm/DataGrid/types.d.ts +32 -0
  178. package/esm/DataGrid/types.js +1 -0
  179. package/esm/DataGridPagination/DataGridPagination.d.ts +3 -0
  180. package/esm/DataGridPagination/DataGridPagination.js +34 -0
  181. package/esm/DataGridPagination/index.d.ts +2 -0
  182. package/esm/DataGridPagination/index.js +2 -0
  183. package/esm/DataGridPagination/styled.d.ts +10 -0
  184. package/esm/DataGridPagination/styled.js +15 -0
  185. package/esm/DataGridPagination/types.d.ts +6 -0
  186. package/esm/DataGridPagination/types.js +1 -0
  187. package/esm/Dialog/types.d.ts +1 -3
  188. package/esm/DialogTitle/DialogTitle.js +4 -1
  189. package/esm/DialogTitle/types.d.ts +2 -2
  190. package/esm/Pagination/Pagination.d.ts +3 -0
  191. package/esm/Pagination/Pagination.js +28 -0
  192. package/esm/Pagination/index.d.ts +2 -0
  193. package/esm/Pagination/index.js +2 -0
  194. package/esm/Pagination/types.d.ts +2 -0
  195. package/esm/Pagination/types.js +1 -0
  196. package/esm/Select/Select.d.ts +1 -1
  197. package/esm/Select/Select.js +6 -3
  198. package/esm/Select/types.d.ts +1 -0
  199. package/esm/SideDialog/SideDialog.d.ts +3 -0
  200. package/esm/SideDialog/SideDialog.js +29 -0
  201. package/esm/SideDialog/index.d.ts +2 -0
  202. package/esm/SideDialog/index.js +2 -0
  203. package/esm/SideDialog/styled.d.ts +4 -0
  204. package/esm/SideDialog/styled.js +8 -0
  205. package/esm/SideDialog/types.d.ts +4 -0
  206. package/esm/SideDialog/types.js +1 -0
  207. package/esm/SideDialogActions/SideDialogActions.d.ts +1 -0
  208. package/esm/SideDialogActions/SideDialogActions.js +1 -0
  209. package/esm/SideDialogActions/index.d.ts +1 -0
  210. package/esm/SideDialogActions/index.js +1 -0
  211. package/esm/SideDialogActions/types.d.ts +1 -0
  212. package/esm/SideDialogActions/types.js +1 -0
  213. package/esm/SideDialogContent/SideDialogContent.d.ts +1 -0
  214. package/esm/SideDialogContent/SideDialogContent.js +1 -0
  215. package/esm/SideDialogContent/index.d.ts +1 -0
  216. package/esm/SideDialogContent/index.js +1 -0
  217. package/esm/SideDialogContent/types.d.ts +1 -0
  218. package/esm/SideDialogContent/types.js +1 -0
  219. package/esm/SideDialogContentText/SideDialogContentText.d.ts +1 -0
  220. package/esm/SideDialogContentText/SideDialogContentText.js +1 -0
  221. package/esm/SideDialogContentText/index.d.ts +1 -0
  222. package/esm/SideDialogContentText/index.js +1 -0
  223. package/esm/SideDialogContentText/types.d.ts +1 -0
  224. package/esm/SideDialogContentText/types.js +1 -0
  225. package/esm/SideDialogTitle/SideDialogTitle.d.ts +1 -0
  226. package/esm/SideDialogTitle/SideDialogTitle.js +1 -0
  227. package/esm/SideDialogTitle/index.d.ts +1 -0
  228. package/esm/SideDialogTitle/index.js +1 -0
  229. package/esm/SideDialogTitle/types.d.ts +1 -0
  230. package/esm/SideDialogTitle/types.js +1 -0
  231. package/esm/Table/Table.d.ts +3 -0
  232. package/esm/Table/Table.js +28 -0
  233. package/esm/Table/TableBody/TableBody.d.ts +3 -0
  234. package/esm/Table/TableBody/TableBody.js +2 -0
  235. package/esm/Table/TableBody/index.d.ts +1 -0
  236. package/esm/Table/TableBody/index.js +1 -0
  237. package/esm/Table/TableCell/TableCell.d.ts +3 -0
  238. package/esm/Table/TableCell/TableCell.js +2 -0
  239. package/esm/Table/TableCell/index.d.ts +1 -0
  240. package/esm/Table/TableCell/index.js +1 -0
  241. package/esm/Table/TableContainer/TableContainer.d.ts +3 -0
  242. package/esm/Table/TableContainer/TableContainer.js +2 -0
  243. package/esm/Table/TableContainer/index.d.ts +1 -0
  244. package/esm/Table/TableContainer/index.js +1 -0
  245. package/esm/Table/TableFooter/TableFooter.d.ts +3 -0
  246. package/esm/Table/TableFooter/TableFooter.js +2 -0
  247. package/esm/Table/TableFooter/index.d.ts +1 -0
  248. package/esm/Table/TableFooter/index.js +1 -0
  249. package/esm/Table/TableHead/TableHead.d.ts +3 -0
  250. package/esm/Table/TableHead/TableHead.js +2 -0
  251. package/esm/Table/TableHead/index.d.ts +1 -0
  252. package/esm/Table/TableHead/index.js +1 -0
  253. package/esm/Table/TableRow/TableRow.d.ts +3 -0
  254. package/esm/Table/TableRow/TableRow.js +2 -0
  255. package/esm/Table/TableRow/index.d.ts +1 -0
  256. package/esm/Table/TableRow/index.js +1 -0
  257. package/esm/Table/TableSortLabel/TableSortLabel.d.ts +3 -0
  258. package/esm/Table/TableSortLabel/TableSortLabel.js +2 -0
  259. package/esm/Table/TableSortLabel/index.d.ts +1 -0
  260. package/esm/Table/TableSortLabel/index.js +1 -0
  261. package/esm/Table/index.d.ts +7 -0
  262. package/esm/Table/index.js +7 -0
  263. package/esm/index.d.ts +8 -0
  264. package/esm/index.js +8 -0
  265. package/esm/theme/__tests__/BaseTheme.test.js +1 -1
  266. package/esm/theme/components/MuiPaginationItem.d.ts +3 -0
  267. package/esm/theme/components/MuiPaginationItem.js +14 -0
  268. package/esm/theme/components/MuiTableCell.d.ts +3 -0
  269. package/esm/theme/components/MuiTableCell.js +9 -0
  270. package/esm/theme/components/MuiTableHead.d.ts +3 -0
  271. package/esm/theme/components/MuiTableHead.js +12 -0
  272. package/esm/theme/components/components.js +7 -1
  273. package/esm/theme/elevation.js +5 -5
  274. package/index.d.ts +8 -0
  275. package/index.js +8 -0
  276. package/package.json +2 -2
  277. package/theme/__tests__/BaseTheme.test.js +1 -1
  278. package/theme/components/MuiPaginationItem.d.ts +3 -0
  279. package/theme/components/MuiPaginationItem.js +17 -0
  280. package/theme/components/MuiTableCell.d.ts +3 -0
  281. package/theme/components/MuiTableCell.js +12 -0
  282. package/theme/components/MuiTableHead.d.ts +3 -0
  283. package/theme/components/MuiTableHead.js +15 -0
  284. package/theme/components/components.js +7 -1
  285. package/theme/elevation.js +5 -5
@@ -0,0 +1,26 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { Typography } from '../../Typography/Typography';
14
+ import { SortStates } from '../constants';
15
+ import { StyledTableCell, StyledTableSortLabel } from './styled';
16
+ export function DataGridHeadColumn(_a) {
17
+ var onSort = _a.onSort, field = _a.field, sortable = _a.sortable, align = _a.align, label = _a.label, sorting = _a.sorting, renderCell = _a.renderCell;
18
+ var sortParams = sorting.find(function (_a) {
19
+ var fieldId = _a.fieldId;
20
+ return field === fieldId;
21
+ });
22
+ var hideSortIcon = !Boolean(sortParams);
23
+ var sortDirection = sortParams ? sortParams.sort : SortStates.ASC;
24
+ var fitContent = Boolean(renderCell);
25
+ return (_jsxs(StyledTableCell, __assign({ onClick: onSort(field, sortable), fitContent: fitContent, align: align }, { children: [_jsx(Typography, __assign({ variant: "pointer" }, { children: label }), void 0), sortable && (_jsx(StyledTableSortLabel, { hideSortIcon: hideSortIcon, direction: sortDirection, active: true }, void 0))] }), void 0));
26
+ }
@@ -0,0 +1,2 @@
1
+ export * from './DataGridHeadColumn';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './DataGridHeadColumn';
2
+ export * from './types';
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ import { TableCellProps } from '@mui/material';
3
+ export declare const StyledTableSortLabel: import("@emotion/styled").StyledComponent<{
4
+ active?: boolean | undefined;
5
+ children?: import("react").ReactNode;
6
+ classes?: Partial<import("@mui/material").TableSortLabelClasses> | undefined;
7
+ direction?: "desc" | "asc" | undefined;
8
+ hideSortIcon?: boolean | undefined;
9
+ IconComponent?: import("react").JSXElementConstructor<{
10
+ className: string;
11
+ }> | undefined;
12
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
13
+ } & Omit<{
14
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
15
+ centerRipple?: boolean | undefined;
16
+ children?: import("react").ReactNode;
17
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
18
+ disabled?: boolean | undefined;
19
+ disableRipple?: boolean | undefined;
20
+ disableTouchRipple?: boolean | undefined;
21
+ focusRipple?: boolean | undefined;
22
+ focusVisibleClassName?: string | undefined;
23
+ LinkComponent?: import("react").ElementType<any> | undefined;
24
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
25
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
26
+ tabIndex?: number | undefined;
27
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
28
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
29
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
30
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
31
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "disabled" | "sx" | "tabIndex" | "direction" | "action" | "active" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "hideSortIcon" | "IconComponent"> & {
32
+ theme?: import("@emotion/react").Theme | undefined;
33
+ }, {}, {}>;
34
+ export declare const StyledTableCell: import("@emotion/styled").StyledComponent<TableCellProps & {
35
+ theme?: import("@emotion/react").Theme | undefined;
36
+ } & {
37
+ fitContent?: boolean | undefined;
38
+ }, {}, {}>;
@@ -0,0 +1,17 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { styled } from '../../styles';
6
+ import { TableCell, TableSortLabel } from '../../Table';
7
+ export var StyledTableSortLabel = styled(TableSortLabel)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n visibility: ", ";\n"], ["\n visibility: ", ";\n"])), function (_a) {
8
+ var hideSortIcon = _a.hideSortIcon;
9
+ return hideSortIcon && 'hidden';
10
+ });
11
+ export var StyledTableCell = styled(TableCell, {
12
+ shouldForwardProp: function (prop) { return prop !== 'fitContent'; },
13
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: ", ";\n\n cursor: pointer;\n\n user-select: none;\n"], ["\n width: ", ";\n\n cursor: pointer;\n\n user-select: none;\n"])), function (_a) {
14
+ var fitContent = _a.fitContent;
15
+ return (fitContent ? '1%' : 'auto');
16
+ });
17
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,11 @@
1
+ import { TableCellProps } from '@mui/material';
2
+ import { DataGridSort, RenderCell } from '../types';
3
+ export declare type DataGridHeadColumnProps<T> = {
4
+ onSort: (field: keyof T, sortable: boolean | undefined) => () => void;
5
+ sorting: DataGridSort<T>[];
6
+ renderCell?: RenderCell<T>;
7
+ label?: string;
8
+ sortable?: boolean;
9
+ align?: TableCellProps['align'];
10
+ field: keyof T;
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DataGridLoaderProps } from './types';
3
+ declare const DataGridLoader: ({ loading }: DataGridLoaderProps) => JSX.Element;
4
+ export default DataGridLoader;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Backdrop, LoaderWrapper, StyledDivider, StyledLinearProgress, } from './styled';
3
+ var DataGridLoader = function (_a) {
4
+ var _b = _a.loading, loading = _b === void 0 ? false : _b;
5
+ return (_jsxs(LoaderWrapper, { children: [loading && _jsx(Backdrop, {}, void 0), loading ? _jsx(StyledLinearProgress, {}, void 0) : _jsx(StyledDivider, {}, void 0)] }, void 0));
6
+ };
7
+ export default DataGridLoader;
@@ -0,0 +1,2 @@
1
+ export * from './styled';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './styled';
2
+ export * from './types';
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ export declare const Backdrop: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const StyledDivider: import("@emotion/styled").StyledComponent<{
7
+ absolute?: boolean | undefined;
8
+ children?: import("react").ReactNode;
9
+ classes?: Partial<import("@mui/material").DividerClasses> | undefined;
10
+ flexItem?: boolean | undefined;
11
+ light?: boolean | undefined;
12
+ orientation?: "horizontal" | "vertical" | undefined;
13
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
14
+ textAlign?: "left" | "center" | "right" | undefined;
15
+ variant?: "middle" | "inset" | "fullWidth" | undefined;
16
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "key" | keyof import("react").HTMLAttributes<HTMLHRElement>> & {
17
+ ref?: ((instance: HTMLHRElement | null) => void) | import("react").RefObject<HTMLHRElement> | null | undefined;
18
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "orientation" | "textAlign" | "light" | "absolute" | "flexItem"> & {
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ }, {}, {}>;
21
+ export declare const LoaderWrapper: import("@emotion/styled").StyledComponent<{
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
24
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
+ export declare const StyledLinearProgress: import("@emotion/styled").StyledComponent<import("@mui/material").LinearProgressProps & {
26
+ theme?: import("@emotion/react").Theme | undefined;
27
+ }, {}, {}>;
@@ -0,0 +1,15 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { LinearProgress } from '@mui/material';
6
+ import { Divider } from '../../Divider';
7
+ import { styled } from '../../styles';
8
+ export var Backdrop = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n\n width: 100%;\n height: 100%;\n\n background-color: ", ";\n opacity: 0.6;\n"], ["\n position: absolute;\n top: 0;\n\n width: 100%;\n height: 100%;\n\n background-color: ", ";\n opacity: 0.6;\n"])), function (_a) {
9
+ var theme = _a.theme;
10
+ return theme.palette.grey['100'];
11
+ });
12
+ export var StyledDivider = styled(Divider)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-width: 1px;\n"], ["\n border-width: 1px;\n"])));
13
+ export var LoaderWrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 2px;\n"], ["\n height: 2px;\n"])));
14
+ export var StyledLinearProgress = styled(LinearProgress)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 2px;\n"], ["\n height: 2px;\n"])));
15
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -0,0 +1,3 @@
1
+ export declare type DataGridLoaderProps = {
2
+ loading?: boolean;
3
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare enum SortStates {
2
+ ASC = "asc",
3
+ DESC = "desc"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var SortStates;
2
+ (function (SortStates) {
3
+ SortStates["ASC"] = "asc";
4
+ SortStates["DESC"] = "desc";
5
+ })(SortStates || (SortStates = {}));
@@ -0,0 +1,2 @@
1
+ export * from './DataGrid';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './DataGrid';
2
+ export * from './types';
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ export declare const DataGridContainer: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const StyledTableContainer: import("@emotion/styled").StyledComponent<{
7
+ children?: import("react").ReactNode;
8
+ classes?: Partial<import("@mui/material").TableContainerClasses> | undefined;
9
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
10
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
11
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
12
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx"> & {
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ } & {
15
+ maxHeight?: number | undefined;
16
+ }, {}, {}>;
@@ -0,0 +1,14 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { styled } from '../styles';
6
+ import { TableContainer } from '../Table';
7
+ export var DataGridContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n overflow: hidden;\n"], ["\n width: 100%;\n overflow: hidden;\n"])));
8
+ export var StyledTableContainer = styled(TableContainer, {
9
+ shouldForwardProp: function (prop) { return prop !== 'maxHeight'; },
10
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n\n max-height: ", ";\n"], ["\n position: relative;\n\n max-height: ", ";\n"])), function (_a) {
11
+ var maxHeight = _a.maxHeight;
12
+ return "".concat(maxHeight, "px") || 'auto';
13
+ });
14
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,32 @@
1
+ import { ReactNode } from 'react';
2
+ import { SortStates } from './constants';
3
+ export declare type CellValue = string | number | boolean | Date | null | undefined | object;
4
+ export declare type SortState = `${SortStates}`;
5
+ export declare type RenderCell<T> = (params: T) => ReactNode;
6
+ export declare type DataGridRow = Record<string, any>;
7
+ export declare type DataGridSort<Data extends {}> = {
8
+ fieldId: keyof Data;
9
+ sort: SortState;
10
+ };
11
+ export declare type DataGridProps<T = DataGridRow> = {
12
+ rows: T[];
13
+ columns: DataGridColumns<T>[];
14
+ keyId: keyof DataGridRow;
15
+ selectedRows?: Array<T>;
16
+ onSelectRow?: (row: T[]) => void;
17
+ sorting?: DataGridSort<T>[];
18
+ onSort: (sorting: DataGridSort<T>[]) => void;
19
+ Footer?: ReactNode;
20
+ maxHeight?: number;
21
+ loading?: boolean;
22
+ minDisplayRows?: number;
23
+ };
24
+ export declare type DataGridColumns<Column extends {}> = {
25
+ field: keyof Column & string;
26
+ label?: string;
27
+ sortable?: boolean;
28
+ pointer?: boolean;
29
+ renderCell?: RenderCell<Column>;
30
+ format?: (data: Column) => CellValue;
31
+ align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
32
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DataGridPaginationProps } from './types';
3
+ export declare const DataGridPagination: ({ page, rowsPerPage, totalCount, className, ...props }: DataGridPaginationProps) => JSX.Element;
@@ -0,0 +1,34 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { useMemo } from 'react';
25
+ import { Pagination } from '../Pagination';
26
+ import { PaginationWrapper, Range } from './styled';
27
+ export var DataGridPagination = function (_a) {
28
+ var page = _a.page, _b = _a.rowsPerPage, rowsPerPage = _b === void 0 ? 10 : _b, totalCount = _a.totalCount, className = _a.className, props = __rest(_a, ["page", "rowsPerPage", "totalCount", "className"]);
29
+ var count = Math.ceil(totalCount / rowsPerPage);
30
+ var rangeStart = useMemo(function () { return page * rowsPerPage; }, [page]);
31
+ var rangeEnd = useMemo(function () { return page * rowsPerPage + rowsPerPage; }, [page]);
32
+ var formattedRange = "".concat(rangeStart, " \u2014 ").concat(rangeEnd, " \u0438\u0437 ").concat(totalCount, " \u0437\u0430\u043F\u0438\u0441\u0435\u0439");
33
+ return (_jsxs(PaginationWrapper, __assign({ className: className }, { children: [_jsx(Range, __assign({ variant: "h6" }, { children: formattedRange }), void 0), _jsx(Pagination, __assign({ count: count }, props), void 0)] }), void 0));
34
+ };
@@ -0,0 +1,2 @@
1
+ export * from './DataGridPagination';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './DataGridPagination';
2
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export declare const PaginationWrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const Range: import("@emotion/styled").StyledComponent<Omit<import("@mui/material").TypographyProps<"span", {}>, "variant"> & {
7
+ variant?: "link" | "small" | "code" | "pointer" | import("@mui/material").TypographyVariant | "h7" | "h8" | "h9" | "ui" | undefined;
8
+ } & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ }, {}, {}>;
@@ -0,0 +1,15 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { styled } from '../styles';
6
+ import { Typography } from '../Typography';
7
+ export var PaginationWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", ";\n"])), function (_a) {
8
+ var theme = _a.theme;
9
+ return theme.spacing(2, 0);
10
+ });
11
+ export var Range = styled(Typography)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
12
+ var theme = _a.theme;
13
+ return theme.palette.grey['700'];
14
+ });
15
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,6 @@
1
+ import { PaginationProps } from '../Pagination';
2
+ export declare type DataGridPaginationProps = Omit<PaginationProps, 'count'> & {
3
+ totalCount: number;
4
+ rowsPerPage?: number;
5
+ page: number;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,5 @@
1
- import React from 'react';
2
1
  import { DialogProps as MuiDialogProps } from '@mui/material';
3
- export declare type DialogProps = Omit<MuiDialogProps, 'onClose'> & {
2
+ export declare type DialogProps = MuiDialogProps & {
4
3
  title?: string;
5
4
  disableBackdropClick?: boolean;
6
- onClose?: (event?: React.MouseEvent<HTMLButtonElement>, reason?: 'backdropClick' | 'escapeKeyDown') => void;
7
5
  };
@@ -23,8 +23,11 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import { DialogTitle as MuiDialogTitle } from '@mui/material';
25
25
  import { CrossOutlineMd } from '@astral/icons';
26
+ import { useCallback } from 'react';
26
27
  import { IconButton } from '../IconButton';
27
28
  export var DialogTitle = function (_a) {
29
+ // 'escapeKeyDown' в документашке написано что это опциональный тип, и можно стрингу любую туда закидывать, а по факту либо escapeKeyDown либо backdropClick
28
30
  var children = _a.children, onClose = _a.onClose, props = __rest(_a, ["children", "onClose"]);
29
- return (_jsxs(MuiDialogTitle, __assign({}, props, { children: [children, onClose && (_jsx(IconButton, __assign({ variant: "text", onClick: onClose }, { children: _jsx(CrossOutlineMd, {}, void 0) }), void 0))] }), void 0));
31
+ var onClickTitle = useCallback(function (e) { return onClose && onClose(e, 'escapeKeyDown'); }, [onClose]);
32
+ return (_jsxs(MuiDialogTitle, __assign({}, props, { children: [children, onClose && (_jsx(IconButton, __assign({ variant: "text", onClick: onClickTitle }, { children: _jsx(CrossOutlineMd, {}, void 0) }), void 0))] }), void 0));
30
33
  };
@@ -1,4 +1,4 @@
1
- import { DialogTitleProps as MuiDialogTitleProps } from '@mui/material';
1
+ import { ModalProps, DialogTitleProps as MuiDialogTitleProps } from '@mui/material';
2
2
  export declare type DialogTitleProps = MuiDialogTitleProps & {
3
- onClose?: () => void;
3
+ onClose?: ModalProps['onClose'];
4
4
  };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PaginationProps } from './types';
3
+ export declare const Pagination: ({ ...props }: PaginationProps) => JSX.Element;
@@ -0,0 +1,28 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { Pagination as MuiPagination } from '@mui/material';
25
+ export var Pagination = function (_a) {
26
+ var props = __rest(_a, []);
27
+ return _jsx(MuiPagination, __assign({ shape: "rounded" }, props), void 0);
28
+ };
@@ -0,0 +1,2 @@
1
+ export * from './Pagination';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './Pagination';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ import { PaginationProps as MuiPaginationProps } from '@mui/material';
2
+ export declare type PaginationProps = Omit<MuiPaginationProps, 'shape'>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { SelectProps } from './types';
3
- export declare const Select: ({ multiple, loading, placeholder, helperText, success, children, label, error, ...props }: SelectProps) => JSX.Element;
3
+ export declare const Select: ({ multiple, loading, placeholder, getOptionLabel, helperText, success, children, label, error, ...props }: SelectProps) => JSX.Element;
@@ -29,17 +29,20 @@ import { CircularProgress } from '../CircularProgress';
29
29
  import { MenuItem } from '../MenuItem';
30
30
  import { Placeholder, ProgressWrapper, TagsWrapper } from './styled';
31
31
  export var Select = function (_a) {
32
- var multiple = _a.multiple, loading = _a.loading, placeholder = _a.placeholder, helperText = _a.helperText, success = _a.success, children = _a.children, label = _a.label, error = _a.error, props = __rest(_a, ["multiple", "loading", "placeholder", "helperText", "success", "children", "label", "error"]);
32
+ var multiple = _a.multiple, loading = _a.loading, placeholder = _a.placeholder, _b = _a.getOptionLabel, getOptionLabel = _b === void 0 ? function (value) { return value; } : _b, helperText = _a.helperText, success = _a.success, children = _a.children, label = _a.label, error = _a.error, props = __rest(_a, ["multiple", "loading", "placeholder", "getOptionLabel", "helperText", "success", "children", "label", "error"]);
33
33
  // unknown, т.к. ts ругается на несоответствие типов. По-умолчанию в selectedOptions string или string[].
34
34
  var renderValue = function (selectedOptions) {
35
35
  if (Array.isArray(selectedOptions) && selectedOptions.length) {
36
- return (_jsx(TagsWrapper, { children: selectedOptions.map(function (option) { return (_jsx(Tag, { color: "grey", label: option }, option)); }) }, void 0));
36
+ return (_jsx(TagsWrapper, { children: selectedOptions.map(function (option) {
37
+ var optionLabel = getOptionLabel(option);
38
+ return _jsx(Tag, { color: "grey", label: optionLabel }, option);
39
+ }) }, void 0));
37
40
  }
38
41
  if ((Array.isArray(selectedOptions) || typeof selectedOptions === 'string') &&
39
42
  !selectedOptions.length) {
40
43
  return placeholder;
41
44
  }
42
- return selectedOptions;
45
+ return getOptionLabel(selectedOptions);
43
46
  };
44
47
  var isNoData = !Boolean(React.Children.count(children));
45
48
  return (_jsxs(TextField, __assign({ select: true, label: label, helperText: helperText, error: error, success: success, SelectProps: __assign(__assign({}, props), { multiple: multiple, renderValue: renderValue, displayEmpty: true, IconComponent: ChevronDOutlineMd }) }, { children: [_jsx(Placeholder, __assign({ value: "" }, { children: "placeholder" }), void 0), loading && (_jsx(ProgressWrapper, { children: _jsx(CircularProgress, { color: "primary" }, void 0) }, void 0)), !loading && children, !loading && isNoData && _jsx(MenuItem, __assign({ disabled: true }, { children: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445" }), void 0)] }), void 0));
@@ -3,4 +3,5 @@ import { TextFieldProps } from '../TextField';
3
3
  export declare type SelectProps = MuiSelectProps & Pick<TextFieldProps, 'error' | 'success' | 'SelectProps' | 'helperText' | 'label'> & {
4
4
  loading?: boolean;
5
5
  placeholder?: string;
6
+ getOptionLabel?: (value: string | number) => string | number;
6
7
  };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SideDialogProps } from './types';
3
+ export declare const SideDialog: ({ children, title, onClose, open, ...props }: SideDialogProps) => JSX.Element;
@@ -0,0 +1,29 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { SideDialogTitle } from '../SideDialogTitle';
25
+ import { StyledDrawer } from './styled';
26
+ export var SideDialog = function (_a) {
27
+ var children = _a.children, title = _a.title, onClose = _a.onClose, open = _a.open, props = __rest(_a, ["children", "title", "onClose", "open"]);
28
+ return (_jsxs(StyledDrawer, __assign({ anchor: "right", open: open, onClose: onClose }, props, { children: [_jsx(SideDialogTitle, __assign({ onClose: onClose }, { children: title }), void 0), children] }), void 0));
29
+ };
@@ -0,0 +1,2 @@
1
+ export * from './SideDialog';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './SideDialog';
2
+ export * from './types';
@@ -0,0 +1,4 @@
1
+ import { DrawerProps } from '@mui/material';
2
+ export declare const StyledDrawer: import("@emotion/styled").StyledComponent<DrawerProps & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ }, {}, {}>;
@@ -0,0 +1,8 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { Drawer } from '@mui/material';
6
+ import { styled } from '../styles';
7
+ export var StyledDrawer = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiPaper-root {\n width: 30%;\n }\n height: 100vh;\n"], ["\n .MuiPaper-root {\n width: 30%;\n }\n height: 100vh;\n"])));
8
+ var templateObject_1;
@@ -0,0 +1,4 @@
1
+ import { DrawerProps as MuiDrawerProps } from '@mui/material';
2
+ export declare type SideDialogProps = MuiDrawerProps & {
3
+ title: string;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { DialogActions as SideDialogActions } from '../DialogActions';
@@ -0,0 +1 @@
1
+ export { DialogActions as SideDialogActions } from '../DialogActions';
@@ -0,0 +1 @@
1
+ export * from './SideDialogActions';
@@ -0,0 +1 @@
1
+ export * from './SideDialogActions';
@@ -0,0 +1 @@
1
+ export type { DialogActionsProps as SideDialogActionsProps } from '@mui/material';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { DialogContent as SideDialogContent } from '../DialogContent';
@@ -0,0 +1 @@
1
+ export { DialogContent as SideDialogContent } from '../DialogContent';
@@ -0,0 +1 @@
1
+ export * from './SideDialogContent';
@@ -0,0 +1 @@
1
+ export * from './SideDialogContent';
@@ -0,0 +1 @@
1
+ export type { DialogContentProps as SideDialogContentProps } from '@mui/material';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { DialogContentText as SideDialogContentText } from '../DialogContentText';