@ory/elements-react 1.0.0-next.17 → 1.0.0-next.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/api-report/elements-react-client.api.json +144 -16
  3. package/api-report/elements-react-client.api.md +19 -8
  4. package/api-report/elements-react-theme.api.json +47 -0
  5. package/api-report/elements-react-theme.api.md +5 -2
  6. package/api-report/elements-react.api.json +7 -3
  7. package/api-report/elements-react.api.md +4 -2
  8. package/api-report/temp/elements-react-client.api.md +19 -8
  9. package/api-report/temp/elements-react-theme.api.md +5 -2
  10. package/api-report/temp/elements-react.api.md +4 -2
  11. package/dist/client/config.d.mts +21 -0
  12. package/dist/client/config.d.ts +21 -0
  13. package/dist/client/config.js +77 -0
  14. package/dist/client/config.js.map +1 -0
  15. package/dist/client/config.mjs +51 -0
  16. package/dist/client/config.mjs.map +1 -0
  17. package/dist/client/frontendClient.d.mts +3 -1
  18. package/dist/client/frontendClient.d.ts +3 -1
  19. package/dist/client/frontendClient.js +14 -2
  20. package/dist/client/frontendClient.js.map +1 -1
  21. package/dist/client/frontendClient.mjs +14 -2
  22. package/dist/client/frontendClient.mjs.map +1 -1
  23. package/dist/client/index.d.mts +3 -1
  24. package/dist/client/index.d.ts +3 -1
  25. package/dist/client/index.js +4 -0
  26. package/dist/client/index.js.map +1 -1
  27. package/dist/client/index.mjs +5 -0
  28. package/dist/client/index.mjs.map +1 -1
  29. package/dist/client/session-provider.d.mts +62 -0
  30. package/dist/client/session-provider.d.ts +62 -0
  31. package/dist/client/session-provider.js +96 -0
  32. package/dist/client/session-provider.js.map +1 -0
  33. package/dist/client/session-provider.mjs +71 -0
  34. package/dist/client/session-provider.mjs.map +1 -0
  35. package/dist/client/useSession.d.mts +22 -31
  36. package/dist/client/useSession.d.ts +22 -31
  37. package/dist/client/useSession.js +7 -49
  38. package/dist/client/useSession.js.map +1 -1
  39. package/dist/client/useSession.mjs +8 -49
  40. package/dist/client/useSession.mjs.map +1 -1
  41. package/dist/index.d.mts +5 -4
  42. package/dist/index.d.ts +5 -4
  43. package/dist/index.js +46 -24
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +49 -27
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/theme/default/index.css +358 -251
  48. package/dist/theme/default/index.css.map +1 -1
  49. package/dist/theme/default/index.d.mts +4 -2
  50. package/dist/theme/default/index.d.ts +4 -2
  51. package/dist/theme/default/index.js +605 -531
  52. package/dist/theme/default/index.js.map +1 -1
  53. package/dist/theme/default/index.mjs +536 -463
  54. package/dist/theme/default/index.mjs.map +1 -1
  55. package/jest.config.ts +1 -1
  56. package/package.json +2 -1
  57. package/postcss.config.ts +1 -0
  58. package/tailwind.config.ts +14 -13
  59. package/tsconfig.json +4 -3
  60. package/variables-processed.json +385 -187
  61. package/.eslintrc.js +0 -63
@@ -6,8 +6,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  var SvgOryBadgeHorizontal = (props) => {
7
7
  var _a, _b;
8
8
  return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: [
9
- /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M18.007 8h-1.71l2.007-3.996L16.296 0h1.711l1.145 2.301L20.327 0H22z" }),
10
- /* @__PURE__ */ jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M12.902 4.86a2.47 2.47 0 0 0 1.796-2.365v-.038C14.687 1.097 13.592 0 12.245 0H9.037v1.44l1.208 1.985H9.04V8h1.51V4.949h.633L13.04 8h1.775zm-.876-1.431h.223c.52 0 .943-.427.943-.953a.95.95 0 0 0-.943-.952h-1.39zM4 0a4 4 0 1 0-.001 7.999A4 4 0 0 0 4 0M1.524 4a2.476 2.476 0 1 0 4.952 0 2.476 2.476 0 0 0-4.952 0", clipRule: "evenodd" })
9
+ /* @__PURE__ */ jsx("path", { fill: "#0F172A", d: "M18.007 8h-1.71l2.007-3.996L16.296 0h1.711l1.145 2.301L20.327 0H22z" }),
10
+ /* @__PURE__ */ jsx("path", { fill: "#0F172A", fillRule: "evenodd", d: "M12.902 4.86a2.47 2.47 0 0 0 1.796-2.365v-.038C14.687 1.097 13.592 0 12.245 0H9.037v1.44l1.208 1.985H9.04V8h1.51V4.949h.633L13.04 8h1.775zm-.876-1.431h.223c.52 0 .943-.427.943-.953a.95.95 0 0 0-.943-.952h-1.39zM4 0a4 4 0 1 0-.001 7.999A4 4 0 0 0 4 0M1.524 4a2.476 2.476 0 1 0 4.952 0 2.476 2.476 0 0 0-4.952 0", clipRule: "evenodd" })
11
11
  ] });
12
12
  };
13
13
  var ory_badge_horizontal_default = SvgOryBadgeHorizontal;
@@ -18,8 +18,8 @@ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
18
18
  var SvgOryBadgeVertical = (props) => {
19
19
  var _a, _b;
20
20
  return /* @__PURE__ */ jsxs2("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: [
21
- /* @__PURE__ */ jsx2("path", { fill: "#fff", d: "M8 3.993v1.71L4.004 3.697 0 5.704V3.993l2.301-1.145L0 1.673V0z" }),
22
- /* @__PURE__ */ jsx2("path", { fill: "#fff", fillRule: "evenodd", d: "M4.86 9.099a2.47 2.47 0 0 0-2.365-1.797h-.038C1.097 7.313 0 8.408 0 9.755v3.208h1.44l1.985-1.208v1.204H8v-1.51H4.949v-.633L8 8.96V7.185zm-1.431.875v-.223a.95.95 0 0 0-.953-.943.95.95 0 0 0-.952.943v1.39zM0 18a4 4 0 1 0 8 0 4 4 0 0 0-8 0m4 2.476a2.476 2.476 0 1 0 0-4.952 2.476 2.476 0 0 0 0 4.952", clipRule: "evenodd" })
21
+ /* @__PURE__ */ jsx2("path", { fill: "#0F172A", d: "M8 3.993v1.71L4.004 3.697 0 5.704V3.993l2.301-1.145L0 1.673V0z" }),
22
+ /* @__PURE__ */ jsx2("path", { fill: "#0F172A", fillRule: "evenodd", d: "M4.86 9.099a2.47 2.47 0 0 0-2.365-1.797h-.038C1.097 7.313 0 8.408 0 9.755v3.208h1.44l1.985-1.208v1.204H8v-1.51H4.949v-.633L8 8.96V7.185zm-1.431.875v-.223a.95.95 0 0 0-.953-.943.95.95 0 0 0-.952.943v1.39zM0 18a4 4 0 1 0 8 0 4 4 0 0 0-8 0m4 2.476a2.476 2.476 0 1 0 0-4.952 2.476 2.476 0 0 0 0 4.952", clipRule: "evenodd" })
23
23
  ] });
24
24
  };
25
25
  var ory_badge_vertical_default = SvgOryBadgeVertical;
@@ -27,9 +27,9 @@ 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: "font-bold bg-branding-bg-default absolute max-md:rounded-b-md p-2 max-md:bottom-0 max-md:translate-y-full max-md:left-8 md:right-0 md:translate-x-full md:top-8 md:rounded-r-md", children: [
31
- /* @__PURE__ */ jsx3(ory_badge_horizontal_default, { width: 22, height: 8, className: "md:hidden" }),
32
- /* @__PURE__ */ jsx3(ory_badge_vertical_default, { width: 8, height: 22, className: "max-md:hidden" })
30
+ return /* @__PURE__ */ jsxs3("div", { className: "absolute bg-ory-background-default p-2 font-bold max-sm:bottom-0 max-sm:left-8 max-sm:translate-y-full max-sm:rounded-b-md sm:right-0 sm:top-8 sm:translate-x-full sm:rounded-r-lg border-ory-border-default border max-sm:py-[7px] sm:pl-[7px]", children: [
31
+ /* @__PURE__ */ jsx3(ory_badge_horizontal_default, { width: 22, height: 8, className: "sm:hidden" }),
32
+ /* @__PURE__ */ jsx3(ory_badge_vertical_default, { width: 8, height: 22, className: "max-sm:hidden" })
33
33
  ] });
34
34
  }
35
35
 
@@ -76,7 +76,7 @@ function LoginCardFooter() {
76
76
  if (returnTo) {
77
77
  registrationLink += `?return_to=${returnTo}`;
78
78
  }
79
- return /* @__PURE__ */ jsxs4("span", { className: "text-sm font-normal antialiased leading-normal", children: [
79
+ return /* @__PURE__ */ jsxs4("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
80
80
  intl.formatMessage({
81
81
  id: "login.registration-label",
82
82
  defaultMessage: "No account?"
@@ -85,7 +85,7 @@ function LoginCardFooter() {
85
85
  /* @__PURE__ */ jsx4(
86
86
  "a",
87
87
  {
88
- className: "text-links-link-default hover:underline hover:text-link-hover transition-colors",
88
+ className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
89
89
  href: registrationLink,
90
90
  children: intl.formatMessage({
91
91
  id: "login.registration-button",
@@ -119,10 +119,10 @@ function RegistrationCardFooter() {
119
119
  if (returnTo) {
120
120
  loginLink += `?return_to=${returnTo}`;
121
121
  }
122
- return /* @__PURE__ */ jsx4("span", { className: "text-sm font-normal antialiased leading-normal", children: formState.current === "method_active" ? /* @__PURE__ */ jsx4(Fragment, { children: screenSelectionNode && /* @__PURE__ */ jsx4(
122
+ return /* @__PURE__ */ jsx4("span", { className: "font-normal leading-normal antialiased", children: formState.current === "method_active" ? /* @__PURE__ */ jsx4(Fragment, { children: screenSelectionNode && /* @__PURE__ */ jsx4(
123
123
  "button",
124
124
  {
125
- className: "font-medium text-links-link-default",
125
+ className: "font-medium text-button-link-brand-brand hover:text-button-link-brand-brand-hover",
126
126
  type: "submit",
127
127
  onClick: handleScreenSelection,
128
128
  children: intl.formatMessage({
@@ -139,7 +139,7 @@ function RegistrationCardFooter() {
139
139
  /* @__PURE__ */ jsx4(
140
140
  "a",
141
141
  {
142
- className: "text-links-link-default hover:underline hover:text-link-hover transition-colors",
142
+ className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
143
143
  href: loginLink,
144
144
  children: intl.formatMessage({
145
145
  id: "registration.login-button",
@@ -405,23 +405,24 @@ function DefaultCurrentIdentifierButton() {
405
405
  "autocomplete",
406
406
  "node_type"
407
407
  ]);
408
- return /* @__PURE__ */ jsxs5(
408
+ return /* @__PURE__ */ jsx6(
409
409
  "a",
410
410
  {
411
- className: "cursor-pointer py-[5px] px-3 rounded-full border border-button-identifier-border-default bg-button-identifier-bg-default hover:border-button-identifier-border-hover hover:bg-button-identifier-bg-hover transition-colors inline-flex gap-1 items-center self-start max-w-full",
411
+ className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-full 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",
412
412
  ...attributes,
413
413
  href: initFlowUrl,
414
414
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.attributes.value}`,
415
- children: [
415
+ children: /* @__PURE__ */ jsxs5("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
416
416
  /* @__PURE__ */ jsx6(
417
417
  arrow_left_default,
418
418
  {
419
419
  size: 16,
420
- className: "text-button-identifier-fg-subtle shrink-0"
420
+ stroke: "1",
421
+ className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
421
422
  }
422
423
  ),
423
- /* @__PURE__ */ jsx6("span", { className: "text-sm font-medium text-button-identifier-fg-default text-ellipsis overflow-hidden text-nowrap", children: nodeBackButton == null ? void 0 : nodeBackButton.attributes.value })
424
- ]
424
+ /* @__PURE__ */ jsx6("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.attributes.value })
425
+ ] })
425
426
  }
426
427
  );
427
428
  }
@@ -463,8 +464,8 @@ function InnerCardHeader({ title, text }) {
463
464
  return /* @__PURE__ */ jsxs6("header", { className: "flex flex-col gap-8 antialiased", children: [
464
465
  /* @__PURE__ */ jsx7(Card.Logo, {}),
465
466
  /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-2", children: [
466
- /* @__PURE__ */ jsx7("h2", { className: "font-semibold text-lg text-dialog-fg-default leading-normal", children: title }),
467
- /* @__PURE__ */ jsx7("p", { className: "text-sm leading-normal text-dialog-fg-subtle", children: text }),
467
+ /* @__PURE__ */ jsx7("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: title }),
468
+ /* @__PURE__ */ jsx7("p", { className: "leading-normal text-interface-foreground-default-secondary", children: text }),
468
469
  /* @__PURE__ */ jsx7(DefaultCurrentIdentifierButton, {})
469
470
  ] })
470
471
  ] });
@@ -483,15 +484,21 @@ function DefaultCardLogo() {
483
484
  if (flow.config.logoUrl) {
484
485
  return /* @__PURE__ */ jsx8("img", { src: flow.config.logoUrl, width: 100, height: 36, alt: "Logo" });
485
486
  }
486
- return /* @__PURE__ */ jsx8("h1", { className: "text-xl font-semibold leading-normal text-dialog-fg-default", children: flow.config.name });
487
+ return /* @__PURE__ */ jsx8("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: flow.config.name });
488
+ }
489
+
490
+ // src/theme/default/components/card/layout.tsx
491
+ import { jsx as jsx9 } from "react/jsx-runtime";
492
+ function DefaultCardLayout({ children }) {
493
+ return /* @__PURE__ */ jsx9("main", { className: "p-4 pb-8 flex items-center justify-center flex-col gap-8 min-h-screen", children });
487
494
  }
488
495
 
489
496
  // src/theme/default/components/card/index.tsx
490
- import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
497
+ import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
491
498
  function DefaultCard({ children }) {
492
- return /* @__PURE__ */ jsx9("div", { className: "flex-1 flex-col flex justify-center items-center font-sans", children: /* @__PURE__ */ jsxs7("div", { className: "grid grid-cols-1 max-w-sm md:max-w-[480px] md:w-[480px] gap-8 bg-dialog-bg-default px-8 md:px-12 py-12 md:py-14 relative rounded-border-radius-cards border border-dialog-border-default", children: [
499
+ return /* @__PURE__ */ jsx10("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__ */ jsxs7("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: [
493
500
  children,
494
- /* @__PURE__ */ jsx9(Badge, {})
501
+ /* @__PURE__ */ jsx10(Badge, {})
495
502
  ] }) });
496
503
  }
497
504
 
@@ -519,159 +526,159 @@ import {
519
526
 
520
527
  // src/theme/default/provider-logos/apple.svg
521
528
  import * as React4 from "react";
522
- import { jsx as jsx10 } from "react/jsx-runtime";
529
+ import { jsx as jsx11 } from "react/jsx-runtime";
523
530
  var SvgApple = (props) => {
524
531
  var _a, _b;
525
- return /* @__PURE__ */ jsx10("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx10("path", { fill: "#283544", d: "M27.734 11.55c-.134.078-3.317 1.724-3.317 5.374.15 4.162 4.017 5.621 4.083 5.621-.066.078-.584 1.988-2.116 3.991C25.167 28.261 23.817 30 21.767 30c-1.95 0-2.65-1.15-4.9-1.15-2.416 0-3.1 1.15-4.95 1.15-2.05 0-3.5-1.832-4.782-3.541-1.667-2.236-3.083-5.746-3.133-9.116-.034-1.786.334-3.54 1.266-5.032 1.317-2.081 3.667-3.494 6.233-3.54 1.966-.063 3.716 1.257 4.916 1.257 1.15 0 3.3-1.258 5.733-1.258 1.05.001 3.85.296 5.584 2.78M16.25 8.414c-.35-1.631.616-3.262 1.516-4.302C18.917 2.854 20.734 2 22.3 2c.1 1.63-.534 3.23-1.666 4.395-1.017 1.258-2.767 2.205-4.383 2.019" }) });
532
+ return /* @__PURE__ */ jsx11("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx11("path", { fill: "#283544", d: "M27.734 11.55c-.134.078-3.317 1.724-3.317 5.374.15 4.162 4.017 5.621 4.083 5.621-.066.078-.584 1.988-2.116 3.991C25.167 28.261 23.817 30 21.767 30c-1.95 0-2.65-1.15-4.9-1.15-2.416 0-3.1 1.15-4.95 1.15-2.05 0-3.5-1.832-4.782-3.541-1.667-2.236-3.083-5.746-3.133-9.116-.034-1.786.334-3.54 1.266-5.032 1.317-2.081 3.667-3.494 6.233-3.54 1.966-.063 3.716 1.257 4.916 1.257 1.15 0 3.3-1.258 5.733-1.258 1.05.001 3.85.296 5.584 2.78M16.25 8.414c-.35-1.631.616-3.262 1.516-4.302C18.917 2.854 20.734 2 22.3 2c.1 1.63-.534 3.23-1.666 4.395-1.017 1.258-2.767 2.205-4.383 2.019" }) });
526
533
  };
527
534
  var apple_default = SvgApple;
528
535
 
529
536
  // src/theme/default/provider-logos/auth0.svg
530
537
  import * as React5 from "react";
531
- import { jsx as jsx11 } from "react/jsx-runtime";
538
+ import { jsx as jsx12 } from "react/jsx-runtime";
532
539
  var SvgAuth0 = (props) => {
533
540
  var _a, _b;
534
- return /* @__PURE__ */ jsx11("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx11("path", { fill: "#eb5424", d: "M49.012 51.774 42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z" }) });
541
+ return /* @__PURE__ */ jsx12("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx12("path", { fill: "#eb5424", d: "M49.012 51.774 42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z" }) });
535
542
  };
536
543
  var auth0_default = SvgAuth0;
537
544
 
538
545
  // src/theme/default/provider-logos/discord.svg
539
546
  import * as React6 from "react";
540
- import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
547
+ import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
541
548
  var SvgDiscord = (props) => {
542
549
  var _a, _b;
543
550
  return /* @__PURE__ */ jsxs8("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
544
- /* @__PURE__ */ jsx12("path", { d: "M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h8.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C30 6.56 30 8.24 30 11.6v8.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C25.44 30 23.76 30 20.4 30h-8.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 25.44 2 23.76 2 20.4z" }),
545
- /* @__PURE__ */ jsx12("path", { fill: "#5865F2", d: "M23.636 9.34A18.8 18.8 0 0 0 19.097 8c-.195.332-.424.779-.581 1.134a17.7 17.7 0 0 0-5.03 0A12 12 0 0 0 12.897 8a18.7 18.7 0 0 0-4.542 1.343c-2.872 4.078-3.65 8.055-3.262 11.975a18.6 18.6 0 0 0 5.567 2.68c.448-.58.848-1.195 1.192-1.844a12 12 0 0 1-1.877-.859 9 9 0 0 0 .46-.342c3.62 1.59 7.553 1.59 11.13 0q.225.178.46.342c-.595.337-1.225.626-1.88.86q.516.974 1.191 1.845a18.6 18.6 0 0 0 5.57-2.682c.457-4.544-.78-8.484-3.27-11.978m-11.29 9.567c-1.087 0-1.978-.953-1.978-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116.002 1.16-.872 2.113-1.978 2.113m7.308 0c-1.086 0-1.977-.953-1.977-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116 0 1.16-.872 2.113-1.978 2.113" })
551
+ /* @__PURE__ */ jsx13("path", { d: "M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h8.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C30 6.56 30 8.24 30 11.6v8.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C25.44 30 23.76 30 20.4 30h-8.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 25.44 2 23.76 2 20.4z" }),
552
+ /* @__PURE__ */ jsx13("path", { fill: "#5865F2", d: "M23.636 9.34A18.8 18.8 0 0 0 19.097 8c-.195.332-.424.779-.581 1.134a17.7 17.7 0 0 0-5.03 0A12 12 0 0 0 12.897 8a18.7 18.7 0 0 0-4.542 1.343c-2.872 4.078-3.65 8.055-3.262 11.975a18.6 18.6 0 0 0 5.567 2.68c.448-.58.848-1.195 1.192-1.844a12 12 0 0 1-1.877-.859 9 9 0 0 0 .46-.342c3.62 1.59 7.553 1.59 11.13 0q.225.178.46.342c-.595.337-1.225.626-1.88.86q.516.974 1.191 1.845a18.6 18.6 0 0 0 5.57-2.682c.457-4.544-.78-8.484-3.27-11.978m-11.29 9.567c-1.087 0-1.978-.953-1.978-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116.002 1.16-.872 2.113-1.978 2.113m7.308 0c-1.086 0-1.977-.953-1.977-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116 0 1.16-.872 2.113-1.978 2.113" })
546
553
  ] });
547
554
  };
548
555
  var discord_default = SvgDiscord;
549
556
 
550
557
  // src/theme/default/provider-logos/facebook.svg
551
558
  import * as React7 from "react";
552
- import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
559
+ import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
553
560
  var SvgFacebook = (props) => {
554
561
  var _a, _b;
555
562
  return /* @__PURE__ */ jsxs9("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
556
563
  /* @__PURE__ */ jsxs9("g", { clipPath: "url(#facebook_svg__a)", children: [
557
- /* @__PURE__ */ jsx13("path", { fill: "#1877F2", d: "M24 12c0-6.627-5.373-12-12-12C5.372 0 0 5.374 0 12c0 5.99 4.388 10.954 10.125 11.854V15.47H7.078V12h3.047V9.357c0-3.008 1.791-4.669 4.532-4.669 1.313 0 2.686.234 2.686.234v2.953H15.83c-1.49 0-1.955.925-1.955 1.874V12h3.328l-.532 3.469h-2.796v8.385c5.736-.9 10.124-5.864 10.124-11.854" }),
558
- /* @__PURE__ */ jsx13("path", { fill: "#fff", d: "M16.67 15.469 17.204 12h-3.328V9.75c0-.95.465-1.875 1.955-1.875h1.513V4.922s-1.373-.234-2.686-.234c-2.74 0-4.532 1.661-4.532 4.669V12H7.078v3.469h3.047v8.385a12.1 12.1 0 0 0 3.75 0V15.47z" })
564
+ /* @__PURE__ */ jsx14("path", { fill: "#1877F2", d: "M24 12c0-6.627-5.373-12-12-12C5.372 0 0 5.374 0 12c0 5.99 4.388 10.954 10.125 11.854V15.47H7.078V12h3.047V9.357c0-3.008 1.791-4.669 4.532-4.669 1.313 0 2.686.234 2.686.234v2.953H15.83c-1.49 0-1.955.925-1.955 1.874V12h3.328l-.532 3.469h-2.796v8.385c5.736-.9 10.124-5.864 10.124-11.854" }),
565
+ /* @__PURE__ */ jsx14("path", { fill: "#fff", d: "M16.67 15.469 17.204 12h-3.328V9.75c0-.95.465-1.875 1.955-1.875h1.513V4.922s-1.373-.234-2.686-.234c-2.74 0-4.532 1.661-4.532 4.669V12H7.078v3.469h3.047v8.385a12.1 12.1 0 0 0 3.75 0V15.47z" })
559
566
  ] }),
560
- /* @__PURE__ */ jsx13("defs", { children: /* @__PURE__ */ jsx13("clipPath", { id: "facebook_svg__a", children: /* @__PURE__ */ jsx13("rect", { fill: "#fff" }) }) })
567
+ /* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsx14("clipPath", { id: "facebook_svg__a", children: /* @__PURE__ */ jsx14("rect", { fill: "#fff" }) }) })
561
568
  ] });
562
569
  };
563
570
  var facebook_default = SvgFacebook;
564
571
 
565
572
  // src/theme/default/provider-logos/generic.svg
566
573
  import * as React8 from "react";
567
- import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
574
+ import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
568
575
  var SvgGeneric = (props) => {
569
576
  var _a, _b;
570
577
  return /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, className: "generic_svg__icon generic_svg__icon-tabler generic_svg__icon-tabler-brand-oauth", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
571
- /* @__PURE__ */ jsx14("path", { stroke: "none", d: "M0 0h24v24H0z" }),
572
- /* @__PURE__ */ jsx14("path", { d: "M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0" }),
573
- /* @__PURE__ */ jsx14("path", { d: "M12.556 6c.65 0 1.235.373 1.508.947l2.839 7.848a1.646 1.646 0 0 1-1.01 2.108 1.673 1.673 0 0 1-2.068-.851L13.365 15h-2.73l-.398.905A1.67 1.67 0 0 1 8.26 16.95l-.153-.047a1.647 1.647 0 0 1-1.056-1.956l2.824-7.852a1.66 1.66 0 0 1 1.409-1.087z" })
578
+ /* @__PURE__ */ jsx15("path", { stroke: "none", d: "M0 0h24v24H0z" }),
579
+ /* @__PURE__ */ jsx15("path", { d: "M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0" }),
580
+ /* @__PURE__ */ jsx15("path", { d: "M12.556 6c.65 0 1.235.373 1.508.947l2.839 7.848a1.646 1.646 0 0 1-1.01 2.108 1.673 1.673 0 0 1-2.068-.851L13.365 15h-2.73l-.398.905A1.67 1.67 0 0 1 8.26 16.95l-.153-.047a1.647 1.647 0 0 1-1.056-1.956l2.824-7.852a1.66 1.66 0 0 1 1.409-1.087z" })
574
581
  ] });
575
582
  };
576
583
  var generic_default = SvgGeneric;
577
584
 
578
585
  // src/theme/default/provider-logos/github.svg
579
586
  import * as React9 from "react";
580
- import { jsx as jsx15 } from "react/jsx-runtime";
587
+ import { jsx as jsx16 } from "react/jsx-runtime";
581
588
  var SvgGithub = (props) => {
582
589
  var _a, _b;
583
- return /* @__PURE__ */ jsx15("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx15("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
590
+ return /* @__PURE__ */ jsx16("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx16("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
584
591
  };
585
592
  var github_default = SvgGithub;
586
593
 
587
594
  // src/theme/default/provider-logos/gitlab.svg
588
595
  import * as React10 from "react";
589
- import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
596
+ import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
590
597
  var SvgGitlab = (props) => {
591
598
  var _a, _b;
592
599
  return /* @__PURE__ */ jsxs11("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
593
- /* @__PURE__ */ jsx16("path", { fill: "#E24329", d: "m22.708 10.691-.031-.072-3.015-7.167a.74.74 0 0 0-.31-.34.87.87 0 0 0-.923.045.73.73 0 0 0-.268.37L16.125 9.2H7.881L5.845 3.527a.72.72 0 0 0-.268-.371.87.87 0 0 0-.923-.045.74.74 0 0 0-.31.34l-3.021 7.164-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132 2.272 1.567 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.567 4.62-3.151.012-.009c.968-.666 1.671-1.6 2.006-2.661a4.67 4.67 0 0 0-.15-3.226" }),
594
- /* @__PURE__ */ jsx16("path", { fill: "#FC6D26", d: "m22.708 10.691-.031-.072a10.7 10.7 0 0 0-4.055 1.66L12 16.839l4.218 2.904 4.621-3.152.012-.008c.969-.666 1.674-1.601 2.008-2.664a4.67 4.67 0 0 0-.15-3.228" }),
595
- /* @__PURE__ */ jsx16("path", { fill: "#FCA326", d: "m7.781 19.743 2.273 1.566 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.566S14.255 18.389 12 16.839c-2.255 1.55-4.219 2.904-4.219 2.904" }),
596
- /* @__PURE__ */ jsx16("path", { fill: "#FC6D26", d: "M5.376 12.279a10.7 10.7 0 0 0-4.053-1.664l-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132L12 16.836z" })
600
+ /* @__PURE__ */ jsx17("path", { fill: "#E24329", d: "m22.708 10.691-.031-.072-3.015-7.167a.74.74 0 0 0-.31-.34.87.87 0 0 0-.923.045.73.73 0 0 0-.268.37L16.125 9.2H7.881L5.845 3.527a.72.72 0 0 0-.268-.371.87.87 0 0 0-.923-.045.74.74 0 0 0-.31.34l-3.021 7.164-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132 2.272 1.567 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.567 4.62-3.151.012-.009c.968-.666 1.671-1.6 2.006-2.661a4.67 4.67 0 0 0-.15-3.226" }),
601
+ /* @__PURE__ */ jsx17("path", { fill: "#FC6D26", d: "m22.708 10.691-.031-.072a10.7 10.7 0 0 0-4.055 1.66L12 16.839l4.218 2.904 4.621-3.152.012-.008c.969-.666 1.674-1.601 2.008-2.664a4.67 4.67 0 0 0-.15-3.228" }),
602
+ /* @__PURE__ */ jsx17("path", { fill: "#FCA326", d: "m7.781 19.743 2.273 1.566 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.566S14.255 18.389 12 16.839c-2.255 1.55-4.219 2.904-4.219 2.904" }),
603
+ /* @__PURE__ */ jsx17("path", { fill: "#FC6D26", d: "M5.376 12.279a10.7 10.7 0 0 0-4.053-1.664l-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132L12 16.836z" })
597
604
  ] });
598
605
  };
599
606
  var gitlab_default = SvgGitlab;
600
607
 
601
608
  // src/theme/default/provider-logos/google.svg
602
609
  import * as React11 from "react";
603
- import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
610
+ import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
604
611
  var SvgGoogle = (props) => {
605
612
  var _a, _b;
606
613
  return /* @__PURE__ */ jsxs12("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
607
- /* @__PURE__ */ jsx17("path", { fill: "#4285F4", d: "M30.001 16.31c0-1.15-.095-1.99-.301-2.861H16.287v5.195h7.873c-.159 1.291-1.016 3.236-2.92 4.542l-.027.174 4.24 3.22.294.029c2.699-2.443 4.254-6.036 4.254-10.298" }),
608
- /* @__PURE__ */ jsx17("path", { fill: "#34A853", d: "M16.286 30c3.857 0 7.095-1.244 9.46-3.391l-4.507-3.423c-1.207.825-2.826 1.4-4.953 1.4A8.58 8.58 0 0 1 8.16 18.77l-.167.014-4.41 3.344-.058.157C5.874 26.858 10.7 30 16.286 30" }),
609
- /* @__PURE__ */ jsx17("path", { fill: "#FBBC05", d: "M8.16 18.769a8.5 8.5 0 0 1-.476-2.77c0-.964.174-1.897.46-2.768l-.008-.185-4.465-3.399-.146.068A13.8 13.8 0 0 0 2.001 16c0 2.256.556 4.387 1.524 6.284z" }),
610
- /* @__PURE__ */ jsx17("path", { fill: "#EB4335", d: "M16.286 7.413c2.683 0 4.492 1.136 5.524 2.085l4.032-3.858C23.366 3.384 20.143 2 16.286 2 10.7 2 5.874 5.142 3.524 9.715l4.62 3.516c1.158-3.375 4.365-5.818 8.142-5.818" })
614
+ /* @__PURE__ */ jsx18("path", { fill: "#4285F4", d: "M30.001 16.31c0-1.15-.095-1.99-.301-2.861H16.287v5.195h7.873c-.159 1.291-1.016 3.236-2.92 4.542l-.027.174 4.24 3.22.294.029c2.699-2.443 4.254-6.036 4.254-10.298" }),
615
+ /* @__PURE__ */ jsx18("path", { fill: "#34A853", d: "M16.286 30c3.857 0 7.095-1.244 9.46-3.391l-4.507-3.423c-1.207.825-2.826 1.4-4.953 1.4A8.58 8.58 0 0 1 8.16 18.77l-.167.014-4.41 3.344-.058.157C5.874 26.858 10.7 30 16.286 30" }),
616
+ /* @__PURE__ */ jsx18("path", { fill: "#FBBC05", d: "M8.16 18.769a8.5 8.5 0 0 1-.476-2.77c0-.964.174-1.897.46-2.768l-.008-.185-4.465-3.399-.146.068A13.8 13.8 0 0 0 2.001 16c0 2.256.556 4.387 1.524 6.284z" }),
617
+ /* @__PURE__ */ jsx18("path", { fill: "#EB4335", d: "M16.286 7.413c2.683 0 4.492 1.136 5.524 2.085l4.032-3.858C23.366 3.384 20.143 2 16.286 2 10.7 2 5.874 5.142 3.524 9.715l4.62 3.516c1.158-3.375 4.365-5.818 8.142-5.818" })
611
618
  ] });
612
619
  };
613
620
  var google_default = SvgGoogle;
614
621
 
615
622
  // src/theme/default/provider-logos/linkedin.svg
616
623
  import * as React12 from "react";
617
- import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
624
+ import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
618
625
  var SvgLinkedin = (props) => {
619
626
  var _a, _b;
620
627
  return /* @__PURE__ */ jsxs13("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
621
- /* @__PURE__ */ jsx18("rect", { x: 2, y: 2, fill: "#1275B1", rx: 14 }),
622
- /* @__PURE__ */ jsx18("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
628
+ /* @__PURE__ */ jsx19("rect", { x: 2, y: 2, fill: "#1275B1", rx: 14 }),
629
+ /* @__PURE__ */ jsx19("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
623
630
  ] });
624
631
  };
625
632
  var linkedin_default = SvgLinkedin;
626
633
 
627
634
  // src/theme/default/provider-logos/microsoft.svg
628
635
  import * as React13 from "react";
629
- import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
636
+ import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
630
637
  var SvgMicrosoft = (props) => {
631
638
  var _a, _b;
632
639
  return /* @__PURE__ */ jsxs14("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 23 23", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
633
- /* @__PURE__ */ jsx19("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
634
- /* @__PURE__ */ jsx19("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
635
- /* @__PURE__ */ jsx19("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
636
- /* @__PURE__ */ jsx19("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
640
+ /* @__PURE__ */ jsx20("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
641
+ /* @__PURE__ */ jsx20("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
642
+ /* @__PURE__ */ jsx20("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
643
+ /* @__PURE__ */ jsx20("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
637
644
  ] });
638
645
  };
639
646
  var microsoft_default = SvgMicrosoft;
640
647
 
641
648
  // src/theme/default/provider-logos/slack.svg
642
649
  import * as React14 from "react";
643
- import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
650
+ import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
644
651
  var SvgSlack = (props) => {
645
652
  var _a, _b;
646
653
  return /* @__PURE__ */ jsxs15("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
647
- /* @__PURE__ */ jsx20("path", { fill: "#2EB67D", d: "M26.5 15a2.5 2.5 0 1 0-2.5-2.5V15zm-7 0a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-5 0v7a2.5 2.5 0 0 0 2.5 2.5" }),
648
- /* @__PURE__ */ jsx20("path", { fill: "#E01E5A", d: "M5.5 17A2.5 2.5 0 1 0 8 19.5V17zm7 0a2.5 2.5 0 0 0-2.5 2.5v7a2.5 2.5 0 0 0 5 0v-7a2.5 2.5 0 0 0-2.5-2.5" }),
649
- /* @__PURE__ */ jsx20("path", { fill: "#ECB22E", d: "M17 26.5a2.5 2.5 0 1 0 2.5-2.5H17zm0-7a2.5 2.5 0 0 0 2.5 2.5h7a2.5 2.5 0 0 0 0-5h-7a2.5 2.5 0 0 0-2.5 2.5" }),
650
- /* @__PURE__ */ jsx20("path", { fill: "#36C5F0", d: "M15 5.5A2.5 2.5 0 1 0 12.5 8H15zm0 7a2.5 2.5 0 0 0-2.5-2.5h-7a2.5 2.5 0 0 0 0 5h7a2.5 2.5 0 0 0 2.5-2.5" })
654
+ /* @__PURE__ */ jsx21("path", { fill: "#2EB67D", d: "M26.5 15a2.5 2.5 0 1 0-2.5-2.5V15zm-7 0a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-5 0v7a2.5 2.5 0 0 0 2.5 2.5" }),
655
+ /* @__PURE__ */ jsx21("path", { fill: "#E01E5A", d: "M5.5 17A2.5 2.5 0 1 0 8 19.5V17zm7 0a2.5 2.5 0 0 0-2.5 2.5v7a2.5 2.5 0 0 0 5 0v-7a2.5 2.5 0 0 0-2.5-2.5" }),
656
+ /* @__PURE__ */ jsx21("path", { fill: "#ECB22E", d: "M17 26.5a2.5 2.5 0 1 0 2.5-2.5H17zm0-7a2.5 2.5 0 0 0 2.5 2.5h7a2.5 2.5 0 0 0 0-5h-7a2.5 2.5 0 0 0-2.5 2.5" }),
657
+ /* @__PURE__ */ jsx21("path", { fill: "#36C5F0", d: "M15 5.5A2.5 2.5 0 1 0 12.5 8H15zm0 7a2.5 2.5 0 0 0-2.5-2.5h-7a2.5 2.5 0 0 0 0 5h7a2.5 2.5 0 0 0 2.5-2.5" })
651
658
  ] });
652
659
  };
653
660
  var slack_default = SvgSlack;
654
661
 
655
662
  // src/theme/default/provider-logos/spotify.svg
656
663
  import * as React15 from "react";
657
- import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
664
+ import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
658
665
  var SvgSpotify = (props) => {
659
666
  var _a, _b;
660
667
  return /* @__PURE__ */ jsxs16("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
661
- /* @__PURE__ */ jsx21("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
662
- /* @__PURE__ */ jsx21("path", { fill: "#fff", d: "M22.364 21.623c-.239.38-.75.486-1.148.258-3.141-1.822-7.08-2.232-11.736-1.23-.446.091-.893-.167-.988-.592a.786.786 0 0 1 .621-.94c5.087-1.11 9.456-.639 12.964 1.41a.77.77 0 0 1 .287 1.094m1.627-3.461c-.303.47-.941.607-1.435.334-3.588-2.11-9.058-2.718-13.299-1.488-.558.152-1.132-.137-1.292-.653-.16-.531.144-1.078.702-1.23 4.848-1.396 10.875-.728 15.005 1.686.462.273.622.88.319 1.35m.143-3.613c-4.305-2.43-11.4-2.657-15.515-1.473-.654.197-1.355-.152-1.563-.79-.207-.622.176-1.29.83-1.487 4.72-1.366 12.565-1.093 17.508 1.7.59.334.781 1.063.43 1.625-.334.576-1.1.774-1.69.425" })
668
+ /* @__PURE__ */ jsx22("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
669
+ /* @__PURE__ */ jsx22("path", { fill: "#fff", d: "M22.364 21.623c-.239.38-.75.486-1.148.258-3.141-1.822-7.08-2.232-11.736-1.23-.446.091-.893-.167-.988-.592a.786.786 0 0 1 .621-.94c5.087-1.11 9.456-.639 12.964 1.41a.77.77 0 0 1 .287 1.094m1.627-3.461c-.303.47-.941.607-1.435.334-3.588-2.11-9.058-2.718-13.299-1.488-.558.152-1.132-.137-1.292-.653-.16-.531.144-1.078.702-1.23 4.848-1.396 10.875-.728 15.005 1.686.462.273.622.88.319 1.35m.143-3.613c-4.305-2.43-11.4-2.657-15.515-1.473-.654.197-1.355-.152-1.563-.79-.207-.622.176-1.29.83-1.487 4.72-1.366 12.565-1.093 17.508 1.7.59.334.781 1.063.43 1.625-.334.576-1.1.774-1.69.425" })
663
670
  ] });
664
671
  };
665
672
  var spotify_default = SvgSpotify;
666
673
 
667
674
  // src/theme/default/provider-logos/yandex.svg
668
675
  import * as React16 from "react";
669
- import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
676
+ import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
670
677
  var SvgYandex = (props) => {
671
678
  var _a, _b;
672
679
  return /* @__PURE__ */ jsxs17("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
673
- /* @__PURE__ */ jsx22("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
674
- /* @__PURE__ */ jsx22("path", { fill: "#FC3F1D", d: "M21 25h-3.143V9.435h-1.402c-2.572 0-3.922 1.294-3.922 3.211 0 2.175.935 3.185 2.857 4.48l1.584 1.063L12.403 25H9l4.104-6.086c-2.363-1.684-3.688-3.316-3.688-6.087C9.416 9.357 11.83 7 16.429 7H21z" })
680
+ /* @__PURE__ */ jsx23("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
681
+ /* @__PURE__ */ jsx23("path", { fill: "#FC3F1D", d: "M21 25h-3.143V9.435h-1.402c-2.572 0-3.922 1.294-3.922 3.211 0 2.175.935 3.185 2.857 4.48l1.584 1.063L12.403 25H9l4.104-6.086c-2.363-1.684-3.688-3.316-3.688-6.087C9.416 9.357 11.83 7 16.429 7H21z" })
675
682
  ] });
676
683
  };
677
684
  var yandex_default = SvgYandex;
@@ -696,7 +703,49 @@ var provider_logos_default = logos;
696
703
 
697
704
  // src/theme/default/components/form/social.tsx
698
705
  import { useIntl as useIntl3 } from "react-intl";
699
- import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
706
+ import { useFormContext as useFormContext2 } from "react-hook-form";
707
+
708
+ // src/theme/default/components/form/spinner.tsx
709
+ import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
710
+ function Spinner({ className }) {
711
+ return /* @__PURE__ */ jsxs18(
712
+ "svg",
713
+ {
714
+ "aria-hidden": "true",
715
+ role: "status",
716
+ className: cn(
717
+ "absolute pointer-events-none inset-0 m-auto size-8 animate-spin",
718
+ className
719
+ ),
720
+ viewBox: "0 0 34 34",
721
+ fill: "none",
722
+ xmlns: "http://www.w3.org/2000/svg",
723
+ children: [
724
+ /* @__PURE__ */ jsx24("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx24(
725
+ "path",
726
+ {
727
+ d: "M23.364 10.6362C22.1053 9.37751 20.5016 8.52034 18.7558 8.17307C17.01 7.82581 15.2004 8.00404 13.5559 8.68523C11.9113 9.36641 10.5057 10.52 9.51678 12C8.52784 13.4801 8 15.2201 8 17.0001C8 18.7802 8.52784 20.5202 9.51678 22.0003C10.5057 23.4803 11.9113 24.6339 13.5559 25.3151C15.2004 25.9962 17.01 26.1745 18.7558 25.8272C20.5016 25.4799 22.1053 24.6228 23.364 23.3641",
728
+ stroke: "currentColor",
729
+ strokeLinecap: "round",
730
+ strokeLinejoin: "round"
731
+ }
732
+ ) }),
733
+ /* @__PURE__ */ jsx24("defs", { children: /* @__PURE__ */ jsx24("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx24(
734
+ "rect",
735
+ {
736
+ width: "24",
737
+ height: "24",
738
+ fill: "currentColor",
739
+ transform: "translate(17 0.029541) rotate(45)"
740
+ }
741
+ ) }) })
742
+ ]
743
+ }
744
+ );
745
+ }
746
+
747
+ // src/theme/default/components/form/social.tsx
748
+ import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
700
749
  function extractProvider(context) {
701
750
  if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
702
751
  return context.provider;
@@ -722,40 +771,36 @@ function DefaultButtonSocial({
722
771
  flow: { ui }
723
772
  } = useOryFlow5();
724
773
  const intl = useIntl3();
774
+ const {
775
+ formState: { isSubmitting }
776
+ } = useFormContext2();
725
777
  const oidcNodeCount = (_a = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a : 0;
726
778
  const Logo = logos2[attributes.value];
727
779
  const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
728
780
  const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
729
- return /* @__PURE__ */ jsxs18(
781
+ return /* @__PURE__ */ jsxs19(
730
782
  "button",
731
783
  {
732
- className: cn(
733
- "gap-3 ring-1 ring-forms-border-default bg-button-secondary-bg-default hover:bg-button-secondary-bg-hover transition-colors rounded flex items-center justify-center py-2.5 px-4 md:py-4",
734
- { "py-2.5": showLabel }
735
- ),
784
+ className: "gap-3 border border-button-social-border-default bg-button-social-background-default hover:bg-button-social-background-hover transition-colors rounded flex items-center justify-center px-4 py-[13px] disabled:bg-button-social-background-disabled disabled:border-button-social-border-disabled disabled:text-button-social-foreground-disabled hover:text-button-social-foreground-disabled",
736
785
  value: attributes.value,
737
786
  type: "submit",
738
787
  name: "provider",
739
788
  ...props,
740
789
  onClick,
790
+ disabled: isSubmitting,
741
791
  children: [
742
- /* @__PURE__ */ jsx23("span", { className: "w-5 h-5", children: Logo ? /* @__PURE__ */ jsx23(
743
- Logo,
744
- {
745
- size: 20
746
- }
747
- ) : /* @__PURE__ */ jsx23("span", { className: "rounded-full aspect-square border flex items-center justify-center text-xs", children: provider.slice(0, 2) }) }),
748
- showLabel && node.meta.label ? /* @__PURE__ */ jsx23("span", { className: "text-sm text-left leading-none font-medium text-forms-fg-default flex-grow", children: uiTextToFormattedMessage(node.meta.label, intl) }) : null
792
+ /* @__PURE__ */ jsx25("span", { className: "size-5 relative", children: !isSubmitting ? Logo ? /* @__PURE__ */ jsx25(Logo, { size: 20 }) : /* @__PURE__ */ jsx25("span", { className: "flex aspect-square items-center justify-center rounded-full border text-xs", children: provider.slice(0, 2) }) : /* @__PURE__ */ jsx25(Spinner, { className: "size-5" }) }),
793
+ showLabel && node.meta.label ? /* @__PURE__ */ jsx25("span", { className: "grow text-left font-medium leading-none text-button-social-foreground-default", children: uiTextToFormattedMessage(node.meta.label, intl) }) : null
749
794
  ]
750
795
  }
751
796
  );
752
797
  }
753
- DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ jsx23(DefaultButtonSocial, { ...props, logos: logos2 });
798
+ DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ jsx25(DefaultButtonSocial, { ...props, logos: logos2 });
754
799
  function DefaultSocialButtonContainer({
755
800
  children,
756
801
  nodes
757
802
  }) {
758
- return /* @__PURE__ */ jsx23(
803
+ return /* @__PURE__ */ jsx25(
759
804
  "div",
760
805
  {
761
806
  className: cn("grid gap-3", {
@@ -770,14 +815,14 @@ function DefaultSocialButtonContainer({
770
815
  }
771
816
 
772
817
  // src/theme/default/components/form/index.tsx
773
- import { jsx as jsx24 } from "react/jsx-runtime";
818
+ import { jsx as jsx26 } from "react/jsx-runtime";
774
819
  function DefaultFormContainer({
775
820
  children,
776
821
  onSubmit,
777
822
  action,
778
823
  method
779
824
  }) {
780
- return /* @__PURE__ */ jsx24(
825
+ return /* @__PURE__ */ jsx26(
781
826
  "form",
782
827
  {
783
828
  onSubmit,
@@ -794,7 +839,7 @@ function DefaultMessageContainer({ children }) {
794
839
  if (!children || Array.isArray(children) && children.length === 0) {
795
840
  return null;
796
841
  }
797
- return /* @__PURE__ */ jsx24(
842
+ return /* @__PURE__ */ jsx26(
798
843
  "section",
799
844
  {
800
845
  className: cn(
@@ -806,14 +851,15 @@ function DefaultMessageContainer({ children }) {
806
851
  }
807
852
  function DefaultMessage({ message }) {
808
853
  const intl = useIntl4();
809
- return /* @__PURE__ */ jsx24(
854
+ return /* @__PURE__ */ jsx26(
810
855
  "span",
811
856
  {
812
- className: cn("text-sm leading-normal", {
813
- "text-forms-fg-error": message.type === "error",
814
- "text-forms-fg-default": message.type === "info",
815
- "text-forms-fg-success": message.type === "success"
816
- }),
857
+ className: cn(
858
+ "leading-normal",
859
+ message.type === "error" && "text-interface-foreground-validation-danger",
860
+ message.type === "info" && "text-interface-foreground-default-secondary",
861
+ message.type === "success" && "text-interface-foreground-validation-success"
862
+ ),
817
863
  ...messageTestId(message),
818
864
  children: uiTextToFormattedMessage2(message, intl)
819
865
  }
@@ -825,37 +871,37 @@ import { useIntl as useIntl5 } from "react-intl";
825
871
 
826
872
  // src/theme/default/assets/icons/code.svg
827
873
  import * as React17 from "react";
828
- import { jsx as jsx25 } from "react/jsx-runtime";
874
+ import { jsx as jsx27 } from "react/jsx-runtime";
829
875
  var SvgCode = (props) => {
830
876
  var _a, _b;
831
- return /* @__PURE__ */ jsx25("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 15 13", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx25("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6.333 10.666h-4A1.333 1.333 0 0 1 1 9.333V2.666m0 0a1.333 1.333 0 0 1 1.333-1.333h9.334A1.333 1.333 0 0 1 13 2.666m-12 0 6 4 6-4m0 0v4M12.333 12l1.334-1.334-1.334-1.333m-2 0L9 10.666 10.333 12" }) });
877
+ return /* @__PURE__ */ jsx27("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 15 13", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx27("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6.333 10.666h-4A1.333 1.333 0 0 1 1 9.333V2.666m0 0a1.333 1.333 0 0 1 1.333-1.333h9.334A1.333 1.333 0 0 1 13 2.666m-12 0 6 4 6-4m0 0v4M12.333 12l1.334-1.334-1.334-1.333m-2 0L9 10.666 10.333 12" }) });
832
878
  };
833
879
  var code_default = SvgCode;
834
880
 
835
881
  // src/theme/default/assets/icons/passkey.svg
836
882
  import * as React18 from "react";
837
- import { jsx as jsx26 } from "react/jsx-runtime";
883
+ import { jsx as jsx28 } from "react/jsx-runtime";
838
884
  var SvgPasskey = (props) => {
839
885
  var _a, _b;
840
- return /* @__PURE__ */ jsx26("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 13 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx26("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.602 3.667c.603 1 .86 2.171.733 3.333v.667a4 4 0 0 0 .533 2M3.335 6.333a2.667 2.667 0 0 1 5.333 0V7c0 1.442.468 2.846 1.334 4m-4-4.667v1.334A9.33 9.33 0 0 0 7.668 13M3.335 9a12 12 0 0 0 1.2 4m-3.267-1.333A14.7 14.7 0 0 1 .668 7v-.667a5.333 5.333 0 0 1 8-4.633" }) });
886
+ return /* @__PURE__ */ jsx28("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 13 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx28("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.602 3.667c.603 1 .86 2.171.733 3.333v.667a4 4 0 0 0 .533 2M3.335 6.333a2.667 2.667 0 0 1 5.333 0V7c0 1.442.468 2.846 1.334 4m-4-4.667v1.334A9.33 9.33 0 0 0 7.668 13M3.335 9a12 12 0 0 0 1.2 4m-3.267-1.333A14.7 14.7 0 0 1 .668 7v-.667a5.333 5.333 0 0 1 8-4.633" }) });
841
887
  };
842
888
  var passkey_default = SvgPasskey;
843
889
 
844
890
  // src/theme/default/assets/icons/password.svg
845
891
  import * as React19 from "react";
846
- import { jsx as jsx27 } from "react/jsx-runtime";
892
+ import { jsx as jsx29 } from "react/jsx-runtime";
847
893
  var SvgPassword = (props) => {
848
894
  var _a, _b;
849
- return /* @__PURE__ */ jsx27("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 4", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx27("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M7 .667v2.667m-1.333-.667 2.666-1.333m-2.666 0 2.666 1.333m-6-2v2.667M1 2.667l2.667-1.333M1 1.334l2.667 1.333m8-2v2.667m-1.334-.667L13 1.334m-2.667 0L13 2.667" }) });
895
+ return /* @__PURE__ */ jsx29("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 4", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx29("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M7 .667v2.667m-1.333-.667 2.666-1.333m-2.666 0 2.666 1.333m-6-2v2.667M1 2.667l2.667-1.333M1 1.334l2.667 1.333m8-2v2.667m-1.334-.667L13 1.334m-2.667 0L13 2.667" }) });
850
896
  };
851
897
  var password_default = SvgPassword;
852
898
 
853
899
  // src/theme/default/assets/icons/webauthn.svg
854
900
  import * as React20 from "react";
855
- import { jsx as jsx28 } from "react/jsx-runtime";
901
+ import { jsx as jsx30 } from "react/jsx-runtime";
856
902
  var SvgWebauthn = (props) => {
857
903
  var _a, _b;
858
- return /* @__PURE__ */ jsx28("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx28("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5h.007m1.03-3.438 2.401 2.401a1.92 1.92 0 0 1 0 2.713l-1.762 1.762a1.92 1.92 0 0 1-2.713 0l-.2-.2-4.372 4.371a1.33 1.33 0 0 1-.826.386L2.448 13h-.781a.667.667 0 0 1-.662-.589L1 12.333v-.781c0-.313.11-.616.311-.856l.08-.087.276-.276H3V9h1.333V7.667l1.43-1.43-.201-.2a1.92 1.92 0 0 1 0-2.713l1.762-1.762a1.92 1.92 0 0 1 2.713 0" }) });
904
+ return /* @__PURE__ */ jsx30("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx30("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5h.007m1.03-3.438 2.401 2.401a1.92 1.92 0 0 1 0 2.713l-1.762 1.762a1.92 1.92 0 0 1-2.713 0l-.2-.2-4.372 4.371a1.33 1.33 0 0 1-.826.386L2.448 13h-.781a.667.667 0 0 1-.662-.589L1 12.333v-.781c0-.313.11-.616.311-.856l.08-.087.276-.276H3V9h1.333V7.667l1.43-1.43-.201-.2a1.92 1.92 0 0 1 0-2.713l1.762-1.762a1.92 1.92 0 0 1 2.713 0" }) });
859
905
  };
860
906
  var webauthn_default = SvgWebauthn;
861
907
 
@@ -865,7 +911,7 @@ function isGroupImmediateSubmit(group) {
865
911
  }
866
912
 
867
913
  // src/theme/default/components/card/auth-methods.tsx
868
- import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
914
+ import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
869
915
  var iconsMap = {
870
916
  code: code_default,
871
917
  passkey: passkey_default,
@@ -878,20 +924,26 @@ function DefaultAuthMethodListItem({
878
924
  }) {
879
925
  const intl = useIntl5();
880
926
  const Icon = iconsMap[group] || null;
881
- return /* @__PURE__ */ jsx29("div", { className: "w-full hover:bg-forms-bg-hover px-2 py-1 rounded", children: /* @__PURE__ */ jsxs19(
927
+ return /* @__PURE__ */ jsx31("div", { className: "w-full rounded px-2 py-1 hover:bg-interface-background-default-primary-hover", children: /* @__PURE__ */ jsxs20(
882
928
  "button",
883
929
  {
884
- className: "flex text-left py-2 gap-3 cursor-pointer",
930
+ className: "flex cursor-pointer gap-3 py-2 text-left items-start",
885
931
  onClick,
886
932
  type: isGroupImmediateSubmit(group) ? "submit" : "button",
887
933
  id: `auth-method-list-item-${group}`,
888
934
  "data-testid": "auth-method-list-item",
889
935
  "aria-label": `Authenticate with ${group}`,
890
936
  children: [
891
- /* @__PURE__ */ jsx29("div", { className: "flex-none w-4 h-4 mt-[2px]", children: Icon && /* @__PURE__ */ jsx29(Icon, { size: 20, className: "text-forms-fg-default" }) }),
892
- /* @__PURE__ */ jsxs19("div", { className: "flex-1 text-sm leading-normal", children: [
893
- /* @__PURE__ */ jsx29("div", { className: "text-forms-fg-default text-sm", children: intl.formatMessage({ id: `two-step.${group}.title` }) }),
894
- /* @__PURE__ */ jsx29("div", { className: "text-forms-fg-mute text-sm", children: intl.formatMessage({ id: `two-step.${group}.description` }) })
937
+ /* @__PURE__ */ jsx31("span", { className: "mt-1", children: Icon && /* @__PURE__ */ jsx31(
938
+ Icon,
939
+ {
940
+ size: 16,
941
+ className: "text-interface-foreground-brand-primary"
942
+ }
943
+ ) }),
944
+ /* @__PURE__ */ jsxs20("span", { className: "flex-1 leading-normal inline-flex flex-col", children: [
945
+ /* @__PURE__ */ jsx31("span", { className: "text-interface-foreground-default-primary", children: intl.formatMessage({ id: `two-step.${group}.title` }) }),
946
+ /* @__PURE__ */ jsx31("span", { className: "text-interface-foreground-default-secondary", children: intl.formatMessage({ id: `two-step.${group}.description` }) })
895
947
  ] })
896
948
  ]
897
949
  }
@@ -899,87 +951,42 @@ function DefaultAuthMethodListItem({
899
951
  }
900
952
 
901
953
  // src/theme/default/components/form/button.tsx
902
- import { FlowType as FlowType5, getNodeLabel } from "@ory/client-fetch";
954
+ import { getNodeLabel } from "@ory/client-fetch";
903
955
  import {
904
956
  uiTextToFormattedMessage as uiTextToFormattedMessage3
905
957
  } from "@ory/elements-react";
906
- import { useFormContext as useFormContext2 } from "react-hook-form";
907
- import { useIntl as useIntl6 } from "react-intl";
908
-
909
- // src/theme/default/components/form/spinner.tsx
910
- import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
911
- function Spinner({ className }) {
912
- return /* @__PURE__ */ jsxs20(
913
- "svg",
914
- {
915
- "aria-hidden": "true",
916
- role: "status",
917
- className: cn(
918
- "absolute pointer-events-none inset-0 mx-auto my-auto w-8 h-8 animate-spin",
919
- className
920
- ),
921
- viewBox: "0 0 34 34",
922
- fill: "none",
923
- xmlns: "http://www.w3.org/2000/svg",
924
- children: [
925
- /* @__PURE__ */ jsx30("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx30(
926
- "path",
927
- {
928
- d: "M23.364 10.6362C22.1053 9.37751 20.5016 8.52034 18.7558 8.17307C17.01 7.82581 15.2004 8.00404 13.5559 8.68523C11.9113 9.36641 10.5057 10.52 9.51678 12C8.52784 13.4801 8 15.2201 8 17.0001C8 18.7802 8.52784 20.5202 9.51678 22.0003C10.5057 23.4803 11.9113 24.6339 13.5559 25.3151C15.2004 25.9962 17.01 26.1745 18.7558 25.8272C20.5016 25.4799 22.1053 24.6228 23.364 23.3641",
929
- stroke: "currentColor",
930
- strokeLinecap: "round",
931
- strokeLinejoin: "round"
932
- }
933
- ) }),
934
- /* @__PURE__ */ jsx30("defs", { children: /* @__PURE__ */ jsx30("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx30(
935
- "rect",
936
- {
937
- width: "24",
938
- height: "24",
939
- fill: "currentColor",
940
- transform: "translate(17 0.029541) rotate(45)"
941
- }
942
- ) }) })
943
- ]
944
- }
945
- );
946
- }
947
-
948
- // src/theme/default/components/form/button.tsx
949
- import { useOryFlow as useOryFlow7 } from "@ory/elements-react";
950
958
  import { cva } from "class-variance-authority";
951
- import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
959
+ import { useFormContext as useFormContext3 } from "react-hook-form";
960
+ import { useIntl as useIntl6 } from "react-intl";
961
+ import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
952
962
  var buttonStyles = cva(
953
963
  [
954
- "ring-1 relative overflow-hidden ring-inset rounded text-sm leading-none flex gap-3 justify-center",
955
- "disabled:cursor-not-allowed loading:before:pointer-events-none loading:cursor-wait",
956
- "transition-colors ease-linear duration-100"
964
+ "relative flex justify-center gap-3 overflow-hidden rounded leading-none ring-1 ring-inset font-medium",
965
+ "disabled:cursor-not-allowed loading:cursor-wait loading:before:pointer-events-none",
966
+ "transition-colors duration-100 ease-linear",
967
+ "p-4 max-w-[488px]"
957
968
  ],
958
969
  {
959
970
  variants: {
960
971
  intent: {
961
972
  primary: [
962
- "bg-button-primary-bg-default text-button-primary-fg-default ring-button-primary-border-default",
963
- "hover:bg-button-primary-bg-hover hover:text-button-primary-fg-hover hover:ring-button-primary-border-hover",
964
- "disabled:bg-button-primary-bg-disabled disabled:text-button-primary-fg-disabled disabled:ring-button-primary-border-disabled",
965
- "loading:bg-button-primary-bg-default loading:text-button-primary-fg-default loading:ring-button-primary-border-default",
966
- "loading:before:absolute loading:before:content-[''] loading:before:inset-0 loading:before:bg-button-primary-bg-default loading:before:opacity-80"
973
+ "bg-button-primary-background-default text-button-primary-foreground-default ring-button-primary-border-default",
974
+ "hover:bg-button-primary-background-hover hover:text-button-primary-foreground-hover hover:ring-button-primary-border-hover",
975
+ "disabled:bg-button-primary-background-disabled disabled:text-button-primary-foreground-disabled disabled:ring-button-primary-border-disabled",
976
+ "loading:bg-button-primary-background-default loading:text-button-primary-foreground-default loading:ring-button-primary-border-default",
977
+ "loading:before:absolute loading:before:inset-0 loading:before:bg-button-primary-background-default loading:before:opacity-80 loading:before:content-['']",
978
+ "disabled:bg-button-primary-background-disabled disabled:text-button-primary-foreground-disabled disabled:ring-button-primary-border-disabled"
967
979
  ],
968
980
  secondary: [
969
- "bg-button-secondary-bg-default text-button-secondary-fg-default ring-button-secondary-border-default",
970
- "hover:bg-button-secondary-bg-hover hover:text-button-secondary-fg-hover hover:ring-button-secondary-border-hover",
971
- "disabled:bg-button-secondary-bg-disabled disabled:text-button-secondary-fg-disabled disabled:ring-button-secondary-border-disabled",
972
- "loading:bg-button-secondary-bg-default loading:text-button-secondary-fg-default loading:ring-button-secondary-border-default",
973
- "loading:before:absolute loading:before:content-[''] loading:before:inset-0 loading:before:bg-button-secondary-bg-default loading:before:opacity-80"
981
+ "bg-button-secondary-background-default text-button-secondary-foreground-default ring-button-secondary-border-default",
982
+ "hover:bg-button-secondary-background-hover hover:text-button-secondary-foreground-hover hover:ring-button-secondary-border-hover",
983
+ "disabled:bg-button-secondary-background-disabled disabled:text-button-secondary-foreground-disabled disabled:ring-button-secondary-border-disabled",
984
+ "loading:bg-button-secondary-background-default loading:text-button-secondary-foreground-default loading:ring-button-secondary-border-default",
985
+ "loading:before:absolute loading:before:inset-0 loading:before:bg-button-secondary-background-default loading:before:opacity-80 loading:before:content-['']"
974
986
  ]
975
987
  },
976
- size: {
977
- default: ["px-4 py-3"],
978
- large: ["px-4 py-4.5 max-md:py-3"]
979
- },
980
988
  defaultVariants: {
981
- intent: "primary",
982
- size: "default"
989
+ intent: "primary"
983
990
  }
984
991
  }
985
992
  }
@@ -1003,13 +1010,11 @@ var DefaultButton = ({
1003
1010
  } = attributes;
1004
1011
  const intl = useIntl6();
1005
1012
  const label = getNodeLabel(node);
1006
- const { flowType } = useOryFlow7();
1007
1013
  const {
1008
1014
  formState: { isSubmitting },
1009
1015
  setValue
1010
- } = useFormContext2();
1016
+ } = useFormContext3();
1011
1017
  const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn") || attributes.name.includes("lookup_secret");
1012
- const isSmall = flowType === FlowType5.Settings && attributes.name !== "webauthn_register_trigger";
1013
1018
  return /* @__PURE__ */ jsxs21(
1014
1019
  "button",
1015
1020
  {
@@ -1027,14 +1032,13 @@ var DefaultButton = ({
1027
1032
  }
1028
1033
  },
1029
1034
  className: buttonStyles({
1030
- intent: isPrimary ? "primary" : "secondary",
1031
- size: isSmall ? "default" : "large"
1035
+ intent: isPrimary ? "primary" : "secondary"
1032
1036
  }),
1033
1037
  disabled: (_a = rest.disabled) != null ? _a : true,
1034
1038
  "data-loading": isSubmitting,
1035
1039
  children: [
1036
- isSubmitting ? /* @__PURE__ */ jsx31(Spinner, {}) : null,
1037
- label ? uiTextToFormattedMessage3(label, intl) : ""
1040
+ isSubmitting ? /* @__PURE__ */ jsx32(Spinner, {}) : null,
1041
+ label ? /* @__PURE__ */ jsx32("span", { children: uiTextToFormattedMessage3(label, intl) }) : ""
1038
1042
  ]
1039
1043
  }
1040
1044
  );
@@ -1047,7 +1051,6 @@ import {
1047
1051
  messageTestId as messageTestId2,
1048
1052
  uiTextToFormattedMessage as uiTextToFormattedMessage5
1049
1053
  } from "@ory/elements-react";
1050
- import { useState } from "react";
1051
1054
  import { useForm } from "react-hook-form";
1052
1055
  import { useIntl as useIntl8 } from "react-intl";
1053
1056
 
@@ -1103,7 +1106,7 @@ var uiTextToFormattedMessage4 = ({ id, context = {}, text }, intl) => {
1103
1106
  };
1104
1107
 
1105
1108
  // src/theme/default/components/ui/checkbox-label.tsx
1106
- import { Fragment as Fragment2, jsx as jsx32 } from "react/jsx-runtime";
1109
+ import { Fragment as Fragment2, jsx as jsx33 } from "react/jsx-runtime";
1107
1110
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
1108
1111
  function computeLabelElements(labelText) {
1109
1112
  const elements = [];
@@ -1119,13 +1122,13 @@ function computeLabelElements(labelText) {
1119
1122
  elements.push(labelText.slice(lastIndex, matchStart));
1120
1123
  }
1121
1124
  elements.push(
1122
- /* @__PURE__ */ jsx32(
1125
+ /* @__PURE__ */ jsx33(
1123
1126
  "a",
1124
1127
  {
1125
1128
  href: url,
1126
1129
  target: "_blank",
1127
1130
  rel: "noopener noreferrer",
1128
- className: "text-links-link-default hover:text-links-link-hover hover:underline",
1131
+ className: "text-button-link-brand-brand hover:text-button-link-brand-brand-hover underline",
1129
1132
  children: linkText
1130
1133
  },
1131
1134
  matchStart
@@ -1144,39 +1147,29 @@ function CheckboxLabel({ label }) {
1144
1147
  return null;
1145
1148
  }
1146
1149
  const labelText = uiTextToFormattedMessage4(label, intl);
1147
- return /* @__PURE__ */ jsx32(Fragment2, { children: computeLabelElements(labelText) });
1150
+ return /* @__PURE__ */ jsx33(Fragment2, { children: computeLabelElements(labelText) });
1148
1151
  }
1149
1152
 
1150
1153
  // src/theme/default/components/form/checkbox.tsx
1151
- import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
1154
+ import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
1152
1155
  function CheckboxSVG() {
1153
- return /* @__PURE__ */ jsxs22(
1156
+ return /* @__PURE__ */ jsx34(
1154
1157
  "svg",
1155
1158
  {
1156
- className: "absolute w-4 h-4 hidden peer-checked:block",
1159
+ className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
1157
1160
  xmlns: "http://www.w3.org/2000/svg",
1158
1161
  width: "16",
1159
1162
  height: "16",
1160
1163
  viewBox: "0 0 16 16",
1161
1164
  fill: "none",
1162
- children: [
1163
- /* @__PURE__ */ jsx33(
1164
- "path",
1165
- {
1166
- d: "M0 4C0 1.79086 1.79086 0 4 0H12C14.2091 0 16 1.79086 16 4V12C16 14.2091 14.2091 16 12 16H4C1.79086 16 0 14.2091 0 12V4Z",
1167
- fill: "#0F172A"
1168
- }
1169
- ),
1170
- /* @__PURE__ */ jsx33(
1171
- "path",
1172
- {
1173
- fillRule: "evenodd",
1174
- clipRule: "evenodd",
1175
- d: "M11.6464 5.14645C11.8417 4.95118 12.1583 4.95118 12.3536 5.14645C12.5338 5.32669 12.5477 5.6103 12.3951 5.80645L12.3536 5.85355L7.35355 10.8536C7.17331 11.0338 6.8897 11.0477 6.69355 10.8951L6.64645 10.8536L4.14645 8.35355C3.95118 8.15829 3.95118 7.84171 4.14645 7.64645C4.32669 7.4662 4.6103 7.45234 4.80645 7.60485L4.85355 7.64645L7 9.7925L11.6464 5.14645Z",
1176
- fill: "white"
1177
- }
1178
- )
1179
- ]
1165
+ children: /* @__PURE__ */ jsx34(
1166
+ "path",
1167
+ {
1168
+ fillRule: "evenodd",
1169
+ clipRule: "evenodd",
1170
+ d: "M11.6464 5.14645C11.8417 4.95118 12.1583 4.95118 12.3536 5.14645C12.5338 5.32669 12.5477 5.6103 12.3951 5.80645L12.3536 5.85355L7.35355 10.8536C7.17331 11.0338 6.8897 11.0477 6.69355 10.8951L6.64645 10.8536L4.14645 8.35355C3.95118 8.15829 3.95118 7.84171 4.14645 7.64645C4.32669 7.4662 4.6103 7.45234 4.80645 7.60485L4.85355 7.64645L7 9.7925L11.6464 5.14645Z"
1171
+ }
1172
+ )
1180
1173
  }
1181
1174
  );
1182
1175
  }
@@ -1196,85 +1189,78 @@ var DefaultCheckbox = ({
1196
1189
  } = initialAttributes;
1197
1190
  const intl = useIntl8();
1198
1191
  const label = getNodeLabel2(node);
1199
- const [checked, setChecked] = useState(Boolean(value));
1200
1192
  const { register } = useForm();
1201
- return /* @__PURE__ */ jsxs22(
1202
- "div",
1203
- {
1204
- className: "flex antialiased gap-3 self-stretch item-start",
1205
- onClick: () => {
1206
- setChecked(!checked);
1207
- },
1208
- children: [
1209
- /* @__PURE__ */ jsxs22("div", { className: "flex h-5 items-center", children: [
1210
- /* @__PURE__ */ jsx33(
1211
- "input",
1212
- {
1213
- ...attributes,
1214
- checked,
1215
- value: 1,
1216
- type: "checkbox",
1217
- className: cn(
1218
- "peer w-4 h-4 border appearance-none rounded-border-radius-buttons",
1219
- !checked && "bg-forms-checkbox-bg-default border-forms-checkbox-border-default",
1220
- checked && "bg-forms-checkbox-bg-checked border-forms-checkbox-border-checked"
1221
- ),
1222
- ...register(name, { value })
1223
- }
1193
+ const hasError = node.messages.some((m) => m.type === "error");
1194
+ return /* @__PURE__ */ jsxs22("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
1195
+ /* @__PURE__ */ jsxs22("span", { className: "flex h-5 items-center", children: [
1196
+ /* @__PURE__ */ jsx34(
1197
+ "input",
1198
+ {
1199
+ ...attributes,
1200
+ value: 1,
1201
+ defaultChecked: Boolean(value),
1202
+ type: "checkbox",
1203
+ className: cn(
1204
+ "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",
1205
+ hasError && "border-interface-border-validation-danger"
1224
1206
  ),
1225
- /* @__PURE__ */ jsx33(CheckboxSVG, {})
1226
- ] }),
1227
- /* @__PURE__ */ jsxs22("div", { className: "text-sm items-center", children: [
1228
- /* @__PURE__ */ jsx33("label", { className: "text-sm font-normal leading-normal text-forms-fg-default", children: /* @__PURE__ */ jsx33(CheckboxLabel, { label }) }),
1229
- node.messages.map((message) => /* @__PURE__ */ jsx33(
1230
- "span",
1231
- {
1232
- className: "text-sm text-red-900 mt-1",
1233
- ...messageTestId2(message),
1234
- children: uiTextToFormattedMessage5(message, intl)
1235
- },
1236
- message.id
1237
- ))
1238
- ] })
1239
- ]
1240
- }
1241
- );
1207
+ ...register(name, { value })
1208
+ }
1209
+ ),
1210
+ /* @__PURE__ */ jsx34(CheckboxSVG, {})
1211
+ ] }),
1212
+ /* @__PURE__ */ jsxs22("span", { className: "flex flex-col", children: [
1213
+ /* @__PURE__ */ jsx34("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx34(CheckboxLabel, { label }) }),
1214
+ node.messages.map((message) => /* @__PURE__ */ jsx34(
1215
+ "span",
1216
+ {
1217
+ className: cn(
1218
+ "mt-1",
1219
+ message.type === "error" ? "text-interface-foreground-validation-danger" : "text-interface-foreground-default-secondary"
1220
+ ),
1221
+ ...messageTestId2(message),
1222
+ children: uiTextToFormattedMessage5(message, intl)
1223
+ },
1224
+ message.id
1225
+ ))
1226
+ ] })
1227
+ ] });
1242
1228
  };
1243
1229
 
1244
1230
  // src/theme/default/components/form/group-container.tsx
1245
- import { jsx as jsx34 } from "react/jsx-runtime";
1231
+ import { jsx as jsx35 } from "react/jsx-runtime";
1246
1232
  function DefaultGroupContainer({ children }) {
1247
- return /* @__PURE__ */ jsx34("div", { className: "grid grid-cols-1 gap-6", children });
1233
+ return /* @__PURE__ */ jsx35("div", { className: "grid grid-cols-1 gap-8", children });
1248
1234
  }
1249
1235
 
1250
1236
  // src/theme/default/components/form/horizontal-divider.tsx
1251
- import { jsx as jsx35 } from "react/jsx-runtime";
1237
+ import { jsx as jsx36 } from "react/jsx-runtime";
1252
1238
  function DefaultHorizontalDivider() {
1253
- return /* @__PURE__ */ jsx35("hr", { className: "border-dialog-border-default" });
1239
+ return /* @__PURE__ */ jsx36("hr", { className: "border-interface-border-default-primary" });
1254
1240
  }
1255
1241
 
1256
1242
  // src/theme/default/components/form/image.tsx
1257
- import { jsx as jsx36 } from "react/jsx-runtime";
1243
+ import { jsx as jsx37 } from "react/jsx-runtime";
1258
1244
  function DefaultImage({ attributes }) {
1259
- return /* @__PURE__ */ jsx36("figure", { children: /* @__PURE__ */ jsx36("img", { ...attributes }) });
1245
+ return /* @__PURE__ */ jsx37("figure", { children: /* @__PURE__ */ jsx37("img", { ...attributes }) });
1260
1246
  }
1261
1247
 
1262
1248
  // src/theme/default/components/form/input.tsx
1263
- import { FlowType as FlowType6, getNodeLabel as getNodeLabel3 } from "@ory/client-fetch";
1249
+ import { FlowType as FlowType5, getNodeLabel as getNodeLabel3 } from "@ory/client-fetch";
1264
1250
  import {
1265
1251
  uiTextToFormattedMessage as uiTextToFormattedMessage6,
1266
- useOryFlow as useOryFlow8
1252
+ useOryFlow as useOryFlow7
1267
1253
  } from "@ory/elements-react";
1268
- import { useFormContext as useFormContext3 } from "react-hook-form";
1254
+ import { useFormContext as useFormContext4 } from "react-hook-form";
1269
1255
  import { useIntl as useIntl9 } from "react-intl";
1270
- import { jsx as jsx37 } from "react/jsx-runtime";
1256
+ import { jsx as jsx38 } from "react/jsx-runtime";
1271
1257
  var DefaultInput = ({
1272
1258
  node,
1273
1259
  attributes,
1274
1260
  onClick
1275
1261
  }) => {
1276
1262
  const label = getNodeLabel3(node);
1277
- const { register } = useFormContext3();
1263
+ const { register } = useFormContext4();
1278
1264
  const {
1279
1265
  value,
1280
1266
  autocomplete,
@@ -1284,7 +1270,7 @@ var DefaultInput = ({
1284
1270
  ...rest
1285
1271
  } = attributes;
1286
1272
  const intl = useIntl9();
1287
- const { flowType } = useOryFlow8();
1273
+ const { flowType } = useOryFlow7();
1288
1274
  const formattedLabel = label ? intl.formatMessage(
1289
1275
  {
1290
1276
  id: "input.placeholder",
@@ -1294,7 +1280,7 @@ var DefaultInput = ({
1294
1280
  placeholder: uiTextToFormattedMessage6(label, intl)
1295
1281
  }
1296
1282
  ) : "";
1297
- return /* @__PURE__ */ jsx37(
1283
+ return /* @__PURE__ */ jsx38(
1298
1284
  "input",
1299
1285
  {
1300
1286
  ...rest,
@@ -1303,10 +1289,14 @@ var DefaultInput = ({
1303
1289
  autoComplete: autocomplete,
1304
1290
  placeholder: formattedLabel,
1305
1291
  className: cn(
1306
- "antialiased disabled:text-forms-fg-disabled disabled:bg-forms-bg-disabled bg-forms-bg-default rounded-border-radius-forms border border-forms-border-default leading-tight hover:border-forms-border-hover transition-colors text-sm",
1307
- "px-3 py-2.5",
1292
+ "antialiased rounded-forms border leading-tight transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus-visible:outline-none focus:ring-0",
1293
+ "bg-input-background-default border-input-border-default text-input-foreground-primary",
1294
+ "disabled:bg-input-background-disabled disabled:border-input-border-disabled disabled:text-input-foreground-disabled",
1295
+ "focus:border-input-border-focus focus-visible:border-input-border-focus",
1296
+ "hover:bg-input-background-hover hover:border-input-border-hover",
1297
+ "px-4 py-[13px]",
1308
1298
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
1309
- flowType === FlowType6.Settings ? "max-w-[488px]" : "md:px-4 md:py-4"
1299
+ flowType === FlowType5.Settings && "max-w-[488px]"
1310
1300
  ),
1311
1301
  ...register(name, { value })
1312
1302
  }
@@ -1315,7 +1305,7 @@ var DefaultInput = ({
1315
1305
 
1316
1306
  // src/theme/default/components/form/label.tsx
1317
1307
  import {
1318
- FlowType as FlowType7,
1308
+ FlowType as FlowType6,
1319
1309
  getNodeLabel as getNodeLabel4,
1320
1310
  instanceOfUiText
1321
1311
  } from "@ory/client-fetch";
@@ -1323,11 +1313,11 @@ import {
1323
1313
  messageTestId as messageTestId3,
1324
1314
  uiTextToFormattedMessage as uiTextToFormattedMessage7,
1325
1315
  useComponents as useComponents2,
1326
- useOryFlow as useOryFlow9
1316
+ useOryFlow as useOryFlow8
1327
1317
  } from "@ory/elements-react";
1328
- import { useFormContext as useFormContext4 } from "react-hook-form";
1318
+ import { useFormContext as useFormContext5 } from "react-hook-form";
1329
1319
  import { useIntl as useIntl10 } from "react-intl";
1330
- import { jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
1320
+ import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
1331
1321
  function findResendNode(nodes) {
1332
1322
  return nodes.find(
1333
1323
  (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
@@ -1342,8 +1332,8 @@ function DefaultLabel({
1342
1332
  const intl = useIntl10();
1343
1333
  const label = getNodeLabel4(node);
1344
1334
  const { Message } = useComponents2();
1345
- const { config, flowType, flow } = useOryFlow9();
1346
- const { setValue, formState } = useFormContext4();
1335
+ const { config, flowType, flow } = useOryFlow8();
1336
+ const { setValue, formState } = useFormContext5();
1347
1337
  const isPassword = attributes.type === "password";
1348
1338
  const resendNode = findResendNode(flow.ui.nodes);
1349
1339
  const handleResend = () => {
@@ -1352,45 +1342,45 @@ function DefaultLabel({
1352
1342
  }
1353
1343
  };
1354
1344
  const fieldError = formState.errors[attributes.name];
1355
- return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col antialiased gap-1", children: [
1345
+ return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-1 antialiased", children: [
1356
1346
  label && /* @__PURE__ */ jsxs23("span", { className: "inline-flex justify-between", children: [
1357
- /* @__PURE__ */ jsx38(
1347
+ /* @__PURE__ */ jsx39(
1358
1348
  "label",
1359
1349
  {
1360
1350
  ...messageTestId3(label),
1361
- className: "text-sm font-medium leading-normal",
1351
+ className: "leading-normal text-input-foreground-primary",
1362
1352
  htmlFor: attributes.name,
1363
1353
  ...rest,
1364
1354
  children: uiTextToFormattedMessage7(label, intl)
1365
1355
  }
1366
1356
  ),
1367
- isPassword && config.project.recovery_enabled && flowType === FlowType7.Login && // TODO: make it possible to override with a custom component
1368
- /* @__PURE__ */ jsx38(
1357
+ isPassword && config.project.recovery_enabled && flowType === FlowType6.Login && // TODO: make it possible to override with a custom component
1358
+ /* @__PURE__ */ jsx39(
1369
1359
  "a",
1370
1360
  {
1371
1361
  href: config.project.recovery_ui_url,
1372
- className: "text-links-link-default hover:underline hover:text-link-hover transition-colors text-sm font-medium",
1362
+ className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
1373
1363
  children: intl.formatMessage({
1374
1364
  id: "forms.label.forgot-password",
1375
1365
  defaultMessage: "Forgot password?"
1376
1366
  })
1377
1367
  }
1378
1368
  ),
1379
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx38(
1369
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx39(
1380
1370
  "button",
1381
1371
  {
1382
1372
  type: "submit",
1383
1373
  name: resendNode.attributes.name,
1384
1374
  value: resendNode.attributes.value,
1385
1375
  onClick: handleResend,
1386
- className: "text-links-link-default hover:underline hover:text-link-hover transition-colors text-sm font-medium cursor-pointer",
1376
+ className: "cursor-pointer text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
1387
1377
  children: intl.formatMessage({ id: "identities.messages.1070008" })
1388
1378
  }
1389
1379
  )
1390
1380
  ] }),
1391
1381
  children,
1392
- node.messages.map((message) => /* @__PURE__ */ jsx38(Message.Content, { message }, message.id)),
1393
- fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx38(Message.Content, { message: fieldError })
1382
+ node.messages.map((message) => /* @__PURE__ */ jsx39(Message.Content, { message }, message.id)),
1383
+ fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx39(Message.Content, { message: fieldError })
1394
1384
  ] });
1395
1385
  }
1396
1386
 
@@ -1401,18 +1391,18 @@ import {
1401
1391
  } from "@ory/elements-react";
1402
1392
  import { forwardRef } from "react";
1403
1393
  import { useIntl as useIntl11 } from "react-intl";
1404
- import { jsx as jsx39 } from "react/jsx-runtime";
1394
+ import { jsx as jsx40 } from "react/jsx-runtime";
1405
1395
  var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
1406
1396
  const intl = useIntl11();
1407
1397
  const label = getNodeLabel5(node);
1408
- return /* @__PURE__ */ jsx39(
1398
+ return /* @__PURE__ */ jsx40(
1409
1399
  "a",
1410
1400
  {
1411
1401
  ...attributes,
1412
1402
  ref,
1413
1403
  title: label ? uiTextToFormattedMessage8(label, intl) : "",
1414
1404
  className: cn(
1415
- "antialiased rounded cursor-pointer text-center border border-transparent gap-3 leading-none bg-button-primary-bg-default hover:bg-button-primary-bg-hover transition-colors text-button-primary-fg-default hover:text-button-primary-fg-hover px-4 py-4.5 text-sm font-medium"
1405
+ "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"
1416
1406
  ),
1417
1407
  children: label ? uiTextToFormattedMessage8(label, intl) : ""
1418
1408
  }
@@ -1421,13 +1411,13 @@ var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
1421
1411
  DefaultLinkButton.displayName = "DefaultLinkButton";
1422
1412
 
1423
1413
  // src/theme/default/components/form/pin-code-input.tsx
1424
- import { useFormContext as useFormContext5 } from "react-hook-form";
1414
+ import { useFormContext as useFormContext6 } from "react-hook-form";
1425
1415
 
1426
1416
  // src/theme/default/components/form/shadcn/otp-input.tsx
1427
1417
  import { OTPInput, OTPInputContext } from "input-otp";
1428
1418
  import * as React21 from "react";
1429
- import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
1430
- var InputOTP = React21.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx40(
1419
+ import { jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
1420
+ var InputOTP = React21.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx41(
1431
1421
  OTPInput,
1432
1422
  {
1433
1423
  ref,
@@ -1440,7 +1430,7 @@ var InputOTP = React21.forwardRef(({ className, containerClassName, ...props },
1440
1430
  }
1441
1431
  ));
1442
1432
  InputOTP.displayName = "InputOTP";
1443
- var InputOTPGroup = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40("div", { ref, className: cn("flex items-center", className), ...props }));
1433
+ var InputOTPGroup = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41("div", { ref, className: cn("flex items-center", className), ...props }));
1444
1434
  InputOTPGroup.displayName = "InputOTPGroup";
1445
1435
  var InputOTPSlot = React21.forwardRef(({ index, className, ...props }, ref) => {
1446
1436
  const inputOTPContext = React21.useContext(OTPInputContext);
@@ -1450,14 +1440,15 @@ var InputOTPSlot = React21.forwardRef(({ index, className, ...props }, ref) => {
1450
1440
  {
1451
1441
  ref,
1452
1442
  className: cn(
1453
- "relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all",
1454
- isActive && "z-10 ring-2 ring-ring ring-offset-background",
1443
+ "rounded-forms border border-solid bg-input-background-default py-[15px] text-center focus-visible:outline-none w-full",
1444
+ "relative flex items-center justify-center transition-all leading-none",
1445
+ isActive ? "border-input-border-focus" : "border-input-border-default",
1455
1446
  className
1456
1447
  ),
1457
1448
  ...props,
1458
1449
  children: [
1459
- char,
1460
- hasFakeCaret && /* @__PURE__ */ jsx40("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx40("div", { className: "h-4 w-px animate-caret-blink bg-branding-bg-default duration-750" }) })
1450
+ /* @__PURE__ */ jsx41("span", { className: "inline-block size-4", children: char }),
1451
+ hasFakeCaret && /* @__PURE__ */ jsx41("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx41("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
1461
1452
  ]
1462
1453
  }
1463
1454
  );
@@ -1465,66 +1456,97 @@ var InputOTPSlot = React21.forwardRef(({ index, className, ...props }, ref) => {
1465
1456
  InputOTPSlot.displayName = "InputOTPSlot";
1466
1457
 
1467
1458
  // src/theme/default/components/form/pin-code-input.tsx
1468
- import { jsx as jsx41 } from "react/jsx-runtime";
1459
+ import { useOryFlow as useOryFlow9 } from "@ory/elements-react";
1460
+ import { FlowType as FlowType7 } from "@ory/client-fetch";
1461
+ import { jsx as jsx42 } from "react/jsx-runtime";
1469
1462
  var DefaultPinCodeInput = ({ attributes }) => {
1470
- const { setValue, watch } = useFormContext5();
1463
+ const { setValue, watch } = useFormContext6();
1471
1464
  const { maxlength, name } = attributes;
1472
1465
  const elements = maxlength != null ? maxlength : 6;
1466
+ const { flowType } = useOryFlow9();
1473
1467
  const handleInputChange = (v) => {
1474
1468
  setValue(name, v);
1475
1469
  };
1476
1470
  const value = watch(name);
1477
- return /* @__PURE__ */ jsx41(
1471
+ return /* @__PURE__ */ jsx42(
1478
1472
  InputOTP,
1479
1473
  {
1480
1474
  maxLength: maxlength != null ? maxlength : 6,
1481
1475
  onChange: handleInputChange,
1482
1476
  name,
1483
1477
  value,
1484
- children: /* @__PURE__ */ jsx41(InputOTPGroup, { className: "w-full space-x-2 justify-between", children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx41(
1485
- InputOTPSlot,
1478
+ children: /* @__PURE__ */ jsx42(
1479
+ InputOTPGroup,
1486
1480
  {
1487
- index,
1488
- className: "text-center px-1.5 py-2.5 h-10 w-11 md:w-14 md:h-12 border border-radius border-solid rounded-border-radius-forms border-forms-border-default bg-forms-bg-default"
1489
- },
1490
- index
1491
- )) })
1481
+ className: cn(
1482
+ "w-full flex gap-2 justify-stretch",
1483
+ // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
1484
+ flowType === FlowType7.Settings && "max-w-[488px]"
1485
+ ),
1486
+ children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx42(InputOTPSlot, { index }, index))
1487
+ }
1488
+ )
1492
1489
  }
1493
1490
  );
1494
1491
  };
1495
1492
 
1496
1493
  // src/theme/default/components/form/section.tsx
1497
- import { jsx as jsx42, jsxs as jsxs25 } from "react/jsx-runtime";
1498
- var DefaultFormSection = ({ children }) => {
1499
- return /* @__PURE__ */ jsx42("div", { className: "flex flex-col w-80 md:w-[712px] lg:w-[802px] xl:w-[896px]", children });
1494
+ import { jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
1495
+ var DefaultFormSection = ({
1496
+ children,
1497
+ nodes: _nodes,
1498
+ ...rest
1499
+ }) => {
1500
+ return /* @__PURE__ */ jsx43(
1501
+ "form",
1502
+ {
1503
+ className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
1504
+ ...rest,
1505
+ children
1506
+ }
1507
+ );
1500
1508
  };
1501
1509
  var DefaultFormSectionContent = ({
1502
1510
  title,
1503
1511
  description,
1504
1512
  children
1505
1513
  }) => {
1506
- return /* @__PURE__ */ jsxs25("div", { className: "border rounded-t-xl border-b-0 border-dialog-border-default bg-forms-bg-default px-6 py-8 flex flex-col gap-8", children: [
1514
+ return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-8 rounded-t-xl border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
1507
1515
  /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-2", children: [
1508
- /* @__PURE__ */ jsx42("h3", { className: "font-medium text-dialog-fg-default", children: title }),
1509
- /* @__PURE__ */ jsx42("span", { className: "text-sm text-dialog-fg-subtle", children: description })
1516
+ /* @__PURE__ */ jsx43("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
1517
+ /* @__PURE__ */ jsx43("span", { className: "text-interface-foreground-default-secondary", children: description })
1510
1518
  ] }),
1511
1519
  children
1512
1520
  ] });
1513
1521
  };
1514
- var DefaultFormSectionFooter = ({ children }) => {
1515
- return /* @__PURE__ */ jsx42("div", { className: "rounded-b-xl gap-2 flex justify-end px-6 py-4 bg-dialog-bg-subtle border border-dialog-border-default text-sm text-dialog-fg-mute items-center [&>span]:mr-auto min-h-[72px]", children });
1522
+ var DefaultFormSectionFooter = ({
1523
+ children,
1524
+ text
1525
+ }) => {
1526
+ return /* @__PURE__ */ jsxs25(
1527
+ "div",
1528
+ {
1529
+ className: cn(
1530
+ "flex min-h-[72px] items-center justify-between gap-2 rounded-b-xl border border-interface-border-default-primary bg-interface-background-default-secondary px-6 py-4 text-interface-foreground-default-tertiary"
1531
+ ),
1532
+ children: [
1533
+ /* @__PURE__ */ jsx43("span", { children: text }),
1534
+ children
1535
+ ]
1536
+ }
1537
+ );
1516
1538
  };
1517
1539
 
1518
1540
  // src/theme/default/components/form/text.tsx
1519
1541
  import { uiTextToFormattedMessage as uiTextToFormattedMessage9 } from "@ory/elements-react";
1520
1542
  import { useIntl as useIntl12 } from "react-intl";
1521
- import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs26 } from "react/jsx-runtime";
1543
+ import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
1522
1544
  function DefaultText({ node, attributes }) {
1523
1545
  var _a;
1524
1546
  const intl = useIntl12();
1525
1547
  return /* @__PURE__ */ jsxs26(Fragment3, { children: [
1526
- /* @__PURE__ */ jsx43("p", { "data-testid": `node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
1527
- (_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ jsx43("pre", { "data-testid": `node/text/lookup_secret_codes/text`, children: /* @__PURE__ */ jsx43("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" }) }, index))
1548
+ /* @__PURE__ */ jsx44("p", { "data-testid": `node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
1549
+ (_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ jsx44("pre", { "data-testid": `node/text/lookup_secret_codes/text`, children: /* @__PURE__ */ jsx44("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" }) }, index))
1528
1550
  ] });
1529
1551
  }
1530
1552
 
@@ -1533,7 +1555,7 @@ import { useComponents as useComponents3 } from "@ory/elements-react";
1533
1555
 
1534
1556
  // src/theme/default/components/ui/user-menu.tsx
1535
1557
  import { DropdownMenuLabel as DropdownMenuLabel2 } from "@radix-ui/react-dropdown-menu";
1536
- import { useCallback, useEffect, useState as useState2 } from "react";
1558
+ import { useCallback, useEffect, useState } from "react";
1537
1559
  import { useOryFlow as useOryFlow10 } from "@ory/elements-react";
1538
1560
 
1539
1561
  // src/util/client.ts
@@ -1555,32 +1577,35 @@ function frontendClient(sdkUrl, opts = {}) {
1555
1577
 
1556
1578
  // src/theme/default/assets/icons/logout.svg
1557
1579
  import * as React22 from "react";
1558
- import { jsx as jsx44 } from "react/jsx-runtime";
1580
+ import { jsx as jsx45 } from "react/jsx-runtime";
1559
1581
  var SvgLogout = (props) => {
1560
1582
  var _a, _b;
1561
- return /* @__PURE__ */ jsx44("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx44("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
1583
+ return /* @__PURE__ */ jsx45("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx45("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
1562
1584
  };
1563
1585
  var logout_default = SvgLogout;
1564
1586
 
1565
1587
  // src/theme/default/assets/icons/settings.svg
1566
1588
  import * as React23 from "react";
1567
- import { jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
1589
+ import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
1568
1590
  var SvgSettings = (props) => {
1569
1591
  var _a, _b;
1570
- return /* @__PURE__ */ jsx45("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs27("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1571
- /* @__PURE__ */ jsx45("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
1572
- /* @__PURE__ */ jsx45("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
1592
+ return /* @__PURE__ */ jsx46("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs27("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1593
+ /* @__PURE__ */ jsx46("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
1594
+ /* @__PURE__ */ jsx46("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
1573
1595
  ] }) });
1574
1596
  };
1575
1597
  var settings_default = SvgSettings;
1576
1598
 
1577
1599
  // src/theme/default/utils/user.ts
1600
+ function isTraitsIndexable(traits) {
1601
+ return typeof traits === "object" && traits !== null;
1602
+ }
1578
1603
  var getUserInitials = (session) => {
1579
1604
  var _a, _b;
1580
1605
  const avatar = "";
1581
1606
  let primary = "";
1582
1607
  let secondary = "";
1583
- if (!((_a = session == null ? void 0 : session.identity) == null ? void 0 : _a.traits)) {
1608
+ if (!((_a = session == null ? void 0 : session.identity) == null ? void 0 : _a.traits) || !isTraitsIndexable(session.identity.traits)) {
1584
1609
  return {
1585
1610
  primary,
1586
1611
  secondary,
@@ -1588,14 +1613,14 @@ var getUserInitials = (session) => {
1588
1613
  };
1589
1614
  }
1590
1615
  const traits = (_b = session.identity) == null ? void 0 : _b.traits;
1591
- if (traits.email) {
1616
+ if (traits.email && typeof traits.email === "string") {
1592
1617
  secondary = traits.email;
1593
1618
  }
1594
1619
  if (traits.name) {
1595
1620
  if (typeof traits.name === "string") {
1596
1621
  primary = traits.name;
1597
1622
  }
1598
- if (traits.name.first && traits.name.last) {
1623
+ if (typeof traits.name === "object" && traits.name && traits.name.first && traits.name.last) {
1599
1624
  primary = traits.name.first + " " + traits.name.last;
1600
1625
  }
1601
1626
  }
@@ -1613,10 +1638,10 @@ var getUserInitials = (session) => {
1613
1638
  // src/theme/default/components/ui/dropdown-menu.tsx
1614
1639
  import { forwardRef as forwardRef3 } from "react";
1615
1640
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1616
- import { jsx as jsx46 } from "react/jsx-runtime";
1641
+ import { jsx as jsx47 } from "react/jsx-runtime";
1617
1642
  var DropdownMenu = DropdownMenuPrimitive.Root;
1618
1643
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1619
- var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx46(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx46(
1644
+ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx47(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx47(
1620
1645
  DropdownMenuPrimitive.Content,
1621
1646
  {
1622
1647
  ref,
@@ -1624,24 +1649,24 @@ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props },
1624
1649
  align: "end",
1625
1650
  className: cn(
1626
1651
  "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",
1627
- "border border-dialog-border-default bg-dialog-bg-default rounded-border-radius-cards",
1652
+ "border border-interface-border-default-primary bg-interface-background-default-primary rounded-cards",
1628
1653
  className
1629
1654
  ),
1630
1655
  ...props
1631
1656
  }
1632
1657
  ) }));
1633
1658
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
1634
- var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx46(
1659
+ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx47(
1635
1660
  DropdownMenuPrimitive.Item,
1636
1661
  {
1637
1662
  ref,
1638
1663
  className: cn(
1639
1664
  "relative flex cursor-pointer select-none items-center outline-none transition-colors data-[disabled]:pointer-events-none",
1640
1665
  "px-8 py-3 lg:py-4.5 text-sm gap-6",
1641
- "first:border-0 border-t border-button-secondary-border-default hover:border-button-social-border-hover data-[disabled]:border-button-secondary-border-disabled",
1642
- "text-button-secondary-fg-default bg-button-secondary-bg-default",
1643
- "hover:text-button-secondary-fg-hover hover:bg-button-secondary-bg-hover",
1644
- "data-[disabled]:text-button-secondary-fg-disabled data-[disabled]:bg-button-secondary-bg-disabled",
1666
+ "first:border-0 border-t border-button-secondary-border-default hover:border-button-social-border-hover",
1667
+ "text-button-secondary-foreground-default bg-button-secondary-background-default",
1668
+ "hover:text-button-secondary-foreground-hover hover:bg-button-secondary-background-hover",
1669
+ "data-[disabled]:text-button-secondary-foreground-disabled data-[disabled]:bg-button-secondary-background-disabled",
1645
1670
  inset && "pl-8",
1646
1671
  className
1647
1672
  ),
@@ -1649,7 +1674,7 @@ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @
1649
1674
  }
1650
1675
  ));
1651
1676
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
1652
- var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx46(
1677
+ var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx47(
1653
1678
  DropdownMenuPrimitive.Label,
1654
1679
  {
1655
1680
  ref,
@@ -1668,31 +1693,37 @@ import { forwardRef as forwardRef4 } from "react";
1668
1693
 
1669
1694
  // src/theme/default/assets/icons/user.svg
1670
1695
  import * as React24 from "react";
1671
- import { jsx as jsx47 } from "react/jsx-runtime";
1696
+ import { jsx as jsx48 } from "react/jsx-runtime";
1672
1697
  var SvgUser = (props) => {
1673
1698
  var _a, _b;
1674
- return /* @__PURE__ */ jsx47("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx47("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
1699
+ return /* @__PURE__ */ jsx48("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx48("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
1675
1700
  };
1676
1701
  var user_default = SvgUser;
1677
1702
 
1678
1703
  // src/theme/default/components/ui/user-avater.tsx
1679
- import { jsx as jsx48 } from "react/jsx-runtime";
1704
+ import { jsx as jsx49 } from "react/jsx-runtime";
1680
1705
  var UserAvatar = forwardRef4(
1681
1706
  ({ initials, ...rest }, ref) => {
1682
- return /* @__PURE__ */ jsx48(
1707
+ return /* @__PURE__ */ jsx49(
1683
1708
  "button",
1684
1709
  {
1685
1710
  ref,
1686
- className: "size-10 relative flex overflow-hidden items-center justify-center rounded-full bg-button-primary-bg-default disabled:hover:bg-button-primary-bg-default hover:bg-button-primary-bg-hover",
1711
+ className: "relative flex size-10 items-center justify-center overflow-hidden rounded-full bg-button-primary-background-default hover:bg-button-primary-background-hover",
1687
1712
  ...rest,
1688
- children: /* @__PURE__ */ jsx48("div", { className: "relative size-full flex items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx48(
1713
+ children: /* @__PURE__ */ jsx49("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx49(
1689
1714
  "img",
1690
1715
  {
1691
1716
  src: initials.avatar,
1692
1717
  alt: initials.primary,
1693
1718
  className: "w-full object-contain"
1694
1719
  }
1695
- ) : /* @__PURE__ */ jsx48(user_default, { size: 24, className: "text-button-primary-fg-default" }) })
1720
+ ) : /* @__PURE__ */ jsx49(
1721
+ user_default,
1722
+ {
1723
+ size: 24,
1724
+ className: "text-button-primary-foreground-default"
1725
+ }
1726
+ ) })
1696
1727
  }
1697
1728
  );
1698
1729
  }
@@ -1700,11 +1731,11 @@ var UserAvatar = forwardRef4(
1700
1731
  UserAvatar.displayName = "UserAvatar";
1701
1732
 
1702
1733
  // src/theme/default/components/ui/user-menu.tsx
1703
- import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
1734
+ import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
1704
1735
  var UserMenu = ({ session }) => {
1705
1736
  const { config } = useOryFlow10();
1706
1737
  const initials = getUserInitials(session);
1707
- const [logoutFlow, setLogoutFlow] = useState2();
1738
+ const [logoutFlow, setLogoutFlow] = useState();
1708
1739
  const fetchLogoutFlow = useCallback(async () => {
1709
1740
  const flow = await frontendClient(config.sdk.url).createBrowserLogoutFlow();
1710
1741
  setLogoutFlow(flow);
@@ -1713,21 +1744,21 @@ var UserMenu = ({ session }) => {
1713
1744
  void fetchLogoutFlow();
1714
1745
  }, [fetchLogoutFlow]);
1715
1746
  return /* @__PURE__ */ jsxs28(DropdownMenu, { children: [
1716
- /* @__PURE__ */ jsx49(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx49(UserAvatar, { initials }) }),
1747
+ /* @__PURE__ */ jsx50(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx50(UserAvatar, { initials }) }),
1717
1748
  /* @__PURE__ */ jsxs28(DropdownMenuContent, { children: [
1718
- /* @__PURE__ */ jsxs28(DropdownMenuLabel2, { className: "px-5 py-4.5 flex gap-3", children: [
1719
- /* @__PURE__ */ jsx49(UserAvatar, { disabled: true, initials }),
1720
- /* @__PURE__ */ jsxs28("div", { className: "flex flex-col text-sm leading-tight justify-center", children: [
1721
- /* @__PURE__ */ jsx49("div", { className: "text-dialog-fg-default", children: initials.primary }),
1722
- initials.secondary && /* @__PURE__ */ jsx49("div", { className: "text-dialog-fg-mute", children: initials.secondary })
1749
+ /* @__PURE__ */ jsxs28(DropdownMenuLabel2, { className: "flex gap-3 px-5 py-4.5", children: [
1750
+ /* @__PURE__ */ jsx50(UserAvatar, { disabled: true, initials }),
1751
+ /* @__PURE__ */ jsxs28("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
1752
+ /* @__PURE__ */ jsx50("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
1753
+ initials.secondary && /* @__PURE__ */ jsx50("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
1723
1754
  ] })
1724
1755
  ] }),
1725
- /* @__PURE__ */ jsx49(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs28("a", { href: "/settings", children: [
1726
- /* @__PURE__ */ jsx49(settings_default, { size: 16 }),
1756
+ /* @__PURE__ */ jsx50(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs28("a", { href: "/settings", children: [
1757
+ /* @__PURE__ */ jsx50(settings_default, { size: 16 }),
1727
1758
  " User settings"
1728
1759
  ] }) }),
1729
- /* @__PURE__ */ jsx49(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs28("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
1730
- /* @__PURE__ */ jsx49(logout_default, { size: 16 }),
1760
+ /* @__PURE__ */ jsx50(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs28("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
1761
+ /* @__PURE__ */ jsx50(logout_default, { size: 16 }),
1731
1762
  " Logout"
1732
1763
  ] }) })
1733
1764
  ] })
@@ -1736,39 +1767,39 @@ var UserMenu = ({ session }) => {
1736
1767
 
1737
1768
  // src/theme/default/components/generic/page-header.tsx
1738
1769
  import { useSession } from "@ory/elements-react/client";
1739
- import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
1770
+ import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
1740
1771
  var DefaultPageHeader = (_props) => {
1741
1772
  const { Card } = useComponents3();
1742
1773
  const { session } = useSession();
1743
- return /* @__PURE__ */ jsx50("div", { className: "flex max-w-[896px] flex-col w-full gap-3 mt-16", children: /* @__PURE__ */ jsx50("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex gap-2 max-h-10 justify-between flex-1", children: [
1744
- /* @__PURE__ */ jsx50("div", { className: "h-10 flex-1 relative", children: /* @__PURE__ */ jsx50(Card.Logo, {}) }),
1745
- /* @__PURE__ */ jsx50(UserMenu, { session })
1774
+ return /* @__PURE__ */ jsx51("div", { className: "mt-16 flex w-full max-w-[896px] flex-col gap-3", children: /* @__PURE__ */ jsx51("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
1775
+ /* @__PURE__ */ jsx51("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ jsx51(Card.Logo, {}) }),
1776
+ /* @__PURE__ */ jsx51(UserMenu, { session })
1746
1777
  ] }) }) });
1747
1778
  };
1748
1779
 
1749
1780
  // src/theme/default/assets/icons/trash.svg
1750
1781
  import * as React25 from "react";
1751
- import { jsx as jsx51 } from "react/jsx-runtime";
1782
+ import { jsx as jsx52 } from "react/jsx-runtime";
1752
1783
  var SvgTrash = (props) => {
1753
1784
  var _a, _b;
1754
- return /* @__PURE__ */ jsx51("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx51("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
1785
+ return /* @__PURE__ */ jsx52("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx52("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
1755
1786
  };
1756
1787
  var trash_default = SvgTrash;
1757
1788
 
1758
1789
  // src/theme/default/components/settings/settings-oidc.tsx
1759
- import { useFormContext as useFormContext6 } from "react-hook-form";
1760
- import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
1790
+ import { useFormContext as useFormContext7 } from "react-hook-form";
1791
+ import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
1761
1792
  function DefaultSettingsOidc({
1762
1793
  linkButtons,
1763
1794
  unlinkButtons
1764
1795
  }) {
1765
1796
  const hasLinkButtons = linkButtons.length > 0;
1766
1797
  const hasUnlinkButtons = unlinkButtons.length > 0;
1767
- const { setValue } = useFormContext6();
1798
+ const { setValue } = useFormContext7();
1768
1799
  return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-8", children: [
1769
- hasLinkButtons && /* @__PURE__ */ jsx52("div", { className: "flex gap-3 items-start [&>button]:w-[79px]", children: linkButtons.map((button) => {
1800
+ hasLinkButtons && /* @__PURE__ */ jsx53("div", { className: "flex items-start gap-3 [&>button]:w-[79px]", children: linkButtons.map((button) => {
1770
1801
  const attrs = button.attributes;
1771
- return /* @__PURE__ */ jsx52(
1802
+ return /* @__PURE__ */ jsx53(
1772
1803
  DefaultButtonSocial,
1773
1804
  {
1774
1805
  showLabel: false,
@@ -1782,18 +1813,18 @@ function DefaultSettingsOidc({
1782
1813
  attrs.value
1783
1814
  );
1784
1815
  }) }),
1785
- hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx52(DefaultHorizontalDivider, {}) : null,
1816
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx53(DefaultHorizontalDivider, {}) : null,
1786
1817
  unlinkButtons.map((button) => {
1787
1818
  var _a, _b;
1788
1819
  const attrs = button.attributes;
1789
1820
  const provider = (_b = extractProvider((_a = button.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
1790
1821
  const Logo = attrs.value in provider_logos_default ? provider_logos_default[attrs.value] : provider_logos_default.generic;
1791
1822
  return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between", children: [
1792
- /* @__PURE__ */ jsxs30("div", { className: "flex gap-6 items-center", children: [
1793
- /* @__PURE__ */ jsx52(Logo, { size: 32 }),
1794
- /* @__PURE__ */ jsx52("p", { className: "text-dialog-fg-subtle text-sm font-medium", children: provider })
1823
+ /* @__PURE__ */ jsxs30("div", { className: "flex items-center gap-6", children: [
1824
+ /* @__PURE__ */ jsx53(Logo, { size: 32 }),
1825
+ /* @__PURE__ */ jsx53("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
1795
1826
  ] }),
1796
- /* @__PURE__ */ jsx52(
1827
+ /* @__PURE__ */ jsx53(
1797
1828
  "button",
1798
1829
  {
1799
1830
  ...attrs,
@@ -1802,7 +1833,13 @@ function DefaultSettingsOidc({
1802
1833
  setValue("unlink", attrs.value);
1803
1834
  setValue("method", "oidc");
1804
1835
  },
1805
- children: /* @__PURE__ */ jsx52(trash_default, { className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover" })
1836
+ children: /* @__PURE__ */ jsx53(
1837
+ trash_default,
1838
+ {
1839
+ className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
1840
+ size: 24
1841
+ }
1842
+ )
1806
1843
  }
1807
1844
  )
1808
1845
  ] }, attrs.value);
@@ -1811,47 +1848,62 @@ function DefaultSettingsOidc({
1811
1848
  }
1812
1849
 
1813
1850
  // src/theme/default/components/settings/settings-passkey.tsx
1814
- import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
1851
+ import { useComponents as useComponents4 } from "@ory/elements-react";
1852
+ import { jsx as jsx54, jsxs as jsxs31 } from "react/jsx-runtime";
1815
1853
  function DefaultSettingsPasskey({
1816
1854
  triggerButton,
1817
1855
  removeButtons
1818
1856
  }) {
1857
+ const { Node } = useComponents4();
1819
1858
  const hasRemoveButtons = removeButtons.length > 0;
1820
1859
  return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1821
- /* @__PURE__ */ jsx53("div", { className: "flex gap-3 items-end max-w-[60%]", children: triggerButton ? /* @__PURE__ */ jsx53(
1822
- DefaultButton,
1860
+ /* @__PURE__ */ jsx54("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ jsx54(
1861
+ Node.Button,
1823
1862
  {
1824
1863
  node: triggerButton,
1825
1864
  attributes: triggerButton.attributes,
1826
1865
  onClick: triggerButton.onClick
1827
1866
  }
1828
- ) : null }),
1867
+ ) }),
1829
1868
  hasRemoveButtons ? /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1830
- /* @__PURE__ */ jsx53(DefaultHorizontalDivider, {}),
1831
- /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
1869
+ /* @__PURE__ */ jsx54(DefaultHorizontalDivider, {}),
1870
+ /* @__PURE__ */ jsx54("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
1832
1871
  var _a, _b;
1833
1872
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
1834
1873
  const addedAt = "added_at" in context ? context.added_at : null;
1835
- const diaplyName = "display_name" in context ? context.display_name : null;
1874
+ const displayName = "display_name" in context ? context.display_name : null;
1836
1875
  const keyId = "value" in node.attributes ? node.attributes.value : null;
1837
1876
  return /* @__PURE__ */ jsxs31(
1838
1877
  "div",
1839
1878
  {
1840
1879
  className: "flex justify-between gap-6",
1841
1880
  children: [
1842
- /* @__PURE__ */ jsx53(passkey_default, { size: 32, className: "text-dialog-fg-default" }),
1881
+ /* @__PURE__ */ jsx54(
1882
+ passkey_default,
1883
+ {
1884
+ size: 32,
1885
+ className: "text-interface-foreground-default-primary"
1886
+ }
1887
+ ),
1843
1888
  /* @__PURE__ */ jsxs31("div", { className: "flex-1 flex-col", children: [
1844
- /* @__PURE__ */ jsx53("p", { className: "text-sm font-medium text-dialog-fg-subtle", children: diaplyName }),
1845
- /* @__PURE__ */ jsx53("span", { className: "text-sm text-dialog-fg-mute", children: keyId })
1889
+ /* @__PURE__ */ jsx54("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
1890
+ /* @__PURE__ */ jsx54("span", { className: "text-sm text-interface-foreground-default-tertiary", children: keyId })
1846
1891
  ] }),
1847
- addedAt && /* @__PURE__ */ jsx53("p", { className: "text-sm self-center text-dialog-fg-mute", children: new Date(addedAt).toLocaleDateString() }),
1848
- /* @__PURE__ */ jsx53(
1892
+ addedAt && /* @__PURE__ */ jsx54("p", { className: "self-center text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
1893
+ dateStyle: "long"
1894
+ }).format(new Date(addedAt)) }),
1895
+ /* @__PURE__ */ jsx54(
1849
1896
  "button",
1850
1897
  {
1851
1898
  ...node.attributes,
1852
1899
  type: "submit",
1853
- className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover",
1854
- children: /* @__PURE__ */ jsx53(trash_default, { size: 20 })
1900
+ children: /* @__PURE__ */ jsx54(
1901
+ trash_default,
1902
+ {
1903
+ className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
1904
+ size: 24
1905
+ }
1906
+ )
1855
1907
  }
1856
1908
  )
1857
1909
  ]
@@ -1865,36 +1917,36 @@ function DefaultSettingsPasskey({
1865
1917
 
1866
1918
  // src/theme/default/assets/icons/download.svg
1867
1919
  import * as React26 from "react";
1868
- import { jsx as jsx54 } from "react/jsx-runtime";
1920
+ import { jsx as jsx55 } from "react/jsx-runtime";
1869
1921
  var SvgDownload = (props) => {
1870
1922
  var _a, _b;
1871
- return /* @__PURE__ */ jsx54("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx54("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
1923
+ return /* @__PURE__ */ jsx55("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx55("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
1872
1924
  };
1873
1925
  var download_default = SvgDownload;
1874
1926
 
1875
1927
  // src/theme/default/assets/icons/eye.svg
1876
1928
  import * as React27 from "react";
1877
- import { jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
1929
+ import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
1878
1930
  var SvgEye = (props) => {
1879
1931
  var _a, _b;
1880
- return /* @__PURE__ */ jsx55("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsxs32("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1881
- /* @__PURE__ */ jsx55("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1882
- /* @__PURE__ */ jsx55("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1932
+ return /* @__PURE__ */ jsx56("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsxs32("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1933
+ /* @__PURE__ */ jsx56("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1934
+ /* @__PURE__ */ jsx56("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1883
1935
  ] }) });
1884
1936
  };
1885
1937
  var eye_default = SvgEye;
1886
1938
 
1887
1939
  // src/theme/default/assets/icons/refresh.svg
1888
1940
  import * as React28 from "react";
1889
- import { jsx as jsx56 } from "react/jsx-runtime";
1941
+ import { jsx as jsx57 } from "react/jsx-runtime";
1890
1942
  var SvgRefresh = (props) => {
1891
1943
  var _a, _b;
1892
- return /* @__PURE__ */ jsx56("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx56("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
1944
+ return /* @__PURE__ */ jsx57("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx57("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
1893
1945
  };
1894
1946
  var refresh_default = SvgRefresh;
1895
1947
 
1896
1948
  // src/theme/default/components/settings/settings-recovery-codes.tsx
1897
- import { jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
1949
+ import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
1898
1950
  function DefaultSettingsRecoveryCodes({
1899
1951
  codes,
1900
1952
  regnerateButton,
@@ -1912,62 +1964,65 @@ function DefaultSettingsRecoveryCodes({
1912
1964
  };
1913
1965
  const hasCodes = codes.length >= 1;
1914
1966
  return /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-8", children: [
1915
- /* @__PURE__ */ jsx57(DefaultHorizontalDivider, {}),
1967
+ /* @__PURE__ */ jsx58(DefaultHorizontalDivider, {}),
1916
1968
  /* @__PURE__ */ jsxs33("div", { className: "flex justify-end gap-4", children: [
1917
- regnerateButton && /* @__PURE__ */ jsx57(
1969
+ regnerateButton && /* @__PURE__ */ jsx58(
1918
1970
  "button",
1919
1971
  {
1920
1972
  ...regnerateButton.attributes,
1921
1973
  type: "submit",
1922
- children: /* @__PURE__ */ jsx57(
1974
+ children: /* @__PURE__ */ jsx58(
1923
1975
  refresh_default,
1924
1976
  {
1925
1977
  size: 24,
1926
- className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover"
1978
+ className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover"
1927
1979
  }
1928
1980
  )
1929
1981
  }
1930
1982
  ),
1931
- revealButton && /* @__PURE__ */ jsx57(
1983
+ revealButton && /* @__PURE__ */ jsx58(
1932
1984
  "button",
1933
1985
  {
1934
1986
  ...revealButton.attributes,
1935
1987
  type: "submit",
1936
- children: /* @__PURE__ */ jsx57(
1988
+ children: /* @__PURE__ */ jsx58(
1937
1989
  eye_default,
1938
1990
  {
1939
1991
  size: 24,
1940
- className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover"
1992
+ className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover"
1941
1993
  }
1942
1994
  )
1943
1995
  }
1944
1996
  ),
1945
- hasCodes ? /* @__PURE__ */ jsx57(
1997
+ hasCodes && /* @__PURE__ */ jsx58("button", { onClick: onDownload, type: "button", children: /* @__PURE__ */ jsx58(
1946
1998
  download_default,
1947
1999
  {
1948
2000
  size: 24,
1949
- onClick: onDownload,
1950
- className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover"
2001
+ className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover"
1951
2002
  }
1952
- ) : null
2003
+ ) })
1953
2004
  ] }),
1954
- hasCodes ? /* @__PURE__ */ jsx57("div", { className: "rounded-border-radius-cards bg-bg-default ring-1 ring-dialog-border-default p-6", children: /* @__PURE__ */ jsx57("div", { className: "grid grid-cols-6 gap-4 flex-wrap text-dialog-fg-default text-sm", children: codes.map((code) => /* @__PURE__ */ jsx57("p", { children: code }, code)) }) }) : null
2005
+ hasCodes ? /* @__PURE__ */ jsx58("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ jsx58("div", { className: "grid grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary", children: codes.map((code) => /* @__PURE__ */ jsx58("p", { children: code }, code)) }) }) : null
1955
2006
  ] });
1956
2007
  }
1957
2008
 
2009
+ // src/theme/default/components/settings/settings-top.tsx
2010
+ import { useComponents as useComponents5 } from "@ory/elements-react";
2011
+
1958
2012
  // src/theme/default/assets/icons/qrcode.svg
1959
2013
  import * as React29 from "react";
1960
- import { jsx as jsx58 } from "react/jsx-runtime";
2014
+ import { jsx as jsx59 } from "react/jsx-runtime";
1961
2015
  var SvgQrcode = (props) => {
1962
2016
  var _a, _b;
1963
- return /* @__PURE__ */ jsx58("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx58("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
2017
+ return /* @__PURE__ */ jsx59("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx59("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
1964
2018
  };
1965
2019
  var qrcode_default = SvgQrcode;
1966
2020
 
1967
2021
  // src/theme/default/components/settings/settings-top.tsx
1968
- import { jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
2022
+ import { jsx as jsx60, jsxs as jsxs34 } from "react/jsx-runtime";
1969
2023
  function DefaultSettingsTotp(props) {
1970
2024
  var _a;
2025
+ const { Node, Card } = useComponents5();
1971
2026
  if ("totpUnlink" in props && props.totpUnlink) {
1972
2027
  const {
1973
2028
  type,
@@ -1976,21 +2031,21 @@ function DefaultSettingsTotp(props) {
1976
2031
  node_type: _ignoredNodeType,
1977
2032
  ...buttonAttrs
1978
2033
  } = (_a = props.totpUnlink) == null ? void 0 : _a.attributes;
1979
- return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
1980
- /* @__PURE__ */ jsx59("div", { className: "col-span-full", children: /* @__PURE__ */ jsx59(DefaultHorizontalDivider, {}) }),
1981
- /* @__PURE__ */ jsxs34("div", { className: "flex gap-6 items-center col-span-full", children: [
1982
- /* @__PURE__ */ jsx59("div", { className: "size-8 aspect-square ", children: /* @__PURE__ */ jsx59(qrcode_default, { size: 32 }) }),
1983
- /* @__PURE__ */ jsx59("div", { className: "flex flex-col mr-auto", children: /* @__PURE__ */ jsx59("p", { className: "text-dialog-fg-subtle text-sm font-medium", children: "Authenticator app" }) }),
1984
- /* @__PURE__ */ jsx59(
2034
+ return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2035
+ /* @__PURE__ */ jsx60("div", { className: "col-span-full", children: /* @__PURE__ */ jsx60(Card.Divider, {}) }),
2036
+ /* @__PURE__ */ jsxs34("div", { className: "col-span-full flex items-center gap-6", children: [
2037
+ /* @__PURE__ */ jsx60("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ jsx60(qrcode_default, { size: 32 }) }),
2038
+ /* @__PURE__ */ jsx60("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx60("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
2039
+ /* @__PURE__ */ jsx60(
1985
2040
  "button",
1986
2041
  {
1987
2042
  type: type === "button" ? "button" : "submit",
1988
2043
  ...buttonAttrs,
1989
- children: /* @__PURE__ */ jsx59(
2044
+ children: /* @__PURE__ */ jsx60(
1990
2045
  trash_default,
1991
2046
  {
1992
- size: 24,
1993
- className: "text-links-link-mute-default hover:text-links-link-mute-hover"
2047
+ className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
2048
+ size: 24
1994
2049
  }
1995
2050
  )
1996
2051
  }
@@ -1999,10 +2054,10 @@ function DefaultSettingsTotp(props) {
1999
2054
  ] });
2000
2055
  }
2001
2056
  if ("totpSecret" in props) {
2002
- return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
2003
- /* @__PURE__ */ jsx59("div", { className: "col-span-full", children: /* @__PURE__ */ jsx59(DefaultHorizontalDivider, {}) }),
2004
- /* @__PURE__ */ jsx59("div", { className: "bg-dialog-bg-subtle p-8 rounded-xl flex justify-center", children: /* @__PURE__ */ jsx59("div", { className: "h-44 aspect-square bg-[white] rounded", children: /* @__PURE__ */ jsx59("div", { className: "mix-blend-multiply -m-3 antialiased", children: /* @__PURE__ */ jsx59(
2005
- DefaultImage,
2057
+ return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2058
+ /* @__PURE__ */ jsx60("div", { className: "col-span-full", children: /* @__PURE__ */ jsx60(DefaultHorizontalDivider, {}) }),
2059
+ /* @__PURE__ */ jsx60("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx60("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ jsx60("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx60(
2060
+ Node.Image,
2006
2061
  {
2007
2062
  node: props.totpImage,
2008
2063
  attributes: {
@@ -2011,13 +2066,13 @@ function DefaultSettingsTotp(props) {
2011
2066
  }
2012
2067
  ) }) }) }),
2013
2068
  /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
2014
- /* @__PURE__ */ jsx59(
2015
- DefaultLabel,
2069
+ /* @__PURE__ */ jsx60(
2070
+ Node.Label,
2016
2071
  {
2017
2072
  node: props.totpSecret,
2018
2073
  attributes: props.totpSecret.attributes,
2019
- children: /* @__PURE__ */ jsx59(
2020
- DefaultInput,
2074
+ children: /* @__PURE__ */ jsx60(
2075
+ Node.Input,
2021
2076
  {
2022
2077
  node: props.totpSecret,
2023
2078
  attributes: {
@@ -2031,13 +2086,13 @@ function DefaultSettingsTotp(props) {
2031
2086
  )
2032
2087
  }
2033
2088
  ),
2034
- /* @__PURE__ */ jsx59(
2035
- DefaultLabel,
2089
+ /* @__PURE__ */ jsx60(
2090
+ Node.Label,
2036
2091
  {
2037
2092
  attributes: props.totpInput.attributes,
2038
2093
  node: props.totpInput,
2039
- children: /* @__PURE__ */ jsx59(
2040
- DefaultInput,
2094
+ children: /* @__PURE__ */ jsx60(
2095
+ Node.Input,
2041
2096
  {
2042
2097
  node: props.totpInput,
2043
2098
  attributes: props.totpInput.attributes
@@ -2050,32 +2105,36 @@ function DefaultSettingsTotp(props) {
2050
2105
  }
2051
2106
  }
2052
2107
 
2108
+ // src/theme/default/components/settings/settings-webauthn.tsx
2109
+ import { useComponents as useComponents6 } from "@ory/elements-react";
2110
+
2053
2111
  // src/theme/default/assets/icons/key.svg
2054
2112
  import * as React30 from "react";
2055
- import { jsx as jsx60 } from "react/jsx-runtime";
2113
+ import { jsx as jsx61 } from "react/jsx-runtime";
2056
2114
  var SvgKey = (props) => {
2057
2115
  var _a, _b;
2058
- return /* @__PURE__ */ jsx60("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx60("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
2116
+ return /* @__PURE__ */ jsx61("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx61("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
2059
2117
  };
2060
2118
  var key_default = SvgKey;
2061
2119
 
2062
2120
  // src/theme/default/components/settings/settings-webauthn.tsx
2063
- import { jsx as jsx61, jsxs as jsxs35 } from "react/jsx-runtime";
2121
+ import { jsx as jsx62, jsxs as jsxs35 } from "react/jsx-runtime";
2064
2122
  function DefaultSettingsWebauthn({
2065
2123
  nameInput,
2066
2124
  triggerButton,
2067
2125
  removeButtons
2068
2126
  }) {
2127
+ const { Node, Card } = useComponents6();
2069
2128
  const hasRemoveButtons = removeButtons.length > 0;
2070
2129
  return /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
2071
- /* @__PURE__ */ jsxs35("div", { className: "flex gap-3 items-end max-w-[60%]", children: [
2072
- /* @__PURE__ */ jsx61("div", { className: "flex-1", children: /* @__PURE__ */ jsx61(
2073
- DefaultLabel,
2130
+ /* @__PURE__ */ jsxs35("div", { className: "flex max-w-[60%] items-end gap-3", children: [
2131
+ /* @__PURE__ */ jsx62("div", { className: "flex-1", children: /* @__PURE__ */ jsx62(
2132
+ Node.Label,
2074
2133
  {
2075
2134
  node: nameInput,
2076
2135
  attributes: nameInput.attributes,
2077
- children: /* @__PURE__ */ jsx61(
2078
- DefaultInput,
2136
+ children: /* @__PURE__ */ jsx62(
2137
+ Node.Input,
2079
2138
  {
2080
2139
  node: nameInput,
2081
2140
  attributes: nameInput.attributes
@@ -2083,8 +2142,8 @@ function DefaultSettingsWebauthn({
2083
2142
  )
2084
2143
  }
2085
2144
  ) }),
2086
- triggerButton ? /* @__PURE__ */ jsx61(
2087
- DefaultButton,
2145
+ triggerButton ? /* @__PURE__ */ jsx62(
2146
+ Node.Button,
2088
2147
  {
2089
2148
  node: triggerButton,
2090
2149
  attributes: triggerButton.attributes,
@@ -2093,8 +2152,8 @@ function DefaultSettingsWebauthn({
2093
2152
  ) : null
2094
2153
  ] }),
2095
2154
  hasRemoveButtons ? /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
2096
- /* @__PURE__ */ jsx61(DefaultHorizontalDivider, {}),
2097
- /* @__PURE__ */ jsx61("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
2155
+ /* @__PURE__ */ jsx62(Card.Divider, {}),
2156
+ /* @__PURE__ */ jsx62("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
2098
2157
  var _a, _b;
2099
2158
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
2100
2159
  const addedAt = "added_at" in context ? context.added_at : null;
@@ -2105,19 +2164,32 @@ function DefaultSettingsWebauthn({
2105
2164
  {
2106
2165
  className: "flex justify-between gap-6",
2107
2166
  children: [
2108
- /* @__PURE__ */ jsx61(key_default, { size: 32, className: "text-dialog-fg-default" }),
2167
+ /* @__PURE__ */ jsx62(
2168
+ key_default,
2169
+ {
2170
+ size: 32,
2171
+ className: "text-interface-foreground-default-primary"
2172
+ }
2173
+ ),
2109
2174
  /* @__PURE__ */ jsxs35("div", { className: "flex-1 flex-col", children: [
2110
- /* @__PURE__ */ jsx61("p", { className: "text-sm font-medium text-dialog-fg-subtle", children: diaplyName }),
2111
- /* @__PURE__ */ jsx61("span", { className: "text-sm text-dialog-fg-mute", children: keyId })
2175
+ /* @__PURE__ */ jsx62("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: diaplyName }),
2176
+ /* @__PURE__ */ jsx62("span", { className: "text-sm text-interface-foreground-default-tertiary", children: keyId })
2112
2177
  ] }),
2113
- addedAt && /* @__PURE__ */ jsx61("p", { className: "text-sm self-center text-dialog-fg-mute", children: new Date(addedAt).toLocaleDateString() }),
2114
- /* @__PURE__ */ jsx61(
2178
+ addedAt && /* @__PURE__ */ jsx62("p", { className: "self-center text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2179
+ dateStyle: "long"
2180
+ }).format(new Date(addedAt)) }),
2181
+ /* @__PURE__ */ jsx62(
2115
2182
  "button",
2116
2183
  {
2117
2184
  ...node.attributes,
2118
2185
  type: "submit",
2119
- className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover",
2120
- children: /* @__PURE__ */ jsx61(trash_default, { size: 20 })
2186
+ children: /* @__PURE__ */ jsx62(
2187
+ trash_default,
2188
+ {
2189
+ className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
2190
+ size: 24
2191
+ }
2192
+ )
2121
2193
  }
2122
2194
  )
2123
2195
  ]
@@ -2177,12 +2249,12 @@ function getOryComponents(overrides) {
2177
2249
  }
2178
2250
 
2179
2251
  // src/theme/default/flows/error.tsx
2180
- import { jsx as jsx62 } from "react/jsx-runtime";
2252
+ import { jsx as jsx63 } from "react/jsx-runtime";
2181
2253
  function Error({
2182
2254
  error,
2183
2255
  children
2184
2256
  }) {
2185
- return /* @__PURE__ */ jsx62("div", { children: JSON.stringify(error) || children });
2257
+ return /* @__PURE__ */ jsx63("div", { children: JSON.stringify(error) || children });
2186
2258
  }
2187
2259
 
2188
2260
  // src/theme/default/flows/login.tsx
@@ -2191,7 +2263,7 @@ import {
2191
2263
  OryProvider,
2192
2264
  OryTwoStepCard
2193
2265
  } from "@ory/elements-react";
2194
- import { jsx as jsx63 } from "react/jsx-runtime";
2266
+ import { jsx as jsx64 } from "react/jsx-runtime";
2195
2267
  function Login({
2196
2268
  flow,
2197
2269
  config,
@@ -2199,14 +2271,14 @@ function Login({
2199
2271
  components: flowOverrideComponents
2200
2272
  }) {
2201
2273
  const components = getOryComponents(flowOverrideComponents);
2202
- return /* @__PURE__ */ jsx63(
2274
+ return /* @__PURE__ */ jsx64(
2203
2275
  OryProvider,
2204
2276
  {
2205
2277
  config,
2206
2278
  flow,
2207
2279
  flowType: FlowType8.Login,
2208
2280
  components,
2209
- children: children != null ? children : /* @__PURE__ */ jsx63(OryTwoStepCard, {})
2281
+ children: children != null ? children : /* @__PURE__ */ jsx64(OryTwoStepCard, {})
2210
2282
  }
2211
2283
  );
2212
2284
  }
@@ -2217,7 +2289,7 @@ import {
2217
2289
  OryProvider as OryProvider2,
2218
2290
  OryTwoStepCard as OryTwoStepCard2
2219
2291
  } from "@ory/elements-react";
2220
- import { jsx as jsx64 } from "react/jsx-runtime";
2292
+ import { jsx as jsx65 } from "react/jsx-runtime";
2221
2293
  function Recovery({
2222
2294
  flow,
2223
2295
  config,
@@ -2225,14 +2297,14 @@ function Recovery({
2225
2297
  components: flowOverrideComponents
2226
2298
  }) {
2227
2299
  const components = getOryComponents(flowOverrideComponents);
2228
- return /* @__PURE__ */ jsx64(
2300
+ return /* @__PURE__ */ jsx65(
2229
2301
  OryProvider2,
2230
2302
  {
2231
2303
  config,
2232
2304
  flow,
2233
2305
  flowType: FlowType9.Recovery,
2234
2306
  components,
2235
- children: children != null ? children : /* @__PURE__ */ jsx64(OryTwoStepCard2, {})
2307
+ children: children != null ? children : /* @__PURE__ */ jsx65(OryTwoStepCard2, {})
2236
2308
  }
2237
2309
  );
2238
2310
  }
@@ -2243,7 +2315,7 @@ import {
2243
2315
  OryProvider as OryProvider3,
2244
2316
  OryTwoStepCard as OryTwoStepCard3
2245
2317
  } from "@ory/elements-react";
2246
- import { jsx as jsx65 } from "react/jsx-runtime";
2318
+ import { jsx as jsx66 } from "react/jsx-runtime";
2247
2319
  function Registration({
2248
2320
  flow,
2249
2321
  children,
@@ -2251,14 +2323,14 @@ function Registration({
2251
2323
  config
2252
2324
  }) {
2253
2325
  const components = getOryComponents(flowOverrideComponents);
2254
- return /* @__PURE__ */ jsx65(
2326
+ return /* @__PURE__ */ jsx66(
2255
2327
  OryProvider3,
2256
2328
  {
2257
2329
  config,
2258
2330
  flow,
2259
2331
  flowType: FlowType10.Registration,
2260
2332
  components,
2261
- children: children != null ? children : /* @__PURE__ */ jsx65(OryTwoStepCard3, {})
2333
+ children: children != null ? children : /* @__PURE__ */ jsx66(OryTwoStepCard3, {})
2262
2334
  }
2263
2335
  );
2264
2336
  }
@@ -2270,7 +2342,7 @@ import {
2270
2342
  OryProvider as OryProvider4,
2271
2343
  OrySettingsCard
2272
2344
  } from "@ory/elements-react";
2273
- import { Fragment as Fragment4, jsx as jsx66, jsxs as jsxs36 } from "react/jsx-runtime";
2345
+ import { Fragment as Fragment4, jsx as jsx67, jsxs as jsxs36 } from "react/jsx-runtime";
2274
2346
  function Settings({
2275
2347
  flow,
2276
2348
  config,
@@ -2278,7 +2350,7 @@ function Settings({
2278
2350
  components: flowOverrideComponents
2279
2351
  }) {
2280
2352
  const components = getOryComponents(flowOverrideComponents);
2281
- return /* @__PURE__ */ jsx66(
2353
+ return /* @__PURE__ */ jsx67(
2282
2354
  OryProvider4,
2283
2355
  {
2284
2356
  config,
@@ -2286,8 +2358,8 @@ function Settings({
2286
2358
  flowType: FlowType11.Settings,
2287
2359
  components,
2288
2360
  children: children != null ? children : /* @__PURE__ */ jsxs36(Fragment4, { children: [
2289
- /* @__PURE__ */ jsx66(HeadlessPageHeader, {}),
2290
- /* @__PURE__ */ jsx66(OrySettingsCard, {})
2361
+ /* @__PURE__ */ jsx67(HeadlessPageHeader, {}),
2362
+ /* @__PURE__ */ jsx67(OrySettingsCard, {})
2291
2363
  ] })
2292
2364
  }
2293
2365
  );
@@ -2299,7 +2371,7 @@ import {
2299
2371
  OryProvider as OryProvider5,
2300
2372
  OryTwoStepCard as OryTwoStepCard4
2301
2373
  } from "@ory/elements-react";
2302
- import { jsx as jsx67 } from "react/jsx-runtime";
2374
+ import { jsx as jsx68 } from "react/jsx-runtime";
2303
2375
  function Verification({
2304
2376
  flow,
2305
2377
  config,
@@ -2307,14 +2379,14 @@ function Verification({
2307
2379
  components: flowOverrideComponents
2308
2380
  }) {
2309
2381
  const components = getOryComponents(flowOverrideComponents);
2310
- return /* @__PURE__ */ jsx67(
2382
+ return /* @__PURE__ */ jsx68(
2311
2383
  OryProvider5,
2312
2384
  {
2313
2385
  config,
2314
2386
  flow,
2315
2387
  flowType: FlowType12.Verification,
2316
2388
  components,
2317
- children: children != null ? children : /* @__PURE__ */ jsx67(OryTwoStepCard4, {})
2389
+ children: children != null ? children : /* @__PURE__ */ jsx68(OryTwoStepCard4, {})
2318
2390
  }
2319
2391
  );
2320
2392
  }
@@ -2324,6 +2396,7 @@ export {
2324
2396
  DefaultCardContent,
2325
2397
  DefaultCardFooter,
2326
2398
  DefaultCardHeader,
2399
+ DefaultCardLayout,
2327
2400
  DefaultCardLogo,
2328
2401
  DefaultCurrentIdentifierButton,
2329
2402
  DefaultFormContainer,