@compact-design/html 0.1.0 → 0.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/dist/css.d.ts CHANGED
@@ -23,9 +23,37 @@ export declare function blurFilters(effects: DesignEffect[]): {
23
23
  export declare function layoutDeclarations(props: DesignProperties): string[];
24
24
  export declare function childSizingDeclarations(props: DesignProperties, parentDirection: "HORIZONTAL" | "VERTICAL" | "GRID" | undefined): string[];
25
25
  export declare function overflowDeclarations(props: DesignProperties): string[];
26
+ /** True when overflowDirection is a scrolling mode after core normalize. */
27
+ export declare function isScrollingOverflow(direction: DesignProperties["overflowDirection"]): direction is "HORIZONTAL" | "VERTICAL" | "BOTH";
28
+ /** Clamp numberOfFixedChildren to [0, childCount], matching Figma import. */
29
+ export declare function clampedFixedChildCount(value: unknown, childCount: number): number;
30
+ /**
31
+ * Sticky pin for the last N children of a scrolling frame (numberOfFixedChildren).
32
+ * Vertical → bottom; horizontal → right; BOTH → bottom+right (v1).
33
+ */
34
+ export declare function fixedChildStickyDeclarations(overflow: "HORIZONTAL" | "VERTICAL" | "BOTH"): string[];
26
35
  export declare function radiusDeclarations(props: DesignProperties): string[];
27
- export declare function strokeDeclarations(props: DesignProperties): string[];
36
+ export declare function strokeDeclarations(props: DesignProperties, colorOverride?: string): string[];
37
+ /** Collapse duplicate box-shadow declarations so stroke outlines coexist with effects. */
38
+ export declare function coalesceBoxShadows(declarations: string[]): string[];
28
39
  export declare function blendModeCss(value: string | undefined): string | undefined;
29
40
  export declare function textCaseCss(value: string | undefined): string | undefined;
41
+ /** font-variant-caps for SMALL_CAPS / SMALL_CAPS_FORCED; transform cases stay on textCaseCss. */
42
+ export declare function textCaseVariantCss(value: string | undefined): string | undefined;
30
43
  export declare function sanitizeSvg(markup: string): string;
31
44
  export declare function regularPolygon(cx: number, cy: number, radius: number, points: number, innerRatio?: number): string;
45
+ /** SVG path for a Figma-style arc: radians from 3 o'clock, sweeping clockwise from start to end. */
46
+ export declare function arcPath(width: number, height: number, startingAngle: number, endingAngle: number, innerRadiusRatio: number): string;
47
+ export interface LayoutGridLayer {
48
+ image: string;
49
+ size: string;
50
+ position: string;
51
+ repeat: string;
52
+ }
53
+ /** Background layers for visible layoutGrids (GRID lattice, COLUMNS / ROWS bands). */
54
+ export declare function layoutGridLayers(grids: unknown): LayoutGridLayer[];
55
+ /**
56
+ * Non-interactive ::after overlay declarations for visible layoutGrids.
57
+ * Does not affect layout or hit-testing (pointer-events: none, absolute).
58
+ */
59
+ export declare function layoutGridOverlayDeclarations(grids: unknown): string[];