dhre-ui-kit 0.0.129 → 0.0.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +2 -0
- package/lib/index.js +26 -9
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +26 -9
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -486,9 +486,11 @@ declare const _default$a: (props: {
|
|
|
486
486
|
interface OurOfficesButtonProps$1 {
|
|
487
487
|
rightIcon?: ReactElement<SvgProps>;
|
|
488
488
|
onPress: () => void;
|
|
489
|
+
statusImage?: ReactElement<SvgProps>;
|
|
489
490
|
title: string;
|
|
490
491
|
subTitle?: string;
|
|
491
492
|
containterStyle?: ViewStyle;
|
|
493
|
+
time?: string;
|
|
492
494
|
}
|
|
493
495
|
declare const _default$9: (props: OurOfficesButtonProps$1) => React$1.JSX.Element;
|
|
494
496
|
|
package/lib/index.js
CHANGED
|
@@ -2451,6 +2451,8 @@ var Line = withThemeProvider(HorizontalLine);
|
|
|
2451
2451
|
|
|
2452
2452
|
const Topic = ({
|
|
2453
2453
|
rightIcon,
|
|
2454
|
+
statusImage,
|
|
2455
|
+
time,
|
|
2454
2456
|
onPress,
|
|
2455
2457
|
title,
|
|
2456
2458
|
subTitle,
|
|
@@ -2462,25 +2464,27 @@ const Topic = ({
|
|
|
2462
2464
|
{
|
|
2463
2465
|
style: [
|
|
2464
2466
|
styles$h.button,
|
|
2465
|
-
{ backgroundColor: theme[
|
|
2467
|
+
{ backgroundColor: theme[Theme.SURFACE_SECONDARY] },
|
|
2466
2468
|
containterStyle
|
|
2467
2469
|
],
|
|
2468
2470
|
onPress
|
|
2469
2471
|
},
|
|
2470
2472
|
rightIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.rightIconContainer }, React__default["default"].cloneElement(rightIcon)),
|
|
2471
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.
|
|
2473
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.timeContainer }, time && /* @__PURE__ */ React__default["default"].createElement(CustomText$1, { text: time, variant: FontStyle.L2_REGULAR })),
|
|
2474
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.textContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.paymentView }, statusImage && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, null, React__default["default"].cloneElement(statusImage)), subTitle && /* @__PURE__ */ React__default["default"].createElement(
|
|
2472
2475
|
CustomText$1,
|
|
2473
2476
|
{
|
|
2477
|
+
style: styles$h.subTitle,
|
|
2474
2478
|
text: subTitle,
|
|
2475
|
-
variant:
|
|
2476
|
-
textColor:
|
|
2479
|
+
variant: FontStyle.L2_REGULAR,
|
|
2480
|
+
textColor: Theme.CONTENT_PRIMARY
|
|
2477
2481
|
}
|
|
2478
|
-
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2482
|
+
)), /* @__PURE__ */ React__default["default"].createElement(
|
|
2479
2483
|
CustomText$1,
|
|
2480
2484
|
{
|
|
2481
2485
|
text: title,
|
|
2482
|
-
variant:
|
|
2483
|
-
textColor:
|
|
2486
|
+
variant: FontStyle.B3_REGULAR,
|
|
2487
|
+
textColor: Theme.CONTENT_PRIMARY
|
|
2484
2488
|
}
|
|
2485
2489
|
))
|
|
2486
2490
|
);
|
|
@@ -2493,7 +2497,8 @@ const styles$h = reactNative.StyleSheet.create({
|
|
|
2493
2497
|
width: 158,
|
|
2494
2498
|
borderRadius: 10,
|
|
2495
2499
|
marginLeft: 12,
|
|
2496
|
-
marginVertical: 14
|
|
2500
|
+
marginVertical: 14,
|
|
2501
|
+
position: "relative"
|
|
2497
2502
|
},
|
|
2498
2503
|
iconContainer: {
|
|
2499
2504
|
marginHorizontal: 16
|
|
@@ -2506,13 +2511,25 @@ const styles$h = reactNative.StyleSheet.create({
|
|
|
2506
2511
|
marginHorizontal: 8,
|
|
2507
2512
|
marginTop: 20
|
|
2508
2513
|
},
|
|
2514
|
+
timeContainer: {
|
|
2515
|
+
position: "absolute",
|
|
2516
|
+
right: 16,
|
|
2517
|
+
top: 16
|
|
2518
|
+
},
|
|
2509
2519
|
titleText: {
|
|
2510
2520
|
marginBottom: 4
|
|
2511
2521
|
},
|
|
2512
2522
|
rightIconContainer: {
|
|
2513
2523
|
position: "absolute",
|
|
2514
|
-
left:
|
|
2524
|
+
left: 10,
|
|
2515
2525
|
top: 10
|
|
2526
|
+
},
|
|
2527
|
+
subTitle: {
|
|
2528
|
+
marginLeft: 8
|
|
2529
|
+
},
|
|
2530
|
+
paymentView: {
|
|
2531
|
+
flexDirection: "row",
|
|
2532
|
+
alignItems: "center"
|
|
2516
2533
|
}
|
|
2517
2534
|
});
|
|
2518
2535
|
var Topic$1 = withThemeProvider(Topic);
|