@tap-payments/os-micro-frontend-shared 0.0.89 → 0.0.90
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/build/components/StatusBar/StatusBar.d.ts +12 -0
- package/build/components/StatusBar/StatusBar.js +32 -0
- package/build/components/StatusBar/index.d.ts +2 -0
- package/build/components/StatusBar/index.js +2 -0
- package/build/components/TableCells/CustomCells/ActionCell/constant.d.ts +0 -3
- package/build/components/TableCells/CustomCells/ActionCell/constant.js +1 -4
- package/build/components/TableCells/CustomCells/ActionCell/hooks/useActionCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
- package/build/components/VirtualTable/SheetView/SheetViewVirtualTable.js +1 -3
- package/build/components/VirtualTable/SheetView/style.js +0 -1
- package/build/components/VirtualTable/components/virtualScroll/ListItemWrapper.js +7 -2
- package/build/components/VirtualTable/style.d.ts +0 -1
- package/build/components/VirtualTable/style.js +2 -20
- package/build/components/index.d.ts +1 -1
- package/build/components/index.js +1 -1
- package/build/constants/assets.d.ts +0 -2
- package/build/constants/assets.js +0 -2
- package/package.json +4 -1
- package/build/components/RangeCalender/RangeCalender.d.ts +0 -20
- package/build/components/RangeCalender/RangeCalender.js +0 -92
- package/build/components/RangeCalender/components/CustomTimepicker/CustomTimepicker.d.ts +0 -11
- package/build/components/RangeCalender/components/CustomTimepicker/CustomTimepicker.js +0 -33
- package/build/components/RangeCalender/components/CustomTimepicker/index.d.ts +0 -2
- package/build/components/RangeCalender/components/CustomTimepicker/index.js +0 -2
- package/build/components/RangeCalender/components/CustomTimepicker/style.d.ts +0 -15
- package/build/components/RangeCalender/components/CustomTimepicker/style.js +0 -132
- package/build/components/RangeCalender/components/GroupBy/GroupBy.d.ts +0 -10
- package/build/components/RangeCalender/components/GroupBy/GroupBy.js +0 -33
- package/build/components/RangeCalender/components/GroupBy/index.d.ts +0 -2
- package/build/components/RangeCalender/components/GroupBy/index.js +0 -2
- package/build/components/RangeCalender/components/GroupBy/style.d.ts +0 -15
- package/build/components/RangeCalender/components/GroupBy/style.js +0 -39
- package/build/components/RangeCalender/components/Hijri/Hijri.d.ts +0 -7
- package/build/components/RangeCalender/components/Hijri/Hijri.js +0 -13
- package/build/components/RangeCalender/components/Hijri/index.d.ts +0 -2
- package/build/components/RangeCalender/components/Hijri/index.js +0 -2
- package/build/components/RangeCalender/components/Hijri/style.d.ts +0 -4
- package/build/components/RangeCalender/components/Hijri/style.js +0 -25
- package/build/components/RangeCalender/components/QuickFilters/QuickFilters.d.ts +0 -8
- package/build/components/RangeCalender/components/QuickFilters/QuickFilters.js +0 -47
- package/build/components/RangeCalender/components/QuickFilters/index.d.ts +0 -2
- package/build/components/RangeCalender/components/QuickFilters/index.js +0 -2
- package/build/components/RangeCalender/components/QuickFilters/style.d.ts +0 -7
- package/build/components/RangeCalender/components/QuickFilters/style.js +0 -27
- package/build/components/RangeCalender/components/RangeDatepicker/RangeDatepicker.d.ts +0 -12
- package/build/components/RangeCalender/components/RangeDatepicker/RangeDatepicker.js +0 -29
- package/build/components/RangeCalender/components/RangeDatepicker/index.d.ts +0 -2
- package/build/components/RangeCalender/components/RangeDatepicker/index.js +0 -2
- package/build/components/RangeCalender/components/RangeDatepicker/style.d.ts +0 -4
- package/build/components/RangeCalender/components/RangeDatepicker/style.js +0 -9
- package/build/components/RangeCalender/components/Timezone/Timezone.d.ts +0 -11
- package/build/components/RangeCalender/components/Timezone/Timezone.js +0 -32
- package/build/components/RangeCalender/components/Timezone/components/EntitiesTimezone.d.ts +0 -12
- package/build/components/RangeCalender/components/Timezone/components/EntitiesTimezone.js +0 -37
- package/build/components/RangeCalender/components/Timezone/components/UserTimezone.d.ts +0 -8
- package/build/components/RangeCalender/components/Timezone/components/UserTimezone.js +0 -14
- package/build/components/RangeCalender/components/Timezone/index.d.ts +0 -2
- package/build/components/RangeCalender/components/Timezone/index.js +0 -2
- package/build/components/RangeCalender/components/Timezone/style.d.ts +0 -21
- package/build/components/RangeCalender/components/Timezone/style.js +0 -61
- package/build/components/RangeCalender/index.d.ts +0 -2
- package/build/components/RangeCalender/index.js +0 -2
- package/build/components/RangeCalender/style.d.ts +0 -33
- package/build/components/RangeCalender/style.js +0 -189
- package/build/components/RangeCalender/type.d.ts +0 -2
- package/build/components/RangeCalender/type.js +0 -1
- package/build/components/RangeCalender/utils.d.ts +0 -6
- package/build/components/RangeCalender/utils.js +0 -15
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const CalenderWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
5
|
-
export declare const CancelButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
6
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
7
|
-
}, "disabled" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "size" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
8
|
-
export declare const OkayButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
9
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
10
|
-
}, "disabled" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "size" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
11
|
-
export declare const ButtonsWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
14
|
-
export declare const SelectedDate: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
15
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
16
|
-
}, "disabled" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "size" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
17
|
-
open: boolean;
|
|
18
|
-
}, {}, {}>;
|
|
19
|
-
export declare const Footer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
21
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
22
|
-
export declare const FiltersArea: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
23
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
24
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
25
|
-
export declare const TimeZone: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
26
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
27
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
28
|
-
export declare const Main: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
29
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
30
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
31
|
-
export declare const Settings: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
32
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
33
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import Box from '@mui/material/Box';
|
|
2
|
-
import Button from '@mui/material/Button';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
4
|
-
export const CalenderWrapper = styled(Box)(({ theme }) => ({
|
|
5
|
-
display: 'flex',
|
|
6
|
-
marginTop: '8px',
|
|
7
|
-
background: theme.palette.common.white,
|
|
8
|
-
boxShadow: theme.shadows[9],
|
|
9
|
-
borderRadius: theme.spacing(1),
|
|
10
|
-
color: theme.palette.text.primary,
|
|
11
|
-
fontSize: '11px',
|
|
12
|
-
'.rmdp-calendar': {
|
|
13
|
-
padding: '8px 16px 16px',
|
|
14
|
-
},
|
|
15
|
-
'.rmdp-rtl *': {
|
|
16
|
-
fontFamily: 'Tajawal',
|
|
17
|
-
},
|
|
18
|
-
'.rmdp-rtl .sd': {
|
|
19
|
-
paddingTop: '4px',
|
|
20
|
-
},
|
|
21
|
-
'.rmdp-wrapper': {
|
|
22
|
-
position: 'relative',
|
|
23
|
-
borderRadius: '8px',
|
|
24
|
-
boxShadow: 'none',
|
|
25
|
-
},
|
|
26
|
-
'.rmdp-day span': {
|
|
27
|
-
fontSize: '11px',
|
|
28
|
-
fontWeight: 500,
|
|
29
|
-
},
|
|
30
|
-
'.rmdp-day, .rmdp-week-day': {
|
|
31
|
-
width: 40,
|
|
32
|
-
height: 40,
|
|
33
|
-
marginBottom: '2px',
|
|
34
|
-
padding: '4px',
|
|
35
|
-
fontSize: '11px',
|
|
36
|
-
color: theme.palette.grey[900],
|
|
37
|
-
},
|
|
38
|
-
'.rmdp-day-picker': {
|
|
39
|
-
padding: 0,
|
|
40
|
-
},
|
|
41
|
-
'.rmdp-day.rmdp-today span': {
|
|
42
|
-
backgroundColor: 'transparent',
|
|
43
|
-
color: theme.palette.info.dark,
|
|
44
|
-
},
|
|
45
|
-
'.rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span': {
|
|
46
|
-
color: theme.palette.common.white,
|
|
47
|
-
},
|
|
48
|
-
'.rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover': {
|
|
49
|
-
background: theme.palette.info.light,
|
|
50
|
-
boxShadow: 'none',
|
|
51
|
-
color: theme.palette.grey[900],
|
|
52
|
-
},
|
|
53
|
-
'.rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end': {
|
|
54
|
-
borderRadius: '50%',
|
|
55
|
-
background: theme.palette.background.gradient.darkShadedBlue,
|
|
56
|
-
color: theme.palette.common.white,
|
|
57
|
-
},
|
|
58
|
-
'.rmdp-range.start:after': {
|
|
59
|
-
content: '""',
|
|
60
|
-
position: 'absolute',
|
|
61
|
-
background: theme.palette.info.light,
|
|
62
|
-
height: '100%',
|
|
63
|
-
width: '50%',
|
|
64
|
-
right: 0,
|
|
65
|
-
top: 0,
|
|
66
|
-
zIndex: -1,
|
|
67
|
-
},
|
|
68
|
-
'.rmdp-rtl .rmdp-range.start:after': {
|
|
69
|
-
right: 'unset',
|
|
70
|
-
left: 0,
|
|
71
|
-
},
|
|
72
|
-
'.rmdp-range.end:after': {
|
|
73
|
-
content: '""',
|
|
74
|
-
position: 'absolute',
|
|
75
|
-
background: theme.palette.info.light,
|
|
76
|
-
height: '100%',
|
|
77
|
-
width: '50%',
|
|
78
|
-
left: 0,
|
|
79
|
-
top: 0,
|
|
80
|
-
zIndex: -1,
|
|
81
|
-
},
|
|
82
|
-
'.rmdp-rtl .rmdp-range.end:after': {
|
|
83
|
-
left: 'unset',
|
|
84
|
-
right: 0,
|
|
85
|
-
},
|
|
86
|
-
'.rmdp-week-day': {
|
|
87
|
-
color: theme.palette.grey[700],
|
|
88
|
-
marginBottom: '4px',
|
|
89
|
-
fontSize: '11px',
|
|
90
|
-
padding: '4px',
|
|
91
|
-
},
|
|
92
|
-
'.rmdp-header-values': {
|
|
93
|
-
color: theme.palette.grey[900],
|
|
94
|
-
fontSize: '12px',
|
|
95
|
-
fontWeight: 500,
|
|
96
|
-
lineHeight: '20px',
|
|
97
|
-
letterSpacing: '0.1px',
|
|
98
|
-
},
|
|
99
|
-
'.rmdp-header-values span:nth-of-type(2)': {
|
|
100
|
-
display: 'none',
|
|
101
|
-
},
|
|
102
|
-
'.rmdp-header': {
|
|
103
|
-
padding: '4px 0',
|
|
104
|
-
margin: 0,
|
|
105
|
-
fontSize: '12px',
|
|
106
|
-
},
|
|
107
|
-
'.rmdp-top-class': {
|
|
108
|
-
display: 'block !important',
|
|
109
|
-
},
|
|
110
|
-
'.rmdp-day.rmdp-selected span:not(.highlight)': {
|
|
111
|
-
background: theme.palette.info.dark,
|
|
112
|
-
},
|
|
113
|
-
'.rmdp-day.start.end': {
|
|
114
|
-
overflow: 'hidden',
|
|
115
|
-
},
|
|
116
|
-
}));
|
|
117
|
-
export const CancelButton = styled(Button)(({ theme }) => ({
|
|
118
|
-
textTransform: 'capitalize',
|
|
119
|
-
padding: '8px 24px',
|
|
120
|
-
width: 75,
|
|
121
|
-
height: 32,
|
|
122
|
-
fontSize: '11px',
|
|
123
|
-
background: 'transparent',
|
|
124
|
-
color: theme.palette.text.primary,
|
|
125
|
-
border: '1px solid',
|
|
126
|
-
borderColor: theme.palette.divider,
|
|
127
|
-
fontWeight: 500,
|
|
128
|
-
borderRadius: '4px',
|
|
129
|
-
'&:hover': {
|
|
130
|
-
background: 'transparent',
|
|
131
|
-
color: theme.palette.text.primary,
|
|
132
|
-
},
|
|
133
|
-
}));
|
|
134
|
-
export const OkayButton = styled(Button)(({ theme }) => ({
|
|
135
|
-
textTransform: 'capitalize',
|
|
136
|
-
padding: '8px 24px',
|
|
137
|
-
width: 75,
|
|
138
|
-
height: 32,
|
|
139
|
-
fontSize: '11px',
|
|
140
|
-
borderRadius: '4px',
|
|
141
|
-
fontWeight: 700,
|
|
142
|
-
background: theme.palette.info.dark,
|
|
143
|
-
'&:hover': {
|
|
144
|
-
background: theme.palette.info.dark,
|
|
145
|
-
},
|
|
146
|
-
}));
|
|
147
|
-
export const ButtonsWrapper = styled(Box)(() => ({
|
|
148
|
-
display: 'flex',
|
|
149
|
-
gap: 8,
|
|
150
|
-
}));
|
|
151
|
-
export const SelectedDate = styled(Button, { shouldForwardProp: (props) => props !== 'open' })(({ open, theme }) => (Object.assign({ color: theme.palette.text.primary, fontSize: '11px', fontWeight: 500, padding: theme.spacing(1), borderRadius: '4px', border: '1px solid', borderColor: theme.palette.divider, background: theme.palette.common.white, textTransform: 'none', height: 32 }, (open && { border: '1px solid', borderColor: theme.palette.info.dark, boxShadow: theme.shadows[7] }))));
|
|
152
|
-
export const Footer = styled(Box)(({ theme }) => ({
|
|
153
|
-
background: theme.palette.common.white,
|
|
154
|
-
display: 'flex',
|
|
155
|
-
justifyContent: 'space-between',
|
|
156
|
-
alignItems: 'center',
|
|
157
|
-
gap: 10,
|
|
158
|
-
padding: '16px',
|
|
159
|
-
borderTop: '1px solid',
|
|
160
|
-
borderColor: theme.palette.divider,
|
|
161
|
-
borderBottomRightRadius: '8px',
|
|
162
|
-
}));
|
|
163
|
-
export const FiltersArea = styled(Box)(({ theme }) => ({
|
|
164
|
-
padding: 16,
|
|
165
|
-
paddingInlineEnd: '23px',
|
|
166
|
-
borderRight: '1px solid',
|
|
167
|
-
borderColor: theme.palette.divider,
|
|
168
|
-
background: theme.palette.common.white,
|
|
169
|
-
width: 'max-content',
|
|
170
|
-
borderTopLeftRadius: '8px',
|
|
171
|
-
borderBottomLeftRadius: '8px',
|
|
172
|
-
display: 'flex',
|
|
173
|
-
flexDirection: 'column',
|
|
174
|
-
gap: 10,
|
|
175
|
-
justifyContent: 'space-between',
|
|
176
|
-
}));
|
|
177
|
-
export const TimeZone = styled(Box)(() => ({
|
|
178
|
-
display: 'flex',
|
|
179
|
-
alignItems: 'center',
|
|
180
|
-
gap: '10px',
|
|
181
|
-
}));
|
|
182
|
-
export const Main = styled(Box)(() => ({
|
|
183
|
-
position: 'relative',
|
|
184
|
-
}));
|
|
185
|
-
export const Settings = styled(Box)(() => ({
|
|
186
|
-
display: 'flex',
|
|
187
|
-
flexDirection: 'column',
|
|
188
|
-
gap: '24px',
|
|
189
|
-
}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react-date-object" />
|
|
2
|
-
export declare const getLocale: ({ isHijri, isAr }: {
|
|
3
|
-
isHijri: boolean;
|
|
4
|
-
isAr?: boolean | undefined;
|
|
5
|
-
}) => import("react-date-object").Locale;
|
|
6
|
-
export declare const getCalender: (isHijri: boolean) => import("react-date-object").Calendar;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import arabic from 'react-date-object/calendars/arabic';
|
|
2
|
-
import gregorian from 'react-date-object/calendars/gregorian';
|
|
3
|
-
import arabicAr from 'react-date-object/locales/arabic_ar';
|
|
4
|
-
import arabicEn from 'react-date-object/locales/arabic_en';
|
|
5
|
-
import gregorianAr from 'react-date-object/locales/gregorian_ar';
|
|
6
|
-
import gregorianEn from 'react-date-object/locales/gregorian_en';
|
|
7
|
-
export const getLocale = ({ isHijri, isAr = false }) => {
|
|
8
|
-
if (isHijri) {
|
|
9
|
-
return isAr ? arabicAr : arabicEn;
|
|
10
|
-
}
|
|
11
|
-
return isAr ? gregorianAr : gregorianEn;
|
|
12
|
-
};
|
|
13
|
-
export const getCalender = (isHijri) => {
|
|
14
|
-
return isHijri ? arabic : gregorian;
|
|
15
|
-
};
|