@celestia-island/hikari 0.55.5 → 0.55.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celestia-island/hikari",
3
- "version": "0.55.5",
3
+ "version": "0.55.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Hikari Vue 3 component library — production-grade UI components based on shittim-chest design system",
@@ -20,13 +20,19 @@ export interface AuthSubmitContext {
20
20
  * 3. `onCaptcha` (optional) — acquire a captcha verification token.
21
21
  * 4. Call `onSubmit` with the assembled `AuthSubmitContext`.
22
22
  *
23
- * While solving, the button shows its own spinner; `loading` stays
24
- * external so callers can reflect server-side submission progress.
23
+ * While solving or submitting, the button renders its loading look —
24
+ * a leading spinner beside the caller's label (chest-style; user report
25
+ * 2026-09-16: swapping the whole caption for a challenge string read as
26
+ * a different control). Hosts that want the verbose challenge caption
27
+ * can opt back in with `solvingLabel`.
25
28
  */
26
29
  export default defineComponent({
27
30
  name: "HkAuthSubmitButton",
28
31
  props: {
29
32
  label: { type: String, required: true },
33
+ /** Optional caption while the challenge is being solved; defaults to
34
+ * the regular label beside the spinner. */
35
+ solvingLabel: { type: String, default: undefined },
30
36
  loading: { type: Boolean, default: false },
31
37
  disabled: { type: Boolean, default: false },
32
38
  error: { type: String, default: undefined },
@@ -83,8 +89,8 @@ export default defineComponent({
83
89
  disabled={props.disabled || busy.value}
84
90
  onClick={() => void handleClick()}
85
91
  >
86
- {solving.value
87
- ? t("hikari::auth.solvingChallenge", "Verifying challenge…")
92
+ {solving.value && props.solvingLabel
93
+ ? props.solvingLabel
88
94
  : props.label}
89
95
  </HButton>
90
96
  {props.error && <p class="s-auth-submit-error">{props.error}</p>}
@@ -240,7 +240,10 @@
240
240
  display: flex;
241
241
  align-items: center;
242
242
  gap: var(--space-2, 4px);
243
- margin-inline-start: var(--space-8, 8px);
243
+ /* Pin to inline-end: the header is space-between, so without this the
244
+ actions cell becomes the middle child and floats to the center
245
+ (user report 2026-09-16 — the login sheet's gear landed mid-header). */
246
+ margin-inline-start: auto;
244
247
  flex-shrink: 0;
245
248
  }
246
249