@registrucentras/rc-ses-react-components 2.0.0-rc.4 → 2.0.0-rc.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.
@@ -3,8 +3,7 @@ import { Components, createTheme } from '@mui/material'
3
3
  import CheckCircleFillIcon from '@/assets/icons/CheckCircleFillIcon'
4
4
  import CloseIcon from '@/assets/icons/CloseIcon'
5
5
  import InfoFillIcon from '@/assets/icons/InfoFillIcon'
6
- import ScrollIcon from '@/assets/icons/ScrollIcon'
7
- import WarningDiamondFillIcon from '@/assets/icons/WarningDiamondFillIcon'
6
+ import WarningCircleIcon from '@/assets/icons/WarningCircleIcon'
8
7
  import WarningFillIcon from '@/assets/icons/WarningFillIcon'
9
8
 
10
9
  import palette from '../palette'
@@ -15,11 +14,11 @@ const MuiAlert: Components['MuiAlert'] = {
15
14
  defaultProps: {
16
15
  elevation: 0,
17
16
  iconMapping: {
18
- grey: <InfoFillIcon />,
19
- error: <WarningDiamondFillIcon />,
20
- info: <ScrollIcon />,
21
- success: <CheckCircleFillIcon />,
22
- warning: <WarningFillIcon />,
17
+ grey: <InfoFillIcon weight='regular' aria-hidden />,
18
+ error: <WarningCircleIcon weight='regular' aria-hidden />,
19
+ info: <InfoFillIcon weight='regular' aria-hidden />,
20
+ success: <CheckCircleFillIcon weight='regular' aria-hidden />,
21
+ warning: <WarningFillIcon weight='regular' aria-hidden />,
23
22
  },
24
23
  slots: {
25
24
  closeIcon: CloseIcon,
@@ -69,13 +68,13 @@ const MuiAlert: Components['MuiAlert'] = {
69
68
  paddingTop: 0,
70
69
 
71
70
  [breakpoints.up('sm')]: {
72
- alignSelf: 'center',
73
71
  marginRight: '.75rem',
74
72
  },
75
73
  },
76
74
 
77
75
  message: {
78
76
  flexGrow: 1,
77
+ minWidth: 0,
79
78
  overflowY: 'hidden',
80
79
 
81
80
  [breakpoints.down('sm')]: {
@@ -194,53 +193,62 @@ const MuiAlert: Components['MuiAlert'] = {
194
193
  outlined: {
195
194
  fontSize: '.8125rem',
196
195
  fontWeight: 400,
196
+ flexWrap: 'nowrap',
197
+ alignItems: 'center',
198
+ gap: '.75rem',
199
+ padding: '.75rem 1rem',
200
+ borderRadius: '0.5rem',
197
201
 
198
202
  [breakpoints.up('md')]: {
199
203
  fontSize: '.875rem',
200
204
  },
201
205
 
206
+ '.MuiAlert-icon': {
207
+ alignSelf: 'flex-start',
208
+ margin: 0,
209
+ padding: 0,
210
+ },
211
+
202
212
  '.MuiAlert-message': {
203
213
  lineHeight: '1rem',
204
214
  padding: 0,
205
215
 
206
- [breakpoints.up('sm')]: {
216
+ [breakpoints.up('md')]: {
207
217
  lineHeight: '1.25rem',
208
- padding: '.125rem 0',
209
218
  },
210
219
 
211
220
  a: {
212
221
  fontWeight: 600,
213
222
  },
214
223
  },
215
-
216
224
  // Was outlined<Severity>; see the note on standard above.
217
225
  '&.MuiAlert-colorGrey': {
218
226
  backgroundColor: palette.grey['50'],
219
- borderColor: palette.grey['200'],
227
+ border: `1px solid ${palette.grey['200']}`,
220
228
 
221
229
  '.MuiAlert-icon': {
222
230
  color: palette.grey['600'],
223
231
  },
224
232
  },
225
233
  '&.MuiAlert-colorError': {
226
- backgroundColor: palette.error['50'],
227
- borderColor: palette.error['200'],
234
+ backgroundColor: palette.error['100'],
235
+ border: `1px solid ${palette.error['500']}`,
228
236
 
229
237
  '.MuiAlert-icon': {
230
238
  color: palette.error['600'],
231
239
  },
232
240
  },
233
241
  '&.MuiAlert-colorInfo': {
234
- backgroundColor: palette.primary['50'],
235
- borderColor: palette.primary['300'],
242
+ backgroundColor: palette.primary['100'],
243
+ border: `1px solid ${palette.primary['400']}`,
236
244
 
237
245
  '.MuiAlert-icon': {
238
- color: palette.primary['500'],
246
+ color: palette.primary['600'],
239
247
  },
240
248
  },
241
249
  '&.MuiAlert-colorSuccess': {
242
250
  backgroundColor: palette.secondary['100'],
243
- borderColor: palette.secondary['300'],
251
+ border: `1px solid ${palette.secondary['500']}`,
244
252
 
245
253
  '.MuiAlert-icon': {
246
254
  color: palette.secondary['600'],
@@ -248,10 +256,10 @@ const MuiAlert: Components['MuiAlert'] = {
248
256
  },
249
257
  '&.MuiAlert-colorWarning': {
250
258
  backgroundColor: palette.warning['100'],
251
- borderColor: palette.warning['300'],
259
+ border: `1px solid ${palette.warning['400']}`,
252
260
 
253
261
  '.MuiAlert-icon': {
254
- color: palette.warning['600'],
262
+ color: palette.warning['500'],
255
263
  },
256
264
  },
257
265
  },