@alfadocs/ui-kit 0.0.17 → 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.
- package/dist/_chunks/{logo-BlIdYz3n.js → logo-UNWYb9p7.js} +34 -29
- package/dist/_chunks/{logo-BlIdYz3n.js.map → logo-UNWYb9p7.js.map} +1 -1
- package/dist/_chunks/{patient-shell-BNrTtcbu.js → patient-shell-D0RaWDMR.js} +2 -2
- package/dist/_chunks/{patient-shell-BNrTtcbu.js.map → patient-shell-D0RaWDMR.js.map} +1 -1
- package/dist/_chunks/{privacy-lock-Bk5mIqMq.js → privacy-lock-C1X42Sit.js} +2 -2
- package/dist/_chunks/{privacy-lock-Bk5mIqMq.js.map → privacy-lock-C1X42Sit.js.map} +1 -1
- package/dist/_chunks/sign-in-with-alfadocs-button-BsV5vkHN.js +24 -0
- package/dist/_chunks/sign-in-with-alfadocs-button-BsV5vkHN.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo/logo.d.ts +8 -0
- package/dist/components/logo/logo.d.ts.map +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/sign-in-with-alfadocs-button.d.ts +8 -1
- package/dist/components/sign-in-with-alfadocs-button/sign-in-with-alfadocs-button.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/sign-in-with-alfadocs-button-CprizH2U.js +0 -23
- package/dist/_chunks/sign-in-with-alfadocs-button-CprizH2U.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as e } from "react";
|
|
3
|
-
import { useTranslation as m } from "react-i18next";
|
|
4
|
-
import { B as c } from "./button-CXL8bA8G.js";
|
|
5
|
-
import { L as f } from "./logo-BlIdYz3n.js";
|
|
6
|
-
const u = e(({ label: o, type: r = "button", ...n }, i) => {
|
|
7
|
-
const { t: a } = m(), s = o ?? a("ui.auth.continueWithAlfadocs", "Continue with AlfaDocs");
|
|
8
|
-
return /* @__PURE__ */ t(
|
|
9
|
-
c,
|
|
10
|
-
{
|
|
11
|
-
ref: i,
|
|
12
|
-
type: r,
|
|
13
|
-
startIcon: /* @__PURE__ */ t(f, { variant: "mark", size: "sm", decorative: !0 }),
|
|
14
|
-
...n,
|
|
15
|
-
children: s
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
});
|
|
19
|
-
u.displayName = "SignInWithAlfadocsButton";
|
|
20
|
-
export {
|
|
21
|
-
u as S
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=sign-in-with-alfadocs-button-CprizH2U.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in-with-alfadocs-button-CprizH2U.js","sources":["../../src/components/sign-in-with-alfadocs-button/sign-in-with-alfadocs-button.tsx"],"sourcesContent":["import { forwardRef, type ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Button, type ButtonProps } from '../button';\nimport { Logo } from '../logo';\n\n// A provider-style button (\"Sign in with AlfaDocs\"). Wraps the Button\n// primitive so it inherits the full intent / size / loading / asChild /\n// startIcon / endIcon / forced-colors / focus-ring contract for free.\n// The only additions are: a sensible default label resolved from the\n// `ui.auth.continueWithAlfadocs` translation key, and the AlfaDocs\n// brand mark rendered as a leading icon.\n\nexport interface SignInWithAlfadocsButtonProps\n extends Omit<ButtonProps, 'startIcon' | 'children'> {\n /**\n * Override the visible label. When omitted, the component reads\n * `ui.auth.continueWithAlfadocs` (English fallback: \"Continue with\n * AlfaDocs\"). Pass a node to render e.g. \"Sign in with AlfaDocs\" or a\n * fully-translated string.\n */\n label?: ReactNode;\n}\n\nexport const SignInWithAlfadocsButton = forwardRef<\n HTMLButtonElement,\n SignInWithAlfadocsButtonProps\n>(({ label, type = 'button', ...props }, ref) => {\n const { t } = useTranslation();\n const resolvedLabel =\n label ?? t('ui.auth.continueWithAlfadocs', 'Continue with AlfaDocs');\n\n return (\n <Button\n ref={ref}\n type={type}\n startIcon={<Logo variant=\"mark\" size=\"sm\" decorative />}\n {...props}\n >\n {resolvedLabel}\n </Button>\n );\n});\n\nSignInWithAlfadocsButton.displayName = 'SignInWithAlfadocsButton';\n"],"names":["SignInWithAlfadocsButton","forwardRef","label","type","props","ref","t","useTranslation","resolvedLabel","jsx","Button","Logo"],"mappings":";;;;;AAuBO,MAAMA,IAA2BC,EAGtC,CAAC,EAAE,OAAAC,GAAO,MAAAC,IAAO,UAAU,GAAGC,EAAA,GAASC,MAAQ;AAC/C,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,IACJN,KAASI,EAAE,gCAAgC,wBAAwB;AAErE,SACE,gBAAAG;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAL;AAAA,MACA,MAAAF;AAAA,MACA,6BAAYQ,GAAA,EAAK,SAAQ,QAAO,MAAK,MAAK,YAAU,IAAC;AAAA,MACpD,GAAGP;AAAA,MAEH,UAAAI;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;AAEDR,EAAyB,cAAc;"}
|