You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/@headlessui-react/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Added
11
11
12
12
- Add ability to render multiple `<Dialog />` components at once (without nesting them) ([#3242](https://github.com/tailwindlabs/headlessui/pull/3242))
13
-
- Add CSS based transitions using `data-*` attributes ([#3273](https://github.com/tailwindlabs/headlessui/pull/3273))
13
+
- Add CSS based transitions using `data-*` attributes ([#3273](https://github.com/tailwindlabs/headlessui/pull/3273), [#3285](https://github.com/tailwindlabs/headlessui/pull/3285))
Copy file name to clipboardExpand all lines: packages/@headlessui-react/src/components/transition/__snapshots__/transition.test.tsx.snap
+44-44Lines changed: 44 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -5,25 +5,25 @@ exports[`Setup API nested should be possible to change the underlying DOM tag of
5
5
class="My Page"
6
6
>
7
7
<article
8
+
data-closed=""
8
9
data-enter=""
9
-
data-from=""
10
-
data-headlessui-state="from enter transition"
10
+
data-headlessui-state="closed enter transition"
11
11
data-transition=""
12
12
style=""
13
13
>
14
14
<aside
15
+
data-closed=""
15
16
data-enter=""
16
-
data-from=""
17
-
data-headlessui-state="from enter transition"
17
+
data-headlessui-state="closed enter transition"
18
18
data-transition=""
19
19
style=""
20
20
>
21
21
Sidebar
22
22
</aside>
23
23
<section
24
+
data-closed=""
24
25
data-enter=""
25
-
data-from=""
26
-
data-headlessui-state="from enter transition"
26
+
data-headlessui-state="closed enter transition"
27
27
data-transition=""
28
28
style=""
29
29
>
@@ -38,25 +38,25 @@ exports[`Setup API nested should be possible to change the underlying DOM tag of
38
38
class="My Page"
39
39
>
40
40
<div
41
+
data-closed=""
41
42
data-enter=""
42
-
data-from=""
43
-
data-headlessui-state="from enter transition"
43
+
data-headlessui-state="closed enter transition"
44
44
data-transition=""
45
45
style=""
46
46
>
47
47
<aside
48
+
data-closed=""
48
49
data-enter=""
49
-
data-from=""
50
-
data-headlessui-state="from enter transition"
50
+
data-headlessui-state="closed enter transition"
51
51
data-transition=""
52
52
style=""
53
53
>
54
54
Sidebar
55
55
</aside>
56
56
<section
57
+
data-closed=""
57
58
data-enter=""
58
-
data-from=""
59
-
data-headlessui-state="from enter transition"
59
+
data-headlessui-state="closed enter transition"
60
60
data-transition=""
61
61
style=""
62
62
>
@@ -71,25 +71,25 @@ exports[`Setup API nested should be possible to nest transition components 1`] =
71
71
class="My Page"
72
72
>
73
73
<div
74
+
data-closed=""
74
75
data-enter=""
75
-
data-from=""
76
-
data-headlessui-state="from enter transition"
76
+
data-headlessui-state="closed enter transition"
77
77
data-transition=""
78
78
style=""
79
79
>
80
80
<div
81
+
data-closed=""
81
82
data-enter=""
82
-
data-from=""
83
-
data-headlessui-state="from enter transition"
83
+
data-headlessui-state="closed enter transition"
84
84
data-transition=""
85
85
style=""
86
86
>
87
87
Sidebar
88
88
</div>
89
89
<div
90
+
data-closed=""
90
91
data-enter=""
91
-
data-from=""
92
-
data-headlessui-state="from enter transition"
92
+
data-headlessui-state="closed enter transition"
93
93
data-transition=""
94
94
style=""
95
95
>
@@ -104,23 +104,23 @@ exports[`Setup API nested should be possible to use render props on the Transiti
104
104
class="My Page"
105
105
>
106
106
<article
107
+
data-closed=""
107
108
data-enter=""
108
-
data-from=""
109
-
data-headlessui-state="from enter transition"
109
+
data-headlessui-state="closed enter transition"
110
110
data-transition=""
111
111
>
112
112
<aside
113
+
data-closed=""
113
114
data-enter=""
114
-
data-from=""
115
-
data-headlessui-state="from enter transition"
115
+
data-headlessui-state="closed enter transition"
116
116
data-transition=""
117
117
>
118
118
Sidebar
119
119
</aside>
120
120
<section
121
+
data-closed=""
121
122
data-enter=""
122
-
data-from=""
123
-
data-headlessui-state="from enter transition"
123
+
data-headlessui-state="closed enter transition"
124
124
data-transition=""
125
125
>
126
126
Content
@@ -134,24 +134,24 @@ exports[`Setup API nested should be possible to use render props on the Transiti
134
134
class="My Page"
135
135
>
136
136
<div
137
+
data-closed=""
137
138
data-enter=""
138
-
data-from=""
139
-
data-headlessui-state="from enter transition"
139
+
data-headlessui-state="closed enter transition"
140
140
data-transition=""
141
141
style=""
142
142
>
143
143
<aside
144
+
data-closed=""
144
145
data-enter=""
145
-
data-from=""
146
-
data-headlessui-state="from enter transition"
146
+
data-headlessui-state="closed enter transition"
147
147
data-transition=""
148
148
>
149
149
Sidebar
150
150
</aside>
151
151
<section
152
+
data-closed=""
152
153
data-enter=""
153
-
data-from=""
154
-
data-headlessui-state="from enter transition"
154
+
data-headlessui-state="closed enter transition"
155
155
data-transition=""
156
156
>
157
157
Content
@@ -168,9 +168,9 @@ exports[`Setup API nested should yell at us when we forgot to forward the ref on
168
168
169
169
exports[`Setup API shallow should be possible to change the underlying DOM tag 1`] =`
170
170
<span
171
+
data-closed=""
171
172
data-enter=""
172
-
data-from=""
173
-
data-headlessui-state="from enter transition"
173
+
data-headlessui-state="closed enter transition"
174
174
data-transition=""
175
175
style=""
176
176
>
@@ -180,9 +180,9 @@ exports[`Setup API shallow should be possible to change the underlying DOM tag 1
180
180
181
181
exports[`Setup API shallow should be possible to use a render prop 1`] =`
182
182
<span
183
+
data-closed=""
183
184
data-enter=""
184
-
data-from=""
185
-
data-headlessui-state="from enter transition"
185
+
data-headlessui-state="closed enter transition"
186
186
data-transition=""
187
187
>
188
188
Children
@@ -192,9 +192,9 @@ exports[`Setup API shallow should be possible to use a render prop 1`] = `
192
192
exports[`Setup API shallow should passthrough all the props (that we do not use internally) 1`] =`
193
193
<div
194
194
class="text-blue-400"
195
+
data-closed=""
195
196
data-enter=""
196
-
data-from=""
197
-
data-headlessui-state="from enter transition"
197
+
data-headlessui-state="closed enter transition"
198
198
data-transition=""
199
199
id="root"
200
200
style=""
@@ -206,9 +206,9 @@ exports[`Setup API shallow should passthrough all the props (that we do not use
206
206
exports[`Setup API shallow should passthrough all the props (that we do not use internally) even when using an \`as\` prop 1`] =`
207
207
<a
208
208
class="text-blue-400"
209
+
data-closed=""
209
210
data-enter=""
210
-
data-from=""
211
-
data-headlessui-state="from enter transition"
211
+
data-headlessui-state="closed enter transition"
212
212
data-transition=""
213
213
href="/"
214
214
style=""
@@ -219,9 +219,9 @@ exports[`Setup API shallow should passthrough all the props (that we do not use
219
219
220
220
exports[`Setup API shallow should render another component if the \`as\` prop is used and its children by default 1`] =`
221
221
<a
222
+
data-closed=""
222
223
data-enter=""
223
-
data-from=""
224
-
data-headlessui-state="from enter transition"
224
+
data-headlessui-state="closed enter transition"
225
225
data-transition=""
226
226
style=""
227
227
>
@@ -235,9 +235,9 @@ exports[`Setup API shallow should yell at us when we forget to forward the ref w
235
235
236
236
exports[`Setup API transition classes should be possible to passthrough the transition classes 1`] =`
237
237
<div
238
+
data-closed=""
238
239
data-enter=""
239
-
data-from=""
240
-
data-headlessui-state="from enter transition"
240
+
data-headlessui-state="closed enter transition"
241
241
data-transition=""
242
242
style=""
243
243
>
@@ -248,8 +248,8 @@ exports[`Setup API transition classes should be possible to passthrough the tran
248
248
exports[`Setup API transition classes should be possible to passthrough the transition classes and immediately apply the enter transitions when appear is set to true 1`] =`
0 commit comments