@astral/ui 0.21.0 → 0.23.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Button/Button.d.ts +2 -1
- package/Button/Button.js +6 -17
- package/Button/types.d.ts +18 -6
- package/ButtonBase/styled.d.ts +5 -2
- package/ButtonBase/styled.js +10 -9
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +12 -7
- package/CircularProgress/CircularProgressStory.d.ts +5 -0
- package/CircularProgress/CircularProgressStory.js +11 -0
- package/CircularProgress/CircularProgressStoryTemplate.d.ts +4 -0
- package/CircularProgress/CircularProgressStoryTemplate.js +21 -0
- package/CircularProgress/types.d.ts +8 -5
- package/DataGrid/DataGrid.d.ts +3 -0
- package/DataGrid/DataGrid.js +64 -0
- package/DataGrid/DataGridBody/DataGridBody.d.ts +3 -0
- package/DataGrid/DataGridBody/DataGridBody.js +39 -0
- package/DataGrid/DataGridBody/index.d.ts +1 -0
- package/DataGrid/DataGridBody/index.js +13 -0
- package/DataGrid/DataGridBody/styled.d.ts +13 -0
- package/DataGrid/DataGridBody/styled.js +17 -0
- package/DataGrid/DataGridBody/types.d.ts +11 -0
- package/DataGrid/DataGridBody/types.js +2 -0
- package/DataGrid/DataGridCell/DataGridCell.d.ts +3 -0
- package/DataGrid/DataGridCell/DataGridCell.js +29 -0
- package/DataGrid/DataGridCell/index.d.ts +1 -0
- package/DataGrid/DataGridCell/index.js +13 -0
- package/DataGrid/DataGridCell/types.d.ts +5 -0
- package/DataGrid/DataGridCell/types.js +2 -0
- package/DataGrid/DataGridHead/DataGridHead.d.ts +3 -0
- package/DataGrid/DataGridHead/DataGridHead.js +71 -0
- package/DataGrid/DataGridHead/index.d.ts +2 -0
- package/DataGrid/DataGridHead/index.js +14 -0
- package/DataGrid/DataGridHead/types.d.ts +11 -0
- package/DataGrid/DataGridHead/types.js +2 -0
- package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +3 -0
- package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +30 -0
- package/DataGrid/DataGridHeadColumn/index.d.ts +2 -0
- package/DataGrid/DataGridHeadColumn/index.js +14 -0
- package/DataGrid/DataGridHeadColumn/styled.d.ts +38 -0
- package/DataGrid/DataGridHeadColumn/styled.js +20 -0
- package/DataGrid/DataGridHeadColumn/types.d.ts +11 -0
- package/DataGrid/DataGridHeadColumn/types.js +2 -0
- package/DataGrid/DataGridLoader/DataGridLoader.d.ts +4 -0
- package/DataGrid/DataGridLoader/DataGridLoader.js +9 -0
- package/DataGrid/DataGridLoader/index.d.ts +2 -0
- package/DataGrid/DataGridLoader/index.js +14 -0
- package/DataGrid/DataGridLoader/styled.d.ts +27 -0
- package/DataGrid/DataGridLoader/styled.js +18 -0
- package/DataGrid/DataGridLoader/types.d.ts +3 -0
- package/DataGrid/DataGridLoader/types.js +2 -0
- package/DataGrid/constants.d.ts +4 -0
- package/DataGrid/constants.js +8 -0
- package/DataGrid/index.d.ts +2 -0
- package/DataGrid/index.js +14 -0
- package/DataGrid/styled.d.ts +16 -0
- package/DataGrid/styled.js +17 -0
- package/DataGrid/types.d.ts +32 -0
- package/DataGrid/types.js +2 -0
- package/DataGridPagination/DataGridPagination.d.ts +3 -0
- package/DataGridPagination/DataGridPagination.js +38 -0
- package/DataGridPagination/index.d.ts +2 -0
- package/DataGridPagination/index.js +14 -0
- package/DataGridPagination/styled.d.ts +10 -0
- package/DataGridPagination/styled.js +18 -0
- package/DataGridPagination/types.d.ts +6 -0
- package/DataGridPagination/types.js +2 -0
- package/FormHelperText/styled.d.ts +2 -2
- package/Grid/styled.d.ts +1 -1
- package/IconButton/styled.d.ts +3 -5
- package/ListItemButton/styled.d.ts +1 -1
- package/Pagination/Pagination.d.ts +3 -0
- package/Pagination/Pagination.js +32 -0
- package/Pagination/index.d.ts +2 -0
- package/Pagination/index.js +14 -0
- package/Pagination/types.d.ts +2 -0
- package/Pagination/types.js +2 -0
- package/Radio/Radio.d.ts +1 -1
- package/Select/styled.d.ts +1 -1
- package/Table/Table.d.ts +3 -0
- package/Table/Table.js +32 -0
- package/Table/TableBody/TableBody.d.ts +3 -0
- package/Table/TableBody/TableBody.js +5 -0
- package/Table/TableBody/index.d.ts +1 -0
- package/Table/TableBody/index.js +13 -0
- package/Table/TableCell/TableCell.d.ts +3 -0
- package/Table/TableCell/TableCell.js +5 -0
- package/Table/TableCell/index.d.ts +1 -0
- package/Table/TableCell/index.js +13 -0
- package/Table/TableContainer/TableContainer.d.ts +3 -0
- package/Table/TableContainer/TableContainer.js +5 -0
- package/Table/TableContainer/index.d.ts +1 -0
- package/Table/TableContainer/index.js +13 -0
- package/Table/TableFooter/TableFooter.d.ts +3 -0
- package/Table/TableFooter/TableFooter.js +5 -0
- package/Table/TableFooter/index.d.ts +1 -0
- package/Table/TableFooter/index.js +13 -0
- package/Table/TableHead/TableHead.d.ts +3 -0
- package/Table/TableHead/TableHead.js +5 -0
- package/Table/TableHead/index.d.ts +1 -0
- package/Table/TableHead/index.js +13 -0
- package/Table/TableRow/TableRow.d.ts +3 -0
- package/Table/TableRow/TableRow.js +5 -0
- package/Table/TableRow/index.d.ts +1 -0
- package/Table/TableRow/index.js +13 -0
- package/Table/TableSortLabel/TableSortLabel.d.ts +3 -0
- package/Table/TableSortLabel/TableSortLabel.js +5 -0
- package/Table/TableSortLabel/index.d.ts +1 -0
- package/Table/TableSortLabel/index.js +13 -0
- package/Table/index.d.ts +7 -0
- package/Table/index.js +19 -0
- package/TextArea/TextArea.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Button/Button.d.ts +2 -1
- package/esm/Button/Button.js +7 -17
- package/esm/Button/types.d.ts +18 -6
- package/esm/ButtonBase/styled.d.ts +5 -2
- package/esm/ButtonBase/styled.js +10 -9
- package/esm/CircularProgress/CircularProgress.d.ts +1 -1
- package/esm/CircularProgress/CircularProgress.js +9 -6
- package/esm/CircularProgress/CircularProgressStory.d.ts +5 -0
- package/esm/CircularProgress/CircularProgressStory.js +7 -0
- package/esm/CircularProgress/CircularProgressStoryTemplate.d.ts +4 -0
- package/esm/CircularProgress/CircularProgressStoryTemplate.js +17 -0
- package/esm/CircularProgress/types.d.ts +8 -5
- package/esm/DataGrid/DataGrid.d.ts +3 -0
- package/esm/DataGrid/DataGrid.js +57 -0
- package/esm/DataGrid/DataGridBody/DataGridBody.d.ts +3 -0
- package/esm/DataGrid/DataGridBody/DataGridBody.js +35 -0
- package/esm/DataGrid/DataGridBody/index.d.ts +1 -0
- package/esm/DataGrid/DataGridBody/index.js +1 -0
- package/esm/DataGrid/DataGridBody/styled.d.ts +13 -0
- package/esm/DataGrid/DataGridBody/styled.js +14 -0
- package/esm/DataGrid/DataGridBody/types.d.ts +11 -0
- package/esm/DataGrid/DataGridBody/types.js +1 -0
- package/esm/DataGrid/DataGridCell/DataGridCell.d.ts +3 -0
- package/esm/DataGrid/DataGridCell/DataGridCell.js +25 -0
- package/esm/DataGrid/DataGridCell/index.d.ts +1 -0
- package/esm/DataGrid/DataGridCell/index.js +1 -0
- package/esm/DataGrid/DataGridCell/types.d.ts +5 -0
- package/esm/DataGrid/DataGridCell/types.js +1 -0
- package/esm/DataGrid/DataGridHead/DataGridHead.d.ts +3 -0
- package/esm/DataGrid/DataGridHead/DataGridHead.js +67 -0
- package/esm/DataGrid/DataGridHead/index.d.ts +2 -0
- package/esm/DataGrid/DataGridHead/index.js +2 -0
- package/esm/DataGrid/DataGridHead/types.d.ts +11 -0
- package/esm/DataGrid/DataGridHead/types.js +1 -0
- package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +3 -0
- package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +26 -0
- package/esm/DataGrid/DataGridHeadColumn/index.d.ts +2 -0
- package/esm/DataGrid/DataGridHeadColumn/index.js +2 -0
- package/esm/DataGrid/DataGridHeadColumn/styled.d.ts +38 -0
- package/esm/DataGrid/DataGridHeadColumn/styled.js +17 -0
- package/esm/DataGrid/DataGridHeadColumn/types.d.ts +11 -0
- package/esm/DataGrid/DataGridHeadColumn/types.js +1 -0
- package/esm/DataGrid/DataGridLoader/DataGridLoader.d.ts +4 -0
- package/esm/DataGrid/DataGridLoader/DataGridLoader.js +7 -0
- package/esm/DataGrid/DataGridLoader/index.d.ts +2 -0
- package/esm/DataGrid/DataGridLoader/index.js +2 -0
- package/esm/DataGrid/DataGridLoader/styled.d.ts +27 -0
- package/esm/DataGrid/DataGridLoader/styled.js +15 -0
- package/esm/DataGrid/DataGridLoader/types.d.ts +3 -0
- package/esm/DataGrid/DataGridLoader/types.js +1 -0
- package/esm/DataGrid/constants.d.ts +4 -0
- package/esm/DataGrid/constants.js +5 -0
- package/esm/DataGrid/index.d.ts +2 -0
- package/esm/DataGrid/index.js +2 -0
- package/esm/DataGrid/styled.d.ts +16 -0
- package/esm/DataGrid/styled.js +14 -0
- package/esm/DataGrid/types.d.ts +32 -0
- package/esm/DataGrid/types.js +1 -0
- package/esm/DataGridPagination/DataGridPagination.d.ts +3 -0
- package/esm/DataGridPagination/DataGridPagination.js +34 -0
- package/esm/DataGridPagination/index.d.ts +2 -0
- package/esm/DataGridPagination/index.js +2 -0
- package/esm/DataGridPagination/styled.d.ts +10 -0
- package/esm/DataGridPagination/styled.js +15 -0
- package/esm/DataGridPagination/types.d.ts +6 -0
- package/esm/DataGridPagination/types.js +1 -0
- package/esm/FormHelperText/styled.d.ts +2 -2
- package/esm/Grid/styled.d.ts +1 -1
- package/esm/IconButton/styled.d.ts +3 -5
- package/esm/ListItemButton/styled.d.ts +1 -1
- package/esm/Pagination/Pagination.d.ts +3 -0
- package/esm/Pagination/Pagination.js +28 -0
- package/esm/Pagination/index.d.ts +2 -0
- package/esm/Pagination/index.js +2 -0
- package/esm/Pagination/types.d.ts +2 -0
- package/esm/Pagination/types.js +1 -0
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Select/styled.d.ts +1 -1
- package/esm/Table/Table.d.ts +3 -0
- package/esm/Table/Table.js +28 -0
- package/esm/Table/TableBody/TableBody.d.ts +3 -0
- package/esm/Table/TableBody/TableBody.js +2 -0
- package/esm/Table/TableBody/index.d.ts +1 -0
- package/esm/Table/TableBody/index.js +1 -0
- package/esm/Table/TableCell/TableCell.d.ts +3 -0
- package/esm/Table/TableCell/TableCell.js +2 -0
- package/esm/Table/TableCell/index.d.ts +1 -0
- package/esm/Table/TableCell/index.js +1 -0
- package/esm/Table/TableContainer/TableContainer.d.ts +3 -0
- package/esm/Table/TableContainer/TableContainer.js +2 -0
- package/esm/Table/TableContainer/index.d.ts +1 -0
- package/esm/Table/TableContainer/index.js +1 -0
- package/esm/Table/TableFooter/TableFooter.d.ts +3 -0
- package/esm/Table/TableFooter/TableFooter.js +2 -0
- package/esm/Table/TableFooter/index.d.ts +1 -0
- package/esm/Table/TableFooter/index.js +1 -0
- package/esm/Table/TableHead/TableHead.d.ts +3 -0
- package/esm/Table/TableHead/TableHead.js +2 -0
- package/esm/Table/TableHead/index.d.ts +1 -0
- package/esm/Table/TableHead/index.js +1 -0
- package/esm/Table/TableRow/TableRow.d.ts +3 -0
- package/esm/Table/TableRow/TableRow.js +2 -0
- package/esm/Table/TableRow/index.d.ts +1 -0
- package/esm/Table/TableRow/index.js +1 -0
- package/esm/Table/TableSortLabel/TableSortLabel.d.ts +3 -0
- package/esm/Table/TableSortLabel/TableSortLabel.js +2 -0
- package/esm/Table/TableSortLabel/index.d.ts +1 -0
- package/esm/Table/TableSortLabel/index.js +1 -0
- package/esm/Table/index.d.ts +7 -0
- package/esm/Table/index.js +7 -0
- package/esm/TextArea/TextArea.d.ts +1 -1
- package/esm/TextField/TextField.d.ts +1 -1
- package/esm/Tooltip/Tooltip.d.ts +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -0
- package/esm/theme/__tests__/BaseTheme.test.js +1 -1
- package/esm/theme/components/MuiButton.d.ts +3 -0
- package/esm/theme/components/MuiButton.js +96 -0
- package/esm/theme/components/MuiCircularProgress.d.ts +4 -0
- package/esm/theme/components/MuiCircularProgress.js +14 -0
- package/esm/theme/components/MuiLoadingButton.d.ts +4 -0
- package/esm/theme/components/MuiLoadingButton.js +45 -0
- package/esm/theme/components/MuiPaginationItem.d.ts +3 -0
- package/esm/theme/components/MuiPaginationItem.js +14 -0
- package/esm/theme/components/MuiTableCell.d.ts +3 -0
- package/esm/theme/components/MuiTableCell.js +9 -0
- package/esm/theme/components/MuiTableHead.d.ts +3 -0
- package/esm/theme/components/MuiTableHead.js +12 -0
- package/esm/theme/components/components.js +13 -1
- package/esm/theme/elevation.js +5 -5
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/package.json +2 -2
- package/theme/__tests__/BaseTheme.test.js +1 -1
- package/theme/components/MuiButton.d.ts +3 -0
- package/theme/components/MuiButton.js +99 -0
- package/theme/components/MuiCircularProgress.d.ts +4 -0
- package/theme/components/MuiCircularProgress.js +17 -0
- package/theme/components/MuiLoadingButton.d.ts +4 -0
- package/theme/components/MuiLoadingButton.js +48 -0
- package/theme/components/MuiPaginationItem.d.ts +3 -0
- package/theme/components/MuiPaginationItem.js +17 -0
- package/theme/components/MuiTableCell.d.ts +3 -0
- package/theme/components/MuiTableCell.js +12 -0
- package/theme/components/MuiTableHead.d.ts +3 -0
- package/theme/components/MuiTableHead.js +15 -0
- package/theme/components/components.js +13 -1
- package/theme/elevation.js +5 -5
- package/Button/styled.d.ts +0 -12
- package/Button/styled.js +0 -36
- package/CircularProgress/styled.d.ts +0 -6
- package/CircularProgress/styled.js +0 -20
- package/esm/Button/styled.d.ts +0 -12
- package/esm/Button/styled.js +0 -33
- package/esm/CircularProgress/styled.d.ts +0 -6
- package/esm/CircularProgress/styled.js +0 -17
|
@@ -1,20 +1,26 @@
|
|
|
1
|
+
import { MuiButton } from './MuiButton';
|
|
1
2
|
import { MuiButtonBase } from './MuiButtonBase';
|
|
3
|
+
import { MuiLoadingButton } from './MuiLoadingButton';
|
|
2
4
|
import { MuiInputBase } from './MuiInputBase';
|
|
3
5
|
import { MuiFormHelperText } from './MuiFormHelperText';
|
|
4
6
|
import { MuiFormLabel } from './MuiFormLabel';
|
|
5
7
|
import { MuiInputLabel } from './MuiInputLabel';
|
|
6
8
|
import { MuiOutlinedInput } from './MuiOutlinedInput';
|
|
9
|
+
import { MuiPaginationItem } from './MuiPaginationItem';
|
|
7
10
|
import { MuiTypography } from './MuiTypography';
|
|
8
11
|
import { MuiAutocomplete } from './MuiAutocomplete';
|
|
9
12
|
import { MuiDialog } from './MuiDialog';
|
|
10
13
|
import { MuiDialogTitle } from './MuiDialogTitle';
|
|
11
14
|
import { MuiDialogContent } from './MuiDialogContent';
|
|
12
15
|
import { MuiDialogActions } from './MuiDialogActions';
|
|
16
|
+
import { MuiTableCell } from './MuiTableCell';
|
|
17
|
+
import { MuiTableHead } from './MuiTableHead';
|
|
13
18
|
import { MuiPickersDay } from './MuiPickersDay';
|
|
14
19
|
import { MuiCalendarPicker } from './MuiCalendarPicker';
|
|
15
20
|
import { MuiYearPicker } from './MuiYearPicker';
|
|
21
|
+
import { MuiCircularProgress } from './MuiCircularProgress';
|
|
16
22
|
var getMuiCssBaseline = function (fontUrls) { return ({
|
|
17
|
-
styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
|
|
23
|
+
styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face { \n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
|
|
18
24
|
}); };
|
|
19
25
|
var MuiCheckbox = {
|
|
20
26
|
defaultProps: {
|
|
@@ -63,7 +69,9 @@ var MuiMenuItem = {
|
|
|
63
69
|
};
|
|
64
70
|
export var getComponents = function (fontUrls) { return ({
|
|
65
71
|
MuiCssBaseline: getMuiCssBaseline(fontUrls),
|
|
72
|
+
MuiButton: MuiButton,
|
|
66
73
|
MuiButtonBase: MuiButtonBase,
|
|
74
|
+
MuiLoadingButton: MuiLoadingButton,
|
|
67
75
|
MuiTypography: MuiTypography,
|
|
68
76
|
MuiInputBase: MuiInputBase,
|
|
69
77
|
MuiInputLabel: MuiInputLabel,
|
|
@@ -79,7 +87,11 @@ export var getComponents = function (fontUrls) { return ({
|
|
|
79
87
|
MuiDialogTitle: MuiDialogTitle,
|
|
80
88
|
MuiDialogContent: MuiDialogContent,
|
|
81
89
|
MuiDialogActions: MuiDialogActions,
|
|
90
|
+
MuiTableCell: MuiTableCell,
|
|
91
|
+
MuiTableHead: MuiTableHead,
|
|
92
|
+
MuiPaginationItem: MuiPaginationItem,
|
|
82
93
|
MuiPickersDay: MuiPickersDay,
|
|
83
94
|
MuiCalendarPicker: MuiCalendarPicker,
|
|
84
95
|
MuiYearPicker: MuiYearPicker,
|
|
96
|
+
MuiCircularProgress: MuiCircularProgress,
|
|
85
97
|
}); };
|
package/esm/theme/elevation.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export var elevation = {
|
|
2
|
-
100: '0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740',
|
|
3
|
-
200: '0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733',
|
|
4
|
-
300: '0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726',
|
|
5
|
-
400: '0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726',
|
|
6
|
-
500: '0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726',
|
|
2
|
+
100: '0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;',
|
|
3
|
+
200: '0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733;',
|
|
4
|
+
300: '0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726;',
|
|
5
|
+
400: '0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726;',
|
|
6
|
+
500: '0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726;',
|
|
7
7
|
};
|
package/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * from './Button';
|
|
|
4
4
|
export * from './ButtonBase';
|
|
5
5
|
export * from './Checkbox';
|
|
6
6
|
export * from './DashboardLayout';
|
|
7
|
+
export * from './DataGrid';
|
|
8
|
+
export * from './DataGridPagination';
|
|
7
9
|
export * from './Dialog';
|
|
8
10
|
export * from './DialogActions';
|
|
9
11
|
export * from './DialogContent';
|
|
@@ -31,6 +33,7 @@ export * from './Placeholder';
|
|
|
31
33
|
export * from './Select';
|
|
32
34
|
export * from './styles';
|
|
33
35
|
export * from './StylesCacheProvider';
|
|
36
|
+
export * from './Table';
|
|
34
37
|
export * from './Tag';
|
|
35
38
|
export * from './TextArea';
|
|
36
39
|
export * from './theme';
|
package/index.js
CHANGED
|
@@ -16,6 +16,8 @@ __exportStar(require("./Button"), exports);
|
|
|
16
16
|
__exportStar(require("./ButtonBase"), exports);
|
|
17
17
|
__exportStar(require("./Checkbox"), exports);
|
|
18
18
|
__exportStar(require("./DashboardLayout"), exports);
|
|
19
|
+
__exportStar(require("./DataGrid"), exports);
|
|
20
|
+
__exportStar(require("./DataGridPagination"), exports);
|
|
19
21
|
__exportStar(require("./Dialog"), exports);
|
|
20
22
|
__exportStar(require("./DialogActions"), exports);
|
|
21
23
|
__exportStar(require("./DialogContent"), exports);
|
|
@@ -43,6 +45,7 @@ __exportStar(require("./Placeholder"), exports);
|
|
|
43
45
|
__exportStar(require("./Select"), exports);
|
|
44
46
|
__exportStar(require("./styles"), exports);
|
|
45
47
|
__exportStar(require("./StylesCacheProvider"), exports);
|
|
48
|
+
__exportStar(require("./Table"), exports);
|
|
46
49
|
__exportStar(require("./Tag"), exports);
|
|
47
50
|
__exportStar(require("./TextArea"), exports);
|
|
48
51
|
__exportStar(require("./theme"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0-alpha.0",
|
|
4
4
|
"browser": "./src/index.ts",
|
|
5
5
|
"jest": {
|
|
6
6
|
"moduleNameMapper": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@astral/icons": "^0.
|
|
11
|
+
"@astral/icons": "^0.23.0-alpha.0",
|
|
12
12
|
"@emotion/cache": "11.7.1",
|
|
13
13
|
"@emotion/react": "11.8.1",
|
|
14
14
|
"@emotion/server": "11.4.0",
|
|
@@ -51,6 +51,6 @@ describe('createTheme', function () {
|
|
|
51
51
|
});
|
|
52
52
|
it('Theme has elevation params', function () {
|
|
53
53
|
var theme = (0, baseTheme_1.createTheme)({ brand: constants_1.Brand.SIGN, fontsUrls: fontsUrls });
|
|
54
|
-
expect(theme.elevation[100]).toBe('0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740');
|
|
54
|
+
expect(theme.elevation[100]).toBe('0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;');
|
|
55
55
|
});
|
|
56
56
|
});
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiButton = void 0;
|
|
4
|
+
var constants_1 = require("../../ButtonBase/constants");
|
|
5
|
+
var styled_1 = require("../../ButtonBase/styled");
|
|
6
|
+
exports.MuiButton = {
|
|
7
|
+
defaultProps: {
|
|
8
|
+
disableRipple: true,
|
|
9
|
+
},
|
|
10
|
+
styleOverrides: {
|
|
11
|
+
root: function (_a) {
|
|
12
|
+
var ownerState = _a.ownerState, theme = _a.theme;
|
|
13
|
+
var customVariant = ownerState.variant;
|
|
14
|
+
var customColor = ownerState.color;
|
|
15
|
+
return {
|
|
16
|
+
display: 'inline-flex',
|
|
17
|
+
color: (0, styled_1.getColor)({
|
|
18
|
+
theme: theme,
|
|
19
|
+
customVariant: customVariant,
|
|
20
|
+
customColor: customColor,
|
|
21
|
+
buttonState: constants_1.ButtonStates.DEFAULT,
|
|
22
|
+
}),
|
|
23
|
+
backgroundColor: (0, styled_1.getBgColor)({
|
|
24
|
+
customColor: customColor,
|
|
25
|
+
customVariant: customVariant,
|
|
26
|
+
buttonState: constants_1.ButtonStates.DEFAULT,
|
|
27
|
+
theme: theme,
|
|
28
|
+
}),
|
|
29
|
+
height: (0, styled_1.getButtonHeight)({
|
|
30
|
+
theme: theme,
|
|
31
|
+
size: ownerState.size,
|
|
32
|
+
}),
|
|
33
|
+
padding: (0, styled_1.getButtonPadding)({
|
|
34
|
+
theme: theme,
|
|
35
|
+
size: ownerState.size,
|
|
36
|
+
}),
|
|
37
|
+
fontWeight: theme.typography.button.fontWeight,
|
|
38
|
+
fontSize: theme.typography.button.fontSize,
|
|
39
|
+
border: 'none',
|
|
40
|
+
borderRadius: theme.shape.small,
|
|
41
|
+
textTransform: 'none',
|
|
42
|
+
boxShadow: 'none',
|
|
43
|
+
'&:hover': {
|
|
44
|
+
color: (0, styled_1.getColor)({
|
|
45
|
+
theme: theme,
|
|
46
|
+
customVariant: customVariant,
|
|
47
|
+
customColor: customColor,
|
|
48
|
+
buttonState: constants_1.ButtonStates.HOVER,
|
|
49
|
+
}),
|
|
50
|
+
backgroundColor: (0, styled_1.getBgColor)({
|
|
51
|
+
customColor: customColor,
|
|
52
|
+
customVariant: customVariant,
|
|
53
|
+
theme: theme,
|
|
54
|
+
buttonState: constants_1.ButtonStates.HOVER,
|
|
55
|
+
}),
|
|
56
|
+
boxShadow: 'none',
|
|
57
|
+
},
|
|
58
|
+
'&:active': {
|
|
59
|
+
color: (0, styled_1.getColor)({
|
|
60
|
+
customColor: customColor,
|
|
61
|
+
customVariant: customVariant,
|
|
62
|
+
theme: theme,
|
|
63
|
+
buttonState: constants_1.ButtonStates.ACTIVE,
|
|
64
|
+
}),
|
|
65
|
+
backgroundColor: (0, styled_1.getBgColor)({
|
|
66
|
+
customColor: customColor,
|
|
67
|
+
customVariant: customVariant,
|
|
68
|
+
theme: theme,
|
|
69
|
+
buttonState: constants_1.ButtonStates.ACTIVE,
|
|
70
|
+
}),
|
|
71
|
+
outline: 'none',
|
|
72
|
+
},
|
|
73
|
+
'&.Mui-disabled': {
|
|
74
|
+
color: theme.palette.grey['500'],
|
|
75
|
+
backgroundColor: (0, styled_1.getDisabledBgColor)({
|
|
76
|
+
theme: theme,
|
|
77
|
+
customVariant: customVariant,
|
|
78
|
+
}),
|
|
79
|
+
},
|
|
80
|
+
'&.Mui-focusVisible': {
|
|
81
|
+
color: (0, styled_1.getColor)({
|
|
82
|
+
theme: theme,
|
|
83
|
+
customVariant: customVariant,
|
|
84
|
+
customColor: customColor,
|
|
85
|
+
buttonState: constants_1.ButtonStates.FOCUS,
|
|
86
|
+
}),
|
|
87
|
+
backgroundColor: (0, styled_1.getBgColor)({
|
|
88
|
+
customColor: customColor,
|
|
89
|
+
customVariant: customVariant,
|
|
90
|
+
theme: theme,
|
|
91
|
+
buttonState: constants_1.ButtonStates.FOCUS,
|
|
92
|
+
}),
|
|
93
|
+
outline: "2px solid ".concat(theme.palette.primary['400']),
|
|
94
|
+
boxShadow: 'none',
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiCircularProgress = void 0;
|
|
4
|
+
exports.MuiCircularProgress = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: function (_a) {
|
|
7
|
+
var ownerState = _a.ownerState, theme = _a.theme;
|
|
8
|
+
var color = ownerState["data-color"];
|
|
9
|
+
return {
|
|
10
|
+
color: color === 'primary'
|
|
11
|
+
? theme.palette.grey[900]
|
|
12
|
+
: theme.palette.primary.contrastText,
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
exports.default = exports.MuiCircularProgress;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.MuiLoadingButton = void 0;
|
|
15
|
+
var lab_1 = require("@mui/lab");
|
|
16
|
+
var constants_1 = require("../../ButtonBase/constants");
|
|
17
|
+
var styled_1 = require("../../ButtonBase/styled");
|
|
18
|
+
exports.MuiLoadingButton = {
|
|
19
|
+
defaultProps: {
|
|
20
|
+
disableRipple: true,
|
|
21
|
+
},
|
|
22
|
+
styleOverrides: {
|
|
23
|
+
root: function (_a) {
|
|
24
|
+
var _b;
|
|
25
|
+
var ownerState = _a.ownerState, theme = _a.theme;
|
|
26
|
+
var customVariant = ownerState.variant;
|
|
27
|
+
var customColor = ownerState.color;
|
|
28
|
+
return _b = {},
|
|
29
|
+
_b["&.".concat(lab_1.loadingButtonClasses.loading)] = {
|
|
30
|
+
backgroundColor: (0, styled_1.getBgColor)({
|
|
31
|
+
customColor: customColor,
|
|
32
|
+
customVariant: customVariant,
|
|
33
|
+
theme: theme,
|
|
34
|
+
buttonState: constants_1.ButtonStates.DEFAULT,
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
_b;
|
|
38
|
+
},
|
|
39
|
+
loadingIndicator: function (_a) {
|
|
40
|
+
var ownerState = _a.ownerState, theme = _a.theme;
|
|
41
|
+
var customVariant = ownerState.variant;
|
|
42
|
+
return __assign({}, (customVariant === 'contained' && {
|
|
43
|
+
color: theme.palette.primary.contrastText,
|
|
44
|
+
}));
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
exports.default = exports.MuiLoadingButton;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiPaginationItem = void 0;
|
|
4
|
+
exports.MuiPaginationItem = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: function (_a) {
|
|
7
|
+
var _b;
|
|
8
|
+
var theme = _a.theme;
|
|
9
|
+
return _b = {},
|
|
10
|
+
_b['&.Mui-selected'] = {
|
|
11
|
+
backgroundColor: theme.palette.grey['900'],
|
|
12
|
+
color: theme.palette.primary.contrastText,
|
|
13
|
+
},
|
|
14
|
+
_b;
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiTableHead = void 0;
|
|
4
|
+
exports.MuiTableHead = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: function (_a) {
|
|
7
|
+
var theme = _a.theme;
|
|
8
|
+
return {
|
|
9
|
+
th: {
|
|
10
|
+
borderBottom: "2px solid ".concat(theme.palette.grey['300']),
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getComponents = void 0;
|
|
4
|
+
var MuiButton_1 = require("./MuiButton");
|
|
4
5
|
var MuiButtonBase_1 = require("./MuiButtonBase");
|
|
6
|
+
var MuiLoadingButton_1 = require("./MuiLoadingButton");
|
|
5
7
|
var MuiInputBase_1 = require("./MuiInputBase");
|
|
6
8
|
var MuiFormHelperText_1 = require("./MuiFormHelperText");
|
|
7
9
|
var MuiFormLabel_1 = require("./MuiFormLabel");
|
|
8
10
|
var MuiInputLabel_1 = require("./MuiInputLabel");
|
|
9
11
|
var MuiOutlinedInput_1 = require("./MuiOutlinedInput");
|
|
12
|
+
var MuiPaginationItem_1 = require("./MuiPaginationItem");
|
|
10
13
|
var MuiTypography_1 = require("./MuiTypography");
|
|
11
14
|
var MuiAutocomplete_1 = require("./MuiAutocomplete");
|
|
12
15
|
var MuiDialog_1 = require("./MuiDialog");
|
|
13
16
|
var MuiDialogTitle_1 = require("./MuiDialogTitle");
|
|
14
17
|
var MuiDialogContent_1 = require("./MuiDialogContent");
|
|
15
18
|
var MuiDialogActions_1 = require("./MuiDialogActions");
|
|
19
|
+
var MuiTableCell_1 = require("./MuiTableCell");
|
|
20
|
+
var MuiTableHead_1 = require("./MuiTableHead");
|
|
16
21
|
var MuiPickersDay_1 = require("./MuiPickersDay");
|
|
17
22
|
var MuiCalendarPicker_1 = require("./MuiCalendarPicker");
|
|
18
23
|
var MuiYearPicker_1 = require("./MuiYearPicker");
|
|
24
|
+
var MuiCircularProgress_1 = require("./MuiCircularProgress");
|
|
19
25
|
var getMuiCssBaseline = function (fontUrls) { return ({
|
|
20
|
-
styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
|
|
26
|
+
styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face { \n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
|
|
21
27
|
}); };
|
|
22
28
|
var MuiCheckbox = {
|
|
23
29
|
defaultProps: {
|
|
@@ -66,7 +72,9 @@ var MuiMenuItem = {
|
|
|
66
72
|
};
|
|
67
73
|
var getComponents = function (fontUrls) { return ({
|
|
68
74
|
MuiCssBaseline: getMuiCssBaseline(fontUrls),
|
|
75
|
+
MuiButton: MuiButton_1.MuiButton,
|
|
69
76
|
MuiButtonBase: MuiButtonBase_1.MuiButtonBase,
|
|
77
|
+
MuiLoadingButton: MuiLoadingButton_1.MuiLoadingButton,
|
|
70
78
|
MuiTypography: MuiTypography_1.MuiTypography,
|
|
71
79
|
MuiInputBase: MuiInputBase_1.MuiInputBase,
|
|
72
80
|
MuiInputLabel: MuiInputLabel_1.MuiInputLabel,
|
|
@@ -82,8 +90,12 @@ var getComponents = function (fontUrls) { return ({
|
|
|
82
90
|
MuiDialogTitle: MuiDialogTitle_1.MuiDialogTitle,
|
|
83
91
|
MuiDialogContent: MuiDialogContent_1.MuiDialogContent,
|
|
84
92
|
MuiDialogActions: MuiDialogActions_1.MuiDialogActions,
|
|
93
|
+
MuiTableCell: MuiTableCell_1.MuiTableCell,
|
|
94
|
+
MuiTableHead: MuiTableHead_1.MuiTableHead,
|
|
95
|
+
MuiPaginationItem: MuiPaginationItem_1.MuiPaginationItem,
|
|
85
96
|
MuiPickersDay: MuiPickersDay_1.MuiPickersDay,
|
|
86
97
|
MuiCalendarPicker: MuiCalendarPicker_1.MuiCalendarPicker,
|
|
87
98
|
MuiYearPicker: MuiYearPicker_1.MuiYearPicker,
|
|
99
|
+
MuiCircularProgress: MuiCircularProgress_1.MuiCircularProgress,
|
|
88
100
|
}); };
|
|
89
101
|
exports.getComponents = getComponents;
|
package/theme/elevation.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.elevation = void 0;
|
|
4
4
|
exports.elevation = {
|
|
5
|
-
100: '0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740',
|
|
6
|
-
200: '0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733',
|
|
7
|
-
300: '0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726',
|
|
8
|
-
400: '0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726',
|
|
9
|
-
500: '0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726',
|
|
5
|
+
100: '0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;',
|
|
6
|
+
200: '0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733;',
|
|
7
|
+
300: '0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726;',
|
|
8
|
+
400: '0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726;',
|
|
9
|
+
500: '0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726;',
|
|
10
10
|
};
|
package/Button/styled.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledButton: import("@emotion/styled").StyledComponent<Omit<import("@mui/base/ButtonUnstyled/ButtonUnstyledProps").default<"button", {}>, "variant" | "color" | "size"> & {
|
|
3
|
-
color?: "error" | "primary" | "success" | "warning" | undefined;
|
|
4
|
-
variant?: "link" | "text" | "light" | "contained" | undefined;
|
|
5
|
-
size?: "large" | "medium" | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
} & {
|
|
9
|
-
loading?: boolean | undefined;
|
|
10
|
-
startIcon?: import("react").ReactNode;
|
|
11
|
-
endIcon?: import("react").ReactNode;
|
|
12
|
-
}, {}, {}>;
|
package/Button/styled.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.StyledButton = void 0;
|
|
8
|
-
var styles_1 = require("../styles");
|
|
9
|
-
var ButtonBase_1 = require("../ButtonBase");
|
|
10
|
-
var getProgressColor = function (_a) {
|
|
11
|
-
var theme = _a.theme, variant = _a.variant;
|
|
12
|
-
if (variant === ButtonBase_1.ButtonVariants.CONTAINED)
|
|
13
|
-
return theme.palette.primary.contrastText;
|
|
14
|
-
return theme.palette.grey['900'];
|
|
15
|
-
};
|
|
16
|
-
exports.StyledButton = (0, styles_1.styled)(ButtonBase_1.ButtonBase, {
|
|
17
|
-
shouldForwardProp: function (prop) {
|
|
18
|
-
return prop !== 'startIcon' && prop !== 'endIcon' && prop !== 'loading';
|
|
19
|
-
},
|
|
20
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n pointer-events: ", ";\n\n &:focus {\n color: ", ";\n }\n\n > span:first-of-type {\n display: inherit;\n margin-right: ", ";\n }\n\n > span:last-of-type {\n display: inherit;\n margin-left: ", ";\n }\n\n .MuiCircularProgress-root {\n position: absolute;\n\n width: 16px !important;\n height: 16px !important;\n\n color: ", ";\n\n transform: translate(-50%, -50%);\n }\n"], ["\n color: ", ";\n\n pointer-events: ", ";\n\n &:focus {\n color: ", ";\n }\n\n > span:first-of-type {\n display: inherit;\n margin-right: ", ";\n }\n\n > span:last-of-type {\n display: inherit;\n margin-left: ", ";\n }\n\n .MuiCircularProgress-root {\n position: absolute;\n\n width: 16px !important;\n height: 16px !important;\n\n color: ", ";\n\n transform: translate(-50%, -50%);\n }\n"])), function (_a) {
|
|
21
|
-
var loading = _a.loading;
|
|
22
|
-
return loading && 'transparent';
|
|
23
|
-
}, function (_a) {
|
|
24
|
-
var loading = _a.loading;
|
|
25
|
-
return (loading ? 'none' : 'inherit');
|
|
26
|
-
}, function (_a) {
|
|
27
|
-
var loading = _a.loading;
|
|
28
|
-
return loading && 'transparent';
|
|
29
|
-
}, function (_a) {
|
|
30
|
-
var theme = _a.theme;
|
|
31
|
-
return theme.spacing(2);
|
|
32
|
-
}, function (_a) {
|
|
33
|
-
var theme = _a.theme;
|
|
34
|
-
return theme.spacing(2);
|
|
35
|
-
}, getProgressColor);
|
|
36
|
-
var templateObject_1;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CircularProgressProps } from './types';
|
|
2
|
-
export declare const StyledCircularProgress: import("@emotion/styled").StyledComponent<import("@mui/material").CircularProgressProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
} & Omit<CircularProgressProps, "color" | "size"> & {
|
|
5
|
-
customColor?: "primary" | "inverted" | undefined;
|
|
6
|
-
}, {}, {}>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.StyledCircularProgress = void 0;
|
|
8
|
-
var material_1 = require("@mui/material");
|
|
9
|
-
var styles_1 = require("../styles");
|
|
10
|
-
var constants_1 = require("./constants");
|
|
11
|
-
var getColor = function (_a) {
|
|
12
|
-
var theme = _a.theme, customColor = _a.customColor;
|
|
13
|
-
if (customColor === constants_1.CircularProgressColors.PRIMARY)
|
|
14
|
-
return theme.palette.primary.dark;
|
|
15
|
-
return theme.palette.primary.contrastText;
|
|
16
|
-
};
|
|
17
|
-
exports.StyledCircularProgress = (0, styles_1.styled)(material_1.CircularProgress, {
|
|
18
|
-
shouldForwardProp: function (prop) { return prop !== 'customColor'; },
|
|
19
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (props) { return getColor(props); });
|
|
20
|
-
var templateObject_1;
|
package/esm/Button/styled.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledButton: import("@emotion/styled").StyledComponent<Omit<import("@mui/base/ButtonUnstyled/ButtonUnstyledProps").default<"button", {}>, "variant" | "color" | "size"> & {
|
|
3
|
-
color?: "error" | "primary" | "success" | "warning" | undefined;
|
|
4
|
-
variant?: "link" | "text" | "light" | "contained" | undefined;
|
|
5
|
-
size?: "large" | "medium" | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
} & {
|
|
9
|
-
loading?: boolean | undefined;
|
|
10
|
-
startIcon?: import("react").ReactNode;
|
|
11
|
-
endIcon?: import("react").ReactNode;
|
|
12
|
-
}, {}, {}>;
|
package/esm/Button/styled.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
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 { ButtonBase, ButtonVariants } from '../ButtonBase';
|
|
7
|
-
var getProgressColor = function (_a) {
|
|
8
|
-
var theme = _a.theme, variant = _a.variant;
|
|
9
|
-
if (variant === ButtonVariants.CONTAINED)
|
|
10
|
-
return theme.palette.primary.contrastText;
|
|
11
|
-
return theme.palette.grey['900'];
|
|
12
|
-
};
|
|
13
|
-
export var StyledButton = styled(ButtonBase, {
|
|
14
|
-
shouldForwardProp: function (prop) {
|
|
15
|
-
return prop !== 'startIcon' && prop !== 'endIcon' && prop !== 'loading';
|
|
16
|
-
},
|
|
17
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n pointer-events: ", ";\n\n &:focus {\n color: ", ";\n }\n\n > span:first-of-type {\n display: inherit;\n margin-right: ", ";\n }\n\n > span:last-of-type {\n display: inherit;\n margin-left: ", ";\n }\n\n .MuiCircularProgress-root {\n position: absolute;\n\n width: 16px !important;\n height: 16px !important;\n\n color: ", ";\n\n transform: translate(-50%, -50%);\n }\n"], ["\n color: ", ";\n\n pointer-events: ", ";\n\n &:focus {\n color: ", ";\n }\n\n > span:first-of-type {\n display: inherit;\n margin-right: ", ";\n }\n\n > span:last-of-type {\n display: inherit;\n margin-left: ", ";\n }\n\n .MuiCircularProgress-root {\n position: absolute;\n\n width: 16px !important;\n height: 16px !important;\n\n color: ", ";\n\n transform: translate(-50%, -50%);\n }\n"])), function (_a) {
|
|
18
|
-
var loading = _a.loading;
|
|
19
|
-
return loading && 'transparent';
|
|
20
|
-
}, function (_a) {
|
|
21
|
-
var loading = _a.loading;
|
|
22
|
-
return (loading ? 'none' : 'inherit');
|
|
23
|
-
}, function (_a) {
|
|
24
|
-
var loading = _a.loading;
|
|
25
|
-
return loading && 'transparent';
|
|
26
|
-
}, function (_a) {
|
|
27
|
-
var theme = _a.theme;
|
|
28
|
-
return theme.spacing(2);
|
|
29
|
-
}, function (_a) {
|
|
30
|
-
var theme = _a.theme;
|
|
31
|
-
return theme.spacing(2);
|
|
32
|
-
}, getProgressColor);
|
|
33
|
-
var templateObject_1;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CircularProgressProps } from './types';
|
|
2
|
-
export declare const StyledCircularProgress: import("@emotion/styled").StyledComponent<import("@mui/material").CircularProgressProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
} & Omit<CircularProgressProps, "color" | "size"> & {
|
|
5
|
-
customColor?: "primary" | "inverted" | undefined;
|
|
6
|
-
}, {}, {}>;
|
|
@@ -1,17 +0,0 @@
|
|
|
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 { CircularProgress } from '@mui/material';
|
|
6
|
-
import { styled } from '../styles';
|
|
7
|
-
import { CircularProgressColors } from './constants';
|
|
8
|
-
var getColor = function (_a) {
|
|
9
|
-
var theme = _a.theme, customColor = _a.customColor;
|
|
10
|
-
if (customColor === CircularProgressColors.PRIMARY)
|
|
11
|
-
return theme.palette.primary.dark;
|
|
12
|
-
return theme.palette.primary.contrastText;
|
|
13
|
-
};
|
|
14
|
-
export var StyledCircularProgress = styled(CircularProgress, {
|
|
15
|
-
shouldForwardProp: function (prop) { return prop !== 'customColor'; },
|
|
16
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (props) { return getColor(props); });
|
|
17
|
-
var templateObject_1;
|