@ory/elements-react 1.0.0-next.29 → 1.0.0-next.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.d.mts +3 -6
- package/dist/index.d.ts +3 -6
- package/dist/index.js +253 -299
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +253 -299
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.js +258 -248
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +215 -205
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +3 -3
- package/.storybook/global.css +0 -7
- package/.storybook/main.ts +0 -50
- package/.storybook/preview-head.html +0 -15
- package/.storybook/preview.tsx +0 -68
- package/.storybook/public/InterVariable.woff2 +0 -0
- package/.storybook/public/inter.css +0 -8
- package/.stub-responses/login/1fa/all-methods/initial-form.json +0 -247
- package/.stub-responses/login/1fa/all-methods/missing-email.json +0 -265
- package/.stub-responses/login/1fa/all-methods/wrong-credentials.json +0 -254
- package/.stub-responses/login/1fa/code/code-input.json +0 -135
- package/.stub-responses/login/1fa/code/initial-form.json +0 -173
- package/.stub-responses/login/1fa/code/invalid-account.json +0 -182
- package/.stub-responses/login/1fa/code/missing-email.json +0 -182
- package/.stub-responses/login/1fa/code/wrong-credentials.json +0 -124
- package/.stub-responses/login/1fa/none/initial-form.json +0 -33
- package/.stub-responses/login/1fa/oidc/initial-form.json +0 -279
- package/.stub-responses/login/1fa/passkey/initial-form.json +0 -122
- package/.stub-responses/login/1fa/password/initial-form.json +0 -154
- package/.stub-responses/login/1fa/password/missing-email.json +0 -172
- package/.stub-responses/login/1fa/password/wrong-credentials.json +0 -163
- package/.stub-responses/login/1fa/webauthn/initial-form.json +0 -76
- package/.stub-responses/login/1fa/webauthn/invalid-account.json +0 -83
- package/.stub-responses/login/1fa/webauthn/show-trigger.json +0 -105
- package/.stub-responses/recovery/disabled/initial-form.json +0 -9
- package/.stub-responses/recovery/none/initial-form.json +0 -9
- package/.stub-responses/registration/one-step/all-methods/initial-form.json +0 -334
- package/.stub-responses/registration/one-step/all-methods/missing-fields.json +0 -343
- package/.stub-responses/registration/one-step/disabled/initial-form.json +0 -10
- package/.stub-responses/registration/one-step/none/initial-form.json +0 -14
- package/.stub-responses/registration/one-step/oidc/initial-form.json +0 -338
- package/.stub-responses/registration/one-step/passkey/initial-form.json +0 -177
- package/.stub-responses/registration/one-step/password/initial-form.json +0 -154
- package/.stub-responses/registration/one-step/password/missing-fields.json +0 -172
- package/.stub-responses/registration/one-step/password/second-step.json +0 -164
- package/.stub-responses/registration/one-step/webauthn/initial-form.json +0 -185
- package/.stub-responses/registration/two-step/all-methods/enter-password.json +0 -242
- package/.stub-responses/registration/two-step/all-methods/initial-form.json +0 -180
- package/.stub-responses/registration/two-step/all-methods/missing-fields.json +0 -189
- package/.stub-responses/registration/two-step/all-methods/password-validation-error.json +0 -244
- package/.stub-responses/registration/two-step/password/enter-password.json +0 -108
- package/.stub-responses/registration/two-step/password/initial-form.json +0 -134
- package/.stub-responses/registration/two-step/password/missing-fields.json +0 -143
- package/.stub-responses/registration/two-step/password/password-validation-error.json +0 -110
- package/.stub-responses/settings/all-methods/change-password.json +0 -381
- package/.stub-responses/settings/all-methods/change-trait.json +0 -377
- package/.stub-responses/settings/all-methods/initial-form.json +0 -368
- package/.stub-responses/settings/oidc/with-provider.json +0 -230
- package/.stub-responses/settings/passkey/initial-form.json +0 -256
- package/.stub-responses/settings/webauthn/initial-form.json +0 -263
- package/.stub-responses/verification/disabled/initial-form.json +0 -9
- package/.stub-responses/verification/none/initial-form.json +0 -9
- package/stories/components/login/1fa/all.stories.ts +0 -46
- package/stories/components/login/1fa/code.stories.ts +0 -64
- package/stories/components/login/1fa/custom.stories.tsx +0 -72
- package/stories/components/login/1fa/none.stories.tsx +0 -28
- package/stories/components/login/1fa/oidc.stories.tsx +0 -143
- package/stories/components/login/1fa/passkey.stories.ts +0 -28
- package/stories/components/login/1fa/password.stories.ts +0 -46
- package/stories/components/login/1fa/webauthn.stories.ts +0 -46
- package/stories/components/registration/one-step/all-methods.stories.ts +0 -37
- package/stories/components/registration/one-step/password.stories.ts +0 -37
- package/stories/components/registration/one-step/webauthn.stories.ts +0 -28
- package/stories/components/registration/two-step/all-methods.stories.ts +0 -55
- package/stories/components/registration/two-step/password.stories.ts +0 -55
- package/stories/components/settings/all.stories.ts +0 -46
- package/stories/components/settings/oidc.stories.ts +0 -28
- package/stories/components/settings/passkey.stories.ts +0 -28
- package/stories/components/settings/webauthn.stories.ts +0 -28
- package/stories/pages/error.tsx +0 -29
- package/stories/utils.ts +0 -20
- package/storybook-static/InterVariable.woff2 +0 -0
- package/storybook-static/assets/Color-ERTF36HU-BdkKyVuV.js +0 -1
- package/storybook-static/assets/DocsRenderer-CFRXHY34-YqKt61zP.js +0 -595
- package/storybook-static/assets/all-methods.stories-B-rqPBX2.js +0 -11
- package/storybook-static/assets/all-methods.stories-CmMlhzsx.js +0 -21
- package/storybook-static/assets/all.stories-CtQ0yCQi.js +0 -16
- package/storybook-static/assets/all.stories-DgIVCzcZ.js +0 -16
- package/storybook-static/assets/chunk-H6MOWX77-DTQOW814.js +0 -1
- package/storybook-static/assets/code.stories-BbEryDcA.js +0 -26
- package/storybook-static/assets/custom.stories-DH2zHar9.js +0 -6
- package/storybook-static/assets/entry-preview-CcFGVifh.js +0 -10
- package/storybook-static/assets/entry-preview-docs-CyY-8bLe.js +0 -54
- package/storybook-static/assets/iframe-C5GAfuxh.js +0 -2
- package/storybook-static/assets/index-BVoBHvaS.js +0 -8
- package/storybook-static/assets/index-CfOt2XX2.js +0 -24
- package/storybook-static/assets/index-DPRSEdy-.js +0 -1
- package/storybook-static/assets/index-DrFu-skq.js +0 -6
- package/storybook-static/assets/index-FeUjBnvO.js +0 -1
- package/storybook-static/assets/index-uubelm5h.js +0 -9
- package/storybook-static/assets/initial-form-DWp_1F-f.js +0 -1
- package/storybook-static/assets/jsx-runtime-QvZ8i92b.js +0 -9
- package/storybook-static/assets/none.stories-TAeRhzd5.js +0 -6
- package/storybook-static/assets/oidc.stories-CniWBy7t.js +0 -58
- package/storybook-static/assets/oidc.stories-jhWzAyoQ.js +0 -6
- package/storybook-static/assets/passkey.stories-CBtjoVSN.js +0 -6
- package/storybook-static/assets/passkey.stories-CQU2Xw_t.js +0 -6
- package/storybook-static/assets/password.stories-0s6cDl0o.js +0 -11
- package/storybook-static/assets/password.stories-B2Wtckz_.js +0 -16
- package/storybook-static/assets/password.stories-DX0gkWjH.js +0 -21
- package/storybook-static/assets/preview-BBWR9nbA.js +0 -1
- package/storybook-static/assets/preview-BPAmP-pY.js +0 -2
- package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
- package/storybook-static/assets/preview-BXtF2ySE.js +0 -234
- package/storybook-static/assets/preview-Cur_8nCX.css +0 -1
- package/storybook-static/assets/preview-D77C14du.js +0 -34
- package/storybook-static/assets/preview-DCjDUH0w.js +0 -27
- package/storybook-static/assets/preview-DFmD0pui.js +0 -1
- package/storybook-static/assets/preview-DGUiP6tS.js +0 -7
- package/storybook-static/assets/preview-aVwhiz9X.js +0 -1
- package/storybook-static/assets/react-18-CtsMCmcS.js +0 -1
- package/storybook-static/assets/settings-BqEFC2-V.css +0 -1
- package/storybook-static/assets/settings-Bx4osEmB.js +0 -2304
- package/storybook-static/assets/webauthn.stories-BzodmV0c.js +0 -6
- package/storybook-static/assets/webauthn.stories-DglGm7Ys.js +0 -6
- package/storybook-static/assets/webauthn.stories-G9E76Wjj.js +0 -16
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -654
- package/storybook-static/index.html +0 -173
- package/storybook-static/index.json +0 -1
- package/storybook-static/inter.css +0 -8
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/preview-stats.json +0 -2344
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -394
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js +0 -211
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +0 -1006
- package/storybook-static/sb-manager/globals-runtime.js +0 -54400
- package/storybook-static/sb-manager/globals.js +0 -48
- package/storybook-static/sb-manager/runtime.js +0 -12089
- package/storybook-static/sb-preview/globals.js +0 -33
- package/storybook-static/sb-preview/runtime.js +0 -9498
|
@@ -747,6 +747,15 @@ var SvgYandex = (props) => {
|
|
|
747
747
|
};
|
|
748
748
|
var yandex_default = SvgYandex;
|
|
749
749
|
|
|
750
|
+
// src/theme/default/provider-logos/x.svg
|
|
751
|
+
var React17 = __toESM(require("react"));
|
|
752
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
753
|
+
var SvgX = (props) => {
|
|
754
|
+
var _a, _b;
|
|
755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("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__ */ (0, import_jsx_runtime24.jsx)("path", { fill: "#0F172A", d: "M24.122 3h4.292L18.99 13.73 30 28.285h-8.64l-6.764-8.845-7.744 8.845H2.56l9.983-11.476L2 3h8.854l6.112 8.08zM22.62 25.766h2.379L9.604 5.426H7.048z" }) });
|
|
756
|
+
};
|
|
757
|
+
var x_default = SvgX;
|
|
758
|
+
|
|
750
759
|
// src/theme/default/provider-logos/index.ts
|
|
751
760
|
var logos = {
|
|
752
761
|
apple: apple_default,
|
|
@@ -761,7 +770,8 @@ var logos = {
|
|
|
761
770
|
microsoft: microsoft_default,
|
|
762
771
|
slack: slack_default,
|
|
763
772
|
spotify: spotify_default,
|
|
764
|
-
yandex: yandex_default
|
|
773
|
+
yandex: yandex_default,
|
|
774
|
+
x: x_default
|
|
765
775
|
};
|
|
766
776
|
var provider_logos_default = logos;
|
|
767
777
|
|
|
@@ -771,9 +781,9 @@ var import_react = require("react");
|
|
|
771
781
|
var import_react_hook_form2 = require("react-hook-form");
|
|
772
782
|
|
|
773
783
|
// src/theme/default/components/form/spinner.tsx
|
|
774
|
-
var
|
|
784
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
775
785
|
function Spinner({ className }) {
|
|
776
|
-
return /* @__PURE__ */ (0,
|
|
786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
777
787
|
"svg",
|
|
778
788
|
{
|
|
779
789
|
"aria-hidden": "true",
|
|
@@ -786,7 +796,7 @@ function Spinner({ className }) {
|
|
|
786
796
|
fill: "none",
|
|
787
797
|
xmlns: "http://www.w3.org/2000/svg",
|
|
788
798
|
children: [
|
|
789
|
-
/* @__PURE__ */ (0,
|
|
799
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
790
800
|
"path",
|
|
791
801
|
{
|
|
792
802
|
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",
|
|
@@ -795,7 +805,7 @@ function Spinner({ className }) {
|
|
|
795
805
|
strokeLinejoin: "round"
|
|
796
806
|
}
|
|
797
807
|
) }),
|
|
798
|
-
/* @__PURE__ */ (0,
|
|
808
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
799
809
|
"rect",
|
|
800
810
|
{
|
|
801
811
|
width: "24",
|
|
@@ -810,7 +820,7 @@ function Spinner({ className }) {
|
|
|
810
820
|
}
|
|
811
821
|
|
|
812
822
|
// src/theme/default/components/form/social.tsx
|
|
813
|
-
var
|
|
823
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
814
824
|
function extractProvider(context) {
|
|
815
825
|
if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
|
|
816
826
|
return context.provider;
|
|
@@ -853,7 +863,7 @@ function DefaultButtonSocial({
|
|
|
853
863
|
setClicked(false);
|
|
854
864
|
}
|
|
855
865
|
}, [isSubmitting]);
|
|
856
|
-
return /* @__PURE__ */ (0,
|
|
866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
857
867
|
"button",
|
|
858
868
|
{
|
|
859
869
|
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",
|
|
@@ -866,18 +876,18 @@ function DefaultButtonSocial({
|
|
|
866
876
|
"data-loading": clicked,
|
|
867
877
|
disabled: isSubmitting,
|
|
868
878
|
children: [
|
|
869
|
-
/* @__PURE__ */ (0,
|
|
870
|
-
showLabel && node.meta.label ? /* @__PURE__ */ (0,
|
|
879
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Logo, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "flex aspect-square items-center justify-center rounded-[999px] border text-xs", children: provider.slice(0, 2) }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Spinner, { className: "size-5" }) }),
|
|
880
|
+
showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "grow text-left font-medium leading-none text-button-social-foreground-default", children: (0, import_elements_react5.uiTextToFormattedMessage)(node.meta.label, intl) }) : null
|
|
871
881
|
]
|
|
872
882
|
}
|
|
873
883
|
);
|
|
874
884
|
}
|
|
875
|
-
DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ (0,
|
|
885
|
+
DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DefaultButtonSocial, { ...props, logos: logos2 });
|
|
876
886
|
function DefaultSocialButtonContainer({
|
|
877
887
|
children,
|
|
878
888
|
nodes
|
|
879
889
|
}) {
|
|
880
|
-
return /* @__PURE__ */ (0,
|
|
890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
881
891
|
"div",
|
|
882
892
|
{
|
|
883
893
|
className: cn("grid gap-3", {
|
|
@@ -892,14 +902,14 @@ function DefaultSocialButtonContainer({
|
|
|
892
902
|
}
|
|
893
903
|
|
|
894
904
|
// src/theme/default/components/form/index.tsx
|
|
895
|
-
var
|
|
905
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
896
906
|
function DefaultFormContainer({
|
|
897
907
|
children,
|
|
898
908
|
onSubmit,
|
|
899
909
|
action,
|
|
900
910
|
method
|
|
901
911
|
}) {
|
|
902
|
-
return /* @__PURE__ */ (0,
|
|
912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
903
913
|
"form",
|
|
904
914
|
{
|
|
905
915
|
onSubmit,
|
|
@@ -916,7 +926,7 @@ function DefaultMessageContainer({ children }) {
|
|
|
916
926
|
if (!children || Array.isArray(children) && children.length === 0) {
|
|
917
927
|
return null;
|
|
918
928
|
}
|
|
919
|
-
return /* @__PURE__ */ (0,
|
|
929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
920
930
|
"section",
|
|
921
931
|
{
|
|
922
932
|
className: cn(
|
|
@@ -928,7 +938,7 @@ function DefaultMessageContainer({ children }) {
|
|
|
928
938
|
}
|
|
929
939
|
function DefaultMessage({ message }) {
|
|
930
940
|
const intl = (0, import_react_intl4.useIntl)();
|
|
931
|
-
return /* @__PURE__ */ (0,
|
|
941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
932
942
|
"span",
|
|
933
943
|
{
|
|
934
944
|
className: cn(
|
|
@@ -947,38 +957,38 @@ function DefaultMessage({ message }) {
|
|
|
947
957
|
var import_react_intl5 = require("react-intl");
|
|
948
958
|
|
|
949
959
|
// src/theme/default/assets/icons/code.svg
|
|
950
|
-
var
|
|
951
|
-
var
|
|
960
|
+
var React18 = __toESM(require("react"));
|
|
961
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
952
962
|
var SvgCode = (props) => {
|
|
953
963
|
var _a, _b;
|
|
954
|
-
return /* @__PURE__ */ (0,
|
|
964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("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__ */ (0, import_jsx_runtime28.jsx)("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" }) });
|
|
955
965
|
};
|
|
956
966
|
var code_default = SvgCode;
|
|
957
967
|
|
|
958
968
|
// src/theme/default/assets/icons/passkey.svg
|
|
959
|
-
var
|
|
960
|
-
var
|
|
969
|
+
var React19 = __toESM(require("react"));
|
|
970
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
961
971
|
var SvgPasskey = (props) => {
|
|
962
972
|
var _a, _b;
|
|
963
|
-
return /* @__PURE__ */ (0,
|
|
973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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__ */ (0, import_jsx_runtime29.jsx)("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" }) });
|
|
964
974
|
};
|
|
965
975
|
var passkey_default = SvgPasskey;
|
|
966
976
|
|
|
967
977
|
// src/theme/default/assets/icons/password.svg
|
|
968
|
-
var
|
|
969
|
-
var
|
|
978
|
+
var React20 = __toESM(require("react"));
|
|
979
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
970
980
|
var SvgPassword = (props) => {
|
|
971
981
|
var _a, _b;
|
|
972
|
-
return /* @__PURE__ */ (0,
|
|
982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsx)("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" }) });
|
|
973
983
|
};
|
|
974
984
|
var password_default = SvgPassword;
|
|
975
985
|
|
|
976
986
|
// src/theme/default/assets/icons/webauthn.svg
|
|
977
|
-
var
|
|
978
|
-
var
|
|
987
|
+
var React21 = __toESM(require("react"));
|
|
988
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
979
989
|
var SvgWebauthn = (props) => {
|
|
980
990
|
var _a, _b;
|
|
981
|
-
return /* @__PURE__ */ (0,
|
|
991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsx)("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" }) });
|
|
982
992
|
};
|
|
983
993
|
var webauthn_default = SvgWebauthn;
|
|
984
994
|
|
|
@@ -988,7 +998,7 @@ function isGroupImmediateSubmit(group) {
|
|
|
988
998
|
}
|
|
989
999
|
|
|
990
1000
|
// src/theme/default/components/card/auth-method-list-item.tsx
|
|
991
|
-
var
|
|
1001
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
992
1002
|
var iconsMap = {
|
|
993
1003
|
code: code_default,
|
|
994
1004
|
passkey: passkey_default,
|
|
@@ -1002,7 +1012,7 @@ function DefaultAuthMethodListItem({
|
|
|
1002
1012
|
}) {
|
|
1003
1013
|
const intl = (0, import_react_intl5.useIntl)();
|
|
1004
1014
|
const Icon = iconsMap[group] || null;
|
|
1005
|
-
return /* @__PURE__ */ (0,
|
|
1015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1006
1016
|
"button",
|
|
1007
1017
|
{
|
|
1008
1018
|
className: "flex cursor-pointer gap-3 text-left items-start w-full rounded-buttons p-2 hover:bg-interface-background-default-primary-hover",
|
|
@@ -1010,10 +1020,10 @@ function DefaultAuthMethodListItem({
|
|
|
1010
1020
|
type: isGroupImmediateSubmit(group) ? "submit" : "button",
|
|
1011
1021
|
"data-testid": `ory/form/auth-picker/${group}`,
|
|
1012
1022
|
children: [
|
|
1013
|
-
/* @__PURE__ */ (0,
|
|
1014
|
-
/* @__PURE__ */ (0,
|
|
1015
|
-
/* @__PURE__ */ (0,
|
|
1016
|
-
/* @__PURE__ */ (0,
|
|
1023
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "mt-1", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
|
|
1024
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "flex-1 leading-normal inline-flex flex-col", children: [
|
|
1025
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-interface-foreground-default-primary", children: intl.formatMessage({ id: `two-step.${group}.title` }) }),
|
|
1026
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-interface-foreground-default-secondary", children: intl.formatMessage({
|
|
1017
1027
|
id: `two-step.${group}.description`
|
|
1018
1028
|
}) })
|
|
1019
1029
|
] })
|
|
@@ -1029,7 +1039,7 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
|
1029
1039
|
var import_react_hook_form3 = require("react-hook-form");
|
|
1030
1040
|
var import_react_intl6 = require("react-intl");
|
|
1031
1041
|
var import_react2 = require("react");
|
|
1032
|
-
var
|
|
1042
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1033
1043
|
var buttonStyles = (0, import_class_variance_authority.cva)(
|
|
1034
1044
|
[
|
|
1035
1045
|
"relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
|
|
@@ -1092,7 +1102,7 @@ var DefaultButton = ({
|
|
|
1092
1102
|
}
|
|
1093
1103
|
}, [isSubmitting]);
|
|
1094
1104
|
const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn") || attributes.name.includes("lookup_secret");
|
|
1095
|
-
return /* @__PURE__ */ (0,
|
|
1105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
1096
1106
|
"button",
|
|
1097
1107
|
{
|
|
1098
1108
|
...rest,
|
|
@@ -1112,8 +1122,8 @@ var DefaultButton = ({
|
|
|
1112
1122
|
disabled: (_a = rest.disabled) != null ? _a : isSubmitting,
|
|
1113
1123
|
"data-loading": clicked,
|
|
1114
1124
|
children: [
|
|
1115
|
-
clicked ? /* @__PURE__ */ (0,
|
|
1116
|
-
label ? /* @__PURE__ */ (0,
|
|
1125
|
+
clicked ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Spinner, {}) : null,
|
|
1126
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: (0, import_elements_react7.uiTextToFormattedMessage)(label, intl) }) : ""
|
|
1117
1127
|
]
|
|
1118
1128
|
}
|
|
1119
1129
|
);
|
|
@@ -1186,7 +1196,7 @@ var uiTextToFormattedMessage4 = ({ id, context = {}, text }, intl) => {
|
|
|
1186
1196
|
};
|
|
1187
1197
|
|
|
1188
1198
|
// src/theme/default/components/ui/checkbox-label.tsx
|
|
1189
|
-
var
|
|
1199
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1190
1200
|
var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
|
|
1191
1201
|
function computeLabelElements(labelText) {
|
|
1192
1202
|
const elements = [];
|
|
@@ -1202,7 +1212,7 @@ function computeLabelElements(labelText) {
|
|
|
1202
1212
|
elements.push(labelText.slice(lastIndex, matchStart));
|
|
1203
1213
|
}
|
|
1204
1214
|
elements.push(
|
|
1205
|
-
/* @__PURE__ */ (0,
|
|
1215
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1206
1216
|
"a",
|
|
1207
1217
|
{
|
|
1208
1218
|
href: url,
|
|
@@ -1227,13 +1237,13 @@ function CheckboxLabel({ label }) {
|
|
|
1227
1237
|
return null;
|
|
1228
1238
|
}
|
|
1229
1239
|
const labelText = uiTextToFormattedMessage4(label, intl);
|
|
1230
|
-
return /* @__PURE__ */ (0,
|
|
1240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children: computeLabelElements(labelText) });
|
|
1231
1241
|
}
|
|
1232
1242
|
|
|
1233
1243
|
// src/theme/default/components/form/checkbox.tsx
|
|
1234
|
-
var
|
|
1244
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1235
1245
|
function CheckboxSVG() {
|
|
1236
|
-
return /* @__PURE__ */ (0,
|
|
1246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1237
1247
|
"svg",
|
|
1238
1248
|
{
|
|
1239
1249
|
className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
|
|
@@ -1242,7 +1252,7 @@ function CheckboxSVG() {
|
|
|
1242
1252
|
height: "16",
|
|
1243
1253
|
viewBox: "0 0 16 16",
|
|
1244
1254
|
fill: "none",
|
|
1245
|
-
children: /* @__PURE__ */ (0,
|
|
1255
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1246
1256
|
"path",
|
|
1247
1257
|
{
|
|
1248
1258
|
fillRule: "evenodd",
|
|
@@ -1271,9 +1281,9 @@ var DefaultCheckbox = ({
|
|
|
1271
1281
|
const label = (0, import_client_fetch6.getNodeLabel)(node);
|
|
1272
1282
|
const { register } = (0, import_react_hook_form4.useForm)();
|
|
1273
1283
|
const hasError = node.messages.some((m) => m.type === "error");
|
|
1274
|
-
return /* @__PURE__ */ (0,
|
|
1275
|
-
/* @__PURE__ */ (0,
|
|
1276
|
-
/* @__PURE__ */ (0,
|
|
1284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
|
|
1285
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "flex h-5 items-center", children: [
|
|
1286
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1277
1287
|
"input",
|
|
1278
1288
|
{
|
|
1279
1289
|
...attributes,
|
|
@@ -1287,11 +1297,11 @@ var DefaultCheckbox = ({
|
|
|
1287
1297
|
...register(name, { value })
|
|
1288
1298
|
}
|
|
1289
1299
|
),
|
|
1290
|
-
/* @__PURE__ */ (0,
|
|
1300
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CheckboxSVG, {})
|
|
1291
1301
|
] }),
|
|
1292
|
-
/* @__PURE__ */ (0,
|
|
1293
|
-
/* @__PURE__ */ (0,
|
|
1294
|
-
node.messages.map((message) => /* @__PURE__ */ (0,
|
|
1302
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "flex flex-col", children: [
|
|
1303
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CheckboxLabel, { label }) }),
|
|
1304
|
+
node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1295
1305
|
"span",
|
|
1296
1306
|
{
|
|
1297
1307
|
className: cn(
|
|
@@ -1308,21 +1318,21 @@ var DefaultCheckbox = ({
|
|
|
1308
1318
|
};
|
|
1309
1319
|
|
|
1310
1320
|
// src/theme/default/components/form/group-container.tsx
|
|
1311
|
-
var
|
|
1321
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1312
1322
|
function DefaultGroupContainer({ children }) {
|
|
1313
|
-
return /* @__PURE__ */ (0,
|
|
1323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "grid grid-cols-1 gap-8", children });
|
|
1314
1324
|
}
|
|
1315
1325
|
|
|
1316
1326
|
// src/theme/default/components/form/horizontal-divider.tsx
|
|
1317
|
-
var
|
|
1327
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1318
1328
|
function DefaultHorizontalDivider() {
|
|
1319
|
-
return /* @__PURE__ */ (0,
|
|
1329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("hr", { className: "border-interface-border-default-primary" });
|
|
1320
1330
|
}
|
|
1321
1331
|
|
|
1322
1332
|
// src/theme/default/components/form/image.tsx
|
|
1323
|
-
var
|
|
1333
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1324
1334
|
function DefaultImage({ attributes }) {
|
|
1325
|
-
return /* @__PURE__ */ (0,
|
|
1335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("img", { ...attributes }) });
|
|
1326
1336
|
}
|
|
1327
1337
|
|
|
1328
1338
|
// src/theme/default/components/form/input.tsx
|
|
@@ -1330,7 +1340,7 @@ var import_client_fetch7 = require("@ory/client-fetch");
|
|
|
1330
1340
|
var import_elements_react9 = require("@ory/elements-react");
|
|
1331
1341
|
var import_react_hook_form5 = require("react-hook-form");
|
|
1332
1342
|
var import_react_intl9 = require("react-intl");
|
|
1333
|
-
var
|
|
1343
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1334
1344
|
var DefaultInput = ({
|
|
1335
1345
|
node,
|
|
1336
1346
|
attributes,
|
|
@@ -1357,7 +1367,7 @@ var DefaultInput = ({
|
|
|
1357
1367
|
placeholder: (0, import_elements_react9.uiTextToFormattedMessage)(label, intl)
|
|
1358
1368
|
}
|
|
1359
1369
|
) : "";
|
|
1360
|
-
return /* @__PURE__ */ (0,
|
|
1370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1361
1371
|
"input",
|
|
1362
1372
|
{
|
|
1363
1373
|
...rest,
|
|
@@ -1386,7 +1396,7 @@ var import_client_fetch8 = require("@ory/client-fetch");
|
|
|
1386
1396
|
var import_elements_react10 = require("@ory/elements-react");
|
|
1387
1397
|
var import_react_hook_form6 = require("react-hook-form");
|
|
1388
1398
|
var import_react_intl10 = require("react-intl");
|
|
1389
|
-
var
|
|
1399
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1390
1400
|
function findResendNode(nodes) {
|
|
1391
1401
|
return nodes.find(
|
|
1392
1402
|
(n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
|
|
@@ -1411,9 +1421,9 @@ function DefaultLabel({
|
|
|
1411
1421
|
}
|
|
1412
1422
|
};
|
|
1413
1423
|
const fieldError = formState.errors[attributes.name];
|
|
1414
|
-
return /* @__PURE__ */ (0,
|
|
1415
|
-
label && /* @__PURE__ */ (0,
|
|
1416
|
-
/* @__PURE__ */ (0,
|
|
1424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
|
|
1425
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "inline-flex justify-between", children: [
|
|
1426
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1417
1427
|
"label",
|
|
1418
1428
|
{
|
|
1419
1429
|
...(0, import_elements_react10.messageTestId)(label),
|
|
@@ -1425,7 +1435,7 @@ function DefaultLabel({
|
|
|
1425
1435
|
}
|
|
1426
1436
|
),
|
|
1427
1437
|
isPassword && config.project.recovery_enabled && flowType === import_client_fetch8.FlowType.Login && // TODO: make it possible to override with a custom component
|
|
1428
|
-
/* @__PURE__ */ (0,
|
|
1438
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1429
1439
|
"a",
|
|
1430
1440
|
{
|
|
1431
1441
|
href: initFlowUrl(config.sdk.url, "recovery", flow),
|
|
@@ -1436,7 +1446,7 @@ function DefaultLabel({
|
|
|
1436
1446
|
})
|
|
1437
1447
|
}
|
|
1438
1448
|
),
|
|
1439
|
-
(resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0,
|
|
1449
|
+
(resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1440
1450
|
"button",
|
|
1441
1451
|
{
|
|
1442
1452
|
type: "submit",
|
|
@@ -1449,8 +1459,8 @@ function DefaultLabel({
|
|
|
1449
1459
|
)
|
|
1450
1460
|
] }),
|
|
1451
1461
|
children,
|
|
1452
|
-
node.messages.map((message) => /* @__PURE__ */ (0,
|
|
1453
|
-
fieldError && (0, import_client_fetch8.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0,
|
|
1462
|
+
node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Message.Content, { message }, message.id)),
|
|
1463
|
+
fieldError && (0, import_client_fetch8.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Message.Content, { message: fieldError })
|
|
1454
1464
|
] });
|
|
1455
1465
|
}
|
|
1456
1466
|
|
|
@@ -1459,11 +1469,11 @@ var import_client_fetch9 = require("@ory/client-fetch");
|
|
|
1459
1469
|
var import_elements_react11 = require("@ory/elements-react");
|
|
1460
1470
|
var import_react3 = require("react");
|
|
1461
1471
|
var import_react_intl11 = require("react-intl");
|
|
1462
|
-
var
|
|
1472
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1463
1473
|
var DefaultLinkButton = (0, import_react3.forwardRef)(({ attributes, node }, ref) => {
|
|
1464
1474
|
const intl = (0, import_react_intl11.useIntl)();
|
|
1465
1475
|
const label = (0, import_client_fetch9.getNodeLabel)(node);
|
|
1466
|
-
return /* @__PURE__ */ (0,
|
|
1476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
1467
1477
|
"a",
|
|
1468
1478
|
{
|
|
1469
1479
|
...attributes,
|
|
@@ -1484,9 +1494,9 @@ var import_react_hook_form7 = require("react-hook-form");
|
|
|
1484
1494
|
|
|
1485
1495
|
// src/theme/default/components/form/shadcn/otp-input.tsx
|
|
1486
1496
|
var import_input_otp = require("input-otp");
|
|
1487
|
-
var
|
|
1488
|
-
var
|
|
1489
|
-
var InputOTP =
|
|
1497
|
+
var React22 = __toESM(require("react"));
|
|
1498
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1499
|
+
var InputOTP = React22.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1490
1500
|
import_input_otp.OTPInput,
|
|
1491
1501
|
{
|
|
1492
1502
|
ref,
|
|
@@ -1499,12 +1509,12 @@ var InputOTP = React21.forwardRef(({ className, containerClassName, ...props },
|
|
|
1499
1509
|
}
|
|
1500
1510
|
));
|
|
1501
1511
|
InputOTP.displayName = "InputOTP";
|
|
1502
|
-
var InputOTPGroup =
|
|
1512
|
+
var InputOTPGroup = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
1503
1513
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
1504
|
-
var InputOTPSlot =
|
|
1505
|
-
const inputOTPContext =
|
|
1514
|
+
var InputOTPSlot = React22.forwardRef(({ index, className, ...props }, ref) => {
|
|
1515
|
+
const inputOTPContext = React22.useContext(import_input_otp.OTPInputContext);
|
|
1506
1516
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
1507
|
-
return /* @__PURE__ */ (0,
|
|
1517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
1508
1518
|
"div",
|
|
1509
1519
|
{
|
|
1510
1520
|
ref,
|
|
@@ -1516,8 +1526,8 @@ var InputOTPSlot = React21.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
1516
1526
|
),
|
|
1517
1527
|
...props,
|
|
1518
1528
|
children: [
|
|
1519
|
-
/* @__PURE__ */ (0,
|
|
1520
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
1529
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "inline-block size-4", children: char }),
|
|
1530
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
|
|
1521
1531
|
]
|
|
1522
1532
|
}
|
|
1523
1533
|
);
|
|
@@ -1527,7 +1537,7 @@ InputOTPSlot.displayName = "InputOTPSlot";
|
|
|
1527
1537
|
// src/theme/default/components/form/pin-code-input.tsx
|
|
1528
1538
|
var import_elements_react12 = require("@ory/elements-react");
|
|
1529
1539
|
var import_client_fetch10 = require("@ory/client-fetch");
|
|
1530
|
-
var
|
|
1540
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
1531
1541
|
var DefaultPinCodeInput = ({ attributes }) => {
|
|
1532
1542
|
const { setValue, watch } = (0, import_react_hook_form7.useFormContext)();
|
|
1533
1543
|
const { maxlength, name } = attributes;
|
|
@@ -1537,14 +1547,14 @@ var DefaultPinCodeInput = ({ attributes }) => {
|
|
|
1537
1547
|
setValue(name, v);
|
|
1538
1548
|
};
|
|
1539
1549
|
const value = watch(name);
|
|
1540
|
-
return /* @__PURE__ */ (0,
|
|
1550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
1541
1551
|
InputOTP,
|
|
1542
1552
|
{
|
|
1543
1553
|
maxLength: maxlength != null ? maxlength : 6,
|
|
1544
1554
|
onChange: handleInputChange,
|
|
1545
1555
|
name,
|
|
1546
1556
|
value,
|
|
1547
|
-
children: /* @__PURE__ */ (0,
|
|
1557
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
1548
1558
|
InputOTPGroup,
|
|
1549
1559
|
{
|
|
1550
1560
|
className: cn(
|
|
@@ -1552,7 +1562,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
|
|
|
1552
1562
|
// The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
|
|
1553
1563
|
flowType === import_client_fetch10.FlowType.Settings && "max-w-[488px]"
|
|
1554
1564
|
),
|
|
1555
|
-
children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0,
|
|
1565
|
+
children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(InputOTPSlot, { index }, index))
|
|
1556
1566
|
}
|
|
1557
1567
|
)
|
|
1558
1568
|
}
|
|
@@ -1560,13 +1570,13 @@ var DefaultPinCodeInput = ({ attributes }) => {
|
|
|
1560
1570
|
};
|
|
1561
1571
|
|
|
1562
1572
|
// src/theme/default/components/form/section.tsx
|
|
1563
|
-
var
|
|
1573
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1564
1574
|
var DefaultFormSection = ({
|
|
1565
1575
|
children,
|
|
1566
1576
|
nodes: _nodes,
|
|
1567
1577
|
...rest
|
|
1568
1578
|
}) => {
|
|
1569
|
-
return /* @__PURE__ */ (0,
|
|
1579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1570
1580
|
"form",
|
|
1571
1581
|
{
|
|
1572
1582
|
className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
|
|
@@ -1580,10 +1590,10 @@ var DefaultFormSectionContent = ({
|
|
|
1580
1590
|
description,
|
|
1581
1591
|
children
|
|
1582
1592
|
}) => {
|
|
1583
|
-
return /* @__PURE__ */ (0,
|
|
1584
|
-
/* @__PURE__ */ (0,
|
|
1585
|
-
/* @__PURE__ */ (0,
|
|
1586
|
-
/* @__PURE__ */ (0,
|
|
1593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("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: [
|
|
1594
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1595
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
|
|
1596
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
|
|
1587
1597
|
] }),
|
|
1588
1598
|
children
|
|
1589
1599
|
] });
|
|
@@ -1592,14 +1602,14 @@ var DefaultFormSectionFooter = ({
|
|
|
1592
1602
|
children,
|
|
1593
1603
|
text
|
|
1594
1604
|
}) => {
|
|
1595
|
-
return /* @__PURE__ */ (0,
|
|
1605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
1596
1606
|
"div",
|
|
1597
1607
|
{
|
|
1598
1608
|
className: cn(
|
|
1599
1609
|
"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"
|
|
1600
1610
|
),
|
|
1601
1611
|
children: [
|
|
1602
|
-
/* @__PURE__ */ (0,
|
|
1612
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: text }),
|
|
1603
1613
|
children
|
|
1604
1614
|
]
|
|
1605
1615
|
}
|
|
@@ -1609,17 +1619,17 @@ var DefaultFormSectionFooter = ({
|
|
|
1609
1619
|
// src/theme/default/components/form/text.tsx
|
|
1610
1620
|
var import_elements_react13 = require("@ory/elements-react");
|
|
1611
1621
|
var import_react_intl12 = require("react-intl");
|
|
1612
|
-
var
|
|
1622
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1613
1623
|
function DefaultText({ node, attributes }) {
|
|
1614
1624
|
var _a;
|
|
1615
1625
|
const intl = (0, import_react_intl12.useIntl)();
|
|
1616
|
-
return /* @__PURE__ */ (0,
|
|
1617
|
-
/* @__PURE__ */ (0,
|
|
1618
|
-
(_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ (0,
|
|
1626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
|
|
1627
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react13.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
|
|
1628
|
+
(_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
1619
1629
|
"pre",
|
|
1620
1630
|
{
|
|
1621
1631
|
"data-testid": `ory/form/node/text/lookup_secret_codes/text`,
|
|
1622
|
-
children: /* @__PURE__ */ (0,
|
|
1632
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("code", { children: text ? (0, import_elements_react13.uiTextToFormattedMessage)(text, intl) : "" })
|
|
1623
1633
|
},
|
|
1624
1634
|
index
|
|
1625
1635
|
))
|
|
@@ -1649,22 +1659,22 @@ function frontendClient(sdkUrl, opts = {}) {
|
|
|
1649
1659
|
}
|
|
1650
1660
|
|
|
1651
1661
|
// src/theme/default/assets/icons/logout.svg
|
|
1652
|
-
var
|
|
1653
|
-
var
|
|
1662
|
+
var React23 = __toESM(require("react"));
|
|
1663
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1654
1664
|
var SvgLogout = (props) => {
|
|
1655
1665
|
var _a, _b;
|
|
1656
|
-
return /* @__PURE__ */ (0,
|
|
1666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("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__ */ (0, import_jsx_runtime46.jsx)("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" }) });
|
|
1657
1667
|
};
|
|
1658
1668
|
var logout_default = SvgLogout;
|
|
1659
1669
|
|
|
1660
1670
|
// src/theme/default/assets/icons/settings.svg
|
|
1661
|
-
var
|
|
1662
|
-
var
|
|
1671
|
+
var React24 = __toESM(require("react"));
|
|
1672
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1663
1673
|
var SvgSettings = (props) => {
|
|
1664
1674
|
var _a, _b;
|
|
1665
|
-
return /* @__PURE__ */ (0,
|
|
1666
|
-
/* @__PURE__ */ (0,
|
|
1667
|
-
/* @__PURE__ */ (0,
|
|
1675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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__ */ (0, import_jsx_runtime47.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
1676
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" }),
|
|
1677
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
|
|
1668
1678
|
] }) });
|
|
1669
1679
|
};
|
|
1670
1680
|
var settings_default = SvgSettings;
|
|
@@ -1711,10 +1721,10 @@ var getUserInitials = (session) => {
|
|
|
1711
1721
|
// src/theme/default/components/ui/dropdown-menu.tsx
|
|
1712
1722
|
var import_react4 = require("react");
|
|
1713
1723
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
1714
|
-
var
|
|
1724
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1715
1725
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
1716
1726
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1717
|
-
var DropdownMenuContent = (0, import_react4.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1727
|
+
var DropdownMenuContent = (0, import_react4.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1718
1728
|
DropdownMenuPrimitive.Content,
|
|
1719
1729
|
{
|
|
1720
1730
|
ref,
|
|
@@ -1729,7 +1739,7 @@ var DropdownMenuContent = (0, import_react4.forwardRef)(({ className, sideOffset
|
|
|
1729
1739
|
}
|
|
1730
1740
|
) }));
|
|
1731
1741
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1732
|
-
var DropdownMenuItem = (0, import_react4.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1742
|
+
var DropdownMenuItem = (0, import_react4.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1733
1743
|
DropdownMenuPrimitive.Item,
|
|
1734
1744
|
{
|
|
1735
1745
|
ref,
|
|
@@ -1747,7 +1757,7 @@ var DropdownMenuItem = (0, import_react4.forwardRef)(({ className, inset, ...pro
|
|
|
1747
1757
|
}
|
|
1748
1758
|
));
|
|
1749
1759
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1750
|
-
var DropdownMenuLabel = (0, import_react4.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1760
|
+
var DropdownMenuLabel = (0, import_react4.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1751
1761
|
DropdownMenuPrimitive.Label,
|
|
1752
1762
|
{
|
|
1753
1763
|
ref,
|
|
@@ -1765,32 +1775,32 @@ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
|
1765
1775
|
var import_react5 = require("react");
|
|
1766
1776
|
|
|
1767
1777
|
// src/theme/default/assets/icons/user.svg
|
|
1768
|
-
var
|
|
1769
|
-
var
|
|
1778
|
+
var React25 = __toESM(require("react"));
|
|
1779
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1770
1780
|
var SvgUser = (props) => {
|
|
1771
1781
|
var _a, _b;
|
|
1772
|
-
return /* @__PURE__ */ (0,
|
|
1782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("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__ */ (0, import_jsx_runtime49.jsx)("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" }) });
|
|
1773
1783
|
};
|
|
1774
1784
|
var user_default = SvgUser;
|
|
1775
1785
|
|
|
1776
1786
|
// src/theme/default/components/ui/user-avater.tsx
|
|
1777
|
-
var
|
|
1787
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1778
1788
|
var UserAvatar = (0, import_react5.forwardRef)(
|
|
1779
1789
|
({ initials, ...rest }, ref) => {
|
|
1780
|
-
return /* @__PURE__ */ (0,
|
|
1790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
1781
1791
|
"button",
|
|
1782
1792
|
{
|
|
1783
1793
|
ref,
|
|
1784
1794
|
className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
|
|
1785
1795
|
...rest,
|
|
1786
|
-
children: /* @__PURE__ */ (0,
|
|
1796
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
1787
1797
|
"img",
|
|
1788
1798
|
{
|
|
1789
1799
|
src: initials.avatar,
|
|
1790
1800
|
alt: initials.primary,
|
|
1791
1801
|
className: "w-full object-contain"
|
|
1792
1802
|
}
|
|
1793
|
-
) : /* @__PURE__ */ (0,
|
|
1803
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
1794
1804
|
user_default,
|
|
1795
1805
|
{
|
|
1796
1806
|
size: 24,
|
|
@@ -1804,7 +1814,7 @@ var UserAvatar = (0, import_react5.forwardRef)(
|
|
|
1804
1814
|
UserAvatar.displayName = "UserAvatar";
|
|
1805
1815
|
|
|
1806
1816
|
// src/theme/default/components/ui/user-menu.tsx
|
|
1807
|
-
var
|
|
1817
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1808
1818
|
var UserMenu = ({ session }) => {
|
|
1809
1819
|
const { config } = (0, import_elements_react14.useOryFlow)();
|
|
1810
1820
|
const initials = getUserInitials(session);
|
|
@@ -1816,22 +1826,22 @@ var UserMenu = ({ session }) => {
|
|
|
1816
1826
|
(0, import_react6.useEffect)(() => {
|
|
1817
1827
|
void fetchLogoutFlow();
|
|
1818
1828
|
}, [fetchLogoutFlow]);
|
|
1819
|
-
return /* @__PURE__ */ (0,
|
|
1820
|
-
/* @__PURE__ */ (0,
|
|
1821
|
-
/* @__PURE__ */ (0,
|
|
1822
|
-
/* @__PURE__ */ (0,
|
|
1823
|
-
/* @__PURE__ */ (0,
|
|
1824
|
-
/* @__PURE__ */ (0,
|
|
1825
|
-
/* @__PURE__ */ (0,
|
|
1826
|
-
initials.secondary && /* @__PURE__ */ (0,
|
|
1829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenu, { children: [
|
|
1830
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(UserAvatar, { initials }) }),
|
|
1831
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenuContent, { children: [
|
|
1832
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
|
|
1833
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(UserAvatar, { disabled: true, initials }),
|
|
1834
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
|
|
1835
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
|
|
1836
|
+
initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
|
|
1827
1837
|
] })
|
|
1828
1838
|
] }),
|
|
1829
|
-
/* @__PURE__ */ (0,
|
|
1830
|
-
/* @__PURE__ */ (0,
|
|
1839
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("a", { href: "/settings", children: [
|
|
1840
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(settings_default, { size: 16 }),
|
|
1831
1841
|
" User settings"
|
|
1832
1842
|
] }) }),
|
|
1833
|
-
/* @__PURE__ */ (0,
|
|
1834
|
-
/* @__PURE__ */ (0,
|
|
1843
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
|
|
1844
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(logout_default, { size: 16 }),
|
|
1835
1845
|
" Logout"
|
|
1836
1846
|
] }) })
|
|
1837
1847
|
] })
|
|
@@ -1840,13 +1850,13 @@ var UserMenu = ({ session }) => {
|
|
|
1840
1850
|
|
|
1841
1851
|
// src/theme/default/components/generic/page-header.tsx
|
|
1842
1852
|
var import_client2 = require("@ory/elements-react/client");
|
|
1843
|
-
var
|
|
1853
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
1844
1854
|
var DefaultPageHeader = (_props) => {
|
|
1845
1855
|
const { Card } = (0, import_elements_react15.useComponents)();
|
|
1846
1856
|
const { session } = (0, import_client2.useSession)();
|
|
1847
|
-
return /* @__PURE__ */ (0,
|
|
1848
|
-
/* @__PURE__ */ (0,
|
|
1849
|
-
/* @__PURE__ */ (0,
|
|
1857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
|
|
1858
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Card.Logo, {}) }),
|
|
1859
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(UserMenu, { session })
|
|
1850
1860
|
] }) }) });
|
|
1851
1861
|
};
|
|
1852
1862
|
|
|
@@ -1855,26 +1865,26 @@ var import_react7 = require("react");
|
|
|
1855
1865
|
var import_react_hook_form8 = require("react-hook-form");
|
|
1856
1866
|
|
|
1857
1867
|
// src/theme/default/assets/icons/trash.svg
|
|
1858
|
-
var
|
|
1859
|
-
var
|
|
1868
|
+
var React26 = __toESM(require("react"));
|
|
1869
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
1860
1870
|
var SvgTrash = (props) => {
|
|
1861
1871
|
var _a, _b;
|
|
1862
|
-
return /* @__PURE__ */ (0,
|
|
1872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("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__ */ (0, import_jsx_runtime53.jsx)("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" }) });
|
|
1863
1873
|
};
|
|
1864
1874
|
var trash_default = SvgTrash;
|
|
1865
1875
|
|
|
1866
1876
|
// src/theme/default/components/settings/settings-oidc.tsx
|
|
1867
|
-
var
|
|
1877
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
1868
1878
|
function DefaultSettingsOidc({
|
|
1869
1879
|
linkButtons,
|
|
1870
1880
|
unlinkButtons
|
|
1871
1881
|
}) {
|
|
1872
1882
|
const hasLinkButtons = linkButtons.length > 0;
|
|
1873
1883
|
const hasUnlinkButtons = unlinkButtons.length > 0;
|
|
1874
|
-
return /* @__PURE__ */ (0,
|
|
1875
|
-
hasLinkButtons && /* @__PURE__ */ (0,
|
|
1884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex flex-col gap-8", children: [
|
|
1885
|
+
hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
|
|
1876
1886
|
const attrs = button.attributes;
|
|
1877
|
-
return /* @__PURE__ */ (0,
|
|
1887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
1878
1888
|
DefaultButtonSocial,
|
|
1879
1889
|
{
|
|
1880
1890
|
showLabel: true,
|
|
@@ -1885,12 +1895,12 @@ function DefaultSettingsOidc({
|
|
|
1885
1895
|
attrs.value
|
|
1886
1896
|
);
|
|
1887
1897
|
}) }),
|
|
1888
|
-
hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0,
|
|
1898
|
+
hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(DefaultHorizontalDivider, {}) : null,
|
|
1889
1899
|
unlinkButtons.map((button) => {
|
|
1890
1900
|
if (button.attributes.node_type !== "input") {
|
|
1891
1901
|
return null;
|
|
1892
1902
|
}
|
|
1893
|
-
return /* @__PURE__ */ (0,
|
|
1903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(UnlinkRow, { button }, button.attributes.value);
|
|
1894
1904
|
})
|
|
1895
1905
|
] });
|
|
1896
1906
|
}
|
|
@@ -1914,12 +1924,12 @@ function UnlinkRow({ button }) {
|
|
|
1914
1924
|
setClicked(false);
|
|
1915
1925
|
}
|
|
1916
1926
|
}, [isSubmitting]);
|
|
1917
|
-
return /* @__PURE__ */ (0,
|
|
1918
|
-
/* @__PURE__ */ (0,
|
|
1919
|
-
/* @__PURE__ */ (0,
|
|
1920
|
-
/* @__PURE__ */ (0,
|
|
1927
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex justify-between", children: [
|
|
1928
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-center gap-6", children: [
|
|
1929
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Logo, { size: 32 }),
|
|
1930
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
|
|
1921
1931
|
] }),
|
|
1922
|
-
/* @__PURE__ */ (0,
|
|
1932
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
1923
1933
|
"button",
|
|
1924
1934
|
{
|
|
1925
1935
|
...attrs,
|
|
@@ -1928,7 +1938,7 @@ function UnlinkRow({ button }) {
|
|
|
1928
1938
|
disabled: isSubmitting,
|
|
1929
1939
|
className: "relative",
|
|
1930
1940
|
title: `Unlink ${provider}`,
|
|
1931
|
-
children: clicked ? /* @__PURE__ */ (0,
|
|
1941
|
+
children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
1932
1942
|
trash_default,
|
|
1933
1943
|
{
|
|
1934
1944
|
className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
|
|
@@ -1943,7 +1953,7 @@ function UnlinkRow({ button }) {
|
|
|
1943
1953
|
// src/theme/default/components/settings/settings-passkey.tsx
|
|
1944
1954
|
var import_elements_react16 = require("@ory/elements-react");
|
|
1945
1955
|
var import_react_hook_form9 = require("react-hook-form");
|
|
1946
|
-
var
|
|
1956
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
1947
1957
|
function DefaultSettingsPasskey({
|
|
1948
1958
|
triggerButton,
|
|
1949
1959
|
removeButtons
|
|
@@ -1953,8 +1963,8 @@ function DefaultSettingsPasskey({
|
|
|
1953
1963
|
} = (0, import_react_hook_form9.useFormContext)();
|
|
1954
1964
|
const { Node } = (0, import_elements_react16.useComponents)();
|
|
1955
1965
|
const hasRemoveButtons = removeButtons.length > 0;
|
|
1956
|
-
return /* @__PURE__ */ (0,
|
|
1957
|
-
/* @__PURE__ */ (0,
|
|
1966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex flex-col gap-8", children: [
|
|
1967
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
1958
1968
|
Node.Button,
|
|
1959
1969
|
{
|
|
1960
1970
|
node: triggerButton,
|
|
@@ -1962,38 +1972,38 @@ function DefaultSettingsPasskey({
|
|
|
1962
1972
|
onClick: triggerButton.onClick
|
|
1963
1973
|
}
|
|
1964
1974
|
) }),
|
|
1965
|
-
hasRemoveButtons ? /* @__PURE__ */ (0,
|
|
1966
|
-
/* @__PURE__ */ (0,
|
|
1967
|
-
/* @__PURE__ */ (0,
|
|
1975
|
+
hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex flex-col gap-8", children: [
|
|
1976
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(DefaultHorizontalDivider, {}),
|
|
1977
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
|
|
1968
1978
|
var _a, _b;
|
|
1969
1979
|
const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
|
|
1970
1980
|
const addedAt = "added_at" in context ? context.added_at : null;
|
|
1971
1981
|
const displayName = "display_name" in context ? context.display_name : null;
|
|
1972
1982
|
const keyId = "value" in node.attributes ? node.attributes.value : null;
|
|
1973
|
-
return /* @__PURE__ */ (0,
|
|
1983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
1974
1984
|
"div",
|
|
1975
1985
|
{
|
|
1976
1986
|
className: "flex justify-between gap-6 md:items-center",
|
|
1977
1987
|
children: [
|
|
1978
|
-
/* @__PURE__ */ (0,
|
|
1979
|
-
/* @__PURE__ */ (0,
|
|
1988
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex gap-2 items-center flex-1", children: [
|
|
1989
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
1980
1990
|
passkey_default,
|
|
1981
1991
|
{
|
|
1982
1992
|
size: 32,
|
|
1983
1993
|
className: "text-interface-foreground-default-primary"
|
|
1984
1994
|
}
|
|
1985
1995
|
),
|
|
1986
|
-
/* @__PURE__ */ (0,
|
|
1987
|
-
/* @__PURE__ */ (0,
|
|
1988
|
-
/* @__PURE__ */ (0,
|
|
1989
|
-
/* @__PURE__ */ (0,
|
|
1996
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4", children: [
|
|
1997
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex-1 flex-col", children: [
|
|
1998
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
|
|
1999
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block", children: keyId })
|
|
1990
2000
|
] }),
|
|
1991
|
-
addedAt && /* @__PURE__ */ (0,
|
|
2001
|
+
addedAt && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
|
|
1992
2002
|
dateStyle: "long"
|
|
1993
2003
|
}).format(new Date(addedAt)) })
|
|
1994
2004
|
] })
|
|
1995
2005
|
] }),
|
|
1996
|
-
/* @__PURE__ */ (0,
|
|
2006
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
1997
2007
|
"button",
|
|
1998
2008
|
{
|
|
1999
2009
|
...node.attributes,
|
|
@@ -2001,7 +2011,7 @@ function DefaultSettingsPasskey({
|
|
|
2001
2011
|
onClick: node.onClick,
|
|
2002
2012
|
disabled: isSubmitting,
|
|
2003
2013
|
className: "relative",
|
|
2004
|
-
children: isSubmitting ? /* @__PURE__ */ (0,
|
|
2014
|
+
children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2005
2015
|
trash_default,
|
|
2006
2016
|
{
|
|
2007
2017
|
className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
|
|
@@ -2020,38 +2030,38 @@ function DefaultSettingsPasskey({
|
|
|
2020
2030
|
}
|
|
2021
2031
|
|
|
2022
2032
|
// src/theme/default/assets/icons/download.svg
|
|
2023
|
-
var
|
|
2024
|
-
var
|
|
2033
|
+
var React27 = __toESM(require("react"));
|
|
2034
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2025
2035
|
var SvgDownload = (props) => {
|
|
2026
2036
|
var _a, _b;
|
|
2027
|
-
return /* @__PURE__ */ (0,
|
|
2037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("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__ */ (0, import_jsx_runtime56.jsx)("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" }) });
|
|
2028
2038
|
};
|
|
2029
2039
|
var download_default = SvgDownload;
|
|
2030
2040
|
|
|
2031
2041
|
// src/theme/default/assets/icons/eye.svg
|
|
2032
|
-
var
|
|
2033
|
-
var
|
|
2042
|
+
var React28 = __toESM(require("react"));
|
|
2043
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2034
2044
|
var SvgEye = (props) => {
|
|
2035
2045
|
var _a, _b;
|
|
2036
|
-
return /* @__PURE__ */ (0,
|
|
2037
|
-
/* @__PURE__ */ (0,
|
|
2038
|
-
/* @__PURE__ */ (0,
|
|
2046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("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__ */ (0, import_jsx_runtime57.jsxs)("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2047
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
|
|
2048
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
|
|
2039
2049
|
] }) });
|
|
2040
2050
|
};
|
|
2041
2051
|
var eye_default = SvgEye;
|
|
2042
2052
|
|
|
2043
2053
|
// src/theme/default/assets/icons/refresh.svg
|
|
2044
|
-
var
|
|
2045
|
-
var
|
|
2054
|
+
var React29 = __toESM(require("react"));
|
|
2055
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2046
2056
|
var SvgRefresh = (props) => {
|
|
2047
2057
|
var _a, _b;
|
|
2048
|
-
return /* @__PURE__ */ (0,
|
|
2058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("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__ */ (0, import_jsx_runtime58.jsx)("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" }) });
|
|
2049
2059
|
};
|
|
2050
2060
|
var refresh_default = SvgRefresh;
|
|
2051
2061
|
|
|
2052
2062
|
// src/theme/default/components/settings/settings-recovery-codes.tsx
|
|
2053
2063
|
var import_react_hook_form10 = require("react-hook-form");
|
|
2054
|
-
var
|
|
2064
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2055
2065
|
function DefaultSettingsRecoveryCodes({
|
|
2056
2066
|
codes,
|
|
2057
2067
|
regnerateButton,
|
|
@@ -2073,12 +2083,12 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2073
2083
|
element.click();
|
|
2074
2084
|
};
|
|
2075
2085
|
const hasCodes = codes.length >= 1;
|
|
2076
|
-
return /* @__PURE__ */ (0,
|
|
2077
|
-
codes.length > 0 && /* @__PURE__ */ (0,
|
|
2078
|
-
/* @__PURE__ */ (0,
|
|
2079
|
-
/* @__PURE__ */ (0,
|
|
2080
|
-
/* @__PURE__ */ (0,
|
|
2081
|
-
regnerateButton && codes.length > 0 && /* @__PURE__ */ (0,
|
|
2086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-col gap-8", children: [
|
|
2087
|
+
codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DefaultHorizontalDivider, {}),
|
|
2088
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex gap-4 justify-between", children: [
|
|
2089
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
|
|
2090
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex gap-2", children: [
|
|
2091
|
+
regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2082
2092
|
"button",
|
|
2083
2093
|
{
|
|
2084
2094
|
...regnerateButton.attributes,
|
|
@@ -2087,7 +2097,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2087
2097
|
onClick: onRegenerate,
|
|
2088
2098
|
disabled: isSubmitting,
|
|
2089
2099
|
"data-loading": isSubmitting,
|
|
2090
|
-
children: /* @__PURE__ */ (0,
|
|
2100
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2091
2101
|
refresh_default,
|
|
2092
2102
|
{
|
|
2093
2103
|
size: 24,
|
|
@@ -2096,7 +2106,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2096
2106
|
)
|
|
2097
2107
|
}
|
|
2098
2108
|
),
|
|
2099
|
-
revealButton && /* @__PURE__ */ (0,
|
|
2109
|
+
revealButton && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2100
2110
|
"button",
|
|
2101
2111
|
{
|
|
2102
2112
|
...revealButton.attributes,
|
|
@@ -2104,7 +2114,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2104
2114
|
className: "ml-auto",
|
|
2105
2115
|
onClick: onReveal,
|
|
2106
2116
|
title: "Reveal recovery codes",
|
|
2107
|
-
children: /* @__PURE__ */ (0,
|
|
2117
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2108
2118
|
eye_default,
|
|
2109
2119
|
{
|
|
2110
2120
|
size: 24,
|
|
@@ -2113,7 +2123,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2113
2123
|
)
|
|
2114
2124
|
}
|
|
2115
2125
|
) }),
|
|
2116
|
-
hasCodes && /* @__PURE__ */ (0,
|
|
2126
|
+
hasCodes && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2117
2127
|
"button",
|
|
2118
2128
|
{
|
|
2119
2129
|
onClick: onDownload,
|
|
@@ -2121,7 +2131,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2121
2131
|
className: "ml-auto",
|
|
2122
2132
|
"data-testid": "ory/screen/settings/group/recovery_code/download",
|
|
2123
2133
|
title: "Download recovery codes",
|
|
2124
|
-
children: /* @__PURE__ */ (0,
|
|
2134
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2125
2135
|
download_default,
|
|
2126
2136
|
{
|
|
2127
2137
|
size: 24,
|
|
@@ -2132,12 +2142,12 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2132
2142
|
)
|
|
2133
2143
|
] })
|
|
2134
2144
|
] }),
|
|
2135
|
-
hasCodes ? /* @__PURE__ */ (0,
|
|
2145
|
+
hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2136
2146
|
"div",
|
|
2137
2147
|
{
|
|
2138
2148
|
className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
|
|
2139
2149
|
"data-testid": "ory/screen/settings/group/recovery_code/codes",
|
|
2140
|
-
children: codes.map((code) => /* @__PURE__ */ (0,
|
|
2150
|
+
children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { children: code }, code))
|
|
2141
2151
|
}
|
|
2142
2152
|
) }) : null
|
|
2143
2153
|
] });
|
|
@@ -2147,17 +2157,17 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2147
2157
|
var import_elements_react17 = require("@ory/elements-react");
|
|
2148
2158
|
|
|
2149
2159
|
// src/theme/default/assets/icons/qrcode.svg
|
|
2150
|
-
var
|
|
2151
|
-
var
|
|
2160
|
+
var React30 = __toESM(require("react"));
|
|
2161
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2152
2162
|
var SvgQrcode = (props) => {
|
|
2153
2163
|
var _a, _b;
|
|
2154
|
-
return /* @__PURE__ */ (0,
|
|
2164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("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__ */ (0, import_jsx_runtime60.jsx)("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" }) });
|
|
2155
2165
|
};
|
|
2156
2166
|
var qrcode_default = SvgQrcode;
|
|
2157
2167
|
|
|
2158
2168
|
// src/theme/default/components/settings/settings-totp.tsx
|
|
2159
2169
|
var import_react_hook_form11 = require("react-hook-form");
|
|
2160
|
-
var
|
|
2170
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2161
2171
|
function DefaultSettingsTotp({
|
|
2162
2172
|
totpImage,
|
|
2163
2173
|
totpInput,
|
|
@@ -2177,19 +2187,19 @@ function DefaultSettingsTotp({
|
|
|
2177
2187
|
node_type: _ignoredNodeType,
|
|
2178
2188
|
...buttonAttrs
|
|
2179
2189
|
} = totpUnlink.attributes;
|
|
2180
|
-
return /* @__PURE__ */ (0,
|
|
2181
|
-
/* @__PURE__ */ (0,
|
|
2182
|
-
/* @__PURE__ */ (0,
|
|
2183
|
-
/* @__PURE__ */ (0,
|
|
2184
|
-
/* @__PURE__ */ (0,
|
|
2185
|
-
/* @__PURE__ */ (0,
|
|
2190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
|
|
2191
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card.Divider, {}) }),
|
|
2192
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
|
|
2193
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(qrcode_default, { size: 32 }) }),
|
|
2194
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
|
|
2195
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2186
2196
|
"button",
|
|
2187
2197
|
{
|
|
2188
2198
|
type: type === "button" ? "button" : "submit",
|
|
2189
2199
|
...buttonAttrs,
|
|
2190
2200
|
onClick: onUnlink,
|
|
2191
2201
|
disabled: isSubmitting,
|
|
2192
|
-
children: isSubmitting ? /* @__PURE__ */ (0,
|
|
2202
|
+
children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2193
2203
|
trash_default,
|
|
2194
2204
|
{
|
|
2195
2205
|
className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
|
|
@@ -2202,9 +2212,9 @@ function DefaultSettingsTotp({
|
|
|
2202
2212
|
] });
|
|
2203
2213
|
}
|
|
2204
2214
|
if (totpImage && totpSecret && totpInput) {
|
|
2205
|
-
return /* @__PURE__ */ (0,
|
|
2206
|
-
/* @__PURE__ */ (0,
|
|
2207
|
-
/* @__PURE__ */ (0,
|
|
2215
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
|
|
2216
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DefaultHorizontalDivider, {}) }),
|
|
2217
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2208
2218
|
Node.Image,
|
|
2209
2219
|
{
|
|
2210
2220
|
node: totpImage,
|
|
@@ -2213,13 +2223,13 @@ function DefaultSettingsTotp({
|
|
|
2213
2223
|
}
|
|
2214
2224
|
}
|
|
2215
2225
|
) }) }) }),
|
|
2216
|
-
/* @__PURE__ */ (0,
|
|
2217
|
-
/* @__PURE__ */ (0,
|
|
2226
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col gap-6", children: [
|
|
2227
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2218
2228
|
Node.Label,
|
|
2219
2229
|
{
|
|
2220
2230
|
node: totpSecret,
|
|
2221
2231
|
attributes: totpSecret.attributes,
|
|
2222
|
-
children: /* @__PURE__ */ (0,
|
|
2232
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2223
2233
|
Node.Input,
|
|
2224
2234
|
{
|
|
2225
2235
|
node: totpSecret,
|
|
@@ -2234,12 +2244,12 @@ function DefaultSettingsTotp({
|
|
|
2234
2244
|
)
|
|
2235
2245
|
}
|
|
2236
2246
|
),
|
|
2237
|
-
/* @__PURE__ */ (0,
|
|
2247
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2238
2248
|
Node.Label,
|
|
2239
2249
|
{
|
|
2240
2250
|
attributes: totpInput.attributes,
|
|
2241
2251
|
node: totpInput,
|
|
2242
|
-
children: /* @__PURE__ */ (0,
|
|
2252
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2243
2253
|
Node.CodeInput,
|
|
2244
2254
|
{
|
|
2245
2255
|
node: totpInput,
|
|
@@ -2257,17 +2267,17 @@ function DefaultSettingsTotp({
|
|
|
2257
2267
|
var import_elements_react18 = require("@ory/elements-react");
|
|
2258
2268
|
|
|
2259
2269
|
// src/theme/default/assets/icons/key.svg
|
|
2260
|
-
var
|
|
2261
|
-
var
|
|
2270
|
+
var React31 = __toESM(require("react"));
|
|
2271
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2262
2272
|
var SvgKey = (props) => {
|
|
2263
2273
|
var _a, _b;
|
|
2264
|
-
return /* @__PURE__ */ (0,
|
|
2274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("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__ */ (0, import_jsx_runtime62.jsx)("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" }) });
|
|
2265
2275
|
};
|
|
2266
2276
|
var key_default = SvgKey;
|
|
2267
2277
|
|
|
2268
2278
|
// src/theme/default/components/settings/settings-webauthn.tsx
|
|
2269
2279
|
var import_react_hook_form12 = require("react-hook-form");
|
|
2270
|
-
var
|
|
2280
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2271
2281
|
function DefaultSettingsWebauthn({
|
|
2272
2282
|
nameInput,
|
|
2273
2283
|
triggerButton,
|
|
@@ -2278,14 +2288,14 @@ function DefaultSettingsWebauthn({
|
|
|
2278
2288
|
} = (0, import_react_hook_form12.useFormContext)();
|
|
2279
2289
|
const { Node, Card } = (0, import_elements_react18.useComponents)();
|
|
2280
2290
|
const hasRemoveButtons = removeButtons.length > 0;
|
|
2281
|
-
return /* @__PURE__ */ (0,
|
|
2282
|
-
/* @__PURE__ */ (0,
|
|
2283
|
-
/* @__PURE__ */ (0,
|
|
2291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-col gap-8", children: [
|
|
2292
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
|
|
2293
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2284
2294
|
Node.Label,
|
|
2285
2295
|
{
|
|
2286
2296
|
node: nameInput,
|
|
2287
2297
|
attributes: nameInput.attributes,
|
|
2288
|
-
children: /* @__PURE__ */ (0,
|
|
2298
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2289
2299
|
Node.Input,
|
|
2290
2300
|
{
|
|
2291
2301
|
node: nameInput,
|
|
@@ -2294,7 +2304,7 @@ function DefaultSettingsWebauthn({
|
|
|
2294
2304
|
)
|
|
2295
2305
|
}
|
|
2296
2306
|
) }),
|
|
2297
|
-
triggerButton ? /* @__PURE__ */ (0,
|
|
2307
|
+
triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2298
2308
|
Node.Button,
|
|
2299
2309
|
{
|
|
2300
2310
|
node: triggerButton,
|
|
@@ -2303,38 +2313,38 @@ function DefaultSettingsWebauthn({
|
|
|
2303
2313
|
}
|
|
2304
2314
|
) : null
|
|
2305
2315
|
] }),
|
|
2306
|
-
hasRemoveButtons ? /* @__PURE__ */ (0,
|
|
2307
|
-
/* @__PURE__ */ (0,
|
|
2308
|
-
/* @__PURE__ */ (0,
|
|
2316
|
+
hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-col gap-8", children: [
|
|
2317
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Card.Divider, {}),
|
|
2318
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
|
|
2309
2319
|
var _a, _b;
|
|
2310
2320
|
const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
|
|
2311
2321
|
const addedAt = "added_at" in context ? context.added_at : null;
|
|
2312
2322
|
const displayName = "display_name" in context ? context.display_name : null;
|
|
2313
2323
|
const keyId = "value" in node.attributes ? node.attributes.value : null;
|
|
2314
|
-
return /* @__PURE__ */ (0,
|
|
2324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
2315
2325
|
"div",
|
|
2316
2326
|
{
|
|
2317
2327
|
className: "flex justify-between gap-6 md:items-center",
|
|
2318
2328
|
children: [
|
|
2319
|
-
/* @__PURE__ */ (0,
|
|
2320
|
-
/* @__PURE__ */ (0,
|
|
2329
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex gap-2 items-center flex-1", children: [
|
|
2330
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2321
2331
|
key_default,
|
|
2322
2332
|
{
|
|
2323
2333
|
size: 32,
|
|
2324
2334
|
className: "text-interface-foreground-default-primary"
|
|
2325
2335
|
}
|
|
2326
2336
|
),
|
|
2327
|
-
/* @__PURE__ */ (0,
|
|
2328
|
-
/* @__PURE__ */ (0,
|
|
2329
|
-
/* @__PURE__ */ (0,
|
|
2330
|
-
/* @__PURE__ */ (0,
|
|
2337
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4", children: [
|
|
2338
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-1 flex-col", children: [
|
|
2339
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
|
|
2340
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block", children: keyId })
|
|
2331
2341
|
] }),
|
|
2332
|
-
addedAt && /* @__PURE__ */ (0,
|
|
2342
|
+
addedAt && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
|
|
2333
2343
|
dateStyle: "long"
|
|
2334
2344
|
}).format(new Date(addedAt)) })
|
|
2335
2345
|
] })
|
|
2336
2346
|
] }),
|
|
2337
|
-
/* @__PURE__ */ (0,
|
|
2347
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2338
2348
|
"button",
|
|
2339
2349
|
{
|
|
2340
2350
|
...node.attributes,
|
|
@@ -2342,7 +2352,7 @@ function DefaultSettingsWebauthn({
|
|
|
2342
2352
|
onClick: node.onClick,
|
|
2343
2353
|
disabled: isSubmitting,
|
|
2344
2354
|
className: "relative",
|
|
2345
|
-
children: isSubmitting ? /* @__PURE__ */ (0,
|
|
2355
|
+
children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2346
2356
|
trash_default,
|
|
2347
2357
|
{
|
|
2348
2358
|
className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
|
|
@@ -2361,11 +2371,11 @@ function DefaultSettingsWebauthn({
|
|
|
2361
2371
|
}
|
|
2362
2372
|
|
|
2363
2373
|
// src/theme/default/components/card/auth-method-list-container.tsx
|
|
2364
|
-
var
|
|
2374
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2365
2375
|
function DefaultAuthMethodListContainer({
|
|
2366
2376
|
children
|
|
2367
2377
|
}) {
|
|
2368
|
-
return /* @__PURE__ */ (0,
|
|
2378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
|
|
2369
2379
|
}
|
|
2370
2380
|
|
|
2371
2381
|
// src/theme/default/components/default-components.tsx
|
|
@@ -2417,18 +2427,18 @@ function getOryComponents(overrides) {
|
|
|
2417
2427
|
}
|
|
2418
2428
|
|
|
2419
2429
|
// src/theme/default/flows/error.tsx
|
|
2420
|
-
var
|
|
2430
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2421
2431
|
function Error2({
|
|
2422
2432
|
error,
|
|
2423
2433
|
children
|
|
2424
2434
|
}) {
|
|
2425
|
-
return /* @__PURE__ */ (0,
|
|
2435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { "data-testid": "ory/screen/error/raw", children: JSON.stringify(error) || children });
|
|
2426
2436
|
}
|
|
2427
2437
|
|
|
2428
2438
|
// src/theme/default/flows/login.tsx
|
|
2429
2439
|
var import_client_fetch12 = require("@ory/client-fetch");
|
|
2430
2440
|
var import_elements_react19 = require("@ory/elements-react");
|
|
2431
|
-
var
|
|
2441
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
2432
2442
|
function Login({
|
|
2433
2443
|
flow,
|
|
2434
2444
|
config,
|
|
@@ -2436,14 +2446,14 @@ function Login({
|
|
|
2436
2446
|
components: flowOverrideComponents
|
|
2437
2447
|
}) {
|
|
2438
2448
|
const components = getOryComponents(flowOverrideComponents);
|
|
2439
|
-
return /* @__PURE__ */ (0,
|
|
2449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
2440
2450
|
import_elements_react19.OryProvider,
|
|
2441
2451
|
{
|
|
2442
2452
|
config,
|
|
2443
2453
|
flow,
|
|
2444
2454
|
flowType: import_client_fetch12.FlowType.Login,
|
|
2445
2455
|
components,
|
|
2446
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
2456
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_elements_react19.OryTwoStepCard, {})
|
|
2447
2457
|
}
|
|
2448
2458
|
);
|
|
2449
2459
|
}
|
|
@@ -2451,7 +2461,7 @@ function Login({
|
|
|
2451
2461
|
// src/theme/default/flows/recovery.tsx
|
|
2452
2462
|
var import_client_fetch13 = require("@ory/client-fetch");
|
|
2453
2463
|
var import_elements_react20 = require("@ory/elements-react");
|
|
2454
|
-
var
|
|
2464
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
2455
2465
|
function Recovery({
|
|
2456
2466
|
flow,
|
|
2457
2467
|
config,
|
|
@@ -2459,14 +2469,14 @@ function Recovery({
|
|
|
2459
2469
|
components: flowOverrideComponents
|
|
2460
2470
|
}) {
|
|
2461
2471
|
const components = getOryComponents(flowOverrideComponents);
|
|
2462
|
-
return /* @__PURE__ */ (0,
|
|
2472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
2463
2473
|
import_elements_react20.OryProvider,
|
|
2464
2474
|
{
|
|
2465
2475
|
config,
|
|
2466
2476
|
flow,
|
|
2467
2477
|
flowType: import_client_fetch13.FlowType.Recovery,
|
|
2468
2478
|
components,
|
|
2469
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
2479
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_elements_react20.OryTwoStepCard, {})
|
|
2470
2480
|
}
|
|
2471
2481
|
);
|
|
2472
2482
|
}
|
|
@@ -2474,7 +2484,7 @@ function Recovery({
|
|
|
2474
2484
|
// src/theme/default/flows/registration.tsx
|
|
2475
2485
|
var import_client_fetch14 = require("@ory/client-fetch");
|
|
2476
2486
|
var import_elements_react21 = require("@ory/elements-react");
|
|
2477
|
-
var
|
|
2487
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
2478
2488
|
function Registration({
|
|
2479
2489
|
flow,
|
|
2480
2490
|
children,
|
|
@@ -2482,14 +2492,14 @@ function Registration({
|
|
|
2482
2492
|
config
|
|
2483
2493
|
}) {
|
|
2484
2494
|
const components = getOryComponents(flowOverrideComponents);
|
|
2485
|
-
return /* @__PURE__ */ (0,
|
|
2495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
2486
2496
|
import_elements_react21.OryProvider,
|
|
2487
2497
|
{
|
|
2488
2498
|
config,
|
|
2489
2499
|
flow,
|
|
2490
2500
|
flowType: import_client_fetch14.FlowType.Registration,
|
|
2491
2501
|
components,
|
|
2492
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
2502
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_elements_react21.OryTwoStepCard, {})
|
|
2493
2503
|
}
|
|
2494
2504
|
);
|
|
2495
2505
|
}
|
|
@@ -2497,7 +2507,7 @@ function Registration({
|
|
|
2497
2507
|
// src/theme/default/flows/settings.tsx
|
|
2498
2508
|
var import_client_fetch15 = require("@ory/client-fetch");
|
|
2499
2509
|
var import_elements_react22 = require("@ory/elements-react");
|
|
2500
|
-
var
|
|
2510
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
2501
2511
|
function Settings({
|
|
2502
2512
|
flow,
|
|
2503
2513
|
config,
|
|
@@ -2505,16 +2515,16 @@ function Settings({
|
|
|
2505
2515
|
components: flowOverrideComponents
|
|
2506
2516
|
}) {
|
|
2507
2517
|
const components = getOryComponents(flowOverrideComponents);
|
|
2508
|
-
return /* @__PURE__ */ (0,
|
|
2518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
2509
2519
|
import_elements_react22.OryProvider,
|
|
2510
2520
|
{
|
|
2511
2521
|
config,
|
|
2512
2522
|
flow,
|
|
2513
2523
|
flowType: import_client_fetch15.FlowType.Settings,
|
|
2514
2524
|
components,
|
|
2515
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
2516
|
-
/* @__PURE__ */ (0,
|
|
2517
|
-
/* @__PURE__ */ (0,
|
|
2525
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
2526
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_elements_react22.HeadlessPageHeader, {}),
|
|
2527
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_elements_react22.OrySettingsCard, {})
|
|
2518
2528
|
] })
|
|
2519
2529
|
}
|
|
2520
2530
|
);
|
|
@@ -2523,7 +2533,7 @@ function Settings({
|
|
|
2523
2533
|
// src/theme/default/flows/verification.tsx
|
|
2524
2534
|
var import_client_fetch16 = require("@ory/client-fetch");
|
|
2525
2535
|
var import_elements_react23 = require("@ory/elements-react");
|
|
2526
|
-
var
|
|
2536
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
2527
2537
|
function Verification({
|
|
2528
2538
|
flow,
|
|
2529
2539
|
config,
|
|
@@ -2531,14 +2541,14 @@ function Verification({
|
|
|
2531
2541
|
components: flowOverrideComponents
|
|
2532
2542
|
}) {
|
|
2533
2543
|
const components = getOryComponents(flowOverrideComponents);
|
|
2534
|
-
return /* @__PURE__ */ (0,
|
|
2544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
2535
2545
|
import_elements_react23.OryProvider,
|
|
2536
2546
|
{
|
|
2537
2547
|
config,
|
|
2538
2548
|
flow,
|
|
2539
2549
|
flowType: import_client_fetch16.FlowType.Verification,
|
|
2540
2550
|
components,
|
|
2541
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
2551
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_elements_react23.OryTwoStepCard, {})
|
|
2542
2552
|
}
|
|
2543
2553
|
);
|
|
2544
2554
|
}
|