@threadlabs/looma 0.51.2 → 0.51.3

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.3",
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.51.2",
3
+ "version": "0.51.3",
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
  }
@@ -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
  }