@namiml/expo-sdk 3.4.4-dev.202607010315 → 3.4.4-dev.202607012039
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/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/containers/NamiBackgroundContainer.tsx +10 -2
- package/src/components/containers/NamiContainer.tsx +9 -2
- package/src/components/elements/NamiButton.tsx +5 -2
- package/src/utils/styles.ts +6 -0
package/dist/index.mjs
CHANGED
|
@@ -3032,6 +3032,12 @@ const NamiBackgroundContainer = ({ component, scaleFactor, onClose }) => {
|
|
|
3032
3032
|
const containerStyle = useMemo(() => applyStyles(component, scaleFactor), [component, scaleFactor]);
|
|
3033
3033
|
const fillImageUrl = resolveFillImageUrl(component.fillImage);
|
|
3034
3034
|
const bgColor = parseColor(component.fillColor) ?? parseColor(component.fillColorFallback);
|
|
3035
|
+
// Only clip when the container is a filled "tile" with specific (non-all-corners)
|
|
3036
|
+
// rounding (NAM-1798); all-corners / unrounded filled containers stay unclipped so
|
|
3037
|
+
// NC-3948 / NAM-1201 over-rounding is not reintroduced. Matches the Apple/Web gate.
|
|
3038
|
+
const roundBorders = component.roundBorders;
|
|
3039
|
+
const hasSpecificCorners = Array.isArray(roundBorders) && roundBorders.length > 0 && roundBorders.length < 4;
|
|
3040
|
+
const clipStyle = (component.fillColor || component.fillImage) && hasSpecificCorners ? { overflow: 'hidden' } : {};
|
|
3035
3041
|
const direction = component.direction ?? 'vertical';
|
|
3036
3042
|
const content = (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: component.components?.map((comp, i) => {
|
|
3037
3043
|
const marginKey = direction === 'vertical' ? 'topMargin' : 'leftMargin';
|
|
@@ -3044,9 +3050,9 @@ const NamiBackgroundContainer = ({ component, scaleFactor, onClose }) => {
|
|
|
3044
3050
|
return (jsxRuntimeExports.jsx(TemplateRenderer, { component: spacedComponent, scaleFactor: scaleFactor, onClose: onClose, parentDirection: direction }, comp.id ?? i));
|
|
3045
3051
|
}) }));
|
|
3046
3052
|
if (fillImageUrl) {
|
|
3047
|
-
return (jsxRuntimeExports.jsx(ImageBackground, { source: { uri: fillImageUrl }, resizeMode: 'cover', style: [containerStyle, styles$4.background], children: content }));
|
|
3053
|
+
return (jsxRuntimeExports.jsx(ImageBackground, { source: { uri: fillImageUrl }, resizeMode: 'cover', style: [containerStyle, styles$4.background, clipStyle], children: content }));
|
|
3048
3054
|
}
|
|
3049
|
-
return (jsxRuntimeExports.jsx(View, { style: [containerStyle, bgColor ? { backgroundColor: bgColor } : null, styles$4.background], children: content }));
|
|
3055
|
+
return (jsxRuntimeExports.jsx(View, { style: [containerStyle, bgColor ? { backgroundColor: bgColor } : null, styles$4.background, clipStyle], children: content }));
|
|
3050
3056
|
};
|
|
3051
3057
|
function mergeRawMarginValue(existing, spacing) {
|
|
3052
3058
|
if (existing == null)
|