dhre-ui-kit 3.1.0 → 3.3.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/index.d.ts +1 -0
- package/lib/index.js +58 -13
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +51 -14
- package/lib/index.mjs.map +1 -1
- package/lib/theme/colors.d.ts +2 -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/index.mjs
CHANGED
|
@@ -189,6 +189,7 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
|
|
|
189
189
|
Theme2["STROKE_ACTIVE"] = "STROKE_ACTIVE";
|
|
190
190
|
Theme2["STROKE_DISABLED_SELECTED"] = "STROKE_DISABLED_SELECTED";
|
|
191
191
|
Theme2["SHADOW_10"] = "SHADOW_10";
|
|
192
|
+
Theme2["SHADOW_SOFT_LIGHTEST"] = "SHADOW_SOFT_LIGHTEST";
|
|
192
193
|
return Theme2;
|
|
193
194
|
})(Theme || {});
|
|
194
195
|
|
|
@@ -390,7 +391,8 @@ const DHRE_DEEP_SPACE_BLUE = {
|
|
|
390
391
|
200: "#D8DDEA",
|
|
391
392
|
100: "#F5F8FF",
|
|
392
393
|
DSP_900_TRANSPERANT_20: "rgba(0, 10, 40, 0.20)",
|
|
393
|
-
DSP_900_TRANSPERANT_10: "rgba(0, 10, 40, 0.10)"
|
|
394
|
+
DSP_900_TRANSPERANT_10: "rgba(0, 10, 40, 0.10)",
|
|
395
|
+
DSP_900_TRANSPERANT_30: "rgba(0, 10, 40, 0.30)"
|
|
394
396
|
};
|
|
395
397
|
const DHRE_CORE_BLUE = {
|
|
396
398
|
400: "#15214B",
|
|
@@ -432,7 +434,8 @@ const DHRE_SUCCESS_GREEN = {
|
|
|
432
434
|
100: "#C4E3CC",
|
|
433
435
|
50: "#EBF7EE",
|
|
434
436
|
TRANSPARENT_50: "rgba(137, 199, 152, 0.50)",
|
|
435
|
-
TRANSPARENT_10: "rgba(137, 199, 152, 0.10)"
|
|
437
|
+
TRANSPARENT_10: "rgba(137, 199, 152, 0.10)",
|
|
438
|
+
TRANSPARENT_30: "rgba(137, 199, 152, 0.30)"
|
|
436
439
|
};
|
|
437
440
|
const DHRE_ORANGE_WARNING = {
|
|
438
441
|
400: "#A4560E",
|
|
@@ -874,6 +877,12 @@ const theme = {
|
|
|
874
877
|
[Theme.SHADOW_10]: {
|
|
875
878
|
dark: "rgba(255, 255, 255, 0.20)",
|
|
876
879
|
light: "rgba(0, 0, 0, 0.10)"
|
|
880
|
+
},
|
|
881
|
+
// Figma: effects/dh-shadow/5, "Shadow/Soft/Lightest" (dropdown/menu surfaces).
|
|
882
|
+
[Theme.SHADOW_SOFT_LIGHTEST]: {
|
|
883
|
+
dark: "rgba(255, 255, 255, 0.05)",
|
|
884
|
+
light: "rgba(0, 10, 40, 0.05)"
|
|
885
|
+
// light-theme value pending DHDS Figma spec
|
|
877
886
|
}
|
|
878
887
|
};
|
|
879
888
|
|
|
@@ -3864,6 +3873,13 @@ const OUTLINED_GRADIENT_COLORS = [
|
|
|
3864
3873
|
const OUTLINED_GRADIENT_START = { x: 0, y: 0 };
|
|
3865
3874
|
const OUTLINED_GRADIENT_END = { x: 1, y: 1 };
|
|
3866
3875
|
const OUTLINED_BORDER_WIDTH = 1;
|
|
3876
|
+
const TAG_SUCCESS_GRADIENT_COLORS = [
|
|
3877
|
+
DHRE_DEEP_SPACE_BLUE.DSP_900_TRANSPERANT_30,
|
|
3878
|
+
DHRE_SUCCESS_GREEN.TRANSPARENT_30
|
|
3879
|
+
];
|
|
3880
|
+
const TAG_SUCCESS_GRADIENT_BASE_COLOR = DHRE_DEEP_SPACE_BLUE[900];
|
|
3881
|
+
const TAG_SUCCESS_GRADIENT_START = { x: 0, y: 0 };
|
|
3882
|
+
const TAG_SUCCESS_GRADIENT_END = { x: 1, y: 0 };
|
|
3867
3883
|
|
|
3868
3884
|
const styles$f = StyleSheet.create({
|
|
3869
3885
|
container: {
|
|
@@ -11868,19 +11884,32 @@ const CustomDropdown = (props) => {
|
|
|
11868
11884
|
};
|
|
11869
11885
|
const renderItem = (item) => {
|
|
11870
11886
|
const isSelected = item[valueField] === value;
|
|
11871
|
-
return /* @__PURE__ */ React.createElement(
|
|
11872
|
-
|
|
11887
|
+
return /* @__PURE__ */ React.createElement(
|
|
11888
|
+
View,
|
|
11873
11889
|
{
|
|
11874
11890
|
style: [
|
|
11875
|
-
styles$6.
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11891
|
+
styles$6.itemContainer,
|
|
11892
|
+
isSelected && {
|
|
11893
|
+
backgroundColor: theme.SURFACE_INVERTED,
|
|
11894
|
+
borderRadius: DHRE_RADIUS_BASE.RADIUS_8
|
|
11895
|
+
},
|
|
11896
|
+
itemContainerStyle
|
|
11880
11897
|
]
|
|
11881
11898
|
},
|
|
11882
|
-
|
|
11883
|
-
|
|
11899
|
+
/* @__PURE__ */ React.createElement(
|
|
11900
|
+
Text,
|
|
11901
|
+
{
|
|
11902
|
+
style: [
|
|
11903
|
+
styles$6.itemText,
|
|
11904
|
+
FONT_STYLES[FontStyle.BODY1_MEDIUM],
|
|
11905
|
+
{ color: isSelected ? theme.CONTENT_INVERTED : theme.CONTENT_PRIMARY },
|
|
11906
|
+
itemTextStyle,
|
|
11907
|
+
isSelected && selectedItemTextStyle
|
|
11908
|
+
]
|
|
11909
|
+
},
|
|
11910
|
+
item[labelField]
|
|
11911
|
+
)
|
|
11912
|
+
);
|
|
11884
11913
|
};
|
|
11885
11914
|
return /* @__PURE__ */ React.createElement(View, { style: [styles$6.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React.createElement(
|
|
11886
11915
|
Dropdown,
|
|
@@ -11933,7 +11962,13 @@ const CustomDropdown = (props) => {
|
|
|
11933
11962
|
backgroundColor: theme.SURFACE_SECONDARY,
|
|
11934
11963
|
borderColor: theme.STROKE_TERTIARY,
|
|
11935
11964
|
borderWidth: 1,
|
|
11936
|
-
borderRadius: DHRE_RADIUS_BASE.RADIUS_8
|
|
11965
|
+
borderRadius: DHRE_RADIUS_BASE.RADIUS_8,
|
|
11966
|
+
padding: DHRE_PADDING_BASE.PADDING_16,
|
|
11967
|
+
shadowColor: theme.SHADOW_SOFT_LIGHTEST,
|
|
11968
|
+
shadowOffset: { width: 0, height: 2 },
|
|
11969
|
+
shadowOpacity: 1,
|
|
11970
|
+
shadowRadius: 10,
|
|
11971
|
+
elevation: 4
|
|
11937
11972
|
},
|
|
11938
11973
|
menuContainerStyle
|
|
11939
11974
|
],
|
|
@@ -11994,8 +12029,10 @@ const styles$6 = StyleSheet.create({
|
|
|
11994
12029
|
maxHeight: verticalScale(150)
|
|
11995
12030
|
},
|
|
11996
12031
|
itemContainer: {
|
|
12032
|
+
minHeight: verticalScale(48),
|
|
11997
12033
|
paddingVertical: verticalScale(8),
|
|
11998
|
-
paddingHorizontal: horizontalScale(
|
|
12034
|
+
paddingHorizontal: horizontalScale(16),
|
|
12035
|
+
justifyContent: "center"
|
|
11999
12036
|
},
|
|
12000
12037
|
itemText: {},
|
|
12001
12038
|
helperText: {
|
|
@@ -13619,5 +13656,5 @@ const RadioButtonGroup = ({
|
|
|
13619
13656
|
};
|
|
13620
13657
|
var index = withThemeProvider(RadioButtonGroup);
|
|
13621
13658
|
|
|
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 };
|
|
13659
|
+
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 };
|
|
13623
13660
|
//# sourceMappingURL=index.mjs.map
|