dhre-ui-kit 2.0.4 → 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 +40 -33
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +40 -34
- 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",
|
|
@@ -597,9 +601,9 @@ const DHRE_DEFAULT = {
|
|
|
597
601
|
DH_BG_GREY_900: "#6F7387",
|
|
598
602
|
DH_BG_GREY: "#F2F3F8",
|
|
599
603
|
DH_SUCESS: "#2DE3A6",
|
|
600
|
-
DH_ERROR: "#
|
|
604
|
+
DH_ERROR: "#E8594F",
|
|
601
605
|
DH_INFO: "#339ECF",
|
|
602
|
-
DH_SEMENTIC_ERROR: "#
|
|
606
|
+
DH_SEMENTIC_ERROR: "#E8594F",
|
|
603
607
|
DH_SEMENTIC_WARNING: "#EB8425"
|
|
604
608
|
};
|
|
605
609
|
const DHRE_COLORS_TEXT = {
|
|
@@ -6702,7 +6706,7 @@ const Toast = React__default["default"].forwardRef(
|
|
|
6702
6706
|
style: [
|
|
6703
6707
|
styles$l.container,
|
|
6704
6708
|
{ bottom },
|
|
6705
|
-
{ backgroundColor: isSuccess ? "#00B578" : "#
|
|
6709
|
+
{ backgroundColor: isSuccess ? "#00B578" : "#E8594F" },
|
|
6706
6710
|
{ height: verticalScale(height) }
|
|
6707
6711
|
],
|
|
6708
6712
|
testID: "TOAST"
|
|
@@ -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
|
));
|
|
@@ -8970,7 +8974,7 @@ const styles$3 = reactNative.StyleSheet.create({
|
|
|
8970
8974
|
},
|
|
8971
8975
|
sliderContainer: {
|
|
8972
8976
|
height: verticalScale(48),
|
|
8973
|
-
borderRadius: moderateScale(25),
|
|
8977
|
+
// borderRadius: moderateScale(25),
|
|
8974
8978
|
overflow: "hidden",
|
|
8975
8979
|
justifyContent: "center"
|
|
8976
8980
|
},
|
|
@@ -8984,7 +8988,7 @@ const styles$3 = reactNative.StyleSheet.create({
|
|
|
8984
8988
|
height: verticalScale(40),
|
|
8985
8989
|
justifyContent: "center",
|
|
8986
8990
|
alignItems: "center",
|
|
8987
|
-
borderRadius: moderateScale(20),
|
|
8991
|
+
// borderRadius: moderateScale(20),
|
|
8988
8992
|
margin: 4
|
|
8989
8993
|
},
|
|
8990
8994
|
buttonTextContainer: {
|
|
@@ -8994,8 +8998,8 @@ const styles$3 = reactNative.StyleSheet.create({
|
|
|
8994
8998
|
bottom: 0,
|
|
8995
8999
|
top: 0,
|
|
8996
9000
|
alignItems: "center",
|
|
8997
|
-
justifyContent: "center"
|
|
8998
|
-
borderRadius: 25
|
|
9001
|
+
justifyContent: "center"
|
|
9002
|
+
// borderRadius: 25,
|
|
8999
9003
|
}
|
|
9000
9004
|
});
|
|
9001
9005
|
|
|
@@ -9142,7 +9146,7 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
9142
9146
|
backgroundColor: theme.SURFACE_PRIMARY,
|
|
9143
9147
|
width: verticalScale(size),
|
|
9144
9148
|
height: verticalScale(size),
|
|
9145
|
-
borderRadius: verticalScale(size / 2),
|
|
9149
|
+
// borderRadius: verticalScale(size / 2),
|
|
9146
9150
|
...sliderStyle
|
|
9147
9151
|
}
|
|
9148
9152
|
},
|
|
@@ -9436,12 +9440,14 @@ const PropertyDetails = ({
|
|
|
9436
9440
|
...styles$1.container,
|
|
9437
9441
|
backgroundColor: theme.SURFACE_SECONDARY,
|
|
9438
9442
|
borderColor: theme.BORDER_SEPERATOR_HEADER,
|
|
9439
|
-
...containerStyle
|
|
9443
|
+
...containerStyle,
|
|
9444
|
+
...{ borderRadius: 0 }
|
|
9440
9445
|
}
|
|
9441
9446
|
},
|
|
9442
9447
|
React__default["default"].cloneElement(icon, {
|
|
9443
9448
|
width: moderateScale(87),
|
|
9444
|
-
height: moderateScale(87)
|
|
9449
|
+
height: moderateScale(87),
|
|
9450
|
+
borderRadius: 0
|
|
9445
9451
|
}),
|
|
9446
9452
|
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$1.propertyInfo }, brandIcon, /* @__PURE__ */ React__default["default"].createElement(
|
|
9447
9453
|
CustomTypography,
|
|
@@ -9585,6 +9591,7 @@ exports.FeedbackForm = feedback;
|
|
|
9585
9591
|
exports.FileUpload = FileUpload;
|
|
9586
9592
|
exports.FontStyle = FontStyle;
|
|
9587
9593
|
exports.Line = Line;
|
|
9594
|
+
exports.NAKHEEL_DEFAULT = NAKHEEL_DEFAULT;
|
|
9588
9595
|
exports.NotificationBandge = NotificationBandge;
|
|
9589
9596
|
exports.OTPInput = OTPInput;
|
|
9590
9597
|
exports.OurOfficesButton = OurOffices;
|