@vmscloud/moz-ui-components-core 0.1.62 → 0.1.64

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.
@@ -32,6 +32,12 @@ export declare function splitAria(rest: Record<string, unknown>): {
32
32
  /**
33
33
  * style 값(string | 객체 | undefined)을 lit-html styleMap 이 받는 객체로 정규화.
34
34
  * (프레임워크에서 $attrs.style / style prop 가 문자열/객체 어느 쪽으로 와도 처리)
35
+ *
36
+ * 객체 입력의 숫자 값은 React(react-dom 18.3.1 `dangerousStyleValue`)와 같은 규칙으로 바꾼다.
37
+ * styleMap 은 단위를 붙이지 않아 `top: 6` 이 `top:6` 으로 나가고 브라우저가 버리기 때문이다.
38
+ * - 0 이 아닌 숫자 → `${n}px`
39
+ * - 0 · unitless 속성(`UNITLESS_STYLE_PROPS`) · CSS 커스텀 속성(`--*`) · 숫자가 아닌 값 → 그대로
40
+ * 입력 객체는 바꾸지 않고 새 객체를 돌려준다.
35
41
  */
36
42
  export declare function normalizeStyle(style: unknown): Record<string, string>;
37
43
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vmscloud/moz-ui-components-core",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
4
4
  "description": "Framework-agnostic headless UI primitives (lit-html) for @vmscloud/moz-ui-components — mount-function factory core. References the moz-ui-grid runtime pattern but has ZERO dependency on any grid package.",
5
5
  "license": "ISC",
6
6
  "type": "module",