@mui/material 5.2.3 → 5.2.7
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/Avatar/Avatar.d.ts +4 -2
- package/Badge/Badge.d.ts +25 -0
- package/Badge/Badge.js +40 -10
- package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/ButtonGroup/ButtonGroupContext.d.ts +1 -1
- package/CHANGELOG.md +227 -0
- package/CssBaseline/CssBaseline.d.ts +1 -1
- package/GlobalStyles/GlobalStyles.d.ts +2 -1
- package/Grid/Grid.js +74 -66
- package/InputBase/InputBase.d.ts +6 -0
- package/InputBase/InputBase.js +10 -2
- package/ListItem/ListItem.d.ts +1 -1
- package/ListItemButton/ListItemButton.d.ts +1 -1
- package/MenuItem/MenuItem.d.ts +1 -1
- package/OutlinedInput/OutlinedInput.js +14 -1
- package/README.md +15 -27
- package/Select/SelectInput.js +11 -3
- package/SvgIcon/SvgIcon.d.ts +8 -0
- package/SvgIcon/SvgIcon.js +19 -3
- package/Tabs/Tabs.d.ts +1 -1
- package/TextField/TextField.js +2 -9
- package/index.js +1 -1
- package/legacy/Badge/Badge.js +46 -11
- package/legacy/Grid/Grid.js +84 -78
- package/legacy/InputBase/InputBase.js +10 -2
- package/legacy/OutlinedInput/OutlinedInput.js +14 -1
- package/legacy/Select/SelectInput.js +11 -5
- package/legacy/SvgIcon/SvgIcon.js +20 -3
- package/legacy/TextField/TextField.js +2 -9
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +319 -142
- package/locale/index.d.ts +2 -0
- package/locale/index.js +220 -50
- package/modern/Badge/Badge.js +40 -10
- package/modern/Grid/Grid.js +74 -66
- package/modern/InputBase/InputBase.js +10 -2
- package/modern/OutlinedInput/OutlinedInput.js +14 -1
- package/modern/Select/SelectInput.js +11 -3
- package/modern/SvgIcon/SvgIcon.js +19 -3
- package/modern/TextField/TextField.js +2 -7
- package/modern/index.js +1 -1
- package/modern/locale/index.js +220 -50
- package/node/Badge/Badge.js +40 -10
- package/node/Grid/Grid.js +75 -65
- package/node/InputBase/InputBase.js +10 -2
- package/node/OutlinedInput/OutlinedInput.js +15 -1
- package/node/Select/SelectInput.js +11 -3
- package/node/SvgIcon/SvgIcon.js +19 -3
- package/node/TextField/TextField.js +1 -8
- package/node/index.js +1 -1
- package/node/locale/index.js +223 -51
- package/package.json +3 -3
- package/styles/createTheme.d.ts +1 -1
- package/transitions/transition.d.ts +1 -2
- package/umd/material-ui.development.js +278 -171
- package/umd/material-ui.production.min.js +21 -21
package/node/locale/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.skSK = exports.siLK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.kzKZ = exports.koKR = exports.khKH = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.elGR = exports.deDE = exports.csCZ = exports.caES = exports.bnBD = exports.bgBG = exports.azAZ = exports.arSD = exports.arEG = exports.amET = void 0;
|
|
6
|
+
exports.zhTW = exports.zhHK = exports.zhCN = exports.viVN = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.skSK = exports.siLK = exports.ruRU = exports.roRO = exports.ptPT = exports.ptBR = exports.plPL = exports.nlNL = exports.nbNO = exports.kzKZ = exports.koKR = exports.khKH = exports.jaJP = exports.itIT = exports.isIS = exports.idID = exports.hyAM = exports.huHU = exports.hiIN = exports.heIL = exports.frFR = exports.fiFI = exports.faIR = exports.etEE = exports.esES = exports.enUS = exports.elGR = exports.deDE = exports.daDK = exports.csCZ = exports.caES = exports.bnBD = exports.bgBG = exports.azAZ = exports.arSD = exports.arEG = exports.amET = void 0;
|
|
7
7
|
const amET = {
|
|
8
8
|
components: {
|
|
9
9
|
MuiBreadcrumbs: {
|
|
@@ -655,6 +655,87 @@ const csCZ = {
|
|
|
655
655
|
}
|
|
656
656
|
};
|
|
657
657
|
exports.csCZ = csCZ;
|
|
658
|
+
const daDK = {
|
|
659
|
+
components: {
|
|
660
|
+
MuiBreadcrumbs: {
|
|
661
|
+
defaultProps: {
|
|
662
|
+
expandText: 'Vis sti'
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
MuiTablePagination: {
|
|
666
|
+
defaultProps: {
|
|
667
|
+
getItemAriaLabel: type => {
|
|
668
|
+
if (type === 'first') {
|
|
669
|
+
return 'Gå til den første side';
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
if (type === 'last') {
|
|
673
|
+
return 'Gå til den sidste side';
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
if (type === 'next') {
|
|
677
|
+
return 'Gå til den næste side';
|
|
678
|
+
} // if (type === 'previous') {
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
return 'Gå til den forrige side';
|
|
682
|
+
},
|
|
683
|
+
labelRowsPerPage: 'Rækker pr side:',
|
|
684
|
+
labelDisplayedRows: ({
|
|
685
|
+
from,
|
|
686
|
+
to,
|
|
687
|
+
count
|
|
688
|
+
}) => `${from}-${to} af ${count !== -1 ? count : `mere end ${to}`}`
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
MuiRating: {
|
|
692
|
+
defaultProps: {
|
|
693
|
+
getLabelText: value => `${value} Stjern${value !== 1 ? 'er' : ''}`,
|
|
694
|
+
emptyLabelText: 'Tom'
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
MuiAutocomplete: {
|
|
698
|
+
defaultProps: {
|
|
699
|
+
clearText: 'Slet',
|
|
700
|
+
closeText: 'Luk',
|
|
701
|
+
loadingText: 'Indlæser…',
|
|
702
|
+
noOptionsText: 'Ingen muligheder',
|
|
703
|
+
openText: 'Åben'
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
MuiAlert: {
|
|
707
|
+
defaultProps: {
|
|
708
|
+
closeText: 'Luk'
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
MuiPagination: {
|
|
712
|
+
defaultProps: {
|
|
713
|
+
'aria-label': 'Sideinddelings navigation',
|
|
714
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
715
|
+
if (type === 'page') {
|
|
716
|
+
return `${selected ? '' : 'Go to '}page ${page}`;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
if (type === 'first') {
|
|
720
|
+
return 'Gå til den første side';
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
if (type === 'last') {
|
|
724
|
+
return 'Gå til den sidste side';
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
if (type === 'next') {
|
|
728
|
+
return 'Gå til den næste side';
|
|
729
|
+
} // if (type === 'previous') {
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
return 'Gå til den forrige side';
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
exports.daDK = daDK;
|
|
658
739
|
const deDE = {
|
|
659
740
|
components: {
|
|
660
741
|
MuiBreadcrumbs: {
|
|
@@ -824,7 +905,7 @@ const enUS = {
|
|
|
824
905
|
MuiBreadcrumbs: { defaultProps: {
|
|
825
906
|
expandText: 'Show path',
|
|
826
907
|
}},
|
|
827
|
-
MuiTablePagination: { defaultProps: {
|
|
908
|
+
MuiTablePagination: { defaultProps: {
|
|
828
909
|
getItemAriaLabel: (type) => {
|
|
829
910
|
if (type === 'first') {
|
|
830
911
|
return 'Go to first page';
|
|
@@ -842,21 +923,21 @@ const enUS = {
|
|
|
842
923
|
labelDisplayedRows: ({ from, to, count }) =>
|
|
843
924
|
`${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`,
|
|
844
925
|
}},
|
|
845
|
-
MuiRating: { defaultProps: {
|
|
926
|
+
MuiRating: { defaultProps: {
|
|
846
927
|
getLabelText: value => `${value} Star${value !== 1 ? 's' : ''}`,
|
|
847
928
|
emptyLabelText: 'Empty',
|
|
848
929
|
}},
|
|
849
|
-
MuiAutocomplete: { defaultProps: {
|
|
930
|
+
MuiAutocomplete: { defaultProps: {
|
|
850
931
|
clearText: 'Clear',
|
|
851
932
|
closeText: 'Close',
|
|
852
933
|
loadingText: 'Loading…',
|
|
853
934
|
noOptionsText: 'No options',
|
|
854
935
|
openText: 'Open',
|
|
855
936
|
}},
|
|
856
|
-
MuiAlert: { defaultProps: {
|
|
937
|
+
MuiAlert: { defaultProps: {
|
|
857
938
|
closeText: 'Close',
|
|
858
939
|
}},
|
|
859
|
-
MuiPagination: { defaultProps: {
|
|
940
|
+
MuiPagination: { defaultProps: {
|
|
860
941
|
'aria-label': 'Pagination navigation',
|
|
861
942
|
getItemAriaLabel: (type, page, selected) => {
|
|
862
943
|
if (type === 'page') {
|
|
@@ -874,7 +955,7 @@ const enUS = {
|
|
|
874
955
|
// if (type === 'previous') {
|
|
875
956
|
return 'Go to previous page';
|
|
876
957
|
},
|
|
877
|
-
},
|
|
958
|
+
}},
|
|
878
959
|
},
|
|
879
960
|
*/
|
|
880
961
|
};
|
|
@@ -1146,9 +1227,12 @@ const fiFI = {
|
|
|
1146
1227
|
|
|
1147
1228
|
return 'Mene edelliselle sivulle';
|
|
1148
1229
|
},
|
|
1149
|
-
labelRowsPerPage: 'Rivejä per sivu:'
|
|
1150
|
-
|
|
1151
|
-
|
|
1230
|
+
labelRowsPerPage: 'Rivejä per sivu:',
|
|
1231
|
+
labelDisplayedRows: ({
|
|
1232
|
+
from,
|
|
1233
|
+
to,
|
|
1234
|
+
count
|
|
1235
|
+
}) => `${from}–${to} / ${count !== -1 ? count : `enemmän kuin ${to}`}`
|
|
1152
1236
|
}
|
|
1153
1237
|
},
|
|
1154
1238
|
MuiRating: {
|
|
@@ -2139,6 +2223,87 @@ const kzKZ = {
|
|
|
2139
2223
|
}
|
|
2140
2224
|
};
|
|
2141
2225
|
exports.kzKZ = kzKZ;
|
|
2226
|
+
const nbNO = {
|
|
2227
|
+
components: {
|
|
2228
|
+
MuiBreadcrumbs: {
|
|
2229
|
+
defaultProps: {
|
|
2230
|
+
expandText: 'Vis sti'
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
MuiTablePagination: {
|
|
2234
|
+
defaultProps: {
|
|
2235
|
+
getItemAriaLabel: type => {
|
|
2236
|
+
if (type === 'first') {
|
|
2237
|
+
return 'Gå til første side';
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
if (type === 'last') {
|
|
2241
|
+
return 'Gå til siste side';
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
if (type === 'next') {
|
|
2245
|
+
return 'Gå til neste side';
|
|
2246
|
+
} // if (type === 'previous') {
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
return 'Gå til forrige side';
|
|
2250
|
+
},
|
|
2251
|
+
labelRowsPerPage: 'Rader per side:',
|
|
2252
|
+
labelDisplayedRows: ({
|
|
2253
|
+
from,
|
|
2254
|
+
to,
|
|
2255
|
+
count
|
|
2256
|
+
}) => `${from}–${to} av ${count !== -1 ? count : `mer enn ${to}`}`
|
|
2257
|
+
}
|
|
2258
|
+
},
|
|
2259
|
+
MuiRating: {
|
|
2260
|
+
defaultProps: {
|
|
2261
|
+
getLabelText: value => `${value} Stjerne${value !== 1 ? 'r' : ''}`,
|
|
2262
|
+
emptyLabelText: 'Tom'
|
|
2263
|
+
}
|
|
2264
|
+
},
|
|
2265
|
+
MuiAutocomplete: {
|
|
2266
|
+
defaultProps: {
|
|
2267
|
+
clearText: 'Tøm',
|
|
2268
|
+
closeText: 'Lukk',
|
|
2269
|
+
loadingText: 'Laster inn…',
|
|
2270
|
+
noOptionsText: 'Ingen alternativer',
|
|
2271
|
+
openText: 'Åpne'
|
|
2272
|
+
}
|
|
2273
|
+
},
|
|
2274
|
+
MuiAlert: {
|
|
2275
|
+
defaultProps: {
|
|
2276
|
+
closeText: 'Lukk'
|
|
2277
|
+
}
|
|
2278
|
+
},
|
|
2279
|
+
MuiPagination: {
|
|
2280
|
+
defaultProps: {
|
|
2281
|
+
'aria-label': 'Paginering navigasjon',
|
|
2282
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
2283
|
+
if (type === 'page') {
|
|
2284
|
+
return `${selected ? '' : 'Gå til '}side ${page}`;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
if (type === 'first') {
|
|
2288
|
+
return 'Gå til første side';
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
if (type === 'last') {
|
|
2292
|
+
return 'Gå til siste side';
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
if (type === 'next') {
|
|
2296
|
+
return 'Gå til neste side';
|
|
2297
|
+
} // if (type === 'previous') {
|
|
2298
|
+
|
|
2299
|
+
|
|
2300
|
+
return 'Gå til forrige side';
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
};
|
|
2306
|
+
exports.nbNO = nbNO;
|
|
2142
2307
|
const nlNL = {
|
|
2143
2308
|
components: {
|
|
2144
2309
|
MuiBreadcrumbs: {
|
|
@@ -3151,26 +3316,29 @@ const ukUA = {
|
|
|
3151
3316
|
exports.ukUA = ukUA;
|
|
3152
3317
|
const viVN = {
|
|
3153
3318
|
components: {
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3319
|
+
MuiBreadcrumbs: {
|
|
3320
|
+
defaultProps: {
|
|
3321
|
+
expandText: 'Mở ra'
|
|
3322
|
+
}
|
|
3323
|
+
},
|
|
3159
3324
|
MuiTablePagination: {
|
|
3160
3325
|
defaultProps: {
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3326
|
+
getItemAriaLabel: type => {
|
|
3327
|
+
if (type === 'first') {
|
|
3328
|
+
return 'Tới trang đầu tiên';
|
|
3329
|
+
}
|
|
3330
|
+
|
|
3331
|
+
if (type === 'last') {
|
|
3332
|
+
return 'Tới trang cuối cùng';
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
if (type === 'next') {
|
|
3336
|
+
return 'Tới trang tiếp theo';
|
|
3337
|
+
} // if (type === 'previous') {
|
|
3338
|
+
|
|
3339
|
+
|
|
3340
|
+
return 'Về trang trước đó';
|
|
3341
|
+
},
|
|
3174
3342
|
labelRowsPerPage: 'Số hàng mỗi trang:',
|
|
3175
3343
|
labelDisplayedRows: ({
|
|
3176
3344
|
from,
|
|
@@ -3182,7 +3350,7 @@ const viVN = {
|
|
|
3182
3350
|
MuiRating: {
|
|
3183
3351
|
defaultProps: {
|
|
3184
3352
|
getLabelText: value => `${value} sao`,
|
|
3185
|
-
emptyLabelText: '
|
|
3353
|
+
emptyLabelText: 'Không có dữ liệu'
|
|
3186
3354
|
}
|
|
3187
3355
|
},
|
|
3188
3356
|
MuiAutocomplete: {
|
|
@@ -3190,7 +3358,7 @@ const viVN = {
|
|
|
3190
3358
|
clearText: 'Xóa',
|
|
3191
3359
|
closeText: 'Đóng',
|
|
3192
3360
|
loadingText: 'Đang tải…',
|
|
3193
|
-
noOptionsText: 'Không có lựa chọn',
|
|
3361
|
+
noOptionsText: 'Không có lựa chọn nào',
|
|
3194
3362
|
openText: 'Mở'
|
|
3195
3363
|
}
|
|
3196
3364
|
},
|
|
@@ -3198,28 +3366,32 @@ const viVN = {
|
|
|
3198
3366
|
defaultProps: {
|
|
3199
3367
|
closeText: 'Đóng'
|
|
3200
3368
|
}
|
|
3201
|
-
}
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
// return 'Go to first page';
|
|
3210
|
-
// }
|
|
3211
|
-
// if (type === 'last') {
|
|
3212
|
-
// return 'Go to last page';
|
|
3213
|
-
// }
|
|
3214
|
-
// if (type === 'next') {
|
|
3215
|
-
// return 'Go to next page';
|
|
3216
|
-
// }
|
|
3217
|
-
// // if (type === 'previous') {
|
|
3218
|
-
// return 'Go to previous page';
|
|
3219
|
-
// },
|
|
3220
|
-
// },
|
|
3221
|
-
// },
|
|
3369
|
+
},
|
|
3370
|
+
MuiPagination: {
|
|
3371
|
+
defaultProps: {
|
|
3372
|
+
'aria-label': 'Thanh điều khiển trang',
|
|
3373
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
3374
|
+
if (type === 'page') {
|
|
3375
|
+
return `${selected ? '' : 'Tới '}trang ${page}`;
|
|
3376
|
+
}
|
|
3222
3377
|
|
|
3378
|
+
if (type === 'first') {
|
|
3379
|
+
return 'Tới trang đầu tiên';
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
if (type === 'last') {
|
|
3383
|
+
return 'Tới trang cuối cùng';
|
|
3384
|
+
}
|
|
3385
|
+
|
|
3386
|
+
if (type === 'next') {
|
|
3387
|
+
return 'Tới trang tiếp theo';
|
|
3388
|
+
} // if (type === 'previous') {
|
|
3389
|
+
|
|
3390
|
+
|
|
3391
|
+
return 'Về trang trước đó';
|
|
3392
|
+
}
|
|
3393
|
+
}
|
|
3394
|
+
}
|
|
3223
3395
|
}
|
|
3224
3396
|
};
|
|
3225
3397
|
exports.viVN = viVN;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.16.3",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/system": "^5.2.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.63",
|
|
50
|
+
"@mui/system": "^5.2.6",
|
|
51
51
|
"@mui/types": "^7.1.0",
|
|
52
52
|
"@mui/utils": "^5.2.3",
|
|
53
53
|
"@types/react-transition-group": "^4.4.4",
|
package/styles/createTheme.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Transitions, TransitionsOptions } from './createTransitions';
|
|
|
7
7
|
import { ZIndex, ZIndexOptions } from './zIndex';
|
|
8
8
|
import { Components } from './components';
|
|
9
9
|
|
|
10
|
-
export interface ThemeOptions extends SystemThemeOptions {
|
|
10
|
+
export interface ThemeOptions extends Omit<SystemThemeOptions, 'zIndex'> {
|
|
11
11
|
mixins?: MixinsOptions;
|
|
12
12
|
components?: Components;
|
|
13
13
|
palette?: PaletteOptions;
|
|
@@ -9,6 +9,5 @@ export interface EasingProps {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
12
|
-
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys
|
|
13
|
-
style?: React.CSSProperties;
|
|
12
|
+
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
14
13
|
}
|