dhre-ui-kit 0.0.136 → 0.0.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +1 -0
- package/lib/index.js +15 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +16 -5
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -508,6 +508,7 @@ declare const _default$9: (props: ContactModalProps) => React$1.JSX.Element;
|
|
|
508
508
|
|
|
509
509
|
interface DateRangePickerProps extends CalendarProps {
|
|
510
510
|
onButtonPress: (startDate: string, endDate: string) => void;
|
|
511
|
+
btnTitle?: string;
|
|
511
512
|
}
|
|
512
513
|
|
|
513
514
|
declare const _default$8: (props: DateRangePickerProps) => React$1.JSX.Element;
|
package/lib/index.js
CHANGED
|
@@ -357,8 +357,19 @@ const CustomTypography = ({
|
|
|
357
357
|
...props
|
|
358
358
|
}) => {
|
|
359
359
|
const textStyle = FONT_STYLES[variant];
|
|
360
|
-
return /* @__PURE__ */ React__default["default"].createElement(
|
|
360
|
+
return /* @__PURE__ */ React__default["default"].createElement(
|
|
361
|
+
reactNative.Text,
|
|
362
|
+
{
|
|
363
|
+
testID,
|
|
364
|
+
style: [textStyle, styles$F.container, style],
|
|
365
|
+
...props
|
|
366
|
+
},
|
|
367
|
+
text
|
|
368
|
+
);
|
|
361
369
|
};
|
|
370
|
+
const styles$F = reactNative.StyleSheet.create({
|
|
371
|
+
container: { writingDirection: "auto", alignSelf: "flex-start" }
|
|
372
|
+
});
|
|
362
373
|
|
|
363
374
|
const CustomText = ({
|
|
364
375
|
text,
|
|
@@ -2727,7 +2738,7 @@ const styles$f = reactNative.StyleSheet.create({
|
|
|
2727
2738
|
});
|
|
2728
2739
|
|
|
2729
2740
|
const DateRangePicker = (props) => {
|
|
2730
|
-
const { onButtonPress } = props;
|
|
2741
|
+
const { onButtonPress, btnTitle = "Apply" } = props;
|
|
2731
2742
|
const [selectedRange, setSelectedRange] = React.useState({
|
|
2732
2743
|
startDate: "",
|
|
2733
2744
|
endDate: ""
|
|
@@ -2800,7 +2811,7 @@ const DateRangePicker = (props) => {
|
|
|
2800
2811
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2801
2812
|
CustomButton$1,
|
|
2802
2813
|
{
|
|
2803
|
-
title:
|
|
2814
|
+
title: btnTitle,
|
|
2804
2815
|
onPress: () => {
|
|
2805
2816
|
onButtonPress(selectedRange?.startDate, selectedRange?.endDate);
|
|
2806
2817
|
},
|
|
@@ -2808,7 +2819,7 @@ const DateRangePicker = (props) => {
|
|
|
2808
2819
|
...styles$f.applyButton,
|
|
2809
2820
|
backgroundColor: theme.SURFACE_INVERTED
|
|
2810
2821
|
},
|
|
2811
|
-
textStyle: { color: theme.
|
|
2822
|
+
textStyle: { color: theme.CONTENT_INVERTED },
|
|
2812
2823
|
disabled: isButtonDisabled
|
|
2813
2824
|
}
|
|
2814
2825
|
));
|