@flipova/foundation 2.1.1 → 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.
- package/CHANGELOG.md +8 -0
- package/README.md +42 -3
- package/components/ui/gluestack-ui-provider/index.tsx +45 -25
- package/design/documentation.xml +60 -3
- package/design/tools/design.js +6 -1
- package/design/tools/npm.js +104 -3
- package/dist/{chunk-WNVU3BM2.mjs → chunk-HF2IPXOT.mjs} +25 -22
- package/dist/chunk-HF2IPXOT.mjs.map +1 -0
- package/dist/{chunk-LV4UIEQN.js → chunk-TDW7UKG6.js} +25 -21
- package/dist/chunk-TDW7UKG6.js.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +292 -288
- package/dist/index.mjs +1 -1
- package/dist/ui/index.d.mts +18 -3
- package/dist/ui/index.d.ts +18 -3
- package/dist/ui/index.js +292 -288
- package/dist/ui/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-LV4UIEQN.js.map +0 -1
- package/dist/chunk-WNVU3BM2.mjs.map +0 -1
|
@@ -3894,26 +3894,29 @@ function useCalendarTheme() {
|
|
|
3894
3894
|
}
|
|
3895
3895
|
var useGluestackColors2 = useGluestackColors;
|
|
3896
3896
|
var useCalendarTheme2 = useCalendarTheme;
|
|
3897
|
-
function
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
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-
|
|
9730
|
-
//# sourceMappingURL=chunk-
|
|
9733
|
+
//# sourceMappingURL=chunk-TDW7UKG6.js.map
|
|
9734
|
+
//# sourceMappingURL=chunk-TDW7UKG6.js.map
|