dhre-ui-kit 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/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 +10 -3
- package/lib/components/checkBox/CheckBox.styles.d.ts +8 -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/components/toast/Toast.styles.d.ts +0 -1
- package/lib/index.js +638 -442
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +631 -438
- package/lib/index.mjs.map +1 -1
- package/lib/theme/colors.d.ts +12 -0
- package/lib/theme/gradients.d.ts +10 -0
- package/lib/theme/themes.d.ts +8 -0
- package/lib/utils/appEnum.d.ts +3 -1
- package/package.json +1 -1
- package/lib/components/customDocumentPicker/CustomDocumentPicker.d.ts +0 -0
- package/lib/components/customDocumentPicker/CustomDocumentPicker.interface.d.ts +0 -0
- package/lib/components/customDocumentPicker/CustomDocumentPicker.styles.d.ts +0 -30
- package/lib/components/customDocumentPicker/index.d.ts +0 -0
package/lib/index.js
CHANGED
|
@@ -223,6 +223,8 @@ 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";
|
|
227
|
+
Theme2["SHADOW_10"] = "SHADOW_10";
|
|
226
228
|
return Theme2;
|
|
227
229
|
})(Theme || {});
|
|
228
230
|
|
|
@@ -494,6 +496,70 @@ const DHRE_CONFIRMATION_BASE_GRADIENT = {
|
|
|
494
496
|
light: ["rgba(165, 233, 255, 0)", "#52C5E8"],
|
|
495
497
|
dark: ["rgba(165, 233, 255, 0)", "#279DC1"]
|
|
496
498
|
};
|
|
499
|
+
const GRADIENT_COLORS_SUCCESS = {
|
|
500
|
+
light: [
|
|
501
|
+
"#89C798",
|
|
502
|
+
"#FFFFFF",
|
|
503
|
+
"#A5E9FF",
|
|
504
|
+
"#52C5E8",
|
|
505
|
+
"#0B214A",
|
|
506
|
+
"#355D7A"
|
|
507
|
+
],
|
|
508
|
+
// NEED TO UPDATE GRADIENT COLORS
|
|
509
|
+
dark: [
|
|
510
|
+
"#24584B",
|
|
511
|
+
"#123D46",
|
|
512
|
+
"#00113A",
|
|
513
|
+
"#000A28",
|
|
514
|
+
"#0B214A",
|
|
515
|
+
"#355D7A"
|
|
516
|
+
]
|
|
517
|
+
};
|
|
518
|
+
const GRADIENT_COLORS_ERROR = {
|
|
519
|
+
light: [
|
|
520
|
+
"#F0809E",
|
|
521
|
+
"#FFFFFF",
|
|
522
|
+
"#A5E9FF",
|
|
523
|
+
"#52C5E8",
|
|
524
|
+
"#0B214A",
|
|
525
|
+
"#355D7A"
|
|
526
|
+
],
|
|
527
|
+
// NEED TO UPDATE GRADIENT COLORS
|
|
528
|
+
dark: [
|
|
529
|
+
"#EB0542",
|
|
530
|
+
// 0%
|
|
531
|
+
"#780835",
|
|
532
|
+
// ~2%
|
|
533
|
+
"#00113A",
|
|
534
|
+
// 28%
|
|
535
|
+
"#000A28",
|
|
536
|
+
// 45%
|
|
537
|
+
"#0B214A",
|
|
538
|
+
// 88%
|
|
539
|
+
"#355D7A"
|
|
540
|
+
// 100%
|
|
541
|
+
]
|
|
542
|
+
};
|
|
543
|
+
const GRADIENT_COLORS_PENDING = {
|
|
544
|
+
light: ["#E9F8FF", "#52C5E8"],
|
|
545
|
+
// NEED TO UPDATE GRADIENT COLORS
|
|
546
|
+
dark: [
|
|
547
|
+
"#EB0542",
|
|
548
|
+
// 0%
|
|
549
|
+
"#780835",
|
|
550
|
+
// ~2%
|
|
551
|
+
"#00113A",
|
|
552
|
+
// 28%
|
|
553
|
+
"#000A28",
|
|
554
|
+
// 45%
|
|
555
|
+
"#000A28",
|
|
556
|
+
// 72%
|
|
557
|
+
"#0B214A",
|
|
558
|
+
// 88%
|
|
559
|
+
"#355D7A"
|
|
560
|
+
// 100%
|
|
561
|
+
]
|
|
562
|
+
};
|
|
497
563
|
|
|
498
564
|
const theme = {
|
|
499
565
|
[Theme.SURFACE_PRIMARY]: {
|
|
@@ -836,6 +902,14 @@ const theme = {
|
|
|
836
902
|
dark: "#009db3",
|
|
837
903
|
light: "#009db3"
|
|
838
904
|
// light-theme value pending DHDS Figma spec
|
|
905
|
+
},
|
|
906
|
+
[Theme.STROKE_DISABLED_SELECTED]: {
|
|
907
|
+
dark: "#003f48",
|
|
908
|
+
light: "#9ADFE8"
|
|
909
|
+
},
|
|
910
|
+
[Theme.SHADOW_10]: {
|
|
911
|
+
dark: "rgba(255, 255, 255, 0.20)",
|
|
912
|
+
light: "rgba(0, 0, 0, 0.10)"
|
|
839
913
|
}
|
|
840
914
|
};
|
|
841
915
|
|
|
@@ -940,13 +1014,13 @@ const CustomTypography = ({
|
|
|
940
1014
|
reactNative.Text,
|
|
941
1015
|
{
|
|
942
1016
|
testID,
|
|
943
|
-
style: [textStyle, styles$
|
|
1017
|
+
style: [textStyle, styles$A.container, style],
|
|
944
1018
|
...props
|
|
945
1019
|
},
|
|
946
1020
|
text
|
|
947
1021
|
);
|
|
948
1022
|
};
|
|
949
|
-
const styles$
|
|
1023
|
+
const styles$A = reactNative.StyleSheet.create({
|
|
950
1024
|
container: { writingDirection: "auto", alignSelf: "flex-start" }
|
|
951
1025
|
});
|
|
952
1026
|
|
|
@@ -985,7 +1059,7 @@ const commonStyles = reactNative.StyleSheet.create({
|
|
|
985
1059
|
}
|
|
986
1060
|
});
|
|
987
1061
|
|
|
988
|
-
const styles$
|
|
1062
|
+
const styles$z = reactNative.StyleSheet.create({
|
|
989
1063
|
badge: {
|
|
990
1064
|
backgroundColor: DHRE_COLORS_ALERT.DH_SUCCESS_GREEN,
|
|
991
1065
|
borderRadius: 15,
|
|
@@ -1012,16 +1086,16 @@ const Badge = ({
|
|
|
1012
1086
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
1013
1087
|
reactNative.Pressable,
|
|
1014
1088
|
{
|
|
1015
|
-
style: [styles$
|
|
1089
|
+
style: [styles$z.badge, commonStyles.centerRow, style],
|
|
1016
1090
|
testID: "BADGE",
|
|
1017
1091
|
onPress: handleIconPress
|
|
1018
1092
|
},
|
|
1019
|
-
iconName && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
1093
|
+
iconName && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.icon, iconStyle] }, React__default["default"].cloneElement(iconName)),
|
|
1020
1094
|
text && /* @__PURE__ */ React__default["default"].createElement(
|
|
1021
1095
|
CustomTypography,
|
|
1022
1096
|
{
|
|
1023
1097
|
variant: "B3semiBold",
|
|
1024
|
-
style: [styles$
|
|
1098
|
+
style: [styles$z.text, textStyle],
|
|
1025
1099
|
text
|
|
1026
1100
|
}
|
|
1027
1101
|
)
|
|
@@ -1189,7 +1263,7 @@ const chipStyles = reactNative.StyleSheet.create({
|
|
|
1189
1263
|
justifyContent: "center",
|
|
1190
1264
|
borderWidth: 1,
|
|
1191
1265
|
borderRadius: DHRE_RADIUS.PILL,
|
|
1192
|
-
gap:
|
|
1266
|
+
gap: DHRE_PADDING.SM
|
|
1193
1267
|
},
|
|
1194
1268
|
sizeLarge: {
|
|
1195
1269
|
height: DHRE_SPACING_BASE.SPACE_40,
|
|
@@ -1260,7 +1334,7 @@ const Chip = ({
|
|
|
1260
1334
|
disabled
|
|
1261
1335
|
);
|
|
1262
1336
|
const contentColor = resolveContentColor(themeColors, selected, disabled);
|
|
1263
|
-
const textVariant = size === "large" ? FontStyle.BODY2_LIGHT : FontStyle.BODY3_LIGHT;
|
|
1337
|
+
const textVariant = size === "large" ? selected ? FontStyle.BODY2_MEDIUM : FontStyle.BODY2_LIGHT : selected ? FontStyle.BODY3_MEDIUM : FontStyle.BODY3_LIGHT;
|
|
1264
1338
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
1265
1339
|
reactNative.Pressable,
|
|
1266
1340
|
{
|
|
@@ -1302,7 +1376,7 @@ var BackgroundVariant = /* @__PURE__ */ ((BackgroundVariant2) => {
|
|
|
1302
1376
|
return BackgroundVariant2;
|
|
1303
1377
|
})(BackgroundVariant || {});
|
|
1304
1378
|
|
|
1305
|
-
const styles$
|
|
1379
|
+
const styles$y = reactNative.StyleSheet.create({
|
|
1306
1380
|
container: {
|
|
1307
1381
|
flex: 1,
|
|
1308
1382
|
overflow: "hidden"
|
|
@@ -1366,7 +1440,7 @@ const Background = ({
|
|
|
1366
1440
|
reactNative.View,
|
|
1367
1441
|
{
|
|
1368
1442
|
testID,
|
|
1369
|
-
style: [styles$
|
|
1443
|
+
style: [styles$y.container, { backgroundColor: config.base }, style]
|
|
1370
1444
|
},
|
|
1371
1445
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
1372
1446
|
Svg__default["default"],
|
|
@@ -1421,12 +1495,12 @@ const Background = ({
|
|
|
1421
1495
|
))),
|
|
1422
1496
|
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
1497
|
),
|
|
1424
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
1498
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$y.content, contentStyle] }, children)
|
|
1425
1499
|
);
|
|
1426
1500
|
};
|
|
1427
1501
|
var Background$1 = withThemeProvider(Background);
|
|
1428
1502
|
|
|
1429
|
-
const styles$
|
|
1503
|
+
const styles$x = reactNative.StyleSheet.create({
|
|
1430
1504
|
mainContainer: {
|
|
1431
1505
|
flex: 1,
|
|
1432
1506
|
justifyContent: "flex-end"
|
|
@@ -1448,21 +1522,19 @@ const styles$y = reactNative.StyleSheet.create({
|
|
|
1448
1522
|
},
|
|
1449
1523
|
separator: {
|
|
1450
1524
|
height: verticalScale(3),
|
|
1451
|
-
width:
|
|
1525
|
+
width: DHRE_SPACING_BASE.SPACE_32,
|
|
1452
1526
|
alignSelf: "center",
|
|
1453
|
-
backgroundColor: "#A7A7A7",
|
|
1454
1527
|
borderRadius: moderateScale(25)
|
|
1455
1528
|
},
|
|
1456
1529
|
headerContainer: {
|
|
1457
1530
|
flexDirection: "row",
|
|
1458
1531
|
justifyContent: "space-between",
|
|
1459
1532
|
alignItems: "center",
|
|
1460
|
-
marginTop:
|
|
1533
|
+
marginTop: DHRE_SPACING_BASE.SPACE_16
|
|
1461
1534
|
},
|
|
1462
|
-
title: { flex: 1,
|
|
1535
|
+
title: { flex: 1, textAlign: "left" },
|
|
1463
1536
|
leftIconStyle: { marginRight: 8 },
|
|
1464
1537
|
rightTitle: {
|
|
1465
|
-
color: "#fff",
|
|
1466
1538
|
textAlign: "right",
|
|
1467
1539
|
marginRight: DHRE_PADDING.LG
|
|
1468
1540
|
},
|
|
@@ -1533,11 +1605,11 @@ const BottomDrawer = ({
|
|
|
1533
1605
|
behavior: isIos() ? "padding" : "height",
|
|
1534
1606
|
style: { flex: 1 }
|
|
1535
1607
|
},
|
|
1536
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
1608
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$x.mainContainer, style], testID }, /* @__PURE__ */ React__default["default"].createElement(
|
|
1537
1609
|
reactNative.View,
|
|
1538
1610
|
{
|
|
1539
1611
|
style: [
|
|
1540
|
-
styles$
|
|
1612
|
+
styles$x.modalContainer,
|
|
1541
1613
|
{ backgroundColor: theme.SURFACE_PRIMARY },
|
|
1542
1614
|
modalContainerStyle
|
|
1543
1615
|
]
|
|
@@ -1547,35 +1619,51 @@ const BottomDrawer = ({
|
|
|
1547
1619
|
{
|
|
1548
1620
|
onPressOut: () => swipeDirection === "" && toggleModal()
|
|
1549
1621
|
},
|
|
1550
|
-
showSeparator && /* @__PURE__ */ React__default["default"].createElement(
|
|
1551
|
-
|
|
1552
|
-
|
|
1622
|
+
showSeparator && /* @__PURE__ */ React__default["default"].createElement(
|
|
1623
|
+
reactNative.View,
|
|
1624
|
+
{
|
|
1625
|
+
style: [
|
|
1626
|
+
styles$x.separator,
|
|
1627
|
+
{ backgroundColor: theme.STROKE_TERTIARY }
|
|
1628
|
+
]
|
|
1629
|
+
}
|
|
1630
|
+
),
|
|
1631
|
+
/* @__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, {
|
|
1632
|
+
style: styles$x.leftIconStyle,
|
|
1553
1633
|
onPressOut: onLeftIconPress
|
|
1554
1634
|
}) : null, /* @__PURE__ */ React__default["default"].createElement(
|
|
1555
1635
|
CustomTypography,
|
|
1556
1636
|
{
|
|
1557
1637
|
variant: titleVariant,
|
|
1558
1638
|
text: title,
|
|
1559
|
-
style: {
|
|
1639
|
+
style: {
|
|
1640
|
+
...styles$x.title,
|
|
1641
|
+
color: theme.CONTENT_PRIMARY,
|
|
1642
|
+
...titleStyle
|
|
1643
|
+
}
|
|
1560
1644
|
}
|
|
1561
1645
|
)), /* @__PURE__ */ React__default["default"].createElement(
|
|
1562
1646
|
reactNative.View,
|
|
1563
1647
|
{
|
|
1564
|
-
style: rightTitle && rightTitle?.length > 0 ? styles$
|
|
1648
|
+
style: rightTitle && rightTitle?.length > 0 ? styles$x.rightSideStyle : {}
|
|
1565
1649
|
},
|
|
1566
1650
|
rightTitle && rightTitle?.length > 0 ? /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPressOut: handleRightTitlePress }, /* @__PURE__ */ React__default["default"].createElement(
|
|
1567
1651
|
CustomTypography,
|
|
1568
1652
|
{
|
|
1569
1653
|
variant: rightTitleVariant,
|
|
1570
1654
|
text: rightTitle,
|
|
1571
|
-
style: {
|
|
1655
|
+
style: {
|
|
1656
|
+
...styles$x.rightTitle,
|
|
1657
|
+
color: theme.CONTENT_PRIMARY,
|
|
1658
|
+
...rightTitleStyle
|
|
1659
|
+
}
|
|
1572
1660
|
}
|
|
1573
1661
|
)) : null,
|
|
1574
1662
|
showRightIcon && rightIcon ? /* @__PURE__ */ React__default["default"].createElement(
|
|
1575
1663
|
reactNative.Pressable,
|
|
1576
1664
|
{
|
|
1577
1665
|
onPressOut: toggleModal,
|
|
1578
|
-
style: styles$
|
|
1666
|
+
style: styles$x.rightIconStyle
|
|
1579
1667
|
},
|
|
1580
1668
|
React__default["default"].cloneElement(rightIcon, {
|
|
1581
1669
|
width: DHRE_SPACING.LG,
|
|
@@ -1592,7 +1680,7 @@ const BottomDrawer = ({
|
|
|
1592
1680
|
};
|
|
1593
1681
|
var BottomDrawer$1 = withThemeProvider(BottomDrawer);
|
|
1594
1682
|
|
|
1595
|
-
const styles$
|
|
1683
|
+
const styles$w = reactNative.StyleSheet.create({
|
|
1596
1684
|
mainContainer: {
|
|
1597
1685
|
marginHorizontal: horizontalScale(16)
|
|
1598
1686
|
},
|
|
@@ -1878,7 +1966,7 @@ const CustomButton = ({
|
|
|
1878
1966
|
text: title,
|
|
1879
1967
|
variant: titleVariant ?? defaultTextVariant,
|
|
1880
1968
|
textColor: effectiveTextColor,
|
|
1881
|
-
style: [styles$
|
|
1969
|
+
style: [styles$w.buttonText, disabledHexStyle, textStyle]
|
|
1882
1970
|
}
|
|
1883
1971
|
), rightIcon && React__default["default"].cloneElement(rightIcon, {
|
|
1884
1972
|
width: iconSize,
|
|
@@ -1940,7 +2028,7 @@ const CustomButton = ({
|
|
|
1940
2028
|
};
|
|
1941
2029
|
var Button = withThemeProvider(CustomButton);
|
|
1942
2030
|
|
|
1943
|
-
const styles$
|
|
2031
|
+
const styles$v = reactNative.StyleSheet.create({
|
|
1944
2032
|
container: {
|
|
1945
2033
|
padding: horizontalScale(20),
|
|
1946
2034
|
marginHorizontal: horizontalScale(16),
|
|
@@ -2005,53 +2093,53 @@ const Cards = ({
|
|
|
2005
2093
|
testID,
|
|
2006
2094
|
onButtonPress
|
|
2007
2095
|
}) => {
|
|
2008
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: styles$
|
|
2096
|
+
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
2097
|
CustomTypography,
|
|
2010
2098
|
{
|
|
2011
2099
|
variant: "P2regular",
|
|
2012
|
-
style: styles$
|
|
2100
|
+
style: styles$v.title,
|
|
2013
2101
|
text: topLeftTitle
|
|
2014
2102
|
}
|
|
2015
2103
|
)) : null, title ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2016
2104
|
CustomTypography,
|
|
2017
2105
|
{
|
|
2018
2106
|
variant: "H6bold",
|
|
2019
|
-
style: styles$
|
|
2107
|
+
style: styles$v.subTitleBelow,
|
|
2020
2108
|
text: title
|
|
2021
2109
|
}
|
|
2022
2110
|
) : null, subtitle ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2023
2111
|
CustomTypography,
|
|
2024
2112
|
{
|
|
2025
2113
|
variant: "P3regular",
|
|
2026
|
-
style: styles$
|
|
2114
|
+
style: styles$v.subtitle,
|
|
2027
2115
|
text: subtitle
|
|
2028
2116
|
}
|
|
2029
|
-
) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2117
|
+
) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$v.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2030
2118
|
CustomTypography,
|
|
2031
2119
|
{
|
|
2032
2120
|
variant: "P3regular",
|
|
2033
|
-
style: styles$
|
|
2121
|
+
style: styles$v.subTitleLeftBelow,
|
|
2034
2122
|
text: iconTitle
|
|
2035
2123
|
}
|
|
2036
2124
|
) : null), buttonShown ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2037
2125
|
reactNative.Pressable,
|
|
2038
2126
|
{
|
|
2039
2127
|
testID: "Button-Press",
|
|
2040
|
-
style: styles$
|
|
2128
|
+
style: styles$v.button,
|
|
2041
2129
|
onPress: onButtonPress
|
|
2042
2130
|
},
|
|
2043
2131
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2044
2132
|
CustomTypography,
|
|
2045
2133
|
{
|
|
2046
2134
|
variant: "B2semiBold",
|
|
2047
|
-
style: styles$
|
|
2135
|
+
style: styles$v.buttonText,
|
|
2048
2136
|
text: buttonText
|
|
2049
2137
|
}
|
|
2050
2138
|
)
|
|
2051
2139
|
) : null);
|
|
2052
2140
|
};
|
|
2053
2141
|
|
|
2054
|
-
const styles$
|
|
2142
|
+
const styles$u = reactNative.StyleSheet.create({
|
|
2055
2143
|
directionStyle: {
|
|
2056
2144
|
flexDirection: "row",
|
|
2057
2145
|
alignItems: "flex-start",
|
|
@@ -2059,7 +2147,15 @@ const styles$v = reactNative.StyleSheet.create({
|
|
|
2059
2147
|
},
|
|
2060
2148
|
checkboxContainer: {
|
|
2061
2149
|
alignItems: "center",
|
|
2062
|
-
justifyContent: "center"
|
|
2150
|
+
justifyContent: "center",
|
|
2151
|
+
borderRadius: DHRE_RADIUS.SM,
|
|
2152
|
+
borderWidth: 1,
|
|
2153
|
+
overflow: "hidden"
|
|
2154
|
+
},
|
|
2155
|
+
labelContainer: {
|
|
2156
|
+
flexDirection: "row",
|
|
2157
|
+
alignItems: "center",
|
|
2158
|
+
gap: DHRE_PADDING.SM
|
|
2063
2159
|
}
|
|
2064
2160
|
});
|
|
2065
2161
|
|
|
@@ -2093,12 +2189,15 @@ const Checkbox = ({
|
|
|
2093
2189
|
partialIcon,
|
|
2094
2190
|
partialDisabledIcon,
|
|
2095
2191
|
isPartial = false,
|
|
2096
|
-
size,
|
|
2192
|
+
size = "small",
|
|
2097
2193
|
titleVariant,
|
|
2098
2194
|
titleStyle,
|
|
2099
2195
|
containerStyle,
|
|
2196
|
+
checkBoxHeaderStyle,
|
|
2197
|
+
checkboxStyle,
|
|
2100
2198
|
onPress,
|
|
2101
|
-
hideCheckbox = false
|
|
2199
|
+
hideCheckbox = false,
|
|
2200
|
+
labelIcon
|
|
2102
2201
|
}) => {
|
|
2103
2202
|
const { theme } = useTheme();
|
|
2104
2203
|
const [checked, setChecked] = React.useState(isChecked || false);
|
|
@@ -2128,16 +2227,27 @@ const Checkbox = ({
|
|
|
2128
2227
|
minWidth: size === "small" ? 20 : 24,
|
|
2129
2228
|
minHeight: size === "small" ? 20 : 24
|
|
2130
2229
|
};
|
|
2131
|
-
|
|
2230
|
+
const isFilledState = checked || isPartial;
|
|
2231
|
+
const checkboxContainerDynamicStyle = {
|
|
2232
|
+
backgroundColor: disable ? isFilledState ? theme[Theme.STROKE_DISABLED_SELECTED] : "transparent" : isFilledState ? theme[Theme.STROKE_ACTIVE] : "transparent",
|
|
2233
|
+
borderColor: disable ? theme[Theme.CONTENT_DISABLE_DARK] : theme[Theme.STROKE_ACTIVE],
|
|
2234
|
+
borderWidth: disable && isFilledState ? 0 : 1
|
|
2235
|
+
};
|
|
2236
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: containerStyle }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$u.directionStyle, checkBoxHeaderStyle] }, hideCheckbox ? null : /* @__PURE__ */ React__default["default"].createElement(
|
|
2132
2237
|
reactNative.Pressable,
|
|
2133
2238
|
{
|
|
2134
2239
|
testID: "Checkbox-Press",
|
|
2135
2240
|
onPressIn: handlePress,
|
|
2136
2241
|
disabled: disable,
|
|
2137
|
-
style: [
|
|
2242
|
+
style: [
|
|
2243
|
+
styles$u.checkboxContainer,
|
|
2244
|
+
iconContainerSizeStyle,
|
|
2245
|
+
checkboxContainerDynamicStyle,
|
|
2246
|
+
checkboxStyle
|
|
2247
|
+
]
|
|
2138
2248
|
},
|
|
2139
|
-
React__default["default"].cloneElement(resolvedIcon)
|
|
2140
|
-
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2249
|
+
resolvedIcon ? React__default["default"].cloneElement(resolvedIcon) : null
|
|
2250
|
+
), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$u.labelContainer }, labelIcon && React__default["default"].cloneElement(labelIcon, { width: 20, height: 20 }), /* @__PURE__ */ React__default["default"].createElement(
|
|
2141
2251
|
CustomTypography,
|
|
2142
2252
|
{
|
|
2143
2253
|
variant: resolvedVariant,
|
|
@@ -2145,11 +2255,11 @@ const Checkbox = ({
|
|
|
2145
2255
|
style: [labelColorStyle, titleStyle],
|
|
2146
2256
|
onPressIn: onPress
|
|
2147
2257
|
}
|
|
2148
|
-
)));
|
|
2258
|
+
))));
|
|
2149
2259
|
};
|
|
2150
2260
|
var CheckBox = withThemeProvider(Checkbox);
|
|
2151
2261
|
|
|
2152
|
-
const styles$
|
|
2262
|
+
const styles$t = reactNative.StyleSheet.create({
|
|
2153
2263
|
labelStyle: {
|
|
2154
2264
|
color: DHRE_COLORS_TEXT.DH_TEXTLIGHT
|
|
2155
2265
|
},
|
|
@@ -2203,26 +2313,26 @@ const CustomDropdown$1 = ({
|
|
|
2203
2313
|
CustomTypography,
|
|
2204
2314
|
{
|
|
2205
2315
|
variant: "P3regular",
|
|
2206
|
-
style: styles$
|
|
2316
|
+
style: styles$t.labelStyle,
|
|
2207
2317
|
text: label
|
|
2208
2318
|
}
|
|
2209
2319
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2210
2320
|
reactNative.Pressable,
|
|
2211
2321
|
{
|
|
2212
2322
|
testID: `${testId}-BTN`,
|
|
2213
|
-
style: styles$
|
|
2323
|
+
style: styles$t.dropDownStyle,
|
|
2214
2324
|
onPress: () => setShowOptions(!showOptions)
|
|
2215
2325
|
},
|
|
2216
2326
|
iconName && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: iconStyle }, React__default["default"].cloneElement(iconName, {
|
|
2217
2327
|
width: moderateScale(24),
|
|
2218
2328
|
height: moderateScale(24),
|
|
2219
|
-
style: styles$
|
|
2329
|
+
style: styles$t.iconStyle
|
|
2220
2330
|
})),
|
|
2221
2331
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2222
2332
|
CustomTypography,
|
|
2223
2333
|
{
|
|
2224
2334
|
variant: "P3regular",
|
|
2225
|
-
style: styles$
|
|
2335
|
+
style: styles$t.selectedValueStyle,
|
|
2226
2336
|
text: selectedValue ? selectedValue.label : placeholder
|
|
2227
2337
|
}
|
|
2228
2338
|
),
|
|
@@ -2233,7 +2343,7 @@ const CustomDropdown$1 = ({
|
|
|
2233
2343
|
width: moderateScale(24),
|
|
2234
2344
|
height: moderateScale(24)
|
|
2235
2345
|
}))
|
|
2236
|
-
), showOptions && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2346
|
+
), showOptions && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$t.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React__default["default"].createElement(
|
|
2237
2347
|
reactNative.Pressable,
|
|
2238
2348
|
{
|
|
2239
2349
|
key: id,
|
|
@@ -2243,7 +2353,7 @@ const CustomDropdown$1 = ({
|
|
|
2243
2353
|
oneSelect({ id, value, label: label2 });
|
|
2244
2354
|
},
|
|
2245
2355
|
style: [
|
|
2246
|
-
styles$
|
|
2356
|
+
styles$t.item,
|
|
2247
2357
|
{
|
|
2248
2358
|
backgroundColor: id === selectedValue?.id ? DHRE_COLORS_BG.DH_GREY1 : DHRE_COLORS_TEXT.DH_WHITE
|
|
2249
2359
|
}
|
|
@@ -2252,7 +2362,7 @@ const CustomDropdown$1 = ({
|
|
|
2252
2362
|
iconName && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: iconStyle }, React__default["default"].cloneElement(iconName, {
|
|
2253
2363
|
width: moderateScale(24),
|
|
2254
2364
|
height: moderateScale(24),
|
|
2255
|
-
style: styles$
|
|
2365
|
+
style: styles$t.iconStyle
|
|
2256
2366
|
})),
|
|
2257
2367
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2258
2368
|
CustomTypography,
|
|
@@ -2267,7 +2377,7 @@ const CustomDropdown$1 = ({
|
|
|
2267
2377
|
))));
|
|
2268
2378
|
};
|
|
2269
2379
|
|
|
2270
|
-
const styles$
|
|
2380
|
+
const styles$s = reactNative.StyleSheet.create({
|
|
2271
2381
|
labelStyle: {
|
|
2272
2382
|
color: DHRE_COLORS_TEXT.DH_TEXTDARK
|
|
2273
2383
|
},
|
|
@@ -2349,18 +2459,18 @@ const CustomTextInput = ({
|
|
|
2349
2459
|
CustomTypography,
|
|
2350
2460
|
{
|
|
2351
2461
|
variant: "P3medium",
|
|
2352
|
-
style: [styles$
|
|
2462
|
+
style: [styles$s.labelStyle, disabled && styles$s.disableTextStyle],
|
|
2353
2463
|
text: label
|
|
2354
2464
|
}
|
|
2355
2465
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2356
2466
|
reactNative.View,
|
|
2357
2467
|
{
|
|
2358
2468
|
style: [
|
|
2359
|
-
styles$
|
|
2360
|
-
isFocused && styles$
|
|
2361
|
-
error && styles$
|
|
2362
|
-
disabled && styles$
|
|
2363
|
-
successMessage ? styles$
|
|
2469
|
+
styles$s.inputContainer,
|
|
2470
|
+
isFocused && styles$s.inputFocused,
|
|
2471
|
+
error && styles$s.inputError,
|
|
2472
|
+
disabled && styles$s.disableInputStyle,
|
|
2473
|
+
successMessage ? styles$s.inputSucess : {},
|
|
2364
2474
|
{
|
|
2365
2475
|
height: multiline ? 120 : 48,
|
|
2366
2476
|
alignItems: multiline ? "flex-start" : "center"
|
|
@@ -2370,7 +2480,7 @@ const CustomTextInput = ({
|
|
|
2370
2480
|
isSearchBar && searchIcon && React__default["default"].cloneElement(searchIcon, {
|
|
2371
2481
|
width: moderateScale(24),
|
|
2372
2482
|
height: moderateScale(24),
|
|
2373
|
-
style: styles$
|
|
2483
|
+
style: styles$s.searchIconStyle
|
|
2374
2484
|
}),
|
|
2375
2485
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2376
2486
|
reactNative.TextInput,
|
|
@@ -2378,7 +2488,7 @@ const CustomTextInput = ({
|
|
|
2378
2488
|
...props,
|
|
2379
2489
|
onFocus,
|
|
2380
2490
|
onBlur,
|
|
2381
|
-
style: styles$
|
|
2491
|
+
style: styles$s.input,
|
|
2382
2492
|
placeholderTextColor: DHRE_COLORS_TEXT.DH_TEXTLIGHTEST,
|
|
2383
2493
|
editable: !disabled,
|
|
2384
2494
|
value,
|
|
@@ -2418,7 +2528,7 @@ const CustomTooltip = (props) => {
|
|
|
2418
2528
|
}] }, triggerElement);
|
|
2419
2529
|
};
|
|
2420
2530
|
|
|
2421
|
-
const styles$
|
|
2531
|
+
const styles$r = reactNative.StyleSheet.create({
|
|
2422
2532
|
container: {
|
|
2423
2533
|
backgroundColor: DHRE_COLORS_TEXT.DH_BLACK,
|
|
2424
2534
|
paddingHorizontal: horizontalScale(16),
|
|
@@ -2468,21 +2578,21 @@ const FileUpload = ({
|
|
|
2468
2578
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
2469
2579
|
reactNative.View,
|
|
2470
2580
|
{
|
|
2471
|
-
style: [styles$
|
|
2581
|
+
style: [styles$r.container, containerStyle],
|
|
2472
2582
|
testID: "file-upload-container"
|
|
2473
2583
|
},
|
|
2474
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2584
|
+
/* @__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
2585
|
CustomTypography,
|
|
2476
2586
|
{
|
|
2477
2587
|
variant: "P4regular",
|
|
2478
|
-
style: styles$
|
|
2588
|
+
style: styles$r.description,
|
|
2479
2589
|
text: `Drop files directly here or `
|
|
2480
2590
|
}
|
|
2481
2591
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2482
2592
|
CustomTypography,
|
|
2483
2593
|
{
|
|
2484
2594
|
variant: "P4regular",
|
|
2485
|
-
style: styles$
|
|
2595
|
+
style: styles$r.browse,
|
|
2486
2596
|
text: btnText
|
|
2487
2597
|
}
|
|
2488
2598
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -2490,14 +2600,14 @@ const FileUpload = ({
|
|
|
2490
2600
|
{
|
|
2491
2601
|
testID: "file-upload-description",
|
|
2492
2602
|
variant: "P4regular",
|
|
2493
|
-
style: styles$
|
|
2603
|
+
style: styles$r.description,
|
|
2494
2604
|
text: ` from your device`
|
|
2495
2605
|
}
|
|
2496
2606
|
)),
|
|
2497
2607
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2498
2608
|
reactNative.Pressable,
|
|
2499
2609
|
{
|
|
2500
|
-
style: styles$
|
|
2610
|
+
style: styles$r.button,
|
|
2501
2611
|
onPress: onUpload,
|
|
2502
2612
|
testID: "file-upload-button"
|
|
2503
2613
|
},
|
|
@@ -2505,7 +2615,7 @@ const FileUpload = ({
|
|
|
2505
2615
|
CustomTypography,
|
|
2506
2616
|
{
|
|
2507
2617
|
variant: "B2semiBold",
|
|
2508
|
-
style: styles$
|
|
2618
|
+
style: styles$r.buttonText,
|
|
2509
2619
|
text: btnText
|
|
2510
2620
|
}
|
|
2511
2621
|
)
|
|
@@ -2517,7 +2627,7 @@ const PdfView = (props) => {
|
|
|
2517
2627
|
return /* @__PURE__ */ React__default["default"].createElement(Pdf__default["default"], { ...props, trustAllCerts: false });
|
|
2518
2628
|
};
|
|
2519
2629
|
|
|
2520
|
-
const styles$
|
|
2630
|
+
const styles$q = reactNative.StyleSheet.create({
|
|
2521
2631
|
container: {
|
|
2522
2632
|
padding: horizontalScale(20),
|
|
2523
2633
|
marginHorizontal: horizontalScale(16),
|
|
@@ -2573,39 +2683,39 @@ const PopUp = ({
|
|
|
2573
2683
|
leftButtonShown = false,
|
|
2574
2684
|
rightButtonShown = false
|
|
2575
2685
|
}) => {
|
|
2576
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: styles$
|
|
2686
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: styles$q.container }, title ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2577
2687
|
CustomTypography,
|
|
2578
2688
|
{
|
|
2579
|
-
style: styles$
|
|
2689
|
+
style: styles$q.subTitleBelow,
|
|
2580
2690
|
variant: "H6semiBold",
|
|
2581
2691
|
text: title
|
|
2582
2692
|
}
|
|
2583
2693
|
) : null, subtitle ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2584
2694
|
CustomTypography,
|
|
2585
2695
|
{
|
|
2586
|
-
style: styles$
|
|
2696
|
+
style: styles$q.subtitle,
|
|
2587
2697
|
variant: "P3regular",
|
|
2588
2698
|
text: subtitle
|
|
2589
2699
|
}
|
|
2590
|
-
) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2700
|
+
) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$q.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React__default["default"].createElement(
|
|
2591
2701
|
reactNative.Pressable,
|
|
2592
2702
|
{
|
|
2593
2703
|
testID: "Left-Button-Press",
|
|
2594
|
-
style: styles$
|
|
2704
|
+
style: styles$q.buttonLeft,
|
|
2595
2705
|
onPress: onButtonPress
|
|
2596
2706
|
},
|
|
2597
2707
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
2598
2708
|
CustomTypography,
|
|
2599
2709
|
{
|
|
2600
|
-
style: styles$
|
|
2710
|
+
style: styles$q.buttonLeftText,
|
|
2601
2711
|
variant: "B2semiBold",
|
|
2602
2712
|
text: buttonText
|
|
2603
2713
|
}
|
|
2604
2714
|
)
|
|
2605
|
-
) : null, rightButtonShown ? /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { style: styles$
|
|
2715
|
+
) : null, rightButtonShown ? /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { style: styles$q.button, onPress: onButtonPress }, /* @__PURE__ */ React__default["default"].createElement(
|
|
2606
2716
|
CustomTypography,
|
|
2607
2717
|
{
|
|
2608
|
-
style: styles$
|
|
2718
|
+
style: styles$q.buttonText,
|
|
2609
2719
|
variant: "B2semiBold",
|
|
2610
2720
|
text: buttonText
|
|
2611
2721
|
}
|
|
@@ -2661,7 +2771,7 @@ const LINE_COLOR_KEYS = {
|
|
|
2661
2771
|
unfilledColor: "SURFACE_PRIMARY_TRANSPARENT"
|
|
2662
2772
|
};
|
|
2663
2773
|
|
|
2664
|
-
const styles$
|
|
2774
|
+
const styles$p = reactNative.StyleSheet.create({
|
|
2665
2775
|
lineContainer: {
|
|
2666
2776
|
flexDirection: "row",
|
|
2667
2777
|
alignItems: "center",
|
|
@@ -2723,7 +2833,7 @@ const CustomProgressBar = ({
|
|
|
2723
2833
|
const effectiveLineFillColor = fillColor ?? theme[LINE_COLOR_KEYS.fillColor];
|
|
2724
2834
|
const effectiveLineUnfilledColor = unfilledColor ?? theme[LINE_COLOR_KEYS.unfilledColor];
|
|
2725
2835
|
const effectiveLineHeight = height ?? LINE_DEFAULTS.trackHeight;
|
|
2726
|
-
const renderCircleCenter = () => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2836
|
+
const renderCircleCenter = () => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$p.circleCenter }, /* @__PURE__ */ React__default["default"].createElement(
|
|
2727
2837
|
CustomText$1,
|
|
2728
2838
|
{
|
|
2729
2839
|
text: `${progress}%`,
|
|
@@ -2746,7 +2856,7 @@ const CustomProgressBar = ({
|
|
|
2746
2856
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
2747
2857
|
reactNative.View,
|
|
2748
2858
|
{
|
|
2749
|
-
style: [styles$
|
|
2859
|
+
style: [styles$p.lineContainer, isRTL && styles$p.lineContainerRTL],
|
|
2750
2860
|
testID: "custom-progress-bar-line-wrapper"
|
|
2751
2861
|
},
|
|
2752
2862
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -2795,7 +2905,7 @@ const CustomProgressBar = ({
|
|
|
2795
2905
|
};
|
|
2796
2906
|
var CustomProgressBar$1 = withThemeProvider(CustomProgressBar);
|
|
2797
2907
|
|
|
2798
|
-
const styles$
|
|
2908
|
+
const styles$o = reactNative.StyleSheet.create({
|
|
2799
2909
|
container: {
|
|
2800
2910
|
flexDirection: "row",
|
|
2801
2911
|
alignItems: "center"
|
|
@@ -2861,13 +2971,13 @@ const Star = ({
|
|
|
2861
2971
|
emptyStarColor
|
|
2862
2972
|
);
|
|
2863
2973
|
stars.push(
|
|
2864
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { key: i, style: [styles$
|
|
2974
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { key: i, style: [styles$o.star, starStyle] }, starType)
|
|
2865
2975
|
);
|
|
2866
2976
|
}
|
|
2867
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
2977
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$o.container, testID: "star" }, stars);
|
|
2868
2978
|
};
|
|
2869
2979
|
|
|
2870
|
-
var styles$
|
|
2980
|
+
var styles$n = reactNative.StyleSheet.create({
|
|
2871
2981
|
container: {
|
|
2872
2982
|
flexDirection: "row",
|
|
2873
2983
|
gap: DHRE_PADDING.SM,
|
|
@@ -2923,12 +3033,12 @@ const Tabs = ({
|
|
|
2923
3033
|
onSelectionChange(selectedTabs);
|
|
2924
3034
|
}
|
|
2925
3035
|
};
|
|
2926
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
3036
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$n.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React__default["default"].createElement(
|
|
2927
3037
|
reactNative.Pressable,
|
|
2928
3038
|
{
|
|
2929
3039
|
key: id,
|
|
2930
3040
|
style: {
|
|
2931
|
-
...styles$
|
|
3041
|
+
...styles$n.button,
|
|
2932
3042
|
backgroundColor: isSelected ? theme.SURFACE_INVERTED : theme.SURFACE_SECONDARY,
|
|
2933
3043
|
borderColor: isSelected ? theme.SURFACE_INVERTED : theme.STROKE_TERTIARY
|
|
2934
3044
|
},
|
|
@@ -2939,7 +3049,7 @@ const Tabs = ({
|
|
|
2939
3049
|
{
|
|
2940
3050
|
variant: FontStyle.BODY1_MEDIUM,
|
|
2941
3051
|
style: {
|
|
2942
|
-
...styles$
|
|
3052
|
+
...styles$n.textStyle,
|
|
2943
3053
|
color: isSelected ? theme.CONTENT_INVERTED : theme.CONTENT_PRIMARY
|
|
2944
3054
|
},
|
|
2945
3055
|
text: title
|
|
@@ -2949,7 +3059,7 @@ const Tabs = ({
|
|
|
2949
3059
|
};
|
|
2950
3060
|
var Tabs$1 = withThemeProvider(Tabs);
|
|
2951
3061
|
|
|
2952
|
-
const styles$
|
|
3062
|
+
const styles$m = reactNative.StyleSheet.create({
|
|
2953
3063
|
container: {
|
|
2954
3064
|
width: "100%"
|
|
2955
3065
|
},
|
|
@@ -3012,8 +3122,8 @@ const Tags = ({
|
|
|
3012
3122
|
reactNative.ScrollView,
|
|
3013
3123
|
{
|
|
3014
3124
|
testID,
|
|
3015
|
-
style: styles$
|
|
3016
|
-
contentContainerStyle: styles$
|
|
3125
|
+
style: styles$m.container,
|
|
3126
|
+
contentContainerStyle: styles$m.contentContainer,
|
|
3017
3127
|
horizontal: false
|
|
3018
3128
|
},
|
|
3019
3129
|
tags?.map((tag) => /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -3023,16 +3133,16 @@ const Tags = ({
|
|
|
3023
3133
|
key: tag,
|
|
3024
3134
|
onPress: () => toggleTag(tag),
|
|
3025
3135
|
style: [
|
|
3026
|
-
styles$
|
|
3136
|
+
styles$m.tag,
|
|
3027
3137
|
tagStyles,
|
|
3028
|
-
selectedTags.includes(tag) ? styles$
|
|
3138
|
+
selectedTags.includes(tag) ? styles$m.selectedTag : styles$m.tagUnSelected
|
|
3029
3139
|
]
|
|
3030
3140
|
},
|
|
3031
3141
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
3032
3142
|
CustomTypography,
|
|
3033
3143
|
{
|
|
3034
3144
|
variant: selectedTags.includes(tag) ? "H9semiBold" : "P4regular",
|
|
3035
|
-
style: selectedTags.includes(tag) ? styles$
|
|
3145
|
+
style: selectedTags.includes(tag) ? styles$m.tagText : styles$m.tagUnselectedText,
|
|
3036
3146
|
text: tag
|
|
3037
3147
|
}
|
|
3038
3148
|
),
|
|
@@ -3048,7 +3158,7 @@ const Tags = ({
|
|
|
3048
3158
|
);
|
|
3049
3159
|
};
|
|
3050
3160
|
|
|
3051
|
-
const styles$
|
|
3161
|
+
const styles$l = reactNative.StyleSheet.create({
|
|
3052
3162
|
container: {
|
|
3053
3163
|
width: horizontalScale(70),
|
|
3054
3164
|
height: verticalScale(25),
|
|
@@ -3113,26 +3223,26 @@ const CustomSwitch = ({
|
|
|
3113
3223
|
reactNative.Pressable,
|
|
3114
3224
|
{
|
|
3115
3225
|
onPress: toggleSwitch,
|
|
3116
|
-
style: [styles$
|
|
3226
|
+
style: [styles$l.container, { width }],
|
|
3117
3227
|
testID: "custom-switch"
|
|
3118
3228
|
},
|
|
3119
3229
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
3120
3230
|
reactNative.View,
|
|
3121
3231
|
{
|
|
3122
3232
|
style: [
|
|
3123
|
-
styles$
|
|
3233
|
+
styles$l.track,
|
|
3124
3234
|
{
|
|
3125
3235
|
backgroundColor: isOn ? DHRE_COLORS_ALERT.DH_SUCCESS_GREEN_ACCENT : DHRE_COLORS_TEXT.DH_TEXTDISABLED
|
|
3126
3236
|
}
|
|
3127
3237
|
]
|
|
3128
3238
|
},
|
|
3129
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.Animated.View, { style: [styles$
|
|
3239
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.Animated.View, { style: [styles$l.thumb, animatedStyle] }),
|
|
3130
3240
|
type !== ToggleButtonType.SMALL && /* @__PURE__ */ React__default["default"].createElement(
|
|
3131
3241
|
CustomTypography,
|
|
3132
3242
|
{
|
|
3133
3243
|
variant: "B3semiBold",
|
|
3134
3244
|
style: [
|
|
3135
|
-
styles$
|
|
3245
|
+
styles$l.text,
|
|
3136
3246
|
{ textAlign: isOn ? TextDirectType.left : TextDirectType.right }
|
|
3137
3247
|
],
|
|
3138
3248
|
text: isOn ? ToggleTextType.ON : ToggleTextType.OFF
|
|
@@ -3142,10 +3252,9 @@ const CustomSwitch = ({
|
|
|
3142
3252
|
);
|
|
3143
3253
|
};
|
|
3144
3254
|
|
|
3145
|
-
const styles$
|
|
3255
|
+
const styles$k = reactNative.StyleSheet.create({
|
|
3146
3256
|
container: {
|
|
3147
|
-
paddingVertical: DHRE_PADDING.LG
|
|
3148
|
-
borderBottomWidth: moderateScale(1)
|
|
3257
|
+
paddingVertical: DHRE_PADDING.LG
|
|
3149
3258
|
},
|
|
3150
3259
|
header: {
|
|
3151
3260
|
flexDirection: "row",
|
|
@@ -3204,7 +3313,7 @@ const Accordion = ({
|
|
|
3204
3313
|
{
|
|
3205
3314
|
style: [
|
|
3206
3315
|
{
|
|
3207
|
-
...styles$
|
|
3316
|
+
...styles$k.container,
|
|
3208
3317
|
borderRadius: 0,
|
|
3209
3318
|
...containerStyle
|
|
3210
3319
|
}
|
|
@@ -3214,7 +3323,7 @@ const Accordion = ({
|
|
|
3214
3323
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
3215
3324
|
reactNative.Pressable,
|
|
3216
3325
|
{
|
|
3217
|
-
style: [styles$
|
|
3326
|
+
style: [styles$k.header, headerStyle, disabled && { opacity: 0.5 }],
|
|
3218
3327
|
onPressOut: !disabled ? onToggle : void 0
|
|
3219
3328
|
},
|
|
3220
3329
|
headerComponent ? headerComponent() : /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -3223,7 +3332,7 @@ const Accordion = ({
|
|
|
3223
3332
|
variant: titleVariant,
|
|
3224
3333
|
text: title,
|
|
3225
3334
|
style: {
|
|
3226
|
-
...styles$
|
|
3335
|
+
...styles$k.title,
|
|
3227
3336
|
color: theme.CONTENT_PRIMARY,
|
|
3228
3337
|
...titleStyle
|
|
3229
3338
|
}
|
|
@@ -3232,14 +3341,14 @@ const Accordion = ({
|
|
|
3232
3341
|
icon ? React__default["default"].cloneElement(icon, {
|
|
3233
3342
|
width: DHRE_SPACING_BASE.SPACE_20,
|
|
3234
3343
|
height: DHRE_SPACING_BASE.SPACE_20,
|
|
3235
|
-
style: styles$
|
|
3344
|
+
style: styles$k.iconStyle
|
|
3236
3345
|
}) : null
|
|
3237
3346
|
),
|
|
3238
3347
|
optionalElement ? optionalElement() : null,
|
|
3239
3348
|
isOpen && /* @__PURE__ */ React__default["default"].createElement(
|
|
3240
3349
|
reactNative.Animated.View,
|
|
3241
3350
|
{
|
|
3242
|
-
style: [styles$
|
|
3351
|
+
style: [styles$k.content, slideAnimation && { height: cardHeight }]
|
|
3243
3352
|
},
|
|
3244
3353
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
3245
3354
|
reactNative.View,
|
|
@@ -3256,7 +3365,7 @@ const Accordion = ({
|
|
|
3256
3365
|
};
|
|
3257
3366
|
var Accordion$1 = withThemeProvider(Accordion);
|
|
3258
3367
|
|
|
3259
|
-
const styles$
|
|
3368
|
+
const styles$j = reactNative.StyleSheet.create({
|
|
3260
3369
|
container: {
|
|
3261
3370
|
position: "absolute",
|
|
3262
3371
|
alignSelf: "center",
|
|
@@ -3264,8 +3373,7 @@ const styles$k = reactNative.StyleSheet.create({
|
|
|
3264
3373
|
top: DHRE_SPACING.XXL,
|
|
3265
3374
|
borderRadius: DHRE_RADIUS.MD,
|
|
3266
3375
|
overflow: "hidden",
|
|
3267
|
-
minHeight: DHRE_SPACING.XXL
|
|
3268
|
-
height: DHRE_SPACING.XXL
|
|
3376
|
+
minHeight: DHRE_SPACING.XXL
|
|
3269
3377
|
},
|
|
3270
3378
|
toastContainer: {
|
|
3271
3379
|
paddingVertical: DHRE_PADDING.LG,
|
|
@@ -3375,20 +3483,19 @@ const Toast = React__default["default"].forwardRef(
|
|
|
3375
3483
|
reactNative.Animated.View,
|
|
3376
3484
|
{
|
|
3377
3485
|
style: [
|
|
3378
|
-
styles$
|
|
3379
|
-
{ bottom },
|
|
3486
|
+
styles$j.container,
|
|
3380
3487
|
{ backgroundColor: theme.SURFACE_TERTIARY }
|
|
3381
3488
|
],
|
|
3382
3489
|
testID: "TOAST"
|
|
3383
3490
|
},
|
|
3384
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
3491
|
+
/* @__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
3492
|
CustomTypography,
|
|
3386
3493
|
{
|
|
3387
3494
|
variant: "BODY2_LIGHT",
|
|
3388
3495
|
text: message,
|
|
3389
|
-
style: [styles$
|
|
3496
|
+
style: [styles$j.messageText, { color: theme.CONTENT_SECONDRY }]
|
|
3390
3497
|
}
|
|
3391
|
-
), subjectText && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
3498
|
+
), subjectText && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$j.subContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
3392
3499
|
Button,
|
|
3393
3500
|
{
|
|
3394
3501
|
title: subjectText,
|
|
@@ -3413,7 +3520,7 @@ const Toast = React__default["default"].forwardRef(
|
|
|
3413
3520
|
reactNative.Animated.View,
|
|
3414
3521
|
{
|
|
3415
3522
|
style: [
|
|
3416
|
-
styles$
|
|
3523
|
+
styles$j.progressBar,
|
|
3417
3524
|
{
|
|
3418
3525
|
width: progressAnim,
|
|
3419
3526
|
backgroundColor: accentColor
|
|
@@ -3430,7 +3537,7 @@ const ToastWithProvider = React__default["default"].forwardRef(
|
|
|
3430
3537
|
);
|
|
3431
3538
|
ToastWithProvider.displayName = "Toast";
|
|
3432
3539
|
|
|
3433
|
-
const styles$
|
|
3540
|
+
const styles$i = reactNative.StyleSheet.create({
|
|
3434
3541
|
inputContainer: {
|
|
3435
3542
|
flexDirection: "row",
|
|
3436
3543
|
justifyContent: "center",
|
|
@@ -3509,8 +3616,8 @@ const CustomSearchBar = ({
|
|
|
3509
3616
|
{
|
|
3510
3617
|
testID,
|
|
3511
3618
|
style: [
|
|
3512
|
-
styles$
|
|
3513
|
-
size === "small" ? styles$
|
|
3619
|
+
styles$i.inputContainer,
|
|
3620
|
+
size === "small" ? styles$i.inputContainerSmall : styles$i.inputContainerLarge,
|
|
3514
3621
|
{
|
|
3515
3622
|
...height !== void 0 && { height: verticalScale(height) },
|
|
3516
3623
|
backgroundColor: disabled ? theme[Theme.SURFACE_PRIMARY] : theme[Theme.SURFACE_PRIMARY_TRANSPARENT],
|
|
@@ -3532,7 +3639,7 @@ const CustomSearchBar = ({
|
|
|
3532
3639
|
React__default["default"].cloneElement(searchIcon, {
|
|
3533
3640
|
width: DHRE_SPACING.LG,
|
|
3534
3641
|
height: DHRE_SPACING.LG,
|
|
3535
|
-
style: [styles$
|
|
3642
|
+
style: [styles$i.searchIconStyle, searchIconStyle]
|
|
3536
3643
|
})
|
|
3537
3644
|
),
|
|
3538
3645
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -3541,7 +3648,7 @@ const CustomSearchBar = ({
|
|
|
3541
3648
|
...props,
|
|
3542
3649
|
testID: `${testID}-INPUT`,
|
|
3543
3650
|
style: [
|
|
3544
|
-
styles$
|
|
3651
|
+
styles$i.input,
|
|
3545
3652
|
{ color: theme[Theme.CONTENT_PRIMARY] },
|
|
3546
3653
|
inputStyle
|
|
3547
3654
|
],
|
|
@@ -3576,14 +3683,14 @@ const CustomSearchBar = ({
|
|
|
3576
3683
|
React__default["default"].cloneElement(rightIcon, {
|
|
3577
3684
|
// width: moderateScale(24),
|
|
3578
3685
|
// height: moderateScale(24),
|
|
3579
|
-
style: [styles$
|
|
3686
|
+
style: [styles$i.crossIconStyle, crossIconStyle]
|
|
3580
3687
|
})
|
|
3581
3688
|
)
|
|
3582
3689
|
);
|
|
3583
3690
|
};
|
|
3584
3691
|
var CustomSearchBar$1 = withThemeProvider(CustomSearchBar);
|
|
3585
3692
|
|
|
3586
|
-
const styles$
|
|
3693
|
+
const styles$h = reactNative.StyleSheet.create({
|
|
3587
3694
|
container: {
|
|
3588
3695
|
flexDirection: "row",
|
|
3589
3696
|
justifyContent: "space-between",
|
|
@@ -3617,7 +3724,7 @@ const CustomHeader = ({
|
|
|
3617
3724
|
rightIcons
|
|
3618
3725
|
}) => {
|
|
3619
3726
|
const { theme } = useTheme();
|
|
3620
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
3727
|
+
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
3728
|
CustomTypography,
|
|
3622
3729
|
{
|
|
3623
3730
|
variant: "BODY1_MEDIUM",
|
|
@@ -3627,11 +3734,11 @@ const CustomHeader = ({
|
|
|
3627
3734
|
), titleSuffixIcon && React__default["default"].cloneElement(titleSuffixIcon, {
|
|
3628
3735
|
width: ICON_SIZE,
|
|
3629
3736
|
height: ICON_SIZE
|
|
3630
|
-
})), rightIcons && rightIcons.length > 0 && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
3737
|
+
})), 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
3738
|
};
|
|
3632
3739
|
var CustomHeader$1 = withThemeProvider(CustomHeader);
|
|
3633
3740
|
|
|
3634
|
-
const styles$
|
|
3741
|
+
const styles$g = reactNative.StyleSheet.create({
|
|
3635
3742
|
container: {
|
|
3636
3743
|
flex: 1
|
|
3637
3744
|
},
|
|
@@ -3661,14 +3768,14 @@ const ActionButton = ({
|
|
|
3661
3768
|
{
|
|
3662
3769
|
testID,
|
|
3663
3770
|
onPress,
|
|
3664
|
-
style: [styles$
|
|
3771
|
+
style: [styles$g.actionButton, style]
|
|
3665
3772
|
},
|
|
3666
3773
|
icon,
|
|
3667
3774
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
3668
3775
|
CustomTypography,
|
|
3669
3776
|
{
|
|
3670
3777
|
variant: "L1_REGULAR",
|
|
3671
|
-
style: [styles$
|
|
3778
|
+
style: [styles$g.titleStyle, titleStyle],
|
|
3672
3779
|
text: title
|
|
3673
3780
|
}
|
|
3674
3781
|
)
|
|
@@ -3709,7 +3816,7 @@ const SwipableList = (props) => {
|
|
|
3709
3816
|
return id;
|
|
3710
3817
|
});
|
|
3711
3818
|
}, []);
|
|
3712
|
-
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
3819
|
+
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
3820
|
ActionButton,
|
|
3714
3821
|
{
|
|
3715
3822
|
icon: leftPrimaryActionIcon,
|
|
@@ -3736,7 +3843,7 @@ const SwipableList = (props) => {
|
|
|
3736
3843
|
titleStyle
|
|
3737
3844
|
}
|
|
3738
3845
|
));
|
|
3739
|
-
const rightActionHandle = (item) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
3846
|
+
const rightActionHandle = (item) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$g.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React__default["default"].createElement(
|
|
3740
3847
|
ActionButton,
|
|
3741
3848
|
{
|
|
3742
3849
|
icon: rightPrimaryActionIcon,
|
|
@@ -3750,7 +3857,7 @@ const SwipableList = (props) => {
|
|
|
3750
3857
|
titleStyle
|
|
3751
3858
|
}
|
|
3752
3859
|
));
|
|
3753
|
-
const renderItem = ({ item }) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID: `${testId}-LIST`, style: styles$
|
|
3860
|
+
const renderItem = ({ item }) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID: `${testId}-LIST`, style: styles$g.container }, /* @__PURE__ */ React__default["default"].createElement(
|
|
3754
3861
|
reactNativeGestureHandler.Swipeable,
|
|
3755
3862
|
{
|
|
3756
3863
|
ref: (ref) => swipeableRefs.current[item.id] = ref,
|
|
@@ -3776,7 +3883,7 @@ const SwipableList = (props) => {
|
|
|
3776
3883
|
reactNative.View,
|
|
3777
3884
|
{
|
|
3778
3885
|
style: {
|
|
3779
|
-
...styles$
|
|
3886
|
+
...styles$g.seperator,
|
|
3780
3887
|
backgroundColor: theme.BORDER_SEPRATOR
|
|
3781
3888
|
}
|
|
3782
3889
|
}
|
|
@@ -3786,7 +3893,15 @@ const SwipableList = (props) => {
|
|
|
3786
3893
|
};
|
|
3787
3894
|
var SwipableList$1 = withThemeProvider(SwipableList);
|
|
3788
3895
|
|
|
3789
|
-
const
|
|
3896
|
+
const OUTLINED_GRADIENT_COLORS = [
|
|
3897
|
+
DHRE_CYAN_HIGHLIGHT[300],
|
|
3898
|
+
"#438CB1"
|
|
3899
|
+
];
|
|
3900
|
+
const OUTLINED_GRADIENT_START = { x: 0, y: 0 };
|
|
3901
|
+
const OUTLINED_GRADIENT_END = { x: 1, y: 1 };
|
|
3902
|
+
const OUTLINED_BORDER_WIDTH = 1;
|
|
3903
|
+
|
|
3904
|
+
const styles$f = reactNative.StyleSheet.create({
|
|
3790
3905
|
container: {
|
|
3791
3906
|
justifyContent: "center",
|
|
3792
3907
|
alignItems: "center"
|
|
@@ -3826,13 +3941,6 @@ const ICON_BLUR_TYPE_STYLE = reactNative.StyleSheet.create({
|
|
|
3826
3941
|
overflow: "hidden"
|
|
3827
3942
|
}
|
|
3828
3943
|
});
|
|
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
3944
|
const OUTLINED_BUTTON_STYLES = reactNative.StyleSheet.create({
|
|
3837
3945
|
shell: {
|
|
3838
3946
|
borderRadius: ICON_BUTTON_RADIUS,
|
|
@@ -3974,7 +4082,7 @@ const CustomIcon = ({
|
|
|
3974
4082
|
return renderOutlinedButton();
|
|
3975
4083
|
}
|
|
3976
4084
|
};
|
|
3977
|
-
const outerStyle = labelPosition ? [ICON_LABEL_POSITION_STYLES[labelPosition], containerStyle ?? {}] : [styles$
|
|
4085
|
+
const outerStyle = labelPosition ? [ICON_LABEL_POSITION_STYLES[labelPosition], containerStyle ?? {}] : [styles$f.container, containerStyle ?? {}];
|
|
3978
4086
|
const resolvedTitleColor = type ? { color: theme[Theme.CONTENT_PRIMARY] } : void 0;
|
|
3979
4087
|
const resolvedTitleVariant = titleVariant ?? ICON_TITLE_VARIANT_FOR_SIZE[size ?? "large"];
|
|
3980
4088
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -3990,14 +4098,14 @@ const CustomIcon = ({
|
|
|
3990
4098
|
{
|
|
3991
4099
|
variant: resolvedTitleVariant,
|
|
3992
4100
|
text: title,
|
|
3993
|
-
style: [styles$
|
|
4101
|
+
style: [styles$f.title, resolvedTitleColor, titleStyle]
|
|
3994
4102
|
}
|
|
3995
4103
|
)
|
|
3996
4104
|
);
|
|
3997
4105
|
};
|
|
3998
4106
|
var CustomIcon$1 = withThemeProvider(CustomIcon);
|
|
3999
4107
|
|
|
4000
|
-
const createStyles$
|
|
4108
|
+
const createStyles$6 = (theme) => {
|
|
4001
4109
|
return reactNative.StyleSheet.create({
|
|
4002
4110
|
container: {
|
|
4003
4111
|
position: "absolute",
|
|
@@ -10198,7 +10306,7 @@ const CustomLoader = ({
|
|
|
10198
10306
|
customeBox
|
|
10199
10307
|
}) => {
|
|
10200
10308
|
const { theme, mode } = useTheme();
|
|
10201
|
-
const styles = createStyles$
|
|
10309
|
+
const styles = createStyles$6(theme);
|
|
10202
10310
|
const isDP = brandName === "DP";
|
|
10203
10311
|
const isNakheel = brandName === "Nakheel";
|
|
10204
10312
|
if (!loading) return null;
|
|
@@ -10238,7 +10346,7 @@ const CustomLoader = ({
|
|
|
10238
10346
|
};
|
|
10239
10347
|
var CustomLoader$1 = withThemeProvider(CustomLoader);
|
|
10240
10348
|
|
|
10241
|
-
const createStyles$
|
|
10349
|
+
const createStyles$5 = (scaledSize, color) => reactNative.StyleSheet.create({
|
|
10242
10350
|
// Full-screen absolute overlay — mirrors CustomLoader `container`
|
|
10243
10351
|
container: {
|
|
10244
10352
|
position: "absolute",
|
|
@@ -10360,7 +10468,7 @@ const LoaderContent = ({
|
|
|
10360
10468
|
}, []);
|
|
10361
10469
|
const color = theme[Theme.CONTENT_PRIMARY];
|
|
10362
10470
|
const styles = React.useMemo(
|
|
10363
|
-
() => createStyles$
|
|
10471
|
+
() => createStyles$5(scaledSize, color),
|
|
10364
10472
|
[scaledSize, color]
|
|
10365
10473
|
);
|
|
10366
10474
|
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 +10532,14 @@ const HorizontalLine = ({ backgroundColor = "SURFACE_SECONDARY", style }) => {
|
|
|
10424
10532
|
reactNative.View,
|
|
10425
10533
|
{
|
|
10426
10534
|
style: [
|
|
10427
|
-
styles$
|
|
10535
|
+
styles$e.line,
|
|
10428
10536
|
{ backgroundColor: theme[backgroundColor] },
|
|
10429
10537
|
style
|
|
10430
10538
|
]
|
|
10431
10539
|
}
|
|
10432
10540
|
);
|
|
10433
10541
|
};
|
|
10434
|
-
const styles$
|
|
10542
|
+
const styles$e = reactNative.StyleSheet.create({
|
|
10435
10543
|
line: {
|
|
10436
10544
|
height: 1,
|
|
10437
10545
|
width: "100%"
|
|
@@ -10454,18 +10562,18 @@ const Topic = ({
|
|
|
10454
10562
|
reactNative.TouchableOpacity,
|
|
10455
10563
|
{
|
|
10456
10564
|
style: [
|
|
10457
|
-
styles$
|
|
10565
|
+
styles$d.button,
|
|
10458
10566
|
{ backgroundColor: theme[Theme.SURFACE_SECONDARY] },
|
|
10459
10567
|
containterStyle
|
|
10460
10568
|
],
|
|
10461
10569
|
onPress
|
|
10462
10570
|
},
|
|
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$
|
|
10571
|
+
rightIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$d.rightIconContainer }, React__default["default"].cloneElement(rightIcon)),
|
|
10572
|
+
/* @__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 })),
|
|
10573
|
+
/* @__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
10574
|
CustomText$1,
|
|
10467
10575
|
{
|
|
10468
|
-
style: [styles$
|
|
10576
|
+
style: [styles$d.subTitle, subTitleStyle],
|
|
10469
10577
|
text: subTitle,
|
|
10470
10578
|
variant: FontStyle.L2_REGULAR,
|
|
10471
10579
|
textColor: Theme.CONTENT_PRIMARY
|
|
@@ -10480,7 +10588,7 @@ const Topic = ({
|
|
|
10480
10588
|
))
|
|
10481
10589
|
);
|
|
10482
10590
|
};
|
|
10483
|
-
const styles$
|
|
10591
|
+
const styles$d = reactNative.StyleSheet.create({
|
|
10484
10592
|
button: {
|
|
10485
10593
|
flexDirection: "row",
|
|
10486
10594
|
alignItems: "center",
|
|
@@ -10576,14 +10684,14 @@ const ContactModal = ({
|
|
|
10576
10684
|
const renderEmailOptions = () => /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(
|
|
10577
10685
|
CustomText$1,
|
|
10578
10686
|
{
|
|
10579
|
-
style: styles$
|
|
10687
|
+
style: styles$c.title,
|
|
10580
10688
|
text: "Open email app",
|
|
10581
10689
|
variant: "L2_REGULAR"
|
|
10582
10690
|
}
|
|
10583
10691
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
10584
10692
|
CustomText$1,
|
|
10585
10693
|
{
|
|
10586
|
-
style: styles$
|
|
10694
|
+
style: styles$c.subtitle,
|
|
10587
10695
|
text: "Which app would you like to open?",
|
|
10588
10696
|
variant: "L2_REGULAR"
|
|
10589
10697
|
}
|
|
@@ -10591,33 +10699,33 @@ const ContactModal = ({
|
|
|
10591
10699
|
reactNative.Pressable,
|
|
10592
10700
|
{
|
|
10593
10701
|
onPress: () => handleOptionPress(),
|
|
10594
|
-
style: styles$
|
|
10702
|
+
style: styles$c.optionButton
|
|
10595
10703
|
},
|
|
10596
10704
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
10597
10705
|
CustomText$1,
|
|
10598
10706
|
{
|
|
10599
|
-
style: styles$
|
|
10707
|
+
style: styles$c.optionText,
|
|
10600
10708
|
text: option,
|
|
10601
10709
|
variant: "B3_BOLD"
|
|
10602
10710
|
}
|
|
10603
10711
|
)
|
|
10604
10712
|
))));
|
|
10605
|
-
const renderContent = () => /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10713
|
+
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
10714
|
CustomText$1,
|
|
10607
10715
|
{
|
|
10608
|
-
style: styles$
|
|
10716
|
+
style: styles$c.optionText,
|
|
10609
10717
|
text: `Call ${phoneNumber}`,
|
|
10610
10718
|
variant: "B3_BOLD"
|
|
10611
10719
|
}
|
|
10612
|
-
))), /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: onClose, style: styles$
|
|
10720
|
+
))), /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: onClose, style: styles$c.cancelButton }, /* @__PURE__ */ React__default["default"].createElement(
|
|
10613
10721
|
CustomText$1,
|
|
10614
10722
|
{
|
|
10615
|
-
style: styles$
|
|
10723
|
+
style: styles$c.cancelText,
|
|
10616
10724
|
text: "Cancel",
|
|
10617
10725
|
variant: "B2_REGULAR"
|
|
10618
10726
|
}
|
|
10619
10727
|
)));
|
|
10620
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10728
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$c.container }, /* @__PURE__ */ React__default["default"].createElement(
|
|
10621
10729
|
reactNative.Modal,
|
|
10622
10730
|
{
|
|
10623
10731
|
animationType: "slide",
|
|
@@ -10625,10 +10733,10 @@ const ContactModal = ({
|
|
|
10625
10733
|
visible,
|
|
10626
10734
|
onRequestClose: onClose
|
|
10627
10735
|
},
|
|
10628
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10736
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$c.modalContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$c.modalContent }, renderContent()))
|
|
10629
10737
|
));
|
|
10630
10738
|
};
|
|
10631
|
-
const styles$
|
|
10739
|
+
const styles$c = reactNative.StyleSheet.create({
|
|
10632
10740
|
container: {
|
|
10633
10741
|
flex: 1,
|
|
10634
10742
|
justifyContent: "center",
|
|
@@ -10690,7 +10798,7 @@ const styles$d = reactNative.StyleSheet.create({
|
|
|
10690
10798
|
});
|
|
10691
10799
|
var ContactModel = withThemeProvider(ContactModal);
|
|
10692
10800
|
|
|
10693
|
-
const styles$
|
|
10801
|
+
const styles$b = reactNative.StyleSheet.create({
|
|
10694
10802
|
// Outer card: wraps Calendar (which includes the custom header via renderHeader)
|
|
10695
10803
|
// and provides the dark-blue background + rounded corners.
|
|
10696
10804
|
calendarCard: {
|
|
@@ -10842,12 +10950,12 @@ const DateRangePicker = (props) => {
|
|
|
10842
10950
|
reactNative.View,
|
|
10843
10951
|
{
|
|
10844
10952
|
style: [
|
|
10845
|
-
styles$
|
|
10953
|
+
styles$b.calendarHeader,
|
|
10846
10954
|
{ borderBottomColor: theme.STROKE_TERTIARY }
|
|
10847
10955
|
]
|
|
10848
10956
|
},
|
|
10849
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.Text, { style: [styles$
|
|
10850
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10957
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.Text, { style: [styles$b.monthText, { color: theme.CONTENT_PRIMARY }] }, monthLabel),
|
|
10958
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$b.arrowsContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
10851
10959
|
reactNative.TouchableOpacity,
|
|
10852
10960
|
{
|
|
10853
10961
|
onPress: prevMonth,
|
|
@@ -10881,81 +10989,86 @@ const DateRangePicker = (props) => {
|
|
|
10881
10989
|
))
|
|
10882
10990
|
))
|
|
10883
10991
|
);
|
|
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"
|
|
10992
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, null, /* @__PURE__ */ React__default["default"].createElement(
|
|
10993
|
+
reactNative.View,
|
|
10994
|
+
{
|
|
10995
|
+
style: [
|
|
10996
|
+
styles$b.calendarCard,
|
|
10997
|
+
{ backgroundColor: theme.SURFACE_SECONDARY }
|
|
10998
|
+
]
|
|
10999
|
+
},
|
|
11000
|
+
/* @__PURE__ */ React__default["default"].createElement(
|
|
11001
|
+
reactNativeCalendars.Calendar,
|
|
11002
|
+
{
|
|
11003
|
+
key: monthKey,
|
|
11004
|
+
current: currentDateStr,
|
|
11005
|
+
markedDates: getMarkedDates(),
|
|
11006
|
+
markingType: "period",
|
|
11007
|
+
hideArrows: true,
|
|
11008
|
+
renderHeader: renderCalendarHeader,
|
|
11009
|
+
theme: {
|
|
11010
|
+
calendarBackground: "transparent",
|
|
11011
|
+
dayTextColor: theme.CONTENT_PRIMARY,
|
|
11012
|
+
textDisabledColor: theme.CONTENT_DISABLE_DARK,
|
|
11013
|
+
todayTextColor: theme.CONTENT_PRIMARY,
|
|
11014
|
+
textSectionTitleColor: theme.CONTENT_SECONDRY,
|
|
11015
|
+
textDayFontSize: 16,
|
|
11016
|
+
textDayFontWeight: "500",
|
|
11017
|
+
textDayHeaderFontSize: 11,
|
|
11018
|
+
textDayHeaderFontWeight: "300",
|
|
11019
|
+
// Reduce row gap from default 14px (7+7) to 4px (2+2) to match Figma.
|
|
11020
|
+
weekVerticalMargin: 2,
|
|
11021
|
+
// Remove the calendar body's default 5px horizontal padding so the date
|
|
11022
|
+
// grid aligns flush with the custom renderHeader content.
|
|
11023
|
+
"stylesheet.calendar.main": {
|
|
11024
|
+
container: {
|
|
11025
|
+
paddingLeft: 0,
|
|
11026
|
+
paddingRight: 0,
|
|
11027
|
+
backgroundColor: "transparent"
|
|
11028
|
+
}
|
|
10928
11029
|
},
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
11030
|
+
// Strip Calendar header container's default padding/margin, zero the
|
|
11031
|
+
// day-names row top margin, and apply uppercase + correct sizing to
|
|
11032
|
+
// each day abbreviation label.
|
|
11033
|
+
"stylesheet.calendar.header": {
|
|
11034
|
+
header: {
|
|
11035
|
+
paddingLeft: 0,
|
|
11036
|
+
paddingRight: 0,
|
|
11037
|
+
marginTop: 0,
|
|
11038
|
+
marginBottom: 0
|
|
11039
|
+
},
|
|
11040
|
+
week: {
|
|
11041
|
+
marginTop: 8,
|
|
11042
|
+
flexDirection: "row",
|
|
11043
|
+
justifyContent: "space-around"
|
|
11044
|
+
},
|
|
11045
|
+
dayHeader: {
|
|
11046
|
+
marginTop: 2,
|
|
11047
|
+
marginBottom: 7,
|
|
11048
|
+
width: 32,
|
|
11049
|
+
textAlign: "center",
|
|
11050
|
+
textTransform: "uppercase",
|
|
11051
|
+
fontSize: 11,
|
|
11052
|
+
fontWeight: "300",
|
|
11053
|
+
color: theme.CONTENT_SECONDRY
|
|
11054
|
+
}
|
|
10938
11055
|
}
|
|
10939
|
-
}
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
)
|
|
11056
|
+
},
|
|
11057
|
+
style: { backgroundColor: "transparent", borderRadius: 0 },
|
|
11058
|
+
onDayPress,
|
|
11059
|
+
firstDay: 1,
|
|
11060
|
+
...calendarProps
|
|
11061
|
+
}
|
|
11062
|
+
)
|
|
11063
|
+
), /* @__PURE__ */ React__default["default"].createElement(
|
|
10947
11064
|
Button,
|
|
10948
11065
|
{
|
|
10949
11066
|
title: btnTitle,
|
|
10950
11067
|
onPress: () => {
|
|
10951
11068
|
onButtonPress(selectedRange?.startDate, selectedRange?.endDate);
|
|
10952
11069
|
},
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
backgroundColor: theme.SURFACE_INVERTED,
|
|
10956
|
-
borderColor: theme.NOTIFICATIONS_HIGHLIGHT
|
|
10957
|
-
},
|
|
10958
|
-
textStyle: { color: theme.CONTENT_INVERTED },
|
|
11070
|
+
variant: "primary",
|
|
11071
|
+
size: "large",
|
|
10959
11072
|
disabled: isButtonDisabled
|
|
10960
11073
|
}
|
|
10961
11074
|
));
|
|
@@ -10979,20 +11092,20 @@ const OurOfficesButton = ({
|
|
|
10979
11092
|
reactNative.TouchableOpacity,
|
|
10980
11093
|
{
|
|
10981
11094
|
style: [
|
|
10982
|
-
styles$
|
|
11095
|
+
styles$a.button,
|
|
10983
11096
|
{ backgroundColor: theme["SURFACE_SECONDARY"] },
|
|
10984
11097
|
containerStyle
|
|
10985
11098
|
],
|
|
10986
11099
|
onPress
|
|
10987
11100
|
},
|
|
10988
|
-
leftIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
10989
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
11101
|
+
leftIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$a.iconContainer }, React__default["default"].cloneElement(leftIcon)),
|
|
11102
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$a.textContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
10990
11103
|
CustomText$1,
|
|
10991
11104
|
{
|
|
10992
11105
|
text: title,
|
|
10993
11106
|
variant: titleVariant,
|
|
10994
11107
|
textColor: titleColor,
|
|
10995
|
-
style: styles$
|
|
11108
|
+
style: styles$a.textView
|
|
10996
11109
|
}
|
|
10997
11110
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
10998
11111
|
CustomText$1,
|
|
@@ -11000,13 +11113,13 @@ const OurOfficesButton = ({
|
|
|
11000
11113
|
text: description,
|
|
11001
11114
|
variant: descriptionVariant,
|
|
11002
11115
|
textColor: descriptionColor,
|
|
11003
|
-
style: styles$
|
|
11116
|
+
style: styles$a.flexWrap
|
|
11004
11117
|
}
|
|
11005
11118
|
)),
|
|
11006
|
-
rightIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
11119
|
+
rightIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$a.rightIconContainer }, React__default["default"].cloneElement(rightIcon))
|
|
11007
11120
|
);
|
|
11008
11121
|
};
|
|
11009
|
-
const styles$
|
|
11122
|
+
const styles$a = reactNative.StyleSheet.create({
|
|
11010
11123
|
button: {
|
|
11011
11124
|
flexDirection: "row",
|
|
11012
11125
|
alignItems: "center",
|
|
@@ -11030,7 +11143,7 @@ const styles$b = reactNative.StyleSheet.create({
|
|
|
11030
11143
|
});
|
|
11031
11144
|
var OurOffices = withThemeProvider(OurOfficesButton);
|
|
11032
11145
|
|
|
11033
|
-
const styles$
|
|
11146
|
+
const styles$9 = reactNative.StyleSheet.create({
|
|
11034
11147
|
iconContainer: {
|
|
11035
11148
|
position: "relative",
|
|
11036
11149
|
alignItems: "center"
|
|
@@ -11059,10 +11172,10 @@ const NotificationBandge = ({
|
|
|
11059
11172
|
if (notificationCount <= 0) {
|
|
11060
11173
|
return icon;
|
|
11061
11174
|
}
|
|
11062
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
11175
|
+
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
11176
|
};
|
|
11064
11177
|
|
|
11065
|
-
const createStyles$
|
|
11178
|
+
const createStyles$4 = (theme) => {
|
|
11066
11179
|
return reactNative.StyleSheet.create({
|
|
11067
11180
|
// ── ScrollableList ────────────────────────────────────────────
|
|
11068
11181
|
container: {
|
|
@@ -11157,7 +11270,7 @@ const CategoryItem = React.memo(
|
|
|
11157
11270
|
enableTextWrap
|
|
11158
11271
|
}) => {
|
|
11159
11272
|
const { theme } = useTheme();
|
|
11160
|
-
const styles = React.useMemo(() => createStyles$
|
|
11273
|
+
const styles = React.useMemo(() => createStyles$4(theme), [theme]);
|
|
11161
11274
|
const handlePress = React.useCallback(
|
|
11162
11275
|
() => onPress(item.name, item.value),
|
|
11163
11276
|
[onPress, item.name, item.value]
|
|
@@ -11254,7 +11367,7 @@ const ScrollableList = ({
|
|
|
11254
11367
|
data && data.length > 0 ? data[0].name : null
|
|
11255
11368
|
);
|
|
11256
11369
|
const { theme } = useTheme();
|
|
11257
|
-
const styles = React.useMemo(() => createStyles$
|
|
11370
|
+
const styles = React.useMemo(() => createStyles$4(theme), [theme]);
|
|
11258
11371
|
const activeKey = activeTab ?? selectedItem;
|
|
11259
11372
|
const handlePress = React.useCallback(
|
|
11260
11373
|
(name, value) => {
|
|
@@ -11297,7 +11410,7 @@ const ScrollableList = ({
|
|
|
11297
11410
|
};
|
|
11298
11411
|
var category = withThemeProvider(ScrollableList);
|
|
11299
11412
|
|
|
11300
|
-
const createStyles$
|
|
11413
|
+
const createStyles$3 = (theme) => {
|
|
11301
11414
|
return reactNative.StyleSheet.create({
|
|
11302
11415
|
container: {
|
|
11303
11416
|
flex: 1,
|
|
@@ -11375,7 +11488,7 @@ const FeedbackForm = ({
|
|
|
11375
11488
|
const isFilled = feedback.length > 0;
|
|
11376
11489
|
const label = inputLabel ?? inputText;
|
|
11377
11490
|
const { theme } = useTheme();
|
|
11378
|
-
const styles = createStyles$
|
|
11491
|
+
const styles = createStyles$3(theme);
|
|
11379
11492
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.container }, /* @__PURE__ */ React__default["default"].createElement(
|
|
11380
11493
|
CustomText$1,
|
|
11381
11494
|
{
|
|
@@ -11460,7 +11573,7 @@ const CountryDropDown = ({
|
|
|
11460
11573
|
setCallingCode(`+${country.callingCode[0]}`);
|
|
11461
11574
|
getCountryCode(`+${country.callingCode[0]}`);
|
|
11462
11575
|
};
|
|
11463
|
-
return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
11576
|
+
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
11577
|
CountryPicker__default["default"],
|
|
11465
11578
|
{
|
|
11466
11579
|
withFilter: true,
|
|
@@ -11474,20 +11587,20 @@ const CountryDropDown = ({
|
|
|
11474
11587
|
reactNative.Text,
|
|
11475
11588
|
{
|
|
11476
11589
|
onPress: () => setPickerVisible(true),
|
|
11477
|
-
style: [styles$
|
|
11590
|
+
style: [styles$8.callingCode, callingCodeStyle]
|
|
11478
11591
|
},
|
|
11479
11592
|
callingCode
|
|
11480
|
-
)), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
11593
|
+
)), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$8.flex }, (isFocused || value) && /* @__PURE__ */ React__default["default"].createElement(
|
|
11481
11594
|
CustomTypography,
|
|
11482
11595
|
{
|
|
11483
11596
|
variant: "L2_REGULAR",
|
|
11484
11597
|
text: label ?? "",
|
|
11485
|
-
style: styles$
|
|
11598
|
+
style: styles$8.floatingLabel
|
|
11486
11599
|
}
|
|
11487
11600
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
11488
11601
|
reactNative.TextInput,
|
|
11489
11602
|
{
|
|
11490
|
-
style: [styles$
|
|
11603
|
+
style: [styles$8.input, inputStyle],
|
|
11491
11604
|
placeholder: !isFocused ? placeholder : "",
|
|
11492
11605
|
keyboardType: "phone-pad",
|
|
11493
11606
|
value,
|
|
@@ -11503,13 +11616,13 @@ const CountryDropDown = ({
|
|
|
11503
11616
|
variant: "L2_REGULAR",
|
|
11504
11617
|
text: errorMessage ?? "",
|
|
11505
11618
|
style: {
|
|
11506
|
-
...styles$
|
|
11619
|
+
...styles$8.errorStyle,
|
|
11507
11620
|
color: DHRE_DEFAULT.DH_SEMENTIC_ERROR
|
|
11508
11621
|
}
|
|
11509
11622
|
}
|
|
11510
11623
|
) : null);
|
|
11511
11624
|
};
|
|
11512
|
-
const styles$
|
|
11625
|
+
const styles$8 = reactNative.StyleSheet.create({
|
|
11513
11626
|
flex: {
|
|
11514
11627
|
flex: 1
|
|
11515
11628
|
},
|
|
@@ -11570,6 +11683,7 @@ const CommonTextInput = (props) => {
|
|
|
11570
11683
|
keyboardType = "default",
|
|
11571
11684
|
placeholderText,
|
|
11572
11685
|
inputStyle,
|
|
11686
|
+
containerStyle,
|
|
11573
11687
|
maxLength,
|
|
11574
11688
|
errorMessage,
|
|
11575
11689
|
helperText,
|
|
@@ -11598,7 +11712,7 @@ const CommonTextInput = (props) => {
|
|
|
11598
11712
|
const labelColor = isError ? theme[Theme.ERROR] : isDisabled ? theme[Theme.CONTENT_TERTIARY] : theme[Theme.CONTENT_PRIMARY];
|
|
11599
11713
|
const helperColor = isError ? theme[Theme.ERROR] : isDisabled ? theme[Theme.CONTENT_TERTIARY] : theme[Theme.CONTENT_SECONDRY];
|
|
11600
11714
|
const helperMessage = errorMessage || helperText;
|
|
11601
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: handlePress, style: styles$
|
|
11715
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: handlePress, style: [styles$7.container, containerStyle] }, /* @__PURE__ */ React__default["default"].createElement(
|
|
11602
11716
|
reactNativePaper.TextInput,
|
|
11603
11717
|
{
|
|
11604
11718
|
mode: "outlined",
|
|
@@ -11607,7 +11721,7 @@ const CommonTextInput = (props) => {
|
|
|
11607
11721
|
spellCheck: false,
|
|
11608
11722
|
autoCorrect: false,
|
|
11609
11723
|
outlineStyle: {
|
|
11610
|
-
...styles$
|
|
11724
|
+
...styles$7.outlineStyle,
|
|
11611
11725
|
borderColor: currentBorderColor,
|
|
11612
11726
|
borderWidth,
|
|
11613
11727
|
backgroundColor: containerBackground
|
|
@@ -11629,7 +11743,8 @@ const CommonTextInput = (props) => {
|
|
|
11629
11743
|
primary: labelColor,
|
|
11630
11744
|
// error drives the error indicator colour
|
|
11631
11745
|
error: isError ? theme[Theme.ERROR] : labelColor,
|
|
11632
|
-
// background behind the floating label — must be
|
|
11746
|
+
// background behind the floating label pill — must be opaque and match the
|
|
11747
|
+
// parent surface; defaults to SURFACE_PRIMARY (standard screen background)
|
|
11633
11748
|
background: theme[Theme.SURFACE_PRIMARY]
|
|
11634
11749
|
},
|
|
11635
11750
|
fonts: {
|
|
@@ -11648,12 +11763,7 @@ const CommonTextInput = (props) => {
|
|
|
11648
11763
|
}
|
|
11649
11764
|
}
|
|
11650
11765
|
},
|
|
11651
|
-
style: [
|
|
11652
|
-
styles$8.input,
|
|
11653
|
-
inputStyle,
|
|
11654
|
-
multiline && styles$8.multilineInput,
|
|
11655
|
-
{ backgroundColor: containerBackground }
|
|
11656
|
-
],
|
|
11766
|
+
style: [styles$7.input, inputStyle, multiline && styles$7.multilineInput],
|
|
11657
11767
|
contentStyle: {
|
|
11658
11768
|
fontFamily: InterLight,
|
|
11659
11769
|
textAlign: isRTL ? "right" : "left"
|
|
@@ -11684,7 +11794,7 @@ const CommonTextInput = (props) => {
|
|
|
11684
11794
|
{
|
|
11685
11795
|
style: [
|
|
11686
11796
|
FONT_STYLES[isDisabled ? FontStyle.BODY2_MEDIUM : FontStyle.BODY2_LIGHT],
|
|
11687
|
-
styles$
|
|
11797
|
+
styles$7.helperStyle,
|
|
11688
11798
|
{
|
|
11689
11799
|
color: helperColor,
|
|
11690
11800
|
textAlign: isRTL ? "right" : "left"
|
|
@@ -11694,7 +11804,7 @@ const CommonTextInput = (props) => {
|
|
|
11694
11804
|
helperMessage
|
|
11695
11805
|
) : null);
|
|
11696
11806
|
};
|
|
11697
|
-
const styles$
|
|
11807
|
+
const styles$7 = reactNative.StyleSheet.create({
|
|
11698
11808
|
container: {
|
|
11699
11809
|
justifyContent: "center"
|
|
11700
11810
|
},
|
|
@@ -11769,7 +11879,7 @@ const CustomDropdown = (props) => {
|
|
|
11769
11879
|
reactNative.Text,
|
|
11770
11880
|
{
|
|
11771
11881
|
style: [
|
|
11772
|
-
styles$
|
|
11882
|
+
styles$6.label,
|
|
11773
11883
|
FONT_STYLES[FontStyle.BODY2_LIGHT],
|
|
11774
11884
|
{
|
|
11775
11885
|
color: labelColor,
|
|
@@ -11794,11 +11904,11 @@ const CustomDropdown = (props) => {
|
|
|
11794
11904
|
};
|
|
11795
11905
|
const renderItem = (item) => {
|
|
11796
11906
|
const isSelected = item[valueField] === value;
|
|
11797
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
11907
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$6.itemContainer, itemContainerStyle] }, /* @__PURE__ */ React__default["default"].createElement(
|
|
11798
11908
|
reactNative.Text,
|
|
11799
11909
|
{
|
|
11800
11910
|
style: [
|
|
11801
|
-
styles$
|
|
11911
|
+
styles$6.itemText,
|
|
11802
11912
|
FONT_STYLES[FontStyle.BODY2_LIGHT],
|
|
11803
11913
|
{ color: theme.CONTENT_PRIMARY },
|
|
11804
11914
|
itemTextStyle,
|
|
@@ -11808,12 +11918,12 @@ const CustomDropdown = (props) => {
|
|
|
11808
11918
|
item[labelField]
|
|
11809
11919
|
));
|
|
11810
11920
|
};
|
|
11811
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$
|
|
11921
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$6.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React__default["default"].createElement(
|
|
11812
11922
|
reactNativeElementDropdown.Dropdown,
|
|
11813
11923
|
{
|
|
11814
11924
|
...props,
|
|
11815
11925
|
style: [
|
|
11816
|
-
styles$
|
|
11926
|
+
styles$6.dropdown,
|
|
11817
11927
|
{
|
|
11818
11928
|
borderColor: fieldBorderColor,
|
|
11819
11929
|
borderWidth: fieldBorderWidth,
|
|
@@ -11823,18 +11933,18 @@ const CustomDropdown = (props) => {
|
|
|
11823
11933
|
isFocus && dropdownFocusStyle
|
|
11824
11934
|
],
|
|
11825
11935
|
placeholderStyle: [
|
|
11826
|
-
styles$
|
|
11936
|
+
styles$6.placeholderStyle,
|
|
11827
11937
|
FONT_STYLES[FontStyle.BODY2_LIGHT],
|
|
11828
11938
|
{ color: theme.CONTENT_SECONDRY },
|
|
11829
11939
|
placeholderStyle
|
|
11830
11940
|
],
|
|
11831
11941
|
selectedTextStyle: [
|
|
11832
|
-
styles$
|
|
11942
|
+
styles$6.selectedTextStyle,
|
|
11833
11943
|
FONT_STYLES[FontStyle.BODY2_LIGHT],
|
|
11834
11944
|
{ color: valueTextColor },
|
|
11835
11945
|
selectedTextStyle
|
|
11836
11946
|
],
|
|
11837
|
-
iconStyle: [styles$
|
|
11947
|
+
iconStyle: [styles$6.iconStyle, iconStyle],
|
|
11838
11948
|
data: data ?? [],
|
|
11839
11949
|
labelField,
|
|
11840
11950
|
valueField,
|
|
@@ -11864,7 +11974,7 @@ const CustomDropdown = (props) => {
|
|
|
11864
11974
|
menuContainerStyle
|
|
11865
11975
|
],
|
|
11866
11976
|
activeColor: activeColor ?? theme.SURFACE_SECONDARY,
|
|
11867
|
-
itemContainerStyle: [styles$
|
|
11977
|
+
itemContainerStyle: [styles$6.itemListStyle, itemContainerStyle],
|
|
11868
11978
|
disable,
|
|
11869
11979
|
autoScroll,
|
|
11870
11980
|
dropdownPosition,
|
|
@@ -11877,7 +11987,7 @@ const CustomDropdown = (props) => {
|
|
|
11877
11987
|
reactNative.Text,
|
|
11878
11988
|
{
|
|
11879
11989
|
style: [
|
|
11880
|
-
styles$
|
|
11990
|
+
styles$6.helperText,
|
|
11881
11991
|
FONT_STYLES[FontStyle.BODY2_LIGHT],
|
|
11882
11992
|
{ color: helperColor }
|
|
11883
11993
|
]
|
|
@@ -11885,7 +11995,7 @@ const CustomDropdown = (props) => {
|
|
|
11885
11995
|
helperMessage
|
|
11886
11996
|
) : null);
|
|
11887
11997
|
};
|
|
11888
|
-
const styles$
|
|
11998
|
+
const styles$6 = reactNative.StyleSheet.create({
|
|
11889
11999
|
container: {
|
|
11890
12000
|
marginVertical: verticalScale(4),
|
|
11891
12001
|
direction: "ltr",
|
|
@@ -11932,7 +12042,7 @@ const styles$7 = reactNative.StyleSheet.create({
|
|
|
11932
12042
|
});
|
|
11933
12043
|
var DropDown = withThemeProvider(CustomDropdown);
|
|
11934
12044
|
|
|
11935
|
-
const styles$
|
|
12045
|
+
const styles$5 = reactNative.StyleSheet.create({
|
|
11936
12046
|
mainContainer: {
|
|
11937
12047
|
flexDirection: "row",
|
|
11938
12048
|
justifyContent: "space-between",
|
|
@@ -11991,18 +12101,18 @@ const CustomSwitchBtn = ({
|
|
|
11991
12101
|
{
|
|
11992
12102
|
disabled,
|
|
11993
12103
|
onPress: toggleSwitch,
|
|
11994
|
-
style: { ...styles$
|
|
12104
|
+
style: { ...styles$5.mainContainer, ...containerStyle }
|
|
11995
12105
|
},
|
|
11996
12106
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
11997
12107
|
reactNative.Animated.View,
|
|
11998
12108
|
{
|
|
11999
|
-
style: [styles$
|
|
12109
|
+
style: [styles$5.circle, { transform: [{ translateX }], ...circleStyle }]
|
|
12000
12110
|
}
|
|
12001
12111
|
),
|
|
12002
12112
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
12003
12113
|
CustomTypography,
|
|
12004
12114
|
{
|
|
12005
|
-
style: [styles$
|
|
12115
|
+
style: [styles$5.activeText, value ? inActiveTextStyle : activeTextStyle],
|
|
12006
12116
|
text: activeText,
|
|
12007
12117
|
variant: activeTextVariant
|
|
12008
12118
|
}
|
|
@@ -12011,7 +12121,7 @@ const CustomSwitchBtn = ({
|
|
|
12011
12121
|
CustomTypography,
|
|
12012
12122
|
{
|
|
12013
12123
|
style: [
|
|
12014
|
-
styles$
|
|
12124
|
+
styles$5.inActiveText,
|
|
12015
12125
|
value ? activeTextStyle : inActiveTextStyle
|
|
12016
12126
|
],
|
|
12017
12127
|
text: inActiveText,
|
|
@@ -12049,7 +12159,7 @@ class ToastService {
|
|
|
12049
12159
|
}
|
|
12050
12160
|
const toastService = new ToastService();
|
|
12051
12161
|
|
|
12052
|
-
const createStyles$
|
|
12162
|
+
const createStyles$2 = (theme) => reactNative.StyleSheet.create({
|
|
12053
12163
|
listContainer: {
|
|
12054
12164
|
paddingHorizontal: 10,
|
|
12055
12165
|
alignItems: "center"
|
|
@@ -12091,7 +12201,7 @@ const TagsComponent = ({
|
|
|
12091
12201
|
unselectedTagButton
|
|
12092
12202
|
}) => {
|
|
12093
12203
|
const { theme } = useTheme();
|
|
12094
|
-
const styles = createStyles$
|
|
12204
|
+
const styles = createStyles$2(theme);
|
|
12095
12205
|
const reorderedTags = () => {
|
|
12096
12206
|
if (selectedTag) {
|
|
12097
12207
|
return [
|
|
@@ -12141,7 +12251,7 @@ const TagsComponent = ({
|
|
|
12141
12251
|
};
|
|
12142
12252
|
var TagSingleSelection = withThemeProvider(TagsComponent);
|
|
12143
12253
|
|
|
12144
|
-
const styles$
|
|
12254
|
+
const styles$4 = reactNative.StyleSheet.create({
|
|
12145
12255
|
textInputContainer: {
|
|
12146
12256
|
flexDirection: "row",
|
|
12147
12257
|
gap: DHRE_PADDING.MD,
|
|
@@ -12324,12 +12434,12 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
12324
12434
|
...otpHeaderTextStyle
|
|
12325
12435
|
}
|
|
12326
12436
|
}
|
|
12327
|
-
), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$
|
|
12437
|
+
), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$4.textInputContainer } }, Array.from({ length }).map((_, index) => /* @__PURE__ */ React__default["default"].createElement(
|
|
12328
12438
|
reactNative.TextInput,
|
|
12329
12439
|
{
|
|
12330
12440
|
key: index?.toString(),
|
|
12331
12441
|
style: {
|
|
12332
|
-
...styles$
|
|
12442
|
+
...styles$4.textInputStyle,
|
|
12333
12443
|
color: !isEditable ? theme$1.CONTENT_DISABLE_DARK : otp.length === length ? theme$1.STROKE_PRIMARY : theme$1.CONTENT_PRIMARY,
|
|
12334
12444
|
backgroundColor: !isEditable ? theme$1.SURFACE_PRIMARY : theme$1.SURFACE_TERTIARY_TRANSPARENT,
|
|
12335
12445
|
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 +12460,7 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
12350
12460
|
selectionColor: theme$1.CONTENT_PRIMARY,
|
|
12351
12461
|
editable: isEditable
|
|
12352
12462
|
}
|
|
12353
|
-
))), !errorMessageMaxReachCount && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
12463
|
+
))), !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
12464
|
width: DHRE_SPACING_BASE.SPACE_20,
|
|
12355
12465
|
height: DHRE_SPACING_BASE.SPACE_20
|
|
12356
12466
|
}) : null, /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -12374,7 +12484,7 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
12374
12484
|
reactNative.Pressable,
|
|
12375
12485
|
{
|
|
12376
12486
|
onPress: onClickResendOTP,
|
|
12377
|
-
style: styles$
|
|
12487
|
+
style: styles$4.resendOTPStyle,
|
|
12378
12488
|
disabled: disableResendButton() || !isResendOtpEnable
|
|
12379
12489
|
},
|
|
12380
12490
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -12388,7 +12498,7 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
12388
12498
|
}
|
|
12389
12499
|
}
|
|
12390
12500
|
)
|
|
12391
|
-
)), errorMessageMaxReachCount ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
12501
|
+
)), errorMessageMaxReachCount ? /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$4.resendOtpContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
12392
12502
|
CustomTypography,
|
|
12393
12503
|
{
|
|
12394
12504
|
text: errorMessageMaxReachCount,
|
|
@@ -12403,7 +12513,7 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
12403
12513
|
);
|
|
12404
12514
|
OTPInput.displayName = "OTPInput";
|
|
12405
12515
|
|
|
12406
|
-
const styles$
|
|
12516
|
+
const styles$3 = reactNative.StyleSheet.create({
|
|
12407
12517
|
stepperContainer: {
|
|
12408
12518
|
flexDirection: "row",
|
|
12409
12519
|
marginBottom: 24,
|
|
@@ -12497,27 +12607,27 @@ const Stepper = ({
|
|
|
12497
12607
|
const { theme } = useTheme();
|
|
12498
12608
|
const renderCircleStyle = (status) => {
|
|
12499
12609
|
if (status === Status.Active) {
|
|
12500
|
-
return { ...styles$
|
|
12610
|
+
return { ...styles$3.activeStepCircle, borderColor: theme.CONTENT_PRIMARY };
|
|
12501
12611
|
} else if (status === Status.Inactive) {
|
|
12502
12612
|
return {
|
|
12503
|
-
...styles$
|
|
12613
|
+
...styles$3.inactiveStepCircle,
|
|
12504
12614
|
borderColor: theme.CONTENT_SECONDRY
|
|
12505
12615
|
};
|
|
12506
12616
|
} else if (status === Status.Completed) {
|
|
12507
|
-
return { ...styles$
|
|
12617
|
+
return { ...styles$3.completeStepCircle, backgroundColor: theme.SUCCESS };
|
|
12508
12618
|
} else {
|
|
12509
|
-
return { ...styles$
|
|
12619
|
+
return { ...styles$3.stepCountCircle, borderColor: theme.BORDER_PRIMARY };
|
|
12510
12620
|
}
|
|
12511
12621
|
};
|
|
12512
12622
|
const renderLableStyle = (status) => {
|
|
12513
12623
|
if (status === Status.Active) {
|
|
12514
|
-
return { ...styles$
|
|
12624
|
+
return { ...styles$3.activeStepLabel, color: theme.CONTENT_PRIMARY };
|
|
12515
12625
|
} else if (status === Status.Inactive) {
|
|
12516
|
-
return { ...styles$
|
|
12626
|
+
return { ...styles$3.inactiveStepLabel, color: theme.CONTENT_SECONDRY };
|
|
12517
12627
|
} else if (status === Status.Completed) {
|
|
12518
|
-
return { ...styles$
|
|
12628
|
+
return { ...styles$3.completeStepLabel, color: theme.CONTENT_PRIMARY };
|
|
12519
12629
|
} else {
|
|
12520
|
-
return { ...styles$
|
|
12630
|
+
return { ...styles$3.countStepLabel, color: theme.CONTENT_PRIMARY };
|
|
12521
12631
|
}
|
|
12522
12632
|
};
|
|
12523
12633
|
const renderDividerStyle = (status) => {
|
|
@@ -12527,25 +12637,25 @@ const Stepper = ({
|
|
|
12527
12637
|
return { borderColor: theme.BORDER_PRIMARY };
|
|
12528
12638
|
} else if (status === Status.Completed) {
|
|
12529
12639
|
return {
|
|
12530
|
-
...styles$
|
|
12640
|
+
...styles$3.completeStepDivider,
|
|
12531
12641
|
borderColor: theme.CONTENT_PRIMARY
|
|
12532
12642
|
};
|
|
12533
12643
|
} else {
|
|
12534
12644
|
return { borderColor: theme.CONTENT_SECONDRY };
|
|
12535
12645
|
}
|
|
12536
12646
|
};
|
|
12537
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$
|
|
12647
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$3.stepperContainer, ...containerStyle } }, data?.map((item, index) => {
|
|
12538
12648
|
const stepCircleStyle = renderCircleStyle(item?.status);
|
|
12539
12649
|
const dividerStyle = renderDividerStyle(item?.status);
|
|
12540
12650
|
const labelStyle = renderLableStyle(item?.status);
|
|
12541
|
-
const lastViewStyle = index === data?.length - 1 ? styles$
|
|
12651
|
+
const lastViewStyle = index === data?.length - 1 ? styles$3.lastStepWrapper : null;
|
|
12542
12652
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
12543
12653
|
reactNative.View,
|
|
12544
12654
|
{
|
|
12545
12655
|
key: index?.toString(),
|
|
12546
|
-
style: { ...styles$
|
|
12656
|
+
style: { ...styles$3.stepperWrapper, ...lastViewStyle }
|
|
12547
12657
|
},
|
|
12548
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
12658
|
+
/* @__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
12659
|
CustomTypography,
|
|
12550
12660
|
{
|
|
12551
12661
|
text: item?.step,
|
|
@@ -12554,8 +12664,8 @@ const Stepper = ({
|
|
|
12554
12664
|
color: theme.CONTENT_PRIMARY
|
|
12555
12665
|
}
|
|
12556
12666
|
}
|
|
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$
|
|
12667
|
+
), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...styles$3.separator, ...dividerStyle } })),
|
|
12668
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$3.lableContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
12559
12669
|
CustomTypography,
|
|
12560
12670
|
{
|
|
12561
12671
|
text: item?.label,
|
|
@@ -12566,17 +12676,22 @@ const Stepper = ({
|
|
|
12566
12676
|
);
|
|
12567
12677
|
}));
|
|
12568
12678
|
};
|
|
12569
|
-
var index$
|
|
12679
|
+
var index$4 = withThemeProvider(Stepper);
|
|
12570
12680
|
|
|
12571
|
-
const styles$
|
|
12681
|
+
const styles$2 = reactNative.StyleSheet.create({
|
|
12572
12682
|
container: {
|
|
12573
12683
|
flex: 1,
|
|
12574
12684
|
justifyContent: "center",
|
|
12575
12685
|
alignItems: "center"
|
|
12576
12686
|
},
|
|
12687
|
+
gradientShell: {
|
|
12688
|
+
borderRadius: DHRE_RADIUS.PILL,
|
|
12689
|
+
padding: OUTLINED_BORDER_WIDTH
|
|
12690
|
+
},
|
|
12577
12691
|
sliderContainer: {
|
|
12578
|
-
height:
|
|
12579
|
-
//
|
|
12692
|
+
height: DHRE_COMPONENT_HEIGHT.BUTTON_MD - OUTLINED_BORDER_WIDTH * 2,
|
|
12693
|
+
// pill shape — overflow:hidden clips all child content to the rounded boundary
|
|
12694
|
+
borderRadius: DHRE_RADIUS.PILL,
|
|
12580
12695
|
overflow: "hidden",
|
|
12581
12696
|
justifyContent: "center"
|
|
12582
12697
|
},
|
|
@@ -12587,11 +12702,13 @@ const styles$3 = reactNative.StyleSheet.create({
|
|
|
12587
12702
|
justifyContent: "center"
|
|
12588
12703
|
},
|
|
12589
12704
|
button: {
|
|
12590
|
-
height:
|
|
12705
|
+
height: DHRE_COMPONENT_HEIGHT.INPUT_SM,
|
|
12591
12706
|
justifyContent: "center",
|
|
12592
12707
|
alignItems: "center",
|
|
12593
|
-
//
|
|
12594
|
-
|
|
12708
|
+
// circular thumb — consumer can override via sliderStyle prop
|
|
12709
|
+
borderRadius: DHRE_RADIUS.PILL,
|
|
12710
|
+
// 4px inset keeps thumb inside pill boundary (matches Figma left:4, top:4)
|
|
12711
|
+
margin: DHRE_PADDING.XS
|
|
12595
12712
|
},
|
|
12596
12713
|
buttonTextContainer: {
|
|
12597
12714
|
position: "absolute",
|
|
@@ -12601,11 +12718,10 @@ const styles$3 = reactNative.StyleSheet.create({
|
|
|
12601
12718
|
top: 0,
|
|
12602
12719
|
alignItems: "center",
|
|
12603
12720
|
justifyContent: "center"
|
|
12604
|
-
// borderRadius: 25,
|
|
12605
12721
|
}
|
|
12606
12722
|
});
|
|
12607
12723
|
|
|
12608
|
-
const
|
|
12724
|
+
const DEFAULT_SIZE = 40;
|
|
12609
12725
|
const CustomSlideButton = React__default["default"].forwardRef(
|
|
12610
12726
|
({
|
|
12611
12727
|
label,
|
|
@@ -12615,17 +12731,21 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
12615
12731
|
textStyle,
|
|
12616
12732
|
containerStyle,
|
|
12617
12733
|
sliderStyle,
|
|
12618
|
-
size =
|
|
12734
|
+
size = DEFAULT_SIZE,
|
|
12619
12735
|
sliderBackgroundColor = "#fff",
|
|
12620
12736
|
sliderTextColor = "#000",
|
|
12621
|
-
resetTimer = 2e3
|
|
12737
|
+
resetTimer = 2e3,
|
|
12738
|
+
isRTL = false,
|
|
12739
|
+
completedContainerStyle
|
|
12622
12740
|
}, ref) => {
|
|
12741
|
+
const thumbOffset = verticalScale(size) + DHRE_PADDING.XS * 2;
|
|
12623
12742
|
const value = React.useRef(0);
|
|
12624
12743
|
const cardRef = React.useRef(null);
|
|
12625
12744
|
const [translateX] = React.useState(new reactNative.Animated.Value(0));
|
|
12626
12745
|
const sliderConteinerRef = React.useRef(null);
|
|
12627
12746
|
const [color] = React.useState(new reactNative.Animated.Value(0));
|
|
12628
12747
|
const [sliderBackgroundColorRef] = React.useState(new reactNative.Animated.Value(0));
|
|
12748
|
+
const [isCompleted, setIsCompleted] = React.useState(false);
|
|
12629
12749
|
React__default["default"].useImperativeHandle(ref, () => ({
|
|
12630
12750
|
reset() {
|
|
12631
12751
|
resetAll();
|
|
@@ -12636,15 +12756,18 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
12636
12756
|
if (cardRef.current) {
|
|
12637
12757
|
cardRef.current.setNativeProps({
|
|
12638
12758
|
style: { width }
|
|
12639
|
-
// Change the width here
|
|
12640
12759
|
});
|
|
12641
12760
|
value.current = width;
|
|
12642
12761
|
sliderConteinerRef?.current?.setNativeProps({
|
|
12643
12762
|
style: { width }
|
|
12644
12763
|
});
|
|
12645
12764
|
}
|
|
12765
|
+
if (isRTL) {
|
|
12766
|
+
translateX.setValue(value.current - thumbOffset);
|
|
12767
|
+
}
|
|
12646
12768
|
};
|
|
12647
12769
|
const resetAll = () => {
|
|
12770
|
+
setIsCompleted(false);
|
|
12648
12771
|
onReset?.();
|
|
12649
12772
|
reactNative.Animated.timing(sliderBackgroundColorRef, {
|
|
12650
12773
|
toValue: 0,
|
|
@@ -12661,7 +12784,7 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
12661
12784
|
// because we're animating the color, not layout
|
|
12662
12785
|
}).start();
|
|
12663
12786
|
reactNative.Animated.timing(translateX, {
|
|
12664
|
-
toValue: 0,
|
|
12787
|
+
toValue: isRTL ? value.current - thumbOffset : 0,
|
|
12665
12788
|
useNativeDriver: false
|
|
12666
12789
|
}).start();
|
|
12667
12790
|
};
|
|
@@ -12672,39 +12795,73 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
12672
12795
|
},
|
|
12673
12796
|
onPanResponderTerminationRequest: () => false,
|
|
12674
12797
|
onPanResponderMove: (evt, gestureState) => {
|
|
12675
|
-
if (
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12798
|
+
if (isRTL) {
|
|
12799
|
+
if (gestureState.dx < 0 && gestureState.dx >= -(value.current - thumbOffset)) {
|
|
12800
|
+
translateX.setValue(value.current - thumbOffset + gestureState.dx);
|
|
12801
|
+
const colorValue = gestureState.dx < -(value.current / 3) ? 1 : 0;
|
|
12802
|
+
reactNative.Animated.timing(color, {
|
|
12803
|
+
toValue: colorValue,
|
|
12804
|
+
duration: 0,
|
|
12805
|
+
// no transition time, immediate change
|
|
12806
|
+
useNativeDriver: false
|
|
12807
|
+
}).start();
|
|
12808
|
+
}
|
|
12809
|
+
} else {
|
|
12810
|
+
if (gestureState.dx > 0 && gestureState.dx <= value.current - thumbOffset) {
|
|
12811
|
+
translateX.setValue(gestureState.dx);
|
|
12812
|
+
const colorValue = gestureState.dx > value.current / 3 ? 1 : 0;
|
|
12813
|
+
reactNative.Animated.timing(color, {
|
|
12814
|
+
toValue: colorValue,
|
|
12815
|
+
duration: 0,
|
|
12816
|
+
// no transition time, immediate change
|
|
12817
|
+
useNativeDriver: false
|
|
12818
|
+
}).start();
|
|
12819
|
+
}
|
|
12685
12820
|
}
|
|
12686
12821
|
},
|
|
12687
12822
|
onPanResponderRelease: (e, gestureState) => {
|
|
12688
|
-
if (
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12823
|
+
if (isRTL) {
|
|
12824
|
+
if (gestureState.dx <= -(value.current * 0.8)) {
|
|
12825
|
+
reactNative.Animated.timing(translateX, {
|
|
12826
|
+
toValue: 0,
|
|
12827
|
+
// snap to leftmost position (completed side for RTL)
|
|
12828
|
+
duration: 300,
|
|
12829
|
+
useNativeDriver: false
|
|
12830
|
+
}).start();
|
|
12831
|
+
reactNative.Animated.timing(sliderBackgroundColorRef, {
|
|
12832
|
+
toValue: 1,
|
|
12833
|
+
duration: 0,
|
|
12834
|
+
useNativeDriver: false
|
|
12835
|
+
}).start();
|
|
12836
|
+
setIsCompleted(true);
|
|
12837
|
+
onComplete?.();
|
|
12838
|
+
setTimeout(() => {
|
|
12839
|
+
resetAll();
|
|
12840
|
+
}, resetTimer);
|
|
12841
|
+
} else {
|
|
12704
12842
|
resetAll();
|
|
12705
|
-
}
|
|
12843
|
+
}
|
|
12706
12844
|
} else {
|
|
12707
|
-
|
|
12845
|
+
if (gestureState.dx >= value.current * 0.8) {
|
|
12846
|
+
reactNative.Animated.timing(translateX, {
|
|
12847
|
+
toValue: value.current - thumbOffset,
|
|
12848
|
+
// slide to the end
|
|
12849
|
+
duration: 300,
|
|
12850
|
+
useNativeDriver: false
|
|
12851
|
+
}).start();
|
|
12852
|
+
reactNative.Animated.timing(sliderBackgroundColorRef, {
|
|
12853
|
+
toValue: 1,
|
|
12854
|
+
duration: 0,
|
|
12855
|
+
useNativeDriver: false
|
|
12856
|
+
}).start();
|
|
12857
|
+
setIsCompleted(true);
|
|
12858
|
+
onComplete?.();
|
|
12859
|
+
setTimeout(() => {
|
|
12860
|
+
resetAll();
|
|
12861
|
+
}, resetTimer);
|
|
12862
|
+
} else {
|
|
12863
|
+
resetAll();
|
|
12864
|
+
}
|
|
12708
12865
|
}
|
|
12709
12866
|
},
|
|
12710
12867
|
onPanResponderTerminate: () => {
|
|
@@ -12720,49 +12877,62 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
12720
12877
|
outputRange: [sliderBackgroundColor, "transparent"]
|
|
12721
12878
|
});
|
|
12722
12879
|
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,
|
|
12880
|
+
return /* @__PURE__ */ React__default["default"].createElement(
|
|
12881
|
+
LinearGradient__default["default"],
|
|
12744
12882
|
{
|
|
12745
|
-
|
|
12746
|
-
|
|
12883
|
+
colors: OUTLINED_GRADIENT_COLORS,
|
|
12884
|
+
start: OUTLINED_GRADIENT_START,
|
|
12885
|
+
end: OUTLINED_GRADIENT_END,
|
|
12886
|
+
style: styles$2.gradientShell
|
|
12747
12887
|
},
|
|
12748
12888
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
12749
12889
|
reactNative.View,
|
|
12750
12890
|
{
|
|
12751
|
-
style:
|
|
12752
|
-
|
|
12753
|
-
backgroundColor: theme.
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
|
|
12757
|
-
|
|
12758
|
-
|
|
12891
|
+
style: [
|
|
12892
|
+
styles$2.sliderContainer,
|
|
12893
|
+
{ backgroundColor: theme.SURFACE_INVERTED },
|
|
12894
|
+
containerStyle,
|
|
12895
|
+
isCompleted && { backgroundColor: theme.BUTTON_SUCCESS_FILL },
|
|
12896
|
+
isCompleted ? completedContainerStyle : void 0
|
|
12897
|
+
],
|
|
12898
|
+
onLayout: handleLayout,
|
|
12899
|
+
ref: cardRef
|
|
12759
12900
|
},
|
|
12760
|
-
|
|
12901
|
+
/* @__PURE__ */ React__default["default"].createElement(
|
|
12902
|
+
reactNative.Animated.View,
|
|
12903
|
+
{
|
|
12904
|
+
style: [styles$2.buttonTextContainer, { backgroundColor, transform: [{ translateX }] }],
|
|
12905
|
+
ref: sliderConteinerRef
|
|
12906
|
+
}
|
|
12907
|
+
),
|
|
12908
|
+
/* @__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)),
|
|
12909
|
+
/* @__PURE__ */ React__default["default"].createElement(
|
|
12910
|
+
reactNative.Animated.View,
|
|
12911
|
+
{
|
|
12912
|
+
style: [styles$2.slider, { transform: [{ translateX }] }],
|
|
12913
|
+
...panResponder.panHandlers
|
|
12914
|
+
},
|
|
12915
|
+
/* @__PURE__ */ React__default["default"].createElement(
|
|
12916
|
+
reactNative.View,
|
|
12917
|
+
{
|
|
12918
|
+
style: {
|
|
12919
|
+
...styles$2.button,
|
|
12920
|
+
backgroundColor: theme.SURFACE_PRIMARY,
|
|
12921
|
+
width: verticalScale(size),
|
|
12922
|
+
height: verticalScale(size),
|
|
12923
|
+
...sliderStyle
|
|
12924
|
+
}
|
|
12925
|
+
},
|
|
12926
|
+
icon
|
|
12927
|
+
)
|
|
12928
|
+
)
|
|
12761
12929
|
)
|
|
12762
|
-
)
|
|
12930
|
+
);
|
|
12763
12931
|
}
|
|
12764
12932
|
);
|
|
12765
|
-
var index$
|
|
12933
|
+
var index$3 = withThemeProvider(
|
|
12934
|
+
CustomSlideButton
|
|
12935
|
+
);
|
|
12766
12936
|
|
|
12767
12937
|
const DHRE_STROKE = {
|
|
12768
12938
|
NONE: 0,
|
|
@@ -12822,7 +12992,7 @@ const AVATAR_SPEC = {
|
|
|
12822
12992
|
ringInset: 6
|
|
12823
12993
|
}
|
|
12824
12994
|
};
|
|
12825
|
-
const createStyles = (size, theme) => {
|
|
12995
|
+
const createStyles$1 = (size, theme) => {
|
|
12826
12996
|
const dimensions = AVATAR_SPEC[size];
|
|
12827
12997
|
return reactNative.StyleSheet.create({
|
|
12828
12998
|
container: {
|
|
@@ -12898,9 +13068,9 @@ const createStyles = (size, theme) => {
|
|
|
12898
13068
|
}
|
|
12899
13069
|
});
|
|
12900
13070
|
};
|
|
12901
|
-
const smallStyles = (theme) => createStyles(AvatarSize.SMALL, theme);
|
|
12902
|
-
const mediumStyles = (theme) => createStyles(AvatarSize.MEDIUM, theme);
|
|
12903
|
-
const largeStyles = (theme) => createStyles(AvatarSize.LARGE, theme);
|
|
13071
|
+
const smallStyles = (theme) => createStyles$1(AvatarSize.SMALL, theme);
|
|
13072
|
+
const mediumStyles = (theme) => createStyles$1(AvatarSize.MEDIUM, theme);
|
|
13073
|
+
const largeStyles = (theme) => createStyles$1(AvatarSize.LARGE, theme);
|
|
12904
13074
|
const getStylesBySize = (size, theme) => {
|
|
12905
13075
|
switch (size) {
|
|
12906
13076
|
case "small":
|
|
@@ -13051,7 +13221,7 @@ const Avatar = (props) => {
|
|
|
13051
13221
|
};
|
|
13052
13222
|
var Avatar$1 = withThemeProvider(Avatar);
|
|
13053
13223
|
|
|
13054
|
-
const styles$
|
|
13224
|
+
const styles$1 = reactNative.StyleSheet.create({
|
|
13055
13225
|
accordionContainer: {
|
|
13056
13226
|
gap: verticalScale(8),
|
|
13057
13227
|
marginHorizontal: horizontalScale(24),
|
|
@@ -13156,13 +13326,13 @@ const AppointmentCard = ({
|
|
|
13156
13326
|
isOpen,
|
|
13157
13327
|
onToggle,
|
|
13158
13328
|
containerStyle: {
|
|
13159
|
-
...styles$
|
|
13329
|
+
...styles$1.accordionStyle,
|
|
13160
13330
|
backgroundColor: theme.SURFACE_SECONDARY,
|
|
13161
13331
|
borderColor: theme.BORDER_SEPERATOR_HEADER,
|
|
13162
13332
|
borderBottomColor: theme.BORDER_SEPERATOR_HEADER
|
|
13163
13333
|
},
|
|
13164
|
-
headerStyle: styles$
|
|
13165
|
-
headerComponent: () => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
13334
|
+
headerStyle: styles$1.accordionHeader,
|
|
13335
|
+
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
13336
|
CustomTypography,
|
|
13167
13337
|
{
|
|
13168
13338
|
text: headerTitle,
|
|
@@ -13183,18 +13353,18 @@ const AppointmentCard = ({
|
|
|
13183
13353
|
reactNative.View,
|
|
13184
13354
|
{
|
|
13185
13355
|
style: [
|
|
13186
|
-
styles$
|
|
13356
|
+
styles$1.accordionDetails,
|
|
13187
13357
|
{ borderTopColor: theme.BORDER_SEPERATOR_HEADER }
|
|
13188
13358
|
]
|
|
13189
13359
|
},
|
|
13190
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
13360
|
+
/* @__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
13361
|
CustomTypography,
|
|
13192
13362
|
{
|
|
13193
13363
|
text: title2,
|
|
13194
13364
|
variant: FontStyle.L3_REGULAR,
|
|
13195
13365
|
style: { color: theme.CONTENT_SECONDRY }
|
|
13196
13366
|
}
|
|
13197
|
-
), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
13367
|
+
), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$1.infoRow }, isStatus && statusIcon, /* @__PURE__ */ React__default["default"].createElement(
|
|
13198
13368
|
CustomTypography,
|
|
13199
13369
|
{
|
|
13200
13370
|
text: value,
|
|
@@ -13209,7 +13379,7 @@ const AppointmentCard = ({
|
|
|
13209
13379
|
text: directionText,
|
|
13210
13380
|
variant: FontStyle.L2_REGULAR,
|
|
13211
13381
|
style: [
|
|
13212
|
-
styles$
|
|
13382
|
+
styles$1.getDirectionsText,
|
|
13213
13383
|
{ color: theme.CONTENT_PRIMARY }
|
|
13214
13384
|
],
|
|
13215
13385
|
onPress: onDirectionPress
|
|
@@ -13219,7 +13389,7 @@ const AppointmentCard = ({
|
|
|
13219
13389
|
reactNative.View,
|
|
13220
13390
|
{
|
|
13221
13391
|
style: [
|
|
13222
|
-
styles$
|
|
13392
|
+
styles$1.infoContainer,
|
|
13223
13393
|
{
|
|
13224
13394
|
backgroundColor: theme.SURFACE_TERTIARY
|
|
13225
13395
|
}
|
|
@@ -13239,7 +13409,7 @@ const AppointmentCard = ({
|
|
|
13239
13409
|
reactNative.View,
|
|
13240
13410
|
{
|
|
13241
13411
|
style: [
|
|
13242
|
-
styles$
|
|
13412
|
+
styles$1.actionsContainer,
|
|
13243
13413
|
{
|
|
13244
13414
|
borderTopColor: theme.BORDER_SEPERATOR_HEADER
|
|
13245
13415
|
}
|
|
@@ -13251,7 +13421,7 @@ const AppointmentCard = ({
|
|
|
13251
13421
|
text: viewText,
|
|
13252
13422
|
variant: FontStyle.L2_REGULAR,
|
|
13253
13423
|
style: [
|
|
13254
|
-
styles$
|
|
13424
|
+
styles$1.viewText,
|
|
13255
13425
|
{
|
|
13256
13426
|
color: theme.CONTENT_PRIMARY
|
|
13257
13427
|
}
|
|
@@ -13259,12 +13429,12 @@ const AppointmentCard = ({
|
|
|
13259
13429
|
onPress: onViewDetailsPress
|
|
13260
13430
|
}
|
|
13261
13431
|
),
|
|
13262
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$
|
|
13432
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$1.actionIcons }, /* @__PURE__ */ React__default["default"].createElement(
|
|
13263
13433
|
CustomIcon$1,
|
|
13264
13434
|
{
|
|
13265
13435
|
icon: deleteIcon,
|
|
13266
13436
|
containerStyle: {
|
|
13267
|
-
...styles$
|
|
13437
|
+
...styles$1.iconContainer,
|
|
13268
13438
|
backgroundColor: theme.SURFACE_INVERTED
|
|
13269
13439
|
},
|
|
13270
13440
|
onPress: onDeletePress
|
|
@@ -13274,7 +13444,7 @@ const AppointmentCard = ({
|
|
|
13274
13444
|
{
|
|
13275
13445
|
icon: editIcon,
|
|
13276
13446
|
containerStyle: {
|
|
13277
|
-
...styles$
|
|
13447
|
+
...styles$1.iconContainer,
|
|
13278
13448
|
backgroundColor: theme.SURFACE_INVERTED
|
|
13279
13449
|
},
|
|
13280
13450
|
onPress: onEditPress
|
|
@@ -13284,9 +13454,9 @@ const AppointmentCard = ({
|
|
|
13284
13454
|
)
|
|
13285
13455
|
);
|
|
13286
13456
|
};
|
|
13287
|
-
var index$
|
|
13457
|
+
var index$2 = withThemeProvider(AppointmentCard);
|
|
13288
13458
|
|
|
13289
|
-
const styles
|
|
13459
|
+
const styles = reactNative.StyleSheet.create({
|
|
13290
13460
|
container: {
|
|
13291
13461
|
flexDirection: "row",
|
|
13292
13462
|
alignItems: "center",
|
|
@@ -13343,7 +13513,7 @@ const PropertyDetails = ({
|
|
|
13343
13513
|
reactNative.View,
|
|
13344
13514
|
{
|
|
13345
13515
|
style: [
|
|
13346
|
-
styles
|
|
13516
|
+
styles.container,
|
|
13347
13517
|
{
|
|
13348
13518
|
backgroundColor: theme.SURFACE_PRIMARY,
|
|
13349
13519
|
borderColor: isSelected ? theme.STROKE_ACTIVE : theme.STROKE_TERTIARY
|
|
@@ -13358,12 +13528,12 @@ const PropertyDetails = ({
|
|
|
13358
13528
|
containerStyle
|
|
13359
13529
|
]
|
|
13360
13530
|
},
|
|
13361
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles
|
|
13531
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.imageWrapper }, React__default["default"].cloneElement(icon, {
|
|
13362
13532
|
width: "100%",
|
|
13363
13533
|
height: "100%",
|
|
13364
13534
|
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
|
|
13535
|
+
}), brandIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.brandBadge }, brandIcon)),
|
|
13536
|
+
/* @__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
13537
|
CustomTypography,
|
|
13368
13538
|
{
|
|
13369
13539
|
text: propertyNumber,
|
|
@@ -13394,31 +13564,45 @@ const PropertyDetails = ({
|
|
|
13394
13564
|
)
|
|
13395
13565
|
);
|
|
13396
13566
|
};
|
|
13397
|
-
var index = withThemeProvider(PropertyDetails);
|
|
13567
|
+
var index$1 = withThemeProvider(PropertyDetails);
|
|
13398
13568
|
|
|
13399
|
-
const
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
|
|
13403
|
-
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
|
|
13408
|
-
|
|
13409
|
-
|
|
13410
|
-
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
|
|
13569
|
+
const createStyles = (themeColors, size, radioColor) => {
|
|
13570
|
+
const radioSize = size === "large" ? moderateScale(24) : moderateScale(20);
|
|
13571
|
+
const dotSize = size === "large" ? moderateScale(12) : moderateScale(10);
|
|
13572
|
+
const resolvedRadioColor = radioColor ?? themeColors[Theme.STROKE_ACTIVE];
|
|
13573
|
+
return reactNative.StyleSheet.create({
|
|
13574
|
+
container: {
|
|
13575
|
+
rowGap: verticalScale(12)
|
|
13576
|
+
},
|
|
13577
|
+
optionContainer: {
|
|
13578
|
+
flexDirection: "row",
|
|
13579
|
+
columnGap: horizontalScale(8),
|
|
13580
|
+
alignItems: "flex-start"
|
|
13581
|
+
},
|
|
13582
|
+
radioButton: {
|
|
13583
|
+
width: radioSize,
|
|
13584
|
+
height: radioSize,
|
|
13585
|
+
borderRadius: moderateScale(100),
|
|
13586
|
+
borderWidth: 1,
|
|
13587
|
+
borderColor: resolvedRadioColor,
|
|
13588
|
+
justifyContent: "center",
|
|
13589
|
+
alignItems: "center"
|
|
13590
|
+
},
|
|
13591
|
+
radioButtonSelected: {
|
|
13592
|
+
borderWidth: 2,
|
|
13593
|
+
backgroundColor: themeColors[Theme.CONTENT_INVERTED]
|
|
13594
|
+
},
|
|
13595
|
+
radioButtonInnerDot: {
|
|
13596
|
+
width: dotSize,
|
|
13597
|
+
height: dotSize,
|
|
13598
|
+
borderRadius: moderateScale(50),
|
|
13599
|
+
backgroundColor: resolvedRadioColor
|
|
13600
|
+
},
|
|
13601
|
+
label: {
|
|
13602
|
+
color: themeColors[Theme.CONTENT_PRIMARY]
|
|
13603
|
+
}
|
|
13604
|
+
});
|
|
13605
|
+
};
|
|
13422
13606
|
|
|
13423
13607
|
const RadioButtonGroup = ({
|
|
13424
13608
|
data,
|
|
@@ -13426,8 +13610,13 @@ const RadioButtonGroup = ({
|
|
|
13426
13610
|
containerStyle,
|
|
13427
13611
|
labelStyle,
|
|
13428
13612
|
optionContainerStyle,
|
|
13429
|
-
selectedValue
|
|
13613
|
+
selectedValue,
|
|
13614
|
+
size = "large",
|
|
13615
|
+
fontVariant,
|
|
13616
|
+
radioColor
|
|
13430
13617
|
}) => {
|
|
13618
|
+
const { theme } = useTheme();
|
|
13619
|
+
const styles = createStyles(theme, size, radioColor);
|
|
13431
13620
|
const [selectedOption, setSelectedOption] = React.useState(
|
|
13432
13621
|
selectedValue ?? data[0]?.value
|
|
13433
13622
|
);
|
|
@@ -13435,12 +13624,14 @@ const RadioButtonGroup = ({
|
|
|
13435
13624
|
setSelectedOption(item.value);
|
|
13436
13625
|
onSelect(item);
|
|
13437
13626
|
};
|
|
13627
|
+
const resolvedFontVariant = fontVariant ?? (size === "small" ? FontStyle.BODY2_MEDIUM : FontStyle.BODY1_MEDIUM);
|
|
13438
13628
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.container, containerStyle] }, data?.map((item) => /* @__PURE__ */ React__default["default"].createElement(
|
|
13439
13629
|
reactNative.TouchableOpacity,
|
|
13440
13630
|
{
|
|
13441
13631
|
key: item.value,
|
|
13442
13632
|
style: [styles.optionContainer, optionContainerStyle],
|
|
13443
|
-
onPress: () => handleSelect(item)
|
|
13633
|
+
onPress: () => handleSelect(item),
|
|
13634
|
+
activeOpacity: 1
|
|
13444
13635
|
},
|
|
13445
13636
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
13446
13637
|
reactNative.View,
|
|
@@ -13449,22 +13640,24 @@ const RadioButtonGroup = ({
|
|
|
13449
13640
|
styles.radioButton,
|
|
13450
13641
|
selectedOption === item.value && styles.radioButtonSelected
|
|
13451
13642
|
]
|
|
13452
|
-
}
|
|
13643
|
+
},
|
|
13644
|
+
selectedOption === item.value && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.radioButtonInnerDot })
|
|
13453
13645
|
),
|
|
13454
13646
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
13455
13647
|
CustomTypography,
|
|
13456
13648
|
{
|
|
13457
|
-
variant:
|
|
13649
|
+
variant: resolvedFontVariant,
|
|
13458
13650
|
text: item.label,
|
|
13459
13651
|
style: [styles.label, labelStyle]
|
|
13460
13652
|
}
|
|
13461
13653
|
)
|
|
13462
13654
|
)));
|
|
13463
13655
|
};
|
|
13656
|
+
var index = withThemeProvider(RadioButtonGroup);
|
|
13464
13657
|
|
|
13465
13658
|
exports.Accordion = Accordion$1;
|
|
13466
13659
|
exports.AnimationLoitte = AnimationWithImperativeApi;
|
|
13467
|
-
exports.AppointmentCard = index$
|
|
13660
|
+
exports.AppointmentCard = index$2;
|
|
13468
13661
|
exports.Avatar = Avatar$1;
|
|
13469
13662
|
exports.AvatarSize = AvatarSize;
|
|
13470
13663
|
exports.Background = Background$1;
|
|
@@ -13484,7 +13677,7 @@ exports.CustomIcon = CustomIcon$1;
|
|
|
13484
13677
|
exports.CustomLoader = CustomLoader$1;
|
|
13485
13678
|
exports.CustomProgressBar = CustomProgressBar$1;
|
|
13486
13679
|
exports.CustomSearchBar = CustomSearchBar$1;
|
|
13487
|
-
exports.CustomSlideButton = index$
|
|
13680
|
+
exports.CustomSlideButton = index$3;
|
|
13488
13681
|
exports.CustomSwitchBtn = CustomSwitchBtn;
|
|
13489
13682
|
exports.CustomText = CustomText$1;
|
|
13490
13683
|
exports.CustomTextInput = CustomTextInput;
|
|
@@ -13523,6 +13716,9 @@ exports.FONT_STYLES = FONT_STYLES;
|
|
|
13523
13716
|
exports.FeedbackForm = feedback;
|
|
13524
13717
|
exports.FileUpload = FileUpload;
|
|
13525
13718
|
exports.FontStyle = FontStyle;
|
|
13719
|
+
exports.GRADIENT_COLORS_ERROR = GRADIENT_COLORS_ERROR;
|
|
13720
|
+
exports.GRADIENT_COLORS_PENDING = GRADIENT_COLORS_PENDING;
|
|
13721
|
+
exports.GRADIENT_COLORS_SUCCESS = GRADIENT_COLORS_SUCCESS;
|
|
13526
13722
|
exports.Line = Line;
|
|
13527
13723
|
exports.Loader = Loader$1;
|
|
13528
13724
|
exports.NAKHEEL_DEFAULT = NAKHEEL_DEFAULT;
|
|
@@ -13531,12 +13727,12 @@ exports.OTPInput = OTPInput;
|
|
|
13531
13727
|
exports.OurOfficesButton = OurOffices;
|
|
13532
13728
|
exports.PdfView = PdfView;
|
|
13533
13729
|
exports.PopUp = PopUp;
|
|
13534
|
-
exports.PropertyDetails = index;
|
|
13535
|
-
exports.RadioButtonGroup =
|
|
13730
|
+
exports.PropertyDetails = index$1;
|
|
13731
|
+
exports.RadioButtonGroup = index;
|
|
13536
13732
|
exports.ShapeType = ShapeType;
|
|
13537
13733
|
exports.SingleSelectionTags = TagSingleSelection;
|
|
13538
13734
|
exports.StarRating = Star;
|
|
13539
|
-
exports.Stepper = index$
|
|
13735
|
+
exports.Stepper = index$4;
|
|
13540
13736
|
exports.SwipableList = SwipableList$1;
|
|
13541
13737
|
exports.Tabs = Tabs$1;
|
|
13542
13738
|
exports.Tags = Tags;
|