@namiml/web-sdk 3.4.11-dev.202609152019 → 3.4.11-dev.202609221913
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/components/utils/styles.d.ts +13 -1
- package/dist/nami-web.cjs +2 -2
- package/dist/nami-web.d.ts +1 -1
- package/dist/nami-web.mjs +2 -2
- package/dist/nami-web.umd.js +3 -3
- package/package.json +2 -2
|
@@ -35,7 +35,19 @@ export declare function grow({ grow }: TBaseComponent): string;
|
|
|
35
35
|
export declare function paddingAndMargin(component: TBaseComponent, scaleFactor: number): string;
|
|
36
36
|
export declare function applySegmentAbsoluteStyles(component: TSegmentPicker, scaleFactor: number): string;
|
|
37
37
|
export declare function slidePaddingAndMargin(component: TCarouselContainer, scaleFactor: number): string;
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Positional offsets for a component (NAM-4465).
|
|
40
|
+
*
|
|
41
|
+
* `moveX`/`moveY` are authored in the same pixel space as `width`, `height` and padding,
|
|
42
|
+
* so a numeric offset rides `scaleFactor` exactly like they do — otherwise a component
|
|
43
|
+
* shrinks on a television at a fractional scale factor while its offset stays put, and it
|
|
44
|
+
* drifts out from under whatever it was positioned against.
|
|
45
|
+
*
|
|
46
|
+
* A string offset ("50%") is emitted verbatim: CSS resolves a percentage against the
|
|
47
|
+
* containing block, which is already scaled. This matches Android's `getMoveValueDp`,
|
|
48
|
+
* which scales numbers and resolves percentages against the parent dimension.
|
|
49
|
+
*/
|
|
50
|
+
export declare function transform({ moveX, moveY }: TBaseComponent, scaleFactor: number): string;
|
|
39
51
|
export declare function borders(component: TBaseComponent, scaleFactor: number, inFocusedState?: boolean): string;
|
|
40
52
|
export declare function alignItems({ alignment, verticalAlignment }: TBaseComponent): string;
|
|
41
53
|
export declare function justifyContent({ alignment, horizontalAlignment }: TBaseComponent): string;
|