dhre-ui-kit 0.0.131 → 0.0.133
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 -1
- package/lib/index.js +10 -16
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +10 -16
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -486,11 +486,12 @@ declare const _default$a: (props: {
|
|
|
486
486
|
interface OurOfficesButtonProps$1 {
|
|
487
487
|
rightIcon?: ReactElement<SvgProps>;
|
|
488
488
|
onPress: () => void;
|
|
489
|
-
statusImage?: ReactElement<SvgProps
|
|
489
|
+
statusImage?: ReactElement<SvgProps> | null;
|
|
490
490
|
title: string;
|
|
491
491
|
subTitle?: string;
|
|
492
492
|
containterStyle?: ViewStyle;
|
|
493
493
|
time?: string;
|
|
494
|
+
subTitleStyle?: TextStyle;
|
|
494
495
|
}
|
|
495
496
|
declare const _default$9: (props: OurOfficesButtonProps$1) => React$1.JSX.Element;
|
|
496
497
|
|
package/lib/index.js
CHANGED
|
@@ -2251,21 +2251,14 @@ const styles$l = reactNative.StyleSheet.create({
|
|
|
2251
2251
|
swippableContainer: { paddingVertical: verticalScale(16) },
|
|
2252
2252
|
actionButton: {
|
|
2253
2253
|
justifyContent: "center",
|
|
2254
|
-
alignItems: "center"
|
|
2254
|
+
alignItems: "center",
|
|
2255
|
+
paddingHorizontal: horizontalScale(24)
|
|
2255
2256
|
},
|
|
2256
2257
|
titleStyle: {
|
|
2257
2258
|
color: "#fff"
|
|
2258
2259
|
},
|
|
2259
|
-
|
|
2260
|
-
flexDirection: "row"
|
|
2261
|
-
justifyContent: "center",
|
|
2262
|
-
alignItems: "center",
|
|
2263
|
-
width: horizontalScale(150),
|
|
2264
|
-
gap: horizontalScale(24)
|
|
2265
|
-
},
|
|
2266
|
-
rightActions: {
|
|
2267
|
-
flexDirection: "row",
|
|
2268
|
-
paddingHorizontal: horizontalScale(24)
|
|
2260
|
+
actionBtn: {
|
|
2261
|
+
flexDirection: "row"
|
|
2269
2262
|
},
|
|
2270
2263
|
seprator: {
|
|
2271
2264
|
height: verticalScale(16)
|
|
@@ -2317,7 +2310,7 @@ const SwipableList = (props) => {
|
|
|
2317
2310
|
}
|
|
2318
2311
|
)
|
|
2319
2312
|
);
|
|
2320
|
-
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style:
|
|
2313
|
+
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$l.actionBtn }, leftPrimaryActionIcon && /* @__PURE__ */ React__default["default"].createElement(
|
|
2321
2314
|
ActionButton,
|
|
2322
2315
|
{
|
|
2323
2316
|
icon: leftPrimaryActionIcon,
|
|
@@ -2336,7 +2329,7 @@ const SwipableList = (props) => {
|
|
|
2336
2329
|
testID: `${testId}-LEFT-SECONDARY-${item.id}`
|
|
2337
2330
|
}
|
|
2338
2331
|
));
|
|
2339
|
-
const rightActionHandle = (item) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$l.
|
|
2332
|
+
const rightActionHandle = (item) => /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$l.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React__default["default"].createElement(
|
|
2340
2333
|
ActionButton,
|
|
2341
2334
|
{
|
|
2342
2335
|
icon: rightPrimaryActionIcon,
|
|
@@ -2456,7 +2449,8 @@ const Topic = ({
|
|
|
2456
2449
|
onPress,
|
|
2457
2450
|
title,
|
|
2458
2451
|
subTitle,
|
|
2459
|
-
containterStyle
|
|
2452
|
+
containterStyle,
|
|
2453
|
+
subTitleStyle
|
|
2460
2454
|
}) => {
|
|
2461
2455
|
const { theme } = useTheme();
|
|
2462
2456
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
@@ -2474,7 +2468,7 @@ const Topic = ({
|
|
|
2474
2468
|
/* @__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(
|
|
2475
2469
|
CustomText$1,
|
|
2476
2470
|
{
|
|
2477
|
-
style: styles$h.subTitle,
|
|
2471
|
+
style: [styles$h.subTitle, subTitleStyle],
|
|
2478
2472
|
text: subTitle,
|
|
2479
2473
|
variant: FontStyle.L2_REGULAR,
|
|
2480
2474
|
textColor: Theme.CONTENT_PRIMARY
|
|
@@ -2483,7 +2477,7 @@ const Topic = ({
|
|
|
2483
2477
|
CustomText$1,
|
|
2484
2478
|
{
|
|
2485
2479
|
text: title,
|
|
2486
|
-
variant: FontStyle.
|
|
2480
|
+
variant: FontStyle.L1_REGULAR,
|
|
2487
2481
|
textColor: Theme.CONTENT_PRIMARY
|
|
2488
2482
|
}
|
|
2489
2483
|
))
|