@vmz/ui 0.1.20 → 0.1.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vmz/ui",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "description": "VMZ UI — official UI framework (component contracts + semantic token requirements). Not a theme. Not a plugin.",
6
6
  "license": "MIT",
@@ -58,6 +58,7 @@
58
58
  * Compact status / label chip; tones share status.* + action tokens.
59
59
  */
60
60
  export default class Badge {
61
+ static __vmzHostBox = 'contents';
61
62
  public tone: string = "brand";
62
63
  }
63
64
  </script>
@@ -136,6 +136,8 @@
136
136
  * Variants: primary | secondary | ghost | danger
137
137
  */
138
138
  export default class Button {
139
+ /** @type {'contents'} Direct host: no layout box (`ui-direct-host-box`). */
140
+ static __vmzHostBox = 'contents';
139
141
  public type: string = "button";
140
142
  public variant: string = "primary";
141
143
  public disabled: boolean = false;
@@ -48,6 +48,7 @@
48
48
  * Parent picks `name`; no useIcon/createIcon. Unknown names render fallback glyph.
49
49
  */
50
50
  export default class Icon {
51
+ static __vmzHostBox = 'contents';
51
52
  public name: string = "info";
52
53
  public size: string = "md";
53
54
  public label: string = "";
@@ -41,6 +41,7 @@
41
41
  * Navigation / inline text link; tokens only, no brand hex.
42
42
  */
43
43
  export default class Link {
44
+ static __vmzHostBox = 'contents';
44
45
  public href: string = "#";
45
46
  public target: string = "";
46
47
  public rel: string = "";
@@ -12,4 +12,4 @@
12
12
  .vmz-ui-tag[data-status='warning']{color:var(--vmz-status-warning-foreground);background:color-mix(in srgb,var(--vmz-status-warning-accent) 12%,var(--vmz-surface-paper));border-color:color-mix(in srgb,var(--vmz-status-warning-accent) 45%,var(--vmz-line-default))}
13
13
  .vmz-ui-tag[data-status='error']{color:var(--vmz-status-danger-foreground);background:color-mix(in srgb,var(--vmz-status-danger-accent) 12%,var(--vmz-surface-paper));border-color:color-mix(in srgb,var(--vmz-status-danger-accent) 45%,var(--vmz-line-default))}
14
14
  </style>
15
- <script client>export default class Tag { public status: string = ''; }</script>
15
+ <script client>export default class Tag { static __vmzHostBox = 'contents'; public status: string = ''; }</script>