cauthy-auth 0.34.0 → 0.35.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 +11 -3
- package/dist/react.d.mts +22 -8
- package/dist/react.d.ts +22 -8
- package/dist/react.js +118 -42
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +118 -42
- package/dist/react.mjs.map +1 -1
- package/dist/styles.css +43 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -183,6 +183,40 @@
|
|
|
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 says "Loading…" with one.
|
|
189
|
+
* Without motion, the ring stays still and pulses nothing: it only shows.
|
|
190
|
+
*/
|
|
191
|
+
:where([data-cauthy] .cauthy-spinner) {
|
|
192
|
+
display: inline-block;
|
|
193
|
+
flex: none;
|
|
194
|
+
width: 1em;
|
|
195
|
+
height: 1em;
|
|
196
|
+
vertical-align: -0.125em;
|
|
197
|
+
border: 2px solid currentColor;
|
|
198
|
+
border-right-color: transparent;
|
|
199
|
+
border-radius: 50%;
|
|
200
|
+
animation: cauthy-spin 0.7s linear infinite;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
:where([data-cauthy] .cauthy-button[aria-busy="true"]),
|
|
204
|
+
:where([data-cauthy] .cauthy-providerButton[aria-busy="true"]) {
|
|
205
|
+
cursor: progress;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@keyframes cauthy-spin {
|
|
209
|
+
to { transform: rotate(360deg); }
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@media (prefers-reduced-motion: reduce) {
|
|
213
|
+
:where([data-cauthy] .cauthy-spinner) {
|
|
214
|
+
animation: none;
|
|
215
|
+
border-right-color: currentColor;
|
|
216
|
+
border-style: dotted;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
186
220
|
:where(.cauthy-section) > :where(.cauthy-button, .cauthy-providerButton) {
|
|
187
221
|
width: auto;
|
|
188
222
|
align-self: flex-start;
|
|
@@ -222,6 +256,15 @@
|
|
|
222
256
|
color: var(--cauthy-text-muted);
|
|
223
257
|
}
|
|
224
258
|
|
|
259
|
+
/* A form still opening: "Loading…", with its spinner. */
|
|
260
|
+
:where([data-cauthy] .cauthy-pending) {
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: center;
|
|
263
|
+
gap: 8px;
|
|
264
|
+
margin: 0;
|
|
265
|
+
color: var(--cauthy-text-muted);
|
|
266
|
+
}
|
|
267
|
+
|
|
225
268
|
:where([data-cauthy] [role="status"].cauthy-notice) {
|
|
226
269
|
padding: 8px 12px;
|
|
227
270
|
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.0",
|
|
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",
|