@threadlabs/looma 0.51.2 → 0.51.4

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/docs/catalog.json CHANGED
@@ -533,7 +533,7 @@
533
533
  ],
534
534
  "schemaVersion": 1,
535
535
  "package": "@threadlabs/looma",
536
- "version": "0.51.2",
536
+ "version": "0.51.4",
537
537
  "groups": [
538
538
  {
539
539
  "id": "layout",
@@ -23382,6 +23382,18 @@
23382
23382
  {
23383
23383
  "name": "--ui-info-subtle-text"
23384
23384
  },
23385
+ {
23386
+ "name": "--ui-motion-feedback"
23387
+ },
23388
+ {
23389
+ "name": "--ui-motion-feedback-ease"
23390
+ },
23391
+ {
23392
+ "name": "--ui-motion-layout"
23393
+ },
23394
+ {
23395
+ "name": "--ui-motion-layout-ease"
23396
+ },
23385
23397
  {
23386
23398
  "name": "--ui-radius-round"
23387
23399
  },
@@ -25383,6 +25395,12 @@
25383
25395
  {
25384
25396
  "name": "--ui-motion-fast"
25385
25397
  },
25398
+ {
25399
+ "name": "--ui-motion-feedback"
25400
+ },
25401
+ {
25402
+ "name": "--ui-motion-feedback-ease"
25403
+ },
25386
25404
  {
25387
25405
  "name": "--ui-neutral-wash-hover"
25388
25406
  },
@@ -3052,7 +3052,9 @@
3052
3052
  }
3053
3053
 
3054
3054
  @media (prefers-reduced-motion: reduce) {
3055
- input:where(:not([data-component], [data-slotted]))::after {
3055
+ input:where(:not([data-component], [data-slotted])),
3056
+ input:where(:not([data-component], [data-slotted]))::after,
3057
+ input:checked:where(:not([data-component], [data-slotted]))::after {
3056
3058
  transition: none;
3057
3059
  animation: none;
3058
3060
  }
@@ -3332,6 +3334,9 @@
3332
3334
  background: var(--ui-nav-hover-surface);
3333
3335
  color: var(--ui-text-primary);
3334
3336
  }
3337
+ :scope:where([data-component~="ui-disclosure"])[data-ui-disclosure-state~="variant=navigation"][data-ui-disclosure-state~="internalOpen"] .panel-inner {
3338
+ padding-block: 0 !important;
3339
+ }
3335
3340
  :scope:where([data-component~="ui-disclosure"])[data-ui-disclosure-state~="variant=navigation"] :is(.leading, .indicator) {
3336
3341
  inline-size: var(--ui-nav-icon-size);
3337
3342
  font-size: var(--ui-nav-icon-size);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.51.2",
3
+ "version": "0.51.4",
4
4
  "type": "module",
5
5
  "description": "HTML Next UI components, native DOM support and design tokens.",
6
6
  "license": "MIT",
@@ -145,7 +145,9 @@
145
145
  }
146
146
 
147
147
  @media (prefers-reduced-motion: reduce) {
148
- input:where(:not([data-component], [data-slotted]))::after {
148
+ input:where(:not([data-component], [data-slotted])),
149
+ input:where(:not([data-component], [data-slotted]))::after,
150
+ input:checked:where(:not([data-component], [data-slotted]))::after {
149
151
  transition: none;
150
152
  animation: none;
151
153
  }
@@ -167,6 +167,9 @@
167
167
  background: var(--ui-nav-hover-surface);
168
168
  color: var(--ui-text-primary);
169
169
  }
170
+ :scope:where([data-component~="ui-disclosure"])[data-ui-disclosure-state~="variant=navigation"][data-ui-disclosure-state~="internalOpen"] .panel-inner {
171
+ padding-block: 0 !important;
172
+ }
170
173
  :scope:where([data-component~="ui-disclosure"])[data-ui-disclosure-state~="variant=navigation"] :is(.leading, .indicator) {
171
174
  inline-size: var(--ui-nav-icon-size);
172
175
  font-size: var(--ui-nav-icon-size);
@@ -39,6 +39,13 @@
39
39
  background-color: var(--_meter-fill);
40
40
  background-image: linear-gradient(to bottom, rgb(255 255 255 / 0.26), transparent 70%);
41
41
  box-shadow: inset 0 1px rgb(255 255 255 / 0.26), inset 0 -1px rgb(0 0 0 / 0.1);
42
+ transition: inline-size var(--ui-motion-layout) var(--ui-motion-layout-ease), background-color var(--ui-motion-feedback) var(--ui-motion-feedback-ease);
43
+ }
44
+
45
+ @media (prefers-reduced-motion: reduce) {
46
+ .fill {
47
+ transition: none;
48
+ }
42
49
  }
43
50
 
44
51
  :scope:where([data-component~="ui-meter"])[data-ui-meter-state~="tone=accent-secondary"] {
@@ -193,6 +200,9 @@
193
200
  quiet border colour, so an empty meter still shows; every tone's fill keeps 3:1 against the
194
201
  track and the page. */
195
202
 
203
+ @media (prefers-reduced-motion: reduce) {
204
+ }
205
+
196
206
  /* Segments: the track and its fill show through a mask of equal segments with a gap between them.
197
207
  A mask over the whole meter, rather than one element per segment, because the expression
198
208
  language has no range to render N elements from, and one mask lines the fill up with the track
@@ -69,6 +69,10 @@
69
69
  background-image: var(--ui-surface-highlight, none);
70
70
  box-shadow: var(--ui-control-inset);
71
71
  cursor: pointer;
72
+ transition:
73
+ background-color var(--ui-motion-feedback) var(--ui-motion-feedback-ease),
74
+ border-color var(--ui-motion-feedback) var(--ui-motion-feedback-ease),
75
+ box-shadow var(--ui-motion-feedback) var(--ui-motion-feedback-ease);
72
76
  }
73
77
 
74
78
  /* The native radio retains grouping, validation and keyboard behavior.
@@ -141,6 +145,7 @@
141
145
  }
142
146
 
143
147
  @media (prefers-reduced-motion: reduce) {
148
+ input:where(:not([data-component], [data-slotted])),
144
149
  input:where(:not([data-component], [data-slotted]))::after {
145
150
  transition: none;
146
151
  }
package/theme-system.css CHANGED
@@ -36,6 +36,10 @@
36
36
  }
37
37
 
38
38
  :where(:root, [data-theme], [data-contrast]) {
39
+ /* Reading content stays lighter than surrounding application chrome, even when
40
+ a theme uses the same canvas and raised surface. Both follow the canvas hue. */
41
+ --ui-surface-content: color-mix(in oklab, var(--ui-surface) 92%, white);
42
+ --ui-surface-chrome: color-mix(in oklab, var(--ui-surface) 94%, black);
39
43
  /* Controls use a ratio. Spacing uses an independent curve, so increasing the size
40
44
  contrast cannot unexpectedly turn linear spacing into quadratic spacing. */
41
45
  --ui-control-size: calc(var(--_ui-root-font-unit) * var(--ui-control-roominess));
package/tokens.css CHANGED
@@ -519,3 +519,12 @@
519
519
  }
520
520
 
521
521
  }
522
+
523
+ @layer tokens {
524
+ :where(:root, [data-theme], [data-contrast]) {
525
+ /* Reading content stays lighter than surrounding application chrome, even when
526
+ a theme uses the same canvas and raised surface. Both follow the canvas hue. */
527
+ --ui-surface-content: color-mix(in oklab, var(--ui-surface) 92%, white);
528
+ --ui-surface-chrome: color-mix(in oklab, var(--ui-surface) 94%, black);
529
+ }
530
+ }