@flipova/foundation 2.1.0 → 2.2.0

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.
@@ -3894,26 +3894,29 @@ function useCalendarTheme() {
3894
3894
  }
3895
3895
  var useGluestackColors2 = useGluestackColors;
3896
3896
  var useCalendarTheme2 = useCalendarTheme;
3897
- function GluestackUIProvider({
3898
- mode = "light",
3899
- ...props
3900
- }) {
3901
- const { colorScheme, setColorScheme } = nativewind.useColorScheme();
3902
- React48.useEffect(() => {
3903
- setColorScheme(mode);
3904
- }, [mode]);
3905
- return /* @__PURE__ */ jsxRuntime.jsx(
3906
- reactNative.View,
3907
- {
3908
- style: [
3909
- config[colorScheme],
3910
- { flex: 1, height: "100%", width: "100%" },
3911
- props.style
3912
- ],
3913
- children: /* @__PURE__ */ jsxRuntime.jsx(creator$d.OverlayProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(creator$o.ToastProvider, { children: props.children }) })
3914
- }
3915
- );
3897
+ function createGluestackUIProvider(theme) {
3898
+ return function ThemedProvider({
3899
+ mode = "light",
3900
+ ...props
3901
+ }) {
3902
+ const { colorScheme, setColorScheme } = nativewind.useColorScheme();
3903
+ React48.useEffect(() => {
3904
+ setColorScheme(mode);
3905
+ }, [mode]);
3906
+ return /* @__PURE__ */ jsxRuntime.jsx(
3907
+ reactNative.View,
3908
+ {
3909
+ style: [
3910
+ theme[colorScheme],
3911
+ { flex: 1, height: "100%", width: "100%" },
3912
+ props.style
3913
+ ],
3914
+ children: /* @__PURE__ */ jsxRuntime.jsx(creator$d.OverlayProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(creator$o.ToastProvider, { children: props.children }) })
3915
+ }
3916
+ );
3917
+ };
3916
3918
  }
3919
+ var GluestackUIProvider = createGluestackUIProvider(config);
3917
3920
  var gridBaseStyle = nativewindUtils.isWeb ? "grid grid-cols-12" : "box-border flex-row flex-wrap justify-start";
3918
3921
  var gridItemBaseStyle = nativewindUtils.isWeb ? "w-auto col-span-1" : "";
3919
3922
  var gridStyle = nativewindUtils.tva({
@@ -9722,9 +9725,10 @@ exports.UISlider = UISlider;
9722
9725
  exports.UITooltip = UITooltip;
9723
9726
  exports.UnlockIcon = UnlockIcon;
9724
9727
  exports.VStack = VStack;
9728
+ exports.createGluestackUIProvider = createGluestackUIProvider;
9725
9729
  exports.createIconUI = createIconUI;
9726
9730
  exports.useCalendarTheme = useCalendarTheme2;
9727
9731
  exports.useGluestackColors = useGluestackColors2;
9728
9732
  exports.useToast = useToast;
9729
- //# sourceMappingURL=chunk-LV4UIEQN.js.map
9730
- //# sourceMappingURL=chunk-LV4UIEQN.js.map
9733
+ //# sourceMappingURL=chunk-TDW7UKG6.js.map
9734
+ //# sourceMappingURL=chunk-TDW7UKG6.js.map