@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.
@@ -79,7 +79,7 @@ var ory_badge_vertical_default = SvgOryBadgeVertical;
79
79
  // src/theme/default/components/card/badge.tsx
80
80
  var import_jsx_runtime3 = require("react/jsx-runtime");
81
81
  function Badge() {
82
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "absolute bg-ory-background-default text-ory-foreground-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: [
82
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("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: [
83
83
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ory_badge_horizontal_default, { width: 22, height: 8, className: "sm:hidden" }),
84
84
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ory_badge_vertical_default, { width: 8, height: 22, className: "max-sm:hidden" })
85
85
  ] });
@@ -185,7 +185,7 @@ function nodesToAuthMethodGroups(nodes, excludeAuthMethods = []) {
185
185
  );
186
186
  }
187
187
  var findNode = (nodes, opt) => nodes.find((n) => {
188
- 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);
188
+ 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);
189
189
  });
190
190
  function isNodeVisible(node) {
191
191
  if ((0, import_client_fetch2.isUiNodeScriptAttributes)(node.attributes)) {
@@ -229,14 +229,6 @@ var OryFlowContext = (0, import_react4.createContext)(null);
229
229
  // src/context/config.tsx
230
230
  var import_react5 = require("react");
231
231
 
232
- // src/client/config.ts
233
- function isProduction() {
234
- var _a, _b;
235
- return ["production", "prod"].indexOf(
236
- (_b = (_a = process.env.VERCEL_ENV) != null ? _a : process.env.NODE_ENV) != null ? _b : ""
237
- ) > -1;
238
- }
239
-
240
232
  // src/util/client.ts
241
233
  var import_client_fetch6 = require("@ory/client-fetch");
242
234
  function frontendClient(sdkUrl, opts = {}) {
@@ -270,47 +262,10 @@ var defaultProject = {
270
262
  locale_behavior: "force_default"
271
263
  };
272
264
  var OryConfigurationContext = (0, import_react5.createContext)({
273
- sdk: computeSdkConfig({}),
265
+ sdk: null,
266
+ // This is fine, because we always supply a proper default value for the SDK configuration in the provider
274
267
  project: defaultProject
275
268
  });
276
- function computeSdkConfig(config) {
277
- if ((config == null ? void 0 : config.url) && typeof config.url === "string") {
278
- return {
279
- url: config.url.replace(/\/$/, ""),
280
- options: config.options || {}
281
- };
282
- }
283
- return {
284
- url: getSDKUrl(),
285
- options: (config == null ? void 0 : config.options) || {}
286
- };
287
- }
288
- function getSDKUrl() {
289
- var _a;
290
- if (typeof process !== "undefined" && process.versions && process.versions.node) {
291
- if (isProduction()) {
292
- const sdkUrl = (_a = process.env["NEXT_PUBLIC_ORY_SDK_URL"]) != null ? _a : process.env["ORY_SDK_URL"];
293
- if (!sdkUrl) {
294
- throw new Error(
295
- "Unable to determine SDK URL. Please set NEXT_PUBLIC_ORY_SDK_URL and/or ORY_SDK_URL in production environments."
296
- );
297
- }
298
- return sdkUrl.replace(/\/$/, "");
299
- } else {
300
- if (process.env["__NEXT_PRIVATE_ORIGIN"]) {
301
- return process.env["__NEXT_PRIVATE_ORIGIN"].replace(/\/$/, "");
302
- } else if (process.env["VERCEL_URL"]) {
303
- return `https://${process.env["VERCEL_URL"]}`.replace(/\/$/, "");
304
- }
305
- }
306
- }
307
- if (typeof window !== "undefined") {
308
- return window.location.origin;
309
- }
310
- throw new Error(
311
- "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."
312
- );
313
- }
314
269
 
315
270
  // src/context/intl-context.tsx
316
271
  var import_react8 = require("react");
@@ -516,7 +471,7 @@ var en_default = {
516
471
  "identities.messages.1010011": "Sign in with hardware key",
517
472
  "identities.messages.1010012": "Prepare your WebAuthn device (e.g. security key, biometrics scanner, ...) and press continue.",
518
473
  "identities.messages.1010013": "Continue",
519
- "identities.messages.1010014": "A code has been sent to the address you provided. If you have not received an message, check the spelling of the address and retry the login.",
474
+ "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.",
520
475
  "identities.messages.1010015": "Send sign in code",
521
476
  "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.',
522
477
  "identities.messages.1010017": "Sign in and link",
@@ -724,7 +679,7 @@ var en_default = {
724
679
  "card.header.parts.oidc": "a social provider",
725
680
  "card.header.parts.password.registration": "your {identifierLabel} and a password",
726
681
  "card.header.parts.password.login": "your {identifierLabel} and password",
727
- "card.header.parts.code": "a code sent to you",
682
+ "card.header.parts.code": "a one-time code",
728
683
  "card.header.parts.passkey": "a Passkey",
729
684
  "card.header.parts.webauthn": "a security key",
730
685
  "card.header.parts.totp": "your authenticator app",
@@ -978,7 +933,7 @@ var de_default = {
978
933
  "identities.messages.4010009": "Die Authentifizierungsmethode stimmt nicht mit der vorherigen Authentifizierungsmethode \xFCberein. Bitte versuchen Sie es erneut.",
979
934
  "identities.messages.4010010": "Die eingegebene Adresse stimmt nicht mit der Adresse \xFCberein, die Sie bei der Registrierung angegeben haben. Bitte versuchen Sie es erneut.",
980
935
  "input.placeholder": "{placeholder} eingeben",
981
- "card.header.parts.code": "einem an Sie gesendeten Code",
936
+ "card.header.parts.code": "ein einmaliger Code",
982
937
  "card.header.parts.identifier-first": "Ihrer {identifierLabel}",
983
938
  "card.header.parts.oidc": "einem Social-Login",
984
939
  "card.header.parts.passkey": "einem Passkey",
@@ -1328,7 +1283,7 @@ var es_default = {
1328
1283
  "card.header.parts.oidc": "un proveedor social",
1329
1284
  "card.header.parts.password.registration": "tu {identifierLabel} y una contrase\xF1a",
1330
1285
  "card.header.parts.password.login": "tu {identifierLabel} y contrase\xF1a",
1331
- "card.header.parts.code": "un c\xF3digo enviado a tu correo electr\xF3nico",
1286
+ "card.header.parts.code": "un c\xF3digo de un solo uso",
1332
1287
  "card.header.parts.passkey": "una clave de acceso",
1333
1288
  "card.header.parts.webauthn": "una clave de seguridad",
1334
1289
  "card.header.parts.totp": "su aplicaci\xF3n de autenticaci\xF3n",
@@ -1617,7 +1572,7 @@ var fr_default = {
1617
1572
  "card.header.parts.passkey": "une cl\xE9 d'acc\xE8s",
1618
1573
  "card.header.parts.webauthn": "une cl\xE9 de s\xE9curit\xE9",
1619
1574
  "card.header.parts.identifier-first": "votre {identifierLabel}",
1620
- "card.header.parts.code": "un code qui vous a \xE9t\xE9 envoy\xE9",
1575
+ "card.header.parts.code": "un code \xE0 usage unique",
1621
1576
  "card.header.parts.totp": "votre application d'authentification",
1622
1577
  "card.header.parts.lookup_secret": "un code de r\xE9cup\xE9ration de secours",
1623
1578
  "card.header.description.login": "Se connecter avec {identifierLabel}",
@@ -1864,7 +1819,7 @@ var nl_default = {
1864
1819
  "input.placeholder": "",
1865
1820
  "card.header.description.login": "",
1866
1821
  "card.header.description.registration": "",
1867
- "card.header.parts.code": "een code die naar je is verzonden",
1822
+ "card.header.parts.code": "een eenmalige code",
1868
1823
  "card.header.parts.totp": "je authenticator-app",
1869
1824
  "card.header.parts.lookup_secret": "een backup herstelcode",
1870
1825
  "card.header.parts.identifier-first": "",
@@ -2161,7 +2116,7 @@ var pl_default = {
2161
2116
  "card.header.parts.password.login": "",
2162
2117
  "card.header.parts.password.registration": "",
2163
2118
  "card.header.parts.webauthn": "",
2164
- "card.header.parts.code": "kod wys\u0142any do Ciebie",
2119
+ "card.header.parts.code": "jednorazowy kod",
2165
2120
  "card.header.parts.totp": "Twoja aplikacja uwierzytelniaj\u0105ca",
2166
2121
  "card.header.parts.lookup_secret": "kod odzyskiwania kopii zapasowej",
2167
2122
  "forms.label.forgot-password": "",
@@ -2446,7 +2401,7 @@ var pt_default = {
2446
2401
  "input.placeholder": "",
2447
2402
  "card.header.description.login": "",
2448
2403
  "card.header.description.registration": "",
2449
- "card.header.parts.code": "um c\xF3digo enviado para voc\xEA",
2404
+ "card.header.parts.code": "um c\xF3digo de uso \xFAnico",
2450
2405
  "card.header.parts.totp": "seu aplicativo autenticador",
2451
2406
  "card.header.parts.lookup_secret": "um c\xF3digo de recupera\xE7\xE3o de backup",
2452
2407
  "card.header.parts.identifier-first": "",
@@ -2737,7 +2692,7 @@ var sv_default = {
2737
2692
  "input.placeholder": "Ange din {placeholder}",
2738
2693
  "card.header.description.login": "Logga in med {identifierLabel}",
2739
2694
  "card.header.description.registration": "Registrera dig med {identifierLabel}",
2740
- "card.header.parts.code": "en kod skickad till dig",
2695
+ "card.header.parts.code": "en eng\xE5ngskod",
2741
2696
  "card.header.parts.totp": "din autentiseringsapp",
2742
2697
  "card.header.parts.lookup_secret": "en s\xE4kerhetskopieringskod",
2743
2698
  "card.header.parts.identifier-first": "din {identifierLabel}",
@@ -3049,7 +3004,7 @@ var no_default = {
3049
3004
  "card.header.parts.oidc": "en sosial leverand\xF8r",
3050
3005
  "card.header.parts.password.registration": "din {identifierLabel} og et passord",
3051
3006
  "card.header.parts.password.login": "din {identifierLabel} og passord",
3052
- "card.header.parts.code": "en kode sendt til deg",
3007
+ "card.header.parts.code": "en engangskode",
3053
3008
  "card.header.parts.passkey": "en passkey",
3054
3009
  "card.header.parts.webauthn": "en sikkerhetsn\xF8kkel",
3055
3010
  "card.header.parts.totp": "din autentiseringsapp",
@@ -3248,7 +3203,11 @@ function useClientLogout(config) {
3248
3203
 
3249
3204
  // src/theme/default/utils/url.ts
3250
3205
  function restartFlowUrl(flow, fallback) {
3251
- return flow.request_url || appendReturnTo(fallback, flow.return_to);
3206
+ return flow.request_url || appendReturnToAndIdentitySchema(
3207
+ fallback,
3208
+ flow.return_to,
3209
+ flow.identity_schema
3210
+ );
3252
3211
  }
3253
3212
  function initFlowUrl(sdkUrl, flowType, flow) {
3254
3213
  const result = `${sdkUrl}/self-service/${flowType}/browser`;
@@ -3256,6 +3215,9 @@ function initFlowUrl(sdkUrl, flowType, flow) {
3256
3215
  if (flow.oauth2_login_challenge) {
3257
3216
  qs.set("login_challenge", flow.oauth2_login_challenge);
3258
3217
  }
3218
+ if (flow.identity_schema) {
3219
+ qs.set("identity_schema", flow.identity_schema);
3220
+ }
3259
3221
  if (flow.return_to) {
3260
3222
  qs.set("return_to", flow.return_to);
3261
3223
  } else if (typeof window !== "undefined") {
@@ -3269,12 +3231,14 @@ function initFlowUrl(sdkUrl, flowType, flow) {
3269
3231
  }
3270
3232
  return result + "?" + qs.toString();
3271
3233
  }
3272
- function appendReturnTo(url, returnTo) {
3273
- if (!returnTo) {
3274
- return url;
3275
- }
3234
+ function appendReturnToAndIdentitySchema(url, returnTo, identitySchema) {
3276
3235
  const urlObj = new URL(url);
3277
- urlObj.searchParams.set("return_to", returnTo);
3236
+ if (returnTo) {
3237
+ urlObj.searchParams.set("return_to", returnTo);
3238
+ }
3239
+ if (identitySchema) {
3240
+ urlObj.searchParams.set("identity_schema", identitySchema);
3241
+ }
3278
3242
  return urlObj.toString();
3279
3243
  }
3280
3244
 
@@ -3333,7 +3297,7 @@ function LoginCardFooter({ flow }) {
3333
3297
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(LogoutButton, { returnTo });
3334
3298
  }
3335
3299
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
3336
- formState.current === "provide_identifier" && config.project.registration_enabled && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
3300
+ formState.current === "provide_identifier" && config.project.registration_enabled && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
3337
3301
  intl.formatMessage({
3338
3302
  id: "login.registration-label",
3339
3303
  defaultMessage: "No account?"
@@ -3342,7 +3306,7 @@ function LoginCardFooter({ flow }) {
3342
3306
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3343
3307
  "a",
3344
3308
  {
3345
- className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
3309
+ className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
3346
3310
  href: initFlowUrl(config.sdk.url, "registration", flow),
3347
3311
  "data-testid": "ory/screen/login/action/register",
3348
3312
  children: intl.formatMessage({
@@ -3352,10 +3316,10 @@ function LoginCardFooter({ flow }) {
3352
3316
  }
3353
3317
  )
3354
3318
  ] }),
3355
- authMethods.length > 1 && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3319
+ authMethods.length > 1 && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3356
3320
  "button",
3357
3321
  {
3358
- className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
3322
+ className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
3359
3323
  onClick: () => {
3360
3324
  dispatchFormState({
3361
3325
  type: "action_clear_active_method"
@@ -3367,10 +3331,10 @@ function LoginCardFooter({ flow }) {
3367
3331
  })
3368
3332
  }
3369
3333
  ) }),
3370
- authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3334
+ authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3371
3335
  "a",
3372
3336
  {
3373
- className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
3337
+ className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
3374
3338
  href: returnTo,
3375
3339
  "data-testid": "ory/screen/login/action/cancel",
3376
3340
  children: intl.formatMessage({
@@ -3384,7 +3348,7 @@ function LogoutButton({ returnTo }) {
3384
3348
  const config = (0, import_elements_react3.useOryConfiguration)();
3385
3349
  const intl = (0, import_react_intl10.useIntl)();
3386
3350
  const { logoutFlow: logout, didLoad: didLoadLogout } = useClientLogout(config);
3387
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
3351
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
3388
3352
  intl.formatMessage({
3389
3353
  id: "login.2fa.go-back"
3390
3354
  }),
@@ -3392,7 +3356,7 @@ function LogoutButton({ returnTo }) {
3392
3356
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3393
3357
  "a",
3394
3358
  {
3395
- className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
3359
+ className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
3396
3360
  href: logout ? logout == null ? void 0 : logout.logout_url : returnTo,
3397
3361
  "data-testid": (
3398
3362
  // Only add the test-id when the logout link has loaded.
@@ -3417,10 +3381,10 @@ function RegistrationCardFooter() {
3417
3381
  if (!screenSelectionNode || Object.entries(authMethodBlocks).length < 2) {
3418
3382
  return null;
3419
3383
  }
3420
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3384
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3421
3385
  "button",
3422
3386
  {
3423
- className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
3387
+ className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
3424
3388
  onClick: () => {
3425
3389
  dispatchFormState({
3426
3390
  type: "action_clear_active_method"
@@ -3436,7 +3400,7 @@ function RegistrationCardFooter() {
3436
3400
  ) });
3437
3401
  case "select_method":
3438
3402
  default:
3439
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
3403
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
3440
3404
  intl.formatMessage({
3441
3405
  id: "registration.login-label",
3442
3406
  defaultMessage: "Already have an account?"
@@ -3445,7 +3409,7 @@ function RegistrationCardFooter() {
3445
3409
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3446
3410
  "a",
3447
3411
  {
3448
- className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
3412
+ className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
3449
3413
  href: initFlowUrl(config.sdk.url, "login", flow),
3450
3414
  "data-testid": "ory/screen/registration/action/login",
3451
3415
  children: intl.formatMessage({
@@ -3471,13 +3435,13 @@ function ConsentCardFooter({ flow }) {
3471
3435
  node_type: "input",
3472
3436
  name: "remember"
3473
3437
  });
3474
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex gap-8 flex-col", children: [
3438
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col gap-8", children: [
3475
3439
  /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
3476
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { className: "text-interface-foreground-default-secondary leading-normal font-medium", children: [
3440
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { className: "leading-normal font-medium text-interface-foreground-default-secondary", children: [
3477
3441
  "Make sure you trust ",
3478
3442
  (_a = flow.consent_request.client) == null ? void 0 : _a.client_name
3479
3443
  ] }),
3480
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-interface-foreground-default-secondary leading-normal", children: "You may be sharing sensitive information with this site or application." })
3444
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: "You may be sharing sensitive information with this site or application." })
3481
3445
  ] }),
3482
3446
  rememberNode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3483
3447
  Node2.Checkbox,
@@ -3486,7 +3450,7 @@ function ConsentCardFooter({ flow }) {
3486
3450
  node: rememberNode
3487
3451
  }
3488
3452
  ),
3489
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-2", children: flow.ui.nodes.filter(
3453
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-1 gap-2 md:grid-cols-2", children: flow.ui.nodes.filter(
3490
3454
  (n) => n.attributes.node_type === "input" && n.attributes.type === "submit"
3491
3455
  ).map((n) => {
3492
3456
  const attributes = n.attributes;
@@ -3524,7 +3488,7 @@ function joinWithCommaOr(list, orText = "or") {
3524
3488
  }
3525
3489
  }
3526
3490
  function useCardHeaderText(container, opts) {
3527
- var _a, _b, _c, _d, _e, _f, _g;
3491
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
3528
3492
  const nodes = container.nodes;
3529
3493
  const intl = (0, import_react_intl11.useIntl)();
3530
3494
  switch (opts.flowType) {
@@ -3680,7 +3644,14 @@ function useCardHeaderText(container, opts) {
3680
3644
  }
3681
3645
  }
3682
3646
  switch (opts.flowType) {
3683
- case import_client_fetch30.FlowType.Login:
3647
+ case import_client_fetch30.FlowType.Login: {
3648
+ const codeMethodNode = findNode(container.nodes, {
3649
+ node_type: "input",
3650
+ group: "code",
3651
+ name: "code",
3652
+ type: "text"
3653
+ });
3654
+ const codeSent = codeMethodNode && ((_d = opts.formState) == null ? void 0 : _d.current) === "method_active" && ((_e = opts.formState) == null ? void 0 : _e.method) === "code";
3684
3655
  if (opts.flow.refresh) {
3685
3656
  return {
3686
3657
  title: intl.formatMessage({
@@ -3688,7 +3659,7 @@ function useCardHeaderText(container, opts) {
3688
3659
  }),
3689
3660
  description: intl.formatMessage(
3690
3661
  {
3691
- id: "login.subtitle-refresh"
3662
+ id: codeSent ? "identities.messages.1010014" : "login.subtitle-refresh"
3692
3663
  },
3693
3664
  {
3694
3665
  parts: joinWithCommaOr(parts)
@@ -3701,7 +3672,7 @@ function useCardHeaderText(container, opts) {
3701
3672
  id: "login.title-aal2"
3702
3673
  }),
3703
3674
  description: intl.formatMessage({
3704
- id: ((_d = opts.formState) == null ? void 0 : _d.current) === "method_active" ? `login.${opts.formState.method}.subtitle` : "login.subtitle-aal2"
3675
+ id: codeSent ? "identities.messages.1010014" : ((_f = opts.formState) == null ? void 0 : _f.current) === "method_active" ? `login.${opts.formState.method}.subtitle` : "login.subtitle-aal2"
3705
3676
  })
3706
3677
  };
3707
3678
  }
@@ -3711,7 +3682,7 @@ function useCardHeaderText(container, opts) {
3711
3682
  }),
3712
3683
  description: parts.length > 0 ? intl.formatMessage(
3713
3684
  {
3714
- id: "login.subtitle"
3685
+ id: codeSent ? "identities.messages.1010014" : "login.subtitle"
3715
3686
  },
3716
3687
  {
3717
3688
  parts: joinWithCommaOr(
@@ -3721,12 +3692,20 @@ function useCardHeaderText(container, opts) {
3721
3692
  }
3722
3693
  ) : ""
3723
3694
  };
3724
- case import_client_fetch30.FlowType.Registration:
3695
+ }
3696
+ case import_client_fetch30.FlowType.Registration: {
3697
+ const codeMethodNode = findNode(container.nodes, {
3698
+ node_type: "input",
3699
+ group: "code",
3700
+ name: "code",
3701
+ type: "text"
3702
+ });
3703
+ const codeSent = codeMethodNode && ((_g = opts.formState) == null ? void 0 : _g.current) === "method_active" && ((_h = opts.formState) == null ? void 0 : _h.method) === "code";
3725
3704
  return {
3726
3705
  title: intl.formatMessage({
3727
3706
  id: "registration.title"
3728
3707
  }),
3729
- description: parts.length > 0 ? intl.formatMessage(
3708
+ description: codeSent ? intl.formatMessage({ id: "identities.messages.1040005" }) : parts.length > 0 ? intl.formatMessage(
3730
3709
  {
3731
3710
  id: "registration.subtitle"
3732
3711
  },
@@ -3738,6 +3717,7 @@ function useCardHeaderText(container, opts) {
3738
3717
  }
3739
3718
  ) : ""
3740
3719
  };
3720
+ }
3741
3721
  case import_client_fetch30.FlowType.OAuth2Consent:
3742
3722
  return {
3743
3723
  title: intl.formatMessage(
@@ -3745,7 +3725,7 @@ function useCardHeaderText(container, opts) {
3745
3725
  id: "consent.title"
3746
3726
  },
3747
3727
  {
3748
- party: (_e = opts.flow.consent_request.client) == null ? void 0 : _e.client_name
3728
+ party: (_i = opts.flow.consent_request.client) == null ? void 0 : _i.client_name
3749
3729
  }
3750
3730
  ),
3751
3731
  description: intl.formatMessage(
@@ -3753,7 +3733,7 @@ function useCardHeaderText(container, opts) {
3753
3733
  id: "consent.subtitle"
3754
3734
  },
3755
3735
  {
3756
- identifier: (_g = (_f = opts.flow.session.identity) == null ? void 0 : _f.traits.email) != null ? _g : ""
3736
+ identifier: (_k = (_j = opts.flow.session.identity) == null ? void 0 : _j.traits.email) != null ? _k : ""
3757
3737
  }
3758
3738
  )
3759
3739
  };
@@ -3860,7 +3840,7 @@ function DefaultCurrentIdentifierButton() {
3860
3840
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3861
3841
  "button",
3862
3842
  {
3863
- 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",
3843
+ 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",
3864
3844
  ...omitInputAttributes(nodeBackButton),
3865
3845
  type: "submit",
3866
3846
  onClick: () => {
@@ -3883,7 +3863,7 @@ function DefaultCurrentIdentifierButton() {
3883
3863
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
3884
3864
  }
3885
3865
  ),
3886
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "overflow-hidden text-ellipsis text-nowrap text-sm font-medium text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton == null ? void 0 : nodeBackButton.value })
3866
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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 })
3887
3867
  ] })
3888
3868
  }
3889
3869
  )
@@ -3892,7 +3872,7 @@ function DefaultCurrentIdentifierButton() {
3892
3872
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3893
3873
  "a",
3894
3874
  {
3895
- 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",
3875
+ 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",
3896
3876
  ...omitInputAttributes(nodeBackButton),
3897
3877
  href: initFlowUrl2,
3898
3878
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
@@ -3906,7 +3886,7 @@ function DefaultCurrentIdentifierButton() {
3906
3886
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
3907
3887
  }
3908
3888
  ),
3909
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "overflow-hidden text-ellipsis text-nowrap text-sm font-medium text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton == null ? void 0 : nodeBackButton.value })
3889
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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 })
3910
3890
  ] })
3911
3891
  }
3912
3892
  );
@@ -3958,7 +3938,7 @@ function InnerCardHeader({
3958
3938
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
3959
3939
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Card.Logo, {}),
3960
3940
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-2", children: [
3961
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: title }),
3941
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: title }),
3962
3942
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3963
3943
  "p",
3964
3944
  {
@@ -3995,16 +3975,7 @@ function DefaultCardLogo() {
3995
3975
  }
3996
3976
  );
3997
3977
  }
3998
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: config.project.name });
3999
- }
4000
-
4001
- // src/theme/default/components/card/index.tsx
4002
- var import_jsx_runtime40 = require("react/jsx-runtime");
4003
- function DefaultCard({ children }) {
4004
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("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__ */ (0, import_jsx_runtime40.jsxs)("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: [
4005
- children,
4006
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Badge, {})
4007
- ] }) });
3978
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h1", { className: "text-xl leading-normal font-semibold text-interface-foreground-default-primary", children: config.project.name });
4008
3979
  }
4009
3980
 
4010
3981
  // src/theme/default/utils/cn.ts
@@ -4014,6 +3985,19 @@ function cn(...inputs) {
4014
3985
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
4015
3986
  }
4016
3987
 
3988
+ // src/theme/default/components/card/index.tsx
3989
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3990
+ function DefaultCard({
3991
+ children,
3992
+ className,
3993
+ ...rest
3994
+ }) {
3995
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("ory-elements", className), ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("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__ */ (0, import_jsx_runtime40.jsxs)("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: [
3996
+ children,
3997
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Badge, {})
3998
+ ] }) }) });
3999
+ }
4000
+
4017
4001
  // src/theme/default/components/form/index.tsx
4018
4002
  var import_react_intl13 = require("react-intl");
4019
4003
  var import_elements_react8 = require("@ory/elements-react");
@@ -4209,7 +4193,7 @@ function Spinner({ className }) {
4209
4193
  "aria-hidden": "true",
4210
4194
  role: "status",
4211
4195
  className: cn(
4212
- "absolute pointer-events-none inset-0 m-auto size-8 animate-spin",
4196
+ "pointer-events-none absolute inset-0 m-auto size-8 animate-spin",
4213
4197
  className
4214
4198
  ),
4215
4199
  viewBox: "0 0 34 34",
@@ -4285,7 +4269,7 @@ function DefaultButtonSocial({
4285
4269
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
4286
4270
  "button",
4287
4271
  {
4288
- 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",
4272
+ 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",
4289
4273
  value: attributes.value,
4290
4274
  type: "submit",
4291
4275
  name: "provider",
@@ -4296,10 +4280,10 @@ function DefaultButtonSocial({
4296
4280
  "aria-label": label,
4297
4281
  ...omitInputAttributes(rest),
4298
4282
  children: [
4299
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Logo, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(GenericLogo, { label: provider.slice(0, 1) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Spinner, { className: "size-5" }) }),
4283
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "relative size-5", children: !clicked ? Logo ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Logo, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(GenericLogo, { label: provider.slice(0, 1) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Spinner, { className: "size-5" }) }),
4300
4284
  showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
4301
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "grow text-center font-medium leading-none text-button-social-foreground-default", children: label }),
4302
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "size-5 block" })
4285
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "grow text-center leading-none font-medium text-button-social-foreground-default", children: label }),
4286
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "block size-5" })
4303
4287
  ] }) : null
4304
4288
  ]
4305
4289
  }
@@ -4324,7 +4308,7 @@ function DefaultSocialButtonContainer({
4324
4308
  );
4325
4309
  }
4326
4310
  function GenericLogo({ label }) {
4327
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "flex rounded-buttons bg-button-social-background-generic-provider text-button-social-foreground-generic-provider border-button-social-border-generic-provider text-xs size-full items-center justify-center", children: label });
4311
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("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 });
4328
4312
  }
4329
4313
 
4330
4314
  // src/theme/default/components/form/index.tsx
@@ -4465,14 +4449,14 @@ function ListItem({
4465
4449
  {
4466
4450
  ...props,
4467
4451
  className: cn(
4468
- "flex cursor-pointer gap-3 text-left items-start w-full rounded-buttons p-2 hover:bg-interface-background-default-primary-hover",
4469
- "disabled:hover:bg-ui-transparent disabled:cursor-default disabled:opacity-50",
4452
+ "flex w-full cursor-pointer items-start gap-3 rounded-buttons p-2 text-left hover:bg-interface-background-default-primary-hover",
4453
+ "disabled:cursor-default disabled:opacity-50 disabled:hover:bg-ui-transparent",
4470
4454
  className
4471
4455
  ),
4472
4456
  children: [
4473
4457
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "mt-1", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
4474
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "flex-1 leading-normal inline-flex flex-col max-w-full min-w-1", children: [
4475
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
4458
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "inline-flex max-w-full min-w-1 flex-1 flex-col leading-normal", children: [
4459
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "break-words text-interface-foreground-default-primary", children: title }),
4476
4460
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4477
4461
  ] }),
4478
4462
  children
@@ -4628,10 +4612,10 @@ var import_react13 = require("react");
4628
4612
  var import_jsx_runtime66 = require("react/jsx-runtime");
4629
4613
  var buttonStyles = (0, import_class_variance_authority.cva)(
4630
4614
  [
4631
- "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
4615
+ "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none font-medium ring-1 ring-inset",
4632
4616
  "disabled:cursor-not-allowed loading:cursor-wait loading:before:pointer-events-none",
4633
4617
  "transition-colors duration-100 ease-linear",
4634
- "p-4 max-w-[488px]"
4618
+ "max-w-[488px] p-4"
4635
4619
  ],
4636
4620
  {
4637
4621
  variants: {
@@ -4651,9 +4635,6 @@ var buttonStyles = (0, import_class_variance_authority.cva)(
4651
4635
  "loading:bg-button-secondary-background-default loading:text-button-secondary-foreground-default loading:ring-button-secondary-border-default",
4652
4636
  "loading:before:absolute loading:before:inset-0 loading:before:bg-button-secondary-background-default loading:before:opacity-80 loading:before:content-['']"
4653
4637
  ]
4654
- },
4655
- defaultVariants: {
4656
- intent: "primary"
4657
4638
  }
4658
4639
  }
4659
4640
  }
@@ -4736,7 +4717,7 @@ function computeLabelElements(labelText) {
4736
4717
  href: url,
4737
4718
  target: "_blank",
4738
4719
  rel: "noopener noreferrer",
4739
- className: "text-button-link-brand-brand hover:text-button-link-brand-brand-hover underline",
4720
+ className: "text-button-link-brand-brand underline hover:text-button-link-brand-brand-hover",
4740
4721
  children: linkText
4741
4722
  },
4742
4723
  matchStart
@@ -4764,7 +4745,7 @@ function CheckboxSVG() {
4764
4745
  return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4765
4746
  "svg",
4766
4747
  {
4767
- className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
4748
+ className: "absolute hidden size-4 fill-checkbox-foreground-checked peer-checked:block",
4768
4749
  xmlns: "http://www.w3.org/2000/svg",
4769
4750
  width: "16",
4770
4751
  height: "16",
@@ -4799,7 +4780,7 @@ var DefaultCheckbox = ({
4799
4780
  defaultChecked: Boolean(value),
4800
4781
  type: "checkbox",
4801
4782
  className: cn(
4802
- "peer size-4 border appearance-none rounded-forms bg-checkbox-background-default border-checkbox-border-checkbox-border-default checked:bg-checkbox-background-checked checked:border-checkbox-border-checkbox-border-checked",
4783
+ "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",
4803
4784
  hasError && "border-interface-border-validation-danger"
4804
4785
  ),
4805
4786
  "data-testid": `ory/form/node/input/${name}`,
@@ -4809,7 +4790,7 @@ var DefaultCheckbox = ({
4809
4790
  /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckboxSVG, {})
4810
4791
  ] }),
4811
4792
  /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "flex flex-col", children: [
4812
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckboxLabel, { label }) }),
4793
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "leading-tight font-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckboxLabel, { label }) }),
4813
4794
  node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4814
4795
  "span",
4815
4796
  {
@@ -4911,11 +4892,11 @@ var eye_default = SvgEye;
4911
4892
  // src/theme/default/components/form/input.tsx
4912
4893
  var import_jsx_runtime74 = require("react/jsx-runtime");
4913
4894
  var defaultInputClassName = cn(
4914
- "antialiased rounded-forms border leading-tight transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus-visible:outline-none focus:ring-0 w-full",
4915
- "bg-input-background-default border-input-border-default text-input-foreground-primary",
4916
- "disabled:bg-input-background-disabled disabled:border-input-border-disabled disabled:text-input-foreground-disabled",
4895
+ "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",
4896
+ "border-input-border-default bg-input-background-default text-input-foreground-primary",
4897
+ "disabled:border-input-border-disabled disabled:bg-input-background-disabled disabled:text-input-foreground-disabled",
4917
4898
  "focus:border-input-border-focus focus-visible:border-input-border-focus",
4918
- "hover:bg-input-background-hover hover:border-input-border-hover",
4899
+ "hover:border-input-border-hover hover:bg-input-background-hover",
4919
4900
  "px-4 py-[13px]"
4920
4901
  );
4921
4902
  var DefaultInput = ({
@@ -4994,7 +4975,7 @@ function PasswordToggle({
4994
4975
  "button",
4995
4976
  {
4996
4977
  onClick: handleClick,
4997
- className: "absolute right-0 h-full w-12 flex items-center justify-center text-input-foreground-primary",
4978
+ className: "absolute right-0 flex h-full w-12 items-center justify-center text-input-foreground-primary",
4998
4979
  type: "button",
4999
4980
  "aria-label": "Toggle password visibility",
5000
4981
  children: shown ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_default, {})
@@ -5053,7 +5034,7 @@ function DefaultLabel({
5053
5034
  name: resendNode.attributes.name,
5054
5035
  value: resendNode.attributes.value,
5055
5036
  onClick: handleResend,
5056
- className: "cursor-pointer text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
5037
+ className: "cursor-pointer text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
5057
5038
  children: intl.formatMessage({ id: "identities.messages.1070008" })
5058
5039
  }
5059
5040
  )
@@ -5102,7 +5083,7 @@ function LabelAction({ attributes }) {
5102
5083
  "a",
5103
5084
  {
5104
5085
  href: action.href,
5105
- className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
5086
+ className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
5106
5087
  children: action.message
5107
5088
  }
5108
5089
  ) : null;
@@ -5125,7 +5106,7 @@ var DefaultLinkButton = (0, import_react17.forwardRef)(({ attributes, node }, re
5125
5106
  title: label ? (0, import_elements_react15.uiTextToFormattedMessage)(label, intl) : "",
5126
5107
  "data-testid": `ory/form/node/link/${attributes.id}`,
5127
5108
  className: cn(
5128
- "antialiased rounded cursor-pointer text-center border gap-3 leading-none bg-button-primary-background-default hover:bg-button-primary-background-hover transition-colors text-button-primary-foreground-default hover:text-button-primary-foreground-hover p-4 font-medium"
5109
+ "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"
5129
5110
  ),
5130
5111
  children: label ? (0, import_elements_react15.uiTextToFormattedMessage)(label, intl) : ""
5131
5112
  }
@@ -5145,7 +5126,7 @@ var InputOTP = React26.forwardRef(({ className, containerClassName, ...props },
5145
5126
  {
5146
5127
  ref,
5147
5128
  containerClassName: cn(
5148
- "flex items-center gap-2 has-[:disabled]:opacity-50",
5129
+ "flex items-center gap-2 has-disabled:opacity-50",
5149
5130
  containerClassName
5150
5131
  ),
5151
5132
  className: cn("disabled:cursor-not-allowed", className),
@@ -5163,8 +5144,8 @@ var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
5163
5144
  {
5164
5145
  ref,
5165
5146
  className: cn(
5166
- "rounded-forms border border-solid bg-input-background-default text-input-foreground-primary py-[15px] text-center focus-visible:outline-none w-full",
5167
- "relative flex items-center justify-center transition-all leading-none",
5147
+ "w-full rounded-forms border border-solid bg-input-background-default py-[15px] text-center text-input-foreground-primary focus-visible:outline-hidden",
5148
+ "relative flex items-center justify-center leading-none transition-all",
5168
5149
  isActive ? "border-input-border-focus" : "border-input-border-default",
5169
5150
  className
5170
5151
  ),
@@ -5202,7 +5183,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
5202
5183
  InputOTPGroup,
5203
5184
  {
5204
5185
  className: cn(
5205
- "w-full flex gap-2 justify-stretch",
5186
+ "flex w-full justify-stretch gap-2",
5206
5187
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
5207
5188
  flowType === import_client_fetch40.FlowType.Settings && "max-w-[488px]"
5208
5189
  ),
@@ -5223,7 +5204,7 @@ var DefaultFormSection = ({
5223
5204
  return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5224
5205
  "form",
5225
5206
  {
5226
- className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
5207
+ className: "flex w-full max-w-(--breakpoint-sm) flex-col px-4 md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px]",
5227
5208
  ...rest,
5228
5209
  children
5229
5210
  }
@@ -5374,8 +5355,8 @@ var DropdownMenuContent = (0, import_react18.forwardRef)(({ className, sideOffse
5374
5355
  sideOffset,
5375
5356
  align: "end",
5376
5357
  className: cn(
5377
- "z-50 min-w-[19rem] overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
5378
- "border border-interface-border-default-primary bg-interface-background-default-primary rounded-cards",
5358
+ "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",
5359
+ "rounded-cards border border-interface-border-default-primary bg-interface-background-default-primary",
5379
5360
  className
5380
5361
  ),
5381
5362
  ...props
@@ -5387,12 +5368,12 @@ var DropdownMenuItem = (0, import_react18.forwardRef)(({ className, inset, ...pr
5387
5368
  {
5388
5369
  ref,
5389
5370
  className: cn(
5390
- "relative flex cursor-pointer select-none items-center outline-none transition-colors data-[disabled]:pointer-events-none",
5391
- "px-8 py-3 lg:py-4.5 text-sm gap-6",
5392
- "first:border-0 border-t border-button-secondary-border-default hover:border-button-social-border-hover",
5393
- "text-button-secondary-foreground-default bg-button-secondary-background-default",
5394
- "hover:text-button-secondary-foreground-hover hover:bg-button-secondary-background-hover",
5395
- "data-[disabled]:text-button-secondary-foreground-disabled data-[disabled]:bg-button-secondary-background-disabled",
5371
+ "relative flex cursor-pointer items-center outline-hidden transition-colors select-none data-disabled:pointer-events-none",
5372
+ "gap-6 px-8 py-3 text-sm lg:py-4.5",
5373
+ "border-t border-button-secondary-border-default first:border-0 hover:border-button-social-border-hover",
5374
+ "bg-button-secondary-background-default text-button-secondary-foreground-default",
5375
+ "hover:bg-button-secondary-background-hover hover:text-button-secondary-foreground-hover",
5376
+ "data-[disabled]:bg-button-secondary-background-disabled data-[disabled]:text-button-secondary-foreground-disabled",
5396
5377
  inset && "pl-8",
5397
5378
  className
5398
5379
  ),
@@ -5468,11 +5449,11 @@ var UserMenu = ({ session }) => {
5468
5449
  /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
5469
5450
  /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserAvatar, { disabled: true, initials }),
5470
5451
  /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
5471
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
5472
- initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
5452
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "leading-tight font-medium text-interface-foreground-default-primary", children: initials.primary }),
5453
+ initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "leading-tight text-interface-foreground-default-tertiary", children: initials.secondary })
5473
5454
  ] })
5474
5455
  ] }),
5475
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("a", { href: "/settings", children: [
5456
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("a", { href: config.project.settings_ui_url, children: [
5476
5457
  /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(settings_default, { size: 16 }),
5477
5458
  " User settings"
5478
5459
  ] }) }),
@@ -5496,8 +5477,8 @@ var DefaultPageHeader = (_props) => {
5496
5477
  const { flow } = (0, import_elements_react19.useOryFlow)();
5497
5478
  const config = (0, import_elements_react19.useOryConfiguration)();
5498
5479
  const returnUrl = (_a = flow.return_to) != null ? _a : config.project.default_redirect_url;
5499
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("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__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-12", children: [
5500
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2 items-center", children: [
5480
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("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__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-12", children: [
5481
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex max-h-10 flex-1 items-center justify-between gap-2", children: [
5501
5482
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "h-9", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Card.Logo, {}) }),
5502
5483
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserMenu, { session })
5503
5484
  ] }),
@@ -5506,7 +5487,7 @@ var DefaultPageHeader = (_props) => {
5506
5487
  {
5507
5488
  "data-testid": "ory/screen/settings/back-button",
5508
5489
  href: returnUrl,
5509
- className: "inline-flex gap-2 items-center text-button-link-default-primary hover:text-button-link-default-primary-hover",
5490
+ className: "inline-flex items-center gap-2 text-button-link-default-primary hover:text-button-link-default-primary-hover",
5510
5491
  children: [
5511
5492
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(arrow_left_default, {}),
5512
5493
  " ",
@@ -5543,7 +5524,7 @@ function DefaultSettingsOidc({
5543
5524
  const hasLinkButtons = linkButtons.length > 0;
5544
5525
  const hasUnlinkButtons = unlinkButtons.length > 0;
5545
5526
  return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-8", children: [
5546
- hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
5527
+ hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "grid grid-cols-1 items-start gap-3 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
5547
5528
  const attrs = button.attributes;
5548
5529
  return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5549
5530
  DefaultButtonSocial,
@@ -5644,7 +5625,7 @@ function DefaultSettingsPasskey({
5644
5625
  {
5645
5626
  className: "flex justify-between gap-6 md:items-center",
5646
5627
  children: [
5647
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5628
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-1 items-center gap-2 truncate", children: [
5648
5629
  /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5649
5630
  passkey_default,
5650
5631
  {
@@ -5652,10 +5633,10 @@ function DefaultSettingsPasskey({
5652
5633
  className: "text-interface-foreground-default-primary"
5653
5634
  }
5654
5635
  ),
5655
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5636
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-1 flex-col gap-4 truncate md:flex-row md:items-center md:justify-between", children: [
5656
5637
  /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5657
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5658
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5638
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "truncate text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
5639
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "hidden truncate text-sm text-interface-foreground-default-tertiary sm:block", children: keyId })
5659
5640
  ] }),
5660
5641
  addedAt && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5661
5642
  dateStyle: "long"
@@ -5732,7 +5713,7 @@ function DefaultSettingsRecoveryCodes({
5732
5713
  const hasCodes = codes.length >= 1;
5733
5714
  return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-8", children: [
5734
5715
  codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(DefaultHorizontalDivider, {}),
5735
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-4 justify-between", children: [
5716
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex justify-between gap-4", children: [
5736
5717
  /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5737
5718
  /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-2", children: [
5738
5719
  regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
@@ -5789,10 +5770,10 @@ function DefaultSettingsRecoveryCodes({
5789
5770
  )
5790
5771
  ] })
5791
5772
  ] }),
5792
- hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5773
+ hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "rounded-general border-interface-border-default-primary bg-interface-background-default-secondary p-6", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5793
5774
  "div",
5794
5775
  {
5795
- className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
5776
+ className: "grid grid-cols-2 flex-wrap gap-4 text-sm text-interface-foreground-default-primary sm:grid-cols-3 md:grid-cols-5",
5796
5777
  "data-testid": "ory/screen/settings/group/recovery_code/codes",
5797
5778
  children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { children: code }, code))
5798
5779
  }
@@ -5837,7 +5818,7 @@ function DefaultSettingsTotp({
5837
5818
  return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5838
5819
  /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Card.Divider, {}) }),
5839
5820
  /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
5840
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(qrcode_default, { size: 32 }) }),
5821
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square size-8", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(qrcode_default, { size: 32 }) }),
5841
5822
  /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
5842
5823
  /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5843
5824
  "button",
@@ -5861,7 +5842,7 @@ function DefaultSettingsTotp({
5861
5842
  if (totpImage && totpSecret && totpInput) {
5862
5843
  return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5863
5844
  /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DefaultHorizontalDivider, {}) }),
5864
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5845
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square h-44 bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5865
5846
  Node2.Image,
5866
5847
  {
5867
5848
  node: totpImage,
@@ -5876,7 +5857,7 @@ function DefaultSettingsTotp({
5876
5857
  {
5877
5858
  node: totpSecret,
5878
5859
  attributes: totpSecret.attributes,
5879
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5860
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "relative flex max-w-[488px] justify-stretch", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5880
5861
  "input",
5881
5862
  {
5882
5863
  disabled: true,
@@ -5934,7 +5915,7 @@ function DefaultSettingsWebauthn({
5934
5915
  const { Node: Node2, Card } = (0, import_elements_react22.useComponents)();
5935
5916
  const hasRemoveButtons = removeButtons.length > 0;
5936
5917
  return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-8", children: [
5937
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
5918
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-end md:max-w-96", children: [
5938
5919
  /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5939
5920
  Node2.Label,
5940
5921
  {
@@ -5971,7 +5952,7 @@ function DefaultSettingsWebauthn({
5971
5952
  {
5972
5953
  className: "flex justify-between gap-6 md:items-center",
5973
5954
  children: [
5974
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5955
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-1 items-center gap-2 truncate", children: [
5975
5956
  /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5976
5957
  key_default,
5977
5958
  {
@@ -5979,10 +5960,10 @@ function DefaultSettingsWebauthn({
5979
5960
  className: "text-interface-foreground-default-primary"
5980
5961
  }
5981
5962
  ),
5982
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5963
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-1 flex-col gap-4 truncate md:flex-row md:items-center md:justify-between", children: [
5983
5964
  /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5984
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5985
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5965
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "truncate text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
5966
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "hidden truncate text-sm text-interface-foreground-default-tertiary sm:block", children: keyId })
5986
5967
  ] }),
5987
5968
  addedAt && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5988
5969
  dateStyle: "long"
@@ -6138,12 +6119,12 @@ function DefaultConsentScopeCheckbox({
6138
6119
  children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
6139
6120
  Switch.Root,
6140
6121
  {
6141
- className: "relative w-7 h-4 bg-toggle-background-default rounded-identifier border-toggle-border-default border p-[3px] data-[state=checked]:bg-toggle-background-checked transition-all data-[state=checked]:border-toggle-border-checked",
6122
+ 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",
6142
6123
  "data-testid": `ory/screen/consent/scope-checkbox`,
6143
6124
  value: attributes.value,
6144
6125
  onCheckedChange,
6145
6126
  defaultChecked: true,
6146
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Switch.Thumb, { className: "size-2 block bg-toggle-foreground-default rounded-identifier data-[state=checked]:bg-toggle-foreground-checked transition-all data-[state=checked]:translate-x-3" })
6127
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(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" })
6147
6128
  }
6148
6129
  )
6149
6130
  }
@@ -6165,7 +6146,7 @@ function DefaultToast({
6165
6146
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
6166
6147
  "div",
6167
6148
  {
6168
- className: "rounded-cards bg-interface-background-default-inverted border border-interface-border-default-primary p-5 flex-col",
6149
+ className: "flex-col rounded-cards border border-interface-border-default-primary bg-interface-background-default-inverted p-5",
6169
6150
  ...(0, import_elements_react23.messageTestId)(message),
6170
6151
  children: [
6171
6152
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
@@ -6311,29 +6292,29 @@ function Error2({
6311
6292
  /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
6312
6293
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "max-h-9 self-start", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ErrorLogo, {}) }),
6313
6294
  /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col gap-2", children: [
6314
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.title.what-happened" }) }),
6295
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.title.what-happened" }) }),
6315
6296
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
6316
6297
  parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
6317
6298
  ] })
6318
6299
  ] }),
6319
6300
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Divider, {}),
6320
6301
  /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col gap-2", children: [
6321
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
6302
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
6322
6303
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.instructions" }) }),
6323
6304
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(LoggedInActions, {}) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(GoBackButton, {}) })
6324
6305
  ] }),
6325
6306
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Divider, {}),
6326
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
6327
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.footer.text" }) }),
6328
- parsed.id && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
6307
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col gap-2 leading-normal font-normal antialiased", children: [
6308
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: "text-sm text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.footer.text" }) }),
6309
+ parsed.id && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
6329
6310
  "ID: ",
6330
6311
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("code", { children: parsed.id })
6331
6312
  ] }),
6332
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
6313
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
6333
6314
  "Time: ",
6334
6315
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
6335
6316
  ] }),
6336
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
6317
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
6337
6318
  "Message: ",
6338
6319
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("code", { children: parsed.reason })
6339
6320
  ] }),
@@ -6390,7 +6371,7 @@ function ErrorLogo() {
6390
6371
  if (project.logo_light_url) {
6391
6372
  return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("img", { src: project.logo_light_url, className: "h-full", alt: "Logo" });
6392
6373
  }
6393
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: project.name });
6374
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h1", { className: "text-xl leading-normal font-semibold text-interface-foreground-default-primary", children: project.name });
6394
6375
  }
6395
6376
 
6396
6377
  // src/theme/default/flows/login.tsx
@@ -6470,7 +6451,9 @@ function Settings({
6470
6451
  flow,
6471
6452
  config,
6472
6453
  children,
6473
- components: flowOverrideComponents
6454
+ components: flowOverrideComponents,
6455
+ className,
6456
+ ...rest
6474
6457
  }) {
6475
6458
  const components = getOryComponents(flowOverrideComponents);
6476
6459
  return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
@@ -6480,10 +6463,10 @@ function Settings({
6480
6463
  flow,
6481
6464
  flowType: import_client_fetch46.FlowType.Settings,
6482
6465
  components,
6483
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
6466
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: cn("ory-elements", className), ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex flex-col items-center justify-start gap-8 pb-12 font-sans-default", children: [
6484
6467
  /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react28.OryPageHeader, {}),
6485
6468
  /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react28.OrySettingsCard, {})
6486
- ] })
6469
+ ] }) })
6487
6470
  }
6488
6471
  );
6489
6472
  }