@alfadocs/ui-kit 0.0.16 → 0.0.18

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.
@@ -1,15 +1,12 @@
1
- import { type ButtonHTMLAttributes, type ReactNode } from 'react';
2
- import { type VariantProps } from 'class-variance-authority';
3
- declare const signInVariants: (props?: ({
4
- surface?: "light" | "dark" | "auto" | null | undefined;
5
- size?: "sm" | "md" | "lg" | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- export interface SignInWithAlfadocsButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof signInVariants> {
1
+ import { type ReactNode } from 'react';
2
+ import { type ButtonProps } from '../button';
3
+ type AllowedIntent = Exclude<NonNullable<ButtonProps['intent']>, 'destructive'>;
4
+ export interface SignInWithAlfadocsButtonProps extends Omit<ButtonProps, 'startIcon' | 'children' | 'intent'> {
8
5
  /**
9
- * Show the loading spinner and disable the button. Mirrors Button's
10
- * loading contract so the two can be swapped without surprise.
6
+ * Visual intent. Inherits the Button intent set with `destructive`
7
+ * omitted (no "destroy account" sign-in flow exists).
11
8
  */
12
- loading?: boolean;
9
+ intent?: AllowedIntent;
13
10
  /**
14
11
  * Override the visible label. When omitted, the component reads
15
12
  * `ui.auth.continueWithAlfadocs` (English fallback: "Continue with
@@ -1 +1 @@
1
- {"version":3,"file":"sign-in-with-alfadocs-button.d.ts","sourceRoot":"","sources":["../../../src/components/sign-in-with-alfadocs-button/sign-in-with-alfadocs-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AASlE,QAAA,MAAM,cAAc;;;8EAgDnB,CAAC;AAEF,MAAM,WAAW,6BACf,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,eAAO,MAAM,wBAAwB,6HAyCpC,CAAC"}
1
+ {"version":3,"file":"sign-in-with-alfadocs-button.d.ts","sourceRoot":"","sources":["../../../src/components/sign-in-with-alfadocs-button/sign-in-with-alfadocs-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAarD,KAAK,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;AAShF,MAAM,WAAW,6BACf,SAAQ,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC9D;;;OAGG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,eAAO,MAAM,wBAAwB,6HAoBnC,CAAC"}
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { b as S } from "./_chunks/button.agent-BuGZBktn.js";
6
6
  import { B as g } from "./_chunks/button-group-CI7LFxt3.js";
7
7
  import { F as C } from "./_chunks/floating-action-button-BM9ib-Wf.js";
8
8
  import { I as A } from "./_chunks/icon-button-group-tERESY-n.js";
9
- import { S as I } from "./_chunks/sign-in-with-alfadocs-button-Gu7Qk2gq.js";
9
+ import { S as I } from "./_chunks/sign-in-with-alfadocs-button-BsV5vkHN.js";
10
10
  import { SafeHtml as R, sanitiseHtml as E } from "./safe-html/index.js";
11
11
  import { A as N, a as F, b as k } from "./_chunks/autocomplete.agent-kb0nmr6F.js";
12
12
  import { C as M, a as D, u as V } from "./_chunks/checkbox-CfiZ0FZc.js";
@@ -44,7 +44,7 @@ import { F as De, a as Ve, h as ve } from "./_chunks/flag-ChP784EM.js";
44
44
  import { K as Oe, k as _e } from "./_chunks/kbd-0iPlQjgC.js";
45
45
  import { K as He } from "./_chunks/key-value-pair--Je59tAF.js";
46
46
  import { L as We } from "./_chunks/list-n8vI8Yvn.js";
47
- import { L as Ke } from "./_chunks/logo-BlIdYz3n.js";
47
+ import { L as Ke } from "./_chunks/logo-UNWYb9p7.js";
48
48
  import { S as je } from "./_chunks/skeleton-vbTWUntB.js";
49
49
  import { S as qe, s as Je, u as Qe } from "./_chunks/sparkline.agent-BDTXzTy9.js";
50
50
  import { S as Ze } from "./_chunks/stat-CrumvZWf.js";
@@ -76,7 +76,7 @@ import { N as nt, i as mt } from "./_chunks/notification-card-CQxJporb.js";
76
76
  import { N as lt } from "./_chunks/notification-tray-CNWPuPZp.js";
77
77
  import { P as dt } from "./_chunks/popover-D1woU9mP.js";
78
78
  import { p as ct } from "./_chunks/popover.agent-C0qOx9WT.js";
79
- import { P as ut } from "./_chunks/privacy-lock-Bk5mIqMq.js";
79
+ import { P as ut } from "./_chunks/privacy-lock-C1X42Sit.js";
80
80
  import { P as Tt } from "./_chunks/progress-DL3-izuO.js";
81
81
  import { p as bt } from "./_chunks/progress.agent-CXkHURjX.js";
82
82
  import { S as Pt } from "./_chunks/sheet-D6XOx0fK.js";
@@ -117,7 +117,7 @@ import { S as gi, f as Ti, i as Ci } from "./_chunks/slot-grid-DL_Tuj0p.js";
117
117
  import { C as Ai, a as Pi, b as Ii, F as hi, c as Ri, d as Ei, P as Li, e as Ni, T as Fi, f as ki, g as Bi, h as Mi, l as Di, i as Vi, t as vi, r as yi } from "./_chunks/tooth-scheme.agent-CFKl3iQr.js";
118
118
  import { C as _i, W as wi, a as Hi, b as Gi, c as Wi, i as Ui, l as Ki, m as Yi, r as ji, w as zi } from "./_chunks/workflow-map-Uf-hHAO3.js";
119
119
  import { L as Ji, a as Qi, b as Xi, c as Zi } from "./_chunks/leo-sidebar-9A9AWBxX.js";
120
- import { P as an } from "./_chunks/patient-shell-BNrTtcbu.js";
120
+ import { P as an } from "./_chunks/patient-shell-D0RaWDMR.js";
121
121
  import { Root as rn } from "@radix-ui/react-aspect-ratio";
122
122
  export {
123
123
  t as ACCESSIBILITY_STORAGE_KEY,
@@ -1,4 +1,4 @@
1
- import { P as a } from "../../_chunks/patient-shell-BNrTtcbu.js";
1
+ import { P as a } from "../../_chunks/patient-shell-D0RaWDMR.js";
2
2
  export {
3
3
  a as PatientShell
4
4
  };