dhre-ui-kit 3.0.2 → 3.1.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.js +90 -8
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +88 -9
- package/lib/index.mjs.map +1 -1
- package/lib/theme/colors.d.ts +12 -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
|
|
|
@@ -459,6 +460,70 @@ const DHRE_CONFIRMATION_BASE_GRADIENT = {
|
|
|
459
460
|
light: ["rgba(165, 233, 255, 0)", "#52C5E8"],
|
|
460
461
|
dark: ["rgba(165, 233, 255, 0)", "#279DC1"]
|
|
461
462
|
};
|
|
463
|
+
const GRADIENT_COLORS_SUCCESS = {
|
|
464
|
+
light: [
|
|
465
|
+
"#89C798",
|
|
466
|
+
"#FFFFFF",
|
|
467
|
+
"#A5E9FF",
|
|
468
|
+
"#52C5E8",
|
|
469
|
+
"#0B214A",
|
|
470
|
+
"#355D7A"
|
|
471
|
+
],
|
|
472
|
+
// NEED TO UPDATE GRADIENT COLORS
|
|
473
|
+
dark: [
|
|
474
|
+
"#24584B",
|
|
475
|
+
"#123D46",
|
|
476
|
+
"#00113A",
|
|
477
|
+
"#000A28",
|
|
478
|
+
"#0B214A",
|
|
479
|
+
"#355D7A"
|
|
480
|
+
]
|
|
481
|
+
};
|
|
482
|
+
const GRADIENT_COLORS_ERROR = {
|
|
483
|
+
light: [
|
|
484
|
+
"#F0809E",
|
|
485
|
+
"#FFFFFF",
|
|
486
|
+
"#A5E9FF",
|
|
487
|
+
"#52C5E8",
|
|
488
|
+
"#0B214A",
|
|
489
|
+
"#355D7A"
|
|
490
|
+
],
|
|
491
|
+
// NEED TO UPDATE GRADIENT COLORS
|
|
492
|
+
dark: [
|
|
493
|
+
"#EB0542",
|
|
494
|
+
// 0%
|
|
495
|
+
"#780835",
|
|
496
|
+
// ~2%
|
|
497
|
+
"#00113A",
|
|
498
|
+
// 28%
|
|
499
|
+
"#000A28",
|
|
500
|
+
// 45%
|
|
501
|
+
"#0B214A",
|
|
502
|
+
// 88%
|
|
503
|
+
"#355D7A"
|
|
504
|
+
// 100%
|
|
505
|
+
]
|
|
506
|
+
};
|
|
507
|
+
const GRADIENT_COLORS_PENDING = {
|
|
508
|
+
light: ["#E9F8FF", "#52C5E8"],
|
|
509
|
+
// NEED TO UPDATE GRADIENT COLORS
|
|
510
|
+
dark: [
|
|
511
|
+
"#EB0542",
|
|
512
|
+
// 0%
|
|
513
|
+
"#780835",
|
|
514
|
+
// ~2%
|
|
515
|
+
"#00113A",
|
|
516
|
+
// 28%
|
|
517
|
+
"#000A28",
|
|
518
|
+
// 45%
|
|
519
|
+
"#000A28",
|
|
520
|
+
// 72%
|
|
521
|
+
"#0B214A",
|
|
522
|
+
// 88%
|
|
523
|
+
"#355D7A"
|
|
524
|
+
// 100%
|
|
525
|
+
]
|
|
526
|
+
};
|
|
462
527
|
|
|
463
528
|
const theme = {
|
|
464
529
|
[Theme.SURFACE_PRIMARY]: {
|
|
@@ -805,6 +870,10 @@ const theme = {
|
|
|
805
870
|
[Theme.STROKE_DISABLED_SELECTED]: {
|
|
806
871
|
dark: "#003f48",
|
|
807
872
|
light: "#9ADFE8"
|
|
873
|
+
},
|
|
874
|
+
[Theme.SHADOW_10]: {
|
|
875
|
+
dark: "rgba(255, 255, 255, 0.20)",
|
|
876
|
+
light: "rgba(0, 0, 0, 0.10)"
|
|
808
877
|
}
|
|
809
878
|
};
|
|
810
879
|
|
|
@@ -2046,6 +2115,11 @@ const styles$u = StyleSheet.create({
|
|
|
2046
2115
|
borderRadius: DHRE_RADIUS.SM,
|
|
2047
2116
|
borderWidth: 1,
|
|
2048
2117
|
overflow: "hidden"
|
|
2118
|
+
},
|
|
2119
|
+
labelContainer: {
|
|
2120
|
+
flexDirection: "row",
|
|
2121
|
+
alignItems: "center",
|
|
2122
|
+
gap: DHRE_PADDING.SM
|
|
2049
2123
|
}
|
|
2050
2124
|
});
|
|
2051
2125
|
|
|
@@ -2083,9 +2157,11 @@ const Checkbox = ({
|
|
|
2083
2157
|
titleVariant,
|
|
2084
2158
|
titleStyle,
|
|
2085
2159
|
containerStyle,
|
|
2160
|
+
checkBoxHeaderStyle,
|
|
2086
2161
|
checkboxStyle,
|
|
2087
2162
|
onPress,
|
|
2088
|
-
hideCheckbox = false
|
|
2163
|
+
hideCheckbox = false,
|
|
2164
|
+
labelIcon
|
|
2089
2165
|
}) => {
|
|
2090
2166
|
const { theme } = useTheme();
|
|
2091
2167
|
const [checked, setChecked] = useState(isChecked || false);
|
|
@@ -2121,16 +2197,21 @@ const Checkbox = ({
|
|
|
2121
2197
|
borderColor: disable ? theme[Theme.CONTENT_DISABLE_DARK] : theme[Theme.STROKE_ACTIVE],
|
|
2122
2198
|
borderWidth: disable && isFilledState ? 0 : 1
|
|
2123
2199
|
};
|
|
2124
|
-
return /* @__PURE__ */ React.createElement(View, { testID, style: containerStyle }, /* @__PURE__ */ React.createElement(View, { style: styles$u.directionStyle }, hideCheckbox ? null : /* @__PURE__ */ React.createElement(
|
|
2200
|
+
return /* @__PURE__ */ React.createElement(View, { testID, style: containerStyle }, /* @__PURE__ */ React.createElement(View, { style: [styles$u.directionStyle, checkBoxHeaderStyle] }, hideCheckbox ? null : /* @__PURE__ */ React.createElement(
|
|
2125
2201
|
Pressable,
|
|
2126
2202
|
{
|
|
2127
2203
|
testID: "Checkbox-Press",
|
|
2128
2204
|
onPressIn: handlePress,
|
|
2129
2205
|
disabled: disable,
|
|
2130
|
-
style: [
|
|
2206
|
+
style: [
|
|
2207
|
+
styles$u.checkboxContainer,
|
|
2208
|
+
iconContainerSizeStyle,
|
|
2209
|
+
checkboxContainerDynamicStyle,
|
|
2210
|
+
checkboxStyle
|
|
2211
|
+
]
|
|
2131
2212
|
},
|
|
2132
2213
|
resolvedIcon ? React.cloneElement(resolvedIcon) : null
|
|
2133
|
-
), /* @__PURE__ */ React.createElement(
|
|
2214
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles$u.labelContainer }, labelIcon && React.cloneElement(labelIcon, { width: 20, height: 20 }), /* @__PURE__ */ React.createElement(
|
|
2134
2215
|
CustomTypography,
|
|
2135
2216
|
{
|
|
2136
2217
|
variant: resolvedVariant,
|
|
@@ -2138,7 +2219,7 @@ const Checkbox = ({
|
|
|
2138
2219
|
style: [labelColorStyle, titleStyle],
|
|
2139
2220
|
onPressIn: onPress
|
|
2140
2221
|
}
|
|
2141
|
-
)));
|
|
2222
|
+
))));
|
|
2142
2223
|
};
|
|
2143
2224
|
var CheckBox = withThemeProvider(Checkbox);
|
|
2144
2225
|
|
|
@@ -3256,8 +3337,7 @@ const styles$j = StyleSheet.create({
|
|
|
3256
3337
|
top: DHRE_SPACING.XXL,
|
|
3257
3338
|
borderRadius: DHRE_RADIUS.MD,
|
|
3258
3339
|
overflow: "hidden",
|
|
3259
|
-
minHeight: DHRE_SPACING.XXL
|
|
3260
|
-
height: DHRE_SPACING.XXL
|
|
3340
|
+
minHeight: DHRE_SPACING.XXL
|
|
3261
3341
|
},
|
|
3262
3342
|
toastContainer: {
|
|
3263
3343
|
paddingVertical: DHRE_PADDING.LG,
|
|
@@ -3368,7 +3448,6 @@ const Toast = React.forwardRef(
|
|
|
3368
3448
|
{
|
|
3369
3449
|
style: [
|
|
3370
3450
|
styles$j.container,
|
|
3371
|
-
{ bottom },
|
|
3372
3451
|
{ backgroundColor: theme.SURFACE_TERTIARY }
|
|
3373
3452
|
],
|
|
3374
3453
|
testID: "TOAST"
|
|
@@ -13540,5 +13619,5 @@ const RadioButtonGroup = ({
|
|
|
13540
13619
|
};
|
|
13541
13620
|
var index = withThemeProvider(RadioButtonGroup);
|
|
13542
13621
|
|
|
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 };
|
|
13622
|
+
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, 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 };
|
|
13544
13623
|
//# sourceMappingURL=index.mjs.map
|