@ory/elements-react 1.0.0-next.25 → 1.0.0-next.28
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/.storybook/global.css +7 -0
- package/.storybook/main.ts +50 -0
- package/.storybook/preview-head.html +15 -0
- package/.storybook/preview.tsx +68 -0
- package/.storybook/public/InterVariable.woff2 +0 -0
- package/.storybook/public/inter.css +8 -0
- package/.stub-responses/login/1fa/all-methods/initial-form.json +247 -0
- package/.stub-responses/login/1fa/all-methods/missing-email.json +265 -0
- package/.stub-responses/login/1fa/all-methods/wrong-credentials.json +254 -0
- package/.stub-responses/login/1fa/code/code-input.json +135 -0
- package/.stub-responses/login/1fa/code/initial-form.json +173 -0
- package/.stub-responses/login/1fa/code/invalid-account.json +182 -0
- package/.stub-responses/login/1fa/code/missing-email.json +182 -0
- package/.stub-responses/login/1fa/code/wrong-credentials.json +124 -0
- package/.stub-responses/login/1fa/none/initial-form.json +33 -0
- package/.stub-responses/login/1fa/oidc/initial-form.json +279 -0
- package/.stub-responses/login/1fa/passkey/initial-form.json +122 -0
- package/.stub-responses/login/1fa/password/initial-form.json +154 -0
- package/.stub-responses/login/1fa/password/missing-email.json +172 -0
- package/.stub-responses/login/1fa/password/wrong-credentials.json +163 -0
- package/.stub-responses/login/1fa/webauthn/initial-form.json +76 -0
- package/.stub-responses/login/1fa/webauthn/invalid-account.json +83 -0
- package/.stub-responses/login/1fa/webauthn/show-trigger.json +105 -0
- package/.stub-responses/recovery/disabled/initial-form.json +9 -0
- package/.stub-responses/recovery/none/initial-form.json +9 -0
- package/.stub-responses/registration/one-step/all-methods/initial-form.json +334 -0
- package/.stub-responses/registration/one-step/all-methods/missing-fields.json +343 -0
- package/.stub-responses/registration/one-step/disabled/initial-form.json +10 -0
- package/.stub-responses/registration/one-step/none/initial-form.json +14 -0
- package/.stub-responses/registration/one-step/oidc/initial-form.json +338 -0
- package/.stub-responses/registration/one-step/passkey/initial-form.json +177 -0
- package/.stub-responses/registration/one-step/password/initial-form.json +154 -0
- package/.stub-responses/registration/one-step/password/missing-fields.json +172 -0
- package/.stub-responses/registration/one-step/password/second-step.json +164 -0
- package/.stub-responses/registration/one-step/webauthn/initial-form.json +185 -0
- package/.stub-responses/registration/two-step/all-methods/enter-password.json +242 -0
- package/.stub-responses/registration/two-step/all-methods/initial-form.json +180 -0
- package/.stub-responses/registration/two-step/all-methods/missing-fields.json +189 -0
- package/.stub-responses/registration/two-step/all-methods/password-validation-error.json +244 -0
- package/.stub-responses/registration/two-step/password/enter-password.json +108 -0
- package/.stub-responses/registration/two-step/password/initial-form.json +134 -0
- package/.stub-responses/registration/two-step/password/missing-fields.json +143 -0
- package/.stub-responses/registration/two-step/password/password-validation-error.json +110 -0
- package/.stub-responses/settings/all-methods/change-password.json +381 -0
- package/.stub-responses/settings/all-methods/change-trait.json +377 -0
- package/.stub-responses/settings/all-methods/initial-form.json +368 -0
- package/.stub-responses/settings/oidc/with-provider.json +230 -0
- package/.stub-responses/settings/passkey/initial-form.json +256 -0
- package/.stub-responses/settings/webauthn/initial-form.json +263 -0
- package/.stub-responses/verification/disabled/initial-form.json +9 -0
- package/.stub-responses/verification/none/initial-form.json +9 -0
- package/CHANGELOG.md +40 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2105 -2053
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2105 -2053
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +259 -106
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.js +29 -14
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +29 -14
- package/dist/theme/default/index.mjs.map +1 -1
- package/dist/theme/default/tailwind/defaults.d.mts +737 -0
- package/dist/theme/default/tailwind/defaults.d.ts +737 -0
- package/dist/theme/default/tailwind/defaults.js +219 -0
- package/dist/theme/default/tailwind/defaults.js.map +1 -0
- package/dist/theme/default/tailwind/defaults.mjs +196 -0
- package/dist/theme/default/tailwind/defaults.mjs.map +1 -0
- package/package.json +7 -2
- package/stories/components/login/1fa/all.stories.ts +46 -0
- package/stories/components/login/1fa/code.stories.ts +64 -0
- package/stories/components/login/1fa/custom.stories.tsx +72 -0
- package/stories/components/login/1fa/none.stories.tsx +28 -0
- package/stories/components/login/1fa/oidc.stories.tsx +143 -0
- package/stories/components/login/1fa/passkey.stories.ts +28 -0
- package/stories/components/login/1fa/password.stories.ts +46 -0
- package/stories/components/login/1fa/webauthn.stories.ts +46 -0
- package/stories/components/registration/one-step/all-methods.stories.ts +37 -0
- package/stories/components/registration/one-step/password.stories.ts +37 -0
- package/stories/components/registration/one-step/webauthn.stories.ts +28 -0
- package/stories/components/registration/two-step/all-methods.stories.ts +55 -0
- package/stories/components/registration/two-step/password.stories.ts +55 -0
- package/stories/components/settings/all.stories.ts +46 -0
- package/stories/components/settings/oidc.stories.ts +28 -0
- package/stories/components/settings/passkey.stories.ts +28 -0
- package/stories/components/settings/webauthn.stories.ts +28 -0
- package/stories/pages/error.tsx +29 -0
- package/stories/utils.ts +20 -0
- package/storybook-static/InterVariable.woff2 +0 -0
- package/storybook-static/assets/Color-ERTF36HU-BdkKyVuV.js +1 -0
- package/storybook-static/assets/DocsRenderer-CFRXHY34-YqKt61zP.js +595 -0
- package/storybook-static/assets/all-methods.stories-B-rqPBX2.js +11 -0
- package/storybook-static/assets/all-methods.stories-CmMlhzsx.js +21 -0
- package/storybook-static/assets/all.stories-CtQ0yCQi.js +16 -0
- package/storybook-static/assets/all.stories-DgIVCzcZ.js +16 -0
- package/storybook-static/assets/chunk-H6MOWX77-DTQOW814.js +1 -0
- package/storybook-static/assets/code.stories-BbEryDcA.js +26 -0
- package/storybook-static/assets/custom.stories-DH2zHar9.js +6 -0
- package/storybook-static/assets/entry-preview-CcFGVifh.js +10 -0
- package/storybook-static/assets/entry-preview-docs-CyY-8bLe.js +54 -0
- package/storybook-static/assets/iframe-C5GAfuxh.js +2 -0
- package/storybook-static/assets/index-BVoBHvaS.js +8 -0
- package/storybook-static/assets/index-CfOt2XX2.js +24 -0
- package/storybook-static/assets/index-DPRSEdy-.js +1 -0
- package/storybook-static/assets/index-DrFu-skq.js +6 -0
- package/storybook-static/assets/index-FeUjBnvO.js +1 -0
- package/storybook-static/assets/index-uubelm5h.js +9 -0
- package/storybook-static/assets/initial-form-DWp_1F-f.js +1 -0
- package/storybook-static/assets/jsx-runtime-QvZ8i92b.js +9 -0
- package/storybook-static/assets/none.stories-TAeRhzd5.js +6 -0
- package/storybook-static/assets/oidc.stories-CniWBy7t.js +58 -0
- package/storybook-static/assets/oidc.stories-jhWzAyoQ.js +6 -0
- package/storybook-static/assets/passkey.stories-CBtjoVSN.js +6 -0
- package/storybook-static/assets/passkey.stories-CQU2Xw_t.js +6 -0
- package/storybook-static/assets/password.stories-0s6cDl0o.js +11 -0
- package/storybook-static/assets/password.stories-B2Wtckz_.js +16 -0
- package/storybook-static/assets/password.stories-DX0gkWjH.js +21 -0
- package/storybook-static/assets/preview-BBWR9nbA.js +1 -0
- package/storybook-static/assets/preview-BPAmP-pY.js +2 -0
- package/storybook-static/assets/preview-BWzBA1C2.js +396 -0
- package/storybook-static/assets/preview-BXtF2ySE.js +234 -0
- package/storybook-static/assets/preview-Cur_8nCX.css +1 -0
- package/storybook-static/assets/preview-D77C14du.js +34 -0
- package/storybook-static/assets/preview-DCjDUH0w.js +27 -0
- package/storybook-static/assets/preview-DFmD0pui.js +1 -0
- package/storybook-static/assets/preview-DGUiP6tS.js +7 -0
- package/storybook-static/assets/preview-aVwhiz9X.js +1 -0
- package/storybook-static/assets/react-18-CtsMCmcS.js +1 -0
- package/storybook-static/assets/settings-BqEFC2-V.css +1 -0
- package/storybook-static/assets/settings-Bx4osEmB.js +2304 -0
- package/storybook-static/assets/webauthn.stories-BzodmV0c.js +6 -0
- package/storybook-static/assets/webauthn.stories-DglGm7Ys.js +6 -0
- package/storybook-static/assets/webauthn.stories-G9E76Wjj.js +16 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +654 -0
- package/storybook-static/index.html +173 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/inter.css +8 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/preview-stats.json +2344 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +394 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js +211 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +1006 -0
- package/storybook-static/sb-manager/globals-runtime.js +54400 -0
- package/storybook-static/sb-manager/globals.js +48 -0
- package/storybook-static/sb-manager/runtime.js +12089 -0
- package/storybook-static/sb-preview/globals.js +33 -0
- package/storybook-static/sb-preview/runtime.js +9498 -0
- package/tailwind/defaults.ts +34 -0
- package/tailwind/generated/README.md +2 -0
- package/tailwind/generated/default-variables.css +216 -0
- package/tailwind/generated/variables-processed.json +161 -0
- package/tsconfig.json +2 -3
- package/tsconfig.runtime.json +4 -0
- package/tsconfig.test.json +0 -9
- package/variables-processed.json +0 -391
|
@@ -27,7 +27,7 @@ var ory_badge_vertical_default = SvgOryBadgeVertical;
|
|
|
27
27
|
// src/theme/default/components/card/badge.tsx
|
|
28
28
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
29
29
|
function Badge() {
|
|
30
|
-
return /* @__PURE__ */ jsxs3("div", { className: "absolute bg-ory-background-default p-2 font-bold max-sm:bottom-0 max-sm:left-8 max-sm:translate-y-full max-sm:rounded-b-
|
|
30
|
+
return /* @__PURE__ */ jsxs3("div", { className: "absolute bg-ory-background-default p-2 font-bold max-sm:bottom-0 max-sm:left-8 max-sm:translate-y-full max-sm:rounded-b-branding sm:right-0 sm:top-8 sm:translate-x-full sm:rounded-r-branding border-ory-border-default border max-sm:py-[7px] sm:pl-[7px]", children: [
|
|
31
31
|
/* @__PURE__ */ jsx3(ory_badge_horizontal_default, { width: 22, height: 8, className: "sm:hidden" }),
|
|
32
32
|
/* @__PURE__ */ jsx3(ory_badge_vertical_default, { width: 8, height: 22, className: "max-sm:hidden" })
|
|
33
33
|
] });
|
|
@@ -51,6 +51,9 @@ function restartFlowUrl(flow, fallback) {
|
|
|
51
51
|
function initFlowUrl(sdkUrl, flowType, flow) {
|
|
52
52
|
const result = `${sdkUrl}/self-service/${flowType}/browser`;
|
|
53
53
|
const qs = new URLSearchParams();
|
|
54
|
+
if (flow.oauth2_login_challenge) {
|
|
55
|
+
qs.set("login_challenge", flow.oauth2_login_challenge);
|
|
56
|
+
}
|
|
54
57
|
if (flow.return_to) {
|
|
55
58
|
qs.set("return_to", flow.return_to);
|
|
56
59
|
} else if (typeof window !== "undefined") {
|
|
@@ -425,7 +428,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
425
428
|
return /* @__PURE__ */ jsx6(
|
|
426
429
|
"a",
|
|
427
430
|
{
|
|
428
|
-
className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-
|
|
431
|
+
className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-identifier border px-[11px] py-[5px] transition-colors border-button-identifier-border-border-default bg-button-identifier-background-default hover:border-button-identifier-border-border-hover hover:bg-button-identifier-background-hover",
|
|
429
432
|
...attributes,
|
|
430
433
|
href: initFlowUrl2,
|
|
431
434
|
title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.attributes.value}`,
|
|
@@ -644,7 +647,7 @@ import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
|
644
647
|
var SvgLinkedin = (props) => {
|
|
645
648
|
var _a, _b;
|
|
646
649
|
return /* @__PURE__ */ jsxs13("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
|
|
647
|
-
/* @__PURE__ */ jsx19("rect", { x: 2, y: 2, fill: "#1275B1", rx: 14 }),
|
|
650
|
+
/* @__PURE__ */ jsx19("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
|
|
648
651
|
/* @__PURE__ */ jsx19("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
|
|
649
652
|
] });
|
|
650
653
|
};
|
|
@@ -796,7 +799,7 @@ function DefaultButtonSocial({
|
|
|
796
799
|
formState: { isSubmitting }
|
|
797
800
|
} = useFormContext2();
|
|
798
801
|
const oidcNodeCount = (_a = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a : 0;
|
|
799
|
-
const Logo = logos2[attributes.value];
|
|
802
|
+
const Logo = logos2[attributes.value.split("-")[0]];
|
|
800
803
|
const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
|
|
801
804
|
const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
|
|
802
805
|
const localOnClick = () => {
|
|
@@ -811,7 +814,7 @@ function DefaultButtonSocial({
|
|
|
811
814
|
return /* @__PURE__ */ jsxs19(
|
|
812
815
|
"button",
|
|
813
816
|
{
|
|
814
|
-
className: "gap-3 border border-button-social-border-default bg-button-social-background-default hover:bg-button-social-background-hover transition-colors rounded flex items-center justify-center px-4 py-[13px] loading:bg-button-social-background-disabled loading:border-button-social-border-disabled loading:text-button-social-foreground-disabled hover:text-button-social-foreground-hover",
|
|
817
|
+
className: "gap-3 border border-button-social-border-default bg-button-social-background-default hover:bg-button-social-background-hover transition-colors rounded-buttons flex items-center justify-center px-4 py-[13px] loading:bg-button-social-background-disabled loading:border-button-social-border-disabled loading:text-button-social-foreground-disabled hover:text-button-social-foreground-hover",
|
|
815
818
|
value: attributes.value,
|
|
816
819
|
type: "submit",
|
|
817
820
|
name: "provider",
|
|
@@ -821,7 +824,7 @@ function DefaultButtonSocial({
|
|
|
821
824
|
"data-loading": clicked,
|
|
822
825
|
disabled: isSubmitting,
|
|
823
826
|
children: [
|
|
824
|
-
/* @__PURE__ */ jsx25("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ jsx25(Logo, { size: 20 }) : /* @__PURE__ */ jsx25("span", { className: "flex aspect-square items-center justify-center rounded-
|
|
827
|
+
/* @__PURE__ */ jsx25("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ jsx25(Logo, { size: 20 }) : /* @__PURE__ */ jsx25("span", { className: "flex aspect-square items-center justify-center rounded-[999px] border text-xs", children: provider.slice(0, 2) }) : /* @__PURE__ */ jsx25(Spinner, { className: "size-5" }) }),
|
|
825
828
|
showLabel && node.meta.label ? /* @__PURE__ */ jsx25("span", { className: "grow text-left font-medium leading-none text-button-social-foreground-default", children: uiTextToFormattedMessage(node.meta.label, intl) }) : null
|
|
826
829
|
]
|
|
827
830
|
}
|
|
@@ -993,7 +996,7 @@ import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
|
993
996
|
import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
994
997
|
var buttonStyles = cva(
|
|
995
998
|
[
|
|
996
|
-
"relative flex justify-center gap-3 overflow-hidden rounded leading-none ring-1 ring-inset font-medium",
|
|
999
|
+
"relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
|
|
997
1000
|
"disabled:cursor-not-allowed loading:cursor-wait loading:before:pointer-events-none",
|
|
998
1001
|
"transition-colors duration-100 ease-linear",
|
|
999
1002
|
"p-4 max-w-[488px]"
|
|
@@ -1124,6 +1127,14 @@ var uiTextToFormattedMessage4 = ({ id, context = {}, text }, intl) => {
|
|
|
1124
1127
|
).toFixed(0)
|
|
1125
1128
|
};
|
|
1126
1129
|
}
|
|
1130
|
+
} else if (key === "property") {
|
|
1131
|
+
return {
|
|
1132
|
+
...accumulator,
|
|
1133
|
+
[key]: intl.formatMessage({
|
|
1134
|
+
id: `property.${value}`,
|
|
1135
|
+
defaultMessage: value
|
|
1136
|
+
})
|
|
1137
|
+
};
|
|
1127
1138
|
}
|
|
1128
1139
|
return {
|
|
1129
1140
|
...accumulator,
|
|
@@ -1550,7 +1561,7 @@ var DefaultFormSectionContent = ({
|
|
|
1550
1561
|
description,
|
|
1551
1562
|
children
|
|
1552
1563
|
}) => {
|
|
1553
|
-
return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-8 rounded-t-
|
|
1564
|
+
return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
|
|
1554
1565
|
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-2", children: [
|
|
1555
1566
|
/* @__PURE__ */ jsx43("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
|
|
1556
1567
|
/* @__PURE__ */ jsx43("span", { className: "text-interface-foreground-default-secondary", children: description })
|
|
@@ -1566,7 +1577,7 @@ var DefaultFormSectionFooter = ({
|
|
|
1566
1577
|
"div",
|
|
1567
1578
|
{
|
|
1568
1579
|
className: cn(
|
|
1569
|
-
"flex min-h-[72px] items-center justify-between gap-2 rounded-b-
|
|
1580
|
+
"flex min-h-[72px] items-center justify-between gap-2 rounded-b-cards border border-interface-border-default-primary bg-interface-background-default-secondary px-6 py-4 text-interface-foreground-default-tertiary"
|
|
1570
1581
|
),
|
|
1571
1582
|
children: [
|
|
1572
1583
|
/* @__PURE__ */ jsx43("span", { children: text }),
|
|
@@ -1754,7 +1765,7 @@ var UserAvatar = forwardRef4(
|
|
|
1754
1765
|
"button",
|
|
1755
1766
|
{
|
|
1756
1767
|
ref,
|
|
1757
|
-
className: "relative flex size-10 items-center justify-center overflow-hidden rounded-
|
|
1768
|
+
className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
|
|
1758
1769
|
...rest,
|
|
1759
1770
|
children: /* @__PURE__ */ jsx49("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx49(
|
|
1760
1771
|
"img",
|
|
@@ -1817,12 +1828,16 @@ import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
|
1817
1828
|
var DefaultPageHeader = (_props) => {
|
|
1818
1829
|
const { Card } = useComponents3();
|
|
1819
1830
|
const { session } = useSession();
|
|
1820
|
-
return /* @__PURE__ */ jsx51("div", { className: "mt-16 flex w-full max-w-[896px] flex-col gap-3", children: /* @__PURE__ */ jsx51("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
|
|
1831
|
+
return /* @__PURE__ */ jsx51("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ jsx51("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
|
|
1821
1832
|
/* @__PURE__ */ jsx51("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ jsx51(Card.Logo, {}) }),
|
|
1822
1833
|
/* @__PURE__ */ jsx51(UserMenu, { session })
|
|
1823
1834
|
] }) }) });
|
|
1824
1835
|
};
|
|
1825
1836
|
|
|
1837
|
+
// src/theme/default/components/settings/settings-oidc.tsx
|
|
1838
|
+
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
1839
|
+
import { useFormContext as useFormContext7 } from "react-hook-form";
|
|
1840
|
+
|
|
1826
1841
|
// src/theme/default/assets/icons/trash.svg
|
|
1827
1842
|
import * as React25 from "react";
|
|
1828
1843
|
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
@@ -1833,8 +1848,6 @@ var SvgTrash = (props) => {
|
|
|
1833
1848
|
var trash_default = SvgTrash;
|
|
1834
1849
|
|
|
1835
1850
|
// src/theme/default/components/settings/settings-oidc.tsx
|
|
1836
|
-
import { useFormContext as useFormContext7 } from "react-hook-form";
|
|
1837
|
-
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
1838
1851
|
import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
1839
1852
|
function DefaultSettingsOidc({
|
|
1840
1853
|
linkButtons,
|
|
@@ -1875,8 +1888,10 @@ function UnlinkRow({ button }) {
|
|
|
1875
1888
|
const provider = (_b = extractProvider((_a = button.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
|
|
1876
1889
|
const Logo = attrs.value in provider_logos_default ? provider_logos_default[attrs.value] : provider_logos_default.generic;
|
|
1877
1890
|
const localOnClick = () => {
|
|
1878
|
-
setClicked(true);
|
|
1879
1891
|
button.onClick();
|
|
1892
|
+
setTimeout(() => {
|
|
1893
|
+
setClicked(true);
|
|
1894
|
+
}, 100);
|
|
1880
1895
|
};
|
|
1881
1896
|
useEffect4(() => {
|
|
1882
1897
|
if (!isSubmitting) {
|