@plexui/styles 0.1.14 → 0.1.15

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.
@@ -1,7 +1,6 @@
1
1
  @layer components {.FieldError {
2
- display: flex;
3
- align-items: flex-start;
4
- gap: var(--field-error-gap);
2
+ display: grid;
3
+ grid-template-rows: 1fr;
5
4
  padding-inline-start: var(--field-error-padding-inline);
6
5
  color: var(--field-error-color);
7
6
  font-size: var(--field-error-font-size);
@@ -11,10 +10,16 @@
11
10
  margin-top: var(--field-error-margin-top);
12
11
  }.FieldError:last-of-type {
13
12
  margin-bottom: var(--field-error-margin-bottom);
13
+ }.Inner {
14
+ display: flex;
15
+ align-items: flex-start;
16
+ gap: var(--field-error-gap);
17
+ min-height: 0;
18
+ overflow: hidden;
14
19
  }/* The icon keeps its size and sits on the first line; the text wraps, also
15
- inside a long unbroken word, instead of pushing out of the field. */.FieldError > * {
20
+ inside a long unbroken word, instead of pushing out of the field. */.Inner > * {
16
21
  flex-shrink: 0;
17
- }.FieldError > span {
22
+ }.Inner > span {
18
23
  flex-shrink: 1;
19
24
  min-width: 0;
20
25
  overflow-wrap: anywhere;
@@ -24,5 +29,23 @@
24
29
  display: block;
25
30
  align-self: flex-start;
26
31
  margin-block-start: calc((var(--field-error-line-height) - var(--field-error-icon-size)) / 2);
32
+ }/* The room opens first, so what stands below slides down instead of dropping. */@media (prefers-reduced-motion: no-preference) {
33
+ .FieldError {
34
+ animation: open 200ms var(--cubic-enter);
35
+ }
36
+
37
+ .Inner {
38
+ animation: fade-in var(--transition-duration-basic) var(--cubic-enter);
39
+ }
40
+ }@keyframes open {
41
+ from {
42
+ grid-template-rows: 0fr;
43
+ margin-block: 0;
44
+ padding-block: 0;
45
+ }
46
+ }@keyframes fade-in {
47
+ from {
48
+ opacity: 0;
49
+ }
27
50
  }
28
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",