@am92/react-design-system 2.5.5 → 2.5.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/dist/Components/DsIcon/DsIcon.Types.d.ts +2 -2
- package/dist/Components/DsIconButton/DsIconButton.Types.d.ts +2 -2
- package/dist/Components/DsImage/DsImage.Types.d.ts +1 -1
- package/dist/Components/DsLoader/DsLoader.Component.js +0 -1
- package/dist/Components/DsSlider/DsSlider.Overrides.d.ts +1 -1
- package/dist/Components/DsSlider/DsSlider.Overrides.js +1 -1
- package/dist/Components/DsSvgIcon/DsSvgIcon.Types.d.ts +2 -2
- package/dist/Components/index.d.ts +0 -1
- package/dist/Components/index.js +0 -1
- package/dist/Theme/componentOverrides.d.ts +287 -220
- package/dist/Theme/componentOverrides.js +4 -3
- package/dist/Theme/index.d.ts +1 -1
- package/dist/Theme/index.js +2 -2
- package/dist/Types/DsColor.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/locale.d.ts +59 -1
- package/dist/locale.js +58 -1
- package/dist/x-charts/Components/index.d.ts +34 -0
- package/dist/x-charts/Components/index.js +34 -0
- package/dist/x-charts/Constants/DATA_VIS_PALETTE.d.ts +2 -0
- package/dist/x-charts/Constants/DATA_VIS_PALETTE.js +51 -0
- package/dist/x-charts/Constants/index.d.ts +1 -0
- package/dist/x-charts/Constants/index.js +1 -0
- package/dist/x-charts/Types/DsDataVisColor.d.ts +7 -0
- package/dist/x-charts/Types/DsDataVisColor.js +1 -0
- package/dist/x-charts/Types/DsDataVisPalette.d.ts +6 -0
- package/dist/x-charts/Types/DsDataVisPalette.js +1 -0
- package/dist/x-charts/Types/index.d.ts +1 -0
- package/dist/x-charts/Types/index.js +1 -0
- package/dist/x-charts/componentOverrides.d.ts +105 -0
- package/dist/x-charts/componentOverrides.js +115 -0
- package/dist/x-charts/index.d.ts +3 -0
- package/dist/x-charts/index.js +3 -0
- package/dist/x-datepicker/Components/DsDatePicker/DateCalenderHeader.d.ts +3 -0
- package/dist/x-datepicker/Components/DsDatePicker/DateCalenderHeader.js +27 -0
- package/dist/{Components → x-datepicker/Components}/DsDatePicker/DatePickerTextField.d.ts +4 -4
- package/dist/x-datepicker/Components/DsDatePicker/DatePickerTextField.js +13 -0
- package/dist/x-datepicker/Components/DsDatePicker/DefaultActionBar.d.ts +7 -0
- package/dist/x-datepicker/Components/DsDatePicker/DefaultActionBar.js +27 -0
- package/dist/x-datepicker/Components/DsDatePicker/DefaultToolbar.d.ts +5 -0
- package/dist/x-datepicker/Components/DsDatePicker/DefaultToolbar.js +25 -0
- package/dist/x-datepicker/Components/DsDatePicker/DsDatePicker.Component.d.ts +3 -0
- package/dist/x-datepicker/Components/DsDatePicker/DsDatePicker.Component.js +97 -0
- package/dist/{Components → x-datepicker/Components}/DsDatePicker/DsDatePicker.Overrides.d.ts +67 -0
- package/dist/{Components → x-datepicker/Components}/DsDatePicker/DsDatePicker.Overrides.js +8 -0
- package/dist/x-datepicker/Components/DsDatePicker/DsDatePicker.Types.d.ts +17 -0
- package/dist/{Components → x-datepicker/Components}/DsDatePicker/DsDatePicker.Types.js +2 -5
- package/dist/x-datepicker/Components/index.d.ts +1 -0
- package/dist/x-datepicker/Components/index.js +1 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleBeBY.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleBeBY.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleCaES.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleCaES.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleCsCZ.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleCsCZ.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleDaDK.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleDaDK.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleDeDE.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleDeDE.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleElGR.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleElGR.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleEnUS.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleEnUS.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleEsES.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleEsES.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleEu.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleEu.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleFaIR.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleFaIR.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleFiFI.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleFiFI.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleFrFR.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleFrFR.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleHeIL.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleHeIL.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleHuHU.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleHuHU.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleIsIS.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleIsIS.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleItIT.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleItIT.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleJaJP.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleJaJP.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleKoKR.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleKoKR.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleKzKZ.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleKzKZ.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleMk.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleMk.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleNbNO.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleNbNO.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleNlNL.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleNlNL.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocalePlPL.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocalePlPL.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocalePtBR.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocalePtBR.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleRoRO.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleRoRO.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleRuRU.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleRuRU.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleSkSK.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleSkSK.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleSvSE.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleSvSE.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleTrTR.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleTrTR.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleUkUA.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleUkUA.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleUrPK.d.ts +66 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleUrPK.js +13 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleViVN.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleViVN.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleZhCN.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleZhCN.js +15 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleZhHK.d.ts +68 -0
- package/dist/x-datepicker/Locale/DsDatePickerLocaleZhHK.js +15 -0
- package/dist/x-datepicker/Locale/index.d.ts +35 -0
- package/dist/x-datepicker/Locale/index.js +34 -0
- package/dist/x-datepicker/componentOverrides.d.ts +289 -0
- package/dist/x-datepicker/componentOverrides.js +5 -0
- package/dist/x-datepicker/index.d.ts +2 -0
- package/dist/x-datepicker/index.js +2 -0
- package/package.json +1 -1
- package/dist/Components/DsDatePicker/DateCalenderHeader.d.ts +0 -7
- package/dist/Components/DsDatePicker/DateCalenderHeader.js +0 -26
- package/dist/Components/DsDatePicker/DatePickerTextField.js +0 -8
- package/dist/Components/DsDatePicker/DefaultActionBar.d.ts +0 -7
- package/dist/Components/DsDatePicker/DefaultActionBar.js +0 -28
- package/dist/Components/DsDatePicker/DefaultToolbar.d.ts +0 -7
- package/dist/Components/DsDatePicker/DefaultToolbar.js +0 -29
- package/dist/Components/DsDatePicker/DsDatePicker.Component.d.ts +0 -16
- package/dist/Components/DsDatePicker/DsDatePicker.Component.js +0 -94
- package/dist/Components/DsDatePicker/DsDatePicker.Types.d.ts +0 -20
- /package/dist/{Components → x-datepicker/Components}/DsDatePicker/index.d.ts +0 -0
- /package/dist/{Components → x-datepicker/Components}/DsDatePicker/index.js +0 -0
- /package/dist/{Components → x-datepicker/Components}/DsDatePicker/utils.d.ts +0 -0
- /package/dist/{Components → x-datepicker/Components}/DsDatePicker/utils.js +0 -0
package/dist/Types/DsColor.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface DsColorClassGenerics<T> extends Partial<Record<DsColorClassTokens, T>>
|
|
|
6
6
|
}
|
|
7
7
|
export interface DsColor extends DsColorGenerics<string> {
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface DsColorOverrides extends DsColorGenerics<true> {
|
|
10
10
|
}
|
|
11
11
|
export interface DsColorClass extends DsColorClassGenerics<string> {
|
|
12
12
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/locale.d.ts
CHANGED
|
@@ -1 +1,59 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Localization as DsCoreLocalization } from '@mui/material/locale';
|
|
2
|
+
export { amET as DsLocaleAmET } from '@mui/material/locale';
|
|
3
|
+
export { arEG as DsLocaleArEG } from '@mui/material/locale';
|
|
4
|
+
export { arSA as DsLocaleArSA } from '@mui/material/locale';
|
|
5
|
+
export { arSD as DsLocaleArSD } from '@mui/material/locale';
|
|
6
|
+
export { azAZ as DsLocaleAzAZ } from '@mui/material/locale';
|
|
7
|
+
export { bnBD as DsLocaleBnBD } from '@mui/material/locale';
|
|
8
|
+
export { beBY as DsLocaleBeBY } from '@mui/material/locale';
|
|
9
|
+
export { bgBG as DsLocaleBgBG } from '@mui/material/locale';
|
|
10
|
+
export { caES as DsLocaleCaES } from '@mui/material/locale';
|
|
11
|
+
export { csCZ as DsLocaleCsCZ } from '@mui/material/locale';
|
|
12
|
+
export { daDK as DsLocaleDaDK } from '@mui/material/locale';
|
|
13
|
+
export { deDE as DsLocaleDeDE } from '@mui/material/locale';
|
|
14
|
+
export { elGR as DsLocaleElGR } from '@mui/material/locale';
|
|
15
|
+
export { enUS as DsLocaleEnUS } from '@mui/material/locale';
|
|
16
|
+
export { esES as DsLocaleEsES } from '@mui/material/locale';
|
|
17
|
+
export { etEE as DsLocaleEtEE } from '@mui/material/locale';
|
|
18
|
+
export { faIR as DsLocaleFaIR } from '@mui/material/locale';
|
|
19
|
+
export { fiFI as DsLocaleFiFI } from '@mui/material/locale';
|
|
20
|
+
export { frFR as DsLocaleFrFR } from '@mui/material/locale';
|
|
21
|
+
export { heIL as DsLocaleHeIL } from '@mui/material/locale';
|
|
22
|
+
export { hiIN as DsLocaleHiIN } from '@mui/material/locale';
|
|
23
|
+
export { hrHR as DsLocaleHrHR } from '@mui/material/locale';
|
|
24
|
+
export { huHU as DsLocaleHuHU } from '@mui/material/locale';
|
|
25
|
+
export { hyAM as DsLocaleHyAM } from '@mui/material/locale';
|
|
26
|
+
export { idID as DsLocaleIdID } from '@mui/material/locale';
|
|
27
|
+
export { isIS as DsLocaleIsIS } from '@mui/material/locale';
|
|
28
|
+
export { itIT as DsLocaleItIT } from '@mui/material/locale';
|
|
29
|
+
export { jaJP as DsLocaleJaJP } from '@mui/material/locale';
|
|
30
|
+
export { khKH as DsLocaleKhKH } from '@mui/material/locale';
|
|
31
|
+
export { koKR as DsLocaleKoKR } from '@mui/material/locale';
|
|
32
|
+
export { kuCKB as DsLocaleKuCKB } from '@mui/material/locale';
|
|
33
|
+
export { kuLatn as DsLocaleKuLatn } from '@mui/material/locale';
|
|
34
|
+
export { kkKZ as DsLocaleKkKZ } from '@mui/material/locale';
|
|
35
|
+
export { mkMK as DsLocaleMkMK } from '@mui/material/locale';
|
|
36
|
+
export { myMY as DsLocaleMyMY } from '@mui/material/locale';
|
|
37
|
+
export { msMS as DsLocaleMsMS } from '@mui/material/locale';
|
|
38
|
+
export { neNP as DsLocaleNeNP } from '@mui/material/locale';
|
|
39
|
+
export { nbNO as DsLocaleNbNO } from '@mui/material/locale';
|
|
40
|
+
export { nnNO as DsLocaleNnNO } from '@mui/material/locale';
|
|
41
|
+
export { nlNL as DsLocaleNlNL } from '@mui/material/locale';
|
|
42
|
+
export { plPL as DsLocalePlPL } from '@mui/material/locale';
|
|
43
|
+
export { ptBR as DsLocalePtBR } from '@mui/material/locale';
|
|
44
|
+
export { ptPT as DsLocalePtPT } from '@mui/material/locale';
|
|
45
|
+
export { roRO as DsLocaleRoRO } from '@mui/material/locale';
|
|
46
|
+
export { srRS as DsLocaleSrRS } from '@mui/material/locale';
|
|
47
|
+
export { ruRU as DsLocaleRuRU } from '@mui/material/locale';
|
|
48
|
+
export { siLK as DsLocaleSiLK } from '@mui/material/locale';
|
|
49
|
+
export { skSK as DsLocaleSkSK } from '@mui/material/locale';
|
|
50
|
+
export { svSE as DsLocaleSvSE } from '@mui/material/locale';
|
|
51
|
+
export { thTH as DsLocaleThTH } from '@mui/material/locale';
|
|
52
|
+
export { trTR as DsLocaleTrTR } from '@mui/material/locale';
|
|
53
|
+
export { tlTL as DsLocaleTlTL } from '@mui/material/locale';
|
|
54
|
+
export { ukUA as DsLocaleUkUA } from '@mui/material/locale';
|
|
55
|
+
export { urPK as DsLocaleUrPK } from '@mui/material/locale';
|
|
56
|
+
export { viVN as DsLocaleViVN } from '@mui/material/locale';
|
|
57
|
+
export { zhCN as DsLocaleZhCN } from '@mui/material/locale';
|
|
58
|
+
export { zhHK as DsLocaleZhHK } from '@mui/material/locale';
|
|
59
|
+
export { zhTW as DsLocaleZhTW } from '@mui/material/locale';
|
package/dist/locale.js
CHANGED
|
@@ -1 +1,58 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { amET as DsLocaleAmET } from '@mui/material/locale';
|
|
2
|
+
export { arEG as DsLocaleArEG } from '@mui/material/locale';
|
|
3
|
+
export { arSA as DsLocaleArSA } from '@mui/material/locale';
|
|
4
|
+
export { arSD as DsLocaleArSD } from '@mui/material/locale';
|
|
5
|
+
export { azAZ as DsLocaleAzAZ } from '@mui/material/locale';
|
|
6
|
+
export { bnBD as DsLocaleBnBD } from '@mui/material/locale';
|
|
7
|
+
export { beBY as DsLocaleBeBY } from '@mui/material/locale';
|
|
8
|
+
export { bgBG as DsLocaleBgBG } from '@mui/material/locale';
|
|
9
|
+
export { caES as DsLocaleCaES } from '@mui/material/locale';
|
|
10
|
+
export { csCZ as DsLocaleCsCZ } from '@mui/material/locale';
|
|
11
|
+
export { daDK as DsLocaleDaDK } from '@mui/material/locale';
|
|
12
|
+
export { deDE as DsLocaleDeDE } from '@mui/material/locale';
|
|
13
|
+
export { elGR as DsLocaleElGR } from '@mui/material/locale';
|
|
14
|
+
export { enUS as DsLocaleEnUS } from '@mui/material/locale';
|
|
15
|
+
export { esES as DsLocaleEsES } from '@mui/material/locale';
|
|
16
|
+
export { etEE as DsLocaleEtEE } from '@mui/material/locale';
|
|
17
|
+
export { faIR as DsLocaleFaIR } from '@mui/material/locale';
|
|
18
|
+
export { fiFI as DsLocaleFiFI } from '@mui/material/locale';
|
|
19
|
+
export { frFR as DsLocaleFrFR } from '@mui/material/locale';
|
|
20
|
+
export { heIL as DsLocaleHeIL } from '@mui/material/locale';
|
|
21
|
+
export { hiIN as DsLocaleHiIN } from '@mui/material/locale';
|
|
22
|
+
export { hrHR as DsLocaleHrHR } from '@mui/material/locale';
|
|
23
|
+
export { huHU as DsLocaleHuHU } from '@mui/material/locale';
|
|
24
|
+
export { hyAM as DsLocaleHyAM } from '@mui/material/locale';
|
|
25
|
+
export { idID as DsLocaleIdID } from '@mui/material/locale';
|
|
26
|
+
export { isIS as DsLocaleIsIS } from '@mui/material/locale';
|
|
27
|
+
export { itIT as DsLocaleItIT } from '@mui/material/locale';
|
|
28
|
+
export { jaJP as DsLocaleJaJP } from '@mui/material/locale';
|
|
29
|
+
export { khKH as DsLocaleKhKH } from '@mui/material/locale';
|
|
30
|
+
export { koKR as DsLocaleKoKR } from '@mui/material/locale';
|
|
31
|
+
export { kuCKB as DsLocaleKuCKB } from '@mui/material/locale';
|
|
32
|
+
export { kuLatn as DsLocaleKuLatn } from '@mui/material/locale';
|
|
33
|
+
export { kkKZ as DsLocaleKkKZ } from '@mui/material/locale';
|
|
34
|
+
export { mkMK as DsLocaleMkMK } from '@mui/material/locale';
|
|
35
|
+
export { myMY as DsLocaleMyMY } from '@mui/material/locale';
|
|
36
|
+
export { msMS as DsLocaleMsMS } from '@mui/material/locale';
|
|
37
|
+
export { neNP as DsLocaleNeNP } from '@mui/material/locale';
|
|
38
|
+
export { nbNO as DsLocaleNbNO } from '@mui/material/locale';
|
|
39
|
+
export { nnNO as DsLocaleNnNO } from '@mui/material/locale';
|
|
40
|
+
export { nlNL as DsLocaleNlNL } from '@mui/material/locale';
|
|
41
|
+
export { plPL as DsLocalePlPL } from '@mui/material/locale';
|
|
42
|
+
export { ptBR as DsLocalePtBR } from '@mui/material/locale';
|
|
43
|
+
export { ptPT as DsLocalePtPT } from '@mui/material/locale';
|
|
44
|
+
export { roRO as DsLocaleRoRO } from '@mui/material/locale';
|
|
45
|
+
export { srRS as DsLocaleSrRS } from '@mui/material/locale';
|
|
46
|
+
export { ruRU as DsLocaleRuRU } from '@mui/material/locale';
|
|
47
|
+
export { siLK as DsLocaleSiLK } from '@mui/material/locale';
|
|
48
|
+
export { skSK as DsLocaleSkSK } from '@mui/material/locale';
|
|
49
|
+
export { svSE as DsLocaleSvSE } from '@mui/material/locale';
|
|
50
|
+
export { thTH as DsLocaleThTH } from '@mui/material/locale';
|
|
51
|
+
export { trTR as DsLocaleTrTR } from '@mui/material/locale';
|
|
52
|
+
export { tlTL as DsLocaleTlTL } from '@mui/material/locale';
|
|
53
|
+
export { ukUA as DsLocaleUkUA } from '@mui/material/locale';
|
|
54
|
+
export { urPK as DsLocaleUrPK } from '@mui/material/locale';
|
|
55
|
+
export { viVN as DsLocaleViVN } from '@mui/material/locale';
|
|
56
|
+
export { zhCN as DsLocaleZhCN } from '@mui/material/locale';
|
|
57
|
+
export { zhHK as DsLocaleZhHK } from '@mui/material/locale';
|
|
58
|
+
export { zhTW as DsLocaleZhTW } from '@mui/material/locale';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { AreaElement as DsAreaElement, AreaElementProps as DsAreaElementProps } from '@mui/x-charts';
|
|
2
|
+
export { AreaPlot as DsAreaPlot, AreaPlotProps as DsAreaPlotProps } from '@mui/x-charts';
|
|
3
|
+
export { BarChart as DsBarChart, BarChartProps as DsBarChartProps } from '@mui/x-charts';
|
|
4
|
+
export { BarElement as DsBarElement, BarElementProps as DsBarElementProps } from '@mui/x-charts';
|
|
5
|
+
export { BarPlot as DsBarPlot, BarPlotProps as DsBarPlotProps } from '@mui/x-charts';
|
|
6
|
+
export { ChartsAxis as DsChartsAxis, ChartsAxisProps as DsChartsAxisProps } from '@mui/x-charts';
|
|
7
|
+
export { ChartsAxisHighlight as DsChartsAxisHighlight, ChartsAxisHighlightProps as DsChartsAxisHighlightProps } from '@mui/x-charts';
|
|
8
|
+
export { ChartsAxisTooltipContent as DsChartsAxisTooltipContent, ChartsAxisContentProps as DsChartsAxisContentProps } from '@mui/x-charts';
|
|
9
|
+
export { ChartsClipPath as DsChartsClipPath, ChartsClipPathProps as DsChartsClipPathProps } from '@mui/x-charts';
|
|
10
|
+
export { ChartsItemTooltipContent as DsChartsItemTooltipContent, ChartsItemContentProps as DsChartsItemContentProps } from '@mui/x-charts';
|
|
11
|
+
export { ChartsLegend as DsChartsLegend, ChartsLegendProps as DsChartsLegendProps } from '@mui/x-charts';
|
|
12
|
+
export { ChartsReferenceLine as DsChartsReferenceLine } from '@mui/x-charts';
|
|
13
|
+
export { ChartsSurface as DsChartsSurface, ChartsSurfaceProps as DsChartsSurfaceProps } from '@mui/x-charts';
|
|
14
|
+
export { ChartsText as DsChartsText, ChartsTextProps as DsChartsTextProps } from '@mui/x-charts';
|
|
15
|
+
export { ChartsTooltip as DsChartsTooltip, ChartsTooltipProps as DsChartsTooltipProps } from '@mui/x-charts';
|
|
16
|
+
export { DefaultChartsAxisTooltipContent as DsDefaultChartsAxisTooltipContent } from '@mui/x-charts';
|
|
17
|
+
export { DefaultChartsItemTooltipContent as DsDefaultChartsItemTooltipContent } from '@mui/x-charts';
|
|
18
|
+
export { LineChart as DsLineChart, LineChartProps as DsLineChartProps } from '@mui/x-charts';
|
|
19
|
+
export { LineElement as DsLineElement, LineElementProps as DsLineElementProps } from '@mui/x-charts';
|
|
20
|
+
export { LineHighlightElement as DsLineHighlightElement, LineHighlightElementProps as DsLineHighlightElementProps } from '@mui/x-charts';
|
|
21
|
+
export { LineHighlightPlot as DsLineHighlightPlot, LineHighlightPlotProps as DsLineHighlightPlotProps } from '@mui/x-charts';
|
|
22
|
+
export { LinePlot as DsLinePlot, LinePlotProps as DsLinePlotProps } from '@mui/x-charts';
|
|
23
|
+
export { MarkElement as DsMarkElement, MarkElementProps as DsMarkElementProps } from '@mui/x-charts';
|
|
24
|
+
export { MarkPlot as DsMarkPlot, MarkPlotProps as DsMarkPlotProps } from '@mui/x-charts';
|
|
25
|
+
export { PieArc as DsPieArc, PieArcProps as DsPieArcProps } from '@mui/x-charts';
|
|
26
|
+
export { PieArcLabel as DsPieArcLabel, PieArcLabelProps as DsPieArcLabelProps } from '@mui/x-charts';
|
|
27
|
+
export { PieArcLabelPlot as DsPieArcLabelPlot, PieArcLabelPlotProps as DsPieArcLabelPlotProps } from '@mui/x-charts';
|
|
28
|
+
export { PieArcPlot as DsPieArcPlot, PieArcPlotProps as DsPieArcPlotProps } from '@mui/x-charts';
|
|
29
|
+
export { PieChart as DsPieChart, PieChartProps as DsPieChartProps } from '@mui/x-charts';
|
|
30
|
+
export { PiePlot as DsPiePlot, PiePlotProps as DsPiePlotProps } from '@mui/x-charts';
|
|
31
|
+
export { Scatter as DsScatter, ScatterProps as DsScatterProps } from '@mui/x-charts';
|
|
32
|
+
export { ScatterChart as DsScatterChart, ScatterChartProps as DsScatterChartProps } from '@mui/x-charts';
|
|
33
|
+
export { ScatterPlot as DsScatterPlot, ScatterPlotProps as DsScatterPlotProps } from '@mui/x-charts';
|
|
34
|
+
export { SparkLineChart as DsSparkLineChart } from '@mui/x-charts';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { AreaElement as DsAreaElement } from '@mui/x-charts';
|
|
2
|
+
export { AreaPlot as DsAreaPlot } from '@mui/x-charts';
|
|
3
|
+
export { BarChart as DsBarChart } from '@mui/x-charts';
|
|
4
|
+
export { BarElement as DsBarElement } from '@mui/x-charts';
|
|
5
|
+
export { BarPlot as DsBarPlot } from '@mui/x-charts';
|
|
6
|
+
export { ChartsAxis as DsChartsAxis } from '@mui/x-charts';
|
|
7
|
+
export { ChartsAxisHighlight as DsChartsAxisHighlight } from '@mui/x-charts';
|
|
8
|
+
export { ChartsAxisTooltipContent as DsChartsAxisTooltipContent } from '@mui/x-charts';
|
|
9
|
+
export { ChartsClipPath as DsChartsClipPath } from '@mui/x-charts';
|
|
10
|
+
export { ChartsItemTooltipContent as DsChartsItemTooltipContent } from '@mui/x-charts';
|
|
11
|
+
export { ChartsLegend as DsChartsLegend } from '@mui/x-charts';
|
|
12
|
+
export { ChartsReferenceLine as DsChartsReferenceLine } from '@mui/x-charts';
|
|
13
|
+
export { ChartsSurface as DsChartsSurface } from '@mui/x-charts';
|
|
14
|
+
export { ChartsText as DsChartsText } from '@mui/x-charts';
|
|
15
|
+
export { ChartsTooltip as DsChartsTooltip } from '@mui/x-charts';
|
|
16
|
+
export { DefaultChartsAxisTooltipContent as DsDefaultChartsAxisTooltipContent } from '@mui/x-charts';
|
|
17
|
+
export { DefaultChartsItemTooltipContent as DsDefaultChartsItemTooltipContent } from '@mui/x-charts';
|
|
18
|
+
export { LineChart as DsLineChart } from '@mui/x-charts';
|
|
19
|
+
export { LineElement as DsLineElement } from '@mui/x-charts';
|
|
20
|
+
export { LineHighlightElement as DsLineHighlightElement } from '@mui/x-charts';
|
|
21
|
+
export { LineHighlightPlot as DsLineHighlightPlot } from '@mui/x-charts';
|
|
22
|
+
export { LinePlot as DsLinePlot } from '@mui/x-charts';
|
|
23
|
+
export { MarkElement as DsMarkElement } from '@mui/x-charts';
|
|
24
|
+
export { MarkPlot as DsMarkPlot } from '@mui/x-charts';
|
|
25
|
+
export { PieArc as DsPieArc } from '@mui/x-charts';
|
|
26
|
+
export { PieArcLabel as DsPieArcLabel } from '@mui/x-charts';
|
|
27
|
+
export { PieArcLabelPlot as DsPieArcLabelPlot } from '@mui/x-charts';
|
|
28
|
+
export { PieArcPlot as DsPieArcPlot } from '@mui/x-charts';
|
|
29
|
+
export { PieChart as DsPieChart } from '@mui/x-charts';
|
|
30
|
+
export { PiePlot as DsPiePlot } from '@mui/x-charts';
|
|
31
|
+
export { Scatter as DsScatter } from '@mui/x-charts';
|
|
32
|
+
export { ScatterChart as DsScatterChart } from '@mui/x-charts';
|
|
33
|
+
export { ScatterPlot as DsScatterPlot } from '@mui/x-charts';
|
|
34
|
+
export { SparkLineChart as DsSparkLineChart } from '@mui/x-charts';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export const DATA_VIS_PALETTE = {
|
|
2
|
+
dataVis: {
|
|
3
|
+
category: [
|
|
4
|
+
'#C578D3',
|
|
5
|
+
'#D84646',
|
|
6
|
+
'#5273CC',
|
|
7
|
+
'#D87D23',
|
|
8
|
+
'#29A597',
|
|
9
|
+
'#2750C2',
|
|
10
|
+
'#A03333'
|
|
11
|
+
],
|
|
12
|
+
sequence1: [
|
|
13
|
+
'#692675',
|
|
14
|
+
'#9636A7',
|
|
15
|
+
'#B757C8',
|
|
16
|
+
'#C578D3',
|
|
17
|
+
'#CD8AD9',
|
|
18
|
+
'#D9A5E2',
|
|
19
|
+
'#E4C0EB'
|
|
20
|
+
],
|
|
21
|
+
sequence2: [
|
|
22
|
+
'#6E1717',
|
|
23
|
+
'#9D2121',
|
|
24
|
+
'#CC2B2B',
|
|
25
|
+
'#D84646',
|
|
26
|
+
'#DD5F5F',
|
|
27
|
+
'#E58484',
|
|
28
|
+
'#EDA9A9'
|
|
29
|
+
],
|
|
30
|
+
sequence3: [
|
|
31
|
+
'#134C45',
|
|
32
|
+
'#1B6D63',
|
|
33
|
+
'#238D81',
|
|
34
|
+
'#29A597',
|
|
35
|
+
'#31C4B3',
|
|
36
|
+
'#5CD6C8',
|
|
37
|
+
'#8DE2D8'
|
|
38
|
+
],
|
|
39
|
+
sequence4: [
|
|
40
|
+
'#12265B',
|
|
41
|
+
'#1A3683',
|
|
42
|
+
'#2246AA',
|
|
43
|
+
'#2750C2',
|
|
44
|
+
'#3862D8',
|
|
45
|
+
'#6686E1',
|
|
46
|
+
'#94ABEA'
|
|
47
|
+
],
|
|
48
|
+
success: '#29A597',
|
|
49
|
+
error: '#D84646'
|
|
50
|
+
}
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DATA_VIS_PALETTE';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DATA_VIS_PALETTE';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DsDataVisPaletteTokensArrayType, DsDataVisPaletteTokensStringType } from './DsDataVisPalette';
|
|
2
|
+
export interface DsDataVisColorGenerics<AT, ST> extends Partial<Record<DsDataVisPaletteTokensArrayType, AT>>, Partial<Record<DsDataVisPaletteTokensStringType, ST>> {
|
|
3
|
+
}
|
|
4
|
+
export interface DsDataVisColor extends DsDataVisColorGenerics<string[], string> {
|
|
5
|
+
}
|
|
6
|
+
export interface DsDataVisColorOverrides extends DsDataVisColorGenerics<true, true> {
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type DsDataVisPaletteTokensArrayType = 'category' | 'sequence1' | 'sequence2' | 'sequence3' | 'sequence4';
|
|
2
|
+
export type DsDataVisPaletteTokensStringType = 'success' | 'error';
|
|
3
|
+
export type DsDataVisPaletteTokens = DsDataVisPaletteTokensArrayType & DsDataVisPaletteTokensStringType;
|
|
4
|
+
export interface DsDataVisPalette {
|
|
5
|
+
dataVis?: Partial<Record<DsDataVisPaletteTokensArrayType, string[]>> & Partial<Record<DsDataVisPaletteTokensStringType, string>>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DsDataVisPalette';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DsDataVisPalette';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const XChartsComponentOverrides: {
|
|
2
|
+
MuiAreaElement: {
|
|
3
|
+
defaultProps: {};
|
|
4
|
+
};
|
|
5
|
+
MuiAreaPlot: {
|
|
6
|
+
defaultProps: {};
|
|
7
|
+
};
|
|
8
|
+
MuiBarChart: {
|
|
9
|
+
defaultProps: {};
|
|
10
|
+
};
|
|
11
|
+
MuiBarElement: {
|
|
12
|
+
defaultProps: {};
|
|
13
|
+
};
|
|
14
|
+
MuiBarPlot: {
|
|
15
|
+
defaultProps: {};
|
|
16
|
+
};
|
|
17
|
+
MuiChartsAxis: {
|
|
18
|
+
defaultProps: {};
|
|
19
|
+
};
|
|
20
|
+
MuiChartsAxisHighlight: {
|
|
21
|
+
defaultProps: {};
|
|
22
|
+
};
|
|
23
|
+
MuiChartsAxisTooltipContent: {
|
|
24
|
+
defaultProps: {};
|
|
25
|
+
};
|
|
26
|
+
MuiChartsClipPath: {
|
|
27
|
+
defaultProps: {};
|
|
28
|
+
};
|
|
29
|
+
MuiChartsItemTooltipContent: {
|
|
30
|
+
defaultProps: {};
|
|
31
|
+
};
|
|
32
|
+
MuiChartsLegend: {
|
|
33
|
+
defaultProps: {};
|
|
34
|
+
};
|
|
35
|
+
MuiChartsReferenceLine: {
|
|
36
|
+
defaultProps: {};
|
|
37
|
+
};
|
|
38
|
+
MuiChartsSurface: {
|
|
39
|
+
defaultProps: {};
|
|
40
|
+
};
|
|
41
|
+
MuiChartsText: {
|
|
42
|
+
defaultProps: {};
|
|
43
|
+
};
|
|
44
|
+
MuiChartsTooltip: {
|
|
45
|
+
defaultProps: {};
|
|
46
|
+
};
|
|
47
|
+
MuiDefaultChartsAxisTooltipContent: {
|
|
48
|
+
defaultProps: {};
|
|
49
|
+
};
|
|
50
|
+
MuiDefaultChartsItemTooltipContent: {
|
|
51
|
+
defaultProps: {};
|
|
52
|
+
};
|
|
53
|
+
MuiLineChart: {
|
|
54
|
+
defaultProps: {};
|
|
55
|
+
};
|
|
56
|
+
MuiLineElement: {
|
|
57
|
+
defaultProps: {};
|
|
58
|
+
};
|
|
59
|
+
MuiLineHighlightElement: {
|
|
60
|
+
defaultProps: {};
|
|
61
|
+
};
|
|
62
|
+
MuiLineHighlightPlot: {
|
|
63
|
+
defaultProps: {};
|
|
64
|
+
};
|
|
65
|
+
MuiLinePlot: {
|
|
66
|
+
defaultProps: {};
|
|
67
|
+
};
|
|
68
|
+
MuiMarkElement: {
|
|
69
|
+
defaultProps: {};
|
|
70
|
+
};
|
|
71
|
+
MuiMarkPlot: {
|
|
72
|
+
defaultProps: {};
|
|
73
|
+
};
|
|
74
|
+
MuiPieArc: {
|
|
75
|
+
defaultProps: {};
|
|
76
|
+
};
|
|
77
|
+
MuiPieArcLabel: {
|
|
78
|
+
defaultProps: {};
|
|
79
|
+
};
|
|
80
|
+
MuiPieArcLabelPlot: {
|
|
81
|
+
defaultProps: {};
|
|
82
|
+
};
|
|
83
|
+
MuiPieArcPlot: {
|
|
84
|
+
defaultProps: {};
|
|
85
|
+
};
|
|
86
|
+
MuiPieChart: {
|
|
87
|
+
defaultProps: {};
|
|
88
|
+
};
|
|
89
|
+
MuiPiePlot: {
|
|
90
|
+
defaultProps: {};
|
|
91
|
+
};
|
|
92
|
+
MuiScatter: {
|
|
93
|
+
defaultProps: {};
|
|
94
|
+
};
|
|
95
|
+
MuiScatterChart: {
|
|
96
|
+
defaultProps: {};
|
|
97
|
+
};
|
|
98
|
+
MuiScatterPlot: {
|
|
99
|
+
defaultProps: {};
|
|
100
|
+
};
|
|
101
|
+
MuiSparkLineChart: {
|
|
102
|
+
defaultProps: {};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export default XChartsComponentOverrides;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
const XChartsComponentOverrides = {
|
|
2
|
+
MuiAreaElement: {
|
|
3
|
+
defaultProps: {}
|
|
4
|
+
},
|
|
5
|
+
MuiAreaPlot: {
|
|
6
|
+
defaultProps: {}
|
|
7
|
+
},
|
|
8
|
+
MuiBarChart: {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
// colors: []
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
MuiBarElement: {
|
|
14
|
+
defaultProps: {}
|
|
15
|
+
},
|
|
16
|
+
MuiBarPlot: {
|
|
17
|
+
defaultProps: {}
|
|
18
|
+
},
|
|
19
|
+
MuiChartsAxis: {
|
|
20
|
+
defaultProps: {}
|
|
21
|
+
},
|
|
22
|
+
MuiChartsAxisHighlight: {
|
|
23
|
+
defaultProps: {}
|
|
24
|
+
},
|
|
25
|
+
MuiChartsAxisTooltipContent: {
|
|
26
|
+
defaultProps: {}
|
|
27
|
+
},
|
|
28
|
+
MuiChartsClipPath: {
|
|
29
|
+
defaultProps: {}
|
|
30
|
+
},
|
|
31
|
+
MuiChartsItemTooltipContent: {
|
|
32
|
+
defaultProps: {}
|
|
33
|
+
},
|
|
34
|
+
MuiChartsLegend: {
|
|
35
|
+
defaultProps: {}
|
|
36
|
+
},
|
|
37
|
+
MuiChartsReferenceLine: {
|
|
38
|
+
defaultProps: {}
|
|
39
|
+
},
|
|
40
|
+
MuiChartsSurface: {
|
|
41
|
+
defaultProps: {}
|
|
42
|
+
},
|
|
43
|
+
MuiChartsText: {
|
|
44
|
+
defaultProps: {}
|
|
45
|
+
},
|
|
46
|
+
MuiChartsTooltip: {
|
|
47
|
+
defaultProps: {}
|
|
48
|
+
},
|
|
49
|
+
MuiDefaultChartsAxisTooltipContent: {
|
|
50
|
+
defaultProps: {}
|
|
51
|
+
},
|
|
52
|
+
MuiDefaultChartsItemTooltipContent: {
|
|
53
|
+
defaultProps: {}
|
|
54
|
+
},
|
|
55
|
+
MuiLineChart: {
|
|
56
|
+
defaultProps: {
|
|
57
|
+
// colors: []
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
MuiLineElement: {
|
|
61
|
+
defaultProps: {}
|
|
62
|
+
},
|
|
63
|
+
MuiLineHighlightElement: {
|
|
64
|
+
defaultProps: {}
|
|
65
|
+
},
|
|
66
|
+
MuiLineHighlightPlot: {
|
|
67
|
+
defaultProps: {}
|
|
68
|
+
},
|
|
69
|
+
MuiLinePlot: {
|
|
70
|
+
defaultProps: {}
|
|
71
|
+
},
|
|
72
|
+
MuiMarkElement: {
|
|
73
|
+
defaultProps: {}
|
|
74
|
+
},
|
|
75
|
+
MuiMarkPlot: {
|
|
76
|
+
defaultProps: {}
|
|
77
|
+
},
|
|
78
|
+
MuiPieArc: {
|
|
79
|
+
defaultProps: {}
|
|
80
|
+
},
|
|
81
|
+
MuiPieArcLabel: {
|
|
82
|
+
defaultProps: {}
|
|
83
|
+
},
|
|
84
|
+
MuiPieArcLabelPlot: {
|
|
85
|
+
defaultProps: {}
|
|
86
|
+
},
|
|
87
|
+
MuiPieArcPlot: {
|
|
88
|
+
defaultProps: {}
|
|
89
|
+
},
|
|
90
|
+
MuiPieChart: {
|
|
91
|
+
defaultProps: {
|
|
92
|
+
// colors: []
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
MuiPiePlot: {
|
|
96
|
+
defaultProps: {}
|
|
97
|
+
},
|
|
98
|
+
MuiScatter: {
|
|
99
|
+
defaultProps: {}
|
|
100
|
+
},
|
|
101
|
+
MuiScatterChart: {
|
|
102
|
+
defaultProps: {
|
|
103
|
+
// colors: []
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
MuiScatterPlot: {
|
|
107
|
+
defaultProps: {}
|
|
108
|
+
},
|
|
109
|
+
MuiSparkLineChart: {
|
|
110
|
+
defaultProps: {
|
|
111
|
+
// colors: []
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
export default XChartsComponentOverrides;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useThemeProps } from '@mui/system';
|
|
4
|
+
import { useUtils } from '@mui/x-date-pickers/internals';
|
|
5
|
+
import { DsStack, DsIconButton, DsRemixIcon, DsButtonBase, DsTypography } from '../../../Components';
|
|
6
|
+
export const DateCalenderHeader = React.forwardRef(function PickersCalendarHeader(inProps, ref) {
|
|
7
|
+
// const translations = usePickersTranslations<TDate>()
|
|
8
|
+
const utils = useUtils();
|
|
9
|
+
const props = useThemeProps({
|
|
10
|
+
props: inProps,
|
|
11
|
+
name: 'MuiPickersCalendarHeader'
|
|
12
|
+
});
|
|
13
|
+
const { currentMonth, view } = props;
|
|
14
|
+
const handleMonthChange = (direction, numberOfMonths) => () => {
|
|
15
|
+
const { currentMonth, onMonthChange } = props;
|
|
16
|
+
onMonthChange(utils.addMonths(currentMonth, numberOfMonths), direction);
|
|
17
|
+
};
|
|
18
|
+
const handleViewShow = (view) => () => {
|
|
19
|
+
const { onViewChange } = props;
|
|
20
|
+
onViewChange && onViewChange(view);
|
|
21
|
+
};
|
|
22
|
+
const isYearNavigationDisabled = view === 'month';
|
|
23
|
+
const isMonthNavigationDisabled = view === 'year';
|
|
24
|
+
return (_jsxs(DsStack, { direction: "row", justifyContent: "space-between",
|
|
25
|
+
// spacing='var(--ds-spacing-frostbite)'
|
|
26
|
+
sx: { p: 'var(--ds-spacing-frostbite)' }, children: [_jsxs(DsStack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: "var(--ds-spacing-frostbite)", children: [_jsx(DsIconButton, { disabled: isYearNavigationDisabled || isMonthNavigationDisabled, onClick: handleMonthChange('left', -1), children: _jsx(DsRemixIcon, { className: "ri-arrow-drop-left-line" }) }), _jsxs(DsButtonBase, { disabled: isMonthNavigationDisabled, onClick: handleViewShow('month'), children: [_jsx(DsTypography, { variant: "bodyBoldSmall", color: isMonthNavigationDisabled ? 'text.disabled' : 'text.primary', children: utils.formatByString(currentMonth, utils.formats.monthShort) }), _jsx(DsRemixIcon, { className: "ri-arrow-drop-down-fill", color: isMonthNavigationDisabled ? 'iconDisabled' : 'iconDefault', sx: { mr: 'var(--ds-spacing-quickFreeze)' } })] }), _jsx(DsIconButton, { disabled: isYearNavigationDisabled || isMonthNavigationDisabled, onClick: handleMonthChange('right', 1), children: _jsx(DsRemixIcon, { className: "ri-arrow-drop-right-line" }) })] }), _jsxs(DsStack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: "var(--ds-spacing-frostbite)", children: [_jsx(DsIconButton, { disabled: isYearNavigationDisabled || isMonthNavigationDisabled, onClick: handleMonthChange('left', -12), children: _jsx(DsRemixIcon, { className: "ri-arrow-drop-left-line" }) }), _jsxs(DsButtonBase, { disabled: isYearNavigationDisabled, onClick: handleViewShow('year'), children: [_jsx(DsTypography, { variant: "bodyBoldSmall", color: isYearNavigationDisabled ? 'text.disabled' : 'text.primary', children: utils.formatByString(currentMonth, utils.formats.year) }), _jsx(DsRemixIcon, { className: "ri-arrow-drop-down-fill", color: isYearNavigationDisabled ? 'iconDisabled' : 'iconDefault', sx: { mr: 'var(--ds-spacing-quickFreeze)' } })] }), _jsx(DsIconButton, { disabled: isYearNavigationDisabled || isMonthNavigationDisabled, onClick: handleMonthChange('right', 12), children: _jsx(DsRemixIcon, { className: "ri-arrow-drop-right-line" }) })] })] }));
|
|
27
|
+
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DateFieldProps
|
|
3
|
-
import { DsTextFieldProps } from '
|
|
2
|
+
import { DateFieldProps } from '@mui/x-date-pickers';
|
|
3
|
+
import { DsTextFieldProps } from '../../../Components';
|
|
4
4
|
export interface DatePickerTextFieldProps extends Omit<DsTextFieldProps, 'margin' | 'onInvalid' | 'onKeyDown' | 'onBlur' | 'onKeyUp' | 'ref'> {
|
|
5
5
|
setOpen?: (open: boolean) => void;
|
|
6
|
-
InputProps?: DateFieldProps<
|
|
7
|
-
ref?: DateFieldProps<
|
|
6
|
+
InputProps?: DateFieldProps<Date>['InputProps'];
|
|
7
|
+
ref?: DateFieldProps<Date>['ref'];
|
|
8
8
|
focused?: boolean;
|
|
9
9
|
ownerState?: any;
|
|
10
10
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useThemeProps } from '@mui/material';
|
|
4
|
+
import { DsTextField } from '../../../Components';
|
|
5
|
+
export const DatePickerTextField = React.forwardRef((inProps, inputRef) => {
|
|
6
|
+
const props = useThemeProps({
|
|
7
|
+
props: inProps,
|
|
8
|
+
name: 'MuiPickersInput'
|
|
9
|
+
});
|
|
10
|
+
const { setOpen, ref, InputProps, focused, ownerState, ...other } = props;
|
|
11
|
+
const { readOnly } = InputProps || {};
|
|
12
|
+
return _jsx(DsTextField, { readOnly: readOnly, ...other });
|
|
13
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PickersActionBarProps } from '@mui/x-date-pickers';
|
|
2
|
+
export declare function DefaultActionBar(props: PickersActionBarProps & {
|
|
3
|
+
ownerState?: any;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
export declare namespace DefaultActionBar {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useLocaleText } from '@mui/x-date-pickers/internals';
|
|
3
|
+
import { DsButtonGroup, DsButton } from '../../../Components';
|
|
4
|
+
export function DefaultActionBar(props) {
|
|
5
|
+
const { onAccept, onClear, ownerState, actions } = props;
|
|
6
|
+
const { value } = ownerState || {};
|
|
7
|
+
if (actions == null || actions?.length === 0) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
const translations = useLocaleText();
|
|
11
|
+
const isClearVisible = actions.includes('clear');
|
|
12
|
+
const isConfirmVisible = actions.includes('accept');
|
|
13
|
+
return (_jsxs(DsButtonGroup, { sx: {
|
|
14
|
+
gridArea: '3 / 1 / auto / 4',
|
|
15
|
+
backgroundColor: 'var(--ds-colour-surfaceSecondary)',
|
|
16
|
+
px: 'var(--ds-spacing-mild)',
|
|
17
|
+
borderTop: '1px solid var(--ds-colour-strokeDefault)',
|
|
18
|
+
borderRadius: '0px 0px 16px 16px '
|
|
19
|
+
}, justifyContent: "space-between", size: "medium", children: [isClearVisible && (_jsx(DsButton, { sx: {
|
|
20
|
+
py: 'var(--ds-spacing-glacial)',
|
|
21
|
+
px: 'var(--ds-spacing-pleasant)'
|
|
22
|
+
}, variant: "text", size: "medium", color: "secondary", onClick: onClear, disabled: !value, children: translations.clearButtonLabel })), isConfirmVisible && (_jsx(DsButton, { sx: {
|
|
23
|
+
py: 'var(--ds-spacing-glacial)',
|
|
24
|
+
px: 'var(--ds-spacing-pleasant)'
|
|
25
|
+
}, variant: "text", size: "medium", color: "secondary", onClick: onAccept, disabled: !value, children: translations.okButtonLabel }))] }));
|
|
26
|
+
}
|
|
27
|
+
DefaultActionBar.displayName = 'DefaultActionBar';
|