dhre-ui-kit 3.0.1 → 3.0.2
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/accordion/Accordion.styles.d.ts +0 -1
- package/lib/components/bottomDrawer/BottomDrawer.styles.d.ts +0 -3
- package/lib/components/checkBox/CheckBox.interface.d.ts +7 -3
- package/lib/components/checkBox/CheckBox.styles.d.ts +3 -0
- package/lib/components/customIcon/CustomIcon.styles.d.ts +1 -10
- package/lib/components/customSlideButton/custom-slide-button.interface.d.ts +4 -0
- package/lib/components/customSlideButton/index.d.ts +2 -2
- package/lib/components/customSlideButton/styles.d.ts +6 -0
- package/lib/components/radio-button-group/RadioButtonGroup.interface.d.ts +4 -0
- package/lib/components/radio-button-group/index.d.ts +2 -2
- package/lib/components/radio-button-group/styles.d.ts +11 -3
- package/lib/components/textInput/Textinput.d.ts +1 -0
- package/lib/index.js +550 -436
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +546 -432
- package/lib/index.mjs.map +1 -1
- 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.js
CHANGED
|
@@ -223,6 +223,7 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
|
|
|
223
223
|
Theme2["STROKE_DISABLED_DARK"] = "STROKE_DISABLED_DARK";
|
|
224
224
|
Theme2["STROKE_DISABLED_DARK2"] = "STROKE_DISABLED_DARK2";
|
|
225
225
|
Theme2["STROKE_ACTIVE"] = "STROKE_ACTIVE";
|
|
226
|
+
Theme2["STROKE_DISABLED_SELECTED"] = "STROKE_DISABLED_SELECTED";
|
|
226
227
|
return Theme2;
|
|
227
228
|
})(Theme || {});
|
|
228
229
|
|
|
@@ -836,6 +837,10 @@ const theme = {
|
|
|
836
837
|
dark: "#009db3",
|
|
837
838
|
light: "#009db3"
|
|
838
839
|
// light-theme value pending DHDS Figma spec
|
|
840
|
+
},
|
|
841
|
+
[Theme.STROKE_DISABLED_SELECTED]: {
|
|
842
|
+
dark: "#003f48",
|
|
843
|
+
light: "#9ADFE8"
|
|
839
844
|
}
|
|
840
845
|
};
|
|
841
846
|
|
|
@@ -940,13 +945,13 @@ const CustomTypography = ({
|
|
|
940
945
|
reactNative.Text,
|
|
941
946
|
{
|
|
942
947
|
testID,
|
|
943
|
-
style: [textStyle, styles$
|
|
948
|
+
style: [textStyle, styles$A.container, style],
|
|
944
949
|
...props
|
|
945
950
|
},
|
|
946
951
|
text
|
|
947
952
|
);
|
|
948
953
|
};
|
|
949
|
-
const styles$
|
|
954
|
+
const styles$A = reactNative.StyleSheet.create({
|
|
950
955
|
container: { writingDirection: "auto", alignSelf: "flex-start" }
|
|
951
956
|
});
|
|
952
957
|
|
|
@@ -985,7 +990,7 @@ const commonStyles = reactNative.StyleSheet.create({
|
|
|
985
990
|
}
|
|
986
991
|
});
|
|
987
992
|
|
|
988
|
-
const styles$
|
|
993
|
+
const styles$z = reactNative.StyleSheet.create({
|
|
989
994
|
badge: {
|
|
990
995
|
backgroundColor: DHRE_COLORS_ALERT.DH_SUCCESS_GREEN,
|
|
991
996
|
borderRadius: 15,
|
|
@@ -1012,16 +1017,16 @@ const Badge = ({
|
|
|
1012
1017
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
1013
1018
|
reactNative.Pressable,
|
|
1014
1019
|
{
|
|
1015
|
-
style: [styles$
|
|
1020
|
+
style: [styles$z.badge, commonStyles.centerRow, style],
|
|
1016
1021
|
testID: "BADGE",
|
|
1017
1022
|
onPress: handleIconPress
|
|
1018
1023
|
},
|
|
1019
|
-
iconName && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
1024
|
+
iconName && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.icon, iconStyle] }, React__default["default"].cloneElement(iconName)),
|
|
1020
1025
|
text && /* @__PURE__ */ React__default["default"].createElement(
|
|
1021
1026
|
CustomTypography,
|
|
1022
1027
|
{
|
|
1023
1028
|
variant: "B3semiBold",
|
|
1024
|
-
style: [styles$
|
|
1029
|
+
style: [styles$z.text, textStyle],
|
|
1025
1030
|
text
|
|
1026
1031
|
}
|
|
1027
1032
|
)
|
|
@@ -1189,7 +1194,7 @@ const chipStyles = reactNative.StyleSheet.create({
|
|
|
1189
1194
|
justifyContent: "center",
|
|
1190
1195
|
borderWidth: 1,
|
|
1191
1196
|
borderRadius: DHRE_RADIUS.PILL,
|
|
1192
|
-
gap:
|
|
1197
|
+
gap: DHRE_PADDING.SM
|
|
1193
1198
|
},
|
|
1194
1199
|
sizeLarge: {
|
|
1195
1200
|
height: DHRE_SPACING_BASE.SPACE_40,
|
|
@@ -1260,7 +1265,7 @@ const Chip = ({
|
|
|
1260
1265
|
disabled
|
|
1261
1266
|
);
|
|
1262
1267
|
const contentColor = resolveContentColor(themeColors, selected, disabled);
|
|
1263
|
-
const textVariant = size === "large" ? FontStyle.BODY2_LIGHT : FontStyle.BODY3_LIGHT;
|
|
1268
|
+
const textVariant = size === "large" ? selected ? FontStyle.BODY2_MEDIUM : FontStyle.BODY2_LIGHT : selected ? FontStyle.BODY3_MEDIUM : FontStyle.BODY3_LIGHT;
|
|
1264
1269
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
1265
1270
|
reactNative.Pressable,
|
|
1266
1271
|
{
|
|
@@ -1302,7 +1307,7 @@ var BackgroundVariant = /* @__PURE__ */ ((BackgroundVariant2) => {
|
|
|
1302
1307
|
return BackgroundVariant2;
|
|
1303
1308
|
})(BackgroundVariant || {});
|
|
1304
1309
|
|
|
1305
|
-
const styles$
|
|
1310
|
+
const styles$y = reactNative.StyleSheet.create({
|
|
1306
1311
|
container: {
|
|
1307
1312
|
flex: 1,
|
|
1308
1313
|
overflow: "hidden"
|
|
@@ -1366,7 +1371,7 @@ const Background = ({
|
|
|
1366
1371
|
reactNative.View,
|
|
1367
1372
|
{
|
|
1368
1373
|
testID,
|
|
1369
|
-
style: [styles$
|
|
1374
|
+
style: [styles$y.container, { backgroundColor: config.base }, style]
|
|
1370
1375
|
},
|
|
1371
1376
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
1372
1377
|
Svg__default["default"],
|
|
@@ -1421,12 +1426,12 @@ const Background = ({
|
|
|
1421
1426
|
))),
|
|
1422
1427
|
config.type === "linear" ? /* @__PURE__ */ React__default["default"].createElement(Svg.Rect, { x: "0", y: "0", width: "100", height: "100", fill: "url(#bg)" }) : /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(Svg.Rect, { x: "0", y: "0", width: "100", height: "100", fill: config.base }), /* @__PURE__ */ React__default["default"].createElement(Svg.Rect, { x: "0", y: "0", width: "100", height: "100", fill: "url(#glowLeft)" }), /* @__PURE__ */ React__default["default"].createElement(Svg.Rect, { x: "0", y: "0", width: "100", height: "100", fill: "url(#glowRight)" }))
|
|
1423
1428
|
),
|
|
1424
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
1429
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$y.content, contentStyle] }, children)
|
|
1425
1430
|
);
|
|
1426
1431
|
};
|
|
1427
1432
|
var Background$1 = withThemeProvider(Background);
|
|
1428
1433
|
|
|
1429
|
-
const styles$
|
|
1434
|
+
const styles$x = reactNative.StyleSheet.create({
|
|
1430
1435
|
mainContainer: {
|
|
1431
1436
|
flex: 1,
|
|
1432
1437
|
justifyContent: "flex-end"
|
|
@@ -1448,21 +1453,19 @@ const styles$y = reactNative.StyleSheet.create({
|
|
|
1448
1453
|
},
|
|
1449
1454
|
separator: {
|
|
1450
1455
|
height: verticalScale(3),
|
|
1451
|
-
width:
|
|
1456
|
+
width: DHRE_SPACING_BASE.SPACE_32,
|
|
1452
1457
|
alignSelf: "center",
|
|
1453
|
-
backgroundColor: "#A7A7A7",
|
|
1454
1458
|
borderRadius: moderateScale(25)
|
|
1455
1459
|
},
|
|
1456
1460
|
headerContainer: {
|
|
1457
1461
|
flexDirection: "row",
|
|
1458
1462
|
justifyContent: "space-between",
|
|
1459
1463
|
alignItems: "center",
|
|
1460
|
-
marginTop:
|
|
1464
|
+
marginTop: DHRE_SPACING_BASE.SPACE_16
|
|
1461
1465
|
},
|
|
1462
|
-
title: { flex: 1,
|
|
1466
|
+
title: { flex: 1, textAlign: "left" },
|
|
1463
1467
|
leftIconStyle: { marginRight: 8 },
|
|
1464
1468
|
rightTitle: {
|
|
1465
|
-
color: "#fff",
|
|
1466
1469
|
textAlign: "right",
|
|
1467
1470
|
marginRight: DHRE_PADDING.LG
|
|
1468
1471
|
},
|
|
@@ -1533,11 +1536,11 @@ const BottomDrawer = ({
|
|
|
1533
1536
|
behavior: isIos() ? "padding" : "height",
|
|
1534
1537
|
style: { flex: 1 }
|
|
1535
1538
|
},
|
|
1536
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
1539
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$x.mainContainer, style], testID }, /* @__PURE__ */ React__default["default"].createElement(
|
|
1537
1540
|
reactNative.View,
|
|
1538
1541
|
{
|
|
1539
1542
|
style: [
|
|
1540
|
-
styles$
|
|
1543
|
+
styles$x.modalContainer,
|
|
1541
1544
|
{ backgroundColor: theme.SURFACE_PRIMARY },
|
|
1542
1545
|
modalContainerStyle
|
|
1543
1546
|
]
|
|
@@ -1547,35 +1550,51 @@ const BottomDrawer = ({
|
|
|
1547
1550
|
{
|
|
1548
1551
|
onPressOut: () => swipeDirection === "" && toggleModal()
|
|
1549
1552
|
},
|
|
1550
|
-
showSeparator && /* @__PURE__ */ React__default["default"].createElement(
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
+
showSeparator && /* @__PURE__ */ React__default["default"].createElement(
|
|
1554
|
+
reactNative.View,
|
|
1555
|
+
{
|
|
1556
|
+
style: [
|
|
1557
|
+
styles$x.separator,
|
|
1558
|
+
{ backgroundColor: theme.STROKE_TERTIARY }
|
|
1559
|
+
]
|
|
1560
|
+
}
|
|
1561
|
+
),
|
|
1562
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$x.headerContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$x.leftSideStyle }, showLeftIcon && leftIcon ? React__default["default"].cloneElement(leftIcon, {
|
|
1563
|
+
style: styles$x.leftIconStyle,
|
|
1553
1564
|
onPressOut: onLeftIconPress
|
|
1554
1565
|
}) : null, /* @__PURE__ */ React__default["default"].createElement(
|
|
1555
1566
|
CustomTypography,
|
|
1556
1567
|
{
|
|
1557
1568
|
variant: titleVariant,
|
|
1558
1569
|
text: title,
|
|
1559
|
-
style: {
|
|
1570
|
+
style: {
|
|
1571
|
+
...styles$x.title,
|
|
1572
|
+
color: theme.CONTENT_PRIMARY,
|
|
1573
|
+
...titleStyle
|
|
1574
|
+
}
|
|
1560
1575
|
}
|
|
1561
1576
|
)), /* @__PURE__ */ React__default["default"].createElement(
|
|
1562
1577
|
reactNative.View,
|
|
1563
1578
|
{
|
|
1564
|
-
style: rightTitle && rightTitle?.length > 0 ? styles$
|
|
1579
|
+
style: rightTitle && rightTitle?.length > 0 ? styles$x.rightSideStyle : {}
|
|
1565
1580
|
},
|
|
1566
1581
|
rightTitle && rightTitle?.length > 0 ? /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPressOut: handleRightTitlePress }, /* @__PURE__ */ React__default["default"].createElement(
|
|
1567
1582
|
CustomTypography,
|
|
1568
1583
|
{
|
|
1569
1584
|
variant: rightTitleVariant,
|
|
1570
1585
|
text: rightTitle,
|
|
1571
|
-
style: {
|
|
1586
|
+
style: {
|
|
1587
|
+
...styles$x.rightTitle,
|
|
1588
|
+
color: theme.CONTENT_PRIMARY,
|
|
1589
|
+
...rightTitleStyle
|
|
1590
|
+
}
|
|
1572
1591
|
}
|
|
1573
1592
|
)) : null,
|
|
1574
1593
|
showRightIcon && rightIcon ? /* @__PURE__ */ React__default["default"].createElement(
|
|
1575
1594
|
reactNative.Pressable,
|
|
1576
1595
|
{
|
|
1577
1596
|
onPressOut: toggleModal,
|
|
1578
|
-
style: styles$
|
|
1597
|
+
style: styles$x.rightIconStyle
|
|
1579
1598
|
},
|
|
1580
1599
|
React__default["default"].cloneElement(rightIcon, {
|
|
1581
1600
|
width: DHRE_SPACING.LG,
|
|
@@ -1592,7 +1611,7 @@ const BottomDrawer = ({
|
|
|
1592
1611
|
};
|
|
1593
1612
|
var BottomDrawer$1 = withThemeProvider(BottomDrawer);
|
|
1594
1613
|
|
|
1595
|
-
const styles$
|
|
1614
|
+
const styles$w = reactNative.StyleSheet.create({
|
|
1596
1615
|
mainContainer: {
|
|
1597
1616
|
marginHorizontal: horizontalScale(16)
|
|
1598
1617
|
},
|
|
@@ -1878,7 +1897,7 @@ const CustomButton = ({
|
|
|
1878
1897
|
text: title,
|
|
1879
1898
|
variant: titleVariant ?? defaultTextVariant,
|
|
1880
1899
|
textColor: effectiveTextColor,
|
|
1881
|
-
style: [styles$
|
|
1900
|
+
style: [styles$w.buttonText, disabledHexStyle, textStyle]
|
|
1882
1901
|
}
|
|
1883
1902
|
), rightIcon && React__default["default"].cloneElement(rightIcon, {
|
|
1884
1903
|
width: iconSize,
|
|
@@ -1940,7 +1959,7 @@ const CustomButton = ({
|
|
|
1940
1959
|
};
|
|
1941
1960
|
var Button = withThemeProvider(CustomButton);
|
|
1942
1961
|
|
|
1943
|
-
const styles$
|
|
1962
|
+
const styles$v = reactNative.StyleSheet.create({
|
|
1944
1963
|
container: {
|
|
1945
1964
|
padding: horizontalScale(20),
|
|
1946
1965
|
marginHorizontal: horizontalScale(16),
|
|
@@ -2005,53 +2024,53 @@ const Cards = ({
|
|
|
2005
2024
|
testID,
|
|
2006
2025
|
onButtonPress
|
|
2007
2026
|
}) => {
|
|
2008
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: styles$
|
|
2027
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: styles$v.container }, topLeftTitle ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$v.topLeft }, /* @__PURE__ */ React__default["default"].createElement(
|
|
2009
2028
|
CustomTypography,
|
|
2010
2029
|
{
|
|
2011
2030
|
variant: "P2regular",
|
|
2012
|
-
style: styles$
|
|
2031
|
+
style: styles$v.title,
|
|
2013
2032
|
text: topLeftTitle
|
|
2014
2033
|
}
|
|
2015
2034
|
)) : null, title ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2016
2035
|
CustomTypography,
|
|
2017
2036
|
{
|
|
2018
2037
|
variant: "H6bold",
|
|
2019
|
-
style: styles$
|
|
2038
|
+
style: styles$v.subTitleBelow,
|
|
2020
2039
|
text: title
|
|
2021
2040
|
}
|
|
2022
2041
|
) : null, subtitle ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2023
2042
|
CustomTypography,
|
|
2024
2043
|
{
|
|
2025
2044
|
variant: "P3regular",
|
|
2026
|
-
style: styles$
|
|
2045
|
+
style: styles$v.subtitle,
|
|
2027
2046
|
text: subtitle
|
|
2028
2047
|
}
|
|
2029
|
-
) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2048
|
+
) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$v.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2030
2049
|
CustomTypography,
|
|
2031
2050
|
{
|
|
2032
2051
|
variant: "P3regular",
|
|
2033
|
-
style: styles$
|
|
2052
|
+
style: styles$v.subTitleLeftBelow,
|
|
2034
2053
|
text: iconTitle
|
|
2035
2054
|
}
|
|
2036
2055
|
) : null), buttonShown ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2037
2056
|
reactNative.Pressable,
|
|
2038
2057
|
{
|
|
2039
2058
|
testID: "Button-Press",
|
|
2040
|
-
style: styles$
|
|
2059
|
+
style: styles$v.button,
|
|
2041
2060
|
onPress: onButtonPress
|
|
2042
2061
|
},
|
|
2043
2062
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2044
2063
|
CustomTypography,
|
|
2045
2064
|
{
|
|
2046
2065
|
variant: "B2semiBold",
|
|
2047
|
-
style: styles$
|
|
2066
|
+
style: styles$v.buttonText,
|
|
2048
2067
|
text: buttonText
|
|
2049
2068
|
}
|
|
2050
2069
|
)
|
|
2051
2070
|
) : null);
|
|
2052
2071
|
};
|
|
2053
2072
|
|
|
2054
|
-
const styles$
|
|
2073
|
+
const styles$u = reactNative.StyleSheet.create({
|
|
2055
2074
|
directionStyle: {
|
|
2056
2075
|
flexDirection: "row",
|
|
2057
2076
|
alignItems: "flex-start",
|
|
@@ -2059,7 +2078,10 @@ const styles$v = reactNative.StyleSheet.create({
|
|
|
2059
2078
|
},
|
|
2060
2079
|
checkboxContainer: {
|
|
2061
2080
|
alignItems: "center",
|
|
2062
|
-
justifyContent: "center"
|
|
2081
|
+
justifyContent: "center",
|
|
2082
|
+
borderRadius: DHRE_RADIUS.SM,
|
|
2083
|
+
borderWidth: 1,
|
|
2084
|
+
overflow: "hidden"
|
|
2063
2085
|
}
|
|
2064
2086
|
});
|
|
2065
2087
|
|
|
@@ -2093,10 +2115,11 @@ const Checkbox = ({
|
|
|
2093
2115
|
partialIcon,
|
|
2094
2116
|
partialDisabledIcon,
|
|
2095
2117
|
isPartial = false,
|
|
2096
|
-
size,
|
|
2118
|
+
size = "small",
|
|
2097
2119
|
titleVariant,
|
|
2098
2120
|
titleStyle,
|
|
2099
2121
|
containerStyle,
|
|
2122
|
+
checkboxStyle,
|
|
2100
2123
|
onPress,
|
|
2101
2124
|
hideCheckbox = false
|
|
2102
2125
|
}) => {
|
|
@@ -2128,15 +2151,21 @@ const Checkbox = ({
|
|
|
2128
2151
|
minWidth: size === "small" ? 20 : 24,
|
|
2129
2152
|
minHeight: size === "small" ? 20 : 24
|
|
2130
2153
|
};
|
|
2131
|
-
|
|
2154
|
+
const isFilledState = checked || isPartial;
|
|
2155
|
+
const checkboxContainerDynamicStyle = {
|
|
2156
|
+
backgroundColor: disable ? isFilledState ? theme[Theme.STROKE_DISABLED_SELECTED] : "transparent" : isFilledState ? theme[Theme.STROKE_ACTIVE] : "transparent",
|
|
2157
|
+
borderColor: disable ? theme[Theme.CONTENT_DISABLE_DARK] : theme[Theme.STROKE_ACTIVE],
|
|
2158
|
+
borderWidth: disable && isFilledState ? 0 : 1
|
|
2159
|
+
};
|
|
2160
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: containerStyle }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$u.directionStyle }, hideCheckbox ? null : /* @__PURE__ */ React__default["default"].createElement(
|
|
2132
2161
|
reactNative.Pressable,
|
|
2133
2162
|
{
|
|
2134
2163
|
testID: "Checkbox-Press",
|
|
2135
2164
|
onPressIn: handlePress,
|
|
2136
2165
|
disabled: disable,
|
|
2137
|
-
style: [styles$
|
|
2166
|
+
style: [styles$u.checkboxContainer, iconContainerSizeStyle, checkboxContainerDynamicStyle, checkboxStyle]
|
|
2138
2167
|
},
|
|
2139
|
-
React__default["default"].cloneElement(resolvedIcon)
|
|
2168
|
+
resolvedIcon ? React__default["default"].cloneElement(resolvedIcon) : null
|
|
2140
2169
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2141
2170
|
CustomTypography,
|
|
2142
2171
|
{
|
|
@@ -2149,7 +2178,7 @@ const Checkbox = ({
|
|
|
2149
2178
|
};
|
|
2150
2179
|
var CheckBox = withThemeProvider(Checkbox);
|
|
2151
2180
|
|
|
2152
|
-
const styles$
|
|
2181
|
+
const styles$t = reactNative.StyleSheet.create({
|
|
2153
2182
|
labelStyle: {
|
|
2154
2183
|
color: DHRE_COLORS_TEXT.DH_TEXTLIGHT
|
|
2155
2184
|
},
|
|
@@ -2203,26 +2232,26 @@ const CustomDropdown$1 = ({
|
|
|
2203
2232
|
CustomTypography,
|
|
2204
2233
|
{
|
|
2205
2234
|
variant: "P3regular",
|
|
2206
|
-
style: styles$
|
|
2235
|
+
style: styles$t.labelStyle,
|
|
2207
2236
|
text: label
|
|
2208
2237
|
}
|
|
2209
2238
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2210
2239
|
reactNative.Pressable,
|
|
2211
2240
|
{
|
|
2212
2241
|
testID: `${testId}-BTN`,
|
|
2213
|
-
style: styles$
|
|
2242
|
+
style: styles$t.dropDownStyle,
|
|
2214
2243
|
onPress: () => setShowOptions(!showOptions)
|
|
2215
2244
|
},
|
|
2216
2245
|
iconName && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: iconStyle }, React__default["default"].cloneElement(iconName, {
|
|
2217
2246
|
width: moderateScale(24),
|
|
2218
2247
|
height: moderateScale(24),
|
|
2219
|
-
style: styles$
|
|
2248
|
+
style: styles$t.iconStyle
|
|
2220
2249
|
})),
|
|
2221
2250
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2222
2251
|
CustomTypography,
|
|
2223
2252
|
{
|
|
2224
2253
|
variant: "P3regular",
|
|
2225
|
-
style: styles$
|
|
2254
|
+
style: styles$t.selectedValueStyle,
|
|
2226
2255
|
text: selectedValue ? selectedValue.label : placeholder
|
|
2227
2256
|
}
|
|
2228
2257
|
),
|
|
@@ -2233,7 +2262,7 @@ const CustomDropdown$1 = ({
|
|
|
2233
2262
|
width: moderateScale(24),
|
|
2234
2263
|
height: moderateScale(24)
|
|
2235
2264
|
}))
|
|
2236
|
-
), showOptions && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2265
|
+
), showOptions && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$t.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React__default["default"].createElement(
|
|
2237
2266
|
reactNative.Pressable,
|
|
2238
2267
|
{
|
|
2239
2268
|
key: id,
|
|
@@ -2243,7 +2272,7 @@ const CustomDropdown$1 = ({
|
|
|
2243
2272
|
oneSelect({ id, value, label: label2 });
|
|
2244
2273
|
},
|
|
2245
2274
|
style: [
|
|
2246
|
-
styles$
|
|
2275
|
+
styles$t.item,
|
|
2247
2276
|
{
|
|
2248
2277
|
backgroundColor: id === selectedValue?.id ? DHRE_COLORS_BG.DH_GREY1 : DHRE_COLORS_TEXT.DH_WHITE
|
|
2249
2278
|
}
|
|
@@ -2252,7 +2281,7 @@ const CustomDropdown$1 = ({
|
|
|
2252
2281
|
iconName && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: iconStyle }, React__default["default"].cloneElement(iconName, {
|
|
2253
2282
|
width: moderateScale(24),
|
|
2254
2283
|
height: moderateScale(24),
|
|
2255
|
-
style: styles$
|
|
2284
|
+
style: styles$t.iconStyle
|
|
2256
2285
|
})),
|
|
2257
2286
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2258
2287
|
CustomTypography,
|
|
@@ -2267,7 +2296,7 @@ const CustomDropdown$1 = ({
|
|
|
2267
2296
|
))));
|
|
2268
2297
|
};
|
|
2269
2298
|
|
|
2270
|
-
const styles$
|
|
2299
|
+
const styles$s = reactNative.StyleSheet.create({
|
|
2271
2300
|
labelStyle: {
|
|
2272
2301
|
color: DHRE_COLORS_TEXT.DH_TEXTDARK
|
|
2273
2302
|
},
|
|
@@ -2349,18 +2378,18 @@ const CustomTextInput = ({
|
|
|
2349
2378
|
CustomTypography,
|
|
2350
2379
|
{
|
|
2351
2380
|
variant: "P3medium",
|
|
2352
|
-
style: [styles$
|
|
2381
|
+
style: [styles$s.labelStyle, disabled && styles$s.disableTextStyle],
|
|
2353
2382
|
text: label
|
|
2354
2383
|
}
|
|
2355
2384
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2356
2385
|
reactNative.View,
|
|
2357
2386
|
{
|
|
2358
2387
|
style: [
|
|
2359
|
-
styles$
|
|
2360
|
-
isFocused && styles$
|
|
2361
|
-
error && styles$
|
|
2362
|
-
disabled && styles$
|
|
2363
|
-
successMessage ? styles$
|
|
2388
|
+
styles$s.inputContainer,
|
|
2389
|
+
isFocused && styles$s.inputFocused,
|
|
2390
|
+
error && styles$s.inputError,
|
|
2391
|
+
disabled && styles$s.disableInputStyle,
|
|
2392
|
+
successMessage ? styles$s.inputSucess : {},
|
|
2364
2393
|
{
|
|
2365
2394
|
height: multiline ? 120 : 48,
|
|
2366
2395
|
alignItems: multiline ? "flex-start" : "center"
|
|
@@ -2370,7 +2399,7 @@ const CustomTextInput = ({
|
|
|
2370
2399
|
isSearchBar && searchIcon && React__default["default"].cloneElement(searchIcon, {
|
|
2371
2400
|
width: moderateScale(24),
|
|
2372
2401
|
height: moderateScale(24),
|
|
2373
|
-
style: styles$
|
|
2402
|
+
style: styles$s.searchIconStyle
|
|
2374
2403
|
}),
|
|
2375
2404
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2376
2405
|
reactNative.TextInput,
|
|
@@ -2378,7 +2407,7 @@ const CustomTextInput = ({
|
|
|
2378
2407
|
...props,
|
|
2379
2408
|
onFocus,
|
|
2380
2409
|
onBlur,
|
|
2381
|
-
style: styles$
|
|
2410
|
+
style: styles$s.input,
|
|
2382
2411
|
placeholderTextColor: DHRE_COLORS_TEXT.DH_TEXTLIGHTEST,
|
|
2383
2412
|
editable: !disabled,
|
|
2384
2413
|
value,
|
|
@@ -2418,7 +2447,7 @@ const CustomTooltip = (props) => {
|
|
|
2418
2447
|
}] }, triggerElement);
|
|
2419
2448
|
};
|
|
2420
2449
|
|
|
2421
|
-
const styles$
|
|
2450
|
+
const styles$r = reactNative.StyleSheet.create({
|
|
2422
2451
|
container: {
|
|
2423
2452
|
backgroundColor: DHRE_COLORS_TEXT.DH_BLACK,
|
|
2424
2453
|
paddingHorizontal: horizontalScale(16),
|
|
@@ -2468,21 +2497,21 @@ const FileUpload = ({
|
|
|
2468
2497
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
2469
2498
|
reactNative.View,
|
|
2470
2499
|
{
|
|
2471
|
-
style: [styles$
|
|
2500
|
+
style: [styles$r.container, containerStyle],
|
|
2472
2501
|
testID: "file-upload-container"
|
|
2473
2502
|
},
|
|
2474
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2503
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$r.content }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [uploadImageStyling], testID: "file-upload-image" }, icon && React__default["default"].cloneElement(icon, { style: [iconStyle] })), /* @__PURE__ */ React__default["default"].createElement(CustomTypography, { variant: "H8bold", style: styles$r.title, text: title }), /* @__PURE__ */ React__default["default"].createElement(
|
|
2475
2504
|
CustomTypography,
|
|
2476
2505
|
{
|
|
2477
2506
|
variant: "P4regular",
|
|
2478
|
-
style: styles$
|
|
2507
|
+
style: styles$r.description,
|
|
2479
2508
|
text: `Drop files directly here or `
|
|
2480
2509
|
}
|
|
2481
2510
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2482
2511
|
CustomTypography,
|
|
2483
2512
|
{
|
|
2484
2513
|
variant: "P4regular",
|
|
2485
|
-
style: styles$
|
|
2514
|
+
style: styles$r.browse,
|
|
2486
2515
|
text: btnText
|
|
2487
2516
|
}
|
|
2488
2517
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -2490,14 +2519,14 @@ const FileUpload = ({
|
|
|
2490
2519
|
{
|
|
2491
2520
|
testID: "file-upload-description",
|
|
2492
2521
|
variant: "P4regular",
|
|
2493
|
-
style: styles$
|
|
2522
|
+
style: styles$r.description,
|
|
2494
2523
|
text: ` from your device`
|
|
2495
2524
|
}
|
|
2496
2525
|
)),
|
|
2497
2526
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2498
2527
|
reactNative.Pressable,
|
|
2499
2528
|
{
|
|
2500
|
-
style: styles$
|
|
2529
|
+
style: styles$r.button,
|
|
2501
2530
|
onPress: onUpload,
|
|
2502
2531
|
testID: "file-upload-button"
|
|
2503
2532
|
},
|
|
@@ -2505,7 +2534,7 @@ const FileUpload = ({
|
|
|
2505
2534
|
CustomTypography,
|
|
2506
2535
|
{
|
|
2507
2536
|
variant: "B2semiBold",
|
|
2508
|
-
style: styles$
|
|
2537
|
+
style: styles$r.buttonText,
|
|
2509
2538
|
text: btnText
|
|
2510
2539
|
}
|
|
2511
2540
|
)
|
|
@@ -2517,7 +2546,7 @@ const PdfView = (props) => {
|
|
|
2517
2546
|
return /* @__PURE__ */ React__default["default"].createElement(Pdf__default["default"], { ...props, trustAllCerts: false });
|
|
2518
2547
|
};
|
|
2519
2548
|
|
|
2520
|
-
const styles$
|
|
2549
|
+
const styles$q = reactNative.StyleSheet.create({
|
|
2521
2550
|
container: {
|
|
2522
2551
|
padding: horizontalScale(20),
|
|
2523
2552
|
marginHorizontal: horizontalScale(16),
|
|
@@ -2573,39 +2602,39 @@ const PopUp = ({
|
|
|
2573
2602
|
leftButtonShown = false,
|
|
2574
2603
|
rightButtonShown = false
|
|
2575
2604
|
}) => {
|
|
2576
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: styles$
|
|
2605
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: styles$q.container }, title ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2577
2606
|
CustomTypography,
|
|
2578
2607
|
{
|
|
2579
|
-
style: styles$
|
|
2608
|
+
style: styles$q.subTitleBelow,
|
|
2580
2609
|
variant: "H6semiBold",
|
|
2581
2610
|
text: title
|
|
2582
2611
|
}
|
|
2583
2612
|
) : null, subtitle ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2584
2613
|
CustomTypography,
|
|
2585
2614
|
{
|
|
2586
|
-
style: styles$
|
|
2615
|
+
style: styles$q.subtitle,
|
|
2587
2616
|
variant: "P3regular",
|
|
2588
2617
|
text: subtitle
|
|
2589
2618
|
}
|
|
2590
|
-
) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2619
|
+
) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$q.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2591
2620
|
reactNative.Pressable,
|
|
2592
2621
|
{
|
|
2593
2622
|
testID: "Left-Button-Press",
|
|
2594
|
-
style: styles$
|
|
2623
|
+
style: styles$q.buttonLeft,
|
|
2595
2624
|
onPress: onButtonPress
|
|
2596
2625
|
},
|
|
2597
2626
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2598
2627
|
CustomTypography,
|
|
2599
2628
|
{
|
|
2600
|
-
style: styles$
|
|
2629
|
+
style: styles$q.buttonLeftText,
|
|
2601
2630
|
variant: "B2semiBold",
|
|
2602
2631
|
text: buttonText
|
|
2603
2632
|
}
|
|
2604
2633
|
)
|
|
2605
|
-
) : null, rightButtonShown ? /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { style: styles$
|
|
2634
|
+
) : null, rightButtonShown ? /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { style: styles$q.button, onPress: onButtonPress }, /* @__PURE__ */ React__default["default"].createElement(
|
|
2606
2635
|
CustomTypography,
|
|
2607
2636
|
{
|
|
2608
|
-
style: styles$
|
|
2637
|
+
style: styles$q.buttonText,
|
|
2609
2638
|
variant: "B2semiBold",
|
|
2610
2639
|
text: buttonText
|
|
2611
2640
|
}
|
|
@@ -2661,7 +2690,7 @@ const LINE_COLOR_KEYS = {
|
|
|
2661
2690
|
unfilledColor: "SURFACE_PRIMARY_TRANSPARENT"
|
|
2662
2691
|
};
|
|
2663
2692
|
|
|
2664
|
-
const styles$
|
|
2693
|
+
const styles$p = reactNative.StyleSheet.create({
|
|
2665
2694
|
lineContainer: {
|
|
2666
2695
|
flexDirection: "row",
|
|
2667
2696
|
alignItems: "center",
|
|
@@ -2723,7 +2752,7 @@ const CustomProgressBar = ({
|
|
|
2723
2752
|
const effectiveLineFillColor = fillColor ?? theme[LINE_COLOR_KEYS.fillColor];
|
|
2724
2753
|
const effectiveLineUnfilledColor = unfilledColor ?? theme[LINE_COLOR_KEYS.unfilledColor];
|
|
2725
2754
|
const effectiveLineHeight = height ?? LINE_DEFAULTS.trackHeight;
|
|
2726
|
-
const renderCircleCenter = () => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2755
|
+
const renderCircleCenter = () => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$p.circleCenter }, /* @__PURE__ */ React__default["default"].createElement(
|
|
2727
2756
|
CustomText$1,
|
|
2728
2757
|
{
|
|
2729
2758
|
text: `${progress}%`,
|
|
@@ -2746,7 +2775,7 @@ const CustomProgressBar = ({
|
|
|
2746
2775
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
2747
2776
|
reactNative.View,
|
|
2748
2777
|
{
|
|
2749
|
-
style: [styles$
|
|
2778
|
+
style: [styles$p.lineContainer, isRTL && styles$p.lineContainerRTL],
|
|
2750
2779
|
testID: "custom-progress-bar-line-wrapper"
|
|
2751
2780
|
},
|
|
2752
2781
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -2795,7 +2824,7 @@ const CustomProgressBar = ({
|
|
|
2795
2824
|
};
|
|
2796
2825
|
var CustomProgressBar$1 = withThemeProvider(CustomProgressBar);
|
|
2797
2826
|
|
|
2798
|
-
const styles$
|
|
2827
|
+
const styles$o = reactNative.StyleSheet.create({
|
|
2799
2828
|
container: {
|
|
2800
2829
|
flexDirection: "row",
|
|
2801
2830
|
alignItems: "center"
|
|
@@ -2861,13 +2890,13 @@ const Star = ({
|
|
|
2861
2890
|
emptyStarColor
|
|
2862
2891
|
);
|
|
2863
2892
|
stars.push(
|
|
2864
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { key: i, style: [styles$
|
|
2893
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { key: i, style: [styles$o.star, starStyle] }, starType)
|
|
2865
2894
|
);
|
|
2866
2895
|
}
|
|
2867
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2896
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$o.container, testID: "star" }, stars);
|
|
2868
2897
|
};
|
|
2869
2898
|
|
|
2870
|
-
var styles$
|
|
2899
|
+
var styles$n = reactNative.StyleSheet.create({
|
|
2871
2900
|
container: {
|
|
2872
2901
|
flexDirection: "row",
|
|
2873
2902
|
gap: DHRE_PADDING.SM,
|
|
@@ -2923,12 +2952,12 @@ const Tabs = ({
|
|
|
2923
2952
|
onSelectionChange(selectedTabs);
|
|
2924
2953
|
}
|
|
2925
2954
|
};
|
|
2926
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
2955
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$n.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React__default["default"].createElement(
|
|
2927
2956
|
reactNative.Pressable,
|
|
2928
2957
|
{
|
|
2929
2958
|
key: id,
|
|
2930
2959
|
style: {
|
|
2931
|
-
...styles$
|
|
2960
|
+
...styles$n.button,
|
|
2932
2961
|
backgroundColor: isSelected ? theme.SURFACE_INVERTED : theme.SURFACE_SECONDARY,
|
|
2933
2962
|
borderColor: isSelected ? theme.SURFACE_INVERTED : theme.STROKE_TERTIARY
|
|
2934
2963
|
},
|
|
@@ -2939,7 +2968,7 @@ const Tabs = ({
|
|
|
2939
2968
|
{
|
|
2940
2969
|
variant: FontStyle.BODY1_MEDIUM,
|
|
2941
2970
|
style: {
|
|
2942
|
-
...styles$
|
|
2971
|
+
...styles$n.textStyle,
|
|
2943
2972
|
color: isSelected ? theme.CONTENT_INVERTED : theme.CONTENT_PRIMARY
|
|
2944
2973
|
},
|
|
2945
2974
|
text: title
|
|
@@ -2949,7 +2978,7 @@ const Tabs = ({
|
|
|
2949
2978
|
};
|
|
2950
2979
|
var Tabs$1 = withThemeProvider(Tabs);
|
|
2951
2980
|
|
|
2952
|
-
const styles$
|
|
2981
|
+
const styles$m = reactNative.StyleSheet.create({
|
|
2953
2982
|
container: {
|
|
2954
2983
|
width: "100%"
|
|
2955
2984
|
},
|
|
@@ -3012,8 +3041,8 @@ const Tags = ({
|
|
|
3012
3041
|
reactNative.ScrollView,
|
|
3013
3042
|
{
|
|
3014
3043
|
testID,
|
|
3015
|
-
style: styles$
|
|
3016
|
-
contentContainerStyle: styles$
|
|
3044
|
+
style: styles$m.container,
|
|
3045
|
+
contentContainerStyle: styles$m.contentContainer,
|
|
3017
3046
|
horizontal: false
|
|
3018
3047
|
},
|
|
3019
3048
|
tags?.map((tag) => /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -3023,16 +3052,16 @@ const Tags = ({
|
|
|
3023
3052
|
key: tag,
|
|
3024
3053
|
onPress: () => toggleTag(tag),
|
|
3025
3054
|
style: [
|
|
3026
|
-
styles$
|
|
3055
|
+
styles$m.tag,
|
|
3027
3056
|
tagStyles,
|
|
3028
|
-
selectedTags.includes(tag) ? styles$
|
|
3057
|
+
selectedTags.includes(tag) ? styles$m.selectedTag : styles$m.tagUnSelected
|
|
3029
3058
|
]
|
|
3030
3059
|
},
|
|
3031
3060
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
3032
3061
|
CustomTypography,
|
|
3033
3062
|
{
|
|
3034
3063
|
variant: selectedTags.includes(tag) ? "H9semiBold" : "P4regular",
|
|
3035
|
-
style: selectedTags.includes(tag) ? styles$
|
|
3064
|
+
style: selectedTags.includes(tag) ? styles$m.tagText : styles$m.tagUnselectedText,
|
|
3036
3065
|
text: tag
|
|
3037
3066
|
}
|
|
3038
3067
|
),
|
|
@@ -3048,7 +3077,7 @@ const Tags = ({
|
|
|
3048
3077
|
);
|
|
3049
3078
|
};
|
|
3050
3079
|
|
|
3051
|
-
const styles$
|
|
3080
|
+
const styles$l = reactNative.StyleSheet.create({
|
|
3052
3081
|
container: {
|
|
3053
3082
|
width: horizontalScale(70),
|
|
3054
3083
|
height: verticalScale(25),
|
|
@@ -3113,26 +3142,26 @@ const CustomSwitch = ({
|
|
|
3113
3142
|
reactNative.Pressable,
|
|
3114
3143
|
{
|
|
3115
3144
|
onPress: toggleSwitch,
|
|
3116
|
-
style: [styles$
|
|
3145
|
+
style: [styles$l.container, { width }],
|
|
3117
3146
|
testID: "custom-switch"
|
|
3118
3147
|
},
|
|
3119
3148
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
3120
3149
|
reactNative.View,
|
|
3121
3150
|
{
|
|
3122
3151
|
style: [
|
|
3123
|
-
styles$
|
|
3152
|
+
styles$l.track,
|
|
3124
3153
|
{
|
|
3125
3154
|
backgroundColor: isOn ? DHRE_COLORS_ALERT.DH_SUCCESS_GREEN_ACCENT : DHRE_COLORS_TEXT.DH_TEXTDISABLED
|
|
3126
3155
|
}
|
|
3127
3156
|
]
|
|
3128
3157
|
},
|
|
3129
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.Animated.View, { style: [styles$
|
|
3158
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.Animated.View, { style: [styles$l.thumb, animatedStyle] }),
|
|
3130
3159
|
type !== ToggleButtonType.SMALL && /* @__PURE__ */ React__default["default"].createElement(
|
|
3131
3160
|
CustomTypography,
|
|
3132
3161
|
{
|
|
3133
3162
|
variant: "B3semiBold",
|
|
3134
3163
|
style: [
|
|
3135
|
-
styles$
|
|
3164
|
+
styles$l.text,
|
|
3136
3165
|
{ textAlign: isOn ? TextDirectType.left : TextDirectType.right }
|
|
3137
3166
|
],
|
|
3138
3167
|
text: isOn ? ToggleTextType.ON : ToggleTextType.OFF
|
|
@@ -3142,10 +3171,9 @@ const CustomSwitch = ({
|
|
|
3142
3171
|
);
|
|
3143
3172
|
};
|
|
3144
3173
|
|
|
3145
|
-
const styles$
|
|
3174
|
+
const styles$k = reactNative.StyleSheet.create({
|
|
3146
3175
|
container: {
|
|
3147
|
-
paddingVertical: DHRE_PADDING.LG
|
|
3148
|
-
borderBottomWidth: moderateScale(1)
|
|
3176
|
+
paddingVertical: DHRE_PADDING.LG
|
|
3149
3177
|
},
|
|
3150
3178
|
header: {
|
|
3151
3179
|
flexDirection: "row",
|
|
@@ -3204,7 +3232,7 @@ const Accordion = ({
|
|
|
3204
3232
|
{
|
|
3205
3233
|
style: [
|
|
3206
3234
|
{
|
|
3207
|
-
...styles$
|
|
3235
|
+
...styles$k.container,
|
|
3208
3236
|
borderRadius: 0,
|
|
3209
3237
|
...containerStyle
|
|
3210
3238
|
}
|
|
@@ -3214,7 +3242,7 @@ const Accordion = ({
|
|
|
3214
3242
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
3215
3243
|
reactNative.Pressable,
|
|
3216
3244
|
{
|
|
3217
|
-
style: [styles$
|
|
3245
|
+
style: [styles$k.header, headerStyle, disabled && { opacity: 0.5 }],
|
|
3218
3246
|
onPressOut: !disabled ? onToggle : void 0
|
|
3219
3247
|
},
|
|
3220
3248
|
headerComponent ? headerComponent() : /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -3223,7 +3251,7 @@ const Accordion = ({
|
|
|
3223
3251
|
variant: titleVariant,
|
|
3224
3252
|
text: title,
|
|
3225
3253
|
style: {
|
|
3226
|
-
...styles$
|
|
3254
|
+
...styles$k.title,
|
|
3227
3255
|
color: theme.CONTENT_PRIMARY,
|
|
3228
3256
|
...titleStyle
|
|
3229
3257
|
}
|
|
@@ -3232,14 +3260,14 @@ const Accordion = ({
|
|
|
3232
3260
|
icon ? React__default["default"].cloneElement(icon, {
|
|
3233
3261
|
width: DHRE_SPACING_BASE.SPACE_20,
|
|
3234
3262
|
height: DHRE_SPACING_BASE.SPACE_20,
|
|
3235
|
-
style: styles$
|
|
3263
|
+
style: styles$k.iconStyle
|
|
3236
3264
|
}) : null
|
|
3237
3265
|
),
|
|
3238
3266
|
optionalElement ? optionalElement() : null,
|
|
3239
3267
|
isOpen && /* @__PURE__ */ React__default["default"].createElement(
|
|
3240
3268
|
reactNative.Animated.View,
|
|
3241
3269
|
{
|
|
3242
|
-
style: [styles$
|
|
3270
|
+
style: [styles$k.content, slideAnimation && { height: cardHeight }]
|
|
3243
3271
|
},
|
|
3244
3272
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
3245
3273
|
reactNative.View,
|
|
@@ -3256,7 +3284,7 @@ const Accordion = ({
|
|
|
3256
3284
|
};
|
|
3257
3285
|
var Accordion$1 = withThemeProvider(Accordion);
|
|
3258
3286
|
|
|
3259
|
-
const styles$
|
|
3287
|
+
const styles$j = reactNative.StyleSheet.create({
|
|
3260
3288
|
container: {
|
|
3261
3289
|
position: "absolute",
|
|
3262
3290
|
alignSelf: "center",
|
|
@@ -3375,20 +3403,20 @@ const Toast = React__default["default"].forwardRef(
|
|
|
3375
3403
|
reactNative.Animated.View,
|
|
3376
3404
|
{
|
|
3377
3405
|
style: [
|
|
3378
|
-
styles$
|
|
3406
|
+
styles$j.container,
|
|
3379
3407
|
{ bottom },
|
|
3380
3408
|
{ backgroundColor: theme.SURFACE_TERTIARY }
|
|
3381
3409
|
],
|
|
3382
3410
|
testID: "TOAST"
|
|
3383
3411
|
},
|
|
3384
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
3412
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$j.toastContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$j.innerContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: hideToast, style: styles$j.icon }, isSuccess ? sucessIcon : warning ? warningIcon : errorIcon), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$j.textContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
3385
3413
|
CustomTypography,
|
|
3386
3414
|
{
|
|
3387
3415
|
variant: "BODY2_LIGHT",
|
|
3388
3416
|
text: message,
|
|
3389
|
-
style: [styles$
|
|
3417
|
+
style: [styles$j.messageText, { color: theme.CONTENT_SECONDRY }]
|
|
3390
3418
|
}
|
|
3391
|
-
), subjectText && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
3419
|
+
), subjectText && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$j.subContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
3392
3420
|
Button,
|
|
3393
3421
|
{
|
|
3394
3422
|
title: subjectText,
|
|
@@ -3413,7 +3441,7 @@ const Toast = React__default["default"].forwardRef(
|
|
|
3413
3441
|
reactNative.Animated.View,
|
|
3414
3442
|
{
|
|
3415
3443
|
style: [
|
|
3416
|
-
styles$
|
|
3444
|
+
styles$j.progressBar,
|
|
3417
3445
|
{
|
|
3418
3446
|
width: progressAnim,
|
|
3419
3447
|
backgroundColor: accentColor
|
|
@@ -3430,7 +3458,7 @@ const ToastWithProvider = React__default["default"].forwardRef(
|
|
|
3430
3458
|
);
|
|
3431
3459
|
ToastWithProvider.displayName = "Toast";
|
|
3432
3460
|
|
|
3433
|
-
const styles$
|
|
3461
|
+
const styles$i = reactNative.StyleSheet.create({
|
|
3434
3462
|
inputContainer: {
|
|
3435
3463
|
flexDirection: "row",
|
|
3436
3464
|
justifyContent: "center",
|
|
@@ -3509,8 +3537,8 @@ const CustomSearchBar = ({
|
|
|
3509
3537
|
{
|
|
3510
3538
|
testID,
|
|
3511
3539
|
style: [
|
|
3512
|
-
styles$
|
|
3513
|
-
size === "small" ? styles$
|
|
3540
|
+
styles$i.inputContainer,
|
|
3541
|
+
size === "small" ? styles$i.inputContainerSmall : styles$i.inputContainerLarge,
|
|
3514
3542
|
{
|
|
3515
3543
|
...height !== void 0 && { height: verticalScale(height) },
|
|
3516
3544
|
backgroundColor: disabled ? theme[Theme.SURFACE_PRIMARY] : theme[Theme.SURFACE_PRIMARY_TRANSPARENT],
|
|
@@ -3532,7 +3560,7 @@ const CustomSearchBar = ({
|
|
|
3532
3560
|
React__default["default"].cloneElement(searchIcon, {
|
|
3533
3561
|
width: DHRE_SPACING.LG,
|
|
3534
3562
|
height: DHRE_SPACING.LG,
|
|
3535
|
-
style: [styles$
|
|
3563
|
+
style: [styles$i.searchIconStyle, searchIconStyle]
|
|
3536
3564
|
})
|
|
3537
3565
|
),
|
|
3538
3566
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -3541,7 +3569,7 @@ const CustomSearchBar = ({
|
|
|
3541
3569
|
...props,
|
|
3542
3570
|
testID: `${testID}-INPUT`,
|
|
3543
3571
|
style: [
|
|
3544
|
-
styles$
|
|
3572
|
+
styles$i.input,
|
|
3545
3573
|
{ color: theme[Theme.CONTENT_PRIMARY] },
|
|
3546
3574
|
inputStyle
|
|
3547
3575
|
],
|
|
@@ -3576,14 +3604,14 @@ const CustomSearchBar = ({
|
|
|
3576
3604
|
React__default["default"].cloneElement(rightIcon, {
|
|
3577
3605
|
// width: moderateScale(24),
|
|
3578
3606
|
// height: moderateScale(24),
|
|
3579
|
-
style: [styles$
|
|
3607
|
+
style: [styles$i.crossIconStyle, crossIconStyle]
|
|
3580
3608
|
})
|
|
3581
3609
|
)
|
|
3582
3610
|
);
|
|
3583
3611
|
};
|
|
3584
3612
|
var CustomSearchBar$1 = withThemeProvider(CustomSearchBar);
|
|
3585
3613
|
|
|
3586
|
-
const styles$
|
|
3614
|
+
const styles$h = reactNative.StyleSheet.create({
|
|
3587
3615
|
container: {
|
|
3588
3616
|
flexDirection: "row",
|
|
3589
3617
|
justifyContent: "space-between",
|
|
@@ -3617,7 +3645,7 @@ const CustomHeader = ({
|
|
|
3617
3645
|
rightIcons
|
|
3618
3646
|
}) => {
|
|
3619
3647
|
const { theme } = useTheme();
|
|
3620
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
3648
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.container, testID: testId }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.pageTitleContainer }, leftIcon && /* @__PURE__ */ React__default["default"].createElement(HeaderIcon, { config: leftIcon }), /* @__PURE__ */ React__default["default"].createElement(
|
|
3621
3649
|
CustomTypography,
|
|
3622
3650
|
{
|
|
3623
3651
|
variant: "BODY1_MEDIUM",
|
|
@@ -3627,11 +3655,11 @@ const CustomHeader = ({
|
|
|
3627
3655
|
), titleSuffixIcon && React__default["default"].cloneElement(titleSuffixIcon, {
|
|
3628
3656
|
width: ICON_SIZE,
|
|
3629
3657
|
height: ICON_SIZE
|
|
3630
|
-
})), rightIcons && rightIcons.length > 0 && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
3658
|
+
})), rightIcons && rightIcons.length > 0 && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.iconsContainer }, rightIcons.map((config, index) => /* @__PURE__ */ React__default["default"].createElement(HeaderIcon, { key: index, config }))));
|
|
3631
3659
|
};
|
|
3632
3660
|
var CustomHeader$1 = withThemeProvider(CustomHeader);
|
|
3633
3661
|
|
|
3634
|
-
const styles$
|
|
3662
|
+
const styles$g = reactNative.StyleSheet.create({
|
|
3635
3663
|
container: {
|
|
3636
3664
|
flex: 1
|
|
3637
3665
|
},
|
|
@@ -3661,14 +3689,14 @@ const ActionButton = ({
|
|
|
3661
3689
|
{
|
|
3662
3690
|
testID,
|
|
3663
3691
|
onPress,
|
|
3664
|
-
style: [styles$
|
|
3692
|
+
style: [styles$g.actionButton, style]
|
|
3665
3693
|
},
|
|
3666
3694
|
icon,
|
|
3667
3695
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
3668
3696
|
CustomTypography,
|
|
3669
3697
|
{
|
|
3670
3698
|
variant: "L1_REGULAR",
|
|
3671
|
-
style: [styles$
|
|
3699
|
+
style: [styles$g.titleStyle, titleStyle],
|
|
3672
3700
|
text: title
|
|
3673
3701
|
}
|
|
3674
3702
|
)
|
|
@@ -3709,7 +3737,7 @@ const SwipableList = (props) => {
|
|
|
3709
3737
|
return id;
|
|
3710
3738
|
});
|
|
3711
3739
|
}, []);
|
|
3712
|
-
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
3740
|
+
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$g.actionBtn }, leftPrimaryActionIcon && /* @__PURE__ */ React__default["default"].createElement(
|
|
3713
3741
|
ActionButton,
|
|
3714
3742
|
{
|
|
3715
3743
|
icon: leftPrimaryActionIcon,
|
|
@@ -3736,7 +3764,7 @@ const SwipableList = (props) => {
|
|
|
3736
3764
|
titleStyle
|
|
3737
3765
|
}
|
|
3738
3766
|
));
|
|
3739
|
-
const rightActionHandle = (item) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
3767
|
+
const rightActionHandle = (item) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$g.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React__default["default"].createElement(
|
|
3740
3768
|
ActionButton,
|
|
3741
3769
|
{
|
|
3742
3770
|
icon: rightPrimaryActionIcon,
|
|
@@ -3750,7 +3778,7 @@ const SwipableList = (props) => {
|
|
|
3750
3778
|
titleStyle
|
|
3751
3779
|
}
|
|
3752
3780
|
));
|
|
3753
|
-
const renderItem = ({ item }) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID: `${testId}-LIST`, style: styles$
|
|
3781
|
+
const renderItem = ({ item }) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID: `${testId}-LIST`, style: styles$g.container }, /* @__PURE__ */ React__default["default"].createElement(
|
|
3754
3782
|
reactNativeGestureHandler.Swipeable,
|
|
3755
3783
|
{
|
|
3756
3784
|
ref: (ref) => swipeableRefs.current[item.id] = ref,
|
|
@@ -3776,7 +3804,7 @@ const SwipableList = (props) => {
|
|
|
3776
3804
|
reactNative.View,
|
|
3777
3805
|
{
|
|
3778
3806
|
style: {
|
|
3779
|
-
...styles$
|
|
3807
|
+
...styles$g.seperator,
|
|
3780
3808
|
backgroundColor: theme.BORDER_SEPRATOR
|
|
3781
3809
|
}
|
|
3782
3810
|
}
|
|
@@ -3786,7 +3814,15 @@ const SwipableList = (props) => {
|
|
|
3786
3814
|
};
|
|
3787
3815
|
var SwipableList$1 = withThemeProvider(SwipableList);
|
|
3788
3816
|
|
|
3789
|
-
const
|
|
3817
|
+
const OUTLINED_GRADIENT_COLORS = [
|
|
3818
|
+
DHRE_CYAN_HIGHLIGHT[300],
|
|
3819
|
+
"#438CB1"
|
|
3820
|
+
];
|
|
3821
|
+
const OUTLINED_GRADIENT_START = { x: 0, y: 0 };
|
|
3822
|
+
const OUTLINED_GRADIENT_END = { x: 1, y: 1 };
|
|
3823
|
+
const OUTLINED_BORDER_WIDTH = 1;
|
|
3824
|
+
|
|
3825
|
+
const styles$f = reactNative.StyleSheet.create({
|
|
3790
3826
|
container: {
|
|
3791
3827
|
justifyContent: "center",
|
|
3792
3828
|
alignItems: "center"
|
|
@@ -3826,13 +3862,6 @@ const ICON_BLUR_TYPE_STYLE = reactNative.StyleSheet.create({
|
|
|
3826
3862
|
overflow: "hidden"
|
|
3827
3863
|
}
|
|
3828
3864
|
});
|
|
3829
|
-
const OUTLINED_GRADIENT_COLORS = [
|
|
3830
|
-
DHRE_CYAN_HIGHLIGHT[300],
|
|
3831
|
-
"#438CB1"
|
|
3832
|
-
];
|
|
3833
|
-
const OUTLINED_GRADIENT_START = { x: 0, y: 0 };
|
|
3834
|
-
const OUTLINED_GRADIENT_END = { x: 1, y: 1 };
|
|
3835
|
-
const OUTLINED_BORDER_WIDTH = 1;
|
|
3836
3865
|
const OUTLINED_BUTTON_STYLES = reactNative.StyleSheet.create({
|
|
3837
3866
|
shell: {
|
|
3838
3867
|
borderRadius: ICON_BUTTON_RADIUS,
|
|
@@ -3974,7 +4003,7 @@ const CustomIcon = ({
|
|
|
3974
4003
|
return renderOutlinedButton();
|
|
3975
4004
|
}
|
|
3976
4005
|
};
|
|
3977
|
-
const outerStyle = labelPosition ? [ICON_LABEL_POSITION_STYLES[labelPosition], containerStyle ?? {}] : [styles$
|
|
4006
|
+
const outerStyle = labelPosition ? [ICON_LABEL_POSITION_STYLES[labelPosition], containerStyle ?? {}] : [styles$f.container, containerStyle ?? {}];
|
|
3978
4007
|
const resolvedTitleColor = type ? { color: theme[Theme.CONTENT_PRIMARY] } : void 0;
|
|
3979
4008
|
const resolvedTitleVariant = titleVariant ?? ICON_TITLE_VARIANT_FOR_SIZE[size ?? "large"];
|
|
3980
4009
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -3990,14 +4019,14 @@ const CustomIcon = ({
|
|
|
3990
4019
|
{
|
|
3991
4020
|
variant: resolvedTitleVariant,
|
|
3992
4021
|
text: title,
|
|
3993
|
-
style: [styles$
|
|
4022
|
+
style: [styles$f.title, resolvedTitleColor, titleStyle]
|
|
3994
4023
|
}
|
|
3995
4024
|
)
|
|
3996
4025
|
);
|
|
3997
4026
|
};
|
|
3998
4027
|
var CustomIcon$1 = withThemeProvider(CustomIcon);
|
|
3999
4028
|
|
|
4000
|
-
const createStyles$
|
|
4029
|
+
const createStyles$6 = (theme) => {
|
|
4001
4030
|
return reactNative.StyleSheet.create({
|
|
4002
4031
|
container: {
|
|
4003
4032
|
position: "absolute",
|
|
@@ -10198,7 +10227,7 @@ const CustomLoader = ({
|
|
|
10198
10227
|
customeBox
|
|
10199
10228
|
}) => {
|
|
10200
10229
|
const { theme, mode } = useTheme();
|
|
10201
|
-
const styles = createStyles$
|
|
10230
|
+
const styles = createStyles$6(theme);
|
|
10202
10231
|
const isDP = brandName === "DP";
|
|
10203
10232
|
const isNakheel = brandName === "Nakheel";
|
|
10204
10233
|
if (!loading) return null;
|
|
@@ -10238,7 +10267,7 @@ const CustomLoader = ({
|
|
|
10238
10267
|
};
|
|
10239
10268
|
var CustomLoader$1 = withThemeProvider(CustomLoader);
|
|
10240
10269
|
|
|
10241
|
-
const createStyles$
|
|
10270
|
+
const createStyles$5 = (scaledSize, color) => reactNative.StyleSheet.create({
|
|
10242
10271
|
// Full-screen absolute overlay — mirrors CustomLoader `container`
|
|
10243
10272
|
container: {
|
|
10244
10273
|
position: "absolute",
|
|
@@ -10360,7 +10389,7 @@ const LoaderContent = ({
|
|
|
10360
10389
|
}, []);
|
|
10361
10390
|
const color = theme[Theme.CONTENT_PRIMARY];
|
|
10362
10391
|
const styles = React.useMemo(
|
|
10363
|
-
() => createStyles$
|
|
10392
|
+
() => createStyles$5(scaledSize, color),
|
|
10364
10393
|
[scaledSize, color]
|
|
10365
10394
|
);
|
|
10366
10395
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.container, containerStyle], testID }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.backdrop, backdropStyle] }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.box, boxStyle] }, /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -10424,14 +10453,14 @@ const HorizontalLine = ({ backgroundColor = "SURFACE_SECONDARY", style }) => {
|
|
|
10424
10453
|
reactNative.View,
|
|
10425
10454
|
{
|
|
10426
10455
|
style: [
|
|
10427
|
-
styles$
|
|
10456
|
+
styles$e.line,
|
|
10428
10457
|
{ backgroundColor: theme[backgroundColor] },
|
|
10429
10458
|
style
|
|
10430
10459
|
]
|
|
10431
10460
|
}
|
|
10432
10461
|
);
|
|
10433
10462
|
};
|
|
10434
|
-
const styles$
|
|
10463
|
+
const styles$e = reactNative.StyleSheet.create({
|
|
10435
10464
|
line: {
|
|
10436
10465
|
height: 1,
|
|
10437
10466
|
width: "100%"
|
|
@@ -10454,18 +10483,18 @@ const Topic = ({
|
|
|
10454
10483
|
reactNative.TouchableOpacity,
|
|
10455
10484
|
{
|
|
10456
10485
|
style: [
|
|
10457
|
-
styles$
|
|
10486
|
+
styles$d.button,
|
|
10458
10487
|
{ backgroundColor: theme[Theme.SURFACE_SECONDARY] },
|
|
10459
10488
|
containterStyle
|
|
10460
10489
|
],
|
|
10461
10490
|
onPress
|
|
10462
10491
|
},
|
|
10463
|
-
rightIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10464
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10465
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10492
|
+
rightIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$d.rightIconContainer }, React__default["default"].cloneElement(rightIcon)),
|
|
10493
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$d.timeContainer }, time && /* @__PURE__ */ React__default["default"].createElement(CustomText$1, { text: time, variant: FontStyle.L2_REGULAR })),
|
|
10494
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$d.textContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$d.paymentView }, statusImage && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, null, React__default["default"].cloneElement(statusImage)), subTitle && /* @__PURE__ */ React__default["default"].createElement(
|
|
10466
10495
|
CustomText$1,
|
|
10467
10496
|
{
|
|
10468
|
-
style: [styles$
|
|
10497
|
+
style: [styles$d.subTitle, subTitleStyle],
|
|
10469
10498
|
text: subTitle,
|
|
10470
10499
|
variant: FontStyle.L2_REGULAR,
|
|
10471
10500
|
textColor: Theme.CONTENT_PRIMARY
|
|
@@ -10480,7 +10509,7 @@ const Topic = ({
|
|
|
10480
10509
|
))
|
|
10481
10510
|
);
|
|
10482
10511
|
};
|
|
10483
|
-
const styles$
|
|
10512
|
+
const styles$d = reactNative.StyleSheet.create({
|
|
10484
10513
|
button: {
|
|
10485
10514
|
flexDirection: "row",
|
|
10486
10515
|
alignItems: "center",
|
|
@@ -10576,14 +10605,14 @@ const ContactModal = ({
|
|
|
10576
10605
|
const renderEmailOptions = () => /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(
|
|
10577
10606
|
CustomText$1,
|
|
10578
10607
|
{
|
|
10579
|
-
style: styles$
|
|
10608
|
+
style: styles$c.title,
|
|
10580
10609
|
text: "Open email app",
|
|
10581
10610
|
variant: "L2_REGULAR"
|
|
10582
10611
|
}
|
|
10583
10612
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
10584
10613
|
CustomText$1,
|
|
10585
10614
|
{
|
|
10586
|
-
style: styles$
|
|
10615
|
+
style: styles$c.subtitle,
|
|
10587
10616
|
text: "Which app would you like to open?",
|
|
10588
10617
|
variant: "L2_REGULAR"
|
|
10589
10618
|
}
|
|
@@ -10591,33 +10620,33 @@ const ContactModal = ({
|
|
|
10591
10620
|
reactNative.Pressable,
|
|
10592
10621
|
{
|
|
10593
10622
|
onPress: () => handleOptionPress(),
|
|
10594
|
-
style: styles$
|
|
10623
|
+
style: styles$c.optionButton
|
|
10595
10624
|
},
|
|
10596
10625
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
10597
10626
|
CustomText$1,
|
|
10598
10627
|
{
|
|
10599
|
-
style: styles$
|
|
10628
|
+
style: styles$c.optionText,
|
|
10600
10629
|
text: option,
|
|
10601
10630
|
variant: "B3_BOLD"
|
|
10602
10631
|
}
|
|
10603
10632
|
)
|
|
10604
10633
|
))));
|
|
10605
|
-
const renderContent = () => /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10634
|
+
const renderContent = () => /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$c.viewContainer }, isMailOpen ? renderEmailOptions() : /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: handleCall, style: styles$c.optionButton }, /* @__PURE__ */ React__default["default"].createElement(
|
|
10606
10635
|
CustomText$1,
|
|
10607
10636
|
{
|
|
10608
|
-
style: styles$
|
|
10637
|
+
style: styles$c.optionText,
|
|
10609
10638
|
text: `Call ${phoneNumber}`,
|
|
10610
10639
|
variant: "B3_BOLD"
|
|
10611
10640
|
}
|
|
10612
|
-
))), /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: onClose, style: styles$
|
|
10641
|
+
))), /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: onClose, style: styles$c.cancelButton }, /* @__PURE__ */ React__default["default"].createElement(
|
|
10613
10642
|
CustomText$1,
|
|
10614
10643
|
{
|
|
10615
|
-
style: styles$
|
|
10644
|
+
style: styles$c.cancelText,
|
|
10616
10645
|
text: "Cancel",
|
|
10617
10646
|
variant: "B2_REGULAR"
|
|
10618
10647
|
}
|
|
10619
10648
|
)));
|
|
10620
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10649
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$c.container }, /* @__PURE__ */ React__default["default"].createElement(
|
|
10621
10650
|
reactNative.Modal,
|
|
10622
10651
|
{
|
|
10623
10652
|
animationType: "slide",
|
|
@@ -10625,10 +10654,10 @@ const ContactModal = ({
|
|
|
10625
10654
|
visible,
|
|
10626
10655
|
onRequestClose: onClose
|
|
10627
10656
|
},
|
|
10628
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10657
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$c.modalContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$c.modalContent }, renderContent()))
|
|
10629
10658
|
));
|
|
10630
10659
|
};
|
|
10631
|
-
const styles$
|
|
10660
|
+
const styles$c = reactNative.StyleSheet.create({
|
|
10632
10661
|
container: {
|
|
10633
10662
|
flex: 1,
|
|
10634
10663
|
justifyContent: "center",
|
|
@@ -10690,7 +10719,7 @@ const styles$d = reactNative.StyleSheet.create({
|
|
|
10690
10719
|
});
|
|
10691
10720
|
var ContactModel = withThemeProvider(ContactModal);
|
|
10692
10721
|
|
|
10693
|
-
const styles$
|
|
10722
|
+
const styles$b = reactNative.StyleSheet.create({
|
|
10694
10723
|
// Outer card: wraps Calendar (which includes the custom header via renderHeader)
|
|
10695
10724
|
// and provides the dark-blue background + rounded corners.
|
|
10696
10725
|
calendarCard: {
|
|
@@ -10842,12 +10871,12 @@ const DateRangePicker = (props) => {
|
|
|
10842
10871
|
reactNative.View,
|
|
10843
10872
|
{
|
|
10844
10873
|
style: [
|
|
10845
|
-
styles$
|
|
10874
|
+
styles$b.calendarHeader,
|
|
10846
10875
|
{ borderBottomColor: theme.STROKE_TERTIARY }
|
|
10847
10876
|
]
|
|
10848
10877
|
},
|
|
10849
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.Text, { style: [styles$
|
|
10850
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10878
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.Text, { style: [styles$b.monthText, { color: theme.CONTENT_PRIMARY }] }, monthLabel),
|
|
10879
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$b.arrowsContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
10851
10880
|
reactNative.TouchableOpacity,
|
|
10852
10881
|
{
|
|
10853
10882
|
onPress: prevMonth,
|
|
@@ -10881,81 +10910,86 @@ const DateRangePicker = (props) => {
|
|
|
10881
10910
|
))
|
|
10882
10911
|
))
|
|
10883
10912
|
);
|
|
10884
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, null, /* @__PURE__ */ React__default["default"].createElement(
|
|
10885
|
-
|
|
10886
|
-
{
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
marginTop: 0,
|
|
10922
|
-
marginBottom: 0
|
|
10923
|
-
},
|
|
10924
|
-
week: {
|
|
10925
|
-
marginTop: 8,
|
|
10926
|
-
flexDirection: "row",
|
|
10927
|
-
justifyContent: "space-around"
|
|
10913
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, null, /* @__PURE__ */ React__default["default"].createElement(
|
|
10914
|
+
reactNative.View,
|
|
10915
|
+
{
|
|
10916
|
+
style: [
|
|
10917
|
+
styles$b.calendarCard,
|
|
10918
|
+
{ backgroundColor: theme.SURFACE_SECONDARY }
|
|
10919
|
+
]
|
|
10920
|
+
},
|
|
10921
|
+
/* @__PURE__ */ React__default["default"].createElement(
|
|
10922
|
+
reactNativeCalendars.Calendar,
|
|
10923
|
+
{
|
|
10924
|
+
key: monthKey,
|
|
10925
|
+
current: currentDateStr,
|
|
10926
|
+
markedDates: getMarkedDates(),
|
|
10927
|
+
markingType: "period",
|
|
10928
|
+
hideArrows: true,
|
|
10929
|
+
renderHeader: renderCalendarHeader,
|
|
10930
|
+
theme: {
|
|
10931
|
+
calendarBackground: "transparent",
|
|
10932
|
+
dayTextColor: theme.CONTENT_PRIMARY,
|
|
10933
|
+
textDisabledColor: theme.CONTENT_DISABLE_DARK,
|
|
10934
|
+
todayTextColor: theme.CONTENT_PRIMARY,
|
|
10935
|
+
textSectionTitleColor: theme.CONTENT_SECONDRY,
|
|
10936
|
+
textDayFontSize: 16,
|
|
10937
|
+
textDayFontWeight: "500",
|
|
10938
|
+
textDayHeaderFontSize: 11,
|
|
10939
|
+
textDayHeaderFontWeight: "300",
|
|
10940
|
+
// Reduce row gap from default 14px (7+7) to 4px (2+2) to match Figma.
|
|
10941
|
+
weekVerticalMargin: 2,
|
|
10942
|
+
// Remove the calendar body's default 5px horizontal padding so the date
|
|
10943
|
+
// grid aligns flush with the custom renderHeader content.
|
|
10944
|
+
"stylesheet.calendar.main": {
|
|
10945
|
+
container: {
|
|
10946
|
+
paddingLeft: 0,
|
|
10947
|
+
paddingRight: 0,
|
|
10948
|
+
backgroundColor: "transparent"
|
|
10949
|
+
}
|
|
10928
10950
|
},
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10951
|
+
// Strip Calendar header container's default padding/margin, zero the
|
|
10952
|
+
// day-names row top margin, and apply uppercase + correct sizing to
|
|
10953
|
+
// each day abbreviation label.
|
|
10954
|
+
"stylesheet.calendar.header": {
|
|
10955
|
+
header: {
|
|
10956
|
+
paddingLeft: 0,
|
|
10957
|
+
paddingRight: 0,
|
|
10958
|
+
marginTop: 0,
|
|
10959
|
+
marginBottom: 0
|
|
10960
|
+
},
|
|
10961
|
+
week: {
|
|
10962
|
+
marginTop: 8,
|
|
10963
|
+
flexDirection: "row",
|
|
10964
|
+
justifyContent: "space-around"
|
|
10965
|
+
},
|
|
10966
|
+
dayHeader: {
|
|
10967
|
+
marginTop: 2,
|
|
10968
|
+
marginBottom: 7,
|
|
10969
|
+
width: 32,
|
|
10970
|
+
textAlign: "center",
|
|
10971
|
+
textTransform: "uppercase",
|
|
10972
|
+
fontSize: 11,
|
|
10973
|
+
fontWeight: "300",
|
|
10974
|
+
color: theme.CONTENT_SECONDRY
|
|
10975
|
+
}
|
|
10938
10976
|
}
|
|
10939
|
-
}
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
)
|
|
10977
|
+
},
|
|
10978
|
+
style: { backgroundColor: "transparent", borderRadius: 0 },
|
|
10979
|
+
onDayPress,
|
|
10980
|
+
firstDay: 1,
|
|
10981
|
+
...calendarProps
|
|
10982
|
+
}
|
|
10983
|
+
)
|
|
10984
|
+
), /* @__PURE__ */ React__default["default"].createElement(
|
|
10947
10985
|
Button,
|
|
10948
10986
|
{
|
|
10949
10987
|
title: btnTitle,
|
|
10950
10988
|
onPress: () => {
|
|
10951
10989
|
onButtonPress(selectedRange?.startDate, selectedRange?.endDate);
|
|
10952
10990
|
},
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
backgroundColor: theme.SURFACE_INVERTED,
|
|
10956
|
-
borderColor: theme.NOTIFICATIONS_HIGHLIGHT
|
|
10957
|
-
},
|
|
10958
|
-
textStyle: { color: theme.CONTENT_INVERTED },
|
|
10991
|
+
variant: "primary",
|
|
10992
|
+
size: "large",
|
|
10959
10993
|
disabled: isButtonDisabled
|
|
10960
10994
|
}
|
|
10961
10995
|
));
|
|
@@ -10979,20 +11013,20 @@ const OurOfficesButton = ({
|
|
|
10979
11013
|
reactNative.TouchableOpacity,
|
|
10980
11014
|
{
|
|
10981
11015
|
style: [
|
|
10982
|
-
styles$
|
|
11016
|
+
styles$a.button,
|
|
10983
11017
|
{ backgroundColor: theme["SURFACE_SECONDARY"] },
|
|
10984
11018
|
containerStyle
|
|
10985
11019
|
],
|
|
10986
11020
|
onPress
|
|
10987
11021
|
},
|
|
10988
|
-
leftIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10989
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
11022
|
+
leftIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$a.iconContainer }, React__default["default"].cloneElement(leftIcon)),
|
|
11023
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$a.textContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
10990
11024
|
CustomText$1,
|
|
10991
11025
|
{
|
|
10992
11026
|
text: title,
|
|
10993
11027
|
variant: titleVariant,
|
|
10994
11028
|
textColor: titleColor,
|
|
10995
|
-
style: styles$
|
|
11029
|
+
style: styles$a.textView
|
|
10996
11030
|
}
|
|
10997
11031
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
10998
11032
|
CustomText$1,
|
|
@@ -11000,13 +11034,13 @@ const OurOfficesButton = ({
|
|
|
11000
11034
|
text: description,
|
|
11001
11035
|
variant: descriptionVariant,
|
|
11002
11036
|
textColor: descriptionColor,
|
|
11003
|
-
style: styles$
|
|
11037
|
+
style: styles$a.flexWrap
|
|
11004
11038
|
}
|
|
11005
11039
|
)),
|
|
11006
|
-
rightIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
11040
|
+
rightIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$a.rightIconContainer }, React__default["default"].cloneElement(rightIcon))
|
|
11007
11041
|
);
|
|
11008
11042
|
};
|
|
11009
|
-
const styles$
|
|
11043
|
+
const styles$a = reactNative.StyleSheet.create({
|
|
11010
11044
|
button: {
|
|
11011
11045
|
flexDirection: "row",
|
|
11012
11046
|
alignItems: "center",
|
|
@@ -11030,7 +11064,7 @@ const styles$b = reactNative.StyleSheet.create({
|
|
|
11030
11064
|
});
|
|
11031
11065
|
var OurOffices = withThemeProvider(OurOfficesButton);
|
|
11032
11066
|
|
|
11033
|
-
const styles$
|
|
11067
|
+
const styles$9 = reactNative.StyleSheet.create({
|
|
11034
11068
|
iconContainer: {
|
|
11035
11069
|
position: "relative",
|
|
11036
11070
|
alignItems: "center"
|
|
@@ -11059,10 +11093,10 @@ const NotificationBandge = ({
|
|
|
11059
11093
|
if (notificationCount <= 0) {
|
|
11060
11094
|
return icon;
|
|
11061
11095
|
}
|
|
11062
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
11096
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$9.iconContainer }, icon, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$9.badge }, /* @__PURE__ */ React__default["default"].createElement(reactNative.Text, { style: [styles$9.badgeText] }, notificationCount > 99 ? "99+" : notificationCount)));
|
|
11063
11097
|
};
|
|
11064
11098
|
|
|
11065
|
-
const createStyles$
|
|
11099
|
+
const createStyles$4 = (theme) => {
|
|
11066
11100
|
return reactNative.StyleSheet.create({
|
|
11067
11101
|
// ── ScrollableList ────────────────────────────────────────────
|
|
11068
11102
|
container: {
|
|
@@ -11157,7 +11191,7 @@ const CategoryItem = React.memo(
|
|
|
11157
11191
|
enableTextWrap
|
|
11158
11192
|
}) => {
|
|
11159
11193
|
const { theme } = useTheme();
|
|
11160
|
-
const styles = React.useMemo(() => createStyles$
|
|
11194
|
+
const styles = React.useMemo(() => createStyles$4(theme), [theme]);
|
|
11161
11195
|
const handlePress = React.useCallback(
|
|
11162
11196
|
() => onPress(item.name, item.value),
|
|
11163
11197
|
[onPress, item.name, item.value]
|
|
@@ -11254,7 +11288,7 @@ const ScrollableList = ({
|
|
|
11254
11288
|
data && data.length > 0 ? data[0].name : null
|
|
11255
11289
|
);
|
|
11256
11290
|
const { theme } = useTheme();
|
|
11257
|
-
const styles = React.useMemo(() => createStyles$
|
|
11291
|
+
const styles = React.useMemo(() => createStyles$4(theme), [theme]);
|
|
11258
11292
|
const activeKey = activeTab ?? selectedItem;
|
|
11259
11293
|
const handlePress = React.useCallback(
|
|
11260
11294
|
(name, value) => {
|
|
@@ -11297,7 +11331,7 @@ const ScrollableList = ({
|
|
|
11297
11331
|
};
|
|
11298
11332
|
var category = withThemeProvider(ScrollableList);
|
|
11299
11333
|
|
|
11300
|
-
const createStyles$
|
|
11334
|
+
const createStyles$3 = (theme) => {
|
|
11301
11335
|
return reactNative.StyleSheet.create({
|
|
11302
11336
|
container: {
|
|
11303
11337
|
flex: 1,
|
|
@@ -11375,7 +11409,7 @@ const FeedbackForm = ({
|
|
|
11375
11409
|
const isFilled = feedback.length > 0;
|
|
11376
11410
|
const label = inputLabel ?? inputText;
|
|
11377
11411
|
const { theme } = useTheme();
|
|
11378
|
-
const styles = createStyles$
|
|
11412
|
+
const styles = createStyles$3(theme);
|
|
11379
11413
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.container }, /* @__PURE__ */ React__default["default"].createElement(
|
|
11380
11414
|
CustomText$1,
|
|
11381
11415
|
{
|
|
@@ -11460,7 +11494,7 @@ const CountryDropDown = ({
|
|
|
11460
11494
|
setCallingCode(`+${country.callingCode[0]}`);
|
|
11461
11495
|
getCountryCode(`+${country.callingCode[0]}`);
|
|
11462
11496
|
};
|
|
11463
|
-
return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
11497
|
+
return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$8.container, containerStyle] }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$8.countryPickerContainer, countryPickerStyle] }, /* @__PURE__ */ React__default["default"].createElement(
|
|
11464
11498
|
CountryPicker__default["default"],
|
|
11465
11499
|
{
|
|
11466
11500
|
withFilter: true,
|
|
@@ -11474,20 +11508,20 @@ const CountryDropDown = ({
|
|
|
11474
11508
|
reactNative.Text,
|
|
11475
11509
|
{
|
|
11476
11510
|
onPress: () => setPickerVisible(true),
|
|
11477
|
-
style: [styles$
|
|
11511
|
+
style: [styles$8.callingCode, callingCodeStyle]
|
|
11478
11512
|
},
|
|
11479
11513
|
callingCode
|
|
11480
|
-
)), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
11514
|
+
)), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$8.flex }, (isFocused || value) && /* @__PURE__ */ React__default["default"].createElement(
|
|
11481
11515
|
CustomTypography,
|
|
11482
11516
|
{
|
|
11483
11517
|
variant: "L2_REGULAR",
|
|
11484
11518
|
text: label ?? "",
|
|
11485
|
-
style: styles$
|
|
11519
|
+
style: styles$8.floatingLabel
|
|
11486
11520
|
}
|
|
11487
11521
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
11488
11522
|
reactNative.TextInput,
|
|
11489
11523
|
{
|
|
11490
|
-
style: [styles$
|
|
11524
|
+
style: [styles$8.input, inputStyle],
|
|
11491
11525
|
placeholder: !isFocused ? placeholder : "",
|
|
11492
11526
|
keyboardType: "phone-pad",
|
|
11493
11527
|
value,
|
|
@@ -11503,13 +11537,13 @@ const CountryDropDown = ({
|
|
|
11503
11537
|
variant: "L2_REGULAR",
|
|
11504
11538
|
text: errorMessage ?? "",
|
|
11505
11539
|
style: {
|
|
11506
|
-
...styles$
|
|
11540
|
+
...styles$8.errorStyle,
|
|
11507
11541
|
color: DHRE_DEFAULT.DH_SEMENTIC_ERROR
|
|
11508
11542
|
}
|
|
11509
11543
|
}
|
|
11510
11544
|
) : null);
|
|
11511
11545
|
};
|
|
11512
|
-
const styles$
|
|
11546
|
+
const styles$8 = reactNative.StyleSheet.create({
|
|
11513
11547
|
flex: {
|
|
11514
11548
|
flex: 1
|
|
11515
11549
|
},
|
|
@@ -11570,6 +11604,7 @@ const CommonTextInput = (props) => {
|
|
|
11570
11604
|
keyboardType = "default",
|
|
11571
11605
|
placeholderText,
|
|
11572
11606
|
inputStyle,
|
|
11607
|
+
containerStyle,
|
|
11573
11608
|
maxLength,
|
|
11574
11609
|
errorMessage,
|
|
11575
11610
|
helperText,
|
|
@@ -11598,7 +11633,7 @@ const CommonTextInput = (props) => {
|
|
|
11598
11633
|
const labelColor = isError ? theme[Theme.ERROR] : isDisabled ? theme[Theme.CONTENT_TERTIARY] : theme[Theme.CONTENT_PRIMARY];
|
|
11599
11634
|
const helperColor = isError ? theme[Theme.ERROR] : isDisabled ? theme[Theme.CONTENT_TERTIARY] : theme[Theme.CONTENT_SECONDRY];
|
|
11600
11635
|
const helperMessage = errorMessage || helperText;
|
|
11601
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: handlePress, style: styles$
|
|
11636
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: handlePress, style: [styles$7.container, containerStyle] }, /* @__PURE__ */ React__default["default"].createElement(
|
|
11602
11637
|
reactNativePaper.TextInput,
|
|
11603
11638
|
{
|
|
11604
11639
|
mode: "outlined",
|
|
@@ -11607,7 +11642,7 @@ const CommonTextInput = (props) => {
|
|
|
11607
11642
|
spellCheck: false,
|
|
11608
11643
|
autoCorrect: false,
|
|
11609
11644
|
outlineStyle: {
|
|
11610
|
-
...styles$
|
|
11645
|
+
...styles$7.outlineStyle,
|
|
11611
11646
|
borderColor: currentBorderColor,
|
|
11612
11647
|
borderWidth,
|
|
11613
11648
|
backgroundColor: containerBackground
|
|
@@ -11629,7 +11664,8 @@ const CommonTextInput = (props) => {
|
|
|
11629
11664
|
primary: labelColor,
|
|
11630
11665
|
// error drives the error indicator colour
|
|
11631
11666
|
error: isError ? theme[Theme.ERROR] : labelColor,
|
|
11632
|
-
// background behind the floating label — must be
|
|
11667
|
+
// background behind the floating label pill — must be opaque and match the
|
|
11668
|
+
// parent surface; defaults to SURFACE_PRIMARY (standard screen background)
|
|
11633
11669
|
background: theme[Theme.SURFACE_PRIMARY]
|
|
11634
11670
|
},
|
|
11635
11671
|
fonts: {
|
|
@@ -11648,12 +11684,7 @@ const CommonTextInput = (props) => {
|
|
|
11648
11684
|
}
|
|
11649
11685
|
}
|
|
11650
11686
|
},
|
|
11651
|
-
style: [
|
|
11652
|
-
styles$8.input,
|
|
11653
|
-
inputStyle,
|
|
11654
|
-
multiline && styles$8.multilineInput,
|
|
11655
|
-
{ backgroundColor: containerBackground }
|
|
11656
|
-
],
|
|
11687
|
+
style: [styles$7.input, inputStyle, multiline && styles$7.multilineInput],
|
|
11657
11688
|
contentStyle: {
|
|
11658
11689
|
fontFamily: InterLight,
|
|
11659
11690
|
textAlign: isRTL ? "right" : "left"
|
|
@@ -11684,7 +11715,7 @@ const CommonTextInput = (props) => {
|
|
|
11684
11715
|
{
|
|
11685
11716
|
style: [
|
|
11686
11717
|
FONT_STYLES[isDisabled ? FontStyle.BODY2_MEDIUM : FontStyle.BODY2_LIGHT],
|
|
11687
|
-
styles$
|
|
11718
|
+
styles$7.helperStyle,
|
|
11688
11719
|
{
|
|
11689
11720
|
color: helperColor,
|
|
11690
11721
|
textAlign: isRTL ? "right" : "left"
|
|
@@ -11694,7 +11725,7 @@ const CommonTextInput = (props) => {
|
|
|
11694
11725
|
helperMessage
|
|
11695
11726
|
) : null);
|
|
11696
11727
|
};
|
|
11697
|
-
const styles$
|
|
11728
|
+
const styles$7 = reactNative.StyleSheet.create({
|
|
11698
11729
|
container: {
|
|
11699
11730
|
justifyContent: "center"
|
|
11700
11731
|
},
|
|
@@ -11769,7 +11800,7 @@ const CustomDropdown = (props) => {
|
|
|
11769
11800
|
reactNative.Text,
|
|
11770
11801
|
{
|
|
11771
11802
|
style: [
|
|
11772
|
-
styles$
|
|
11803
|
+
styles$6.label,
|
|
11773
11804
|
FONT_STYLES[FontStyle.BODY2_LIGHT],
|
|
11774
11805
|
{
|
|
11775
11806
|
color: labelColor,
|
|
@@ -11794,11 +11825,11 @@ const CustomDropdown = (props) => {
|
|
|
11794
11825
|
};
|
|
11795
11826
|
const renderItem = (item) => {
|
|
11796
11827
|
const isSelected = item[valueField] === value;
|
|
11797
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
11828
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$6.itemContainer, itemContainerStyle] }, /* @__PURE__ */ React__default["default"].createElement(
|
|
11798
11829
|
reactNative.Text,
|
|
11799
11830
|
{
|
|
11800
11831
|
style: [
|
|
11801
|
-
styles$
|
|
11832
|
+
styles$6.itemText,
|
|
11802
11833
|
FONT_STYLES[FontStyle.BODY2_LIGHT],
|
|
11803
11834
|
{ color: theme.CONTENT_PRIMARY },
|
|
11804
11835
|
itemTextStyle,
|
|
@@ -11808,12 +11839,12 @@ const CustomDropdown = (props) => {
|
|
|
11808
11839
|
item[labelField]
|
|
11809
11840
|
));
|
|
11810
11841
|
};
|
|
11811
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
11842
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$6.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React__default["default"].createElement(
|
|
11812
11843
|
reactNativeElementDropdown.Dropdown,
|
|
11813
11844
|
{
|
|
11814
11845
|
...props,
|
|
11815
11846
|
style: [
|
|
11816
|
-
styles$
|
|
11847
|
+
styles$6.dropdown,
|
|
11817
11848
|
{
|
|
11818
11849
|
borderColor: fieldBorderColor,
|
|
11819
11850
|
borderWidth: fieldBorderWidth,
|
|
@@ -11823,18 +11854,18 @@ const CustomDropdown = (props) => {
|
|
|
11823
11854
|
isFocus && dropdownFocusStyle
|
|
11824
11855
|
],
|
|
11825
11856
|
placeholderStyle: [
|
|
11826
|
-
styles$
|
|
11857
|
+
styles$6.placeholderStyle,
|
|
11827
11858
|
FONT_STYLES[FontStyle.BODY2_LIGHT],
|
|
11828
11859
|
{ color: theme.CONTENT_SECONDRY },
|
|
11829
11860
|
placeholderStyle
|
|
11830
11861
|
],
|
|
11831
11862
|
selectedTextStyle: [
|
|
11832
|
-
styles$
|
|
11863
|
+
styles$6.selectedTextStyle,
|
|
11833
11864
|
FONT_STYLES[FontStyle.BODY2_LIGHT],
|
|
11834
11865
|
{ color: valueTextColor },
|
|
11835
11866
|
selectedTextStyle
|
|
11836
11867
|
],
|
|
11837
|
-
iconStyle: [styles$
|
|
11868
|
+
iconStyle: [styles$6.iconStyle, iconStyle],
|
|
11838
11869
|
data: data ?? [],
|
|
11839
11870
|
labelField,
|
|
11840
11871
|
valueField,
|
|
@@ -11864,7 +11895,7 @@ const CustomDropdown = (props) => {
|
|
|
11864
11895
|
menuContainerStyle
|
|
11865
11896
|
],
|
|
11866
11897
|
activeColor: activeColor ?? theme.SURFACE_SECONDARY,
|
|
11867
|
-
itemContainerStyle: [styles$
|
|
11898
|
+
itemContainerStyle: [styles$6.itemListStyle, itemContainerStyle],
|
|
11868
11899
|
disable,
|
|
11869
11900
|
autoScroll,
|
|
11870
11901
|
dropdownPosition,
|
|
@@ -11877,7 +11908,7 @@ const CustomDropdown = (props) => {
|
|
|
11877
11908
|
reactNative.Text,
|
|
11878
11909
|
{
|
|
11879
11910
|
style: [
|
|
11880
|
-
styles$
|
|
11911
|
+
styles$6.helperText,
|
|
11881
11912
|
FONT_STYLES[FontStyle.BODY2_LIGHT],
|
|
11882
11913
|
{ color: helperColor }
|
|
11883
11914
|
]
|
|
@@ -11885,7 +11916,7 @@ const CustomDropdown = (props) => {
|
|
|
11885
11916
|
helperMessage
|
|
11886
11917
|
) : null);
|
|
11887
11918
|
};
|
|
11888
|
-
const styles$
|
|
11919
|
+
const styles$6 = reactNative.StyleSheet.create({
|
|
11889
11920
|
container: {
|
|
11890
11921
|
marginVertical: verticalScale(4),
|
|
11891
11922
|
direction: "ltr",
|
|
@@ -11932,7 +11963,7 @@ const styles$7 = reactNative.StyleSheet.create({
|
|
|
11932
11963
|
});
|
|
11933
11964
|
var DropDown = withThemeProvider(CustomDropdown);
|
|
11934
11965
|
|
|
11935
|
-
const styles$
|
|
11966
|
+
const styles$5 = reactNative.StyleSheet.create({
|
|
11936
11967
|
mainContainer: {
|
|
11937
11968
|
flexDirection: "row",
|
|
11938
11969
|
justifyContent: "space-between",
|
|
@@ -11991,18 +12022,18 @@ const CustomSwitchBtn = ({
|
|
|
11991
12022
|
{
|
|
11992
12023
|
disabled,
|
|
11993
12024
|
onPress: toggleSwitch,
|
|
11994
|
-
style: { ...styles$
|
|
12025
|
+
style: { ...styles$5.mainContainer, ...containerStyle }
|
|
11995
12026
|
},
|
|
11996
12027
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
11997
12028
|
reactNative.Animated.View,
|
|
11998
12029
|
{
|
|
11999
|
-
style: [styles$
|
|
12030
|
+
style: [styles$5.circle, { transform: [{ translateX }], ...circleStyle }]
|
|
12000
12031
|
}
|
|
12001
12032
|
),
|
|
12002
12033
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
12003
12034
|
CustomTypography,
|
|
12004
12035
|
{
|
|
12005
|
-
style: [styles$
|
|
12036
|
+
style: [styles$5.activeText, value ? inActiveTextStyle : activeTextStyle],
|
|
12006
12037
|
text: activeText,
|
|
12007
12038
|
variant: activeTextVariant
|
|
12008
12039
|
}
|
|
@@ -12011,7 +12042,7 @@ const CustomSwitchBtn = ({
|
|
|
12011
12042
|
CustomTypography,
|
|
12012
12043
|
{
|
|
12013
12044
|
style: [
|
|
12014
|
-
styles$
|
|
12045
|
+
styles$5.inActiveText,
|
|
12015
12046
|
value ? activeTextStyle : inActiveTextStyle
|
|
12016
12047
|
],
|
|
12017
12048
|
text: inActiveText,
|
|
@@ -12049,7 +12080,7 @@ class ToastService {
|
|
|
12049
12080
|
}
|
|
12050
12081
|
const toastService = new ToastService();
|
|
12051
12082
|
|
|
12052
|
-
const createStyles$
|
|
12083
|
+
const createStyles$2 = (theme) => reactNative.StyleSheet.create({
|
|
12053
12084
|
listContainer: {
|
|
12054
12085
|
paddingHorizontal: 10,
|
|
12055
12086
|
alignItems: "center"
|
|
@@ -12091,7 +12122,7 @@ const TagsComponent = ({
|
|
|
12091
12122
|
unselectedTagButton
|
|
12092
12123
|
}) => {
|
|
12093
12124
|
const { theme } = useTheme();
|
|
12094
|
-
const styles = createStyles$
|
|
12125
|
+
const styles = createStyles$2(theme);
|
|
12095
12126
|
const reorderedTags = () => {
|
|
12096
12127
|
if (selectedTag) {
|
|
12097
12128
|
return [
|
|
@@ -12141,7 +12172,7 @@ const TagsComponent = ({
|
|
|
12141
12172
|
};
|
|
12142
12173
|
var TagSingleSelection = withThemeProvider(TagsComponent);
|
|
12143
12174
|
|
|
12144
|
-
const styles$
|
|
12175
|
+
const styles$4 = reactNative.StyleSheet.create({
|
|
12145
12176
|
textInputContainer: {
|
|
12146
12177
|
flexDirection: "row",
|
|
12147
12178
|
gap: DHRE_PADDING.MD,
|
|
@@ -12324,12 +12355,12 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
12324
12355
|
...otpHeaderTextStyle
|
|
12325
12356
|
}
|
|
12326
12357
|
}
|
|
12327
|
-
), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$
|
|
12358
|
+
), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$4.textInputContainer } }, Array.from({ length }).map((_, index) => /* @__PURE__ */ React__default["default"].createElement(
|
|
12328
12359
|
reactNative.TextInput,
|
|
12329
12360
|
{
|
|
12330
12361
|
key: index?.toString(),
|
|
12331
12362
|
style: {
|
|
12332
|
-
...styles$
|
|
12363
|
+
...styles$4.textInputStyle,
|
|
12333
12364
|
color: !isEditable ? theme$1.CONTENT_DISABLE_DARK : otp.length === length ? theme$1.STROKE_PRIMARY : theme$1.CONTENT_PRIMARY,
|
|
12334
12365
|
backgroundColor: !isEditable ? theme$1.SURFACE_PRIMARY : theme$1.SURFACE_TERTIARY_TRANSPARENT,
|
|
12335
12366
|
borderColor: !isEditable ? theme$1.CONTENT_DISABLE_DARK : errorMessage || isInValidOtp && otp?.length === length ? theme$1.ERROR : otp.length === length ? theme$1.SUCCESS : otp[index] ? theme$1.STROKE_PRIMARY : theme$1.CONTENT_SECONDRY,
|
|
@@ -12350,7 +12381,7 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
12350
12381
|
selectionColor: theme$1.CONTENT_PRIMARY,
|
|
12351
12382
|
editable: isEditable
|
|
12352
12383
|
}
|
|
12353
|
-
))), !errorMessageMaxReachCount && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
12384
|
+
))), !errorMessageMaxReachCount && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$4.timerContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$4.timerIconContainer }, errorMessage ? /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, errorIcon ? React__default["default"].cloneElement(errorIcon, {
|
|
12354
12385
|
width: DHRE_SPACING_BASE.SPACE_20,
|
|
12355
12386
|
height: DHRE_SPACING_BASE.SPACE_20
|
|
12356
12387
|
}) : null, /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -12374,7 +12405,7 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
12374
12405
|
reactNative.Pressable,
|
|
12375
12406
|
{
|
|
12376
12407
|
onPress: onClickResendOTP,
|
|
12377
|
-
style: styles$
|
|
12408
|
+
style: styles$4.resendOTPStyle,
|
|
12378
12409
|
disabled: disableResendButton() || !isResendOtpEnable
|
|
12379
12410
|
},
|
|
12380
12411
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -12388,7 +12419,7 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
12388
12419
|
}
|
|
12389
12420
|
}
|
|
12390
12421
|
)
|
|
12391
|
-
)), errorMessageMaxReachCount ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
12422
|
+
)), errorMessageMaxReachCount ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$4.resendOtpContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
12392
12423
|
CustomTypography,
|
|
12393
12424
|
{
|
|
12394
12425
|
text: errorMessageMaxReachCount,
|
|
@@ -12403,7 +12434,7 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
12403
12434
|
);
|
|
12404
12435
|
OTPInput.displayName = "OTPInput";
|
|
12405
12436
|
|
|
12406
|
-
const styles$
|
|
12437
|
+
const styles$3 = reactNative.StyleSheet.create({
|
|
12407
12438
|
stepperContainer: {
|
|
12408
12439
|
flexDirection: "row",
|
|
12409
12440
|
marginBottom: 24,
|
|
@@ -12497,27 +12528,27 @@ const Stepper = ({
|
|
|
12497
12528
|
const { theme } = useTheme();
|
|
12498
12529
|
const renderCircleStyle = (status) => {
|
|
12499
12530
|
if (status === Status.Active) {
|
|
12500
|
-
return { ...styles$
|
|
12531
|
+
return { ...styles$3.activeStepCircle, borderColor: theme.CONTENT_PRIMARY };
|
|
12501
12532
|
} else if (status === Status.Inactive) {
|
|
12502
12533
|
return {
|
|
12503
|
-
...styles$
|
|
12534
|
+
...styles$3.inactiveStepCircle,
|
|
12504
12535
|
borderColor: theme.CONTENT_SECONDRY
|
|
12505
12536
|
};
|
|
12506
12537
|
} else if (status === Status.Completed) {
|
|
12507
|
-
return { ...styles$
|
|
12538
|
+
return { ...styles$3.completeStepCircle, backgroundColor: theme.SUCCESS };
|
|
12508
12539
|
} else {
|
|
12509
|
-
return { ...styles$
|
|
12540
|
+
return { ...styles$3.stepCountCircle, borderColor: theme.BORDER_PRIMARY };
|
|
12510
12541
|
}
|
|
12511
12542
|
};
|
|
12512
12543
|
const renderLableStyle = (status) => {
|
|
12513
12544
|
if (status === Status.Active) {
|
|
12514
|
-
return { ...styles$
|
|
12545
|
+
return { ...styles$3.activeStepLabel, color: theme.CONTENT_PRIMARY };
|
|
12515
12546
|
} else if (status === Status.Inactive) {
|
|
12516
|
-
return { ...styles$
|
|
12547
|
+
return { ...styles$3.inactiveStepLabel, color: theme.CONTENT_SECONDRY };
|
|
12517
12548
|
} else if (status === Status.Completed) {
|
|
12518
|
-
return { ...styles$
|
|
12549
|
+
return { ...styles$3.completeStepLabel, color: theme.CONTENT_PRIMARY };
|
|
12519
12550
|
} else {
|
|
12520
|
-
return { ...styles$
|
|
12551
|
+
return { ...styles$3.countStepLabel, color: theme.CONTENT_PRIMARY };
|
|
12521
12552
|
}
|
|
12522
12553
|
};
|
|
12523
12554
|
const renderDividerStyle = (status) => {
|
|
@@ -12527,25 +12558,25 @@ const Stepper = ({
|
|
|
12527
12558
|
return { borderColor: theme.BORDER_PRIMARY };
|
|
12528
12559
|
} else if (status === Status.Completed) {
|
|
12529
12560
|
return {
|
|
12530
|
-
...styles$
|
|
12561
|
+
...styles$3.completeStepDivider,
|
|
12531
12562
|
borderColor: theme.CONTENT_PRIMARY
|
|
12532
12563
|
};
|
|
12533
12564
|
} else {
|
|
12534
12565
|
return { borderColor: theme.CONTENT_SECONDRY };
|
|
12535
12566
|
}
|
|
12536
12567
|
};
|
|
12537
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$
|
|
12568
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$3.stepperContainer, ...containerStyle } }, data?.map((item, index) => {
|
|
12538
12569
|
const stepCircleStyle = renderCircleStyle(item?.status);
|
|
12539
12570
|
const dividerStyle = renderDividerStyle(item?.status);
|
|
12540
12571
|
const labelStyle = renderLableStyle(item?.status);
|
|
12541
|
-
const lastViewStyle = index === data?.length - 1 ? styles$
|
|
12572
|
+
const lastViewStyle = index === data?.length - 1 ? styles$3.lastStepWrapper : null;
|
|
12542
12573
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
12543
12574
|
reactNative.View,
|
|
12544
12575
|
{
|
|
12545
12576
|
key: index?.toString(),
|
|
12546
|
-
style: { ...styles$
|
|
12577
|
+
style: { ...styles$3.stepperWrapper, ...lastViewStyle }
|
|
12547
12578
|
},
|
|
12548
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
12579
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$3.stepperSeparatorContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...stepCircleStyle } }, showStepCount && /* @__PURE__ */ React__default["default"].createElement(
|
|
12549
12580
|
CustomTypography,
|
|
12550
12581
|
{
|
|
12551
12582
|
text: item?.step,
|
|
@@ -12554,8 +12585,8 @@ const Stepper = ({
|
|
|
12554
12585
|
color: theme.CONTENT_PRIMARY
|
|
12555
12586
|
}
|
|
12556
12587
|
}
|
|
12557
|
-
), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$
|
|
12558
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
12588
|
+
), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$3.separator, ...dividerStyle } })),
|
|
12589
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$3.lableContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
12559
12590
|
CustomTypography,
|
|
12560
12591
|
{
|
|
12561
12592
|
text: item?.label,
|
|
@@ -12566,17 +12597,22 @@ const Stepper = ({
|
|
|
12566
12597
|
);
|
|
12567
12598
|
}));
|
|
12568
12599
|
};
|
|
12569
|
-
var index$
|
|
12600
|
+
var index$4 = withThemeProvider(Stepper);
|
|
12570
12601
|
|
|
12571
|
-
const styles$
|
|
12602
|
+
const styles$2 = reactNative.StyleSheet.create({
|
|
12572
12603
|
container: {
|
|
12573
12604
|
flex: 1,
|
|
12574
12605
|
justifyContent: "center",
|
|
12575
12606
|
alignItems: "center"
|
|
12576
12607
|
},
|
|
12608
|
+
gradientShell: {
|
|
12609
|
+
borderRadius: DHRE_RADIUS.PILL,
|
|
12610
|
+
padding: OUTLINED_BORDER_WIDTH
|
|
12611
|
+
},
|
|
12577
12612
|
sliderContainer: {
|
|
12578
|
-
height:
|
|
12579
|
-
//
|
|
12613
|
+
height: DHRE_COMPONENT_HEIGHT.BUTTON_MD - OUTLINED_BORDER_WIDTH * 2,
|
|
12614
|
+
// pill shape — overflow:hidden clips all child content to the rounded boundary
|
|
12615
|
+
borderRadius: DHRE_RADIUS.PILL,
|
|
12580
12616
|
overflow: "hidden",
|
|
12581
12617
|
justifyContent: "center"
|
|
12582
12618
|
},
|
|
@@ -12587,11 +12623,13 @@ const styles$3 = reactNative.StyleSheet.create({
|
|
|
12587
12623
|
justifyContent: "center"
|
|
12588
12624
|
},
|
|
12589
12625
|
button: {
|
|
12590
|
-
height:
|
|
12626
|
+
height: DHRE_COMPONENT_HEIGHT.INPUT_SM,
|
|
12591
12627
|
justifyContent: "center",
|
|
12592
12628
|
alignItems: "center",
|
|
12593
|
-
//
|
|
12594
|
-
|
|
12629
|
+
// circular thumb — consumer can override via sliderStyle prop
|
|
12630
|
+
borderRadius: DHRE_RADIUS.PILL,
|
|
12631
|
+
// 4px inset keeps thumb inside pill boundary (matches Figma left:4, top:4)
|
|
12632
|
+
margin: DHRE_PADDING.XS
|
|
12595
12633
|
},
|
|
12596
12634
|
buttonTextContainer: {
|
|
12597
12635
|
position: "absolute",
|
|
@@ -12601,11 +12639,10 @@ const styles$3 = reactNative.StyleSheet.create({
|
|
|
12601
12639
|
top: 0,
|
|
12602
12640
|
alignItems: "center",
|
|
12603
12641
|
justifyContent: "center"
|
|
12604
|
-
// borderRadius: 25,
|
|
12605
12642
|
}
|
|
12606
12643
|
});
|
|
12607
12644
|
|
|
12608
|
-
const
|
|
12645
|
+
const DEFAULT_SIZE = 40;
|
|
12609
12646
|
const CustomSlideButton = React__default["default"].forwardRef(
|
|
12610
12647
|
({
|
|
12611
12648
|
label,
|
|
@@ -12615,17 +12652,21 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
12615
12652
|
textStyle,
|
|
12616
12653
|
containerStyle,
|
|
12617
12654
|
sliderStyle,
|
|
12618
|
-
size =
|
|
12655
|
+
size = DEFAULT_SIZE,
|
|
12619
12656
|
sliderBackgroundColor = "#fff",
|
|
12620
12657
|
sliderTextColor = "#000",
|
|
12621
|
-
resetTimer = 2e3
|
|
12658
|
+
resetTimer = 2e3,
|
|
12659
|
+
isRTL = false,
|
|
12660
|
+
completedContainerStyle
|
|
12622
12661
|
}, ref) => {
|
|
12662
|
+
const thumbOffset = verticalScale(size) + DHRE_PADDING.XS * 2;
|
|
12623
12663
|
const value = React.useRef(0);
|
|
12624
12664
|
const cardRef = React.useRef(null);
|
|
12625
12665
|
const [translateX] = React.useState(new reactNative.Animated.Value(0));
|
|
12626
12666
|
const sliderConteinerRef = React.useRef(null);
|
|
12627
12667
|
const [color] = React.useState(new reactNative.Animated.Value(0));
|
|
12628
12668
|
const [sliderBackgroundColorRef] = React.useState(new reactNative.Animated.Value(0));
|
|
12669
|
+
const [isCompleted, setIsCompleted] = React.useState(false);
|
|
12629
12670
|
React__default["default"].useImperativeHandle(ref, () => ({
|
|
12630
12671
|
reset() {
|
|
12631
12672
|
resetAll();
|
|
@@ -12636,15 +12677,18 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
12636
12677
|
if (cardRef.current) {
|
|
12637
12678
|
cardRef.current.setNativeProps({
|
|
12638
12679
|
style: { width }
|
|
12639
|
-
// Change the width here
|
|
12640
12680
|
});
|
|
12641
12681
|
value.current = width;
|
|
12642
12682
|
sliderConteinerRef?.current?.setNativeProps({
|
|
12643
12683
|
style: { width }
|
|
12644
12684
|
});
|
|
12645
12685
|
}
|
|
12686
|
+
if (isRTL) {
|
|
12687
|
+
translateX.setValue(value.current - thumbOffset);
|
|
12688
|
+
}
|
|
12646
12689
|
};
|
|
12647
12690
|
const resetAll = () => {
|
|
12691
|
+
setIsCompleted(false);
|
|
12648
12692
|
onReset?.();
|
|
12649
12693
|
reactNative.Animated.timing(sliderBackgroundColorRef, {
|
|
12650
12694
|
toValue: 0,
|
|
@@ -12661,7 +12705,7 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
12661
12705
|
// because we're animating the color, not layout
|
|
12662
12706
|
}).start();
|
|
12663
12707
|
reactNative.Animated.timing(translateX, {
|
|
12664
|
-
toValue: 0,
|
|
12708
|
+
toValue: isRTL ? value.current - thumbOffset : 0,
|
|
12665
12709
|
useNativeDriver: false
|
|
12666
12710
|
}).start();
|
|
12667
12711
|
};
|
|
@@ -12672,39 +12716,73 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
12672
12716
|
},
|
|
12673
12717
|
onPanResponderTerminationRequest: () => false,
|
|
12674
12718
|
onPanResponderMove: (evt, gestureState) => {
|
|
12675
|
-
if (
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12719
|
+
if (isRTL) {
|
|
12720
|
+
if (gestureState.dx < 0 && gestureState.dx >= -(value.current - thumbOffset)) {
|
|
12721
|
+
translateX.setValue(value.current - thumbOffset + gestureState.dx);
|
|
12722
|
+
const colorValue = gestureState.dx < -(value.current / 3) ? 1 : 0;
|
|
12723
|
+
reactNative.Animated.timing(color, {
|
|
12724
|
+
toValue: colorValue,
|
|
12725
|
+
duration: 0,
|
|
12726
|
+
// no transition time, immediate change
|
|
12727
|
+
useNativeDriver: false
|
|
12728
|
+
}).start();
|
|
12729
|
+
}
|
|
12730
|
+
} else {
|
|
12731
|
+
if (gestureState.dx > 0 && gestureState.dx <= value.current - thumbOffset) {
|
|
12732
|
+
translateX.setValue(gestureState.dx);
|
|
12733
|
+
const colorValue = gestureState.dx > value.current / 3 ? 1 : 0;
|
|
12734
|
+
reactNative.Animated.timing(color, {
|
|
12735
|
+
toValue: colorValue,
|
|
12736
|
+
duration: 0,
|
|
12737
|
+
// no transition time, immediate change
|
|
12738
|
+
useNativeDriver: false
|
|
12739
|
+
}).start();
|
|
12740
|
+
}
|
|
12685
12741
|
}
|
|
12686
12742
|
},
|
|
12687
12743
|
onPanResponderRelease: (e, gestureState) => {
|
|
12688
|
-
if (
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12744
|
+
if (isRTL) {
|
|
12745
|
+
if (gestureState.dx <= -(value.current * 0.8)) {
|
|
12746
|
+
reactNative.Animated.timing(translateX, {
|
|
12747
|
+
toValue: 0,
|
|
12748
|
+
// snap to leftmost position (completed side for RTL)
|
|
12749
|
+
duration: 300,
|
|
12750
|
+
useNativeDriver: false
|
|
12751
|
+
}).start();
|
|
12752
|
+
reactNative.Animated.timing(sliderBackgroundColorRef, {
|
|
12753
|
+
toValue: 1,
|
|
12754
|
+
duration: 0,
|
|
12755
|
+
useNativeDriver: false
|
|
12756
|
+
}).start();
|
|
12757
|
+
setIsCompleted(true);
|
|
12758
|
+
onComplete?.();
|
|
12759
|
+
setTimeout(() => {
|
|
12760
|
+
resetAll();
|
|
12761
|
+
}, resetTimer);
|
|
12762
|
+
} else {
|
|
12704
12763
|
resetAll();
|
|
12705
|
-
}
|
|
12764
|
+
}
|
|
12706
12765
|
} else {
|
|
12707
|
-
|
|
12766
|
+
if (gestureState.dx >= value.current * 0.8) {
|
|
12767
|
+
reactNative.Animated.timing(translateX, {
|
|
12768
|
+
toValue: value.current - thumbOffset,
|
|
12769
|
+
// slide to the end
|
|
12770
|
+
duration: 300,
|
|
12771
|
+
useNativeDriver: false
|
|
12772
|
+
}).start();
|
|
12773
|
+
reactNative.Animated.timing(sliderBackgroundColorRef, {
|
|
12774
|
+
toValue: 1,
|
|
12775
|
+
duration: 0,
|
|
12776
|
+
useNativeDriver: false
|
|
12777
|
+
}).start();
|
|
12778
|
+
setIsCompleted(true);
|
|
12779
|
+
onComplete?.();
|
|
12780
|
+
setTimeout(() => {
|
|
12781
|
+
resetAll();
|
|
12782
|
+
}, resetTimer);
|
|
12783
|
+
} else {
|
|
12784
|
+
resetAll();
|
|
12785
|
+
}
|
|
12708
12786
|
}
|
|
12709
12787
|
},
|
|
12710
12788
|
onPanResponderTerminate: () => {
|
|
@@ -12720,49 +12798,62 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
12720
12798
|
outputRange: [sliderBackgroundColor, "transparent"]
|
|
12721
12799
|
});
|
|
12722
12800
|
const { theme } = useTheme();
|
|
12723
|
-
return /* @__PURE__ */ React__default["default"].createElement(
|
|
12724
|
-
|
|
12725
|
-
backgroundColor: theme.SURFACE_INVERTED,
|
|
12726
|
-
...containerStyle
|
|
12727
|
-
}, onLayout: handleLayout, ref: cardRef }, /* @__PURE__ */ React__default["default"].createElement(
|
|
12728
|
-
reactNative.Animated.View,
|
|
12729
|
-
{
|
|
12730
|
-
style: [styles$3.buttonTextContainer, { backgroundColor, transform: [{ translateX }] }],
|
|
12731
|
-
ref: sliderConteinerRef
|
|
12732
|
-
}
|
|
12733
|
-
), /* @__PURE__ */ React__default["default"].createElement(
|
|
12734
|
-
reactNative.View,
|
|
12735
|
-
{
|
|
12736
|
-
style: styles$3.buttonTextContainer
|
|
12737
|
-
},
|
|
12738
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.Animated.Text, { style: [{
|
|
12739
|
-
alignSelf: "center",
|
|
12740
|
-
...textStyle
|
|
12741
|
-
}, { color: textColor }] }, label)
|
|
12742
|
-
), /* @__PURE__ */ React__default["default"].createElement(
|
|
12743
|
-
reactNative.Animated.View,
|
|
12801
|
+
return /* @__PURE__ */ React__default["default"].createElement(
|
|
12802
|
+
LinearGradient__default["default"],
|
|
12744
12803
|
{
|
|
12745
|
-
|
|
12746
|
-
|
|
12804
|
+
colors: OUTLINED_GRADIENT_COLORS,
|
|
12805
|
+
start: OUTLINED_GRADIENT_START,
|
|
12806
|
+
end: OUTLINED_GRADIENT_END,
|
|
12807
|
+
style: styles$2.gradientShell
|
|
12747
12808
|
},
|
|
12748
12809
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
12749
12810
|
reactNative.View,
|
|
12750
12811
|
{
|
|
12751
|
-
style:
|
|
12752
|
-
|
|
12753
|
-
backgroundColor: theme.
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
|
|
12757
|
-
|
|
12758
|
-
|
|
12812
|
+
style: [
|
|
12813
|
+
styles$2.sliderContainer,
|
|
12814
|
+
{ backgroundColor: theme.SURFACE_INVERTED },
|
|
12815
|
+
containerStyle,
|
|
12816
|
+
isCompleted && { backgroundColor: theme.BUTTON_SUCCESS_FILL },
|
|
12817
|
+
isCompleted ? completedContainerStyle : void 0
|
|
12818
|
+
],
|
|
12819
|
+
onLayout: handleLayout,
|
|
12820
|
+
ref: cardRef
|
|
12759
12821
|
},
|
|
12760
|
-
|
|
12822
|
+
/* @__PURE__ */ React__default["default"].createElement(
|
|
12823
|
+
reactNative.Animated.View,
|
|
12824
|
+
{
|
|
12825
|
+
style: [styles$2.buttonTextContainer, { backgroundColor, transform: [{ translateX }] }],
|
|
12826
|
+
ref: sliderConteinerRef
|
|
12827
|
+
}
|
|
12828
|
+
),
|
|
12829
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$2.buttonTextContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.Animated.Text, { style: [{ alignSelf: "center", ...textStyle }, { color: textColor }] }, label)),
|
|
12830
|
+
/* @__PURE__ */ React__default["default"].createElement(
|
|
12831
|
+
reactNative.Animated.View,
|
|
12832
|
+
{
|
|
12833
|
+
style: [styles$2.slider, { transform: [{ translateX }] }],
|
|
12834
|
+
...panResponder.panHandlers
|
|
12835
|
+
},
|
|
12836
|
+
/* @__PURE__ */ React__default["default"].createElement(
|
|
12837
|
+
reactNative.View,
|
|
12838
|
+
{
|
|
12839
|
+
style: {
|
|
12840
|
+
...styles$2.button,
|
|
12841
|
+
backgroundColor: theme.SURFACE_PRIMARY,
|
|
12842
|
+
width: verticalScale(size),
|
|
12843
|
+
height: verticalScale(size),
|
|
12844
|
+
...sliderStyle
|
|
12845
|
+
}
|
|
12846
|
+
},
|
|
12847
|
+
icon
|
|
12848
|
+
)
|
|
12849
|
+
)
|
|
12761
12850
|
)
|
|
12762
|
-
)
|
|
12851
|
+
);
|
|
12763
12852
|
}
|
|
12764
12853
|
);
|
|
12765
|
-
var index$
|
|
12854
|
+
var index$3 = withThemeProvider(
|
|
12855
|
+
CustomSlideButton
|
|
12856
|
+
);
|
|
12766
12857
|
|
|
12767
12858
|
const DHRE_STROKE = {
|
|
12768
12859
|
NONE: 0,
|
|
@@ -12822,7 +12913,7 @@ const AVATAR_SPEC = {
|
|
|
12822
12913
|
ringInset: 6
|
|
12823
12914
|
}
|
|
12824
12915
|
};
|
|
12825
|
-
const createStyles = (size, theme) => {
|
|
12916
|
+
const createStyles$1 = (size, theme) => {
|
|
12826
12917
|
const dimensions = AVATAR_SPEC[size];
|
|
12827
12918
|
return reactNative.StyleSheet.create({
|
|
12828
12919
|
container: {
|
|
@@ -12898,9 +12989,9 @@ const createStyles = (size, theme) => {
|
|
|
12898
12989
|
}
|
|
12899
12990
|
});
|
|
12900
12991
|
};
|
|
12901
|
-
const smallStyles = (theme) => createStyles(AvatarSize.SMALL, theme);
|
|
12902
|
-
const mediumStyles = (theme) => createStyles(AvatarSize.MEDIUM, theme);
|
|
12903
|
-
const largeStyles = (theme) => createStyles(AvatarSize.LARGE, theme);
|
|
12992
|
+
const smallStyles = (theme) => createStyles$1(AvatarSize.SMALL, theme);
|
|
12993
|
+
const mediumStyles = (theme) => createStyles$1(AvatarSize.MEDIUM, theme);
|
|
12994
|
+
const largeStyles = (theme) => createStyles$1(AvatarSize.LARGE, theme);
|
|
12904
12995
|
const getStylesBySize = (size, theme) => {
|
|
12905
12996
|
switch (size) {
|
|
12906
12997
|
case "small":
|
|
@@ -13051,7 +13142,7 @@ const Avatar = (props) => {
|
|
|
13051
13142
|
};
|
|
13052
13143
|
var Avatar$1 = withThemeProvider(Avatar);
|
|
13053
13144
|
|
|
13054
|
-
const styles$
|
|
13145
|
+
const styles$1 = reactNative.StyleSheet.create({
|
|
13055
13146
|
accordionContainer: {
|
|
13056
13147
|
gap: verticalScale(8),
|
|
13057
13148
|
marginHorizontal: horizontalScale(24),
|
|
@@ -13156,13 +13247,13 @@ const AppointmentCard = ({
|
|
|
13156
13247
|
isOpen,
|
|
13157
13248
|
onToggle,
|
|
13158
13249
|
containerStyle: {
|
|
13159
|
-
...styles$
|
|
13250
|
+
...styles$1.accordionStyle,
|
|
13160
13251
|
backgroundColor: theme.SURFACE_SECONDARY,
|
|
13161
13252
|
borderColor: theme.BORDER_SEPERATOR_HEADER,
|
|
13162
13253
|
borderBottomColor: theme.BORDER_SEPERATOR_HEADER
|
|
13163
13254
|
},
|
|
13164
|
-
headerStyle: styles$
|
|
13165
|
-
headerComponent: () => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
13255
|
+
headerStyle: styles$1.accordionHeader,
|
|
13256
|
+
headerComponent: () => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$1.accordionHeaderContent }, headerIcon, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$1.accordionText }, /* @__PURE__ */ React__default["default"].createElement(
|
|
13166
13257
|
CustomTypography,
|
|
13167
13258
|
{
|
|
13168
13259
|
text: headerTitle,
|
|
@@ -13183,18 +13274,18 @@ const AppointmentCard = ({
|
|
|
13183
13274
|
reactNative.View,
|
|
13184
13275
|
{
|
|
13185
13276
|
style: [
|
|
13186
|
-
styles$
|
|
13277
|
+
styles$1.accordionDetails,
|
|
13187
13278
|
{ borderTopColor: theme.BORDER_SEPERATOR_HEADER }
|
|
13188
13279
|
]
|
|
13189
13280
|
},
|
|
13190
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
13281
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$1.appointmentInfo }, data.map(({ title: title2, value, isLocation, isStatus }) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$1.infoColumn, key: title2 }, /* @__PURE__ */ React__default["default"].createElement(
|
|
13191
13282
|
CustomTypography,
|
|
13192
13283
|
{
|
|
13193
13284
|
text: title2,
|
|
13194
13285
|
variant: FontStyle.L3_REGULAR,
|
|
13195
13286
|
style: { color: theme.CONTENT_SECONDRY }
|
|
13196
13287
|
}
|
|
13197
|
-
), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
13288
|
+
), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$1.infoRow }, isStatus && statusIcon, /* @__PURE__ */ React__default["default"].createElement(
|
|
13198
13289
|
CustomTypography,
|
|
13199
13290
|
{
|
|
13200
13291
|
text: value,
|
|
@@ -13209,7 +13300,7 @@ const AppointmentCard = ({
|
|
|
13209
13300
|
text: directionText,
|
|
13210
13301
|
variant: FontStyle.L2_REGULAR,
|
|
13211
13302
|
style: [
|
|
13212
|
-
styles$
|
|
13303
|
+
styles$1.getDirectionsText,
|
|
13213
13304
|
{ color: theme.CONTENT_PRIMARY }
|
|
13214
13305
|
],
|
|
13215
13306
|
onPress: onDirectionPress
|
|
@@ -13219,7 +13310,7 @@ const AppointmentCard = ({
|
|
|
13219
13310
|
reactNative.View,
|
|
13220
13311
|
{
|
|
13221
13312
|
style: [
|
|
13222
|
-
styles$
|
|
13313
|
+
styles$1.infoContainer,
|
|
13223
13314
|
{
|
|
13224
13315
|
backgroundColor: theme.SURFACE_TERTIARY
|
|
13225
13316
|
}
|
|
@@ -13239,7 +13330,7 @@ const AppointmentCard = ({
|
|
|
13239
13330
|
reactNative.View,
|
|
13240
13331
|
{
|
|
13241
13332
|
style: [
|
|
13242
|
-
styles$
|
|
13333
|
+
styles$1.actionsContainer,
|
|
13243
13334
|
{
|
|
13244
13335
|
borderTopColor: theme.BORDER_SEPERATOR_HEADER
|
|
13245
13336
|
}
|
|
@@ -13251,7 +13342,7 @@ const AppointmentCard = ({
|
|
|
13251
13342
|
text: viewText,
|
|
13252
13343
|
variant: FontStyle.L2_REGULAR,
|
|
13253
13344
|
style: [
|
|
13254
|
-
styles$
|
|
13345
|
+
styles$1.viewText,
|
|
13255
13346
|
{
|
|
13256
13347
|
color: theme.CONTENT_PRIMARY
|
|
13257
13348
|
}
|
|
@@ -13259,12 +13350,12 @@ const AppointmentCard = ({
|
|
|
13259
13350
|
onPress: onViewDetailsPress
|
|
13260
13351
|
}
|
|
13261
13352
|
),
|
|
13262
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
13353
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$1.actionIcons }, /* @__PURE__ */ React__default["default"].createElement(
|
|
13263
13354
|
CustomIcon$1,
|
|
13264
13355
|
{
|
|
13265
13356
|
icon: deleteIcon,
|
|
13266
13357
|
containerStyle: {
|
|
13267
|
-
...styles$
|
|
13358
|
+
...styles$1.iconContainer,
|
|
13268
13359
|
backgroundColor: theme.SURFACE_INVERTED
|
|
13269
13360
|
},
|
|
13270
13361
|
onPress: onDeletePress
|
|
@@ -13274,7 +13365,7 @@ const AppointmentCard = ({
|
|
|
13274
13365
|
{
|
|
13275
13366
|
icon: editIcon,
|
|
13276
13367
|
containerStyle: {
|
|
13277
|
-
...styles$
|
|
13368
|
+
...styles$1.iconContainer,
|
|
13278
13369
|
backgroundColor: theme.SURFACE_INVERTED
|
|
13279
13370
|
},
|
|
13280
13371
|
onPress: onEditPress
|
|
@@ -13284,9 +13375,9 @@ const AppointmentCard = ({
|
|
|
13284
13375
|
)
|
|
13285
13376
|
);
|
|
13286
13377
|
};
|
|
13287
|
-
var index$
|
|
13378
|
+
var index$2 = withThemeProvider(AppointmentCard);
|
|
13288
13379
|
|
|
13289
|
-
const styles
|
|
13380
|
+
const styles = reactNative.StyleSheet.create({
|
|
13290
13381
|
container: {
|
|
13291
13382
|
flexDirection: "row",
|
|
13292
13383
|
alignItems: "center",
|
|
@@ -13343,7 +13434,7 @@ const PropertyDetails = ({
|
|
|
13343
13434
|
reactNative.View,
|
|
13344
13435
|
{
|
|
13345
13436
|
style: [
|
|
13346
|
-
styles
|
|
13437
|
+
styles.container,
|
|
13347
13438
|
{
|
|
13348
13439
|
backgroundColor: theme.SURFACE_PRIMARY,
|
|
13349
13440
|
borderColor: isSelected ? theme.STROKE_ACTIVE : theme.STROKE_TERTIARY
|
|
@@ -13358,12 +13449,12 @@ const PropertyDetails = ({
|
|
|
13358
13449
|
containerStyle
|
|
13359
13450
|
]
|
|
13360
13451
|
},
|
|
13361
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles
|
|
13452
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.imageWrapper }, React__default["default"].cloneElement(icon, {
|
|
13362
13453
|
width: "100%",
|
|
13363
13454
|
height: "100%",
|
|
13364
13455
|
borderRadius: DHRE_RADIUS.MD
|
|
13365
|
-
}), brandIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles
|
|
13366
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles
|
|
13456
|
+
}), brandIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.brandBadge }, brandIcon)),
|
|
13457
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.propertyInfo }, propertyNumber && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.propertyNumber, propertyNumberStyle] }, /* @__PURE__ */ React__default["default"].createElement(
|
|
13367
13458
|
CustomTypography,
|
|
13368
13459
|
{
|
|
13369
13460
|
text: propertyNumber,
|
|
@@ -13394,31 +13485,45 @@ const PropertyDetails = ({
|
|
|
13394
13485
|
)
|
|
13395
13486
|
);
|
|
13396
13487
|
};
|
|
13397
|
-
var index = withThemeProvider(PropertyDetails);
|
|
13488
|
+
var index$1 = withThemeProvider(PropertyDetails);
|
|
13398
13489
|
|
|
13399
|
-
const
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
|
|
13403
|
-
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
|
|
13408
|
-
|
|
13409
|
-
|
|
13410
|
-
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
|
|
13490
|
+
const createStyles = (themeColors, size, radioColor) => {
|
|
13491
|
+
const radioSize = size === "large" ? moderateScale(24) : moderateScale(20);
|
|
13492
|
+
const dotSize = size === "large" ? moderateScale(12) : moderateScale(10);
|
|
13493
|
+
const resolvedRadioColor = radioColor ?? themeColors[Theme.STROKE_ACTIVE];
|
|
13494
|
+
return reactNative.StyleSheet.create({
|
|
13495
|
+
container: {
|
|
13496
|
+
rowGap: verticalScale(12)
|
|
13497
|
+
},
|
|
13498
|
+
optionContainer: {
|
|
13499
|
+
flexDirection: "row",
|
|
13500
|
+
columnGap: horizontalScale(8),
|
|
13501
|
+
alignItems: "flex-start"
|
|
13502
|
+
},
|
|
13503
|
+
radioButton: {
|
|
13504
|
+
width: radioSize,
|
|
13505
|
+
height: radioSize,
|
|
13506
|
+
borderRadius: moderateScale(100),
|
|
13507
|
+
borderWidth: 1,
|
|
13508
|
+
borderColor: resolvedRadioColor,
|
|
13509
|
+
justifyContent: "center",
|
|
13510
|
+
alignItems: "center"
|
|
13511
|
+
},
|
|
13512
|
+
radioButtonSelected: {
|
|
13513
|
+
borderWidth: 2,
|
|
13514
|
+
backgroundColor: themeColors[Theme.CONTENT_INVERTED]
|
|
13515
|
+
},
|
|
13516
|
+
radioButtonInnerDot: {
|
|
13517
|
+
width: dotSize,
|
|
13518
|
+
height: dotSize,
|
|
13519
|
+
borderRadius: moderateScale(50),
|
|
13520
|
+
backgroundColor: resolvedRadioColor
|
|
13521
|
+
},
|
|
13522
|
+
label: {
|
|
13523
|
+
color: themeColors[Theme.CONTENT_PRIMARY]
|
|
13524
|
+
}
|
|
13525
|
+
});
|
|
13526
|
+
};
|
|
13422
13527
|
|
|
13423
13528
|
const RadioButtonGroup = ({
|
|
13424
13529
|
data,
|
|
@@ -13426,8 +13531,13 @@ const RadioButtonGroup = ({
|
|
|
13426
13531
|
containerStyle,
|
|
13427
13532
|
labelStyle,
|
|
13428
13533
|
optionContainerStyle,
|
|
13429
|
-
selectedValue
|
|
13534
|
+
selectedValue,
|
|
13535
|
+
size = "large",
|
|
13536
|
+
fontVariant,
|
|
13537
|
+
radioColor
|
|
13430
13538
|
}) => {
|
|
13539
|
+
const { theme } = useTheme();
|
|
13540
|
+
const styles = createStyles(theme, size, radioColor);
|
|
13431
13541
|
const [selectedOption, setSelectedOption] = React.useState(
|
|
13432
13542
|
selectedValue ?? data[0]?.value
|
|
13433
13543
|
);
|
|
@@ -13435,12 +13545,14 @@ const RadioButtonGroup = ({
|
|
|
13435
13545
|
setSelectedOption(item.value);
|
|
13436
13546
|
onSelect(item);
|
|
13437
13547
|
};
|
|
13548
|
+
const resolvedFontVariant = fontVariant ?? (size === "small" ? FontStyle.BODY2_MEDIUM : FontStyle.BODY1_MEDIUM);
|
|
13438
13549
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.container, containerStyle] }, data?.map((item) => /* @__PURE__ */ React__default["default"].createElement(
|
|
13439
13550
|
reactNative.TouchableOpacity,
|
|
13440
13551
|
{
|
|
13441
13552
|
key: item.value,
|
|
13442
13553
|
style: [styles.optionContainer, optionContainerStyle],
|
|
13443
|
-
onPress: () => handleSelect(item)
|
|
13554
|
+
onPress: () => handleSelect(item),
|
|
13555
|
+
activeOpacity: 1
|
|
13444
13556
|
},
|
|
13445
13557
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
13446
13558
|
reactNative.View,
|
|
@@ -13449,22 +13561,24 @@ const RadioButtonGroup = ({
|
|
|
13449
13561
|
styles.radioButton,
|
|
13450
13562
|
selectedOption === item.value && styles.radioButtonSelected
|
|
13451
13563
|
]
|
|
13452
|
-
}
|
|
13564
|
+
},
|
|
13565
|
+
selectedOption === item.value && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.radioButtonInnerDot })
|
|
13453
13566
|
),
|
|
13454
13567
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
13455
13568
|
CustomTypography,
|
|
13456
13569
|
{
|
|
13457
|
-
variant:
|
|
13570
|
+
variant: resolvedFontVariant,
|
|
13458
13571
|
text: item.label,
|
|
13459
13572
|
style: [styles.label, labelStyle]
|
|
13460
13573
|
}
|
|
13461
13574
|
)
|
|
13462
13575
|
)));
|
|
13463
13576
|
};
|
|
13577
|
+
var index = withThemeProvider(RadioButtonGroup);
|
|
13464
13578
|
|
|
13465
13579
|
exports.Accordion = Accordion$1;
|
|
13466
13580
|
exports.AnimationLoitte = AnimationWithImperativeApi;
|
|
13467
|
-
exports.AppointmentCard = index$
|
|
13581
|
+
exports.AppointmentCard = index$2;
|
|
13468
13582
|
exports.Avatar = Avatar$1;
|
|
13469
13583
|
exports.AvatarSize = AvatarSize;
|
|
13470
13584
|
exports.Background = Background$1;
|
|
@@ -13484,7 +13598,7 @@ exports.CustomIcon = CustomIcon$1;
|
|
|
13484
13598
|
exports.CustomLoader = CustomLoader$1;
|
|
13485
13599
|
exports.CustomProgressBar = CustomProgressBar$1;
|
|
13486
13600
|
exports.CustomSearchBar = CustomSearchBar$1;
|
|
13487
|
-
exports.CustomSlideButton = index$
|
|
13601
|
+
exports.CustomSlideButton = index$3;
|
|
13488
13602
|
exports.CustomSwitchBtn = CustomSwitchBtn;
|
|
13489
13603
|
exports.CustomText = CustomText$1;
|
|
13490
13604
|
exports.CustomTextInput = CustomTextInput;
|
|
@@ -13531,12 +13645,12 @@ exports.OTPInput = OTPInput;
|
|
|
13531
13645
|
exports.OurOfficesButton = OurOffices;
|
|
13532
13646
|
exports.PdfView = PdfView;
|
|
13533
13647
|
exports.PopUp = PopUp;
|
|
13534
|
-
exports.PropertyDetails = index;
|
|
13535
|
-
exports.RadioButtonGroup =
|
|
13648
|
+
exports.PropertyDetails = index$1;
|
|
13649
|
+
exports.RadioButtonGroup = index;
|
|
13536
13650
|
exports.ShapeType = ShapeType;
|
|
13537
13651
|
exports.SingleSelectionTags = TagSingleSelection;
|
|
13538
13652
|
exports.StarRating = Star;
|
|
13539
|
-
exports.Stepper = index$
|
|
13653
|
+
exports.Stepper = index$4;
|
|
13540
13654
|
exports.SwipableList = SwipableList$1;
|
|
13541
13655
|
exports.Tabs = Tabs$1;
|
|
13542
13656
|
exports.Tags = Tags;
|