cauthy-auth 0.33.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/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/dist/svelte.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SessionStore, SessionState, SessionStoreOptions } from './client.mjs';
2
2
  export { Account, AccountSession, AuthClient, AuthError, AuthMethods, AuthResult, Passkey, PasskeyKind, SSOConnection } from './client.mjs';
3
- import { q as PublicSession } from './system-BrrJsrFW.mjs';
4
- export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-BrrJsrFW.mjs';
3
+ import { q as PublicSession } from './system-DUGV040y.mjs';
4
+ export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-DUGV040y.mjs';
5
5
  import './theme.mjs';
6
6
  import './validate-sEXG82po.mjs';
7
7
  import 'jose';
package/dist/svelte.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SessionStore, SessionState, SessionStoreOptions } from './client.js';
2
2
  export { Account, AccountSession, AuthClient, AuthError, AuthMethods, AuthResult, Passkey, PasskeyKind, SSOConnection } from './client.js';
3
- import { q as PublicSession } from './system-BvvoNs2y.js';
4
- export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-BvvoNs2y.js';
3
+ import { q as PublicSession } from './system-Bz4haPrI.js';
4
+ export { P as PermissionOf, m as Policy, R as RoleOf, s as SessionOrganization, u as SessionUser, y as can, B as definePolicy } from './system-Bz4haPrI.js';
5
5
  import './theme.js';
6
6
  import './validate-sEXG82po.js';
7
7
  import 'jose';