cauthy-auth 0.34.0 → 0.35.1
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 +11 -3
- package/dist/react.d.mts +20 -8
- package/dist/react.d.ts +20 -8
- package/dist/react.js +135 -42
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +136 -43
- package/dist/react.mjs.map +1 -1
- package/dist/styles.css +45 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -183,6 +183,41 @@
|
|
|
183
183
|
cursor: default;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
+
/*
|
|
187
|
+
* Under way: the pressed button keeps its label with a spinner before it, in
|
|
188
|
+
* the button's own colour; a form still opening shows the spinner alone. An
|
|
189
|
+
* icon and never words: the application may be in any language. Without
|
|
190
|
+
* motion, the ring stays still and pulses nothing: it only shows.
|
|
191
|
+
*/
|
|
192
|
+
:where([data-cauthy] .cauthy-spinner) {
|
|
193
|
+
display: inline-block;
|
|
194
|
+
flex: none;
|
|
195
|
+
width: 1em;
|
|
196
|
+
height: 1em;
|
|
197
|
+
vertical-align: -0.125em;
|
|
198
|
+
border: 2px solid currentColor;
|
|
199
|
+
border-right-color: transparent;
|
|
200
|
+
border-radius: 50%;
|
|
201
|
+
animation: cauthy-spin 0.7s linear infinite;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:where([data-cauthy] .cauthy-button[aria-busy="true"]),
|
|
205
|
+
:where([data-cauthy] .cauthy-providerButton[aria-busy="true"]) {
|
|
206
|
+
cursor: progress;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@keyframes cauthy-spin {
|
|
210
|
+
to { transform: rotate(360deg); }
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@media (prefers-reduced-motion: reduce) {
|
|
214
|
+
:where([data-cauthy] .cauthy-spinner) {
|
|
215
|
+
animation: none;
|
|
216
|
+
border-right-color: currentColor;
|
|
217
|
+
border-style: dotted;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
186
221
|
:where(.cauthy-section) > :where(.cauthy-button, .cauthy-providerButton) {
|
|
187
222
|
width: auto;
|
|
188
223
|
align-self: flex-start;
|
|
@@ -222,6 +257,16 @@
|
|
|
222
257
|
color: var(--cauthy-text-muted);
|
|
223
258
|
}
|
|
224
259
|
|
|
260
|
+
/* A form still opening: its spinner alone, in the middle. */
|
|
261
|
+
:where([data-cauthy] .cauthy-pending) {
|
|
262
|
+
display: flex;
|
|
263
|
+
align-items: center;
|
|
264
|
+
justify-content: center;
|
|
265
|
+
margin: 0;
|
|
266
|
+
padding: 16px 0;
|
|
267
|
+
color: var(--cauthy-text-muted);
|
|
268
|
+
}
|
|
269
|
+
|
|
225
270
|
:where([data-cauthy] [role="status"].cauthy-notice) {
|
|
226
271
|
padding: 8px 12px;
|
|
227
272
|
color: var(--cauthy-success);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cauthy-auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.1",
|
|
4
4
|
"description": "Sign in with Cauthy: one route to mount, getSession on the server, useSession in the browser. No database, no screens to build.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|