@canmingir/link 1.2.35 → 1.2.37
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/package.json
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// ----------------------------------------------------------------------
|
|
2
|
+
|
|
3
|
+
export function formControl(theme) {
|
|
4
|
+
return {
|
|
5
|
+
MuiFormControl: {
|
|
6
|
+
defaultProps: {
|
|
7
|
+
size: "small",
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
MuiTextField: {
|
|
11
|
+
defaultProps: {
|
|
12
|
+
variant: "outlined",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
MuiInputBase: {
|
|
16
|
+
styleOverrides: {
|
|
17
|
+
root: {
|
|
18
|
+
borderRadius: 1,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -6,10 +6,16 @@ import { tableRowClasses } from "@mui/material/TableRow";
|
|
|
6
6
|
|
|
7
7
|
export function table(theme) {
|
|
8
8
|
return {
|
|
9
|
+
MuiTable: {
|
|
10
|
+
defaultProps: {
|
|
11
|
+
size: "small",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
9
14
|
MuiTableContainer: {
|
|
10
15
|
styleOverrides: {
|
|
11
16
|
root: {
|
|
12
17
|
position: "relative",
|
|
18
|
+
borderRadius: 4,
|
|
13
19
|
},
|
|
14
20
|
},
|
|
15
21
|
},
|
|
@@ -35,6 +41,9 @@ export function table(theme) {
|
|
|
35
41
|
root: {
|
|
36
42
|
borderBottomStyle: "dashed",
|
|
37
43
|
},
|
|
44
|
+
sizeSmall: {
|
|
45
|
+
padding: "6px 12px",
|
|
46
|
+
},
|
|
38
47
|
head: {
|
|
39
48
|
fontSize: 14,
|
|
40
49
|
color: theme.palette.text.secondary,
|
|
@@ -64,6 +64,7 @@ export function textField(theme) {
|
|
|
64
64
|
color: theme.palette.text.disabled,
|
|
65
65
|
},
|
|
66
66
|
},
|
|
67
|
+
borderRadius: "4px",
|
|
67
68
|
},
|
|
68
69
|
input: {
|
|
69
70
|
...font.value,
|
|
@@ -93,6 +94,7 @@ export function textField(theme) {
|
|
|
93
94
|
MuiOutlinedInput: {
|
|
94
95
|
styleOverrides: {
|
|
95
96
|
root: {
|
|
97
|
+
borderRadius: "4px",
|
|
96
98
|
[`&.${outlinedInputClasses.focused}`]: {
|
|
97
99
|
[`& .${outlinedInputClasses.notchedOutline}`]: {
|
|
98
100
|
borderColor: color.focused,
|
|
@@ -122,7 +124,7 @@ export function textField(theme) {
|
|
|
122
124
|
MuiFilledInput: {
|
|
123
125
|
styleOverrides: {
|
|
124
126
|
root: {
|
|
125
|
-
borderRadius:
|
|
127
|
+
borderRadius: "4px",
|
|
126
128
|
backgroundColor: alpha(theme.palette.grey[500], 0.08),
|
|
127
129
|
"&:hover": {
|
|
128
130
|
backgroundColor: alpha(theme.palette.grey[500], 0.16),
|
|
@@ -19,6 +19,7 @@ import { defaultProps } from "./default-props";
|
|
|
19
19
|
import { dialog } from "./components/dialog";
|
|
20
20
|
import { drawer } from "./components/drawer";
|
|
21
21
|
import { fab } from "./components/fab";
|
|
22
|
+
import { formControl } from "./components/form";
|
|
22
23
|
import { list } from "./components/list";
|
|
23
24
|
import { loadingButton } from "./components/loading-button";
|
|
24
25
|
import { menu } from "./components/menu";
|
|
@@ -93,7 +94,8 @@ export function componentsOverrides(theme) {
|
|
|
93
94
|
cssBaseline(theme),
|
|
94
95
|
autocomplete(theme),
|
|
95
96
|
toggleButton(theme),
|
|
96
|
-
loadingButton(theme)
|
|
97
|
+
loadingButton(theme),
|
|
98
|
+
formControl(theme)
|
|
97
99
|
);
|
|
98
100
|
|
|
99
101
|
return components;
|
package/vite/vite.js
CHANGED
|
@@ -75,18 +75,6 @@ async function vite() {
|
|
|
75
75
|
if (id.includes("config.js") && !id.includes("node_modules")) {
|
|
76
76
|
return "config";
|
|
77
77
|
}
|
|
78
|
-
|
|
79
|
-
if (id.includes("node_modules")) {
|
|
80
|
-
const packageName = id
|
|
81
|
-
.toString()
|
|
82
|
-
.split("node_modules/")[1]
|
|
83
|
-
.split("/")[0]
|
|
84
|
-
.toString();
|
|
85
|
-
|
|
86
|
-
if (packageName === "@emotion") return "@mui";
|
|
87
|
-
|
|
88
|
-
return packageName;
|
|
89
|
-
}
|
|
90
78
|
},
|
|
91
79
|
},
|
|
92
80
|
},
|