@mui/material 7.3.2 → 7.3.4
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/CHANGELOG.md +86 -0
- package/CircularProgress/CircularProgress.d.ts +6 -0
- package/CircularProgress/CircularProgress.js +31 -4
- package/CircularProgress/circularProgressClasses.d.ts +2 -0
- package/CircularProgress/circularProgressClasses.js +1 -1
- package/Divider/Divider.js +1 -1
- package/MenuItem/MenuItem.js +1 -1
- package/SnackbarContent/SnackbarContent.js +1 -1
- package/TextField/TextField.js +1 -1
- package/esm/CircularProgress/CircularProgress.d.ts +6 -0
- package/esm/CircularProgress/CircularProgress.js +32 -5
- package/esm/CircularProgress/circularProgressClasses.d.ts +2 -0
- package/esm/CircularProgress/circularProgressClasses.js +1 -1
- package/esm/Divider/Divider.js +1 -1
- package/esm/MenuItem/MenuItem.js +1 -1
- package/esm/SnackbarContent/SnackbarContent.js +1 -1
- package/esm/TextField/TextField.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/amET.d.ts +2 -0
- package/esm/locale/amET.js +73 -0
- package/esm/locale/arEG.d.ts +2 -0
- package/esm/locale/arEG.js +73 -0
- package/esm/locale/arSA.d.ts +2 -0
- package/esm/locale/arSA.js +73 -0
- package/esm/locale/arSD.d.ts +2 -0
- package/esm/locale/arSD.js +73 -0
- package/esm/locale/azAZ.d.ts +2 -0
- package/esm/locale/azAZ.js +77 -0
- package/esm/locale/beBY.d.ts +2 -0
- package/esm/locale/beBY.js +85 -0
- package/esm/locale/bgBG.d.ts +2 -0
- package/esm/locale/bgBG.js +70 -0
- package/esm/locale/bnBD.d.ts +2 -0
- package/esm/locale/bnBD.js +73 -0
- package/esm/locale/caES.d.ts +2 -0
- package/esm/locale/caES.js +70 -0
- package/esm/locale/csCZ.d.ts +2 -0
- package/esm/locale/csCZ.js +81 -0
- package/esm/locale/daDK.d.ts +2 -0
- package/esm/locale/daDK.js +73 -0
- package/esm/locale/deDE.d.ts +2 -0
- package/esm/locale/deDE.js +73 -0
- package/esm/locale/elGR.d.ts +2 -0
- package/esm/locale/elGR.js +75 -0
- package/esm/locale/enUS.d.ts +2 -0
- package/esm/locale/enUS.js +61 -0
- package/esm/locale/esES.d.ts +2 -0
- package/esm/locale/esES.js +73 -0
- package/esm/locale/etEE.d.ts +2 -0
- package/esm/locale/etEE.js +73 -0
- package/esm/locale/faIR.d.ts +2 -0
- package/esm/locale/faIR.js +78 -0
- package/esm/locale/fiFI.d.ts +2 -0
- package/esm/locale/fiFI.js +73 -0
- package/esm/locale/frFR.d.ts +2 -0
- package/esm/locale/frFR.js +73 -0
- package/esm/locale/heIL.d.ts +2 -0
- package/esm/locale/heIL.js +73 -0
- package/esm/locale/hiIN.d.ts +2 -0
- package/esm/locale/hiIN.js +73 -0
- package/esm/locale/hrHR.d.ts +2 -0
- package/esm/locale/hrHR.js +81 -0
- package/esm/locale/huHU.d.ts +2 -0
- package/esm/locale/huHU.js +70 -0
- package/esm/locale/hyAM.d.ts +2 -0
- package/esm/locale/hyAM.js +70 -0
- package/esm/locale/idID.d.ts +2 -0
- package/esm/locale/idID.js +70 -0
- package/esm/locale/index.d.ts +60 -82
- package/esm/locale/index.js +60 -4327
- package/esm/locale/isIS.d.ts +2 -0
- package/esm/locale/isIS.js +73 -0
- package/esm/locale/itIT.d.ts +2 -0
- package/esm/locale/itIT.js +73 -0
- package/esm/locale/jaJP.d.ts +2 -0
- package/esm/locale/jaJP.js +73 -0
- package/esm/locale/khKH.d.ts +2 -0
- package/esm/locale/khKH.js +73 -0
- package/esm/locale/kkKZ.d.ts +2 -0
- package/esm/locale/kkKZ.js +76 -0
- package/esm/locale/koKR.d.ts +2 -0
- package/esm/locale/koKR.js +73 -0
- package/esm/locale/kuCKB.d.ts +2 -0
- package/esm/locale/kuCKB.js +73 -0
- package/esm/locale/kuLatn.d.ts +2 -0
- package/esm/locale/kuLatn.js +73 -0
- package/esm/locale/mkMK.d.ts +2 -0
- package/esm/locale/mkMK.js +77 -0
- package/esm/locale/msMS.d.ts +2 -0
- package/esm/locale/msMS.js +77 -0
- package/esm/locale/myMY.d.ts +2 -0
- package/esm/locale/myMY.js +77 -0
- package/esm/locale/nbNO.d.ts +2 -0
- package/esm/locale/nbNO.js +73 -0
- package/esm/locale/neNP.d.ts +2 -0
- package/esm/locale/neNP.js +77 -0
- package/esm/locale/nlNL.d.ts +2 -0
- package/esm/locale/nlNL.js +73 -0
- package/esm/locale/nnNO.d.ts +2 -0
- package/esm/locale/nnNO.js +73 -0
- package/esm/locale/plPL.d.ts +2 -0
- package/esm/locale/plPL.js +82 -0
- package/esm/locale/psAF.d.ts +2 -0
- package/esm/locale/psAF.js +73 -0
- package/esm/locale/ptBR.d.ts +2 -0
- package/esm/locale/ptBR.js +73 -0
- package/esm/locale/ptPT.d.ts +2 -0
- package/esm/locale/ptPT.js +73 -0
- package/esm/locale/roRO.d.ts +2 -0
- package/esm/locale/roRO.js +73 -0
- package/esm/locale/ruRU.d.ts +2 -0
- package/esm/locale/ruRU.js +85 -0
- package/esm/locale/siLK.d.ts +2 -0
- package/esm/locale/siLK.js +73 -0
- package/esm/locale/skSK.d.ts +2 -0
- package/esm/locale/skSK.js +81 -0
- package/esm/locale/srRS.d.ts +2 -0
- package/esm/locale/srRS.js +81 -0
- package/esm/locale/svSE.d.ts +2 -0
- package/esm/locale/svSE.js +73 -0
- package/esm/locale/thTH.d.ts +2 -0
- package/esm/locale/thTH.js +73 -0
- package/esm/locale/tlTL.d.ts +2 -0
- package/esm/locale/tlTL.js +74 -0
- package/esm/locale/trTR.d.ts +2 -0
- package/esm/locale/trTR.js +73 -0
- package/esm/locale/ukUA.d.ts +2 -0
- package/esm/locale/ukUA.js +82 -0
- package/esm/locale/urPK.d.ts +2 -0
- package/esm/locale/urPK.js +73 -0
- package/esm/locale/utils/LocaleTextApi.d.ts +23 -0
- package/esm/locale/utils/LocaleTextApi.js +1 -0
- package/esm/locale/viVN.d.ts +2 -0
- package/esm/locale/viVN.js +73 -0
- package/esm/locale/zhCN.d.ts +2 -0
- package/esm/locale/zhCN.js +51 -0
- package/esm/locale/zhHK.d.ts +2 -0
- package/esm/locale/zhHK.js +51 -0
- package/esm/locale/zhTW.d.ts +2 -0
- package/esm/locale/zhTW.js +51 -0
- package/esm/styles/createColorScheme.js +2 -2
- package/esm/styles/createTheme.d.ts +13 -5
- package/esm/styles/createTheme.js +2 -2
- package/esm/styles/createThemeFoundation.d.ts +277 -0
- package/esm/styles/createThemeFoundation.js +37 -0
- package/esm/styles/createThemeNoVars.d.ts +1 -1
- package/esm/styles/createThemeWithVars.d.ts +23 -306
- package/esm/useAutocomplete/useAutocomplete.js +2 -2
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/locale/amET.d.ts +2 -0
- package/locale/amET.js +79 -0
- package/locale/arEG.d.ts +2 -0
- package/locale/arEG.js +79 -0
- package/locale/arSA.d.ts +2 -0
- package/locale/arSA.js +79 -0
- package/locale/arSD.d.ts +2 -0
- package/locale/arSD.js +79 -0
- package/locale/azAZ.d.ts +2 -0
- package/locale/azAZ.js +83 -0
- package/locale/beBY.d.ts +2 -0
- package/locale/beBY.js +91 -0
- package/locale/bgBG.d.ts +2 -0
- package/locale/bgBG.js +76 -0
- package/locale/bnBD.d.ts +2 -0
- package/locale/bnBD.js +79 -0
- package/locale/caES.d.ts +2 -0
- package/locale/caES.js +76 -0
- package/locale/csCZ.d.ts +2 -0
- package/locale/csCZ.js +87 -0
- package/locale/daDK.d.ts +2 -0
- package/locale/daDK.js +79 -0
- package/locale/deDE.d.ts +2 -0
- package/locale/deDE.js +79 -0
- package/locale/elGR.d.ts +2 -0
- package/locale/elGR.js +81 -0
- package/locale/enUS.d.ts +2 -0
- package/locale/enUS.js +67 -0
- package/locale/esES.d.ts +2 -0
- package/locale/esES.js +79 -0
- package/locale/etEE.d.ts +2 -0
- package/locale/etEE.js +79 -0
- package/locale/faIR.d.ts +2 -0
- package/locale/faIR.js +84 -0
- package/locale/fiFI.d.ts +2 -0
- package/locale/fiFI.js +79 -0
- package/locale/frFR.d.ts +2 -0
- package/locale/frFR.js +79 -0
- package/locale/heIL.d.ts +2 -0
- package/locale/heIL.js +79 -0
- package/locale/hiIN.d.ts +2 -0
- package/locale/hiIN.js +79 -0
- package/locale/hrHR.d.ts +2 -0
- package/locale/hrHR.js +87 -0
- package/locale/huHU.d.ts +2 -0
- package/locale/huHU.js +76 -0
- package/locale/hyAM.d.ts +2 -0
- package/locale/hyAM.js +76 -0
- package/locale/idID.d.ts +2 -0
- package/locale/idID.js +76 -0
- package/locale/index.d.ts +60 -82
- package/locale/index.js +660 -4328
- package/locale/isIS.d.ts +2 -0
- package/locale/isIS.js +79 -0
- package/locale/itIT.d.ts +2 -0
- package/locale/itIT.js +79 -0
- package/locale/jaJP.d.ts +2 -0
- package/locale/jaJP.js +79 -0
- package/locale/khKH.d.ts +2 -0
- package/locale/khKH.js +79 -0
- package/locale/kkKZ.d.ts +2 -0
- package/locale/kkKZ.js +82 -0
- package/locale/koKR.d.ts +2 -0
- package/locale/koKR.js +79 -0
- package/locale/kuCKB.d.ts +2 -0
- package/locale/kuCKB.js +79 -0
- package/locale/kuLatn.d.ts +2 -0
- package/locale/kuLatn.js +79 -0
- package/locale/mkMK.d.ts +2 -0
- package/locale/mkMK.js +83 -0
- package/locale/msMS.d.ts +2 -0
- package/locale/msMS.js +83 -0
- package/locale/myMY.d.ts +2 -0
- package/locale/myMY.js +83 -0
- package/locale/nbNO.d.ts +2 -0
- package/locale/nbNO.js +79 -0
- package/locale/neNP.d.ts +2 -0
- package/locale/neNP.js +83 -0
- package/locale/nlNL.d.ts +2 -0
- package/locale/nlNL.js +79 -0
- package/locale/nnNO.d.ts +2 -0
- package/locale/nnNO.js +79 -0
- package/locale/plPL.d.ts +2 -0
- package/locale/plPL.js +88 -0
- package/locale/psAF.d.ts +2 -0
- package/locale/psAF.js +79 -0
- package/locale/ptBR.d.ts +2 -0
- package/locale/ptBR.js +79 -0
- package/locale/ptPT.d.ts +2 -0
- package/locale/ptPT.js +79 -0
- package/locale/roRO.d.ts +2 -0
- package/locale/roRO.js +79 -0
- package/locale/ruRU.d.ts +2 -0
- package/locale/ruRU.js +91 -0
- package/locale/siLK.d.ts +2 -0
- package/locale/siLK.js +79 -0
- package/locale/skSK.d.ts +2 -0
- package/locale/skSK.js +87 -0
- package/locale/srRS.d.ts +2 -0
- package/locale/srRS.js +87 -0
- package/locale/svSE.d.ts +2 -0
- package/locale/svSE.js +79 -0
- package/locale/thTH.d.ts +2 -0
- package/locale/thTH.js +79 -0
- package/locale/tlTL.d.ts +2 -0
- package/locale/tlTL.js +80 -0
- package/locale/trTR.d.ts +2 -0
- package/locale/trTR.js +79 -0
- package/locale/ukUA.d.ts +2 -0
- package/locale/ukUA.js +88 -0
- package/locale/urPK.d.ts +2 -0
- package/locale/urPK.js +79 -0
- package/locale/utils/LocaleTextApi.d.ts +23 -0
- package/locale/utils/LocaleTextApi.js +5 -0
- package/locale/viVN.d.ts +2 -0
- package/locale/viVN.js +79 -0
- package/locale/zhCN.d.ts +2 -0
- package/locale/zhCN.js +57 -0
- package/locale/zhHK.d.ts +2 -0
- package/locale/zhHK.js +57 -0
- package/locale/zhTW.d.ts +2 -0
- package/locale/zhTW.js +57 -0
- package/package.json +8 -8
- package/styles/createColorScheme.js +2 -2
- package/styles/createTheme.d.ts +13 -5
- package/styles/createTheme.js +2 -2
- package/styles/createThemeFoundation.d.ts +277 -0
- package/styles/createThemeFoundation.js +5 -0
- package/styles/createThemeNoVars.d.ts +1 -1
- package/styles/createThemeWithVars.d.ts +23 -306
- package/useAutocomplete/useAutocomplete.js +2 -2
- package/version/index.js +2 -2
|
@@ -1,245 +1,10 @@
|
|
|
1
|
-
import { OverridableStringUnion } from '@mui/types';
|
|
2
|
-
import { SxConfig, SxProps, CSSObject, ApplyStyles } from '@mui/system';
|
|
3
|
-
import { ExtractTypographyTokens } from '@mui/system/cssVars';
|
|
4
1
|
import { ThemeOptions, Theme } from "./createThemeNoVars.js";
|
|
5
|
-
import { Palette, PaletteOptions } from "./createPalette.js";
|
|
6
|
-
import { Shadows } from "./shadows.js";
|
|
7
|
-
import { ZIndex } from "./zIndex.js";
|
|
8
2
|
import { Components } from "./components.js";
|
|
3
|
+
import { DefaultColorScheme, ColorSchemeOverrides, ExtendedColorScheme, SupportedColorScheme, Opacity, Overlays, PaletteBackgroundChannel, PaletteCommonChannel, PaletteColorChannel, PaletteActionChannel, PaletteTextChannel, PaletteAlert, PaletteAppBar, PaletteAvatar, PaletteButton, PaletteChip, PaletteFilledInput, PaletteLinearProgress, PaletteSkeleton, PaletteSlider, PaletteSnackbarContent, PaletteSpeedDialAction, PaletteStepConnector, PaletteStepContent, PaletteSwitch, PaletteTableCell, PaletteTooltip, ColorSystemOptions, CssVarsPalette, ColorSystem, ThemeVars, ThemeCssVarOverrides, ThemeCssVar, CssVarsTheme } from "./createThemeFoundation.js";
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
export type DefaultColorScheme = 'light' | 'dark';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* The application can add more color-scheme by extending this interface via module augmentation
|
|
17
|
-
*
|
|
18
|
-
* Ex.
|
|
19
|
-
* declare module @mui/material/styles {
|
|
20
|
-
* interface ColorSchemeOverrides {
|
|
21
|
-
* foo: true;
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
*
|
|
25
|
-
* // SupportedColorScheme = 'light' | 'dark' | 'foo';
|
|
26
|
-
*/
|
|
27
|
-
export interface ColorSchemeOverrides {}
|
|
28
|
-
export type ExtendedColorScheme = OverridableStringUnion<never, ColorSchemeOverrides>;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* All color-schemes that the application has
|
|
32
|
-
*/
|
|
33
|
-
export type SupportedColorScheme = DefaultColorScheme | ExtendedColorScheme;
|
|
34
|
-
export interface Opacity {
|
|
35
|
-
inputPlaceholder: number;
|
|
36
|
-
inputUnderline: number;
|
|
37
|
-
switchTrackDisabled: number;
|
|
38
|
-
switchTrack: number;
|
|
39
|
-
}
|
|
40
|
-
export type Overlays = [string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined, string | undefined];
|
|
41
|
-
export interface PaletteBackgroundChannel {
|
|
42
|
-
defaultChannel: string;
|
|
43
|
-
paperChannel: string;
|
|
44
|
-
}
|
|
45
|
-
export interface PaletteCommonChannel {
|
|
46
|
-
background: string;
|
|
47
|
-
backgroundChannel: string;
|
|
48
|
-
onBackground: string;
|
|
49
|
-
onBackgroundChannel: string;
|
|
50
|
-
}
|
|
51
|
-
export interface PaletteColorChannel {
|
|
52
|
-
mainChannel: string;
|
|
53
|
-
lightChannel: string;
|
|
54
|
-
darkChannel: string;
|
|
55
|
-
contrastTextChannel: string;
|
|
56
|
-
}
|
|
57
|
-
export interface PaletteActionChannel {
|
|
58
|
-
activeChannel: string;
|
|
59
|
-
selectedChannel: string;
|
|
60
|
-
}
|
|
61
|
-
export interface PaletteTextChannel {
|
|
62
|
-
primaryChannel: string;
|
|
63
|
-
secondaryChannel: string;
|
|
64
|
-
}
|
|
65
|
-
export interface PaletteAlert {
|
|
66
|
-
errorColor: string;
|
|
67
|
-
infoColor: string;
|
|
68
|
-
successColor: string;
|
|
69
|
-
warningColor: string;
|
|
70
|
-
errorFilledBg: string;
|
|
71
|
-
infoFilledBg: string;
|
|
72
|
-
successFilledBg: string;
|
|
73
|
-
warningFilledBg: string;
|
|
74
|
-
errorFilledColor: string;
|
|
75
|
-
infoFilledColor: string;
|
|
76
|
-
successFilledColor: string;
|
|
77
|
-
warningFilledColor: string;
|
|
78
|
-
errorStandardBg: string;
|
|
79
|
-
infoStandardBg: string;
|
|
80
|
-
successStandardBg: string;
|
|
81
|
-
warningStandardBg: string;
|
|
82
|
-
errorIconColor: string;
|
|
83
|
-
infoIconColor: string;
|
|
84
|
-
successIconColor: string;
|
|
85
|
-
warningIconColor: string;
|
|
86
|
-
}
|
|
87
|
-
export interface PaletteAppBar {
|
|
88
|
-
defaultBg: string;
|
|
89
|
-
darkBg: string;
|
|
90
|
-
darkColor: string;
|
|
91
|
-
}
|
|
92
|
-
export interface PaletteAvatar {
|
|
93
|
-
defaultBg: string;
|
|
94
|
-
}
|
|
95
|
-
export interface PaletteButton {
|
|
96
|
-
inheritContainedBg: string;
|
|
97
|
-
inheritContainedHoverBg: string;
|
|
98
|
-
}
|
|
99
|
-
export interface PaletteChip {
|
|
100
|
-
defaultBorder: string;
|
|
101
|
-
defaultAvatarColor: string;
|
|
102
|
-
defaultIconColor: string;
|
|
103
|
-
}
|
|
104
|
-
export interface PaletteFilledInput {
|
|
105
|
-
bg: string;
|
|
106
|
-
hoverBg: string;
|
|
107
|
-
disabledBg: string;
|
|
108
|
-
}
|
|
109
|
-
export interface PaletteLinearProgress {
|
|
110
|
-
primaryBg: string;
|
|
111
|
-
secondaryBg: string;
|
|
112
|
-
errorBg: string;
|
|
113
|
-
infoBg: string;
|
|
114
|
-
successBg: string;
|
|
115
|
-
warningBg: string;
|
|
116
|
-
}
|
|
117
|
-
export interface PaletteSkeleton {
|
|
118
|
-
bg: string;
|
|
119
|
-
}
|
|
120
|
-
export interface PaletteSlider {
|
|
121
|
-
primaryTrack: string;
|
|
122
|
-
secondaryTrack: string;
|
|
123
|
-
errorTrack: string;
|
|
124
|
-
infoTrack: string;
|
|
125
|
-
successTrack: string;
|
|
126
|
-
warningTrack: string;
|
|
127
|
-
}
|
|
128
|
-
export interface PaletteSnackbarContent {
|
|
129
|
-
bg: string;
|
|
130
|
-
color: string;
|
|
131
|
-
}
|
|
132
|
-
export interface PaletteSpeedDialAction {
|
|
133
|
-
fabHoverBg: string;
|
|
134
|
-
}
|
|
135
|
-
export interface PaletteStepConnector {
|
|
136
|
-
border: string;
|
|
137
|
-
}
|
|
138
|
-
export interface PaletteStepContent {
|
|
139
|
-
border: string;
|
|
140
|
-
}
|
|
141
|
-
export interface PaletteSwitch {
|
|
142
|
-
defaultColor: string;
|
|
143
|
-
defaultDisabledColor: string;
|
|
144
|
-
primaryDisabledColor: string;
|
|
145
|
-
secondaryDisabledColor: string;
|
|
146
|
-
errorDisabledColor: string;
|
|
147
|
-
infoDisabledColor: string;
|
|
148
|
-
successDisabledColor: string;
|
|
149
|
-
warningDisabledColor: string;
|
|
150
|
-
}
|
|
151
|
-
export interface PaletteTableCell {
|
|
152
|
-
border: string;
|
|
153
|
-
}
|
|
154
|
-
export interface PaletteTooltip {
|
|
155
|
-
bg: string;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// The Palette should be sync with `../themeCssVarsAugmentation/index.d.ts`
|
|
159
|
-
export interface ColorSystemOptions {
|
|
160
|
-
palette?: PaletteOptions & {
|
|
161
|
-
background?: Partial<PaletteBackgroundChannel>;
|
|
162
|
-
common?: Partial<PaletteCommonChannel>;
|
|
163
|
-
primary?: Partial<PaletteColorChannel>;
|
|
164
|
-
secondary?: Partial<PaletteColorChannel>;
|
|
165
|
-
error?: Partial<PaletteColorChannel>;
|
|
166
|
-
info?: Partial<PaletteColorChannel>;
|
|
167
|
-
success?: Partial<PaletteColorChannel>;
|
|
168
|
-
text?: Partial<PaletteTextChannel>;
|
|
169
|
-
dividerChannel?: Partial<string>;
|
|
170
|
-
action?: Partial<PaletteActionChannel>;
|
|
171
|
-
Alert?: Partial<PaletteAlert>;
|
|
172
|
-
AppBar?: Partial<PaletteAppBar>;
|
|
173
|
-
Avatar?: Partial<PaletteAvatar>;
|
|
174
|
-
Button?: Partial<PaletteButton>;
|
|
175
|
-
Chip?: Partial<PaletteChip>;
|
|
176
|
-
FilledInput?: Partial<PaletteFilledInput>;
|
|
177
|
-
LinearProgress?: Partial<PaletteLinearProgress>;
|
|
178
|
-
Skeleton?: Partial<PaletteSkeleton>;
|
|
179
|
-
Slider?: Partial<PaletteSlider>;
|
|
180
|
-
SnackbarContent?: Partial<PaletteSnackbarContent>;
|
|
181
|
-
SpeedDialAction?: Partial<PaletteSpeedDialAction>;
|
|
182
|
-
StepConnector?: Partial<PaletteStepConnector>;
|
|
183
|
-
StepContent?: Partial<PaletteStepContent>;
|
|
184
|
-
Switch?: Partial<PaletteSwitch>;
|
|
185
|
-
TableCell?: Partial<PaletteTableCell>;
|
|
186
|
-
Tooltip?: Partial<PaletteTooltip>;
|
|
187
|
-
};
|
|
188
|
-
opacity?: Partial<Opacity>;
|
|
189
|
-
overlays?: Overlays;
|
|
190
|
-
}
|
|
191
|
-
export interface CssVarsPalette {
|
|
192
|
-
common: PaletteCommonChannel;
|
|
193
|
-
primary: PaletteColorChannel;
|
|
194
|
-
secondary: PaletteColorChannel;
|
|
195
|
-
error: PaletteColorChannel;
|
|
196
|
-
info: PaletteColorChannel;
|
|
197
|
-
success: PaletteColorChannel;
|
|
198
|
-
warning: PaletteColorChannel;
|
|
199
|
-
text: PaletteTextChannel;
|
|
200
|
-
background: PaletteBackgroundChannel;
|
|
201
|
-
dividerChannel: string;
|
|
202
|
-
action: PaletteActionChannel;
|
|
203
|
-
Alert: PaletteAlert;
|
|
204
|
-
AppBar: PaletteAppBar;
|
|
205
|
-
Avatar: PaletteAvatar;
|
|
206
|
-
Button: PaletteButton;
|
|
207
|
-
Chip: PaletteChip;
|
|
208
|
-
FilledInput: PaletteFilledInput;
|
|
209
|
-
LinearProgress: PaletteLinearProgress;
|
|
210
|
-
Skeleton: PaletteSkeleton;
|
|
211
|
-
Slider: PaletteSlider;
|
|
212
|
-
SnackbarContent: PaletteSnackbarContent;
|
|
213
|
-
SpeedDialAction: PaletteSpeedDialAction;
|
|
214
|
-
StepConnector: PaletteStepConnector;
|
|
215
|
-
StepContent: PaletteStepContent;
|
|
216
|
-
Switch: PaletteSwitch;
|
|
217
|
-
TableCell: PaletteTableCell;
|
|
218
|
-
Tooltip: PaletteTooltip;
|
|
219
|
-
}
|
|
220
|
-
export interface ColorSystem {
|
|
221
|
-
palette: Palette & CssVarsPalette;
|
|
222
|
-
opacity: Opacity;
|
|
223
|
-
overlays: Overlays;
|
|
224
|
-
}
|
|
5
|
+
// Re-export all types from foundation to maintain backward compatibility
|
|
6
|
+
export type { DefaultColorScheme, ColorSchemeOverrides, ExtendedColorScheme, SupportedColorScheme, Opacity, Overlays, PaletteBackgroundChannel, PaletteCommonChannel, PaletteColorChannel, PaletteActionChannel, PaletteTextChannel, PaletteAlert, PaletteAppBar, PaletteAvatar, PaletteButton, PaletteChip, PaletteFilledInput, PaletteLinearProgress, PaletteSkeleton, PaletteSlider, PaletteSnackbarContent, PaletteSpeedDialAction, PaletteStepConnector, PaletteStepContent, PaletteSwitch, PaletteTableCell, PaletteTooltip, ColorSystemOptions, CssVarsPalette, ColorSystem, ThemeVars, ThemeCssVarOverrides, ThemeCssVar, CssVarsTheme };
|
|
225
7
|
export interface CssVarsThemeOptions extends Omit<ThemeOptions, 'palette' | 'components'> {
|
|
226
|
-
/**
|
|
227
|
-
* @default 'light'
|
|
228
|
-
*/
|
|
229
|
-
defaultColorScheme?: SupportedColorScheme;
|
|
230
|
-
/**
|
|
231
|
-
* Prefix of the generated CSS variables
|
|
232
|
-
* @default 'mui'
|
|
233
|
-
*/
|
|
234
|
-
cssVarPrefix?: string;
|
|
235
|
-
/**
|
|
236
|
-
* Theme components
|
|
237
|
-
*/
|
|
238
|
-
components?: Components<Omit<Theme, 'components' | 'palette'> & CssVarsTheme>;
|
|
239
|
-
/**
|
|
240
|
-
* Color schemes configuration
|
|
241
|
-
*/
|
|
242
|
-
colorSchemes?: Partial<Record<DefaultColorScheme, boolean | ColorSystemOptions>> & (ExtendedColorScheme extends string ? Record<ExtendedColorScheme, ColorSystemOptions> : {});
|
|
243
8
|
/**
|
|
244
9
|
* The strategy to generate CSS variables
|
|
245
10
|
*
|
|
@@ -254,12 +19,10 @@ export interface CssVarsThemeOptions extends Omit<ThemeOptions, 'palette' | 'com
|
|
|
254
19
|
*/
|
|
255
20
|
colorSchemeSelector?: 'media' | 'class' | 'data' | string;
|
|
256
21
|
/**
|
|
257
|
-
*
|
|
258
|
-
* @default '
|
|
259
|
-
* @example ':host' // (for shadow DOM)
|
|
260
|
-
* @see https://mui.com/material-ui/customization/shadow-dom/#3-css-theme-variables-optional
|
|
22
|
+
* Prefix of the generated CSS variables
|
|
23
|
+
* @default 'mui'
|
|
261
24
|
*/
|
|
262
|
-
|
|
25
|
+
cssVarPrefix?: string;
|
|
263
26
|
/**
|
|
264
27
|
* If `true`, the CSS color-scheme will not be set.
|
|
265
28
|
* https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
@@ -270,6 +33,13 @@ export interface CssVarsThemeOptions extends Omit<ThemeOptions, 'palette' | 'com
|
|
|
270
33
|
* If `true`, the CSS relative color will be used.
|
|
271
34
|
*/
|
|
272
35
|
nativeColor?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The selector to generate the global CSS variables (non-color-scheme related)
|
|
38
|
+
* @default ':root'
|
|
39
|
+
* @example ':host' // (for shadow DOM)
|
|
40
|
+
* @see https://mui.com/material-ui/customization/shadow-dom/#3-css-theme-variables-optional
|
|
41
|
+
*/
|
|
42
|
+
rootSelector?: string;
|
|
273
43
|
/**
|
|
274
44
|
* A function to determine if the key, value should be attached as CSS Variable
|
|
275
45
|
* `keys` is an array that represents the object path keys.
|
|
@@ -278,71 +48,18 @@ export interface CssVarsThemeOptions extends Omit<ThemeOptions, 'palette' | 'com
|
|
|
278
48
|
* value = 'var(--test)'
|
|
279
49
|
*/
|
|
280
50
|
shouldSkipGeneratingVar?: (keys: string[], value: string | number) => boolean;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// should not include keys defined in `shouldSkipGeneratingVar` and have value typeof function
|
|
284
|
-
export interface ThemeVars {
|
|
285
|
-
font: ExtractTypographyTokens<Theme['typography']>;
|
|
286
|
-
palette: Omit<ColorSystem['palette'], 'colorScheme' | 'mode' | 'contrastThreshold' | 'tonalOffset' | 'getContrastText' | 'augmentColor'>;
|
|
287
|
-
opacity: Opacity;
|
|
288
|
-
overlays: Overlays;
|
|
289
|
-
shadows: Shadows;
|
|
290
|
-
shape: Theme['shape'];
|
|
291
|
-
spacing: string;
|
|
292
|
-
zIndex: ZIndex;
|
|
293
|
-
}
|
|
294
|
-
type Split<T, K extends keyof T = keyof T> = K extends string | number ? { [k in K]: Exclude<T[K], undefined> } : never;
|
|
295
|
-
type ConcatDeep<T> = T extends Record<string | number, infer V> ? keyof T extends string | number ? V extends string | number ? keyof T : keyof V extends string | number ? `${keyof T}-${ConcatDeep<Split<V>>}` : never : never : never;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Does not work for these cases:
|
|
299
|
-
* - { borderRadius: string | number } // the value can't be a union
|
|
300
|
-
* - { shadows: [string, string, ..., string] } // the value can't be an array
|
|
301
|
-
*/
|
|
302
|
-
type NormalizeVars<T> = ConcatDeep<Split<T>>;
|
|
303
|
-
|
|
304
|
-
// shut off automatic exporting for the Generics above
|
|
305
|
-
export {};
|
|
306
|
-
export interface ThemeCssVarOverrides {}
|
|
307
|
-
export type ThemeCssVar = OverridableStringUnion<NormalizeVars<Omit<ThemeVars, 'overlays' | 'shadows' | 'shape'>> | 'shape-borderRadius' | 'shadows-0' | 'shadows-1' | 'shadows-2' | 'shadows-3' | 'shadows-4' | 'shadows-5' | 'shadows-6' | 'shadows-7' | 'shadows-8' | 'shadows-9' | 'shadows-10' | 'shadows-11' | 'shadows-12' | 'shadows-13' | 'shadows-14' | 'shadows-15' | 'shadows-16' | 'shadows-17' | 'shadows-18' | 'shadows-19' | 'shadows-20' | 'shadows-21' | 'shadows-22' | 'shadows-23' | 'shadows-24' | 'overlays-0' | 'overlays-1' | 'overlays-2' | 'overlays-3' | 'overlays-4' | 'overlays-5' | 'overlays-6' | 'overlays-7' | 'overlays-8' | 'overlays-9' | 'overlays-10' | 'overlays-11' | 'overlays-12' | 'overlays-13' | 'overlays-14' | 'overlays-15' | 'overlays-16' | 'overlays-17' | 'overlays-18' | 'overlays-19' | 'overlays-20' | 'overlays-21' | 'overlays-22' | 'overlays-23' | 'overlays-24', ThemeCssVarOverrides>;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Theme properties generated by extendTheme and CssVarsProvider
|
|
311
|
-
*/
|
|
312
|
-
export interface CssVarsTheme extends ColorSystem {
|
|
313
|
-
colorSchemes: Partial<Record<SupportedColorScheme, ColorSystem>>;
|
|
314
|
-
rootSelector: string;
|
|
315
|
-
colorSchemeSelector: 'media' | 'class' | 'data' | string;
|
|
316
|
-
cssVarPrefix: string;
|
|
317
|
-
defaultColorScheme: SupportedColorScheme;
|
|
318
|
-
vars: ThemeVars;
|
|
319
|
-
getCssVar: (field: ThemeCssVar, ...vars: ThemeCssVar[]) => string;
|
|
320
|
-
getColorSchemeSelector: (colorScheme: SupportedColorScheme) => string;
|
|
321
|
-
generateThemeVars: () => ThemeVars;
|
|
322
|
-
generateStyleSheets: () => Array<Record<string, any>>;
|
|
323
|
-
generateSpacing: () => Theme['spacing'];
|
|
324
|
-
|
|
325
|
-
// Default theme tokens
|
|
326
|
-
spacing: Theme['spacing'];
|
|
327
|
-
breakpoints: Theme['breakpoints'];
|
|
328
|
-
shape: Theme['shape'];
|
|
329
|
-
typography: Theme['typography'];
|
|
330
|
-
transitions: Theme['transitions'];
|
|
331
|
-
shadows: Theme['shadows'];
|
|
332
|
-
mixins: Theme['mixins'];
|
|
333
|
-
zIndex: Theme['zIndex'];
|
|
334
|
-
direction: Theme['direction'];
|
|
335
51
|
/**
|
|
336
|
-
*
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
*
|
|
52
|
+
* @default 'light'
|
|
53
|
+
*/
|
|
54
|
+
defaultColorScheme?: SupportedColorScheme;
|
|
55
|
+
/**
|
|
56
|
+
* Theme components
|
|
341
57
|
*/
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
58
|
+
components?: Components<Omit<Theme, 'components' | 'palette'> & CssVarsTheme>;
|
|
59
|
+
/**
|
|
60
|
+
* Color schemes configuration
|
|
61
|
+
*/
|
|
62
|
+
colorSchemes?: Partial<Record<DefaultColorScheme, boolean | ColorSystemOptions>> & (ExtendedColorScheme extends string ? Record<ExtendedColorScheme, ColorSystemOptions> : {});
|
|
346
63
|
}
|
|
347
64
|
|
|
348
65
|
/**
|
|
@@ -486,10 +486,10 @@ function useAutocomplete(props) {
|
|
|
486
486
|
}, [componentName]);
|
|
487
487
|
}
|
|
488
488
|
React.useEffect(() => {
|
|
489
|
-
if (filteredOptionsChanged) {
|
|
489
|
+
if (filteredOptionsChanged || popupOpen) {
|
|
490
490
|
syncHighlightedIndex();
|
|
491
491
|
}
|
|
492
|
-
}, [syncHighlightedIndex, filteredOptionsChanged]);
|
|
492
|
+
}, [syncHighlightedIndex, filteredOptionsChanged, popupOpen]);
|
|
493
493
|
const handleOpen = event => {
|
|
494
494
|
if (open) {
|
|
495
495
|
return;
|
package/esm/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "7.3.
|
|
1
|
+
export const version = "7.3.4";
|
|
2
2
|
export const major = Number("7");
|
|
3
3
|
export const minor = Number("3");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("4");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
package/index.js
CHANGED
package/locale/amET.d.ts
ADDED
package/locale/amET.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.amET = void 0;
|
|
7
|
+
const amET = exports.amET = {
|
|
8
|
+
components: {
|
|
9
|
+
MuiBreadcrumbs: {
|
|
10
|
+
defaultProps: {
|
|
11
|
+
expandText: 'መንገድ አሳይ'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
MuiTablePagination: {
|
|
15
|
+
defaultProps: {
|
|
16
|
+
getItemAriaLabel: type => {
|
|
17
|
+
if (type === 'first') {
|
|
18
|
+
return 'ወደ መጀመሪያው ገጽ ይሂዱ';
|
|
19
|
+
}
|
|
20
|
+
if (type === 'last') {
|
|
21
|
+
return 'ወደ መጨረሻው ገጽ ይሂዱ';
|
|
22
|
+
}
|
|
23
|
+
if (type === 'next') {
|
|
24
|
+
return 'ወደ ቀጣዩ ገጽ ይሂዱ';
|
|
25
|
+
}
|
|
26
|
+
// if (type === 'previous') {
|
|
27
|
+
return 'ወደ ቀዳሚው ገጽ ይሂዱ';
|
|
28
|
+
},
|
|
29
|
+
labelRowsPerPage: 'ረድፎች በአንድ ገጽ:',
|
|
30
|
+
labelDisplayedRows: ({
|
|
31
|
+
from,
|
|
32
|
+
to,
|
|
33
|
+
count
|
|
34
|
+
}) => `${from}-${to} ከ ${count !== -1 ? count : `${to} በላይ`}`
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
MuiRating: {
|
|
38
|
+
defaultProps: {
|
|
39
|
+
getLabelText: value => `${value} ኮከ${value !== 1 ? 'ቦች' : 'ብ'}`,
|
|
40
|
+
emptyLabelText: 'ባዶ'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
MuiAutocomplete: {
|
|
44
|
+
defaultProps: {
|
|
45
|
+
clearText: 'አጽዳ',
|
|
46
|
+
closeText: 'ዝጋ',
|
|
47
|
+
loadingText: 'በመጫን ላይ…',
|
|
48
|
+
noOptionsText: 'አማራጮች የሉም',
|
|
49
|
+
openText: 'ክፈት'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
MuiAlert: {
|
|
53
|
+
defaultProps: {
|
|
54
|
+
closeText: 'ዝጋ'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
MuiPagination: {
|
|
58
|
+
defaultProps: {
|
|
59
|
+
'aria-label': 'የገጽ አሰሳ',
|
|
60
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
61
|
+
if (type === 'page') {
|
|
62
|
+
return `${selected ? '' : 'ወደ '}ገጽ ${page}${selected ? '' : ' ሂድ'}`;
|
|
63
|
+
}
|
|
64
|
+
if (type === 'first') {
|
|
65
|
+
return 'ወደ መጀመሪያው ገጽ ይሂዱ';
|
|
66
|
+
}
|
|
67
|
+
if (type === 'last') {
|
|
68
|
+
return 'ወደ መጨረሻው ገጽ ይሂዱ';
|
|
69
|
+
}
|
|
70
|
+
if (type === 'next') {
|
|
71
|
+
return 'ወደ ቀጣዩ ገጽ ይሂዱ';
|
|
72
|
+
}
|
|
73
|
+
// if (type === 'previous') {
|
|
74
|
+
return 'ወደ ቀዳሚው ገጽ ይሂዱ';
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
package/locale/arEG.d.ts
ADDED
package/locale/arEG.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.arEG = void 0;
|
|
7
|
+
const arEG = exports.arEG = {
|
|
8
|
+
components: {
|
|
9
|
+
MuiBreadcrumbs: {
|
|
10
|
+
defaultProps: {
|
|
11
|
+
expandText: 'إظهار المسار'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
MuiTablePagination: {
|
|
15
|
+
defaultProps: {
|
|
16
|
+
getItemAriaLabel: type => {
|
|
17
|
+
if (type === 'first') {
|
|
18
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
19
|
+
}
|
|
20
|
+
if (type === 'last') {
|
|
21
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
22
|
+
}
|
|
23
|
+
if (type === 'next') {
|
|
24
|
+
return 'انتقل إلى الصفحة التالية';
|
|
25
|
+
}
|
|
26
|
+
// if (type === 'previous') {
|
|
27
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
28
|
+
},
|
|
29
|
+
labelRowsPerPage: 'عدد الصفوف في الصفحة:',
|
|
30
|
+
labelDisplayedRows: ({
|
|
31
|
+
from,
|
|
32
|
+
to,
|
|
33
|
+
count
|
|
34
|
+
}) => `${from}–${to} من ${count !== -1 ? count : ` أكثر من${to}`}`
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
MuiRating: {
|
|
38
|
+
defaultProps: {
|
|
39
|
+
getLabelText: value => `${value} ${value !== 1 ? 'نجوم' : 'نجمة'}`,
|
|
40
|
+
emptyLabelText: 'فارغ'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
MuiAutocomplete: {
|
|
44
|
+
defaultProps: {
|
|
45
|
+
clearText: 'مسح',
|
|
46
|
+
closeText: 'إغلاق',
|
|
47
|
+
loadingText: 'جار التحميل...',
|
|
48
|
+
noOptionsText: 'لا يوجد خيارات',
|
|
49
|
+
openText: 'فتح'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
MuiAlert: {
|
|
53
|
+
defaultProps: {
|
|
54
|
+
closeText: 'إغلاق'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
MuiPagination: {
|
|
58
|
+
defaultProps: {
|
|
59
|
+
'aria-label': 'التنقل عبر الصفحات',
|
|
60
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
61
|
+
if (type === 'page') {
|
|
62
|
+
return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
|
|
63
|
+
}
|
|
64
|
+
if (type === 'first') {
|
|
65
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
66
|
+
}
|
|
67
|
+
if (type === 'last') {
|
|
68
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
69
|
+
}
|
|
70
|
+
if (type === 'next') {
|
|
71
|
+
return 'انتقل إلى الصفحة التالية';
|
|
72
|
+
}
|
|
73
|
+
// if (type === 'previous') {
|
|
74
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
package/locale/arSA.d.ts
ADDED
package/locale/arSA.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.arSA = void 0;
|
|
7
|
+
const arSA = exports.arSA = {
|
|
8
|
+
components: {
|
|
9
|
+
MuiBreadcrumbs: {
|
|
10
|
+
defaultProps: {
|
|
11
|
+
expandText: 'إظهار المسار'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
MuiTablePagination: {
|
|
15
|
+
defaultProps: {
|
|
16
|
+
getItemAriaLabel: type => {
|
|
17
|
+
if (type === 'first') {
|
|
18
|
+
return 'الانتقال إلى الصفحة الأولى';
|
|
19
|
+
}
|
|
20
|
+
if (type === 'last') {
|
|
21
|
+
return 'الانتقال إلى الصفحة الأخيرة';
|
|
22
|
+
}
|
|
23
|
+
if (type === 'next') {
|
|
24
|
+
return 'الانتقال إلى الصفحة التالية';
|
|
25
|
+
}
|
|
26
|
+
// if (type === 'previous') {
|
|
27
|
+
return 'الانتقال إلى الصفحة السابقة';
|
|
28
|
+
},
|
|
29
|
+
labelRowsPerPage: 'عدد الصفوف في الصفحة:',
|
|
30
|
+
labelDisplayedRows: ({
|
|
31
|
+
from,
|
|
32
|
+
to,
|
|
33
|
+
count
|
|
34
|
+
}) => `${from}–${to} من ${count !== -1 ? count : ` أكثر من${to}`}`
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
MuiRating: {
|
|
38
|
+
defaultProps: {
|
|
39
|
+
getLabelText: value => `${value} ${value !== 1 ? 'نجوم' : 'نجمة'}`,
|
|
40
|
+
emptyLabelText: 'فارغ'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
MuiAutocomplete: {
|
|
44
|
+
defaultProps: {
|
|
45
|
+
clearText: 'مسح',
|
|
46
|
+
closeText: 'إغلاق',
|
|
47
|
+
loadingText: 'جار التحميل...',
|
|
48
|
+
noOptionsText: 'لا توجد خيارات',
|
|
49
|
+
openText: 'فتح'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
MuiAlert: {
|
|
53
|
+
defaultProps: {
|
|
54
|
+
closeText: 'إغلاق'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
MuiPagination: {
|
|
58
|
+
defaultProps: {
|
|
59
|
+
'aria-label': 'التنقل عبر الصفحات',
|
|
60
|
+
getItemAriaLabel: (type, page, selected) => {
|
|
61
|
+
if (type === 'page') {
|
|
62
|
+
return `${selected ? '' : 'الانتقال إلى '} صفحة ${page}`;
|
|
63
|
+
}
|
|
64
|
+
if (type === 'first') {
|
|
65
|
+
return 'الانتقال إلى الصفحة الأولى';
|
|
66
|
+
}
|
|
67
|
+
if (type === 'last') {
|
|
68
|
+
return 'الانتقال الي الصفحة الأخيرة';
|
|
69
|
+
}
|
|
70
|
+
if (type === 'next') {
|
|
71
|
+
return 'الانتقال إلى الصفحة التالية';
|
|
72
|
+
}
|
|
73
|
+
// if (type === 'previous') {
|
|
74
|
+
return 'الانتقال إلى الصفحة السابقة';
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
package/locale/arSD.d.ts
ADDED