dhre-ui-kit 2.0.5 → 2.0.6
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/lib/index.d.ts +5 -1
- package/lib/index.js +28 -23
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +28 -24
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1084,6 +1084,10 @@ declare const DHRE_COLORS_BG: {
|
|
|
1084
1084
|
DH_BG_GREY_900: string;
|
|
1085
1085
|
DH_BG_GREY: string;
|
|
1086
1086
|
};
|
|
1087
|
+
declare const NAKHEEL_DEFAULT: {
|
|
1088
|
+
NAKHEEL_BACKGROUND_SANDY: string;
|
|
1089
|
+
NAKHEEL_TEXT_COLOR: string;
|
|
1090
|
+
};
|
|
1087
1091
|
declare const DHRE_DEFAULT: {
|
|
1088
1092
|
DH_LINE_GREY_0: string;
|
|
1089
1093
|
DH_LINE_GREY_100: string;
|
|
@@ -1195,5 +1199,5 @@ interface RadioButtonGroupProps {
|
|
|
1195
1199
|
|
|
1196
1200
|
declare const RadioButtonGroup: React$1.FC<RadioButtonGroupProps>;
|
|
1197
1201
|
|
|
1198
|
-
export { _default$g as Accordion, AnimationWithImperativeApi as AnimationLoitte, _default$1 as AppointmentCard, _default$j as Badge, BottomDrawer, _default$i as Button, Cards, _default$7 as Category, Checkbox as CheckBox, _default$a as ContactModel, CountryDropDown as CountryPicker, _default$4 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, _default$f as CustomHeader, CustomIcon, _default$d as CustomLoader, CustomProgressBar, CustomSearchBar, _default$2 as CustomSlideButton, CustomSwitchBtn, _default$k as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, _default$9 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, _default$6 as FeedbackForm, FileUpload, FontStyle, _default$c as Line, NotificationBandge, OTPInput, _default$8 as OurOfficesButton, PdfView, PopUp, _default as PropertyDetails, RadioButtonGroup, ShapeType, _default$5 as SingleSelectionTags, Star as StarRating, _default$3 as Stepper, _default$e as SwipableList, _default$h as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, _default$b as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
|
|
1202
|
+
export { _default$g as Accordion, AnimationWithImperativeApi as AnimationLoitte, _default$1 as AppointmentCard, _default$j as Badge, BottomDrawer, _default$i as Button, Cards, _default$7 as Category, Checkbox as CheckBox, _default$a as ContactModel, CountryDropDown as CountryPicker, _default$4 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, _default$f as CustomHeader, CustomIcon, _default$d as CustomLoader, CustomProgressBar, CustomSearchBar, _default$2 as CustomSlideButton, CustomSwitchBtn, _default$k as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, _default$9 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, _default$6 as FeedbackForm, FileUpload, FontStyle, _default$c as Line, NAKHEEL_DEFAULT, NotificationBandge, OTPInput, _default$8 as OurOfficesButton, PdfView, PopUp, _default as PropertyDetails, RadioButtonGroup, ShapeType, _default$5 as SingleSelectionTags, Star as StarRating, _default$3 as Stepper, _default$e as SwipableList, _default$h as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, _default$b as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
|
|
1199
1203
|
export type { CustomHeaderProps, SlideButtonHandle, ToastRef };
|
package/lib/index.js
CHANGED
|
@@ -573,6 +573,10 @@ const DHRE_COLORS_BG = {
|
|
|
573
573
|
DH_BG_GREY_900: "#6F7387",
|
|
574
574
|
DH_BG_GREY: "#F2F3F8"
|
|
575
575
|
};
|
|
576
|
+
const NAKHEEL_DEFAULT = {
|
|
577
|
+
NAKHEEL_BACKGROUND_SANDY: "#E7DBB9",
|
|
578
|
+
NAKHEEL_TEXT_COLOR: "#686868"
|
|
579
|
+
};
|
|
576
580
|
const DHRE_DEFAULT = {
|
|
577
581
|
DH_LINE_GREY_0: "#FAFAFA",
|
|
578
582
|
DH_LINE_GREY_100: "#F6F6F6",
|
|
@@ -7416,7 +7420,7 @@ const DateRangePicker = (props) => {
|
|
|
7416
7420
|
startDate: "",
|
|
7417
7421
|
endDate: ""
|
|
7418
7422
|
});
|
|
7419
|
-
const { theme
|
|
7423
|
+
const { theme, mode } = useTheme();
|
|
7420
7424
|
const onDayPress = (day) => {
|
|
7421
7425
|
const { dateString } = day;
|
|
7422
7426
|
const { startDate, endDate } = selectedRange;
|
|
@@ -7439,35 +7443,35 @@ const DateRangePicker = (props) => {
|
|
|
7439
7443
|
while (start < end) {
|
|
7440
7444
|
start.setDate(start.getDate() + 1);
|
|
7441
7445
|
markedDates[start.toISOString().split("T")[0]] = {
|
|
7442
|
-
color:
|
|
7443
|
-
textColor:
|
|
7446
|
+
color: NAKHEEL_DEFAULT.NAKHEEL_BACKGROUND_SANDY,
|
|
7447
|
+
textColor: NAKHEEL_DEFAULT.NAKHEEL_TEXT_COLOR
|
|
7444
7448
|
};
|
|
7445
7449
|
}
|
|
7446
7450
|
}
|
|
7447
7451
|
if (startDate) {
|
|
7448
7452
|
markedDates[startDate] = {
|
|
7449
7453
|
startingDay: true,
|
|
7450
|
-
textColor: theme
|
|
7451
|
-
customContainerStyle: mode === "dark" ? { backgroundColor: theme
|
|
7452
|
-
backgroundColor: theme
|
|
7454
|
+
textColor: theme.SURFACE_STATIC,
|
|
7455
|
+
customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
|
|
7456
|
+
backgroundColor: theme.SURFACE_INVERTED
|
|
7453
7457
|
}
|
|
7454
7458
|
};
|
|
7455
7459
|
}
|
|
7456
7460
|
if (endDate) {
|
|
7457
7461
|
markedDates[endDate] = {
|
|
7458
7462
|
endingDay: true,
|
|
7459
|
-
color:
|
|
7460
|
-
textColor: theme
|
|
7461
|
-
customContainerStyle: mode === "dark" ? { backgroundColor: theme
|
|
7462
|
-
backgroundColor: theme
|
|
7463
|
+
color: NAKHEEL_DEFAULT.NAKHEEL_BACKGROUND_SANDY,
|
|
7464
|
+
textColor: theme.SURFACE_STATIC,
|
|
7465
|
+
customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
|
|
7466
|
+
backgroundColor: theme.SURFACE_INVERTED
|
|
7463
7467
|
}
|
|
7464
7468
|
};
|
|
7465
7469
|
markedDates[startDate] = {
|
|
7466
7470
|
startingDay: true,
|
|
7467
|
-
color:
|
|
7468
|
-
textColor: theme
|
|
7469
|
-
customContainerStyle: mode === "dark" ? { backgroundColor: theme
|
|
7470
|
-
backgroundColor: theme
|
|
7471
|
+
color: NAKHEEL_DEFAULT.NAKHEEL_BACKGROUND_SANDY,
|
|
7472
|
+
textColor: theme.SURFACE_STATIC,
|
|
7473
|
+
customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
|
|
7474
|
+
backgroundColor: theme.SURFACE_INVERTED
|
|
7471
7475
|
}
|
|
7472
7476
|
};
|
|
7473
7477
|
}
|
|
@@ -7482,15 +7486,15 @@ const DateRangePicker = (props) => {
|
|
|
7482
7486
|
markingType: "period",
|
|
7483
7487
|
theme: {
|
|
7484
7488
|
calendarBackground: "transparent",
|
|
7485
|
-
arrowColor: theme
|
|
7486
|
-
monthTextColor: theme
|
|
7487
|
-
dayTextColor: theme
|
|
7488
|
-
todayTextColor:
|
|
7489
|
-
textDisabledColor: theme
|
|
7489
|
+
arrowColor: theme.CONTENT_PRIMARY,
|
|
7490
|
+
monthTextColor: theme.CONTENT_PRIMARY,
|
|
7491
|
+
dayTextColor: theme.CONTENT_SECONDRY,
|
|
7492
|
+
todayTextColor: NAKHEEL_DEFAULT.NAKHEEL_BACKGROUND_SANDY,
|
|
7493
|
+
textDisabledColor: theme.CONTENT_DISABLE
|
|
7490
7494
|
},
|
|
7491
7495
|
style: {
|
|
7492
|
-
backgroundColor: theme
|
|
7493
|
-
color: theme
|
|
7496
|
+
backgroundColor: theme.SURFACE_SECONDARY,
|
|
7497
|
+
color: theme.CONTENT_SECONDRY,
|
|
7494
7498
|
borderRadius: 0
|
|
7495
7499
|
},
|
|
7496
7500
|
onDayPress,
|
|
@@ -7506,9 +7510,9 @@ const DateRangePicker = (props) => {
|
|
|
7506
7510
|
},
|
|
7507
7511
|
containerStyle: {
|
|
7508
7512
|
...styles$d.applyButton,
|
|
7509
|
-
backgroundColor: theme
|
|
7513
|
+
backgroundColor: theme.SURFACE_INVERTED
|
|
7510
7514
|
},
|
|
7511
|
-
textStyle: { color: theme
|
|
7515
|
+
textStyle: { color: theme.CONTENT_INVERTED },
|
|
7512
7516
|
disabled: isButtonDisabled
|
|
7513
7517
|
}
|
|
7514
7518
|
));
|
|
@@ -9587,6 +9591,7 @@ exports.FeedbackForm = feedback;
|
|
|
9587
9591
|
exports.FileUpload = FileUpload;
|
|
9588
9592
|
exports.FontStyle = FontStyle;
|
|
9589
9593
|
exports.Line = Line;
|
|
9594
|
+
exports.NAKHEEL_DEFAULT = NAKHEEL_DEFAULT;
|
|
9590
9595
|
exports.NotificationBandge = NotificationBandge;
|
|
9591
9596
|
exports.OTPInput = OTPInput;
|
|
9592
9597
|
exports.OurOfficesButton = OurOffices;
|