@okta/odyssey-react-mui 0.14.2 → 0.14.5
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/.svgrrc.cjs +13 -0
- package/CHANGELOG.md +37 -0
- package/README.md +29 -0
- package/dist/components/Icon/Add.d.ts +16 -0
- package/dist/components/Icon/Add.d.ts.map +1 -0
- package/dist/components/Icon/Add.js +34 -0
- package/dist/components/Icon/Add.js.map +1 -0
- package/dist/components/Icon/AddCircle.d.ts +16 -0
- package/dist/components/Icon/AddCircle.d.ts.map +1 -0
- package/dist/components/Icon/AddCircle.js +34 -0
- package/dist/components/Icon/AddCircle.js.map +1 -0
- package/dist/components/Icon/AlertCircle.d.ts +16 -0
- package/dist/components/Icon/AlertCircle.d.ts.map +1 -0
- package/dist/components/Icon/AlertCircle.js +34 -0
- package/dist/components/Icon/AlertCircle.js.map +1 -0
- package/dist/components/Icon/AlertCircleFilled.d.ts +16 -0
- package/dist/components/Icon/AlertCircleFilled.d.ts.map +1 -0
- package/dist/components/Icon/AlertCircleFilled.js +34 -0
- package/dist/components/Icon/AlertCircleFilled.js.map +1 -0
- package/dist/components/Icon/AlertTriangleFilled.d.ts +16 -0
- package/dist/components/Icon/AlertTriangleFilled.d.ts.map +1 -0
- package/dist/components/Icon/AlertTriangleFilled.js +34 -0
- package/dist/components/Icon/AlertTriangleFilled.js.map +1 -0
- package/dist/components/Icon/Anchor.d.ts +16 -0
- package/dist/components/Icon/Anchor.d.ts.map +1 -0
- package/dist/components/Icon/Anchor.js +36 -0
- package/dist/components/Icon/Anchor.js.map +1 -0
- package/dist/components/Icon/ArrowDown.d.ts +16 -0
- package/dist/components/Icon/ArrowDown.d.ts.map +1 -0
- package/dist/components/Icon/ArrowDown.js +34 -0
- package/dist/components/Icon/ArrowDown.js.map +1 -0
- package/dist/components/Icon/ArrowLeft.d.ts +16 -0
- package/dist/components/Icon/ArrowLeft.d.ts.map +1 -0
- package/dist/components/Icon/ArrowLeft.js +34 -0
- package/dist/components/Icon/ArrowLeft.js.map +1 -0
- package/dist/components/Icon/ArrowRight.d.ts +16 -0
- package/dist/components/Icon/ArrowRight.d.ts.map +1 -0
- package/dist/components/Icon/ArrowRight.js +34 -0
- package/dist/components/Icon/ArrowRight.js.map +1 -0
- package/dist/components/Icon/ArrowUp.d.ts +16 -0
- package/dist/components/Icon/ArrowUp.d.ts.map +1 -0
- package/dist/components/Icon/ArrowUp.js +34 -0
- package/dist/components/Icon/ArrowUp.js.map +1 -0
- package/dist/components/Icon/Calendar.d.ts +16 -0
- package/dist/components/Icon/Calendar.d.ts.map +1 -0
- package/dist/components/Icon/Calendar.js +34 -0
- package/dist/components/Icon/Calendar.js.map +1 -0
- package/dist/components/Icon/Check.d.ts +16 -0
- package/dist/components/Icon/Check.d.ts.map +1 -0
- package/dist/components/Icon/Check.js +34 -0
- package/dist/components/Icon/Check.js.map +1 -0
- package/dist/components/Icon/CheckCircleFilled.d.ts +16 -0
- package/dist/components/Icon/CheckCircleFilled.d.ts.map +1 -0
- package/dist/components/Icon/CheckCircleFilled.js +34 -0
- package/dist/components/Icon/CheckCircleFilled.js.map +1 -0
- package/dist/components/Icon/ChevronDown.d.ts +16 -0
- package/dist/components/Icon/ChevronDown.d.ts.map +1 -0
- package/dist/components/Icon/ChevronDown.js +34 -0
- package/dist/components/Icon/ChevronDown.js.map +1 -0
- package/dist/components/Icon/ChevronUp.d.ts +16 -0
- package/dist/components/Icon/ChevronUp.d.ts.map +1 -0
- package/dist/components/Icon/ChevronUp.js +34 -0
- package/dist/components/Icon/ChevronUp.js.map +1 -0
- package/dist/components/Icon/Close.d.ts +16 -0
- package/dist/components/Icon/Close.d.ts.map +1 -0
- package/dist/components/Icon/Close.js +34 -0
- package/dist/components/Icon/Close.js.map +1 -0
- package/dist/components/Icon/CloseCircleFilled.d.ts +16 -0
- package/dist/components/Icon/CloseCircleFilled.d.ts.map +1 -0
- package/dist/components/Icon/CloseCircleFilled.js +34 -0
- package/dist/components/Icon/CloseCircleFilled.js.map +1 -0
- package/dist/components/Icon/Copy.d.ts +16 -0
- package/dist/components/Icon/Copy.d.ts.map +1 -0
- package/dist/components/Icon/Copy.js +34 -0
- package/dist/components/Icon/Copy.js.map +1 -0
- package/dist/components/Icon/Delete.d.ts +16 -0
- package/dist/components/Icon/Delete.d.ts.map +1 -0
- package/dist/components/Icon/Delete.js +34 -0
- package/dist/components/Icon/Delete.js.map +1 -0
- package/dist/components/Icon/Download.d.ts +16 -0
- package/dist/components/Icon/Download.d.ts.map +1 -0
- package/dist/components/Icon/Download.js +34 -0
- package/dist/components/Icon/Download.js.map +1 -0
- package/dist/components/Icon/DragHandle.d.ts +16 -0
- package/dist/components/Icon/DragHandle.d.ts.map +1 -0
- package/dist/components/Icon/DragHandle.js +34 -0
- package/dist/components/Icon/DragHandle.js.map +1 -0
- package/dist/components/Icon/Edit.d.ts +16 -0
- package/dist/components/Icon/Edit.d.ts.map +1 -0
- package/dist/components/Icon/Edit.js +34 -0
- package/dist/components/Icon/Edit.js.map +1 -0
- package/dist/components/Icon/ExternalLink.d.ts +16 -0
- package/dist/components/Icon/ExternalLink.d.ts.map +1 -0
- package/dist/components/Icon/ExternalLink.js +34 -0
- package/dist/components/Icon/ExternalLink.js.map +1 -0
- package/dist/components/Icon/Eye.d.ts +16 -0
- package/dist/components/Icon/Eye.d.ts.map +1 -0
- package/dist/components/Icon/Eye.js +34 -0
- package/dist/components/Icon/Eye.js.map +1 -0
- package/dist/components/Icon/EyeOff.d.ts +16 -0
- package/dist/components/Icon/EyeOff.d.ts.map +1 -0
- package/dist/components/Icon/EyeOff.js +34 -0
- package/dist/components/Icon/EyeOff.js.map +1 -0
- package/dist/components/Icon/Filter.d.ts +16 -0
- package/dist/components/Icon/Filter.d.ts.map +1 -0
- package/dist/components/Icon/Filter.js +34 -0
- package/dist/components/Icon/Filter.js.map +1 -0
- package/dist/components/Icon/Globe.d.ts +16 -0
- package/dist/components/Icon/Globe.d.ts.map +1 -0
- package/dist/components/Icon/Globe.js +34 -0
- package/dist/components/Icon/Globe.js.map +1 -0
- package/dist/components/Icon/Home.d.ts +16 -0
- package/dist/components/Icon/Home.d.ts.map +1 -0
- package/dist/components/Icon/Home.js +34 -0
- package/dist/components/Icon/Home.js.map +1 -0
- package/dist/components/Icon/Icon.d.ts +28 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/Icon.js +29 -0
- package/dist/components/Icon/Icon.js.map +1 -0
- package/dist/components/Icon/InformationCircle.d.ts +16 -0
- package/dist/components/Icon/InformationCircle.d.ts.map +1 -0
- package/dist/components/Icon/InformationCircle.js +34 -0
- package/dist/components/Icon/InformationCircle.js.map +1 -0
- package/dist/components/Icon/InformationCircleFilled.d.ts +16 -0
- package/dist/components/Icon/InformationCircleFilled.d.ts.map +1 -0
- package/dist/components/Icon/InformationCircleFilled.js +34 -0
- package/dist/components/Icon/InformationCircleFilled.js.map +1 -0
- package/dist/components/Icon/Notification.d.ts +16 -0
- package/dist/components/Icon/Notification.d.ts.map +1 -0
- package/dist/components/Icon/Notification.js +34 -0
- package/dist/components/Icon/Notification.js.map +1 -0
- package/dist/components/Icon/OverflowVertical.d.ts +16 -0
- package/dist/components/Icon/OverflowVertical.d.ts.map +1 -0
- package/dist/components/Icon/OverflowVertical.js +34 -0
- package/dist/components/Icon/OverflowVertical.js.map +1 -0
- package/dist/components/Icon/QuestionCircle.d.ts +16 -0
- package/dist/components/Icon/QuestionCircle.d.ts.map +1 -0
- package/dist/components/Icon/QuestionCircle.js +34 -0
- package/dist/components/Icon/QuestionCircle.js.map +1 -0
- package/dist/components/Icon/QuestionCircleFilled.d.ts +16 -0
- package/dist/components/Icon/QuestionCircleFilled.d.ts.map +1 -0
- package/dist/components/Icon/QuestionCircleFilled.js +34 -0
- package/dist/components/Icon/QuestionCircleFilled.js.map +1 -0
- package/dist/components/Icon/Search.d.ts +16 -0
- package/dist/components/Icon/Search.d.ts.map +1 -0
- package/dist/components/Icon/Search.js +34 -0
- package/dist/components/Icon/Search.js.map +1 -0
- package/dist/components/Icon/Settings.d.ts +16 -0
- package/dist/components/Icon/Settings.d.ts.map +1 -0
- package/dist/components/Icon/Settings.js +32 -0
- package/dist/components/Icon/Settings.js.map +1 -0
- package/dist/components/Icon/Subtract.d.ts +16 -0
- package/dist/components/Icon/Subtract.d.ts.map +1 -0
- package/dist/components/Icon/Subtract.js +34 -0
- package/dist/components/Icon/Subtract.js.map +1 -0
- package/dist/components/Icon/SvgIcon.d.ts +14 -0
- package/dist/components/Icon/SvgIcon.d.ts.map +1 -0
- package/dist/components/Icon/SvgIcon.js +14 -0
- package/dist/components/Icon/SvgIcon.js.map +1 -0
- package/dist/components/Icon/User.d.ts +16 -0
- package/dist/components/Icon/User.d.ts.map +1 -0
- package/dist/components/Icon/User.js +34 -0
- package/dist/components/Icon/User.js.map +1 -0
- package/dist/components/Icon/index.d.ts +91 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/Icon/index.js +129 -0
- package/dist/components/Icon/index.js.map +1 -0
- package/dist/components/Icon/types.d.ts +19 -0
- package/dist/components/Icon/types.d.ts.map +1 -0
- package/dist/components/Icon/types.js +2 -0
- package/dist/components/Icon/types.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/themes/odyssey/components.d.ts.map +1 -1
- package/dist/themes/odyssey/components.js +310 -102
- package/dist/themes/odyssey/components.js.map +1 -1
- package/dist/themes/odyssey/components.types.d.ts +1 -0
- package/dist/themes/odyssey/components.types.d.ts.map +1 -1
- package/dist/themes/odyssey/components.types.js.map +1 -1
- package/dist/themes/odyssey/mixins.d.ts +14 -0
- package/dist/themes/odyssey/mixins.d.ts.map +1 -0
- package/dist/themes/odyssey/mixins.js +17 -0
- package/dist/themes/odyssey/mixins.js.map +1 -0
- package/dist/themes/odyssey/mixins.types.d.ts +23 -0
- package/dist/themes/odyssey/mixins.types.d.ts.map +1 -0
- package/dist/themes/odyssey/mixins.types.js +13 -0
- package/dist/themes/odyssey/mixins.types.js.map +1 -0
- package/dist/themes/odyssey/palette.js +9 -9
- package/dist/themes/odyssey/palette.js.map +1 -1
- package/dist/themes/odyssey/theme.d.ts +1 -0
- package/dist/themes/odyssey/theme.d.ts.map +1 -1
- package/dist/themes/odyssey/theme.js +3 -0
- package/dist/themes/odyssey/theme.js.map +1 -1
- package/package.json +5 -4
- package/scripts/resolveIconSrcPath.cjs +20 -0
- package/src/components/Icon/Add.tsx +42 -0
- package/src/components/Icon/AddCircle.tsx +44 -0
- package/src/components/Icon/AlertCircle.tsx +44 -0
- package/src/components/Icon/AlertCircleFilled.tsx +45 -0
- package/src/components/Icon/AlertTriangleFilled.tsx +45 -0
- package/src/components/Icon/Anchor.tsx +46 -0
- package/src/components/Icon/ArrowDown.tsx +44 -0
- package/src/components/Icon/ArrowLeft.tsx +44 -0
- package/src/components/Icon/ArrowRight.tsx +44 -0
- package/src/components/Icon/ArrowUp.tsx +44 -0
- package/src/components/Icon/Calendar.tsx +44 -0
- package/src/components/Icon/Check.tsx +44 -0
- package/src/components/Icon/CheckCircleFilled.tsx +45 -0
- package/src/components/Icon/ChevronDown.tsx +44 -0
- package/src/components/Icon/ChevronUp.tsx +44 -0
- package/src/components/Icon/Close.tsx +44 -0
- package/src/components/Icon/CloseCircleFilled.tsx +45 -0
- package/src/components/Icon/Copy.tsx +44 -0
- package/src/components/Icon/Delete.tsx +44 -0
- package/src/components/Icon/Download.tsx +44 -0
- package/src/components/Icon/DragHandle.tsx +44 -0
- package/src/components/Icon/Edit.tsx +44 -0
- package/src/components/Icon/ExternalLink.tsx +45 -0
- package/src/components/Icon/Eye.tsx +42 -0
- package/src/components/Icon/EyeOff.tsx +44 -0
- package/src/components/Icon/Filter.tsx +44 -0
- package/src/components/Icon/Globe.tsx +44 -0
- package/src/components/Icon/Home.tsx +44 -0
- package/src/components/Icon/Icon.test.tsx +51 -0
- package/src/components/Icon/Icon.tsx +40 -0
- package/src/components/Icon/InformationCircle.tsx +45 -0
- package/src/components/Icon/InformationCircleFilled.tsx +45 -0
- package/src/components/Icon/Notification.tsx +45 -0
- package/src/components/Icon/OverflowVertical.tsx +45 -0
- package/src/components/Icon/QuestionCircle.tsx +45 -0
- package/src/components/Icon/QuestionCircleFilled.tsx +45 -0
- package/src/components/Icon/Search.tsx +44 -0
- package/src/components/Icon/Settings.tsx +42 -0
- package/src/components/Icon/Subtract.tsx +44 -0
- package/src/components/Icon/SvgIcon.ts +14 -0
- package/src/components/Icon/User.tsx +44 -0
- package/src/components/Icon/index.tsx +170 -0
- package/src/components/Icon/types.ts +20 -0
- package/src/components/index.ts +1 -0
- package/src/themes/odyssey/components.ts +270 -105
- package/src/themes/odyssey/components.types.ts +1 -0
- package/src/themes/odyssey/mixins.ts +19 -0
- package/src/themes/odyssey/mixins.types.ts +25 -0
- package/src/themes/odyssey/palette.ts +9 -9
- package/src/themes/odyssey/theme.ts +3 -0
|
@@ -17,11 +17,18 @@ export const components = {
|
|
|
17
17
|
theme
|
|
18
18
|
}) => ({
|
|
19
19
|
padding: theme.spacing(4),
|
|
20
|
+
gap: theme.spacing(4),
|
|
20
21
|
color: theme.palette.text.primary,
|
|
21
22
|
...(ownerState.severity && {
|
|
22
23
|
backgroundColor: theme.palette[ownerState.severity].lighter,
|
|
23
24
|
borderColor: theme.palette[ownerState.severity].light
|
|
24
25
|
}),
|
|
26
|
+
...(ownerState.variant === "banner" && {
|
|
27
|
+
position: "relative",
|
|
28
|
+
justifyContent: "center",
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
borderWidth: 0
|
|
31
|
+
}),
|
|
25
32
|
...(ownerState.variant === "infobox" && {
|
|
26
33
|
borderStyle: "solid",
|
|
27
34
|
borderWidth: 1,
|
|
@@ -29,15 +36,39 @@ export const components = {
|
|
|
29
36
|
marginBottom: theme.spacing(4)
|
|
30
37
|
}
|
|
31
38
|
}),
|
|
32
|
-
...(ownerState.variant === "
|
|
33
|
-
|
|
39
|
+
...(ownerState.variant === "toast" && {
|
|
40
|
+
maxWidth: theme.mixins.maxWidth,
|
|
41
|
+
borderStyle: "solid",
|
|
42
|
+
borderWidth: 1,
|
|
43
|
+
position: "relative",
|
|
44
|
+
alignItems: "start"
|
|
45
|
+
})
|
|
46
|
+
}),
|
|
47
|
+
action: ({
|
|
48
|
+
ownerState,
|
|
49
|
+
theme
|
|
50
|
+
}) => ({ ...(ownerState.variant === "banner" && {
|
|
51
|
+
padding: 0,
|
|
52
|
+
marginRight: 0,
|
|
53
|
+
top: "50%",
|
|
54
|
+
right: theme.spacing(4),
|
|
55
|
+
position: "absolute",
|
|
56
|
+
transform: "translateY(-50%)"
|
|
57
|
+
}),
|
|
58
|
+
...(ownerState.variant === "toast" && {
|
|
59
|
+
position: "absolute",
|
|
60
|
+
top: `calc(${theme.spacing(4)} - ${theme.spacing(1)} + ${theme.mixins.borderWidth})`,
|
|
61
|
+
right: `calc(${theme.spacing(4)} - ${theme.spacing(1)} + ${theme.mixins.borderWidth})`,
|
|
62
|
+
padding: 0,
|
|
63
|
+
marginLeft: 0,
|
|
64
|
+
marginRight: 0
|
|
34
65
|
})
|
|
35
66
|
}),
|
|
36
67
|
icon: ({
|
|
37
68
|
ownerState,
|
|
38
69
|
theme
|
|
39
70
|
}) => ({
|
|
40
|
-
marginRight:
|
|
71
|
+
marginRight: 0,
|
|
41
72
|
padding: 0,
|
|
42
73
|
fontSize: "1.429rem",
|
|
43
74
|
opacity: 1,
|
|
@@ -49,10 +80,20 @@ export const components = {
|
|
|
49
80
|
})
|
|
50
81
|
}),
|
|
51
82
|
message: ({
|
|
83
|
+
ownerState,
|
|
52
84
|
theme
|
|
53
85
|
}) => ({
|
|
54
86
|
padding: 0,
|
|
55
|
-
lineHeight: theme.typography.body.lineHeight
|
|
87
|
+
lineHeight: theme.typography.body.lineHeight,
|
|
88
|
+
...(ownerState.variant === "banner" && {
|
|
89
|
+
display: "flex",
|
|
90
|
+
justifyContent: "space-between",
|
|
91
|
+
gap: theme.spacing(4)
|
|
92
|
+
}),
|
|
93
|
+
...(ownerState.variant === "toast" && {
|
|
94
|
+
flexGrow: 1,
|
|
95
|
+
paddingRight: `calc((${theme.spacing(1)} * 2) + ${theme.typography.body.fontSize} + ${theme.spacing(4)})`
|
|
96
|
+
})
|
|
56
97
|
})
|
|
57
98
|
}
|
|
58
99
|
},
|
|
@@ -77,123 +118,142 @@ export const components = {
|
|
|
77
118
|
props: {
|
|
78
119
|
variant: "primary"
|
|
79
120
|
},
|
|
80
|
-
style: {
|
|
121
|
+
style: ({
|
|
122
|
+
theme
|
|
123
|
+
}) => ({
|
|
81
124
|
fontWeight: 600,
|
|
82
|
-
color:
|
|
125
|
+
color: theme.palette.common.white,
|
|
83
126
|
borderColor: "transparent",
|
|
84
|
-
backgroundColor:
|
|
127
|
+
backgroundColor: theme.palette.primary.main,
|
|
85
128
|
"&:hover, &:focus-visible": {
|
|
86
|
-
backgroundColor:
|
|
129
|
+
backgroundColor: theme.palette.primary.dark
|
|
130
|
+
},
|
|
131
|
+
"&:focus-visible": {
|
|
132
|
+
outlineColor: theme.palette.primary.main
|
|
87
133
|
},
|
|
88
134
|
"&:active": {
|
|
89
|
-
backgroundColor:
|
|
135
|
+
backgroundColor: theme.palette.primary.main
|
|
90
136
|
},
|
|
91
137
|
"&:disabled": {
|
|
92
|
-
color:
|
|
93
|
-
backgroundColor:
|
|
138
|
+
color: theme.palette.common.white,
|
|
139
|
+
backgroundColor: theme.palette.primary.light
|
|
94
140
|
}
|
|
95
|
-
}
|
|
141
|
+
})
|
|
96
142
|
}, {
|
|
97
143
|
props: {
|
|
98
144
|
variant: "secondary"
|
|
99
145
|
},
|
|
100
|
-
style: {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
146
|
+
style: ({
|
|
147
|
+
theme
|
|
148
|
+
}) => ({
|
|
149
|
+
backgroundColor: theme.palette.grey[50],
|
|
150
|
+
borderColor: theme.palette.grey[200],
|
|
151
|
+
color: theme.palette.text.primary,
|
|
152
|
+
"&:hover, &:focus-visible": {
|
|
153
|
+
backgroundColor: theme.palette.primary.lighter,
|
|
154
|
+
borderColor: theme.palette.primary.light,
|
|
155
|
+
color: theme.palette.primary.main
|
|
108
156
|
},
|
|
109
157
|
"&:focus-visible": {
|
|
110
|
-
|
|
111
|
-
color: "#1662dd"
|
|
158
|
+
outlineColor: theme.palette.primary.main
|
|
112
159
|
},
|
|
113
160
|
"&:active": {
|
|
114
|
-
borderColor:
|
|
161
|
+
borderColor: theme.palette.primary.main
|
|
115
162
|
},
|
|
116
163
|
"&:disabled": {
|
|
117
|
-
borderColor:
|
|
118
|
-
backgroundColor:
|
|
119
|
-
color:
|
|
164
|
+
borderColor: theme.palette.grey[100],
|
|
165
|
+
backgroundColor: theme.palette.grey[100],
|
|
166
|
+
color: theme.palette.grey[500]
|
|
120
167
|
}
|
|
121
|
-
}
|
|
168
|
+
})
|
|
122
169
|
}, {
|
|
123
170
|
props: {
|
|
124
171
|
variant: "danger"
|
|
125
172
|
},
|
|
126
|
-
style: {
|
|
127
|
-
|
|
128
|
-
|
|
173
|
+
style: ({
|
|
174
|
+
theme
|
|
175
|
+
}) => ({
|
|
176
|
+
backgroundColor: theme.palette.error.main,
|
|
177
|
+
color: theme.palette.common.white,
|
|
129
178
|
borderColor: "transparent",
|
|
130
179
|
"&:hover": {
|
|
131
|
-
backgroundColor:
|
|
180
|
+
backgroundColor: theme.palette.error.dark
|
|
132
181
|
},
|
|
133
182
|
"&:focus-visible": {
|
|
134
|
-
outlineColor:
|
|
135
|
-
backgroundColor:
|
|
183
|
+
outlineColor: theme.palette.error.main,
|
|
184
|
+
backgroundColor: theme.palette.error.dark
|
|
136
185
|
},
|
|
137
186
|
"&:active": {
|
|
138
|
-
backgroundColor:
|
|
187
|
+
backgroundColor: theme.palette.error.main
|
|
139
188
|
},
|
|
140
189
|
"&:disabled": {
|
|
141
|
-
color:
|
|
142
|
-
backgroundColor:
|
|
190
|
+
color: theme.palette.common.white,
|
|
191
|
+
backgroundColor: theme.palette.error.light
|
|
143
192
|
}
|
|
144
|
-
}
|
|
193
|
+
})
|
|
145
194
|
}, {
|
|
146
195
|
props: {
|
|
147
196
|
variant: "floating"
|
|
148
197
|
},
|
|
149
|
-
style: {
|
|
150
|
-
|
|
151
|
-
|
|
198
|
+
style: ({
|
|
199
|
+
theme
|
|
200
|
+
}) => ({
|
|
201
|
+
backgroundColor: theme.palette.common.white,
|
|
202
|
+
color: theme.palette.text.primary,
|
|
152
203
|
borderColor: "transparent",
|
|
153
204
|
"&:hover, &:focus-visible": {
|
|
154
205
|
backgroundColor: "rgba(29, 29, 33, 0.1)",
|
|
155
206
|
borderColor: "transparent"
|
|
156
207
|
},
|
|
208
|
+
"&:focus-visible": {
|
|
209
|
+
outlineColor: theme.palette.primary.main
|
|
210
|
+
},
|
|
157
211
|
"&:active": {
|
|
158
212
|
backgroundColor: "rgba(29, 29, 33, 0.2)",
|
|
159
213
|
borderColor: "transparent"
|
|
160
214
|
},
|
|
161
215
|
"&:disabled": {
|
|
162
216
|
backgroundColor: "rgba(235, 235, 237, 0.6)",
|
|
163
|
-
color:
|
|
217
|
+
color: theme.palette.text.secondary,
|
|
164
218
|
borderColor: "transparent"
|
|
165
219
|
}
|
|
166
|
-
}
|
|
220
|
+
})
|
|
167
221
|
}, {
|
|
168
222
|
props: {
|
|
169
223
|
size: "s"
|
|
170
224
|
},
|
|
171
|
-
style: {
|
|
172
|
-
|
|
173
|
-
|
|
225
|
+
style: ({
|
|
226
|
+
theme
|
|
227
|
+
}) => ({
|
|
228
|
+
paddingBlock: `calc(${theme.spacing(2)} - 1px)`,
|
|
229
|
+
paddingInline: `calc(${theme.spacing(3)} - 1px)`,
|
|
174
230
|
fontSize: "1rem"
|
|
175
|
-
}
|
|
231
|
+
})
|
|
176
232
|
}, {
|
|
177
233
|
props: {
|
|
178
234
|
size: "l"
|
|
179
235
|
},
|
|
180
|
-
style: {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
236
|
+
style: ({
|
|
237
|
+
theme
|
|
238
|
+
}) => ({
|
|
239
|
+
paddingBlock: `calc(${theme.spacing(4)} - 1px)`,
|
|
240
|
+
paddingInline: `calc(${theme.spacing(4)} - 1px)`
|
|
241
|
+
})
|
|
184
242
|
}, {
|
|
185
243
|
props: {
|
|
186
244
|
fullWidth: true
|
|
187
245
|
},
|
|
188
|
-
style: {
|
|
246
|
+
style: ({
|
|
247
|
+
theme
|
|
248
|
+
}) => ({
|
|
189
249
|
display: "block",
|
|
190
250
|
width: "100%",
|
|
191
251
|
marginBlock: "0",
|
|
192
252
|
marginInline: "0",
|
|
193
253
|
"&:not(:last-child)": {
|
|
194
|
-
marginBlockEnd:
|
|
254
|
+
marginBlockEnd: theme.spacing(4)
|
|
195
255
|
}
|
|
196
|
-
}
|
|
256
|
+
})
|
|
197
257
|
}, {
|
|
198
258
|
props: {
|
|
199
259
|
children: ""
|
|
@@ -206,10 +266,11 @@ export const components = {
|
|
|
206
266
|
}
|
|
207
267
|
}],
|
|
208
268
|
styleOverrides: {
|
|
209
|
-
root: (
|
|
269
|
+
root: ({
|
|
270
|
+
theme
|
|
271
|
+
}) => ({
|
|
210
272
|
fontWeight: 600,
|
|
211
|
-
|
|
212
|
-
paddingInline: "0.85714286rem",
|
|
273
|
+
padding: `calc(${theme.spacing(3)} - 1px) ${theme.spacing(3)}`,
|
|
213
274
|
display: "inline-block",
|
|
214
275
|
position: "relative",
|
|
215
276
|
marginBlock: "0",
|
|
@@ -225,7 +286,7 @@ export const components = {
|
|
|
225
286
|
lineHeight: "1.14285714",
|
|
226
287
|
whiteSpace: "nowrap",
|
|
227
288
|
"& + &": {
|
|
228
|
-
marginInlineStart:
|
|
289
|
+
marginInlineStart: theme.spacing(2)
|
|
229
290
|
},
|
|
230
291
|
"&:focus-visible": {
|
|
231
292
|
outlineOffset: "2px",
|
|
@@ -259,30 +320,32 @@ export const components = {
|
|
|
259
320
|
size: "small"
|
|
260
321
|
},
|
|
261
322
|
styleOverrides: {
|
|
262
|
-
root: {
|
|
323
|
+
root: ({
|
|
324
|
+
theme
|
|
325
|
+
}) => ({
|
|
263
326
|
borderRadius: "4px",
|
|
264
327
|
"&:hover": {
|
|
265
328
|
backgroundColor: "transparent"
|
|
266
329
|
},
|
|
267
330
|
padding: 0,
|
|
268
331
|
".Mui-error > &": {
|
|
269
|
-
color:
|
|
332
|
+
color: theme.palette.error.main,
|
|
270
333
|
"&:hover": {
|
|
271
|
-
color:
|
|
334
|
+
color: theme.palette.error.dark
|
|
272
335
|
}
|
|
273
336
|
},
|
|
274
337
|
".Mui-error > &.Mui-checked": {
|
|
275
338
|
"&:hover": {
|
|
276
|
-
color:
|
|
339
|
+
color: theme.palette.error.dark
|
|
277
340
|
}
|
|
278
341
|
},
|
|
279
342
|
"&.Mui-focusVisible": {
|
|
280
|
-
outlineColor:
|
|
343
|
+
outlineColor: theme.palette.primary.main,
|
|
281
344
|
outlineOffset: 0,
|
|
282
345
|
outlineStyle: "solid",
|
|
283
346
|
outlineWidth: "2px"
|
|
284
347
|
}
|
|
285
|
-
}
|
|
348
|
+
})
|
|
286
349
|
}
|
|
287
350
|
},
|
|
288
351
|
MuiCircularProgress: {
|
|
@@ -295,9 +358,10 @@ export const components = {
|
|
|
295
358
|
},
|
|
296
359
|
styleOverrides: {
|
|
297
360
|
root: ({
|
|
361
|
+
theme,
|
|
298
362
|
ownerState
|
|
299
363
|
}) => ({ ...(ownerState.color !== "inherit" && {
|
|
300
|
-
color:
|
|
364
|
+
color: theme.palette.primary.dark
|
|
301
365
|
})
|
|
302
366
|
}),
|
|
303
367
|
circle: ({
|
|
@@ -308,12 +372,35 @@ export const components = {
|
|
|
308
372
|
})
|
|
309
373
|
}
|
|
310
374
|
},
|
|
375
|
+
MuiFormControl: {
|
|
376
|
+
styleOverrides: {
|
|
377
|
+
root: ({
|
|
378
|
+
ownerState,
|
|
379
|
+
theme
|
|
380
|
+
}) => ({
|
|
381
|
+
width: "100%",
|
|
382
|
+
maxWidth: "32rem",
|
|
383
|
+
...(ownerState.margin === "normal" && {
|
|
384
|
+
marginTop: 0,
|
|
385
|
+
marginBottom: theme.spacing(4)
|
|
386
|
+
}),
|
|
387
|
+
...(ownerState.margin === "dense" && {
|
|
388
|
+
marginTop: 0,
|
|
389
|
+
marginBottom: theme.spacing(4)
|
|
390
|
+
}),
|
|
391
|
+
...(ownerState.fullWidth && {
|
|
392
|
+
maxWidth: "100%"
|
|
393
|
+
})
|
|
394
|
+
})
|
|
395
|
+
}
|
|
396
|
+
},
|
|
311
397
|
MuiFormControlLabel: {
|
|
312
398
|
styleOverrides: {
|
|
313
399
|
root: ({
|
|
400
|
+
theme,
|
|
314
401
|
ownerState
|
|
315
402
|
}) => ({
|
|
316
|
-
gap:
|
|
403
|
+
gap: theme.spacing(2),
|
|
317
404
|
marginLeft: 0,
|
|
318
405
|
marginRight: 0,
|
|
319
406
|
...(ownerState.labelPlacement === "start" && {
|
|
@@ -327,22 +414,22 @@ export const components = {
|
|
|
327
414
|
marginLeft: 0
|
|
328
415
|
}),
|
|
329
416
|
"&:not(:last-child)": {
|
|
330
|
-
marginBottom:
|
|
417
|
+
marginBottom: theme.spacing(2)
|
|
331
418
|
},
|
|
332
419
|
"&.Mui-disabled": {
|
|
333
420
|
pointerEvents: "none"
|
|
334
421
|
},
|
|
335
422
|
"&:hover .MuiRadio-root, &:hover .MuiCheckbox-root": {
|
|
336
|
-
color:
|
|
423
|
+
color: theme.palette.text.primary
|
|
337
424
|
},
|
|
338
425
|
"&:hover .MuiRadio-root.Mui-checked, &:hover .MuiCheckbox-root.Mui-checked": {
|
|
339
|
-
color:
|
|
426
|
+
color: theme.palette.primary.dark
|
|
340
427
|
},
|
|
341
428
|
"&.Mui-error:hover .MuiRadio-root, &.Mui-error:hover .MuiCheckbox-root": {
|
|
342
|
-
color:
|
|
429
|
+
color: theme.palette.error.dark
|
|
343
430
|
},
|
|
344
431
|
"&.Mui-error:hover .MuiRadio-root.Mui-checked, &.Mui-error:hover .MuiCheckbox-root.Mui-checked": {
|
|
345
|
-
color:
|
|
432
|
+
color: theme.palette.error.dark
|
|
346
433
|
}
|
|
347
434
|
})
|
|
348
435
|
}
|
|
@@ -352,32 +439,64 @@ export const components = {
|
|
|
352
439
|
variant: "standard"
|
|
353
440
|
},
|
|
354
441
|
styleOverrides: {
|
|
355
|
-
root: {
|
|
442
|
+
root: ({
|
|
443
|
+
theme
|
|
444
|
+
}) => ({
|
|
356
445
|
lineHeight: "1.33333333",
|
|
357
|
-
marginTop:
|
|
446
|
+
marginTop: theme.spacing(2),
|
|
358
447
|
".MuiFormLabel-root + &": {
|
|
359
|
-
marginTop:
|
|
360
|
-
color:
|
|
448
|
+
marginTop: `-${theme.spacing(1)}`,
|
|
449
|
+
color: theme.palette.text.secondary
|
|
361
450
|
},
|
|
362
|
-
marginBottom:
|
|
451
|
+
marginBottom: theme.spacing(2),
|
|
363
452
|
"&:last-child": {
|
|
364
453
|
marginBottom: 0
|
|
365
454
|
}
|
|
366
|
-
}
|
|
455
|
+
})
|
|
367
456
|
}
|
|
368
457
|
},
|
|
369
458
|
MuiFormLabel: {
|
|
370
459
|
styleOverrides: {
|
|
371
|
-
root: {
|
|
372
|
-
|
|
460
|
+
root: ({
|
|
461
|
+
theme
|
|
462
|
+
}) => ({
|
|
463
|
+
color: theme.palette.text.primary,
|
|
373
464
|
lineHeight: "1.14285714",
|
|
374
465
|
fontSize: "1rem",
|
|
375
466
|
fontWeight: 600,
|
|
376
|
-
marginBottom:
|
|
467
|
+
marginBottom: theme.spacing(2),
|
|
377
468
|
"&.Mui-focused, &.Mui-error, &.Mui-disabled": {
|
|
378
|
-
color:
|
|
469
|
+
color: theme.palette.text.primary
|
|
379
470
|
}
|
|
380
|
-
}
|
|
471
|
+
})
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
MuiIconButton: {
|
|
475
|
+
styleOverrides: {
|
|
476
|
+
root: ({
|
|
477
|
+
theme
|
|
478
|
+
}) => ({
|
|
479
|
+
padding: theme.spacing(1),
|
|
480
|
+
fontSize: theme.typography.body.fontSize
|
|
481
|
+
})
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
MuiInputAdornment: {
|
|
485
|
+
defaultProps: {
|
|
486
|
+
variant: "outlined"
|
|
487
|
+
},
|
|
488
|
+
styleOverrides: {
|
|
489
|
+
root: ({
|
|
490
|
+
ownerState
|
|
491
|
+
}) => ({
|
|
492
|
+
display: "flex",
|
|
493
|
+
...(ownerState.position === "start" && {
|
|
494
|
+
marginRight: 0
|
|
495
|
+
}),
|
|
496
|
+
...(ownerState.position === "end" && {
|
|
497
|
+
marginLeft: 0
|
|
498
|
+
})
|
|
499
|
+
})
|
|
381
500
|
}
|
|
382
501
|
},
|
|
383
502
|
MuiInputBase: {
|
|
@@ -391,23 +510,48 @@ export const components = {
|
|
|
391
510
|
}
|
|
392
511
|
}
|
|
393
512
|
},
|
|
513
|
+
MuiInputLabel: {
|
|
514
|
+
defaultProps: {
|
|
515
|
+
disableAnimation: true,
|
|
516
|
+
shrink: false
|
|
517
|
+
},
|
|
518
|
+
styleOverrides: {
|
|
519
|
+
root: ({
|
|
520
|
+
ownerState
|
|
521
|
+
}) => ({ ...(ownerState.formControl && {
|
|
522
|
+
position: "initial",
|
|
523
|
+
transform: "none"
|
|
524
|
+
}),
|
|
525
|
+
...(ownerState.variant === "outlined" && {
|
|
526
|
+
pointerEvents: "initial",
|
|
527
|
+
transform: "none",
|
|
528
|
+
maxWidth: "100%",
|
|
529
|
+
...(ownerState.size === "small" && {
|
|
530
|
+
transform: "none"
|
|
531
|
+
})
|
|
532
|
+
})
|
|
533
|
+
})
|
|
534
|
+
}
|
|
535
|
+
},
|
|
394
536
|
MuiLink: {
|
|
395
537
|
styleOverrides: {
|
|
396
|
-
root: {
|
|
397
|
-
|
|
538
|
+
root: ({
|
|
539
|
+
theme
|
|
540
|
+
}) => ({
|
|
541
|
+
color: theme.palette.primary.main,
|
|
398
542
|
textDecoration: "none",
|
|
399
543
|
"&:hover": {
|
|
400
|
-
color:
|
|
544
|
+
color: theme.palette.primary.main,
|
|
401
545
|
textDecoration: "underline"
|
|
402
546
|
},
|
|
403
547
|
"&:focus-visible": {
|
|
404
|
-
outlineColor:
|
|
548
|
+
outlineColor: theme.palette.primary.main,
|
|
405
549
|
outlineOffset: "2px",
|
|
406
550
|
outlineStyle: "solid",
|
|
407
551
|
outlineWidth: "1px"
|
|
408
552
|
},
|
|
409
553
|
"&:visited": {
|
|
410
|
-
color:
|
|
554
|
+
color: theme.palette.primary.main
|
|
411
555
|
},
|
|
412
556
|
".Link-indicator, .Link-icon": {
|
|
413
557
|
display: "inline-block",
|
|
@@ -415,10 +559,10 @@ export const components = {
|
|
|
415
559
|
lineHeight: 1
|
|
416
560
|
},
|
|
417
561
|
".Link-indicator": {
|
|
418
|
-
marginInlineStart:
|
|
562
|
+
marginInlineStart: theme.spacing(2)
|
|
419
563
|
},
|
|
420
564
|
".Link-icon": {
|
|
421
|
-
marginInlineEnd:
|
|
565
|
+
marginInlineEnd: theme.spacing(2)
|
|
422
566
|
},
|
|
423
567
|
svg: {
|
|
424
568
|
fontSize: "1rem",
|
|
@@ -428,52 +572,114 @@ export const components = {
|
|
|
428
572
|
verticalAlign: "middle",
|
|
429
573
|
width: "1em"
|
|
430
574
|
}
|
|
431
|
-
}
|
|
575
|
+
})
|
|
432
576
|
},
|
|
433
577
|
variants: [{
|
|
434
578
|
props: {
|
|
435
579
|
variant: "monochrome"
|
|
436
580
|
},
|
|
437
|
-
style: {
|
|
438
|
-
|
|
581
|
+
style: ({
|
|
582
|
+
theme
|
|
583
|
+
}) => ({
|
|
584
|
+
color: theme.palette.text.primary,
|
|
439
585
|
textDecoration: "underline",
|
|
440
586
|
"&:hover": {
|
|
441
|
-
color:
|
|
587
|
+
color: theme.palette.text.secondary
|
|
442
588
|
},
|
|
443
589
|
"&:focus-visible": {
|
|
444
|
-
outlineColor:
|
|
590
|
+
outlineColor: theme.palette.primary.main,
|
|
445
591
|
outlineOffset: "2px",
|
|
446
592
|
outlineStyle: "solid",
|
|
447
593
|
outlineWidth: "1px"
|
|
448
594
|
},
|
|
449
595
|
"&:visited": {
|
|
450
|
-
color:
|
|
596
|
+
color: theme.palette.text.primary
|
|
451
597
|
}
|
|
452
|
-
}
|
|
598
|
+
})
|
|
453
599
|
}]
|
|
454
600
|
},
|
|
601
|
+
MuiNativeSelect: {
|
|
602
|
+
defaultProps: {
|
|
603
|
+
variant: "outlined"
|
|
604
|
+
},
|
|
605
|
+
styleOverrides: {
|
|
606
|
+
icon: ({
|
|
607
|
+
theme
|
|
608
|
+
}) => ({
|
|
609
|
+
color: theme.palette.text.primary
|
|
610
|
+
})
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
MuiOutlinedInput: {
|
|
614
|
+
defaultProps: {
|
|
615
|
+
notched: false
|
|
616
|
+
},
|
|
617
|
+
styleOverrides: {
|
|
618
|
+
root: ({
|
|
619
|
+
ownerState,
|
|
620
|
+
theme
|
|
621
|
+
}) => ({
|
|
622
|
+
"&.Mui-disabled": {
|
|
623
|
+
pointerEvents: "none"
|
|
624
|
+
},
|
|
625
|
+
...(ownerState.startAdornment && {
|
|
626
|
+
paddingLeft: theme.spacing(3)
|
|
627
|
+
}),
|
|
628
|
+
...(ownerState.endAdornment && {
|
|
629
|
+
paddingRight: theme.spacing(3)
|
|
630
|
+
})
|
|
631
|
+
}),
|
|
632
|
+
input: ({
|
|
633
|
+
theme
|
|
634
|
+
}) => ({
|
|
635
|
+
padding: `calc(${theme.spacing(3)} - 1px) ${theme.spacing(3)}`,
|
|
636
|
+
border: "1px solid transparent"
|
|
637
|
+
}),
|
|
638
|
+
notchedOutline: ({
|
|
639
|
+
theme
|
|
640
|
+
}) => ({
|
|
641
|
+
borderColor: theme.palette.grey[500],
|
|
642
|
+
".MuiOutlinedInput-root:hover &": {
|
|
643
|
+
borderColor: theme.palette.primary.main
|
|
644
|
+
},
|
|
645
|
+
".MuiOutlinedInput-root.Mui-error:hover &": {
|
|
646
|
+
borderColor: theme.palette.error.dark
|
|
647
|
+
}
|
|
648
|
+
})
|
|
649
|
+
}
|
|
650
|
+
},
|
|
455
651
|
MuiRadio: {
|
|
456
652
|
defaultProps: {
|
|
457
653
|
size: "small"
|
|
458
654
|
},
|
|
459
655
|
styleOverrides: {
|
|
460
|
-
root: {
|
|
656
|
+
root: ({
|
|
657
|
+
theme
|
|
658
|
+
}) => ({
|
|
461
659
|
"&:hover": {
|
|
462
660
|
backgroundColor: "transparent"
|
|
463
661
|
},
|
|
464
662
|
padding: 0,
|
|
465
663
|
".Mui-error > &": {
|
|
466
|
-
color:
|
|
664
|
+
color: theme.palette.error.main,
|
|
467
665
|
"&:hover": {
|
|
468
|
-
color:
|
|
666
|
+
color: theme.palette.error.dark
|
|
469
667
|
}
|
|
470
668
|
},
|
|
471
669
|
"&.Mui-focusVisible": {
|
|
472
|
-
outlineColor:
|
|
670
|
+
outlineColor: theme.palette.primary.main,
|
|
473
671
|
outlineOffset: 0,
|
|
474
672
|
outlineStyle: "solid",
|
|
475
673
|
outlineWidth: "2px"
|
|
476
674
|
}
|
|
675
|
+
})
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
MuiSnackbar: {
|
|
679
|
+
defaultProps: {
|
|
680
|
+
anchorOrigin: {
|
|
681
|
+
vertical: "bottom",
|
|
682
|
+
horizontal: "right"
|
|
477
683
|
}
|
|
478
684
|
}
|
|
479
685
|
},
|
|
@@ -482,9 +688,11 @@ export const components = {
|
|
|
482
688
|
fontFamily: "'Public Sans', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Noto Sans Arabic', sans-serif"
|
|
483
689
|
},
|
|
484
690
|
styleOverrides: {
|
|
485
|
-
paragraph: {
|
|
486
|
-
|
|
487
|
-
}
|
|
691
|
+
paragraph: ({
|
|
692
|
+
theme
|
|
693
|
+
}) => ({
|
|
694
|
+
marginBottom: theme.spacing(4)
|
|
695
|
+
})
|
|
488
696
|
}
|
|
489
697
|
}
|
|
490
698
|
};
|