@ory/elements-react 1.0.0-rc.6 → 1.1.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/DEVELOPMENT.md +22 -19
- package/dist/client/config.js +1 -1
- package/dist/client/config.js.map +1 -1
- package/dist/client/config.mjs +1 -1
- package/dist/client/config.mjs.map +1 -1
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -13
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +1445 -1283
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.d.mts +4 -4
- package/dist/theme/default/index.d.ts +4 -4
- package/dist/theme/default/index.js +164 -181
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +165 -182
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +3 -2
- package/tailwind/generated/variables-processed.json +6 -6
- package/tailwind/generated/variables.css +495 -0
- package/dist/theme/default/tailwind/defaults.d.mts +0 -737
- package/dist/theme/default/tailwind/defaults.d.ts +0 -737
- package/dist/theme/default/tailwind/defaults.js +0 -219
- package/dist/theme/default/tailwind/defaults.js.map +0 -1
- package/dist/theme/default/tailwind/defaults.mjs +0 -196
- package/dist/theme/default/tailwind/defaults.mjs.map +0 -1
- package/tailwind/defaults.ts +0 -34
|
@@ -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
|
|
30
|
+
return /* @__PURE__ */ jsxs3("div", { className: "absolute border border-ory-border-default bg-ory-background-default p-2 font-bold text-ory-foreground-default max-sm:bottom-0 max-sm:left-8 max-sm:translate-y-full max-sm:rounded-b-branding max-sm:py-[7px] sm:top-8 sm:right-0 sm:translate-x-full sm:rounded-r-branding 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
|
] });
|
|
@@ -150,7 +150,7 @@ function nodesToAuthMethodGroups(nodes, excludeAuthMethods = []) {
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
var findNode = (nodes, opt) => nodes.find((n) => {
|
|
153
|
-
return n.attributes.node_type === opt.node_type && (opt.group instanceof RegExp ? n.group.match(opt.group) : n.group === opt.group) && (opt.name && n.attributes.node_type === "input" ? opt.name instanceof RegExp ? n.attributes.name.match(opt.name) : n.attributes.name === opt.name : !opt.name);
|
|
153
|
+
return n.attributes.node_type === opt.node_type && (opt.group instanceof RegExp ? n.group.match(opt.group) : n.group === opt.group) && (opt.name && n.attributes.node_type === "input" ? opt.name instanceof RegExp ? n.attributes.name.match(opt.name) : n.attributes.name === opt.name : !opt.name) && (opt.type && n.attributes.node_type === "input" ? opt.type instanceof RegExp ? n.attributes.type.match(opt.type) : n.attributes.type === opt.type : !opt.type);
|
|
154
154
|
});
|
|
155
155
|
function isNodeVisible(node) {
|
|
156
156
|
if (isUiNodeScriptAttributes(node.attributes)) {
|
|
@@ -194,14 +194,6 @@ var OryFlowContext = createContext2(null);
|
|
|
194
194
|
// src/context/config.tsx
|
|
195
195
|
import { createContext as createContext3, useContext as useContext3, useRef } from "react";
|
|
196
196
|
|
|
197
|
-
// src/client/config.ts
|
|
198
|
-
function isProduction() {
|
|
199
|
-
var _a, _b;
|
|
200
|
-
return ["production", "prod"].indexOf(
|
|
201
|
-
(_b = (_a = process.env.VERCEL_ENV) != null ? _a : process.env.NODE_ENV) != null ? _b : ""
|
|
202
|
-
) > -1;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
197
|
// src/util/client.ts
|
|
206
198
|
import {
|
|
207
199
|
Configuration,
|
|
@@ -238,47 +230,10 @@ var defaultProject = {
|
|
|
238
230
|
locale_behavior: "force_default"
|
|
239
231
|
};
|
|
240
232
|
var OryConfigurationContext = createContext3({
|
|
241
|
-
sdk:
|
|
233
|
+
sdk: null,
|
|
234
|
+
// This is fine, because we always supply a proper default value for the SDK configuration in the provider
|
|
242
235
|
project: defaultProject
|
|
243
236
|
});
|
|
244
|
-
function computeSdkConfig(config) {
|
|
245
|
-
if ((config == null ? void 0 : config.url) && typeof config.url === "string") {
|
|
246
|
-
return {
|
|
247
|
-
url: config.url.replace(/\/$/, ""),
|
|
248
|
-
options: config.options || {}
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
return {
|
|
252
|
-
url: getSDKUrl(),
|
|
253
|
-
options: (config == null ? void 0 : config.options) || {}
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
function getSDKUrl() {
|
|
257
|
-
var _a;
|
|
258
|
-
if (typeof process !== "undefined" && process.versions && process.versions.node) {
|
|
259
|
-
if (isProduction()) {
|
|
260
|
-
const sdkUrl = (_a = process.env["NEXT_PUBLIC_ORY_SDK_URL"]) != null ? _a : process.env["ORY_SDK_URL"];
|
|
261
|
-
if (!sdkUrl) {
|
|
262
|
-
throw new Error(
|
|
263
|
-
"Unable to determine SDK URL. Please set NEXT_PUBLIC_ORY_SDK_URL and/or ORY_SDK_URL in production environments."
|
|
264
|
-
);
|
|
265
|
-
}
|
|
266
|
-
return sdkUrl.replace(/\/$/, "");
|
|
267
|
-
} else {
|
|
268
|
-
if (process.env["__NEXT_PRIVATE_ORIGIN"]) {
|
|
269
|
-
return process.env["__NEXT_PRIVATE_ORIGIN"].replace(/\/$/, "");
|
|
270
|
-
} else if (process.env["VERCEL_URL"]) {
|
|
271
|
-
return `https://${process.env["VERCEL_URL"]}`.replace(/\/$/, "");
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
if (typeof window !== "undefined") {
|
|
276
|
-
return window.location.origin;
|
|
277
|
-
}
|
|
278
|
-
throw new Error(
|
|
279
|
-
"Unable to determine SDK URL. Please set NEXT_PUBLIC_ORY_SDK_URL and/or ORY_SDK_URL or supply the sdk.url parameter in the Ory configuration."
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
237
|
|
|
283
238
|
// src/context/intl-context.tsx
|
|
284
239
|
import { useContext as useContext4 } from "react";
|
|
@@ -534,7 +489,7 @@ var en_default = {
|
|
|
534
489
|
"identities.messages.1010011": "Sign in with hardware key",
|
|
535
490
|
"identities.messages.1010012": "Prepare your WebAuthn device (e.g. security key, biometrics scanner, ...) and press continue.",
|
|
536
491
|
"identities.messages.1010013": "Continue",
|
|
537
|
-
"identities.messages.1010014": "A code
|
|
492
|
+
"identities.messages.1010014": "A code was sent to the address you provided. If you didn't receive it, please check the spelling of the address and try again.",
|
|
538
493
|
"identities.messages.1010015": "Send sign in code",
|
|
539
494
|
"identities.messages.1010016": 'You tried to sign in with "{duplicateIdentifier}", but that email is already used by another account. Sign in to your account with one of the options below to add your account "{duplicateIdentifier}" at "{provider}" as another way to sign in.',
|
|
540
495
|
"identities.messages.1010017": "Sign in and link",
|
|
@@ -742,7 +697,7 @@ var en_default = {
|
|
|
742
697
|
"card.header.parts.oidc": "a social provider",
|
|
743
698
|
"card.header.parts.password.registration": "your {identifierLabel} and a password",
|
|
744
699
|
"card.header.parts.password.login": "your {identifierLabel} and password",
|
|
745
|
-
"card.header.parts.code": "a code
|
|
700
|
+
"card.header.parts.code": "a one-time code",
|
|
746
701
|
"card.header.parts.passkey": "a Passkey",
|
|
747
702
|
"card.header.parts.webauthn": "a security key",
|
|
748
703
|
"card.header.parts.totp": "your authenticator app",
|
|
@@ -996,7 +951,7 @@ var de_default = {
|
|
|
996
951
|
"identities.messages.4010009": "Die Authentifizierungsmethode stimmt nicht mit der vorherigen Authentifizierungsmethode \xFCberein. Bitte versuchen Sie es erneut.",
|
|
997
952
|
"identities.messages.4010010": "Die eingegebene Adresse stimmt nicht mit der Adresse \xFCberein, die Sie bei der Registrierung angegeben haben. Bitte versuchen Sie es erneut.",
|
|
998
953
|
"input.placeholder": "{placeholder} eingeben",
|
|
999
|
-
"card.header.parts.code": "
|
|
954
|
+
"card.header.parts.code": "ein einmaliger Code",
|
|
1000
955
|
"card.header.parts.identifier-first": "Ihrer {identifierLabel}",
|
|
1001
956
|
"card.header.parts.oidc": "einem Social-Login",
|
|
1002
957
|
"card.header.parts.passkey": "einem Passkey",
|
|
@@ -1346,7 +1301,7 @@ var es_default = {
|
|
|
1346
1301
|
"card.header.parts.oidc": "un proveedor social",
|
|
1347
1302
|
"card.header.parts.password.registration": "tu {identifierLabel} y una contrase\xF1a",
|
|
1348
1303
|
"card.header.parts.password.login": "tu {identifierLabel} y contrase\xF1a",
|
|
1349
|
-
"card.header.parts.code": "un c\xF3digo
|
|
1304
|
+
"card.header.parts.code": "un c\xF3digo de un solo uso",
|
|
1350
1305
|
"card.header.parts.passkey": "una clave de acceso",
|
|
1351
1306
|
"card.header.parts.webauthn": "una clave de seguridad",
|
|
1352
1307
|
"card.header.parts.totp": "su aplicaci\xF3n de autenticaci\xF3n",
|
|
@@ -1635,7 +1590,7 @@ var fr_default = {
|
|
|
1635
1590
|
"card.header.parts.passkey": "une cl\xE9 d'acc\xE8s",
|
|
1636
1591
|
"card.header.parts.webauthn": "une cl\xE9 de s\xE9curit\xE9",
|
|
1637
1592
|
"card.header.parts.identifier-first": "votre {identifierLabel}",
|
|
1638
|
-
"card.header.parts.code": "un code
|
|
1593
|
+
"card.header.parts.code": "un code \xE0 usage unique",
|
|
1639
1594
|
"card.header.parts.totp": "votre application d'authentification",
|
|
1640
1595
|
"card.header.parts.lookup_secret": "un code de r\xE9cup\xE9ration de secours",
|
|
1641
1596
|
"card.header.description.login": "Se connecter avec {identifierLabel}",
|
|
@@ -1882,7 +1837,7 @@ var nl_default = {
|
|
|
1882
1837
|
"input.placeholder": "",
|
|
1883
1838
|
"card.header.description.login": "",
|
|
1884
1839
|
"card.header.description.registration": "",
|
|
1885
|
-
"card.header.parts.code": "een code
|
|
1840
|
+
"card.header.parts.code": "een eenmalige code",
|
|
1886
1841
|
"card.header.parts.totp": "je authenticator-app",
|
|
1887
1842
|
"card.header.parts.lookup_secret": "een backup herstelcode",
|
|
1888
1843
|
"card.header.parts.identifier-first": "",
|
|
@@ -2179,7 +2134,7 @@ var pl_default = {
|
|
|
2179
2134
|
"card.header.parts.password.login": "",
|
|
2180
2135
|
"card.header.parts.password.registration": "",
|
|
2181
2136
|
"card.header.parts.webauthn": "",
|
|
2182
|
-
"card.header.parts.code": "kod
|
|
2137
|
+
"card.header.parts.code": "jednorazowy kod",
|
|
2183
2138
|
"card.header.parts.totp": "Twoja aplikacja uwierzytelniaj\u0105ca",
|
|
2184
2139
|
"card.header.parts.lookup_secret": "kod odzyskiwania kopii zapasowej",
|
|
2185
2140
|
"forms.label.forgot-password": "",
|
|
@@ -2464,7 +2419,7 @@ var pt_default = {
|
|
|
2464
2419
|
"input.placeholder": "",
|
|
2465
2420
|
"card.header.description.login": "",
|
|
2466
2421
|
"card.header.description.registration": "",
|
|
2467
|
-
"card.header.parts.code": "um c\xF3digo
|
|
2422
|
+
"card.header.parts.code": "um c\xF3digo de uso \xFAnico",
|
|
2468
2423
|
"card.header.parts.totp": "seu aplicativo autenticador",
|
|
2469
2424
|
"card.header.parts.lookup_secret": "um c\xF3digo de recupera\xE7\xE3o de backup",
|
|
2470
2425
|
"card.header.parts.identifier-first": "",
|
|
@@ -2755,7 +2710,7 @@ var sv_default = {
|
|
|
2755
2710
|
"input.placeholder": "Ange din {placeholder}",
|
|
2756
2711
|
"card.header.description.login": "Logga in med {identifierLabel}",
|
|
2757
2712
|
"card.header.description.registration": "Registrera dig med {identifierLabel}",
|
|
2758
|
-
"card.header.parts.code": "en
|
|
2713
|
+
"card.header.parts.code": "en eng\xE5ngskod",
|
|
2759
2714
|
"card.header.parts.totp": "din autentiseringsapp",
|
|
2760
2715
|
"card.header.parts.lookup_secret": "en s\xE4kerhetskopieringskod",
|
|
2761
2716
|
"card.header.parts.identifier-first": "din {identifierLabel}",
|
|
@@ -3067,7 +3022,7 @@ var no_default = {
|
|
|
3067
3022
|
"card.header.parts.oidc": "en sosial leverand\xF8r",
|
|
3068
3023
|
"card.header.parts.password.registration": "din {identifierLabel} og et passord",
|
|
3069
3024
|
"card.header.parts.password.login": "din {identifierLabel} og passord",
|
|
3070
|
-
"card.header.parts.code": "en
|
|
3025
|
+
"card.header.parts.code": "en engangskode",
|
|
3071
3026
|
"card.header.parts.passkey": "en passkey",
|
|
3072
3027
|
"card.header.parts.webauthn": "en sikkerhetsn\xF8kkel",
|
|
3073
3028
|
"card.header.parts.totp": "din autentiseringsapp",
|
|
@@ -3269,7 +3224,11 @@ function useClientLogout(config) {
|
|
|
3269
3224
|
|
|
3270
3225
|
// src/theme/default/utils/url.ts
|
|
3271
3226
|
function restartFlowUrl(flow, fallback) {
|
|
3272
|
-
return flow.request_url ||
|
|
3227
|
+
return flow.request_url || appendReturnToAndIdentitySchema(
|
|
3228
|
+
fallback,
|
|
3229
|
+
flow.return_to,
|
|
3230
|
+
flow.identity_schema
|
|
3231
|
+
);
|
|
3273
3232
|
}
|
|
3274
3233
|
function initFlowUrl(sdkUrl, flowType, flow) {
|
|
3275
3234
|
const result = `${sdkUrl}/self-service/${flowType}/browser`;
|
|
@@ -3277,6 +3236,9 @@ function initFlowUrl(sdkUrl, flowType, flow) {
|
|
|
3277
3236
|
if (flow.oauth2_login_challenge) {
|
|
3278
3237
|
qs.set("login_challenge", flow.oauth2_login_challenge);
|
|
3279
3238
|
}
|
|
3239
|
+
if (flow.identity_schema) {
|
|
3240
|
+
qs.set("identity_schema", flow.identity_schema);
|
|
3241
|
+
}
|
|
3280
3242
|
if (flow.return_to) {
|
|
3281
3243
|
qs.set("return_to", flow.return_to);
|
|
3282
3244
|
} else if (typeof window !== "undefined") {
|
|
@@ -3290,12 +3252,14 @@ function initFlowUrl(sdkUrl, flowType, flow) {
|
|
|
3290
3252
|
}
|
|
3291
3253
|
return result + "?" + qs.toString();
|
|
3292
3254
|
}
|
|
3293
|
-
function
|
|
3294
|
-
if (!returnTo) {
|
|
3295
|
-
return url;
|
|
3296
|
-
}
|
|
3255
|
+
function appendReturnToAndIdentitySchema(url, returnTo, identitySchema) {
|
|
3297
3256
|
const urlObj = new URL(url);
|
|
3298
|
-
|
|
3257
|
+
if (returnTo) {
|
|
3258
|
+
urlObj.searchParams.set("return_to", returnTo);
|
|
3259
|
+
}
|
|
3260
|
+
if (identitySchema) {
|
|
3261
|
+
urlObj.searchParams.set("identity_schema", identitySchema);
|
|
3262
|
+
}
|
|
3299
3263
|
return urlObj.toString();
|
|
3300
3264
|
}
|
|
3301
3265
|
|
|
@@ -3354,7 +3318,7 @@ function LoginCardFooter({ flow }) {
|
|
|
3354
3318
|
return /* @__PURE__ */ jsx35(LogoutButton, { returnTo });
|
|
3355
3319
|
}
|
|
3356
3320
|
return /* @__PURE__ */ jsxs15(Fragment8, { children: [
|
|
3357
|
-
formState.current === "provide_identifier" && config.project.registration_enabled && /* @__PURE__ */ jsxs15("span", { className: "
|
|
3321
|
+
formState.current === "provide_identifier" && config.project.registration_enabled && /* @__PURE__ */ jsxs15("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
|
|
3358
3322
|
intl.formatMessage({
|
|
3359
3323
|
id: "login.registration-label",
|
|
3360
3324
|
defaultMessage: "No account?"
|
|
@@ -3363,7 +3327,7 @@ function LoginCardFooter({ flow }) {
|
|
|
3363
3327
|
/* @__PURE__ */ jsx35(
|
|
3364
3328
|
"a",
|
|
3365
3329
|
{
|
|
3366
|
-
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover
|
|
3330
|
+
className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
|
|
3367
3331
|
href: initFlowUrl(config.sdk.url, "registration", flow),
|
|
3368
3332
|
"data-testid": "ory/screen/login/action/register",
|
|
3369
3333
|
children: intl.formatMessage({
|
|
@@ -3373,10 +3337,10 @@ function LoginCardFooter({ flow }) {
|
|
|
3373
3337
|
}
|
|
3374
3338
|
)
|
|
3375
3339
|
] }),
|
|
3376
|
-
authMethods.length > 1 && formState.current === "method_active" && /* @__PURE__ */ jsx35("span", { className: "
|
|
3340
|
+
authMethods.length > 1 && formState.current === "method_active" && /* @__PURE__ */ jsx35("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ jsx35(
|
|
3377
3341
|
"button",
|
|
3378
3342
|
{
|
|
3379
|
-
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover
|
|
3343
|
+
className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
|
|
3380
3344
|
onClick: () => {
|
|
3381
3345
|
dispatchFormState({
|
|
3382
3346
|
type: "action_clear_active_method"
|
|
@@ -3388,10 +3352,10 @@ function LoginCardFooter({ flow }) {
|
|
|
3388
3352
|
})
|
|
3389
3353
|
}
|
|
3390
3354
|
) }),
|
|
3391
|
-
authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ jsx35("span", { className: "
|
|
3355
|
+
authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ jsx35("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ jsx35(
|
|
3392
3356
|
"a",
|
|
3393
3357
|
{
|
|
3394
|
-
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover
|
|
3358
|
+
className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
|
|
3395
3359
|
href: returnTo,
|
|
3396
3360
|
"data-testid": "ory/screen/login/action/cancel",
|
|
3397
3361
|
children: intl.formatMessage({
|
|
@@ -3405,7 +3369,7 @@ function LogoutButton({ returnTo }) {
|
|
|
3405
3369
|
const config = useOryConfiguration2();
|
|
3406
3370
|
const intl = useIntl9();
|
|
3407
3371
|
const { logoutFlow: logout, didLoad: didLoadLogout } = useClientLogout(config);
|
|
3408
|
-
return /* @__PURE__ */ jsxs15("span", { className: "
|
|
3372
|
+
return /* @__PURE__ */ jsxs15("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
|
|
3409
3373
|
intl.formatMessage({
|
|
3410
3374
|
id: "login.2fa.go-back"
|
|
3411
3375
|
}),
|
|
@@ -3413,7 +3377,7 @@ function LogoutButton({ returnTo }) {
|
|
|
3413
3377
|
/* @__PURE__ */ jsx35(
|
|
3414
3378
|
"a",
|
|
3415
3379
|
{
|
|
3416
|
-
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover
|
|
3380
|
+
className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
|
|
3417
3381
|
href: logout ? logout == null ? void 0 : logout.logout_url : returnTo,
|
|
3418
3382
|
"data-testid": (
|
|
3419
3383
|
// Only add the test-id when the logout link has loaded.
|
|
@@ -3438,10 +3402,10 @@ function RegistrationCardFooter() {
|
|
|
3438
3402
|
if (!screenSelectionNode || Object.entries(authMethodBlocks).length < 2) {
|
|
3439
3403
|
return null;
|
|
3440
3404
|
}
|
|
3441
|
-
return /* @__PURE__ */ jsx35("span", { className: "
|
|
3405
|
+
return /* @__PURE__ */ jsx35("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ jsx35(
|
|
3442
3406
|
"button",
|
|
3443
3407
|
{
|
|
3444
|
-
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover
|
|
3408
|
+
className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
|
|
3445
3409
|
onClick: () => {
|
|
3446
3410
|
dispatchFormState({
|
|
3447
3411
|
type: "action_clear_active_method"
|
|
@@ -3457,7 +3421,7 @@ function RegistrationCardFooter() {
|
|
|
3457
3421
|
) });
|
|
3458
3422
|
case "select_method":
|
|
3459
3423
|
default:
|
|
3460
|
-
return /* @__PURE__ */ jsxs15("span", { className: "
|
|
3424
|
+
return /* @__PURE__ */ jsxs15("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
|
|
3461
3425
|
intl.formatMessage({
|
|
3462
3426
|
id: "registration.login-label",
|
|
3463
3427
|
defaultMessage: "Already have an account?"
|
|
@@ -3466,7 +3430,7 @@ function RegistrationCardFooter() {
|
|
|
3466
3430
|
/* @__PURE__ */ jsx35(
|
|
3467
3431
|
"a",
|
|
3468
3432
|
{
|
|
3469
|
-
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover
|
|
3433
|
+
className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
|
|
3470
3434
|
href: initFlowUrl(config.sdk.url, "login", flow),
|
|
3471
3435
|
"data-testid": "ory/screen/registration/action/login",
|
|
3472
3436
|
children: intl.formatMessage({
|
|
@@ -3492,13 +3456,13 @@ function ConsentCardFooter({ flow }) {
|
|
|
3492
3456
|
node_type: "input",
|
|
3493
3457
|
name: "remember"
|
|
3494
3458
|
});
|
|
3495
|
-
return /* @__PURE__ */ jsxs15("div", { className: "flex gap-8
|
|
3459
|
+
return /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-8", children: [
|
|
3496
3460
|
/* @__PURE__ */ jsxs15("div", { children: [
|
|
3497
|
-
/* @__PURE__ */ jsxs15("p", { className: "text-interface-foreground-default-secondary
|
|
3461
|
+
/* @__PURE__ */ jsxs15("p", { className: "leading-normal font-medium text-interface-foreground-default-secondary", children: [
|
|
3498
3462
|
"Make sure you trust ",
|
|
3499
3463
|
(_a = flow.consent_request.client) == null ? void 0 : _a.client_name
|
|
3500
3464
|
] }),
|
|
3501
|
-
/* @__PURE__ */ jsx35("p", { className: "text-interface-foreground-default-secondary
|
|
3465
|
+
/* @__PURE__ */ jsx35("p", { className: "leading-normal text-interface-foreground-default-secondary", children: "You may be sharing sensitive information with this site or application." })
|
|
3502
3466
|
] }),
|
|
3503
3467
|
rememberNode && /* @__PURE__ */ jsx35(
|
|
3504
3468
|
Node2.Checkbox,
|
|
@@ -3507,7 +3471,7 @@ function ConsentCardFooter({ flow }) {
|
|
|
3507
3471
|
node: rememberNode
|
|
3508
3472
|
}
|
|
3509
3473
|
),
|
|
3510
|
-
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-1 md:grid-cols-2
|
|
3474
|
+
/* @__PURE__ */ jsx35("div", { className: "grid grid-cols-1 gap-2 md:grid-cols-2", children: flow.ui.nodes.filter(
|
|
3511
3475
|
(n) => n.attributes.node_type === "input" && n.attributes.type === "submit"
|
|
3512
3476
|
).map((n) => {
|
|
3513
3477
|
const attributes = n.attributes;
|
|
@@ -3548,7 +3512,7 @@ function joinWithCommaOr(list, orText = "or") {
|
|
|
3548
3512
|
}
|
|
3549
3513
|
}
|
|
3550
3514
|
function useCardHeaderText(container, opts) {
|
|
3551
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
3515
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
3552
3516
|
const nodes = container.nodes;
|
|
3553
3517
|
const intl = useIntl10();
|
|
3554
3518
|
switch (opts.flowType) {
|
|
@@ -3704,7 +3668,14 @@ function useCardHeaderText(container, opts) {
|
|
|
3704
3668
|
}
|
|
3705
3669
|
}
|
|
3706
3670
|
switch (opts.flowType) {
|
|
3707
|
-
case FlowType12.Login:
|
|
3671
|
+
case FlowType12.Login: {
|
|
3672
|
+
const codeMethodNode = findNode(container.nodes, {
|
|
3673
|
+
node_type: "input",
|
|
3674
|
+
group: "code",
|
|
3675
|
+
name: "code",
|
|
3676
|
+
type: "text"
|
|
3677
|
+
});
|
|
3678
|
+
const codeSent = codeMethodNode && ((_d = opts.formState) == null ? void 0 : _d.current) === "method_active" && ((_e = opts.formState) == null ? void 0 : _e.method) === "code";
|
|
3708
3679
|
if (opts.flow.refresh) {
|
|
3709
3680
|
return {
|
|
3710
3681
|
title: intl.formatMessage({
|
|
@@ -3712,7 +3683,7 @@ function useCardHeaderText(container, opts) {
|
|
|
3712
3683
|
}),
|
|
3713
3684
|
description: intl.formatMessage(
|
|
3714
3685
|
{
|
|
3715
|
-
id: "login.subtitle-refresh"
|
|
3686
|
+
id: codeSent ? "identities.messages.1010014" : "login.subtitle-refresh"
|
|
3716
3687
|
},
|
|
3717
3688
|
{
|
|
3718
3689
|
parts: joinWithCommaOr(parts)
|
|
@@ -3725,7 +3696,7 @@ function useCardHeaderText(container, opts) {
|
|
|
3725
3696
|
id: "login.title-aal2"
|
|
3726
3697
|
}),
|
|
3727
3698
|
description: intl.formatMessage({
|
|
3728
|
-
id: ((
|
|
3699
|
+
id: codeSent ? "identities.messages.1010014" : ((_f = opts.formState) == null ? void 0 : _f.current) === "method_active" ? `login.${opts.formState.method}.subtitle` : "login.subtitle-aal2"
|
|
3729
3700
|
})
|
|
3730
3701
|
};
|
|
3731
3702
|
}
|
|
@@ -3735,7 +3706,7 @@ function useCardHeaderText(container, opts) {
|
|
|
3735
3706
|
}),
|
|
3736
3707
|
description: parts.length > 0 ? intl.formatMessage(
|
|
3737
3708
|
{
|
|
3738
|
-
id: "login.subtitle"
|
|
3709
|
+
id: codeSent ? "identities.messages.1010014" : "login.subtitle"
|
|
3739
3710
|
},
|
|
3740
3711
|
{
|
|
3741
3712
|
parts: joinWithCommaOr(
|
|
@@ -3745,12 +3716,20 @@ function useCardHeaderText(container, opts) {
|
|
|
3745
3716
|
}
|
|
3746
3717
|
) : ""
|
|
3747
3718
|
};
|
|
3748
|
-
|
|
3719
|
+
}
|
|
3720
|
+
case FlowType12.Registration: {
|
|
3721
|
+
const codeMethodNode = findNode(container.nodes, {
|
|
3722
|
+
node_type: "input",
|
|
3723
|
+
group: "code",
|
|
3724
|
+
name: "code",
|
|
3725
|
+
type: "text"
|
|
3726
|
+
});
|
|
3727
|
+
const codeSent = codeMethodNode && ((_g = opts.formState) == null ? void 0 : _g.current) === "method_active" && ((_h = opts.formState) == null ? void 0 : _h.method) === "code";
|
|
3749
3728
|
return {
|
|
3750
3729
|
title: intl.formatMessage({
|
|
3751
3730
|
id: "registration.title"
|
|
3752
3731
|
}),
|
|
3753
|
-
description: parts.length > 0 ? intl.formatMessage(
|
|
3732
|
+
description: codeSent ? intl.formatMessage({ id: "identities.messages.1040005" }) : parts.length > 0 ? intl.formatMessage(
|
|
3754
3733
|
{
|
|
3755
3734
|
id: "registration.subtitle"
|
|
3756
3735
|
},
|
|
@@ -3762,6 +3741,7 @@ function useCardHeaderText(container, opts) {
|
|
|
3762
3741
|
}
|
|
3763
3742
|
) : ""
|
|
3764
3743
|
};
|
|
3744
|
+
}
|
|
3765
3745
|
case FlowType12.OAuth2Consent:
|
|
3766
3746
|
return {
|
|
3767
3747
|
title: intl.formatMessage(
|
|
@@ -3769,7 +3749,7 @@ function useCardHeaderText(container, opts) {
|
|
|
3769
3749
|
id: "consent.title"
|
|
3770
3750
|
},
|
|
3771
3751
|
{
|
|
3772
|
-
party: (
|
|
3752
|
+
party: (_i = opts.flow.consent_request.client) == null ? void 0 : _i.client_name
|
|
3773
3753
|
}
|
|
3774
3754
|
),
|
|
3775
3755
|
description: intl.formatMessage(
|
|
@@ -3777,7 +3757,7 @@ function useCardHeaderText(container, opts) {
|
|
|
3777
3757
|
id: "consent.subtitle"
|
|
3778
3758
|
},
|
|
3779
3759
|
{
|
|
3780
|
-
identifier: (
|
|
3760
|
+
identifier: (_k = (_j = opts.flow.session.identity) == null ? void 0 : _j.traits.email) != null ? _k : ""
|
|
3781
3761
|
}
|
|
3782
3762
|
)
|
|
3783
3763
|
};
|
|
@@ -3887,7 +3867,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
3887
3867
|
/* @__PURE__ */ jsx37(
|
|
3888
3868
|
"button",
|
|
3889
3869
|
{
|
|
3890
|
-
className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-identifier border
|
|
3870
|
+
className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-identifier border border-button-identifier-border-border-default bg-button-identifier-background-default px-[11px] py-[5px] transition-colors hover:border-button-identifier-border-border-hover hover:bg-button-identifier-background-hover",
|
|
3891
3871
|
...omitInputAttributes(nodeBackButton),
|
|
3892
3872
|
type: "submit",
|
|
3893
3873
|
onClick: () => {
|
|
@@ -3910,7 +3890,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
3910
3890
|
className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
|
|
3911
3891
|
}
|
|
3912
3892
|
),
|
|
3913
|
-
/* @__PURE__ */ jsx37("span", { className: "overflow-hidden text-
|
|
3893
|
+
/* @__PURE__ */ jsx37("span", { className: "overflow-hidden text-sm font-medium text-nowrap text-ellipsis text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton == null ? void 0 : nodeBackButton.value })
|
|
3914
3894
|
] })
|
|
3915
3895
|
}
|
|
3916
3896
|
)
|
|
@@ -3919,7 +3899,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
3919
3899
|
return /* @__PURE__ */ jsx37(
|
|
3920
3900
|
"a",
|
|
3921
3901
|
{
|
|
3922
|
-
className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-identifier border
|
|
3902
|
+
className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-identifier border border-button-identifier-border-border-default bg-button-identifier-background-default px-[11px] py-[5px] transition-colors hover:border-button-identifier-border-border-hover hover:bg-button-identifier-background-hover",
|
|
3923
3903
|
...omitInputAttributes(nodeBackButton),
|
|
3924
3904
|
href: initFlowUrl2,
|
|
3925
3905
|
title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
|
|
@@ -3933,7 +3913,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
3933
3913
|
className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
|
|
3934
3914
|
}
|
|
3935
3915
|
),
|
|
3936
|
-
/* @__PURE__ */ jsx37("span", { className: "overflow-hidden text-
|
|
3916
|
+
/* @__PURE__ */ jsx37("span", { className: "overflow-hidden text-sm font-medium text-nowrap text-ellipsis text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton == null ? void 0 : nodeBackButton.value })
|
|
3937
3917
|
] })
|
|
3938
3918
|
}
|
|
3939
3919
|
);
|
|
@@ -3985,7 +3965,7 @@ function InnerCardHeader({
|
|
|
3985
3965
|
return /* @__PURE__ */ jsxs17("header", { className: "flex flex-col gap-8 antialiased", children: [
|
|
3986
3966
|
/* @__PURE__ */ jsx38(Card.Logo, {}),
|
|
3987
3967
|
/* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-2", children: [
|
|
3988
|
-
/* @__PURE__ */ jsx38("h2", { className: "text-lg font-semibold
|
|
3968
|
+
/* @__PURE__ */ jsx38("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: title }),
|
|
3989
3969
|
/* @__PURE__ */ jsx38(
|
|
3990
3970
|
"p",
|
|
3991
3971
|
{
|
|
@@ -4022,16 +4002,7 @@ function DefaultCardLogo() {
|
|
|
4022
4002
|
}
|
|
4023
4003
|
);
|
|
4024
4004
|
}
|
|
4025
|
-
return /* @__PURE__ */ jsx39("h1", { className: "text-xl font-semibold
|
|
4026
|
-
}
|
|
4027
|
-
|
|
4028
|
-
// src/theme/default/components/card/index.tsx
|
|
4029
|
-
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4030
|
-
function DefaultCard({ children }) {
|
|
4031
|
-
return /* @__PURE__ */ jsx40("div", { className: "flex flex-1 sm:items-center justify-center font-sans items-start w-full sm:w-[480px] sm:max-w-[480px]", children: /* @__PURE__ */ jsxs18("div", { className: "relative grid grid-cols-1 gap-8 sm:rounded-cards sm:border border-form-border-default bg-form-background-default px-8 py-12 sm:px-12 sm:py-14 border-b w-full", children: [
|
|
4032
|
-
children,
|
|
4033
|
-
/* @__PURE__ */ jsx40(Badge, {})
|
|
4034
|
-
] }) });
|
|
4005
|
+
return /* @__PURE__ */ jsx39("h1", { className: "text-xl leading-normal font-semibold text-interface-foreground-default-primary", children: config.project.name });
|
|
4035
4006
|
}
|
|
4036
4007
|
|
|
4037
4008
|
// src/theme/default/utils/cn.ts
|
|
@@ -4041,6 +4012,19 @@ function cn(...inputs) {
|
|
|
4041
4012
|
return twMerge(clsx(inputs));
|
|
4042
4013
|
}
|
|
4043
4014
|
|
|
4015
|
+
// src/theme/default/components/card/index.tsx
|
|
4016
|
+
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4017
|
+
function DefaultCard({
|
|
4018
|
+
children,
|
|
4019
|
+
className,
|
|
4020
|
+
...rest
|
|
4021
|
+
}) {
|
|
4022
|
+
return /* @__PURE__ */ jsx40("div", { className: cn("ory-elements", className), ...rest, children: /* @__PURE__ */ jsx40("div", { className: "flex w-full flex-1 items-start justify-center font-sans-default sm:w-[480px] sm:max-w-[480px] sm:items-center", children: /* @__PURE__ */ jsxs18("div", { className: "relative grid w-full grid-cols-1 gap-8 border-b border-form-border-default bg-form-background-default px-8 py-12 sm:rounded-cards sm:border sm:px-12 sm:py-14", children: [
|
|
4023
|
+
children,
|
|
4024
|
+
/* @__PURE__ */ jsx40(Badge, {})
|
|
4025
|
+
] }) }) });
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4044
4028
|
// src/theme/default/components/form/index.tsx
|
|
4045
4029
|
import { useIntl as useIntl12 } from "react-intl";
|
|
4046
4030
|
import {
|
|
@@ -4243,7 +4227,7 @@ function Spinner({ className }) {
|
|
|
4243
4227
|
"aria-hidden": "true",
|
|
4244
4228
|
role: "status",
|
|
4245
4229
|
className: cn(
|
|
4246
|
-
"
|
|
4230
|
+
"pointer-events-none absolute inset-0 m-auto size-8 animate-spin",
|
|
4247
4231
|
className
|
|
4248
4232
|
),
|
|
4249
4233
|
viewBox: "0 0 34 34",
|
|
@@ -4319,7 +4303,7 @@ function DefaultButtonSocial({
|
|
|
4319
4303
|
return /* @__PURE__ */ jsxs29(
|
|
4320
4304
|
"button",
|
|
4321
4305
|
{
|
|
4322
|
-
className: "gap-3 border border-button-social-border-default bg-button-social-background-default hover:
|
|
4306
|
+
className: "flex items-center justify-center gap-3 rounded-buttons border border-button-social-border-default bg-button-social-background-default px-4 py-[13px] transition-colors hover:border-button-social-border-hover hover:bg-button-social-background-hover hover:text-button-social-foreground-hover loading:border-button-social-border-disabled loading:bg-button-social-background-disabled loading:text-button-social-foreground-disabled",
|
|
4323
4307
|
value: attributes.value,
|
|
4324
4308
|
type: "submit",
|
|
4325
4309
|
name: "provider",
|
|
@@ -4330,10 +4314,10 @@ function DefaultButtonSocial({
|
|
|
4330
4314
|
"aria-label": label,
|
|
4331
4315
|
...omitInputAttributes(rest),
|
|
4332
4316
|
children: [
|
|
4333
|
-
/* @__PURE__ */ jsx55("span", { className: "size-5
|
|
4317
|
+
/* @__PURE__ */ jsx55("span", { className: "relative size-5", children: !clicked ? Logo ? /* @__PURE__ */ jsx55(Logo, { size: 20 }) : /* @__PURE__ */ jsx55(GenericLogo, { label: provider.slice(0, 1) }) : /* @__PURE__ */ jsx55(Spinner, { className: "size-5" }) }),
|
|
4334
4318
|
showLabel && node.meta.label ? /* @__PURE__ */ jsxs29(Fragment9, { children: [
|
|
4335
|
-
/* @__PURE__ */ jsx55("span", { className: "grow text-center font-medium
|
|
4336
|
-
/* @__PURE__ */ jsx55("span", { className: "size-5
|
|
4319
|
+
/* @__PURE__ */ jsx55("span", { className: "grow text-center leading-none font-medium text-button-social-foreground-default", children: label }),
|
|
4320
|
+
/* @__PURE__ */ jsx55("span", { className: "block size-5" })
|
|
4337
4321
|
] }) : null
|
|
4338
4322
|
]
|
|
4339
4323
|
}
|
|
@@ -4358,7 +4342,7 @@ function DefaultSocialButtonContainer({
|
|
|
4358
4342
|
);
|
|
4359
4343
|
}
|
|
4360
4344
|
function GenericLogo({ label }) {
|
|
4361
|
-
return /* @__PURE__ */ jsx55("span", { className: "flex rounded-buttons
|
|
4345
|
+
return /* @__PURE__ */ jsx55("span", { className: "flex size-full items-center justify-center rounded-buttons border-button-social-border-generic-provider bg-button-social-background-generic-provider text-xs text-button-social-foreground-generic-provider", children: label });
|
|
4362
4346
|
}
|
|
4363
4347
|
|
|
4364
4348
|
// src/theme/default/components/form/index.tsx
|
|
@@ -4499,14 +4483,14 @@ function ListItem({
|
|
|
4499
4483
|
{
|
|
4500
4484
|
...props,
|
|
4501
4485
|
className: cn(
|
|
4502
|
-
"flex cursor-pointer
|
|
4503
|
-
"disabled:
|
|
4486
|
+
"flex w-full cursor-pointer items-start gap-3 rounded-buttons p-2 text-left hover:bg-interface-background-default-primary-hover",
|
|
4487
|
+
"disabled:cursor-default disabled:opacity-50 disabled:hover:bg-ui-transparent",
|
|
4504
4488
|
className
|
|
4505
4489
|
),
|
|
4506
4490
|
children: [
|
|
4507
4491
|
/* @__PURE__ */ jsx64("span", { className: "mt-1", children: Icon && /* @__PURE__ */ jsx64(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
|
|
4508
|
-
/* @__PURE__ */ jsxs30("span", { className: "
|
|
4509
|
-
/* @__PURE__ */ jsx64("span", { className: "text-interface-foreground-default-primary
|
|
4492
|
+
/* @__PURE__ */ jsxs30("span", { className: "inline-flex max-w-full min-w-1 flex-1 flex-col leading-normal", children: [
|
|
4493
|
+
/* @__PURE__ */ jsx64("span", { className: "break-words text-interface-foreground-default-primary", children: title }),
|
|
4510
4494
|
/* @__PURE__ */ jsx64("span", { className: "text-interface-foreground-default-secondary", children: description })
|
|
4511
4495
|
] }),
|
|
4512
4496
|
children
|
|
@@ -4664,10 +4648,10 @@ import { useEffect as useEffect7, useState as useState6 } from "react";
|
|
|
4664
4648
|
import { jsx as jsx66, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4665
4649
|
var buttonStyles = cva(
|
|
4666
4650
|
[
|
|
4667
|
-
"relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset
|
|
4651
|
+
"relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none font-medium ring-1 ring-inset",
|
|
4668
4652
|
"disabled:cursor-not-allowed loading:cursor-wait loading:before:pointer-events-none",
|
|
4669
4653
|
"transition-colors duration-100 ease-linear",
|
|
4670
|
-
"
|
|
4654
|
+
"max-w-[488px] p-4"
|
|
4671
4655
|
],
|
|
4672
4656
|
{
|
|
4673
4657
|
variants: {
|
|
@@ -4687,9 +4671,6 @@ var buttonStyles = cva(
|
|
|
4687
4671
|
"loading:bg-button-secondary-background-default loading:text-button-secondary-foreground-default loading:ring-button-secondary-border-default",
|
|
4688
4672
|
"loading:before:absolute loading:before:inset-0 loading:before:bg-button-secondary-background-default loading:before:opacity-80 loading:before:content-['']"
|
|
4689
4673
|
]
|
|
4690
|
-
},
|
|
4691
|
-
defaultVariants: {
|
|
4692
|
-
intent: "primary"
|
|
4693
4674
|
}
|
|
4694
4675
|
}
|
|
4695
4676
|
}
|
|
@@ -4775,7 +4756,7 @@ function computeLabelElements(labelText) {
|
|
|
4775
4756
|
href: url,
|
|
4776
4757
|
target: "_blank",
|
|
4777
4758
|
rel: "noopener noreferrer",
|
|
4778
|
-
className: "text-button-link-brand-brand hover:text-button-link-brand-brand-hover
|
|
4759
|
+
className: "text-button-link-brand-brand underline hover:text-button-link-brand-brand-hover",
|
|
4779
4760
|
children: linkText
|
|
4780
4761
|
},
|
|
4781
4762
|
matchStart
|
|
@@ -4803,7 +4784,7 @@ function CheckboxSVG() {
|
|
|
4803
4784
|
return /* @__PURE__ */ jsx68(
|
|
4804
4785
|
"svg",
|
|
4805
4786
|
{
|
|
4806
|
-
className: "absolute hidden size-4
|
|
4787
|
+
className: "absolute hidden size-4 fill-checkbox-foreground-checked peer-checked:block",
|
|
4807
4788
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4808
4789
|
width: "16",
|
|
4809
4790
|
height: "16",
|
|
@@ -4838,7 +4819,7 @@ var DefaultCheckbox = ({
|
|
|
4838
4819
|
defaultChecked: Boolean(value),
|
|
4839
4820
|
type: "checkbox",
|
|
4840
4821
|
className: cn(
|
|
4841
|
-
"peer size-4
|
|
4822
|
+
"peer size-4 appearance-none rounded-forms border border-checkbox-border-checkbox-border-default bg-checkbox-background-default checked:border-checkbox-border-checkbox-border-checked checked:bg-checkbox-background-checked",
|
|
4842
4823
|
hasError && "border-interface-border-validation-danger"
|
|
4843
4824
|
),
|
|
4844
4825
|
"data-testid": `ory/form/node/input/${name}`,
|
|
@@ -4848,7 +4829,7 @@ var DefaultCheckbox = ({
|
|
|
4848
4829
|
/* @__PURE__ */ jsx68(CheckboxSVG, {})
|
|
4849
4830
|
] }),
|
|
4850
4831
|
/* @__PURE__ */ jsxs32("span", { className: "flex flex-col", children: [
|
|
4851
|
-
/* @__PURE__ */ jsx68("span", { className: "font-normal
|
|
4832
|
+
/* @__PURE__ */ jsx68("span", { className: "leading-tight font-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx68(CheckboxLabel, { label }) }),
|
|
4852
4833
|
node.messages.map((message) => /* @__PURE__ */ jsx68(
|
|
4853
4834
|
"span",
|
|
4854
4835
|
{
|
|
@@ -4953,11 +4934,11 @@ var eye_default = SvgEye;
|
|
|
4953
4934
|
// src/theme/default/components/form/input.tsx
|
|
4954
4935
|
import { jsx as jsx74, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4955
4936
|
var defaultInputClassName = cn(
|
|
4956
|
-
"
|
|
4957
|
-
"
|
|
4958
|
-
"disabled:
|
|
4937
|
+
"w-full rounded-forms border leading-tight antialiased transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus:ring-0 focus-visible:outline-hidden",
|
|
4938
|
+
"border-input-border-default bg-input-background-default text-input-foreground-primary",
|
|
4939
|
+
"disabled:border-input-border-disabled disabled:bg-input-background-disabled disabled:text-input-foreground-disabled",
|
|
4959
4940
|
"focus:border-input-border-focus focus-visible:border-input-border-focus",
|
|
4960
|
-
"hover:
|
|
4941
|
+
"hover:border-input-border-hover hover:bg-input-background-hover",
|
|
4961
4942
|
"px-4 py-[13px]"
|
|
4962
4943
|
);
|
|
4963
4944
|
var DefaultInput = ({
|
|
@@ -5036,7 +5017,7 @@ function PasswordToggle({
|
|
|
5036
5017
|
"button",
|
|
5037
5018
|
{
|
|
5038
5019
|
onClick: handleClick,
|
|
5039
|
-
className: "absolute right-0 h-full w-12
|
|
5020
|
+
className: "absolute right-0 flex h-full w-12 items-center justify-center text-input-foreground-primary",
|
|
5040
5021
|
type: "button",
|
|
5041
5022
|
"aria-label": "Toggle password visibility",
|
|
5042
5023
|
children: shown ? /* @__PURE__ */ jsx74(eye_off_default, {}) : /* @__PURE__ */ jsx74(eye_default, {})
|
|
@@ -5105,7 +5086,7 @@ function DefaultLabel({
|
|
|
5105
5086
|
name: resendNode.attributes.name,
|
|
5106
5087
|
value: resendNode.attributes.value,
|
|
5107
5088
|
onClick: handleResend,
|
|
5108
|
-
className: "cursor-pointer text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover
|
|
5089
|
+
className: "cursor-pointer text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
|
|
5109
5090
|
children: intl.formatMessage({ id: "identities.messages.1070008" })
|
|
5110
5091
|
}
|
|
5111
5092
|
)
|
|
@@ -5154,7 +5135,7 @@ function LabelAction({ attributes }) {
|
|
|
5154
5135
|
"a",
|
|
5155
5136
|
{
|
|
5156
5137
|
href: action.href,
|
|
5157
|
-
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover
|
|
5138
|
+
className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
|
|
5158
5139
|
children: action.message
|
|
5159
5140
|
}
|
|
5160
5141
|
) : null;
|
|
@@ -5179,7 +5160,7 @@ var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
|
|
|
5179
5160
|
title: label ? uiTextToFormattedMessage8(label, intl) : "",
|
|
5180
5161
|
"data-testid": `ory/form/node/link/${attributes.id}`,
|
|
5181
5162
|
className: cn(
|
|
5182
|
-
"
|
|
5163
|
+
"cursor-pointer gap-3 border bg-button-primary-background-default p-4 text-center leading-none font-medium text-button-primary-foreground-default antialiased transition-colors hover:bg-button-primary-background-hover hover:text-button-primary-foreground-hover"
|
|
5183
5164
|
),
|
|
5184
5165
|
children: label ? uiTextToFormattedMessage8(label, intl) : ""
|
|
5185
5166
|
}
|
|
@@ -5199,7 +5180,7 @@ var InputOTP = React26.forwardRef(({ className, containerClassName, ...props },
|
|
|
5199
5180
|
{
|
|
5200
5181
|
ref,
|
|
5201
5182
|
containerClassName: cn(
|
|
5202
|
-
"flex items-center gap-2 has-
|
|
5183
|
+
"flex items-center gap-2 has-disabled:opacity-50",
|
|
5203
5184
|
containerClassName
|
|
5204
5185
|
),
|
|
5205
5186
|
className: cn("disabled:cursor-not-allowed", className),
|
|
@@ -5217,8 +5198,8 @@ var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
5217
5198
|
{
|
|
5218
5199
|
ref,
|
|
5219
5200
|
className: cn(
|
|
5220
|
-
"rounded-forms border border-solid bg-input-background-default
|
|
5221
|
-
"relative flex items-center justify-center transition-all
|
|
5201
|
+
"w-full rounded-forms border border-solid bg-input-background-default py-[15px] text-center text-input-foreground-primary focus-visible:outline-hidden",
|
|
5202
|
+
"relative flex items-center justify-center leading-none transition-all",
|
|
5222
5203
|
isActive ? "border-input-border-focus" : "border-input-border-default",
|
|
5223
5204
|
className
|
|
5224
5205
|
),
|
|
@@ -5256,7 +5237,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
|
|
|
5256
5237
|
InputOTPGroup,
|
|
5257
5238
|
{
|
|
5258
5239
|
className: cn(
|
|
5259
|
-
"w-full
|
|
5240
|
+
"flex w-full justify-stretch gap-2",
|
|
5260
5241
|
// The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
|
|
5261
5242
|
flowType === FlowType18.Settings && "max-w-[488px]"
|
|
5262
5243
|
),
|
|
@@ -5277,7 +5258,7 @@ var DefaultFormSection = ({
|
|
|
5277
5258
|
return /* @__PURE__ */ jsx79(
|
|
5278
5259
|
"form",
|
|
5279
5260
|
{
|
|
5280
|
-
className: "flex w-full max-w-
|
|
5261
|
+
className: "flex w-full max-w-(--breakpoint-sm) flex-col px-4 md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px]",
|
|
5281
5262
|
...rest,
|
|
5282
5263
|
children
|
|
5283
5264
|
}
|
|
@@ -5432,8 +5413,8 @@ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props },
|
|
|
5432
5413
|
sideOffset,
|
|
5433
5414
|
align: "end",
|
|
5434
5415
|
className: cn(
|
|
5435
|
-
"z-50 min-w-
|
|
5436
|
-
"border border-interface-border-default-primary bg-interface-background-default-primary
|
|
5416
|
+
"z-50 min-w-76 origin-top-right animate-drop-down-in overflow-hidden will-change-[opacity,transform] data-[state=closed]:animate-drop-down-out",
|
|
5417
|
+
"rounded-cards border border-interface-border-default-primary bg-interface-background-default-primary",
|
|
5437
5418
|
className
|
|
5438
5419
|
),
|
|
5439
5420
|
...props
|
|
@@ -5445,12 +5426,12 @@ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @
|
|
|
5445
5426
|
{
|
|
5446
5427
|
ref,
|
|
5447
5428
|
className: cn(
|
|
5448
|
-
"relative flex cursor-pointer
|
|
5449
|
-
"px-8 py-3 lg:py-4.5
|
|
5450
|
-
"
|
|
5451
|
-
"
|
|
5452
|
-
"hover:
|
|
5453
|
-
"data-[disabled]:
|
|
5429
|
+
"relative flex cursor-pointer items-center outline-hidden transition-colors select-none data-disabled:pointer-events-none",
|
|
5430
|
+
"gap-6 px-8 py-3 text-sm lg:py-4.5",
|
|
5431
|
+
"border-t border-button-secondary-border-default first:border-0 hover:border-button-social-border-hover",
|
|
5432
|
+
"bg-button-secondary-background-default text-button-secondary-foreground-default",
|
|
5433
|
+
"hover:bg-button-secondary-background-hover hover:text-button-secondary-foreground-hover",
|
|
5434
|
+
"data-[disabled]:bg-button-secondary-background-disabled data-[disabled]:text-button-secondary-foreground-disabled",
|
|
5454
5435
|
inset && "pl-8",
|
|
5455
5436
|
className
|
|
5456
5437
|
),
|
|
@@ -5526,11 +5507,11 @@ var UserMenu = ({ session }) => {
|
|
|
5526
5507
|
/* @__PURE__ */ jsxs40(DropdownMenuLabel2, { className: "flex gap-3 px-5 py-4.5", children: [
|
|
5527
5508
|
/* @__PURE__ */ jsx86(UserAvatar, { disabled: true, initials }),
|
|
5528
5509
|
/* @__PURE__ */ jsxs40("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
|
|
5529
|
-
/* @__PURE__ */ jsx86("div", { className: "text-interface-foreground-default-primary
|
|
5530
|
-
initials.secondary && /* @__PURE__ */ jsx86("div", { className: "text-interface-foreground-default-tertiary
|
|
5510
|
+
/* @__PURE__ */ jsx86("div", { className: "leading-tight font-medium text-interface-foreground-default-primary", children: initials.primary }),
|
|
5511
|
+
initials.secondary && /* @__PURE__ */ jsx86("div", { className: "leading-tight text-interface-foreground-default-tertiary", children: initials.secondary })
|
|
5531
5512
|
] })
|
|
5532
5513
|
] }),
|
|
5533
|
-
/* @__PURE__ */ jsx86(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs40("a", { href:
|
|
5514
|
+
/* @__PURE__ */ jsx86(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs40("a", { href: config.project.settings_ui_url, children: [
|
|
5534
5515
|
/* @__PURE__ */ jsx86(settings_default, { size: 16 }),
|
|
5535
5516
|
" User settings"
|
|
5536
5517
|
] }) }),
|
|
@@ -5554,8 +5535,8 @@ var DefaultPageHeader = (_props) => {
|
|
|
5554
5535
|
const { flow } = useOryFlow13();
|
|
5555
5536
|
const config = useOryConfiguration7();
|
|
5556
5537
|
const returnUrl = (_a = flow.return_to) != null ? _a : config.project.default_redirect_url;
|
|
5557
|
-
return /* @__PURE__ */ jsx87("div", { className: "mt-16 flex max-w-
|
|
5558
|
-
/* @__PURE__ */ jsxs41("div", { className: "flex max-h-10 flex-1 justify-between gap-2
|
|
5538
|
+
return /* @__PURE__ */ jsx87("div", { className: "mt-16 flex w-full max-w-(--breakpoint-sm) flex-col gap-3 px-4 md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px]", children: /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-12", children: [
|
|
5539
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex max-h-10 flex-1 items-center justify-between gap-2", children: [
|
|
5559
5540
|
/* @__PURE__ */ jsx87("div", { className: "h-9", children: /* @__PURE__ */ jsx87(Card.Logo, {}) }),
|
|
5560
5541
|
/* @__PURE__ */ jsx87(UserMenu, { session })
|
|
5561
5542
|
] }),
|
|
@@ -5564,7 +5545,7 @@ var DefaultPageHeader = (_props) => {
|
|
|
5564
5545
|
{
|
|
5565
5546
|
"data-testid": "ory/screen/settings/back-button",
|
|
5566
5547
|
href: returnUrl,
|
|
5567
|
-
className: "inline-flex gap-2
|
|
5548
|
+
className: "inline-flex items-center gap-2 text-button-link-default-primary hover:text-button-link-default-primary-hover",
|
|
5568
5549
|
children: [
|
|
5569
5550
|
/* @__PURE__ */ jsx87(arrow_left_default, {}),
|
|
5570
5551
|
" ",
|
|
@@ -5601,7 +5582,7 @@ function DefaultSettingsOidc({
|
|
|
5601
5582
|
const hasLinkButtons = linkButtons.length > 0;
|
|
5602
5583
|
const hasUnlinkButtons = unlinkButtons.length > 0;
|
|
5603
5584
|
return /* @__PURE__ */ jsxs42("div", { className: "flex flex-col gap-8", children: [
|
|
5604
|
-
hasLinkButtons && /* @__PURE__ */ jsx89("div", { className: "grid items-start gap-3
|
|
5585
|
+
hasLinkButtons && /* @__PURE__ */ jsx89("div", { className: "grid grid-cols-1 items-start gap-3 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
|
|
5605
5586
|
const attrs = button.attributes;
|
|
5606
5587
|
return /* @__PURE__ */ jsx89(
|
|
5607
5588
|
DefaultButtonSocial,
|
|
@@ -5702,7 +5683,7 @@ function DefaultSettingsPasskey({
|
|
|
5702
5683
|
{
|
|
5703
5684
|
className: "flex justify-between gap-6 md:items-center",
|
|
5704
5685
|
children: [
|
|
5705
|
-
/* @__PURE__ */ jsxs43("div", { className: "flex
|
|
5686
|
+
/* @__PURE__ */ jsxs43("div", { className: "flex flex-1 items-center gap-2 truncate", children: [
|
|
5706
5687
|
/* @__PURE__ */ jsx90(
|
|
5707
5688
|
passkey_default,
|
|
5708
5689
|
{
|
|
@@ -5710,10 +5691,10 @@ function DefaultSettingsPasskey({
|
|
|
5710
5691
|
className: "text-interface-foreground-default-primary"
|
|
5711
5692
|
}
|
|
5712
5693
|
),
|
|
5713
|
-
/* @__PURE__ */ jsxs43("div", { className: "flex-1 flex-col md:flex-row md:items-center
|
|
5694
|
+
/* @__PURE__ */ jsxs43("div", { className: "flex flex-1 flex-col gap-4 truncate md:flex-row md:items-center md:justify-between", children: [
|
|
5714
5695
|
/* @__PURE__ */ jsxs43("div", { className: "flex-1 flex-col truncate", children: [
|
|
5715
|
-
/* @__PURE__ */ jsx90("p", { className: "text-sm font-medium text-interface-foreground-default-secondary
|
|
5716
|
-
/* @__PURE__ */ jsx90("span", { className: "text-sm text-interface-foreground-default-tertiary
|
|
5696
|
+
/* @__PURE__ */ jsx90("p", { className: "truncate text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
|
|
5697
|
+
/* @__PURE__ */ jsx90("span", { className: "hidden truncate text-sm text-interface-foreground-default-tertiary sm:block", children: keyId })
|
|
5717
5698
|
] }),
|
|
5718
5699
|
addedAt && /* @__PURE__ */ jsx90("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
|
|
5719
5700
|
dateStyle: "long"
|
|
@@ -5790,7 +5771,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
5790
5771
|
const hasCodes = codes.length >= 1;
|
|
5791
5772
|
return /* @__PURE__ */ jsxs44("div", { className: "flex flex-col gap-8", children: [
|
|
5792
5773
|
codes.length > 0 && /* @__PURE__ */ jsx93(DefaultHorizontalDivider, {}),
|
|
5793
|
-
/* @__PURE__ */ jsxs44("div", { className: "flex gap-4
|
|
5774
|
+
/* @__PURE__ */ jsxs44("div", { className: "flex justify-between gap-4", children: [
|
|
5794
5775
|
/* @__PURE__ */ jsx93("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
|
|
5795
5776
|
/* @__PURE__ */ jsxs44("div", { className: "flex gap-2", children: [
|
|
5796
5777
|
regnerateButton && codes.length > 0 && /* @__PURE__ */ jsx93(
|
|
@@ -5847,10 +5828,10 @@ function DefaultSettingsRecoveryCodes({
|
|
|
5847
5828
|
)
|
|
5848
5829
|
] })
|
|
5849
5830
|
] }),
|
|
5850
|
-
hasCodes ? /* @__PURE__ */ jsx93("div", { className: "rounded-general
|
|
5831
|
+
hasCodes ? /* @__PURE__ */ jsx93("div", { className: "rounded-general border-interface-border-default-primary bg-interface-background-default-secondary p-6", children: /* @__PURE__ */ jsx93(
|
|
5851
5832
|
"div",
|
|
5852
5833
|
{
|
|
5853
|
-
className: "grid grid-cols-2
|
|
5834
|
+
className: "grid grid-cols-2 flex-wrap gap-4 text-sm text-interface-foreground-default-primary sm:grid-cols-3 md:grid-cols-5",
|
|
5854
5835
|
"data-testid": "ory/screen/settings/group/recovery_code/codes",
|
|
5855
5836
|
children: codes.map((code) => /* @__PURE__ */ jsx93("p", { children: code }, code))
|
|
5856
5837
|
}
|
|
@@ -5895,7 +5876,7 @@ function DefaultSettingsTotp({
|
|
|
5895
5876
|
return /* @__PURE__ */ jsxs45("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
|
|
5896
5877
|
/* @__PURE__ */ jsx95("div", { className: "col-span-full", children: /* @__PURE__ */ jsx95(Card.Divider, {}) }),
|
|
5897
5878
|
/* @__PURE__ */ jsxs45("div", { className: "col-span-full flex items-center gap-6", children: [
|
|
5898
|
-
/* @__PURE__ */ jsx95("div", { className: "aspect-square size-8
|
|
5879
|
+
/* @__PURE__ */ jsx95("div", { className: "aspect-square size-8", children: /* @__PURE__ */ jsx95(qrcode_default, { size: 32 }) }),
|
|
5899
5880
|
/* @__PURE__ */ jsx95("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx95("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
|
|
5900
5881
|
/* @__PURE__ */ jsx95(
|
|
5901
5882
|
"button",
|
|
@@ -5919,7 +5900,7 @@ function DefaultSettingsTotp({
|
|
|
5919
5900
|
if (totpImage && totpSecret && totpInput) {
|
|
5920
5901
|
return /* @__PURE__ */ jsxs45("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
|
|
5921
5902
|
/* @__PURE__ */ jsx95("div", { className: "col-span-full", children: /* @__PURE__ */ jsx95(DefaultHorizontalDivider, {}) }),
|
|
5922
|
-
/* @__PURE__ */ jsx95("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx95("div", { className: "aspect-square h-44
|
|
5903
|
+
/* @__PURE__ */ jsx95("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx95("div", { className: "aspect-square h-44 bg-[white]", children: /* @__PURE__ */ jsx95("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx95(
|
|
5923
5904
|
Node2.Image,
|
|
5924
5905
|
{
|
|
5925
5906
|
node: totpImage,
|
|
@@ -5934,7 +5915,7 @@ function DefaultSettingsTotp({
|
|
|
5934
5915
|
{
|
|
5935
5916
|
node: totpSecret,
|
|
5936
5917
|
attributes: totpSecret.attributes,
|
|
5937
|
-
children: /* @__PURE__ */ jsx95("div", { className: "relative flex
|
|
5918
|
+
children: /* @__PURE__ */ jsx95("div", { className: "relative flex max-w-[488px] justify-stretch", children: /* @__PURE__ */ jsx95(
|
|
5938
5919
|
"input",
|
|
5939
5920
|
{
|
|
5940
5921
|
disabled: true,
|
|
@@ -5992,7 +5973,7 @@ function DefaultSettingsWebauthn({
|
|
|
5992
5973
|
const { Node: Node2, Card } = useComponents9();
|
|
5993
5974
|
const hasRemoveButtons = removeButtons.length > 0;
|
|
5994
5975
|
return /* @__PURE__ */ jsxs46("div", { className: "flex flex-col gap-8", children: [
|
|
5995
|
-
/* @__PURE__ */ jsxs46("div", { className: "flex
|
|
5976
|
+
/* @__PURE__ */ jsxs46("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-end md:max-w-96", children: [
|
|
5996
5977
|
/* @__PURE__ */ jsx97("div", { className: "flex-1", children: /* @__PURE__ */ jsx97(
|
|
5997
5978
|
Node2.Label,
|
|
5998
5979
|
{
|
|
@@ -6029,7 +6010,7 @@ function DefaultSettingsWebauthn({
|
|
|
6029
6010
|
{
|
|
6030
6011
|
className: "flex justify-between gap-6 md:items-center",
|
|
6031
6012
|
children: [
|
|
6032
|
-
/* @__PURE__ */ jsxs46("div", { className: "flex
|
|
6013
|
+
/* @__PURE__ */ jsxs46("div", { className: "flex flex-1 items-center gap-2 truncate", children: [
|
|
6033
6014
|
/* @__PURE__ */ jsx97(
|
|
6034
6015
|
key_default,
|
|
6035
6016
|
{
|
|
@@ -6037,10 +6018,10 @@ function DefaultSettingsWebauthn({
|
|
|
6037
6018
|
className: "text-interface-foreground-default-primary"
|
|
6038
6019
|
}
|
|
6039
6020
|
),
|
|
6040
|
-
/* @__PURE__ */ jsxs46("div", { className: "flex-1 flex-col md:flex-row md:items-center
|
|
6021
|
+
/* @__PURE__ */ jsxs46("div", { className: "flex flex-1 flex-col gap-4 truncate md:flex-row md:items-center md:justify-between", children: [
|
|
6041
6022
|
/* @__PURE__ */ jsxs46("div", { className: "flex-1 flex-col truncate", children: [
|
|
6042
|
-
/* @__PURE__ */ jsx97("p", { className: "text-sm font-medium text-interface-foreground-default-secondary
|
|
6043
|
-
/* @__PURE__ */ jsx97("span", { className: "text-sm text-interface-foreground-default-tertiary
|
|
6023
|
+
/* @__PURE__ */ jsx97("p", { className: "truncate text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
|
|
6024
|
+
/* @__PURE__ */ jsx97("span", { className: "hidden truncate text-sm text-interface-foreground-default-tertiary sm:block", children: keyId })
|
|
6044
6025
|
] }),
|
|
6045
6026
|
addedAt && /* @__PURE__ */ jsx97("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
|
|
6046
6027
|
dateStyle: "long"
|
|
@@ -6196,12 +6177,12 @@ function DefaultConsentScopeCheckbox({
|
|
|
6196
6177
|
children: /* @__PURE__ */ jsx103(
|
|
6197
6178
|
Switch.Root,
|
|
6198
6179
|
{
|
|
6199
|
-
className: "relative
|
|
6180
|
+
className: "relative h-4 w-7 rounded-identifier border border-toggle-border-default bg-toggle-background-default p-[3px] transition-all data-[state=checked]:border-toggle-border-checked data-[state=checked]:bg-toggle-background-checked",
|
|
6200
6181
|
"data-testid": `ory/screen/consent/scope-checkbox`,
|
|
6201
6182
|
value: attributes.value,
|
|
6202
6183
|
onCheckedChange,
|
|
6203
6184
|
defaultChecked: true,
|
|
6204
|
-
children: /* @__PURE__ */ jsx103(Switch.Thumb, { className: "size-2
|
|
6185
|
+
children: /* @__PURE__ */ jsx103(Switch.Thumb, { className: "block size-2 rounded-identifier bg-toggle-foreground-default transition-all data-[state=checked]:translate-x-3 data-[state=checked]:bg-toggle-foreground-checked" })
|
|
6205
6186
|
}
|
|
6206
6187
|
)
|
|
6207
6188
|
}
|
|
@@ -6226,7 +6207,7 @@ function DefaultToast({
|
|
|
6226
6207
|
return /* @__PURE__ */ jsxs47(
|
|
6227
6208
|
"div",
|
|
6228
6209
|
{
|
|
6229
|
-
className: "rounded-cards
|
|
6210
|
+
className: "flex-col rounded-cards border border-interface-border-default-primary bg-interface-background-default-inverted p-5",
|
|
6230
6211
|
...messageTestId5(message),
|
|
6231
6212
|
children: [
|
|
6232
6213
|
/* @__PURE__ */ jsx104(
|
|
@@ -6378,29 +6359,29 @@ function Error2({
|
|
|
6378
6359
|
/* @__PURE__ */ jsxs48("header", { className: "flex flex-col gap-8 antialiased", children: [
|
|
6379
6360
|
/* @__PURE__ */ jsx105("div", { className: "max-h-9 self-start", children: /* @__PURE__ */ jsx105(ErrorLogo, {}) }),
|
|
6380
6361
|
/* @__PURE__ */ jsxs48("div", { className: "flex flex-col gap-2", children: [
|
|
6381
|
-
/* @__PURE__ */ jsx105("h2", { className: "text-lg font-semibold
|
|
6362
|
+
/* @__PURE__ */ jsx105("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "error.title.what-happened" }) }),
|
|
6382
6363
|
/* @__PURE__ */ jsx105("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
|
|
6383
6364
|
parsed.reason && /* @__PURE__ */ jsx105("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
|
|
6384
6365
|
] })
|
|
6385
6366
|
] }),
|
|
6386
6367
|
/* @__PURE__ */ jsx105(Divider, {}),
|
|
6387
6368
|
/* @__PURE__ */ jsxs48("div", { className: "flex flex-col gap-2", children: [
|
|
6388
|
-
/* @__PURE__ */ jsx105("h2", { className: "text-lg font-semibold
|
|
6369
|
+
/* @__PURE__ */ jsx105("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "error.title.what-can-i-do" }) }),
|
|
6389
6370
|
/* @__PURE__ */ jsx105("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "error.instructions" }) }),
|
|
6390
6371
|
/* @__PURE__ */ jsx105("div", { children: session ? /* @__PURE__ */ jsx105(LoggedInActions, {}) : /* @__PURE__ */ jsx105(GoBackButton, {}) })
|
|
6391
6372
|
] }),
|
|
6392
6373
|
/* @__PURE__ */ jsx105(Divider, {}),
|
|
6393
|
-
/* @__PURE__ */ jsxs48("div", { className: "
|
|
6394
|
-
/* @__PURE__ */ jsx105("span", { className: "text-interface-foreground-default-primary
|
|
6395
|
-
parsed.id && /* @__PURE__ */ jsxs48("p", { className: "text-interface-foreground-default-secondary
|
|
6374
|
+
/* @__PURE__ */ jsxs48("div", { className: "flex flex-col gap-2 leading-normal font-normal antialiased", children: [
|
|
6375
|
+
/* @__PURE__ */ jsx105("span", { className: "text-sm text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx105(FormattedMessage, { id: "error.footer.text" }) }),
|
|
6376
|
+
parsed.id && /* @__PURE__ */ jsxs48("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
|
|
6396
6377
|
"ID: ",
|
|
6397
6378
|
/* @__PURE__ */ jsx105("code", { children: parsed.id })
|
|
6398
6379
|
] }),
|
|
6399
|
-
/* @__PURE__ */ jsxs48("p", { className: "text-interface-foreground-default-secondary
|
|
6380
|
+
/* @__PURE__ */ jsxs48("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
|
|
6400
6381
|
"Time: ",
|
|
6401
6382
|
/* @__PURE__ */ jsx105("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
|
|
6402
6383
|
] }),
|
|
6403
|
-
/* @__PURE__ */ jsxs48("p", { className: "text-interface-foreground-default-secondary
|
|
6384
|
+
/* @__PURE__ */ jsxs48("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
|
|
6404
6385
|
"Message: ",
|
|
6405
6386
|
/* @__PURE__ */ jsx105("code", { children: parsed.reason })
|
|
6406
6387
|
] }),
|
|
@@ -6457,7 +6438,7 @@ function ErrorLogo() {
|
|
|
6457
6438
|
if (project.logo_light_url) {
|
|
6458
6439
|
return /* @__PURE__ */ jsx105("img", { src: project.logo_light_url, className: "h-full", alt: "Logo" });
|
|
6459
6440
|
}
|
|
6460
|
-
return /* @__PURE__ */ jsx105("h1", { className: "text-xl font-semibold
|
|
6441
|
+
return /* @__PURE__ */ jsx105("h1", { className: "text-xl leading-normal font-semibold text-interface-foreground-default-primary", children: project.name });
|
|
6461
6442
|
}
|
|
6462
6443
|
|
|
6463
6444
|
// src/theme/default/flows/login.tsx
|
|
@@ -6545,12 +6526,14 @@ import {
|
|
|
6545
6526
|
OryProvider as OryProvider4,
|
|
6546
6527
|
OrySettingsCard as OrySettingsCard2
|
|
6547
6528
|
} from "@ory/elements-react";
|
|
6548
|
-
import {
|
|
6529
|
+
import { jsx as jsx109, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6549
6530
|
function Settings({
|
|
6550
6531
|
flow,
|
|
6551
6532
|
config,
|
|
6552
6533
|
children,
|
|
6553
|
-
components: flowOverrideComponents
|
|
6534
|
+
components: flowOverrideComponents,
|
|
6535
|
+
className,
|
|
6536
|
+
...rest
|
|
6554
6537
|
}) {
|
|
6555
6538
|
const components = getOryComponents(flowOverrideComponents);
|
|
6556
6539
|
return /* @__PURE__ */ jsx109(
|
|
@@ -6560,10 +6543,10 @@ function Settings({
|
|
|
6560
6543
|
flow,
|
|
6561
6544
|
flowType: FlowType22.Settings,
|
|
6562
6545
|
components,
|
|
6563
|
-
children: children != null ? children : /* @__PURE__ */ jsxs49(
|
|
6546
|
+
children: children != null ? children : /* @__PURE__ */ jsx109("div", { className: cn("ory-elements", className), ...rest, children: /* @__PURE__ */ jsxs49("div", { className: "flex flex-col items-center justify-start gap-8 pb-12 font-sans-default", children: [
|
|
6564
6547
|
/* @__PURE__ */ jsx109(OryPageHeader, {}),
|
|
6565
6548
|
/* @__PURE__ */ jsx109(OrySettingsCard2, {})
|
|
6566
|
-
] })
|
|
6549
|
+
] }) })
|
|
6567
6550
|
}
|
|
6568
6551
|
);
|
|
6569
6552
|
}
|