@ory/elements-react 1.0.0-next.25 → 1.0.0-next.27

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 (180) hide show
  1. package/.storybook/global.css +7 -0
  2. package/.storybook/main.ts +50 -0
  3. package/.storybook/preview-head.html +15 -0
  4. package/.storybook/preview.tsx +68 -0
  5. package/.storybook/public/InterVariable.woff2 +0 -0
  6. package/.storybook/public/inter.css +8 -0
  7. package/.stub-responses/login/1fa/all-methods/initial-form.json +247 -0
  8. package/.stub-responses/login/1fa/all-methods/missing-email.json +265 -0
  9. package/.stub-responses/login/1fa/all-methods/wrong-credentials.json +254 -0
  10. package/.stub-responses/login/1fa/code/code-input.json +135 -0
  11. package/.stub-responses/login/1fa/code/initial-form.json +173 -0
  12. package/.stub-responses/login/1fa/code/invalid-account.json +182 -0
  13. package/.stub-responses/login/1fa/code/missing-email.json +182 -0
  14. package/.stub-responses/login/1fa/code/wrong-credentials.json +124 -0
  15. package/.stub-responses/login/1fa/none/initial-form.json +33 -0
  16. package/.stub-responses/login/1fa/oidc/initial-form.json +279 -0
  17. package/.stub-responses/login/1fa/passkey/initial-form.json +122 -0
  18. package/.stub-responses/login/1fa/password/initial-form.json +154 -0
  19. package/.stub-responses/login/1fa/password/missing-email.json +172 -0
  20. package/.stub-responses/login/1fa/password/wrong-credentials.json +163 -0
  21. package/.stub-responses/login/1fa/webauthn/initial-form.json +76 -0
  22. package/.stub-responses/login/1fa/webauthn/invalid-account.json +83 -0
  23. package/.stub-responses/login/1fa/webauthn/show-trigger.json +105 -0
  24. package/.stub-responses/recovery/disabled/initial-form.json +9 -0
  25. package/.stub-responses/recovery/none/initial-form.json +9 -0
  26. package/.stub-responses/registration/one-step/all-methods/initial-form.json +334 -0
  27. package/.stub-responses/registration/one-step/all-methods/missing-fields.json +343 -0
  28. package/.stub-responses/registration/one-step/disabled/initial-form.json +10 -0
  29. package/.stub-responses/registration/one-step/none/initial-form.json +14 -0
  30. package/.stub-responses/registration/one-step/oidc/initial-form.json +338 -0
  31. package/.stub-responses/registration/one-step/passkey/initial-form.json +177 -0
  32. package/.stub-responses/registration/one-step/password/initial-form.json +154 -0
  33. package/.stub-responses/registration/one-step/password/missing-fields.json +172 -0
  34. package/.stub-responses/registration/one-step/password/second-step.json +164 -0
  35. package/.stub-responses/registration/one-step/webauthn/initial-form.json +185 -0
  36. package/.stub-responses/registration/two-step/all-methods/enter-password.json +242 -0
  37. package/.stub-responses/registration/two-step/all-methods/initial-form.json +180 -0
  38. package/.stub-responses/registration/two-step/all-methods/missing-fields.json +189 -0
  39. package/.stub-responses/registration/two-step/all-methods/password-validation-error.json +244 -0
  40. package/.stub-responses/registration/two-step/password/enter-password.json +108 -0
  41. package/.stub-responses/registration/two-step/password/initial-form.json +134 -0
  42. package/.stub-responses/registration/two-step/password/missing-fields.json +143 -0
  43. package/.stub-responses/registration/two-step/password/password-validation-error.json +110 -0
  44. package/.stub-responses/settings/all-methods/change-password.json +381 -0
  45. package/.stub-responses/settings/all-methods/change-trait.json +377 -0
  46. package/.stub-responses/settings/all-methods/initial-form.json +368 -0
  47. package/.stub-responses/settings/oidc/with-provider.json +230 -0
  48. package/.stub-responses/settings/passkey/initial-form.json +256 -0
  49. package/.stub-responses/settings/webauthn/initial-form.json +263 -0
  50. package/.stub-responses/verification/disabled/initial-form.json +9 -0
  51. package/.stub-responses/verification/none/initial-form.json +9 -0
  52. package/CHANGELOG.md +30 -0
  53. package/dist/index.d.mts +3 -3
  54. package/dist/index.d.ts +3 -3
  55. package/dist/index.js +2103 -2047
  56. package/dist/index.js.map +1 -1
  57. package/dist/index.mjs +2103 -2047
  58. package/dist/index.mjs.map +1 -1
  59. package/dist/theme/default/index.css +259 -106
  60. package/dist/theme/default/index.css.map +1 -1
  61. package/dist/theme/default/index.js +22 -11
  62. package/dist/theme/default/index.js.map +1 -1
  63. package/dist/theme/default/index.mjs +22 -11
  64. package/dist/theme/default/index.mjs.map +1 -1
  65. package/dist/theme/default/tailwind/defaults.js +219 -0
  66. package/dist/theme/default/tailwind/defaults.js.map +1 -0
  67. package/dist/theme/default/tailwind/defaults.mjs +196 -0
  68. package/dist/theme/default/tailwind/defaults.mjs.map +1 -0
  69. package/package.json +7 -2
  70. package/stories/components/login/1fa/all.stories.ts +46 -0
  71. package/stories/components/login/1fa/code.stories.ts +64 -0
  72. package/stories/components/login/1fa/custom.stories.tsx +72 -0
  73. package/stories/components/login/1fa/none.stories.tsx +28 -0
  74. package/stories/components/login/1fa/oidc.stories.tsx +143 -0
  75. package/stories/components/login/1fa/passkey.stories.ts +28 -0
  76. package/stories/components/login/1fa/password.stories.ts +46 -0
  77. package/stories/components/login/1fa/webauthn.stories.ts +46 -0
  78. package/stories/components/registration/one-step/all-methods.stories.ts +37 -0
  79. package/stories/components/registration/one-step/password.stories.ts +37 -0
  80. package/stories/components/registration/one-step/webauthn.stories.ts +28 -0
  81. package/stories/components/registration/two-step/all-methods.stories.ts +55 -0
  82. package/stories/components/registration/two-step/password.stories.ts +55 -0
  83. package/stories/components/settings/all.stories.ts +46 -0
  84. package/stories/components/settings/oidc.stories.ts +28 -0
  85. package/stories/components/settings/passkey.stories.ts +28 -0
  86. package/stories/components/settings/webauthn.stories.ts +28 -0
  87. package/stories/pages/error.tsx +29 -0
  88. package/stories/utils.ts +20 -0
  89. package/storybook-static/InterVariable.woff2 +0 -0
  90. package/storybook-static/assets/Color-ERTF36HU-BdkKyVuV.js +1 -0
  91. package/storybook-static/assets/DocsRenderer-CFRXHY34-YqKt61zP.js +595 -0
  92. package/storybook-static/assets/all-methods.stories-B-rqPBX2.js +11 -0
  93. package/storybook-static/assets/all-methods.stories-CmMlhzsx.js +21 -0
  94. package/storybook-static/assets/all.stories-CtQ0yCQi.js +16 -0
  95. package/storybook-static/assets/all.stories-DgIVCzcZ.js +16 -0
  96. package/storybook-static/assets/chunk-H6MOWX77-DTQOW814.js +1 -0
  97. package/storybook-static/assets/code.stories-BbEryDcA.js +26 -0
  98. package/storybook-static/assets/custom.stories-DH2zHar9.js +6 -0
  99. package/storybook-static/assets/entry-preview-CcFGVifh.js +10 -0
  100. package/storybook-static/assets/entry-preview-docs-CyY-8bLe.js +54 -0
  101. package/storybook-static/assets/iframe-C5GAfuxh.js +2 -0
  102. package/storybook-static/assets/index-BVoBHvaS.js +8 -0
  103. package/storybook-static/assets/index-CfOt2XX2.js +24 -0
  104. package/storybook-static/assets/index-DPRSEdy-.js +1 -0
  105. package/storybook-static/assets/index-DrFu-skq.js +6 -0
  106. package/storybook-static/assets/index-FeUjBnvO.js +1 -0
  107. package/storybook-static/assets/index-uubelm5h.js +9 -0
  108. package/storybook-static/assets/initial-form-DWp_1F-f.js +1 -0
  109. package/storybook-static/assets/jsx-runtime-QvZ8i92b.js +9 -0
  110. package/storybook-static/assets/none.stories-TAeRhzd5.js +6 -0
  111. package/storybook-static/assets/oidc.stories-CniWBy7t.js +58 -0
  112. package/storybook-static/assets/oidc.stories-jhWzAyoQ.js +6 -0
  113. package/storybook-static/assets/passkey.stories-CBtjoVSN.js +6 -0
  114. package/storybook-static/assets/passkey.stories-CQU2Xw_t.js +6 -0
  115. package/storybook-static/assets/password.stories-0s6cDl0o.js +11 -0
  116. package/storybook-static/assets/password.stories-B2Wtckz_.js +16 -0
  117. package/storybook-static/assets/password.stories-DX0gkWjH.js +21 -0
  118. package/storybook-static/assets/preview-BBWR9nbA.js +1 -0
  119. package/storybook-static/assets/preview-BPAmP-pY.js +2 -0
  120. package/storybook-static/assets/preview-BWzBA1C2.js +396 -0
  121. package/storybook-static/assets/preview-BXtF2ySE.js +234 -0
  122. package/storybook-static/assets/preview-Cur_8nCX.css +1 -0
  123. package/storybook-static/assets/preview-D77C14du.js +34 -0
  124. package/storybook-static/assets/preview-DCjDUH0w.js +27 -0
  125. package/storybook-static/assets/preview-DFmD0pui.js +1 -0
  126. package/storybook-static/assets/preview-DGUiP6tS.js +7 -0
  127. package/storybook-static/assets/preview-aVwhiz9X.js +1 -0
  128. package/storybook-static/assets/react-18-CtsMCmcS.js +1 -0
  129. package/storybook-static/assets/settings-BqEFC2-V.css +1 -0
  130. package/storybook-static/assets/settings-Bx4osEmB.js +2304 -0
  131. package/storybook-static/assets/webauthn.stories-BzodmV0c.js +6 -0
  132. package/storybook-static/assets/webauthn.stories-DglGm7Ys.js +6 -0
  133. package/storybook-static/assets/webauthn.stories-G9E76Wjj.js +16 -0
  134. package/storybook-static/favicon.svg +1 -0
  135. package/storybook-static/iframe.html +654 -0
  136. package/storybook-static/index.html +173 -0
  137. package/storybook-static/index.json +1 -0
  138. package/storybook-static/inter.css +8 -0
  139. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  140. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  141. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  142. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  143. package/storybook-static/preview-stats.json +2344 -0
  144. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  145. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  146. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
  147. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  148. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +394 -0
  149. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -0
  150. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
  151. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  152. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
  153. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  154. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
  155. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  156. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
  157. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  158. package/storybook-static/sb-addons/interactions-8/manager-bundle.js +211 -0
  159. package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  160. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  161. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  162. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  163. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  164. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  165. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  166. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  167. package/storybook-static/sb-manager/globals-module-info.js +1006 -0
  168. package/storybook-static/sb-manager/globals-runtime.js +54400 -0
  169. package/storybook-static/sb-manager/globals.js +48 -0
  170. package/storybook-static/sb-manager/runtime.js +12089 -0
  171. package/storybook-static/sb-preview/globals.js +33 -0
  172. package/storybook-static/sb-preview/runtime.js +9498 -0
  173. package/tailwind/defaults.ts +34 -0
  174. package/tailwind/generated/README.md +2 -0
  175. package/tailwind/generated/default-variables.css +216 -0
  176. package/tailwind/generated/variables-processed.json +161 -0
  177. package/tsconfig.json +2 -3
  178. package/tsconfig.runtime.json +4 -0
  179. package/tsconfig.test.json +0 -9
  180. package/variables-processed.json +0 -391
@@ -27,7 +27,7 @@ var ory_badge_vertical_default = SvgOryBadgeVertical;
27
27
  // src/theme/default/components/card/badge.tsx
28
28
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
29
29
  function Badge() {
30
- return /* @__PURE__ */ jsxs3("div", { className: "absolute bg-ory-background-default p-2 font-bold max-sm:bottom-0 max-sm:left-8 max-sm:translate-y-full max-sm:rounded-b-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: [
30
+ return /* @__PURE__ */ jsxs3("div", { className: "absolute bg-ory-background-default p-2 font-bold max-sm:bottom-0 max-sm:left-8 max-sm:translate-y-full max-sm:rounded-b-branding sm:right-0 sm:top-8 sm:translate-x-full sm:rounded-r-branding border-ory-border-default border max-sm:py-[7px] sm:pl-[7px]", children: [
31
31
  /* @__PURE__ */ jsx3(ory_badge_horizontal_default, { width: 22, height: 8, className: "sm:hidden" }),
32
32
  /* @__PURE__ */ jsx3(ory_badge_vertical_default, { width: 8, height: 22, className: "max-sm:hidden" })
33
33
  ] });
@@ -51,6 +51,9 @@ function restartFlowUrl(flow, fallback) {
51
51
  function initFlowUrl(sdkUrl, flowType, flow) {
52
52
  const result = `${sdkUrl}/self-service/${flowType}/browser`;
53
53
  const qs = new URLSearchParams();
54
+ if (flow.oauth2_login_challenge) {
55
+ qs.set("login_challenge", flow.oauth2_login_challenge);
56
+ }
54
57
  if (flow.return_to) {
55
58
  qs.set("return_to", flow.return_to);
56
59
  } else if (typeof window !== "undefined") {
@@ -425,7 +428,7 @@ function DefaultCurrentIdentifierButton() {
425
428
  return /* @__PURE__ */ jsx6(
426
429
  "a",
427
430
  {
428
- className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-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",
431
+ className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-identifier border px-[11px] py-[5px] transition-colors border-button-identifier-border-border-default bg-button-identifier-background-default hover:border-button-identifier-border-border-hover hover:bg-button-identifier-background-hover",
429
432
  ...attributes,
430
433
  href: initFlowUrl2,
431
434
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.attributes.value}`,
@@ -644,7 +647,7 @@ import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
644
647
  var SvgLinkedin = (props) => {
645
648
  var _a, _b;
646
649
  return /* @__PURE__ */ jsxs13("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
647
- /* @__PURE__ */ jsx19("rect", { x: 2, y: 2, fill: "#1275B1", rx: 14 }),
650
+ /* @__PURE__ */ jsx19("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
648
651
  /* @__PURE__ */ jsx19("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
649
652
  ] });
650
653
  };
@@ -796,7 +799,7 @@ function DefaultButtonSocial({
796
799
  formState: { isSubmitting }
797
800
  } = useFormContext2();
798
801
  const oidcNodeCount = (_a = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a : 0;
799
- const Logo = logos2[attributes.value];
802
+ const Logo = logos2[attributes.value.split("-")[0]];
800
803
  const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
801
804
  const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
802
805
  const localOnClick = () => {
@@ -811,7 +814,7 @@ function DefaultButtonSocial({
811
814
  return /* @__PURE__ */ jsxs19(
812
815
  "button",
813
816
  {
814
- className: "gap-3 border border-button-social-border-default bg-button-social-background-default hover:bg-button-social-background-hover transition-colors rounded flex items-center justify-center px-4 py-[13px] loading:bg-button-social-background-disabled loading:border-button-social-border-disabled loading:text-button-social-foreground-disabled hover:text-button-social-foreground-hover",
817
+ className: "gap-3 border border-button-social-border-default bg-button-social-background-default hover:bg-button-social-background-hover transition-colors rounded-buttons flex items-center justify-center px-4 py-[13px] loading:bg-button-social-background-disabled loading:border-button-social-border-disabled loading:text-button-social-foreground-disabled hover:text-button-social-foreground-hover",
815
818
  value: attributes.value,
816
819
  type: "submit",
817
820
  name: "provider",
@@ -821,7 +824,7 @@ function DefaultButtonSocial({
821
824
  "data-loading": clicked,
822
825
  disabled: isSubmitting,
823
826
  children: [
824
- /* @__PURE__ */ jsx25("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ jsx25(Logo, { size: 20 }) : /* @__PURE__ */ jsx25("span", { className: "flex aspect-square items-center justify-center rounded-full border text-xs", children: provider.slice(0, 2) }) : /* @__PURE__ */ jsx25(Spinner, { className: "size-5" }) }),
827
+ /* @__PURE__ */ jsx25("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ jsx25(Logo, { size: 20 }) : /* @__PURE__ */ jsx25("span", { className: "flex aspect-square items-center justify-center rounded-[999px] border text-xs", children: provider.slice(0, 2) }) : /* @__PURE__ */ jsx25(Spinner, { className: "size-5" }) }),
825
828
  showLabel && node.meta.label ? /* @__PURE__ */ jsx25("span", { className: "grow text-left font-medium leading-none text-button-social-foreground-default", children: uiTextToFormattedMessage(node.meta.label, intl) }) : null
826
829
  ]
827
830
  }
@@ -993,7 +996,7 @@ import { useEffect as useEffect2, useState as useState2 } from "react";
993
996
  import { jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
994
997
  var buttonStyles = cva(
995
998
  [
996
- "relative flex justify-center gap-3 overflow-hidden rounded leading-none ring-1 ring-inset font-medium",
999
+ "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
997
1000
  "disabled:cursor-not-allowed loading:cursor-wait loading:before:pointer-events-none",
998
1001
  "transition-colors duration-100 ease-linear",
999
1002
  "p-4 max-w-[488px]"
@@ -1124,6 +1127,14 @@ var uiTextToFormattedMessage4 = ({ id, context = {}, text }, intl) => {
1124
1127
  ).toFixed(0)
1125
1128
  };
1126
1129
  }
1130
+ } else if (key === "property") {
1131
+ return {
1132
+ ...accumulator,
1133
+ [key]: intl.formatMessage({
1134
+ id: `property.${value}`,
1135
+ defaultMessage: value
1136
+ })
1137
+ };
1127
1138
  }
1128
1139
  return {
1129
1140
  ...accumulator,
@@ -1550,7 +1561,7 @@ var DefaultFormSectionContent = ({
1550
1561
  description,
1551
1562
  children
1552
1563
  }) => {
1553
- return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-8 rounded-t-xl border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
1564
+ return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
1554
1565
  /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-2", children: [
1555
1566
  /* @__PURE__ */ jsx43("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
1556
1567
  /* @__PURE__ */ jsx43("span", { className: "text-interface-foreground-default-secondary", children: description })
@@ -1566,7 +1577,7 @@ var DefaultFormSectionFooter = ({
1566
1577
  "div",
1567
1578
  {
1568
1579
  className: cn(
1569
- "flex min-h-[72px] items-center justify-between gap-2 rounded-b-xl border border-interface-border-default-primary bg-interface-background-default-secondary px-6 py-4 text-interface-foreground-default-tertiary"
1580
+ "flex min-h-[72px] items-center justify-between gap-2 rounded-b-cards border border-interface-border-default-primary bg-interface-background-default-secondary px-6 py-4 text-interface-foreground-default-tertiary"
1570
1581
  ),
1571
1582
  children: [
1572
1583
  /* @__PURE__ */ jsx43("span", { children: text }),
@@ -1754,7 +1765,7 @@ var UserAvatar = forwardRef4(
1754
1765
  "button",
1755
1766
  {
1756
1767
  ref,
1757
- className: "relative flex size-10 items-center justify-center overflow-hidden rounded-full bg-button-primary-background-default hover:bg-button-primary-background-hover",
1768
+ className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
1758
1769
  ...rest,
1759
1770
  children: /* @__PURE__ */ jsx49("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx49(
1760
1771
  "img",
@@ -1817,7 +1828,7 @@ import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
1817
1828
  var DefaultPageHeader = (_props) => {
1818
1829
  const { Card } = useComponents3();
1819
1830
  const { session } = useSession();
1820
- return /* @__PURE__ */ jsx51("div", { className: "mt-16 flex w-full max-w-[896px] flex-col gap-3", children: /* @__PURE__ */ jsx51("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
1831
+ return /* @__PURE__ */ jsx51("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ jsx51("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
1821
1832
  /* @__PURE__ */ jsx51("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ jsx51(Card.Logo, {}) }),
1822
1833
  /* @__PURE__ */ jsx51(UserMenu, { session })
1823
1834
  ] }) }) });