@pimolu/web-styles 0.1.0-beta.4 → 0.1.0-beta.5

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/README.fr.md CHANGED
@@ -6,7 +6,7 @@ La couche de style derrière Pimolu UI. Chargez une feuille complète, optez pou
6
6
 
7
7
  [Démarrage rapide](https://pimolu.com/docs/quick-start) · [Thèmes](https://pimolu.com/docs/theming) · [Personnalisation](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) · [Source](https://github.com/pimoludev/ui/tree/main/packages/web-styles)
8
8
 
9
- > **Bêta :** `0.1.0-beta.4` est une prévisualisation. Les entrées CSS publiques et les tokens visuels peuvent évoluer avant `1.0.0`.
9
+ > **Bêta :** `0.1.0-beta.5` est une prévisualisation. Les entrées CSS publiques et les tokens visuels peuvent évoluer avant `1.0.0`.
10
10
 
11
11
  ## Pourquoi les styles Pimolu ?
12
12
 
package/README.md CHANGED
@@ -6,7 +6,7 @@ The styling layer behind Pimolu UI. Load one complete stylesheet, opt into predi
6
6
 
7
7
  [Quick start](https://pimolu.com/docs/quick-start) · [Theming](https://pimolu.com/docs/theming) · [Customization](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) · [Source](https://github.com/pimoludev/ui/tree/main/packages/web-styles)
8
8
 
9
- > **Beta:** `0.1.0-beta.4` is a preview. Public CSS entry points and visual tokens may change before `1.0.0`.
9
+ > **Beta:** `0.1.0-beta.5` is a preview. Public CSS entry points and visual tokens may change before `1.0.0`.
10
10
 
11
11
  ## Why Pimolu styles?
12
12
 
@@ -1,3 +1,38 @@
1
+ /* src/motion.css */
2
+ :root {
3
+ --pimolu-interaction-duration: 150ms;
4
+ --pimolu-interaction-easing: ease-out;
5
+ }
6
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
7
+ transition:
8
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
9
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
10
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
11
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
12
+ }
13
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
14
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
15
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
16
+ animation: none !important;
17
+ transition: none !important;
18
+ scroll-behavior: auto !important;
19
+ }
20
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
21
+ display: none !important;
22
+ }
23
+ @media (prefers-reduced-motion: reduce) {
24
+ :where([class^=pimolu-], [class*=" pimolu-"]),
25
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
26
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
27
+ animation: none !important;
28
+ transition: none !important;
29
+ scroll-behavior: auto !important;
30
+ }
31
+ .pimolu-accordion__content[hidden] {
32
+ display: none !important;
33
+ }
34
+ }
35
+
1
36
  /* src/accordion.css */
2
37
  .pimolu-accordion {
3
38
  min-width: 0;
@@ -76,13 +111,32 @@
76
111
  transform: rotate(180deg);
77
112
  }
78
113
  .pimolu-accordion__content {
114
+ display: grid;
115
+ grid-template-rows: 1fr;
79
116
  min-width: 0;
80
117
  color: var(--pimolu-muted-foreground);
81
118
  font-size: 0.875rem;
82
119
  line-height: 1.6;
83
120
  }
121
+ .pimolu-accordion__content[hidden] {
122
+ display: none;
123
+ }
124
+ .pimolu-accordion__content-clip {
125
+ min-height: 0;
126
+ overflow: hidden;
127
+ }
84
128
  .pimolu-accordion__content[data-state=open] {
85
- animation: pimolu-accordion-in 160ms ease-out;
129
+ animation: pimolu-accordion-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
130
+ }
131
+ .pimolu-accordion__content[hidden][data-state=closing] {
132
+ display: grid;
133
+ animation: pimolu-accordion-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
134
+ }
135
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__content {
136
+ animation: none;
137
+ }
138
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__chevron {
139
+ transition: none;
86
140
  }
87
141
  .pimolu-accordion__content-inner {
88
142
  padding: 0 0 16px;
@@ -96,19 +150,32 @@
96
150
  }
97
151
  @keyframes pimolu-accordion-in {
98
152
  from {
153
+ grid-template-rows: 0fr;
99
154
  opacity: 0;
100
155
  transform: translateY(-3px);
101
156
  }
102
157
  to {
158
+ grid-template-rows: 1fr;
103
159
  opacity: 1;
104
160
  transform: translateY(0);
105
161
  }
106
162
  }
163
+ @keyframes pimolu-accordion-out {
164
+ from {
165
+ grid-template-rows: 1fr;
166
+ opacity: 1;
167
+ }
168
+ to {
169
+ grid-template-rows: 0fr;
170
+ opacity: 0;
171
+ }
172
+ }
107
173
  @media (prefers-reduced-motion: reduce) {
108
174
  .pimolu-accordion__chevron {
109
175
  transition: none;
110
176
  }
111
- .pimolu-accordion__content[data-state=open] {
177
+ .pimolu-accordion__content[data-state=open],
178
+ .pimolu-accordion__content[hidden][data-state=closing] {
112
179
  animation: none;
113
180
  }
114
181
  }
package/dist/avatar.css CHANGED
@@ -1,3 +1,38 @@
1
+ /* src/motion.css */
2
+ :root {
3
+ --pimolu-interaction-duration: 150ms;
4
+ --pimolu-interaction-easing: ease-out;
5
+ }
6
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
7
+ transition:
8
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
9
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
10
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
11
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
12
+ }
13
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
14
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
15
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
16
+ animation: none !important;
17
+ transition: none !important;
18
+ scroll-behavior: auto !important;
19
+ }
20
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
21
+ display: none !important;
22
+ }
23
+ @media (prefers-reduced-motion: reduce) {
24
+ :where([class^=pimolu-], [class*=" pimolu-"]),
25
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
26
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
27
+ animation: none !important;
28
+ transition: none !important;
29
+ scroll-behavior: auto !important;
30
+ }
31
+ .pimolu-accordion__content[hidden] {
32
+ display: none !important;
33
+ }
34
+ }
35
+
1
36
  /* src/avatar.css */
2
37
  .pimolu-avatar {
3
38
  --pimolu-avatar-size: 40px;
package/dist/badge.css CHANGED
@@ -1,3 +1,38 @@
1
+ /* src/motion.css */
2
+ :root {
3
+ --pimolu-interaction-duration: 150ms;
4
+ --pimolu-interaction-easing: ease-out;
5
+ }
6
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
7
+ transition:
8
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
9
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
10
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
11
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
12
+ }
13
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
14
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
15
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
16
+ animation: none !important;
17
+ transition: none !important;
18
+ scroll-behavior: auto !important;
19
+ }
20
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
21
+ display: none !important;
22
+ }
23
+ @media (prefers-reduced-motion: reduce) {
24
+ :where([class^=pimolu-], [class*=" pimolu-"]),
25
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
26
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
27
+ animation: none !important;
28
+ transition: none !important;
29
+ scroll-behavior: auto !important;
30
+ }
31
+ .pimolu-accordion__content[hidden] {
32
+ display: none !important;
33
+ }
34
+ }
35
+
1
36
  /* src/badge.css */
2
37
  .pimolu-badge {
3
38
  --pimolu-badge-height: 24px;
package/dist/card.css CHANGED
@@ -1,3 +1,38 @@
1
+ /* src/motion.css */
2
+ :root {
3
+ --pimolu-interaction-duration: 150ms;
4
+ --pimolu-interaction-easing: ease-out;
5
+ }
6
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
7
+ transition:
8
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
9
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
10
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
11
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
12
+ }
13
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
14
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
15
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
16
+ animation: none !important;
17
+ transition: none !important;
18
+ scroll-behavior: auto !important;
19
+ }
20
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
21
+ display: none !important;
22
+ }
23
+ @media (prefers-reduced-motion: reduce) {
24
+ :where([class^=pimolu-], [class*=" pimolu-"]),
25
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
26
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
27
+ animation: none !important;
28
+ transition: none !important;
29
+ scroll-behavior: auto !important;
30
+ }
31
+ .pimolu-accordion__content[hidden] {
32
+ display: none !important;
33
+ }
34
+ }
35
+
1
36
  /* src/card.css */
2
37
  .pimolu-card {
3
38
  --pimolu-card-padding: 16px;
package/dist/command.css CHANGED
@@ -1,3 +1,38 @@
1
+ /* src/motion.css */
2
+ :root {
3
+ --pimolu-interaction-duration: 150ms;
4
+ --pimolu-interaction-easing: ease-out;
5
+ }
6
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
7
+ transition:
8
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
9
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
10
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
11
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
12
+ }
13
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
14
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
15
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
16
+ animation: none !important;
17
+ transition: none !important;
18
+ scroll-behavior: auto !important;
19
+ }
20
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
21
+ display: none !important;
22
+ }
23
+ @media (prefers-reduced-motion: reduce) {
24
+ :where([class^=pimolu-], [class*=" pimolu-"]),
25
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
26
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
27
+ animation: none !important;
28
+ transition: none !important;
29
+ scroll-behavior: auto !important;
30
+ }
31
+ .pimolu-accordion__content[hidden] {
32
+ display: none !important;
33
+ }
34
+ }
35
+
1
36
  /* src/command.css */
2
37
  .pimolu-command {
3
38
  display: flex;
@@ -1,4 +1,52 @@
1
+ /* src/motion.css */
2
+ :root {
3
+ --pimolu-interaction-duration: 150ms;
4
+ --pimolu-interaction-easing: ease-out;
5
+ }
6
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
7
+ transition:
8
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
9
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
10
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
11
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
12
+ }
13
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
14
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
15
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
16
+ animation: none !important;
17
+ transition: none !important;
18
+ scroll-behavior: auto !important;
19
+ }
20
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
21
+ display: none !important;
22
+ }
23
+ @media (prefers-reduced-motion: reduce) {
24
+ :where([class^=pimolu-], [class*=" pimolu-"]),
25
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
26
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
27
+ animation: none !important;
28
+ transition: none !important;
29
+ scroll-behavior: auto !important;
30
+ }
31
+ .pimolu-accordion__content[hidden] {
32
+ display: none !important;
33
+ }
34
+ }
35
+
1
36
  /* src/form-field.css */
37
+ .pimolu-form-message--error {
38
+ animation: pimolu-field-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
39
+ }
40
+ @keyframes pimolu-field-feedback-in {
41
+ from {
42
+ opacity: 0;
43
+ transform: translateY(-3px);
44
+ }
45
+ to {
46
+ opacity: 1;
47
+ transform: translateY(0);
48
+ }
49
+ }
2
50
  .pimolu-form-field {
3
51
  display: grid;
4
52
  gap: 6px;
package/dist/form.css CHANGED
@@ -1,3 +1,38 @@
1
+ /* src/motion.css */
2
+ :root {
3
+ --pimolu-interaction-duration: 150ms;
4
+ --pimolu-interaction-easing: ease-out;
5
+ }
6
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
7
+ transition:
8
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
9
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
10
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
11
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
12
+ }
13
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
14
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
15
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
16
+ animation: none !important;
17
+ transition: none !important;
18
+ scroll-behavior: auto !important;
19
+ }
20
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
21
+ display: none !important;
22
+ }
23
+ @media (prefers-reduced-motion: reduce) {
24
+ :where([class^=pimolu-], [class*=" pimolu-"]),
25
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
26
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
27
+ animation: none !important;
28
+ transition: none !important;
29
+ scroll-behavior: auto !important;
30
+ }
31
+ .pimolu-accordion__content[hidden] {
32
+ display: none !important;
33
+ }
34
+ }
35
+
1
36
  /* src/form.css */
2
37
  .pimolu-form {
3
38
  display: grid;
@@ -11,12 +46,23 @@
11
46
  justify-self: start;
12
47
  }
13
48
  .pimolu-form__error {
49
+ animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
14
50
  margin: 0;
15
51
  color: var(--pimolu-danger, #dc2626);
16
52
  font-size: 0.8125rem;
17
53
  line-height: 1.4;
18
54
  overflow-wrap: anywhere;
19
55
  }
56
+ @keyframes pimolu-form-feedback-in {
57
+ from {
58
+ opacity: 0;
59
+ transform: translateY(-3px);
60
+ }
61
+ to {
62
+ opacity: 1;
63
+ transform: translateY(0);
64
+ }
65
+ }
20
66
  @media (forced-colors: active) {
21
67
  .pimolu-form__error {
22
68
  color: LinkText;
package/dist/layered.css CHANGED
@@ -3691,6 +3691,32 @@
3691
3691
  background: ButtonFace;
3692
3692
  }
3693
3693
  }
3694
+ .pimolu-slider__control::-webkit-slider-thumb {
3695
+ transition: box-shadow 150ms ease-out;
3696
+ }
3697
+ .pimolu-slider__control::-moz-range-thumb {
3698
+ transition: box-shadow 150ms ease-out;
3699
+ }
3700
+ .pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-webkit-slider-thumb {
3701
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
3702
+ }
3703
+ .pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-moz-range-thumb {
3704
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
3705
+ }
3706
+ @media (prefers-reduced-motion: reduce) {
3707
+ .pimolu-slider__control::-webkit-slider-thumb {
3708
+ transition: none;
3709
+ }
3710
+ .pimolu-slider__control::-moz-range-thumb {
3711
+ transition: none;
3712
+ }
3713
+ }
3714
+ [data-pimolu-motion=off] .pimolu-slider__control::-webkit-slider-thumb {
3715
+ transition: none;
3716
+ }
3717
+ [data-pimolu-motion=off] .pimolu-slider__control::-moz-range-thumb {
3718
+ transition: none;
3719
+ }
3694
3720
  }
3695
3721
 
3696
3722
  /* src/range-slider.css */
@@ -5557,6 +5583,19 @@
5557
5583
 
5558
5584
  /* src/form-field.css */
5559
5585
  @layer pimolu {
5586
+ .pimolu-form-message--error {
5587
+ animation: pimolu-field-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
5588
+ }
5589
+ @keyframes pimolu-field-feedback-in {
5590
+ from {
5591
+ opacity: 0;
5592
+ transform: translateY(-3px);
5593
+ }
5594
+ to {
5595
+ opacity: 1;
5596
+ transform: translateY(0);
5597
+ }
5598
+ }
5560
5599
  .pimolu-form-field {
5561
5600
  display: grid;
5562
5601
  gap: 6px;
@@ -5728,13 +5767,32 @@
5728
5767
  transform: rotate(180deg);
5729
5768
  }
5730
5769
  .pimolu-accordion__content {
5770
+ display: grid;
5771
+ grid-template-rows: 1fr;
5731
5772
  min-width: 0;
5732
5773
  color: var(--pimolu-muted-foreground);
5733
5774
  font-size: 0.875rem;
5734
5775
  line-height: 1.6;
5735
5776
  }
5777
+ .pimolu-accordion__content[hidden] {
5778
+ display: none;
5779
+ }
5780
+ .pimolu-accordion__content-clip {
5781
+ min-height: 0;
5782
+ overflow: hidden;
5783
+ }
5736
5784
  .pimolu-accordion__content[data-state=open] {
5737
- animation: pimolu-accordion-in 160ms ease-out;
5785
+ animation: pimolu-accordion-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
5786
+ }
5787
+ .pimolu-accordion__content[hidden][data-state=closing] {
5788
+ display: grid;
5789
+ animation: pimolu-accordion-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
5790
+ }
5791
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__content {
5792
+ animation: none;
5793
+ }
5794
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__chevron {
5795
+ transition: none;
5738
5796
  }
5739
5797
  .pimolu-accordion__content-inner {
5740
5798
  padding: 0 0 16px;
@@ -5748,19 +5806,32 @@
5748
5806
  }
5749
5807
  @keyframes pimolu-accordion-in {
5750
5808
  from {
5809
+ grid-template-rows: 0fr;
5751
5810
  opacity: 0;
5752
5811
  transform: translateY(-3px);
5753
5812
  }
5754
5813
  to {
5814
+ grid-template-rows: 1fr;
5755
5815
  opacity: 1;
5756
5816
  transform: translateY(0);
5757
5817
  }
5758
5818
  }
5819
+ @keyframes pimolu-accordion-out {
5820
+ from {
5821
+ grid-template-rows: 1fr;
5822
+ opacity: 1;
5823
+ }
5824
+ to {
5825
+ grid-template-rows: 0fr;
5826
+ opacity: 0;
5827
+ }
5828
+ }
5759
5829
  @media (prefers-reduced-motion: reduce) {
5760
5830
  .pimolu-accordion__chevron {
5761
5831
  transition: none;
5762
5832
  }
5763
- .pimolu-accordion__content[data-state=open] {
5833
+ .pimolu-accordion__content[data-state=open],
5834
+ .pimolu-accordion__content[hidden][data-state=closing] {
5764
5835
  animation: none;
5765
5836
  }
5766
5837
  }
@@ -6316,6 +6387,76 @@
6316
6387
  .pimolu-navbar--transparent {
6317
6388
  background: transparent;
6318
6389
  }
6390
+ .pimolu-navbar__menu {
6391
+ display: contents;
6392
+ }
6393
+ @container pimolu-navbar (max-width: 700px) {
6394
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__content,
6395
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
6396
+ animation: pimolu-navbar-reveal 180ms cubic-bezier(0.16, 1, 0.3, 1);
6397
+ }
6398
+ }
6399
+ @keyframes pimolu-navbar-reveal {
6400
+ from {
6401
+ opacity: 0;
6402
+ transform: translateY(-4px);
6403
+ }
6404
+ to {
6405
+ opacity: 1;
6406
+ transform: translateY(0);
6407
+ }
6408
+ }
6409
+ .pimolu-navbar__menu-panel {
6410
+ display: flex;
6411
+ flex-direction: column;
6412
+ gap: var(--pimolu-spacing-4, 16px);
6413
+ padding-top: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-top));
6414
+ padding-bottom: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-bottom));
6415
+ }
6416
+ .pimolu-navbar__menu-panel .pimolu-navbar__content {
6417
+ display: flex;
6418
+ flex-direction: column;
6419
+ align-items: stretch;
6420
+ gap: var(--pimolu-spacing-1, 4px);
6421
+ width: 100%;
6422
+ order: initial;
6423
+ overflow: visible;
6424
+ }
6425
+ .pimolu-navbar__menu-panel .pimolu-navbar__item {
6426
+ width: 100%;
6427
+ min-height: 44px;
6428
+ white-space: normal;
6429
+ }
6430
+ .pimolu-navbar__menu-panel .pimolu-navbar__actions {
6431
+ display: flex;
6432
+ width: 100%;
6433
+ margin-inline-start: 0;
6434
+ padding-block-start: var(--pimolu-spacing-4, 16px);
6435
+ border-block-start: 1px solid var(--pimolu-border);
6436
+ }
6437
+ .pimolu-navbar__menu-panel .pimolu-drawer__header {
6438
+ padding-inline-end: 48px;
6439
+ }
6440
+ .pimolu-navbar__menu-panel .pimolu-drawer__close {
6441
+ z-index: 2;
6442
+ width: 44px;
6443
+ height: 44px;
6444
+ color: var(--pimolu-foreground);
6445
+ border: 1px solid var(--pimolu-border);
6446
+ background: var(--pimolu-muted);
6447
+ }
6448
+ .pimolu-drawer__content.pimolu-navbar__menu-panel--full {
6449
+ inset: 0;
6450
+ width: 100%;
6451
+ height: 100%;
6452
+ border-radius: 0;
6453
+ }
6454
+ .pimolu-navbar__menu-layer--instant,
6455
+ .pimolu-navbar__menu-layer--instant .pimolu-drawer__overlay,
6456
+ .pimolu-navbar__menu-layer--instant.pimolu-drawer__content {
6457
+ animation: none !important;
6458
+ transition: none !important;
6459
+ }
6319
6460
  .pimolu-navbar--floating {
6320
6461
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
6321
6462
  border-radius: var(--pimolu-radius-lg);
@@ -6592,6 +6733,14 @@
6592
6733
  color: Highlight;
6593
6734
  }
6594
6735
  }
6736
+ .pimolu-sidebar {
6737
+ transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), padding 220ms ease-out;
6738
+ }
6739
+ @media (prefers-reduced-motion: reduce) {
6740
+ .pimolu-sidebar {
6741
+ transition: none;
6742
+ }
6743
+ }
6595
6744
  }
6596
6745
 
6597
6746
  /* src/navigation-menu.css */
@@ -14028,12 +14177,23 @@
14028
14177
  justify-self: start;
14029
14178
  }
14030
14179
  .pimolu-form__error {
14180
+ animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
14031
14181
  margin: 0;
14032
14182
  color: var(--pimolu-danger, #dc2626);
14033
14183
  font-size: 0.8125rem;
14034
14184
  line-height: 1.4;
14035
14185
  overflow-wrap: anywhere;
14036
14186
  }
14187
+ @keyframes pimolu-form-feedback-in {
14188
+ from {
14189
+ opacity: 0;
14190
+ transform: translateY(-3px);
14191
+ }
14192
+ to {
14193
+ opacity: 1;
14194
+ transform: translateY(0);
14195
+ }
14196
+ }
14037
14197
  @media (forced-colors: active) {
14038
14198
  .pimolu-form__error {
14039
14199
  color: LinkText;
@@ -16828,6 +16988,43 @@
16828
16988
  }
16829
16989
  }
16830
16990
 
16991
+ /* src/motion.css */
16992
+ @layer pimolu {
16993
+ :root {
16994
+ --pimolu-interaction-duration: 150ms;
16995
+ --pimolu-interaction-easing: ease-out;
16996
+ }
16997
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
16998
+ transition:
16999
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
17000
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
17001
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
17002
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
17003
+ }
17004
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
17005
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
17006
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
17007
+ animation: none !important;
17008
+ transition: none !important;
17009
+ scroll-behavior: auto !important;
17010
+ }
17011
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
17012
+ display: none !important;
17013
+ }
17014
+ @media (prefers-reduced-motion: reduce) {
17015
+ :where([class^=pimolu-], [class*=" pimolu-"]),
17016
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
17017
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
17018
+ animation: none !important;
17019
+ transition: none !important;
17020
+ scroll-behavior: auto !important;
17021
+ }
17022
+ .pimolu-accordion__content[hidden] {
17023
+ display: none !important;
17024
+ }
17025
+ }
17026
+ }
17027
+
16831
17028
  /* src/toolbar.css */
16832
17029
  @layer pimolu {
16833
17030
  .pimolu-toolbar {