dhre-ui-kit 3.0.2 → 3.2.0
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/components/checkBox/CheckBox.interface.d.ts +3 -0
- package/lib/components/checkBox/CheckBox.styles.d.ts +5 -0
- package/lib/components/toast/Toast.styles.d.ts +0 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +109 -10
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +99 -11
- package/lib/index.mjs.map +1 -1
- package/lib/theme/colors.d.ts +14 -0
- package/lib/theme/gradients.d.ts +10 -0
- package/lib/theme/themes.d.ts +4 -0
- package/lib/utils/appEnum.d.ts +2 -1
- package/package.json +1 -1
- package/lib/components/customDocumentPicker/CustomDocumentPicker.d.ts +0 -0
- package/lib/components/customDocumentPicker/CustomDocumentPicker.interface.d.ts +0 -0
- package/lib/components/customDocumentPicker/CustomDocumentPicker.styles.d.ts +0 -30
- package/lib/components/customDocumentPicker/index.d.ts +0 -0
package/lib/index.mjs
CHANGED
|
@@ -188,6 +188,7 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
|
|
|
188
188
|
Theme2["STROKE_DISABLED_DARK2"] = "STROKE_DISABLED_DARK2";
|
|
189
189
|
Theme2["STROKE_ACTIVE"] = "STROKE_ACTIVE";
|
|
190
190
|
Theme2["STROKE_DISABLED_SELECTED"] = "STROKE_DISABLED_SELECTED";
|
|
191
|
+
Theme2["SHADOW_10"] = "SHADOW_10";
|
|
191
192
|
return Theme2;
|
|
192
193
|
})(Theme || {});
|
|
193
194
|
|
|
@@ -389,7 +390,8 @@ const DHRE_DEEP_SPACE_BLUE = {
|
|
|
389
390
|
200: "#D8DDEA",
|
|
390
391
|
100: "#F5F8FF",
|
|
391
392
|
DSP_900_TRANSPERANT_20: "rgba(0, 10, 40, 0.20)",
|
|
392
|
-
DSP_900_TRANSPERANT_10: "rgba(0, 10, 40, 0.10)"
|
|
393
|
+
DSP_900_TRANSPERANT_10: "rgba(0, 10, 40, 0.10)",
|
|
394
|
+
DSP_900_TRANSPERANT_30: "rgba(0, 10, 40, 0.30)"
|
|
393
395
|
};
|
|
394
396
|
const DHRE_CORE_BLUE = {
|
|
395
397
|
400: "#15214B",
|
|
@@ -431,7 +433,8 @@ const DHRE_SUCCESS_GREEN = {
|
|
|
431
433
|
100: "#C4E3CC",
|
|
432
434
|
50: "#EBF7EE",
|
|
433
435
|
TRANSPARENT_50: "rgba(137, 199, 152, 0.50)",
|
|
434
|
-
TRANSPARENT_10: "rgba(137, 199, 152, 0.10)"
|
|
436
|
+
TRANSPARENT_10: "rgba(137, 199, 152, 0.10)",
|
|
437
|
+
TRANSPARENT_30: "rgba(137, 199, 152, 0.30)"
|
|
435
438
|
};
|
|
436
439
|
const DHRE_ORANGE_WARNING = {
|
|
437
440
|
400: "#A4560E",
|
|
@@ -459,6 +462,70 @@ const DHRE_CONFIRMATION_BASE_GRADIENT = {
|
|
|
459
462
|
light: ["rgba(165, 233, 255, 0)", "#52C5E8"],
|
|
460
463
|
dark: ["rgba(165, 233, 255, 0)", "#279DC1"]
|
|
461
464
|
};
|
|
465
|
+
const GRADIENT_COLORS_SUCCESS = {
|
|
466
|
+
light: [
|
|
467
|
+
"#89C798",
|
|
468
|
+
"#FFFFFF",
|
|
469
|
+
"#A5E9FF",
|
|
470
|
+
"#52C5E8",
|
|
471
|
+
"#0B214A",
|
|
472
|
+
"#355D7A"
|
|
473
|
+
],
|
|
474
|
+
// NEED TO UPDATE GRADIENT COLORS
|
|
475
|
+
dark: [
|
|
476
|
+
"#24584B",
|
|
477
|
+
"#123D46",
|
|
478
|
+
"#00113A",
|
|
479
|
+
"#000A28",
|
|
480
|
+
"#0B214A",
|
|
481
|
+
"#355D7A"
|
|
482
|
+
]
|
|
483
|
+
};
|
|
484
|
+
const GRADIENT_COLORS_ERROR = {
|
|
485
|
+
light: [
|
|
486
|
+
"#F0809E",
|
|
487
|
+
"#FFFFFF",
|
|
488
|
+
"#A5E9FF",
|
|
489
|
+
"#52C5E8",
|
|
490
|
+
"#0B214A",
|
|
491
|
+
"#355D7A"
|
|
492
|
+
],
|
|
493
|
+
// NEED TO UPDATE GRADIENT COLORS
|
|
494
|
+
dark: [
|
|
495
|
+
"#EB0542",
|
|
496
|
+
// 0%
|
|
497
|
+
"#780835",
|
|
498
|
+
// ~2%
|
|
499
|
+
"#00113A",
|
|
500
|
+
// 28%
|
|
501
|
+
"#000A28",
|
|
502
|
+
// 45%
|
|
503
|
+
"#0B214A",
|
|
504
|
+
// 88%
|
|
505
|
+
"#355D7A"
|
|
506
|
+
// 100%
|
|
507
|
+
]
|
|
508
|
+
};
|
|
509
|
+
const GRADIENT_COLORS_PENDING = {
|
|
510
|
+
light: ["#E9F8FF", "#52C5E8"],
|
|
511
|
+
// NEED TO UPDATE GRADIENT COLORS
|
|
512
|
+
dark: [
|
|
513
|
+
"#EB0542",
|
|
514
|
+
// 0%
|
|
515
|
+
"#780835",
|
|
516
|
+
// ~2%
|
|
517
|
+
"#00113A",
|
|
518
|
+
// 28%
|
|
519
|
+
"#000A28",
|
|
520
|
+
// 45%
|
|
521
|
+
"#000A28",
|
|
522
|
+
// 72%
|
|
523
|
+
"#0B214A",
|
|
524
|
+
// 88%
|
|
525
|
+
"#355D7A"
|
|
526
|
+
// 100%
|
|
527
|
+
]
|
|
528
|
+
};
|
|
462
529
|
|
|
463
530
|
const theme = {
|
|
464
531
|
[Theme.SURFACE_PRIMARY]: {
|
|
@@ -805,6 +872,10 @@ const theme = {
|
|
|
805
872
|
[Theme.STROKE_DISABLED_SELECTED]: {
|
|
806
873
|
dark: "#003f48",
|
|
807
874
|
light: "#9ADFE8"
|
|
875
|
+
},
|
|
876
|
+
[Theme.SHADOW_10]: {
|
|
877
|
+
dark: "rgba(255, 255, 255, 0.20)",
|
|
878
|
+
light: "rgba(0, 0, 0, 0.10)"
|
|
808
879
|
}
|
|
809
880
|
};
|
|
810
881
|
|
|
@@ -2046,6 +2117,11 @@ const styles$u = StyleSheet.create({
|
|
|
2046
2117
|
borderRadius: DHRE_RADIUS.SM,
|
|
2047
2118
|
borderWidth: 1,
|
|
2048
2119
|
overflow: "hidden"
|
|
2120
|
+
},
|
|
2121
|
+
labelContainer: {
|
|
2122
|
+
flexDirection: "row",
|
|
2123
|
+
alignItems: "center",
|
|
2124
|
+
gap: DHRE_PADDING.SM
|
|
2049
2125
|
}
|
|
2050
2126
|
});
|
|
2051
2127
|
|
|
@@ -2083,9 +2159,11 @@ const Checkbox = ({
|
|
|
2083
2159
|
titleVariant,
|
|
2084
2160
|
titleStyle,
|
|
2085
2161
|
containerStyle,
|
|
2162
|
+
checkBoxHeaderStyle,
|
|
2086
2163
|
checkboxStyle,
|
|
2087
2164
|
onPress,
|
|
2088
|
-
hideCheckbox = false
|
|
2165
|
+
hideCheckbox = false,
|
|
2166
|
+
labelIcon
|
|
2089
2167
|
}) => {
|
|
2090
2168
|
const { theme } = useTheme();
|
|
2091
2169
|
const [checked, setChecked] = useState(isChecked || false);
|
|
@@ -2121,16 +2199,21 @@ const Checkbox = ({
|
|
|
2121
2199
|
borderColor: disable ? theme[Theme.CONTENT_DISABLE_DARK] : theme[Theme.STROKE_ACTIVE],
|
|
2122
2200
|
borderWidth: disable && isFilledState ? 0 : 1
|
|
2123
2201
|
};
|
|
2124
|
-
return /* @__PURE__ */ React.createElement(View, { testID, style: containerStyle }, /* @__PURE__ */ React.createElement(View, { style: styles$u.directionStyle }, hideCheckbox ? null : /* @__PURE__ */ React.createElement(
|
|
2202
|
+
return /* @__PURE__ */ React.createElement(View, { testID, style: containerStyle }, /* @__PURE__ */ React.createElement(View, { style: [styles$u.directionStyle, checkBoxHeaderStyle] }, hideCheckbox ? null : /* @__PURE__ */ React.createElement(
|
|
2125
2203
|
Pressable,
|
|
2126
2204
|
{
|
|
2127
2205
|
testID: "Checkbox-Press",
|
|
2128
2206
|
onPressIn: handlePress,
|
|
2129
2207
|
disabled: disable,
|
|
2130
|
-
style: [
|
|
2208
|
+
style: [
|
|
2209
|
+
styles$u.checkboxContainer,
|
|
2210
|
+
iconContainerSizeStyle,
|
|
2211
|
+
checkboxContainerDynamicStyle,
|
|
2212
|
+
checkboxStyle
|
|
2213
|
+
]
|
|
2131
2214
|
},
|
|
2132
2215
|
resolvedIcon ? React.cloneElement(resolvedIcon) : null
|
|
2133
|
-
), /* @__PURE__ */ React.createElement(
|
|
2216
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles$u.labelContainer }, labelIcon && React.cloneElement(labelIcon, { width: 20, height: 20 }), /* @__PURE__ */ React.createElement(
|
|
2134
2217
|
CustomTypography,
|
|
2135
2218
|
{
|
|
2136
2219
|
variant: resolvedVariant,
|
|
@@ -2138,7 +2221,7 @@ const Checkbox = ({
|
|
|
2138
2221
|
style: [labelColorStyle, titleStyle],
|
|
2139
2222
|
onPressIn: onPress
|
|
2140
2223
|
}
|
|
2141
|
-
)));
|
|
2224
|
+
))));
|
|
2142
2225
|
};
|
|
2143
2226
|
var CheckBox = withThemeProvider(Checkbox);
|
|
2144
2227
|
|
|
@@ -3256,8 +3339,7 @@ const styles$j = StyleSheet.create({
|
|
|
3256
3339
|
top: DHRE_SPACING.XXL,
|
|
3257
3340
|
borderRadius: DHRE_RADIUS.MD,
|
|
3258
3341
|
overflow: "hidden",
|
|
3259
|
-
minHeight: DHRE_SPACING.XXL
|
|
3260
|
-
height: DHRE_SPACING.XXL
|
|
3342
|
+
minHeight: DHRE_SPACING.XXL
|
|
3261
3343
|
},
|
|
3262
3344
|
toastContainer: {
|
|
3263
3345
|
paddingVertical: DHRE_PADDING.LG,
|
|
@@ -3368,7 +3450,6 @@ const Toast = React.forwardRef(
|
|
|
3368
3450
|
{
|
|
3369
3451
|
style: [
|
|
3370
3452
|
styles$j.container,
|
|
3371
|
-
{ bottom },
|
|
3372
3453
|
{ backgroundColor: theme.SURFACE_TERTIARY }
|
|
3373
3454
|
],
|
|
3374
3455
|
testID: "TOAST"
|
|
@@ -3785,6 +3866,13 @@ const OUTLINED_GRADIENT_COLORS = [
|
|
|
3785
3866
|
const OUTLINED_GRADIENT_START = { x: 0, y: 0 };
|
|
3786
3867
|
const OUTLINED_GRADIENT_END = { x: 1, y: 1 };
|
|
3787
3868
|
const OUTLINED_BORDER_WIDTH = 1;
|
|
3869
|
+
const TAG_SUCCESS_GRADIENT_COLORS = [
|
|
3870
|
+
DHRE_DEEP_SPACE_BLUE.DSP_900_TRANSPERANT_30,
|
|
3871
|
+
DHRE_SUCCESS_GREEN.TRANSPARENT_30
|
|
3872
|
+
];
|
|
3873
|
+
const TAG_SUCCESS_GRADIENT_BASE_COLOR = DHRE_DEEP_SPACE_BLUE[900];
|
|
3874
|
+
const TAG_SUCCESS_GRADIENT_START = { x: 0, y: 0 };
|
|
3875
|
+
const TAG_SUCCESS_GRADIENT_END = { x: 1, y: 0 };
|
|
3788
3876
|
|
|
3789
3877
|
const styles$f = StyleSheet.create({
|
|
3790
3878
|
container: {
|
|
@@ -13540,5 +13628,5 @@ const RadioButtonGroup = ({
|
|
|
13540
13628
|
};
|
|
13541
13629
|
var index = withThemeProvider(RadioButtonGroup);
|
|
13542
13630
|
|
|
13543
|
-
export { Accordion$1 as Accordion, AnimationWithImperativeApi as AnimationLoitte, index$2 as AppointmentCard, Avatar$1 as Avatar, AvatarSize, Background$1 as Background, BackgroundVariant, Badge$1 as Badge, BottomDrawer$1 as BottomDrawer, Button, Cards, category as Category, CheckBox, Chip$1 as Chip, ContactModel, CountryDropDown as CountryPicker, CustomDropdown$1 as CustomDropdown, CustomHeader$1 as CustomHeader, CustomIcon$1 as CustomIcon, CustomLoader$1 as CustomLoader, CustomProgressBar$1 as CustomProgressBar, CustomSearchBar$1 as CustomSearchBar, index$3 as CustomSlideButton, CustomSwitchBtn, CustomText$1 as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_AVATAR_SIZE, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_COMPONENT_HEIGHT, DHRE_CONFIRMATION_BASE_GRADIENT, DHRE_CONFIRMATION_ERROR_GRADIENT, DHRE_CORE_BLUE, DHRE_CYAN_HIGHLIGHT, DHRE_DEEP_SPACE_BLUE, DHRE_DEFAULT, DHRE_ICON_SIZE, DHRE_IMAGE_SIZE, DHRE_INFO_BLUE, DHRE_ORANGE_WARNING, DHRE_PADDING, DHRE_PADDING_BASE, DHRE_RADIUS, DHRE_RADIUS_BASE, DHRE_RED_ERROR, DHRE_SPACING, DHRE_SPACING_BASE, DHRE_STROKE, DHRE_SUCCESS_GREEN, DHRE_WHITE, DateRangePicker$1 as DateRangePicker, DropDown, FONT_STYLES, feedback as FeedbackForm, FileUpload, FontStyle, Line, Loader$1 as Loader, NAKHEEL_DEFAULT, NotificationBandge, OTPInput, OurOffices as OurOfficesButton, PdfView, PopUp, index$1 as PropertyDetails, index as RadioButtonGroup, ShapeType, TagSingleSelection as SingleSelectionTags, Star as StarRating, index$4 as Stepper, SwipableList$1 as SwipableList, Tabs$1 as Tabs, Tags, TextDirectType, Textinput as TextInput, Theme, ToastWithProvider as Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, Topic$1 as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
|
|
13631
|
+
export { Accordion$1 as Accordion, AnimationWithImperativeApi as AnimationLoitte, index$2 as AppointmentCard, Avatar$1 as Avatar, AvatarSize, Background$1 as Background, BackgroundVariant, Badge$1 as Badge, BottomDrawer$1 as BottomDrawer, Button, Cards, category as Category, CheckBox, Chip$1 as Chip, ContactModel, CountryDropDown as CountryPicker, CustomDropdown$1 as CustomDropdown, CustomHeader$1 as CustomHeader, CustomIcon$1 as CustomIcon, CustomLoader$1 as CustomLoader, CustomProgressBar$1 as CustomProgressBar, CustomSearchBar$1 as CustomSearchBar, index$3 as CustomSlideButton, CustomSwitchBtn, CustomText$1 as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_AVATAR_SIZE, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_COMPONENT_HEIGHT, DHRE_CONFIRMATION_BASE_GRADIENT, DHRE_CONFIRMATION_ERROR_GRADIENT, DHRE_CORE_BLUE, DHRE_CYAN_HIGHLIGHT, DHRE_DEEP_SPACE_BLUE, DHRE_DEFAULT, DHRE_ICON_SIZE, DHRE_IMAGE_SIZE, DHRE_INFO_BLUE, DHRE_ORANGE_WARNING, DHRE_PADDING, DHRE_PADDING_BASE, DHRE_RADIUS, DHRE_RADIUS_BASE, DHRE_RED_ERROR, DHRE_SPACING, DHRE_SPACING_BASE, DHRE_STROKE, DHRE_SUCCESS_GREEN, DHRE_WHITE, DateRangePicker$1 as DateRangePicker, DropDown, FONT_STYLES, feedback as FeedbackForm, FileUpload, FontStyle, GRADIENT_COLORS_ERROR, GRADIENT_COLORS_PENDING, GRADIENT_COLORS_SUCCESS, Line, Loader$1 as Loader, NAKHEEL_DEFAULT, NotificationBandge, OTPInput, OUTLINED_BORDER_WIDTH, OUTLINED_GRADIENT_COLORS, OUTLINED_GRADIENT_END, OUTLINED_GRADIENT_START, OurOffices as OurOfficesButton, PdfView, PopUp, index$1 as PropertyDetails, index as RadioButtonGroup, ShapeType, TagSingleSelection as SingleSelectionTags, Star as StarRating, index$4 as Stepper, SwipableList$1 as SwipableList, TAG_SUCCESS_GRADIENT_BASE_COLOR, TAG_SUCCESS_GRADIENT_COLORS, TAG_SUCCESS_GRADIENT_END, TAG_SUCCESS_GRADIENT_START, Tabs$1 as Tabs, Tags, TextDirectType, Textinput as TextInput, Theme, ToastWithProvider as Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, Topic$1 as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
|
|
13544
13632
|
//# sourceMappingURL=index.mjs.map
|