@threadlabs/looma 0.23.0 → 0.23.1

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": "@threadlabs/looma",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "type": "module",
5
5
  "description": "Looma components as HTML, Vue, and plain DOM, with design tokens.",
6
6
  "license": "MIT",
@@ -62,6 +62,17 @@
62
62
  font-family: var(--ui-font-family-sans, sans-serif);
63
63
  }
64
64
 
65
+ /* Slot wrappers own their line boxes even when an app makes buttons inherit body typography. */
66
+ :scope[data-ui-search-result-row-state~="density=compact"] .title {
67
+ font-size: var(--ui-font-size-sm);
68
+ line-height: var(--ui-line-height);
69
+ }
70
+
71
+ :scope[data-ui-search-result-row-state~="density=compact"] .meta {
72
+ font-size: var(--ui-font-size-xs);
73
+ line-height: var(--ui-line-height);
74
+ }
75
+
65
76
  :scope:hover:enabled {
66
77
  background: var(--ui-search-result-row-hover-surface, color-mix(in srgb, var(--ui-surface) 85%, black 3%));
67
78
  }
@@ -129,6 +140,8 @@
129
140
  @scope ([data-component~="ui-search-result-row"]) to ([data-component]) {
130
141
  /* This component's hooks style the element they are set on, and never a nested one. */
131
142
 
143
+ /* Slot wrappers own their line boxes even when an app makes buttons inherit body typography. */
144
+
132
145
  /* An unused region takes no space. */
133
146
 
134
147
  :where([data-slotted], [data-slotted] *):is([slot="title"]),
@@ -221,6 +221,18 @@ const hostState = computed(() =>
221
221
  font-family: var(--ui-font-family-sans, sans-serif);
222
222
  }
223
223
 
224
+ /* Slot wrappers own their line boxes even when an app makes buttons inherit body typography. */
225
+ [data-component~="ui-search-result-row"][data-ui-search-result-row-state~="density=compact"]
226
+ .title {
227
+ font-size: var(--ui-font-size-sm);
228
+ line-height: var(--ui-line-height);
229
+ }
230
+
231
+ [data-component~="ui-search-result-row"][data-ui-search-result-row-state~="density=compact"] .meta {
232
+ font-size: var(--ui-font-size-xs);
233
+ line-height: var(--ui-line-height);
234
+ }
235
+
224
236
  [data-component~="ui-search-result-row"]:hover:enabled {
225
237
  background: var(
226
238
  --ui-search-result-row-hover-surface,
@@ -144,6 +144,6 @@ var UiSearchResultRow_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
144
144
  }]]);
145
145
  };
146
146
  }
147
- }), [["__scopeId", "data-v-694c84bd"]]);
147
+ }), [["__scopeId", "data-v-a72753f3"]]);
148
148
  //#endregion
149
149
  export { UiSearchResultRow_default as t };
@@ -6359,7 +6359,7 @@ legend[data-v-f7b72b3f] + * {
6359
6359
  syntax: "*";
6360
6360
  inherits: false;
6361
6361
  }
6362
- [data-component~="ui-search-result-row"][data-v-694c84bd] {
6362
+ [data-component~="ui-search-result-row"][data-v-a72753f3] {
6363
6363
  appearance: none;
6364
6364
  inline-size: 100%;
6365
6365
  min-block-size: var(--ui-search-result-row-min-height, 56px);
@@ -6377,7 +6377,7 @@ legend[data-v-f7b72b3f] + * {
6377
6377
  text-align: left;
6378
6378
  transition: background-color var(--ui-motion-fast) var(--ui-motion-ease);
6379
6379
  }
6380
- [data-component~="ui-search-result-row"][data-ui-search-result-row-state~="density=compact"][data-v-694c84bd] {
6380
+ [data-component~="ui-search-result-row"][data-ui-search-result-row-state~="density=compact"][data-v-a72753f3] {
6381
6381
  min-block-size: var(--ui-search-result-row-min-height, 3.125rem);
6382
6382
  padding-block: var(--ui-search-result-row-padding-block, var(--ui-space-1));
6383
6383
  padding-inline: var(--ui-search-result-row-padding-inline, var(--ui-space-2));
@@ -6385,67 +6385,78 @@ legend[data-v-f7b72b3f] + * {
6385
6385
  align-items: center;
6386
6386
  font-family: var(--ui-font-family-sans, sans-serif);
6387
6387
  }
6388
- [data-component~="ui-search-result-row"][data-v-694c84bd]:hover:enabled {
6388
+
6389
+ /* Slot wrappers own their line boxes even when an app makes buttons inherit body typography. */
6390
+ [data-component~="ui-search-result-row"][data-ui-search-result-row-state~="density=compact"]
6391
+ .title[data-v-a72753f3] {
6392
+ font-size: var(--ui-font-size-sm);
6393
+ line-height: var(--ui-line-height);
6394
+ }
6395
+ [data-component~="ui-search-result-row"][data-ui-search-result-row-state~="density=compact"] .meta[data-v-a72753f3] {
6396
+ font-size: var(--ui-font-size-xs);
6397
+ line-height: var(--ui-line-height);
6398
+ }
6399
+ [data-component~="ui-search-result-row"][data-v-a72753f3]:hover:enabled {
6389
6400
  background: var(
6390
6401
  --ui-search-result-row-hover-surface,
6391
6402
  color-mix(in srgb, var(--ui-surface) 85%, black 3%)
6392
6403
  );
6393
6404
  }
6394
- [data-component~="ui-search-result-row"][data-ui-search-result-row-state~="selected"][data-v-694c84bd] {
6405
+ [data-component~="ui-search-result-row"][data-ui-search-result-row-state~="selected"][data-v-a72753f3] {
6395
6406
  background: var(
6396
6407
  --ui-search-result-row-selected-bg,
6397
6408
  var(--ui-selection-surface)
6398
6409
  );
6399
6410
  color: var(--ui-selection-text);
6400
6411
  }
6401
- [data-component~="ui-search-result-row"][data-v-694c84bd]:focus-visible {
6412
+ [data-component~="ui-search-result-row"][data-v-a72753f3]:focus-visible {
6402
6413
  outline: var(--ui-focus-width) solid var(--ui-focus-ring);
6403
6414
  outline-offset: calc(-1 * var(--ui-focus-width));
6404
6415
  }
6405
- [data-component~="ui-search-result-row"][data-v-694c84bd]:disabled {
6416
+ [data-component~="ui-search-result-row"][data-v-a72753f3]:disabled {
6406
6417
  background: var(--ui-disabled-surface);
6407
6418
  color: var(--ui-disabled-text);
6408
6419
  cursor: not-allowed;
6409
6420
  }
6410
- .leading[data-v-694c84bd],
6411
- .trailing[data-v-694c84bd] {
6421
+ .leading[data-v-a72753f3],
6422
+ .trailing[data-v-a72753f3] {
6412
6423
  display: inline-flex;
6413
6424
  align-items: flex-start;
6414
6425
  flex-shrink: 0;
6415
6426
  }
6416
- .content[data-v-694c84bd] {
6427
+ .content[data-v-a72753f3] {
6417
6428
  min-inline-size: 0;
6418
6429
  flex: 1;
6419
6430
  display: flex;
6420
6431
  flex-direction: column;
6421
6432
  }
6422
- .title[data-v-694c84bd],
6423
- .meta[data-v-694c84bd],
6424
- .excerpt[data-v-694c84bd] {
6433
+ .title[data-v-a72753f3],
6434
+ .meta[data-v-a72753f3],
6435
+ .excerpt[data-v-a72753f3] {
6425
6436
  display: block;
6426
6437
  min-inline-size: 0;
6427
6438
  }
6428
6439
 
6429
6440
  /* An unused region takes no space. */
6430
- .leading[data-v-694c84bd]:empty,
6431
- .meta[data-v-694c84bd]:empty,
6432
- .excerpt[data-v-694c84bd]:empty,
6433
- .trailing[data-v-694c84bd]:empty {
6441
+ .leading[data-v-a72753f3]:empty,
6442
+ .meta[data-v-a72753f3]:empty,
6443
+ .excerpt[data-v-a72753f3]:empty,
6444
+ .trailing[data-v-a72753f3]:empty {
6434
6445
  display: none;
6435
6446
  }
6436
- [slot="title"][data-v-694c84bd-s],[slot="meta"][data-v-694c84bd-s],[slot="excerpt"][data-v-694c84bd-s] {
6447
+ [slot="title"][data-v-a72753f3-s],[slot="meta"][data-v-a72753f3-s],[slot="excerpt"][data-v-a72753f3-s] {
6437
6448
  display: block;
6438
6449
  margin: 0;
6439
6450
  }
6440
6451
  @media (forced-colors: active) {
6441
- [data-component~="ui-search-result-row"][data-ui-search-result-row-state~="selected"][data-v-694c84bd]:not(:focus-visible):not(:disabled) {
6452
+ [data-component~="ui-search-result-row"][data-ui-search-result-row-state~="selected"][data-v-a72753f3]:not(:focus-visible):not(:disabled) {
6442
6453
  outline: var(--ui-border-width) solid Highlight;
6443
6454
  outline-offset: calc(-1 * var(--ui-border-width));
6444
6455
  }
6445
6456
  }
6446
6457
 
6447
6458
  /* A component that sets its display still honours the hidden attribute on its root. */
6448
- [data-component~="ui-search-result-row"][hidden][data-v-694c84bd] {
6459
+ [data-component~="ui-search-result-row"][hidden][data-v-a72753f3] {
6449
6460
  display: none;
6450
6461
  }
6451
6462