@threadlabs/looma 0.52.1 → 0.52.2

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.
@@ -4,9 +4,10 @@
4
4
  >In a bounded flex column, grows into the remaining height. Put a filling Scroll Area in the body when its content needs to scroll independently.</prop>
5
5
  <prop name="size" type="keyword" values="content, sm, md, lg" default="content"
6
6
  >Optional size preset. content keeps the existing intrinsic sizing; the other sizes constrain the surface for compact, medium, or large content.</prop>
7
- <prop name="variant" type="keyword" values="outlined, subtle, elevated" default="outlined"
7
+ <prop name="variant" type="keyword" values="outlined, subtle, elevated, placeholder" default="outlined"
8
8
  >The surface. outlined is a bordered panel on the page; subtle is a quiet filled one with no border, for supporting details set apart from the flow;
9
- elevated adds a subtle lift above the page, for a view's one card, such as sign-in. Treatment independently controls decorative material.</prop>
9
+ elevated adds a subtle lift above the page, for a view's one card, such as sign-in. placeholder marks an empty content area with a quiet dashed border and
10
+ muted text, keeping the outlined card's dimensions. Treatment independently controls decorative material.</prop>
10
11
  <prop name="treatment" type="keyword" values="standard, expressive" default="standard"
11
12
  >How much of the theme's decorative material the surface expresses. standard preserves its restrained treatment; expressive uses the full material
12
13
  treatment. Its glass rim can transmit and frost the surrounding scene while content stays nearly opaque. Surface separation controls the rim,
@@ -113,6 +114,12 @@
113
114
  --_ui-card-surface: var(--ui-surface-muted);
114
115
  }
115
116
 
117
+ :host([variant="placeholder"]) {
118
+ border-style: dashed;
119
+ border-color: var(--ui-border-subtle);
120
+ --_ui-surface-text: var(--ui-text-muted);
121
+ }
122
+
116
123
  :host([variant="elevated"]) {
117
124
  --_ui-card-elevation: var(--ui-shadow-lg);
118
125
  border-color: var(--ui-border-subtle);
@@ -126,6 +126,15 @@
126
126
  box-shadow var(--ui-motion-fast) var(--ui-motion-ease);
127
127
  }
128
128
 
129
+ /* A separately named mark has no text line to align with. Its row owns that alignment. */
130
+ :host:has(.label:empty):has(.description:empty) .text {
131
+ display: none !important;
132
+ }
133
+
134
+ :host:has(.label:empty):has(.description:empty) input {
135
+ margin: 0 !important;
136
+ }
137
+
129
138
  input::after {
130
139
  content: "";
131
140
  position: absolute !important;
@@ -271,6 +280,11 @@
271
280
  padding-block: max(0px, calc((var(--_row) - max(var(--_line), var(--_ui-checkbox-size, 1.125rem))) / 2)) !important;
272
281
  }
273
282
 
283
+ :host([size="sm"]):has(.label:empty):has(.description:empty),
284
+ :host([size="lg"]):has(.label:empty):has(.description:empty) {
285
+ padding-block: max(0px, calc((var(--_row) - var(--_ui-checkbox-size, 1.125rem)) / 2)) !important;
286
+ }
287
+
274
288
  /* A component that sets its display still honours the hidden attribute on its root. */
275
289
  :host[hidden] {
276
290
  display: none !important;