dhre-ui-kit 0.0.135 → 0.0.136
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.js +4 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +4 -6
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -10,8 +10,6 @@ var blur = require('@react-native-community/blur');
|
|
|
10
10
|
var Tooltip = require('rn-tooltip');
|
|
11
11
|
var Pdf = require('react-native-pdf');
|
|
12
12
|
var Progress = require('react-native-progress');
|
|
13
|
-
var ThemeContext$1 = require('src/theme/ThemeContext');
|
|
14
|
-
var withThemeProvider$1 = require('src/theme/withThemeProvider');
|
|
15
13
|
var reactNativeCalendars = require('react-native-calendars');
|
|
16
14
|
var CountryPicker = require('react-native-country-picker-modal');
|
|
17
15
|
var reactNativePaper = require('react-native-paper');
|
|
@@ -1929,7 +1927,7 @@ const Accordion = ({
|
|
|
1929
1927
|
const contentRef = React.useRef(null);
|
|
1930
1928
|
const [animation] = React.useState(new reactNative.Animated.Value(0));
|
|
1931
1929
|
const [contentHeight, setContentHeight] = React.useState(0);
|
|
1932
|
-
const { theme } =
|
|
1930
|
+
const { theme } = useTheme();
|
|
1933
1931
|
React.useEffect(() => {
|
|
1934
1932
|
if (contentRef.current) {
|
|
1935
1933
|
contentRef.current.measure((x, y, width, height) => {
|
|
@@ -1987,7 +1985,7 @@ const Accordion = ({
|
|
|
1987
1985
|
))
|
|
1988
1986
|
);
|
|
1989
1987
|
};
|
|
1990
|
-
var Accordion$1 = withThemeProvider
|
|
1988
|
+
var Accordion$1 = withThemeProvider(Accordion);
|
|
1991
1989
|
|
|
1992
1990
|
const styles$o = reactNative.StyleSheet.create({
|
|
1993
1991
|
container: {
|
|
@@ -2241,7 +2239,7 @@ const CustomHeader = ({
|
|
|
2241
2239
|
onLeftPress,
|
|
2242
2240
|
onRightPress
|
|
2243
2241
|
}) => {
|
|
2244
|
-
const { theme } =
|
|
2242
|
+
const { theme } = useTheme();
|
|
2245
2243
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
2246
2244
|
reactNative.View,
|
|
2247
2245
|
{
|
|
@@ -2273,7 +2271,7 @@ const CustomHeader = ({
|
|
|
2273
2271
|
}) : null
|
|
2274
2272
|
);
|
|
2275
2273
|
};
|
|
2276
|
-
var CustomHeader$1 = withThemeProvider
|
|
2274
|
+
var CustomHeader$1 = withThemeProvider(CustomHeader);
|
|
2277
2275
|
|
|
2278
2276
|
const styles$l = reactNative.StyleSheet.create({
|
|
2279
2277
|
container: {
|