@gopherium/godmin 0.3.0 → 0.5.0
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.md +6 -6
- package/dist/base.css +12 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -145,15 +145,15 @@ label through a visually hidden status region, so give `label` the same
|
|
|
145
145
|
sentence you would have rendered as text.
|
|
146
146
|
|
|
147
147
|
```tsx
|
|
148
|
-
if (
|
|
149
|
-
return <
|
|
148
|
+
if (reports.isPending) {
|
|
149
|
+
return <LoadingRows label="Loading reports." rows={8} />
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
{reports.isPending ? <LoadingRows label="Loading reports." rows={8} /> : <ReportTable />}
|
|
151
|
+
return <ReportTable className="godmin-arrival" />
|
|
153
152
|
```
|
|
154
153
|
|
|
155
|
-
A ghost
|
|
156
|
-
|
|
154
|
+
A ghost fades in after a short delay, so a fast load never shows one.
|
|
155
|
+
Give the content that replaces a ghost the `godmin-arrival` class and it
|
|
156
|
+
fades in too, so the swap reads as one motion rather than a snap.
|
|
157
157
|
|
|
158
158
|
`base.css` also ships `godmin-empty`, `godmin-form`, `godmin-table` and
|
|
159
159
|
`godmin-table-scroll`. The last two go together: a table wider than a phone
|
package/dist/base.css
CHANGED
|
@@ -155,11 +155,20 @@ body {
|
|
|
155
155
|
.godmin-loading-screen,
|
|
156
156
|
.godmin-loading-rows {
|
|
157
157
|
opacity: 0;
|
|
158
|
-
animation: godmin-
|
|
159
|
-
var(--wpds-motion-easing-balanced)
|
|
158
|
+
animation: godmin-fade-in var(--wpds-motion-duration-md)
|
|
159
|
+
var(--wpds-motion-easing-balanced) 150ms forwards;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
.godmin-arrival {
|
|
163
|
+
animation: godmin-fade-in var(--wpds-motion-duration-md)
|
|
164
|
+
var(--wpds-motion-easing-balanced);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@keyframes godmin-fade-in {
|
|
168
|
+
0% {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
163
172
|
100% {
|
|
164
173
|
opacity: 1;
|
|
165
174
|
}
|
package/package.json
CHANGED