dhre-ui-kit 0.0.214 → 0.0.216

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.mjs CHANGED
@@ -252,7 +252,7 @@ const ThemeContext = createContext(void 0);
252
252
  const ThemeProvider = ({ children }) => {
253
253
  const mode = useSelector((state) => state.theme.currentTheme);
254
254
  const filteredTheme = Object.keys(theme).reduce((acc, key) => {
255
- acc[key] = theme[key];
255
+ acc[key] = theme[key][mode];
256
256
  return acc;
257
257
  }, {});
258
258
  return /* @__PURE__ */ React.createElement(ThemeContext.Provider, { value: { theme: filteredTheme, mode } }, children);
@@ -1962,11 +1962,11 @@ const Accordion = ({
1962
1962
  }
1963
1963
  }
1964
1964
  ),
1965
- React.cloneElement(icon, {
1965
+ icon ? React.cloneElement(icon, {
1966
1966
  width: moderateScale(20),
1967
1967
  height: moderateScale(20),
1968
1968
  style: styles$m.iconStyle
1969
- })
1969
+ }) : null
1970
1970
  ),
1971
1971
  optionalElement ? optionalElement() : null,
1972
1972
  isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$m.content, { height: cardHeight }] }, /* @__PURE__ */ React.createElement(