@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
|
@@ -705,6 +705,15 @@ var SvgYandex = (props) => {
|
|
|
705
705
|
};
|
|
706
706
|
var yandex_default = SvgYandex;
|
|
707
707
|
|
|
708
|
+
// src/theme/default/provider-logos/x.svg
|
|
709
|
+
import * as React17 from "react";
|
|
710
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
711
|
+
var SvgX = (props) => {
|
|
712
|
+
var _a, _b;
|
|
713
|
+
return /* @__PURE__ */ jsx24("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__ */ jsx24("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" }) });
|
|
714
|
+
};
|
|
715
|
+
var x_default = SvgX;
|
|
716
|
+
|
|
708
717
|
// src/theme/default/provider-logos/index.ts
|
|
709
718
|
var logos = {
|
|
710
719
|
apple: apple_default,
|
|
@@ -719,7 +728,8 @@ var logos = {
|
|
|
719
728
|
microsoft: microsoft_default,
|
|
720
729
|
slack: slack_default,
|
|
721
730
|
spotify: spotify_default,
|
|
722
|
-
yandex: yandex_default
|
|
731
|
+
yandex: yandex_default,
|
|
732
|
+
x: x_default
|
|
723
733
|
};
|
|
724
734
|
var provider_logos_default = logos;
|
|
725
735
|
|
|
@@ -729,7 +739,7 @@ import { useEffect, useState } from "react";
|
|
|
729
739
|
import { useFormContext as useFormContext2 } from "react-hook-form";
|
|
730
740
|
|
|
731
741
|
// src/theme/default/components/form/spinner.tsx
|
|
732
|
-
import { jsx as
|
|
742
|
+
import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
733
743
|
function Spinner({ className }) {
|
|
734
744
|
return /* @__PURE__ */ jsxs18(
|
|
735
745
|
"svg",
|
|
@@ -744,7 +754,7 @@ function Spinner({ className }) {
|
|
|
744
754
|
fill: "none",
|
|
745
755
|
xmlns: "http://www.w3.org/2000/svg",
|
|
746
756
|
children: [
|
|
747
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ jsx25("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx25(
|
|
748
758
|
"path",
|
|
749
759
|
{
|
|
750
760
|
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",
|
|
@@ -753,7 +763,7 @@ function Spinner({ className }) {
|
|
|
753
763
|
strokeLinejoin: "round"
|
|
754
764
|
}
|
|
755
765
|
) }),
|
|
756
|
-
/* @__PURE__ */
|
|
766
|
+
/* @__PURE__ */ jsx25("defs", { children: /* @__PURE__ */ jsx25("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx25(
|
|
757
767
|
"rect",
|
|
758
768
|
{
|
|
759
769
|
width: "24",
|
|
@@ -768,7 +778,7 @@ function Spinner({ className }) {
|
|
|
768
778
|
}
|
|
769
779
|
|
|
770
780
|
// src/theme/default/components/form/social.tsx
|
|
771
|
-
import { jsx as
|
|
781
|
+
import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
772
782
|
function extractProvider(context) {
|
|
773
783
|
if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
|
|
774
784
|
return context.provider;
|
|
@@ -824,18 +834,18 @@ function DefaultButtonSocial({
|
|
|
824
834
|
"data-loading": clicked,
|
|
825
835
|
disabled: isSubmitting,
|
|
826
836
|
children: [
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
showLabel && node.meta.label ? /* @__PURE__ */
|
|
837
|
+
/* @__PURE__ */ jsx26("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ jsx26(Logo, { size: 20 }) : /* @__PURE__ */ jsx26("span", { className: "flex aspect-square items-center justify-center rounded-[999px] border text-xs", children: provider.slice(0, 2) }) : /* @__PURE__ */ jsx26(Spinner, { className: "size-5" }) }),
|
|
838
|
+
showLabel && node.meta.label ? /* @__PURE__ */ jsx26("span", { className: "grow text-left font-medium leading-none text-button-social-foreground-default", children: uiTextToFormattedMessage(node.meta.label, intl) }) : null
|
|
829
839
|
]
|
|
830
840
|
}
|
|
831
841
|
);
|
|
832
842
|
}
|
|
833
|
-
DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */
|
|
843
|
+
DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ jsx26(DefaultButtonSocial, { ...props, logos: logos2 });
|
|
834
844
|
function DefaultSocialButtonContainer({
|
|
835
845
|
children,
|
|
836
846
|
nodes
|
|
837
847
|
}) {
|
|
838
|
-
return /* @__PURE__ */
|
|
848
|
+
return /* @__PURE__ */ jsx26(
|
|
839
849
|
"div",
|
|
840
850
|
{
|
|
841
851
|
className: cn("grid gap-3", {
|
|
@@ -850,14 +860,14 @@ function DefaultSocialButtonContainer({
|
|
|
850
860
|
}
|
|
851
861
|
|
|
852
862
|
// src/theme/default/components/form/index.tsx
|
|
853
|
-
import { jsx as
|
|
863
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
854
864
|
function DefaultFormContainer({
|
|
855
865
|
children,
|
|
856
866
|
onSubmit,
|
|
857
867
|
action,
|
|
858
868
|
method
|
|
859
869
|
}) {
|
|
860
|
-
return /* @__PURE__ */
|
|
870
|
+
return /* @__PURE__ */ jsx27(
|
|
861
871
|
"form",
|
|
862
872
|
{
|
|
863
873
|
onSubmit,
|
|
@@ -874,7 +884,7 @@ function DefaultMessageContainer({ children }) {
|
|
|
874
884
|
if (!children || Array.isArray(children) && children.length === 0) {
|
|
875
885
|
return null;
|
|
876
886
|
}
|
|
877
|
-
return /* @__PURE__ */
|
|
887
|
+
return /* @__PURE__ */ jsx27(
|
|
878
888
|
"section",
|
|
879
889
|
{
|
|
880
890
|
className: cn(
|
|
@@ -886,7 +896,7 @@ function DefaultMessageContainer({ children }) {
|
|
|
886
896
|
}
|
|
887
897
|
function DefaultMessage({ message }) {
|
|
888
898
|
const intl = useIntl4();
|
|
889
|
-
return /* @__PURE__ */
|
|
899
|
+
return /* @__PURE__ */ jsx27(
|
|
890
900
|
"span",
|
|
891
901
|
{
|
|
892
902
|
className: cn(
|
|
@@ -905,38 +915,38 @@ function DefaultMessage({ message }) {
|
|
|
905
915
|
import { useIntl as useIntl5 } from "react-intl";
|
|
906
916
|
|
|
907
917
|
// src/theme/default/assets/icons/code.svg
|
|
908
|
-
import * as
|
|
909
|
-
import { jsx as
|
|
918
|
+
import * as React18 from "react";
|
|
919
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
910
920
|
var SvgCode = (props) => {
|
|
911
921
|
var _a, _b;
|
|
912
|
-
return /* @__PURE__ */
|
|
922
|
+
return /* @__PURE__ */ jsx28("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__ */ jsx28("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" }) });
|
|
913
923
|
};
|
|
914
924
|
var code_default = SvgCode;
|
|
915
925
|
|
|
916
926
|
// src/theme/default/assets/icons/passkey.svg
|
|
917
|
-
import * as
|
|
918
|
-
import { jsx as
|
|
927
|
+
import * as React19 from "react";
|
|
928
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
919
929
|
var SvgPasskey = (props) => {
|
|
920
930
|
var _a, _b;
|
|
921
|
-
return /* @__PURE__ */
|
|
931
|
+
return /* @__PURE__ */ jsx29("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__ */ jsx29("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" }) });
|
|
922
932
|
};
|
|
923
933
|
var passkey_default = SvgPasskey;
|
|
924
934
|
|
|
925
935
|
// src/theme/default/assets/icons/password.svg
|
|
926
|
-
import * as
|
|
927
|
-
import { jsx as
|
|
936
|
+
import * as React20 from "react";
|
|
937
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
928
938
|
var SvgPassword = (props) => {
|
|
929
939
|
var _a, _b;
|
|
930
|
-
return /* @__PURE__ */
|
|
940
|
+
return /* @__PURE__ */ jsx30("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__ */ jsx30("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" }) });
|
|
931
941
|
};
|
|
932
942
|
var password_default = SvgPassword;
|
|
933
943
|
|
|
934
944
|
// src/theme/default/assets/icons/webauthn.svg
|
|
935
|
-
import * as
|
|
936
|
-
import { jsx as
|
|
945
|
+
import * as React21 from "react";
|
|
946
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
937
947
|
var SvgWebauthn = (props) => {
|
|
938
948
|
var _a, _b;
|
|
939
|
-
return /* @__PURE__ */
|
|
949
|
+
return /* @__PURE__ */ jsx31("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__ */ jsx31("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" }) });
|
|
940
950
|
};
|
|
941
951
|
var webauthn_default = SvgWebauthn;
|
|
942
952
|
|
|
@@ -946,7 +956,7 @@ function isGroupImmediateSubmit(group) {
|
|
|
946
956
|
}
|
|
947
957
|
|
|
948
958
|
// src/theme/default/components/card/auth-method-list-item.tsx
|
|
949
|
-
import { jsx as
|
|
959
|
+
import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
950
960
|
var iconsMap = {
|
|
951
961
|
code: code_default,
|
|
952
962
|
passkey: passkey_default,
|
|
@@ -968,10 +978,10 @@ function DefaultAuthMethodListItem({
|
|
|
968
978
|
type: isGroupImmediateSubmit(group) ? "submit" : "button",
|
|
969
979
|
"data-testid": `ory/form/auth-picker/${group}`,
|
|
970
980
|
children: [
|
|
971
|
-
/* @__PURE__ */
|
|
981
|
+
/* @__PURE__ */ jsx32("span", { className: "mt-1", children: Icon && /* @__PURE__ */ jsx32(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
|
|
972
982
|
/* @__PURE__ */ jsxs20("span", { className: "flex-1 leading-normal inline-flex flex-col", children: [
|
|
973
|
-
/* @__PURE__ */
|
|
974
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ jsx32("span", { className: "text-interface-foreground-default-primary", children: intl.formatMessage({ id: `two-step.${group}.title` }) }),
|
|
984
|
+
/* @__PURE__ */ jsx32("span", { className: "text-interface-foreground-default-secondary", children: intl.formatMessage({
|
|
975
985
|
id: `two-step.${group}.description`
|
|
976
986
|
}) })
|
|
977
987
|
] })
|
|
@@ -989,7 +999,7 @@ import { cva } from "class-variance-authority";
|
|
|
989
999
|
import { useFormContext as useFormContext3 } from "react-hook-form";
|
|
990
1000
|
import { useIntl as useIntl6 } from "react-intl";
|
|
991
1001
|
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
992
|
-
import { jsx as
|
|
1002
|
+
import { jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
993
1003
|
var buttonStyles = cva(
|
|
994
1004
|
[
|
|
995
1005
|
"relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
|
|
@@ -1072,8 +1082,8 @@ var DefaultButton = ({
|
|
|
1072
1082
|
disabled: (_a = rest.disabled) != null ? _a : isSubmitting,
|
|
1073
1083
|
"data-loading": clicked,
|
|
1074
1084
|
children: [
|
|
1075
|
-
clicked ? /* @__PURE__ */
|
|
1076
|
-
label ? /* @__PURE__ */
|
|
1085
|
+
clicked ? /* @__PURE__ */ jsx33(Spinner, {}) : null,
|
|
1086
|
+
label ? /* @__PURE__ */ jsx33("span", { children: uiTextToFormattedMessage3(label, intl) }) : ""
|
|
1077
1087
|
]
|
|
1078
1088
|
}
|
|
1079
1089
|
);
|
|
@@ -1149,7 +1159,7 @@ var uiTextToFormattedMessage4 = ({ id, context = {}, text }, intl) => {
|
|
|
1149
1159
|
};
|
|
1150
1160
|
|
|
1151
1161
|
// src/theme/default/components/ui/checkbox-label.tsx
|
|
1152
|
-
import { Fragment as Fragment2, jsx as
|
|
1162
|
+
import { Fragment as Fragment2, jsx as jsx34 } from "react/jsx-runtime";
|
|
1153
1163
|
var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
|
|
1154
1164
|
function computeLabelElements(labelText) {
|
|
1155
1165
|
const elements = [];
|
|
@@ -1165,7 +1175,7 @@ function computeLabelElements(labelText) {
|
|
|
1165
1175
|
elements.push(labelText.slice(lastIndex, matchStart));
|
|
1166
1176
|
}
|
|
1167
1177
|
elements.push(
|
|
1168
|
-
/* @__PURE__ */
|
|
1178
|
+
/* @__PURE__ */ jsx34(
|
|
1169
1179
|
"a",
|
|
1170
1180
|
{
|
|
1171
1181
|
href: url,
|
|
@@ -1190,13 +1200,13 @@ function CheckboxLabel({ label }) {
|
|
|
1190
1200
|
return null;
|
|
1191
1201
|
}
|
|
1192
1202
|
const labelText = uiTextToFormattedMessage4(label, intl);
|
|
1193
|
-
return /* @__PURE__ */
|
|
1203
|
+
return /* @__PURE__ */ jsx34(Fragment2, { children: computeLabelElements(labelText) });
|
|
1194
1204
|
}
|
|
1195
1205
|
|
|
1196
1206
|
// src/theme/default/components/form/checkbox.tsx
|
|
1197
|
-
import { jsx as
|
|
1207
|
+
import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1198
1208
|
function CheckboxSVG() {
|
|
1199
|
-
return /* @__PURE__ */
|
|
1209
|
+
return /* @__PURE__ */ jsx35(
|
|
1200
1210
|
"svg",
|
|
1201
1211
|
{
|
|
1202
1212
|
className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
|
|
@@ -1205,7 +1215,7 @@ function CheckboxSVG() {
|
|
|
1205
1215
|
height: "16",
|
|
1206
1216
|
viewBox: "0 0 16 16",
|
|
1207
1217
|
fill: "none",
|
|
1208
|
-
children: /* @__PURE__ */
|
|
1218
|
+
children: /* @__PURE__ */ jsx35(
|
|
1209
1219
|
"path",
|
|
1210
1220
|
{
|
|
1211
1221
|
fillRule: "evenodd",
|
|
@@ -1236,7 +1246,7 @@ var DefaultCheckbox = ({
|
|
|
1236
1246
|
const hasError = node.messages.some((m) => m.type === "error");
|
|
1237
1247
|
return /* @__PURE__ */ jsxs22("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
|
|
1238
1248
|
/* @__PURE__ */ jsxs22("span", { className: "flex h-5 items-center", children: [
|
|
1239
|
-
/* @__PURE__ */
|
|
1249
|
+
/* @__PURE__ */ jsx35(
|
|
1240
1250
|
"input",
|
|
1241
1251
|
{
|
|
1242
1252
|
...attributes,
|
|
@@ -1250,11 +1260,11 @@ var DefaultCheckbox = ({
|
|
|
1250
1260
|
...register(name, { value })
|
|
1251
1261
|
}
|
|
1252
1262
|
),
|
|
1253
|
-
/* @__PURE__ */
|
|
1263
|
+
/* @__PURE__ */ jsx35(CheckboxSVG, {})
|
|
1254
1264
|
] }),
|
|
1255
1265
|
/* @__PURE__ */ jsxs22("span", { className: "flex flex-col", children: [
|
|
1256
|
-
/* @__PURE__ */
|
|
1257
|
-
node.messages.map((message) => /* @__PURE__ */
|
|
1266
|
+
/* @__PURE__ */ jsx35("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx35(CheckboxLabel, { label }) }),
|
|
1267
|
+
node.messages.map((message) => /* @__PURE__ */ jsx35(
|
|
1258
1268
|
"span",
|
|
1259
1269
|
{
|
|
1260
1270
|
className: cn(
|
|
@@ -1271,21 +1281,21 @@ var DefaultCheckbox = ({
|
|
|
1271
1281
|
};
|
|
1272
1282
|
|
|
1273
1283
|
// src/theme/default/components/form/group-container.tsx
|
|
1274
|
-
import { jsx as
|
|
1284
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1275
1285
|
function DefaultGroupContainer({ children }) {
|
|
1276
|
-
return /* @__PURE__ */
|
|
1286
|
+
return /* @__PURE__ */ jsx36("div", { className: "grid grid-cols-1 gap-8", children });
|
|
1277
1287
|
}
|
|
1278
1288
|
|
|
1279
1289
|
// src/theme/default/components/form/horizontal-divider.tsx
|
|
1280
|
-
import { jsx as
|
|
1290
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
1281
1291
|
function DefaultHorizontalDivider() {
|
|
1282
|
-
return /* @__PURE__ */
|
|
1292
|
+
return /* @__PURE__ */ jsx37("hr", { className: "border-interface-border-default-primary" });
|
|
1283
1293
|
}
|
|
1284
1294
|
|
|
1285
1295
|
// src/theme/default/components/form/image.tsx
|
|
1286
|
-
import { jsx as
|
|
1296
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1287
1297
|
function DefaultImage({ attributes }) {
|
|
1288
|
-
return /* @__PURE__ */
|
|
1298
|
+
return /* @__PURE__ */ jsx38("figure", { children: /* @__PURE__ */ jsx38("img", { ...attributes }) });
|
|
1289
1299
|
}
|
|
1290
1300
|
|
|
1291
1301
|
// src/theme/default/components/form/input.tsx
|
|
@@ -1296,7 +1306,7 @@ import {
|
|
|
1296
1306
|
} from "@ory/elements-react";
|
|
1297
1307
|
import { useFormContext as useFormContext4 } from "react-hook-form";
|
|
1298
1308
|
import { useIntl as useIntl9 } from "react-intl";
|
|
1299
|
-
import { jsx as
|
|
1309
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
1300
1310
|
var DefaultInput = ({
|
|
1301
1311
|
node,
|
|
1302
1312
|
attributes,
|
|
@@ -1323,7 +1333,7 @@ var DefaultInput = ({
|
|
|
1323
1333
|
placeholder: uiTextToFormattedMessage6(label, intl)
|
|
1324
1334
|
}
|
|
1325
1335
|
) : "";
|
|
1326
|
-
return /* @__PURE__ */
|
|
1336
|
+
return /* @__PURE__ */ jsx39(
|
|
1327
1337
|
"input",
|
|
1328
1338
|
{
|
|
1329
1339
|
...rest,
|
|
@@ -1361,7 +1371,7 @@ import {
|
|
|
1361
1371
|
} from "@ory/elements-react";
|
|
1362
1372
|
import { useFormContext as useFormContext5 } from "react-hook-form";
|
|
1363
1373
|
import { useIntl as useIntl10 } from "react-intl";
|
|
1364
|
-
import { jsx as
|
|
1374
|
+
import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1365
1375
|
function findResendNode(nodes) {
|
|
1366
1376
|
return nodes.find(
|
|
1367
1377
|
(n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
|
|
@@ -1388,7 +1398,7 @@ function DefaultLabel({
|
|
|
1388
1398
|
const fieldError = formState.errors[attributes.name];
|
|
1389
1399
|
return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-1 antialiased", children: [
|
|
1390
1400
|
label && /* @__PURE__ */ jsxs23("span", { className: "inline-flex justify-between", children: [
|
|
1391
|
-
/* @__PURE__ */
|
|
1401
|
+
/* @__PURE__ */ jsx40(
|
|
1392
1402
|
"label",
|
|
1393
1403
|
{
|
|
1394
1404
|
...messageTestId3(label),
|
|
@@ -1400,7 +1410,7 @@ function DefaultLabel({
|
|
|
1400
1410
|
}
|
|
1401
1411
|
),
|
|
1402
1412
|
isPassword && config.project.recovery_enabled && flowType === FlowType6.Login && // TODO: make it possible to override with a custom component
|
|
1403
|
-
/* @__PURE__ */
|
|
1413
|
+
/* @__PURE__ */ jsx40(
|
|
1404
1414
|
"a",
|
|
1405
1415
|
{
|
|
1406
1416
|
href: initFlowUrl(config.sdk.url, "recovery", flow),
|
|
@@ -1411,7 +1421,7 @@ function DefaultLabel({
|
|
|
1411
1421
|
})
|
|
1412
1422
|
}
|
|
1413
1423
|
),
|
|
1414
|
-
(resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */
|
|
1424
|
+
(resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx40(
|
|
1415
1425
|
"button",
|
|
1416
1426
|
{
|
|
1417
1427
|
type: "submit",
|
|
@@ -1424,8 +1434,8 @@ function DefaultLabel({
|
|
|
1424
1434
|
)
|
|
1425
1435
|
] }),
|
|
1426
1436
|
children,
|
|
1427
|
-
node.messages.map((message) => /* @__PURE__ */
|
|
1428
|
-
fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */
|
|
1437
|
+
node.messages.map((message) => /* @__PURE__ */ jsx40(Message.Content, { message }, message.id)),
|
|
1438
|
+
fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx40(Message.Content, { message: fieldError })
|
|
1429
1439
|
] });
|
|
1430
1440
|
}
|
|
1431
1441
|
|
|
@@ -1436,11 +1446,11 @@ import {
|
|
|
1436
1446
|
} from "@ory/elements-react";
|
|
1437
1447
|
import { forwardRef } from "react";
|
|
1438
1448
|
import { useIntl as useIntl11 } from "react-intl";
|
|
1439
|
-
import { jsx as
|
|
1449
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
1440
1450
|
var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
|
|
1441
1451
|
const intl = useIntl11();
|
|
1442
1452
|
const label = getNodeLabel5(node);
|
|
1443
|
-
return /* @__PURE__ */
|
|
1453
|
+
return /* @__PURE__ */ jsx41(
|
|
1444
1454
|
"a",
|
|
1445
1455
|
{
|
|
1446
1456
|
...attributes,
|
|
@@ -1461,9 +1471,9 @@ import { useFormContext as useFormContext6 } from "react-hook-form";
|
|
|
1461
1471
|
|
|
1462
1472
|
// src/theme/default/components/form/shadcn/otp-input.tsx
|
|
1463
1473
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
1464
|
-
import * as
|
|
1465
|
-
import { jsx as
|
|
1466
|
-
var InputOTP =
|
|
1474
|
+
import * as React22 from "react";
|
|
1475
|
+
import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1476
|
+
var InputOTP = React22.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
1467
1477
|
OTPInput,
|
|
1468
1478
|
{
|
|
1469
1479
|
ref,
|
|
@@ -1476,10 +1486,10 @@ var InputOTP = React21.forwardRef(({ className, containerClassName, ...props },
|
|
|
1476
1486
|
}
|
|
1477
1487
|
));
|
|
1478
1488
|
InputOTP.displayName = "InputOTP";
|
|
1479
|
-
var InputOTPGroup =
|
|
1489
|
+
var InputOTPGroup = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx42("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
1480
1490
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
1481
|
-
var InputOTPSlot =
|
|
1482
|
-
const inputOTPContext =
|
|
1491
|
+
var InputOTPSlot = React22.forwardRef(({ index, className, ...props }, ref) => {
|
|
1492
|
+
const inputOTPContext = React22.useContext(OTPInputContext);
|
|
1483
1493
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
1484
1494
|
return /* @__PURE__ */ jsxs24(
|
|
1485
1495
|
"div",
|
|
@@ -1493,8 +1503,8 @@ var InputOTPSlot = React21.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
1493
1503
|
),
|
|
1494
1504
|
...props,
|
|
1495
1505
|
children: [
|
|
1496
|
-
/* @__PURE__ */
|
|
1497
|
-
hasFakeCaret && /* @__PURE__ */
|
|
1506
|
+
/* @__PURE__ */ jsx42("span", { className: "inline-block size-4", children: char }),
|
|
1507
|
+
hasFakeCaret && /* @__PURE__ */ jsx42("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx42("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
|
|
1498
1508
|
]
|
|
1499
1509
|
}
|
|
1500
1510
|
);
|
|
@@ -1504,7 +1514,7 @@ InputOTPSlot.displayName = "InputOTPSlot";
|
|
|
1504
1514
|
// src/theme/default/components/form/pin-code-input.tsx
|
|
1505
1515
|
import { useOryFlow as useOryFlow9 } from "@ory/elements-react";
|
|
1506
1516
|
import { FlowType as FlowType7 } from "@ory/client-fetch";
|
|
1507
|
-
import { jsx as
|
|
1517
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
1508
1518
|
var DefaultPinCodeInput = ({ attributes }) => {
|
|
1509
1519
|
const { setValue, watch } = useFormContext6();
|
|
1510
1520
|
const { maxlength, name } = attributes;
|
|
@@ -1514,14 +1524,14 @@ var DefaultPinCodeInput = ({ attributes }) => {
|
|
|
1514
1524
|
setValue(name, v);
|
|
1515
1525
|
};
|
|
1516
1526
|
const value = watch(name);
|
|
1517
|
-
return /* @__PURE__ */
|
|
1527
|
+
return /* @__PURE__ */ jsx43(
|
|
1518
1528
|
InputOTP,
|
|
1519
1529
|
{
|
|
1520
1530
|
maxLength: maxlength != null ? maxlength : 6,
|
|
1521
1531
|
onChange: handleInputChange,
|
|
1522
1532
|
name,
|
|
1523
1533
|
value,
|
|
1524
|
-
children: /* @__PURE__ */
|
|
1534
|
+
children: /* @__PURE__ */ jsx43(
|
|
1525
1535
|
InputOTPGroup,
|
|
1526
1536
|
{
|
|
1527
1537
|
className: cn(
|
|
@@ -1529,7 +1539,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
|
|
|
1529
1539
|
// The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
|
|
1530
1540
|
flowType === FlowType7.Settings && "max-w-[488px]"
|
|
1531
1541
|
),
|
|
1532
|
-
children: [...Array(elements)].map((_, index) => /* @__PURE__ */
|
|
1542
|
+
children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx43(InputOTPSlot, { index }, index))
|
|
1533
1543
|
}
|
|
1534
1544
|
)
|
|
1535
1545
|
}
|
|
@@ -1537,13 +1547,13 @@ var DefaultPinCodeInput = ({ attributes }) => {
|
|
|
1537
1547
|
};
|
|
1538
1548
|
|
|
1539
1549
|
// src/theme/default/components/form/section.tsx
|
|
1540
|
-
import { jsx as
|
|
1550
|
+
import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1541
1551
|
var DefaultFormSection = ({
|
|
1542
1552
|
children,
|
|
1543
1553
|
nodes: _nodes,
|
|
1544
1554
|
...rest
|
|
1545
1555
|
}) => {
|
|
1546
|
-
return /* @__PURE__ */
|
|
1556
|
+
return /* @__PURE__ */ jsx44(
|
|
1547
1557
|
"form",
|
|
1548
1558
|
{
|
|
1549
1559
|
className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
|
|
@@ -1559,8 +1569,8 @@ var DefaultFormSectionContent = ({
|
|
|
1559
1569
|
}) => {
|
|
1560
1570
|
return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
|
|
1561
1571
|
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-2", children: [
|
|
1562
|
-
/* @__PURE__ */
|
|
1563
|
-
/* @__PURE__ */
|
|
1572
|
+
/* @__PURE__ */ jsx44("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
|
|
1573
|
+
/* @__PURE__ */ jsx44("span", { className: "text-interface-foreground-default-secondary", children: description })
|
|
1564
1574
|
] }),
|
|
1565
1575
|
children
|
|
1566
1576
|
] });
|
|
@@ -1576,7 +1586,7 @@ var DefaultFormSectionFooter = ({
|
|
|
1576
1586
|
"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"
|
|
1577
1587
|
),
|
|
1578
1588
|
children: [
|
|
1579
|
-
/* @__PURE__ */
|
|
1589
|
+
/* @__PURE__ */ jsx44("span", { children: text }),
|
|
1580
1590
|
children
|
|
1581
1591
|
]
|
|
1582
1592
|
}
|
|
@@ -1586,17 +1596,17 @@ var DefaultFormSectionFooter = ({
|
|
|
1586
1596
|
// src/theme/default/components/form/text.tsx
|
|
1587
1597
|
import { uiTextToFormattedMessage as uiTextToFormattedMessage9 } from "@ory/elements-react";
|
|
1588
1598
|
import { useIntl as useIntl12 } from "react-intl";
|
|
1589
|
-
import { Fragment as Fragment3, jsx as
|
|
1599
|
+
import { Fragment as Fragment3, jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1590
1600
|
function DefaultText({ node, attributes }) {
|
|
1591
1601
|
var _a;
|
|
1592
1602
|
const intl = useIntl12();
|
|
1593
1603
|
return /* @__PURE__ */ jsxs26(Fragment3, { children: [
|
|
1594
|
-
/* @__PURE__ */
|
|
1595
|
-
(_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */
|
|
1604
|
+
/* @__PURE__ */ jsx45("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
|
|
1605
|
+
(_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ jsx45(
|
|
1596
1606
|
"pre",
|
|
1597
1607
|
{
|
|
1598
1608
|
"data-testid": `ory/form/node/text/lookup_secret_codes/text`,
|
|
1599
|
-
children: /* @__PURE__ */
|
|
1609
|
+
children: /* @__PURE__ */ jsx45("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" })
|
|
1600
1610
|
},
|
|
1601
1611
|
index
|
|
1602
1612
|
))
|
|
@@ -1629,22 +1639,22 @@ function frontendClient(sdkUrl, opts = {}) {
|
|
|
1629
1639
|
}
|
|
1630
1640
|
|
|
1631
1641
|
// src/theme/default/assets/icons/logout.svg
|
|
1632
|
-
import * as
|
|
1633
|
-
import { jsx as
|
|
1642
|
+
import * as React23 from "react";
|
|
1643
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
1634
1644
|
var SvgLogout = (props) => {
|
|
1635
1645
|
var _a, _b;
|
|
1636
|
-
return /* @__PURE__ */
|
|
1646
|
+
return /* @__PURE__ */ jsx46("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx46("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" }) });
|
|
1637
1647
|
};
|
|
1638
1648
|
var logout_default = SvgLogout;
|
|
1639
1649
|
|
|
1640
1650
|
// src/theme/default/assets/icons/settings.svg
|
|
1641
|
-
import * as
|
|
1642
|
-
import { jsx as
|
|
1651
|
+
import * as React24 from "react";
|
|
1652
|
+
import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1643
1653
|
var SvgSettings = (props) => {
|
|
1644
1654
|
var _a, _b;
|
|
1645
|
-
return /* @__PURE__ */
|
|
1646
|
-
/* @__PURE__ */
|
|
1647
|
-
/* @__PURE__ */
|
|
1655
|
+
return /* @__PURE__ */ jsx47("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs27("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
1656
|
+
/* @__PURE__ */ jsx47("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" }),
|
|
1657
|
+
/* @__PURE__ */ jsx47("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
|
|
1648
1658
|
] }) });
|
|
1649
1659
|
};
|
|
1650
1660
|
var settings_default = SvgSettings;
|
|
@@ -1691,10 +1701,10 @@ var getUserInitials = (session) => {
|
|
|
1691
1701
|
// src/theme/default/components/ui/dropdown-menu.tsx
|
|
1692
1702
|
import { forwardRef as forwardRef3 } from "react";
|
|
1693
1703
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
1694
|
-
import { jsx as
|
|
1704
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
1695
1705
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
1696
1706
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1697
|
-
var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */
|
|
1707
|
+
var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx48(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx48(
|
|
1698
1708
|
DropdownMenuPrimitive.Content,
|
|
1699
1709
|
{
|
|
1700
1710
|
ref,
|
|
@@ -1709,7 +1719,7 @@ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props },
|
|
|
1709
1719
|
}
|
|
1710
1720
|
) }));
|
|
1711
1721
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1712
|
-
var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
1722
|
+
var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
1713
1723
|
DropdownMenuPrimitive.Item,
|
|
1714
1724
|
{
|
|
1715
1725
|
ref,
|
|
@@ -1727,7 +1737,7 @@ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @
|
|
|
1727
1737
|
}
|
|
1728
1738
|
));
|
|
1729
1739
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1730
|
-
var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
1740
|
+
var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
1731
1741
|
DropdownMenuPrimitive.Label,
|
|
1732
1742
|
{
|
|
1733
1743
|
ref,
|
|
@@ -1745,32 +1755,32 @@ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
|
1745
1755
|
import { forwardRef as forwardRef4 } from "react";
|
|
1746
1756
|
|
|
1747
1757
|
// src/theme/default/assets/icons/user.svg
|
|
1748
|
-
import * as
|
|
1749
|
-
import { jsx as
|
|
1758
|
+
import * as React25 from "react";
|
|
1759
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
1750
1760
|
var SvgUser = (props) => {
|
|
1751
1761
|
var _a, _b;
|
|
1752
|
-
return /* @__PURE__ */
|
|
1762
|
+
return /* @__PURE__ */ jsx49("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__ */ jsx49("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" }) });
|
|
1753
1763
|
};
|
|
1754
1764
|
var user_default = SvgUser;
|
|
1755
1765
|
|
|
1756
1766
|
// src/theme/default/components/ui/user-avater.tsx
|
|
1757
|
-
import { jsx as
|
|
1767
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
1758
1768
|
var UserAvatar = forwardRef4(
|
|
1759
1769
|
({ initials, ...rest }, ref) => {
|
|
1760
|
-
return /* @__PURE__ */
|
|
1770
|
+
return /* @__PURE__ */ jsx50(
|
|
1761
1771
|
"button",
|
|
1762
1772
|
{
|
|
1763
1773
|
ref,
|
|
1764
1774
|
className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
|
|
1765
1775
|
...rest,
|
|
1766
|
-
children: /* @__PURE__ */
|
|
1776
|
+
children: /* @__PURE__ */ jsx50("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx50(
|
|
1767
1777
|
"img",
|
|
1768
1778
|
{
|
|
1769
1779
|
src: initials.avatar,
|
|
1770
1780
|
alt: initials.primary,
|
|
1771
1781
|
className: "w-full object-contain"
|
|
1772
1782
|
}
|
|
1773
|
-
) : /* @__PURE__ */
|
|
1783
|
+
) : /* @__PURE__ */ jsx50(
|
|
1774
1784
|
user_default,
|
|
1775
1785
|
{
|
|
1776
1786
|
size: 24,
|
|
@@ -1784,7 +1794,7 @@ var UserAvatar = forwardRef4(
|
|
|
1784
1794
|
UserAvatar.displayName = "UserAvatar";
|
|
1785
1795
|
|
|
1786
1796
|
// src/theme/default/components/ui/user-menu.tsx
|
|
1787
|
-
import { jsx as
|
|
1797
|
+
import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1788
1798
|
var UserMenu = ({ session }) => {
|
|
1789
1799
|
const { config } = useOryFlow10();
|
|
1790
1800
|
const initials = getUserInitials(session);
|
|
@@ -1797,21 +1807,21 @@ var UserMenu = ({ session }) => {
|
|
|
1797
1807
|
void fetchLogoutFlow();
|
|
1798
1808
|
}, [fetchLogoutFlow]);
|
|
1799
1809
|
return /* @__PURE__ */ jsxs28(DropdownMenu, { children: [
|
|
1800
|
-
/* @__PURE__ */
|
|
1810
|
+
/* @__PURE__ */ jsx51(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx51(UserAvatar, { initials }) }),
|
|
1801
1811
|
/* @__PURE__ */ jsxs28(DropdownMenuContent, { children: [
|
|
1802
1812
|
/* @__PURE__ */ jsxs28(DropdownMenuLabel2, { className: "flex gap-3 px-5 py-4.5", children: [
|
|
1803
|
-
/* @__PURE__ */
|
|
1813
|
+
/* @__PURE__ */ jsx51(UserAvatar, { disabled: true, initials }),
|
|
1804
1814
|
/* @__PURE__ */ jsxs28("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
|
|
1805
|
-
/* @__PURE__ */
|
|
1806
|
-
initials.secondary && /* @__PURE__ */
|
|
1815
|
+
/* @__PURE__ */ jsx51("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
|
|
1816
|
+
initials.secondary && /* @__PURE__ */ jsx51("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
|
|
1807
1817
|
] })
|
|
1808
1818
|
] }),
|
|
1809
|
-
/* @__PURE__ */
|
|
1810
|
-
/* @__PURE__ */
|
|
1819
|
+
/* @__PURE__ */ jsx51(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs28("a", { href: "/settings", children: [
|
|
1820
|
+
/* @__PURE__ */ jsx51(settings_default, { size: 16 }),
|
|
1811
1821
|
" User settings"
|
|
1812
1822
|
] }) }),
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1823
|
+
/* @__PURE__ */ jsx51(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs28("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
|
|
1824
|
+
/* @__PURE__ */ jsx51(logout_default, { size: 16 }),
|
|
1815
1825
|
" Logout"
|
|
1816
1826
|
] }) })
|
|
1817
1827
|
] })
|
|
@@ -1820,13 +1830,13 @@ var UserMenu = ({ session }) => {
|
|
|
1820
1830
|
|
|
1821
1831
|
// src/theme/default/components/generic/page-header.tsx
|
|
1822
1832
|
import { useSession } from "@ory/elements-react/client";
|
|
1823
|
-
import { jsx as
|
|
1833
|
+
import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
1824
1834
|
var DefaultPageHeader = (_props) => {
|
|
1825
1835
|
const { Card } = useComponents3();
|
|
1826
1836
|
const { session } = useSession();
|
|
1827
|
-
return /* @__PURE__ */
|
|
1828
|
-
/* @__PURE__ */
|
|
1829
|
-
/* @__PURE__ */
|
|
1837
|
+
return /* @__PURE__ */ jsx52("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__ */ jsx52("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
|
|
1838
|
+
/* @__PURE__ */ jsx52("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ jsx52(Card.Logo, {}) }),
|
|
1839
|
+
/* @__PURE__ */ jsx52(UserMenu, { session })
|
|
1830
1840
|
] }) }) });
|
|
1831
1841
|
};
|
|
1832
1842
|
|
|
@@ -1835,16 +1845,16 @@ import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
|
1835
1845
|
import { useFormContext as useFormContext7 } from "react-hook-form";
|
|
1836
1846
|
|
|
1837
1847
|
// src/theme/default/assets/icons/trash.svg
|
|
1838
|
-
import * as
|
|
1839
|
-
import { jsx as
|
|
1848
|
+
import * as React26 from "react";
|
|
1849
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
1840
1850
|
var SvgTrash = (props) => {
|
|
1841
1851
|
var _a, _b;
|
|
1842
|
-
return /* @__PURE__ */
|
|
1852
|
+
return /* @__PURE__ */ jsx53("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__ */ jsx53("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" }) });
|
|
1843
1853
|
};
|
|
1844
1854
|
var trash_default = SvgTrash;
|
|
1845
1855
|
|
|
1846
1856
|
// src/theme/default/components/settings/settings-oidc.tsx
|
|
1847
|
-
import { jsx as
|
|
1857
|
+
import { jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
1848
1858
|
function DefaultSettingsOidc({
|
|
1849
1859
|
linkButtons,
|
|
1850
1860
|
unlinkButtons
|
|
@@ -1852,9 +1862,9 @@ function DefaultSettingsOidc({
|
|
|
1852
1862
|
const hasLinkButtons = linkButtons.length > 0;
|
|
1853
1863
|
const hasUnlinkButtons = unlinkButtons.length > 0;
|
|
1854
1864
|
return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-8", children: [
|
|
1855
|
-
hasLinkButtons && /* @__PURE__ */
|
|
1865
|
+
hasLinkButtons && /* @__PURE__ */ jsx54("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
|
|
1856
1866
|
const attrs = button.attributes;
|
|
1857
|
-
return /* @__PURE__ */
|
|
1867
|
+
return /* @__PURE__ */ jsx54(
|
|
1858
1868
|
DefaultButtonSocial,
|
|
1859
1869
|
{
|
|
1860
1870
|
showLabel: true,
|
|
@@ -1865,12 +1875,12 @@ function DefaultSettingsOidc({
|
|
|
1865
1875
|
attrs.value
|
|
1866
1876
|
);
|
|
1867
1877
|
}) }),
|
|
1868
|
-
hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */
|
|
1878
|
+
hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx54(DefaultHorizontalDivider, {}) : null,
|
|
1869
1879
|
unlinkButtons.map((button) => {
|
|
1870
1880
|
if (button.attributes.node_type !== "input") {
|
|
1871
1881
|
return null;
|
|
1872
1882
|
}
|
|
1873
|
-
return /* @__PURE__ */
|
|
1883
|
+
return /* @__PURE__ */ jsx54(UnlinkRow, { button }, button.attributes.value);
|
|
1874
1884
|
})
|
|
1875
1885
|
] });
|
|
1876
1886
|
}
|
|
@@ -1896,10 +1906,10 @@ function UnlinkRow({ button }) {
|
|
|
1896
1906
|
}, [isSubmitting]);
|
|
1897
1907
|
return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between", children: [
|
|
1898
1908
|
/* @__PURE__ */ jsxs30("div", { className: "flex items-center gap-6", children: [
|
|
1899
|
-
/* @__PURE__ */
|
|
1900
|
-
/* @__PURE__ */
|
|
1909
|
+
/* @__PURE__ */ jsx54(Logo, { size: 32 }),
|
|
1910
|
+
/* @__PURE__ */ jsx54("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
|
|
1901
1911
|
] }),
|
|
1902
|
-
/* @__PURE__ */
|
|
1912
|
+
/* @__PURE__ */ jsx54(
|
|
1903
1913
|
"button",
|
|
1904
1914
|
{
|
|
1905
1915
|
...attrs,
|
|
@@ -1908,7 +1918,7 @@ function UnlinkRow({ button }) {
|
|
|
1908
1918
|
disabled: isSubmitting,
|
|
1909
1919
|
className: "relative",
|
|
1910
1920
|
title: `Unlink ${provider}`,
|
|
1911
|
-
children: clicked ? /* @__PURE__ */
|
|
1921
|
+
children: clicked ? /* @__PURE__ */ jsx54(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx54(
|
|
1912
1922
|
trash_default,
|
|
1913
1923
|
{
|
|
1914
1924
|
className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
|
|
@@ -1923,7 +1933,7 @@ function UnlinkRow({ button }) {
|
|
|
1923
1933
|
// src/theme/default/components/settings/settings-passkey.tsx
|
|
1924
1934
|
import { useComponents as useComponents4 } from "@ory/elements-react";
|
|
1925
1935
|
import { useFormContext as useFormContext8 } from "react-hook-form";
|
|
1926
|
-
import { jsx as
|
|
1936
|
+
import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
1927
1937
|
function DefaultSettingsPasskey({
|
|
1928
1938
|
triggerButton,
|
|
1929
1939
|
removeButtons
|
|
@@ -1934,7 +1944,7 @@ function DefaultSettingsPasskey({
|
|
|
1934
1944
|
const { Node } = useComponents4();
|
|
1935
1945
|
const hasRemoveButtons = removeButtons.length > 0;
|
|
1936
1946
|
return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
|
|
1937
|
-
/* @__PURE__ */
|
|
1947
|
+
/* @__PURE__ */ jsx55("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ jsx55(
|
|
1938
1948
|
Node.Button,
|
|
1939
1949
|
{
|
|
1940
1950
|
node: triggerButton,
|
|
@@ -1943,8 +1953,8 @@ function DefaultSettingsPasskey({
|
|
|
1943
1953
|
}
|
|
1944
1954
|
) }),
|
|
1945
1955
|
hasRemoveButtons ? /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
|
|
1946
|
-
/* @__PURE__ */
|
|
1947
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ jsx55(DefaultHorizontalDivider, {}),
|
|
1957
|
+
/* @__PURE__ */ jsx55("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
|
|
1948
1958
|
var _a, _b;
|
|
1949
1959
|
const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
|
|
1950
1960
|
const addedAt = "added_at" in context ? context.added_at : null;
|
|
@@ -1956,7 +1966,7 @@ function DefaultSettingsPasskey({
|
|
|
1956
1966
|
className: "flex justify-between gap-6 md:items-center",
|
|
1957
1967
|
children: [
|
|
1958
1968
|
/* @__PURE__ */ jsxs31("div", { className: "flex gap-2 items-center flex-1", children: [
|
|
1959
|
-
/* @__PURE__ */
|
|
1969
|
+
/* @__PURE__ */ jsx55(
|
|
1960
1970
|
passkey_default,
|
|
1961
1971
|
{
|
|
1962
1972
|
size: 32,
|
|
@@ -1965,15 +1975,15 @@ function DefaultSettingsPasskey({
|
|
|
1965
1975
|
),
|
|
1966
1976
|
/* @__PURE__ */ jsxs31("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4", children: [
|
|
1967
1977
|
/* @__PURE__ */ jsxs31("div", { className: "flex-1 flex-col", children: [
|
|
1968
|
-
/* @__PURE__ */
|
|
1969
|
-
/* @__PURE__ */
|
|
1978
|
+
/* @__PURE__ */ jsx55("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
|
|
1979
|
+
/* @__PURE__ */ jsx55("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block", children: keyId })
|
|
1970
1980
|
] }),
|
|
1971
|
-
addedAt && /* @__PURE__ */
|
|
1981
|
+
addedAt && /* @__PURE__ */ jsx55("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
|
|
1972
1982
|
dateStyle: "long"
|
|
1973
1983
|
}).format(new Date(addedAt)) })
|
|
1974
1984
|
] })
|
|
1975
1985
|
] }),
|
|
1976
|
-
/* @__PURE__ */
|
|
1986
|
+
/* @__PURE__ */ jsx55(
|
|
1977
1987
|
"button",
|
|
1978
1988
|
{
|
|
1979
1989
|
...node.attributes,
|
|
@@ -1981,7 +1991,7 @@ function DefaultSettingsPasskey({
|
|
|
1981
1991
|
onClick: node.onClick,
|
|
1982
1992
|
disabled: isSubmitting,
|
|
1983
1993
|
className: "relative",
|
|
1984
|
-
children: isSubmitting ? /* @__PURE__ */
|
|
1994
|
+
children: isSubmitting ? /* @__PURE__ */ jsx55(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx55(
|
|
1985
1995
|
trash_default,
|
|
1986
1996
|
{
|
|
1987
1997
|
className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
|
|
@@ -2000,38 +2010,38 @@ function DefaultSettingsPasskey({
|
|
|
2000
2010
|
}
|
|
2001
2011
|
|
|
2002
2012
|
// src/theme/default/assets/icons/download.svg
|
|
2003
|
-
import * as
|
|
2004
|
-
import { jsx as
|
|
2013
|
+
import * as React27 from "react";
|
|
2014
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
2005
2015
|
var SvgDownload = (props) => {
|
|
2006
2016
|
var _a, _b;
|
|
2007
|
-
return /* @__PURE__ */
|
|
2017
|
+
return /* @__PURE__ */ jsx56("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx56("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
|
|
2008
2018
|
};
|
|
2009
2019
|
var download_default = SvgDownload;
|
|
2010
2020
|
|
|
2011
2021
|
// src/theme/default/assets/icons/eye.svg
|
|
2012
|
-
import * as
|
|
2013
|
-
import { jsx as
|
|
2022
|
+
import * as React28 from "react";
|
|
2023
|
+
import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2014
2024
|
var SvgEye = (props) => {
|
|
2015
2025
|
var _a, _b;
|
|
2016
|
-
return /* @__PURE__ */
|
|
2017
|
-
/* @__PURE__ */
|
|
2018
|
-
/* @__PURE__ */
|
|
2026
|
+
return /* @__PURE__ */ jsx57("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsxs32("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2027
|
+
/* @__PURE__ */ jsx57("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
|
|
2028
|
+
/* @__PURE__ */ jsx57("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
|
|
2019
2029
|
] }) });
|
|
2020
2030
|
};
|
|
2021
2031
|
var eye_default = SvgEye;
|
|
2022
2032
|
|
|
2023
2033
|
// src/theme/default/assets/icons/refresh.svg
|
|
2024
|
-
import * as
|
|
2025
|
-
import { jsx as
|
|
2034
|
+
import * as React29 from "react";
|
|
2035
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
2026
2036
|
var SvgRefresh = (props) => {
|
|
2027
2037
|
var _a, _b;
|
|
2028
|
-
return /* @__PURE__ */
|
|
2038
|
+
return /* @__PURE__ */ jsx58("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx58("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "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" }) });
|
|
2029
2039
|
};
|
|
2030
2040
|
var refresh_default = SvgRefresh;
|
|
2031
2041
|
|
|
2032
2042
|
// src/theme/default/components/settings/settings-recovery-codes.tsx
|
|
2033
2043
|
import { useFormContext as useFormContext9 } from "react-hook-form";
|
|
2034
|
-
import { Fragment as Fragment4, jsx as
|
|
2044
|
+
import { Fragment as Fragment4, jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2035
2045
|
function DefaultSettingsRecoveryCodes({
|
|
2036
2046
|
codes,
|
|
2037
2047
|
regnerateButton,
|
|
@@ -2054,11 +2064,11 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2054
2064
|
};
|
|
2055
2065
|
const hasCodes = codes.length >= 1;
|
|
2056
2066
|
return /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-8", children: [
|
|
2057
|
-
codes.length > 0 && /* @__PURE__ */
|
|
2067
|
+
codes.length > 0 && /* @__PURE__ */ jsx59(DefaultHorizontalDivider, {}),
|
|
2058
2068
|
/* @__PURE__ */ jsxs33("div", { className: "flex gap-4 justify-between", children: [
|
|
2059
|
-
/* @__PURE__ */
|
|
2069
|
+
/* @__PURE__ */ jsx59("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
|
|
2060
2070
|
/* @__PURE__ */ jsxs33("div", { className: "flex gap-2", children: [
|
|
2061
|
-
regnerateButton && codes.length > 0 && /* @__PURE__ */
|
|
2071
|
+
regnerateButton && codes.length > 0 && /* @__PURE__ */ jsx59(
|
|
2062
2072
|
"button",
|
|
2063
2073
|
{
|
|
2064
2074
|
...regnerateButton.attributes,
|
|
@@ -2067,7 +2077,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2067
2077
|
onClick: onRegenerate,
|
|
2068
2078
|
disabled: isSubmitting,
|
|
2069
2079
|
"data-loading": isSubmitting,
|
|
2070
|
-
children: /* @__PURE__ */
|
|
2080
|
+
children: /* @__PURE__ */ jsx59(
|
|
2071
2081
|
refresh_default,
|
|
2072
2082
|
{
|
|
2073
2083
|
size: 24,
|
|
@@ -2076,7 +2086,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2076
2086
|
)
|
|
2077
2087
|
}
|
|
2078
2088
|
),
|
|
2079
|
-
revealButton && /* @__PURE__ */
|
|
2089
|
+
revealButton && /* @__PURE__ */ jsx59(Fragment4, { children: /* @__PURE__ */ jsx59(
|
|
2080
2090
|
"button",
|
|
2081
2091
|
{
|
|
2082
2092
|
...revealButton.attributes,
|
|
@@ -2084,7 +2094,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2084
2094
|
className: "ml-auto",
|
|
2085
2095
|
onClick: onReveal,
|
|
2086
2096
|
title: "Reveal recovery codes",
|
|
2087
|
-
children: /* @__PURE__ */
|
|
2097
|
+
children: /* @__PURE__ */ jsx59(
|
|
2088
2098
|
eye_default,
|
|
2089
2099
|
{
|
|
2090
2100
|
size: 24,
|
|
@@ -2093,7 +2103,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2093
2103
|
)
|
|
2094
2104
|
}
|
|
2095
2105
|
) }),
|
|
2096
|
-
hasCodes && /* @__PURE__ */
|
|
2106
|
+
hasCodes && /* @__PURE__ */ jsx59(
|
|
2097
2107
|
"button",
|
|
2098
2108
|
{
|
|
2099
2109
|
onClick: onDownload,
|
|
@@ -2101,7 +2111,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2101
2111
|
className: "ml-auto",
|
|
2102
2112
|
"data-testid": "ory/screen/settings/group/recovery_code/download",
|
|
2103
2113
|
title: "Download recovery codes",
|
|
2104
|
-
children: /* @__PURE__ */
|
|
2114
|
+
children: /* @__PURE__ */ jsx59(
|
|
2105
2115
|
download_default,
|
|
2106
2116
|
{
|
|
2107
2117
|
size: 24,
|
|
@@ -2112,12 +2122,12 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2112
2122
|
)
|
|
2113
2123
|
] })
|
|
2114
2124
|
] }),
|
|
2115
|
-
hasCodes ? /* @__PURE__ */
|
|
2125
|
+
hasCodes ? /* @__PURE__ */ jsx59("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ jsx59(
|
|
2116
2126
|
"div",
|
|
2117
2127
|
{
|
|
2118
2128
|
className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
|
|
2119
2129
|
"data-testid": "ory/screen/settings/group/recovery_code/codes",
|
|
2120
|
-
children: codes.map((code) => /* @__PURE__ */
|
|
2130
|
+
children: codes.map((code) => /* @__PURE__ */ jsx59("p", { children: code }, code))
|
|
2121
2131
|
}
|
|
2122
2132
|
) }) : null
|
|
2123
2133
|
] });
|
|
@@ -2127,17 +2137,17 @@ function DefaultSettingsRecoveryCodes({
|
|
|
2127
2137
|
import { useComponents as useComponents5 } from "@ory/elements-react";
|
|
2128
2138
|
|
|
2129
2139
|
// src/theme/default/assets/icons/qrcode.svg
|
|
2130
|
-
import * as
|
|
2131
|
-
import { jsx as
|
|
2140
|
+
import * as React30 from "react";
|
|
2141
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
2132
2142
|
var SvgQrcode = (props) => {
|
|
2133
2143
|
var _a, _b;
|
|
2134
|
-
return /* @__PURE__ */
|
|
2144
|
+
return /* @__PURE__ */ jsx60("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__ */ jsx60("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" }) });
|
|
2135
2145
|
};
|
|
2136
2146
|
var qrcode_default = SvgQrcode;
|
|
2137
2147
|
|
|
2138
2148
|
// src/theme/default/components/settings/settings-totp.tsx
|
|
2139
2149
|
import { useFormContext as useFormContext10 } from "react-hook-form";
|
|
2140
|
-
import { jsx as
|
|
2150
|
+
import { jsx as jsx61, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2141
2151
|
function DefaultSettingsTotp({
|
|
2142
2152
|
totpImage,
|
|
2143
2153
|
totpInput,
|
|
@@ -2158,18 +2168,18 @@ function DefaultSettingsTotp({
|
|
|
2158
2168
|
...buttonAttrs
|
|
2159
2169
|
} = totpUnlink.attributes;
|
|
2160
2170
|
return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
|
|
2161
|
-
/* @__PURE__ */
|
|
2171
|
+
/* @__PURE__ */ jsx61("div", { className: "col-span-full", children: /* @__PURE__ */ jsx61(Card.Divider, {}) }),
|
|
2162
2172
|
/* @__PURE__ */ jsxs34("div", { className: "col-span-full flex items-center gap-6", children: [
|
|
2163
|
-
/* @__PURE__ */
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
/* @__PURE__ */
|
|
2173
|
+
/* @__PURE__ */ jsx61("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ jsx61(qrcode_default, { size: 32 }) }),
|
|
2174
|
+
/* @__PURE__ */ jsx61("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx61("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
|
|
2175
|
+
/* @__PURE__ */ jsx61(
|
|
2166
2176
|
"button",
|
|
2167
2177
|
{
|
|
2168
2178
|
type: type === "button" ? "button" : "submit",
|
|
2169
2179
|
...buttonAttrs,
|
|
2170
2180
|
onClick: onUnlink,
|
|
2171
2181
|
disabled: isSubmitting,
|
|
2172
|
-
children: isSubmitting ? /* @__PURE__ */
|
|
2182
|
+
children: isSubmitting ? /* @__PURE__ */ jsx61(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx61(
|
|
2173
2183
|
trash_default,
|
|
2174
2184
|
{
|
|
2175
2185
|
className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
|
|
@@ -2183,8 +2193,8 @@ function DefaultSettingsTotp({
|
|
|
2183
2193
|
}
|
|
2184
2194
|
if (totpImage && totpSecret && totpInput) {
|
|
2185
2195
|
return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
|
|
2186
|
-
/* @__PURE__ */
|
|
2187
|
-
/* @__PURE__ */
|
|
2196
|
+
/* @__PURE__ */ jsx61("div", { className: "col-span-full", children: /* @__PURE__ */ jsx61(DefaultHorizontalDivider, {}) }),
|
|
2197
|
+
/* @__PURE__ */ jsx61("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx61("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ jsx61("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx61(
|
|
2188
2198
|
Node.Image,
|
|
2189
2199
|
{
|
|
2190
2200
|
node: totpImage,
|
|
@@ -2194,12 +2204,12 @@ function DefaultSettingsTotp({
|
|
|
2194
2204
|
}
|
|
2195
2205
|
) }) }) }),
|
|
2196
2206
|
/* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
|
|
2197
|
-
/* @__PURE__ */
|
|
2207
|
+
/* @__PURE__ */ jsx61(
|
|
2198
2208
|
Node.Label,
|
|
2199
2209
|
{
|
|
2200
2210
|
node: totpSecret,
|
|
2201
2211
|
attributes: totpSecret.attributes,
|
|
2202
|
-
children: /* @__PURE__ */
|
|
2212
|
+
children: /* @__PURE__ */ jsx61(
|
|
2203
2213
|
Node.Input,
|
|
2204
2214
|
{
|
|
2205
2215
|
node: totpSecret,
|
|
@@ -2214,12 +2224,12 @@ function DefaultSettingsTotp({
|
|
|
2214
2224
|
)
|
|
2215
2225
|
}
|
|
2216
2226
|
),
|
|
2217
|
-
/* @__PURE__ */
|
|
2227
|
+
/* @__PURE__ */ jsx61(
|
|
2218
2228
|
Node.Label,
|
|
2219
2229
|
{
|
|
2220
2230
|
attributes: totpInput.attributes,
|
|
2221
2231
|
node: totpInput,
|
|
2222
|
-
children: /* @__PURE__ */
|
|
2232
|
+
children: /* @__PURE__ */ jsx61(
|
|
2223
2233
|
Node.CodeInput,
|
|
2224
2234
|
{
|
|
2225
2235
|
node: totpInput,
|
|
@@ -2237,17 +2247,17 @@ function DefaultSettingsTotp({
|
|
|
2237
2247
|
import { useComponents as useComponents6 } from "@ory/elements-react";
|
|
2238
2248
|
|
|
2239
2249
|
// src/theme/default/assets/icons/key.svg
|
|
2240
|
-
import * as
|
|
2241
|
-
import { jsx as
|
|
2250
|
+
import * as React31 from "react";
|
|
2251
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
2242
2252
|
var SvgKey = (props) => {
|
|
2243
2253
|
var _a, _b;
|
|
2244
|
-
return /* @__PURE__ */
|
|
2254
|
+
return /* @__PURE__ */ jsx62("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__ */ jsx62("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" }) });
|
|
2245
2255
|
};
|
|
2246
2256
|
var key_default = SvgKey;
|
|
2247
2257
|
|
|
2248
2258
|
// src/theme/default/components/settings/settings-webauthn.tsx
|
|
2249
2259
|
import { useFormContext as useFormContext11 } from "react-hook-form";
|
|
2250
|
-
import { jsx as
|
|
2260
|
+
import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2251
2261
|
function DefaultSettingsWebauthn({
|
|
2252
2262
|
nameInput,
|
|
2253
2263
|
triggerButton,
|
|
@@ -2260,12 +2270,12 @@ function DefaultSettingsWebauthn({
|
|
|
2260
2270
|
const hasRemoveButtons = removeButtons.length > 0;
|
|
2261
2271
|
return /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
|
|
2262
2272
|
/* @__PURE__ */ jsxs35("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
|
|
2263
|
-
/* @__PURE__ */
|
|
2273
|
+
/* @__PURE__ */ jsx63("div", { className: "flex-1", children: /* @__PURE__ */ jsx63(
|
|
2264
2274
|
Node.Label,
|
|
2265
2275
|
{
|
|
2266
2276
|
node: nameInput,
|
|
2267
2277
|
attributes: nameInput.attributes,
|
|
2268
|
-
children: /* @__PURE__ */
|
|
2278
|
+
children: /* @__PURE__ */ jsx63(
|
|
2269
2279
|
Node.Input,
|
|
2270
2280
|
{
|
|
2271
2281
|
node: nameInput,
|
|
@@ -2274,7 +2284,7 @@ function DefaultSettingsWebauthn({
|
|
|
2274
2284
|
)
|
|
2275
2285
|
}
|
|
2276
2286
|
) }),
|
|
2277
|
-
triggerButton ? /* @__PURE__ */
|
|
2287
|
+
triggerButton ? /* @__PURE__ */ jsx63(
|
|
2278
2288
|
Node.Button,
|
|
2279
2289
|
{
|
|
2280
2290
|
node: triggerButton,
|
|
@@ -2284,8 +2294,8 @@ function DefaultSettingsWebauthn({
|
|
|
2284
2294
|
) : null
|
|
2285
2295
|
] }),
|
|
2286
2296
|
hasRemoveButtons ? /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
|
|
2287
|
-
/* @__PURE__ */
|
|
2288
|
-
/* @__PURE__ */
|
|
2297
|
+
/* @__PURE__ */ jsx63(Card.Divider, {}),
|
|
2298
|
+
/* @__PURE__ */ jsx63("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
|
|
2289
2299
|
var _a, _b;
|
|
2290
2300
|
const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
|
|
2291
2301
|
const addedAt = "added_at" in context ? context.added_at : null;
|
|
@@ -2297,7 +2307,7 @@ function DefaultSettingsWebauthn({
|
|
|
2297
2307
|
className: "flex justify-between gap-6 md:items-center",
|
|
2298
2308
|
children: [
|
|
2299
2309
|
/* @__PURE__ */ jsxs35("div", { className: "flex gap-2 items-center flex-1", children: [
|
|
2300
|
-
/* @__PURE__ */
|
|
2310
|
+
/* @__PURE__ */ jsx63(
|
|
2301
2311
|
key_default,
|
|
2302
2312
|
{
|
|
2303
2313
|
size: 32,
|
|
@@ -2306,15 +2316,15 @@ function DefaultSettingsWebauthn({
|
|
|
2306
2316
|
),
|
|
2307
2317
|
/* @__PURE__ */ jsxs35("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4", children: [
|
|
2308
2318
|
/* @__PURE__ */ jsxs35("div", { className: "flex-1 flex-col", children: [
|
|
2309
|
-
/* @__PURE__ */
|
|
2310
|
-
/* @__PURE__ */
|
|
2319
|
+
/* @__PURE__ */ jsx63("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
|
|
2320
|
+
/* @__PURE__ */ jsx63("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block", children: keyId })
|
|
2311
2321
|
] }),
|
|
2312
|
-
addedAt && /* @__PURE__ */
|
|
2322
|
+
addedAt && /* @__PURE__ */ jsx63("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
|
|
2313
2323
|
dateStyle: "long"
|
|
2314
2324
|
}).format(new Date(addedAt)) })
|
|
2315
2325
|
] })
|
|
2316
2326
|
] }),
|
|
2317
|
-
/* @__PURE__ */
|
|
2327
|
+
/* @__PURE__ */ jsx63(
|
|
2318
2328
|
"button",
|
|
2319
2329
|
{
|
|
2320
2330
|
...node.attributes,
|
|
@@ -2322,7 +2332,7 @@ function DefaultSettingsWebauthn({
|
|
|
2322
2332
|
onClick: node.onClick,
|
|
2323
2333
|
disabled: isSubmitting,
|
|
2324
2334
|
className: "relative",
|
|
2325
|
-
children: isSubmitting ? /* @__PURE__ */
|
|
2335
|
+
children: isSubmitting ? /* @__PURE__ */ jsx63(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx63(
|
|
2326
2336
|
trash_default,
|
|
2327
2337
|
{
|
|
2328
2338
|
className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
|
|
@@ -2341,11 +2351,11 @@ function DefaultSettingsWebauthn({
|
|
|
2341
2351
|
}
|
|
2342
2352
|
|
|
2343
2353
|
// src/theme/default/components/card/auth-method-list-container.tsx
|
|
2344
|
-
import { jsx as
|
|
2354
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
2345
2355
|
function DefaultAuthMethodListContainer({
|
|
2346
2356
|
children
|
|
2347
2357
|
}) {
|
|
2348
|
-
return /* @__PURE__ */
|
|
2358
|
+
return /* @__PURE__ */ jsx64("div", { className: "grid grid-cols-1 gap-2", children });
|
|
2349
2359
|
}
|
|
2350
2360
|
|
|
2351
2361
|
// src/theme/default/components/default-components.tsx
|
|
@@ -2397,12 +2407,12 @@ function getOryComponents(overrides) {
|
|
|
2397
2407
|
}
|
|
2398
2408
|
|
|
2399
2409
|
// src/theme/default/flows/error.tsx
|
|
2400
|
-
import { jsx as
|
|
2410
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
2401
2411
|
function Error({
|
|
2402
2412
|
error,
|
|
2403
2413
|
children
|
|
2404
2414
|
}) {
|
|
2405
|
-
return /* @__PURE__ */
|
|
2415
|
+
return /* @__PURE__ */ jsx65("div", { "data-testid": "ory/screen/error/raw", children: JSON.stringify(error) || children });
|
|
2406
2416
|
}
|
|
2407
2417
|
|
|
2408
2418
|
// src/theme/default/flows/login.tsx
|
|
@@ -2411,7 +2421,7 @@ import {
|
|
|
2411
2421
|
OryProvider,
|
|
2412
2422
|
OryTwoStepCard
|
|
2413
2423
|
} from "@ory/elements-react";
|
|
2414
|
-
import { jsx as
|
|
2424
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
2415
2425
|
function Login({
|
|
2416
2426
|
flow,
|
|
2417
2427
|
config,
|
|
@@ -2419,14 +2429,14 @@ function Login({
|
|
|
2419
2429
|
components: flowOverrideComponents
|
|
2420
2430
|
}) {
|
|
2421
2431
|
const components = getOryComponents(flowOverrideComponents);
|
|
2422
|
-
return /* @__PURE__ */
|
|
2432
|
+
return /* @__PURE__ */ jsx66(
|
|
2423
2433
|
OryProvider,
|
|
2424
2434
|
{
|
|
2425
2435
|
config,
|
|
2426
2436
|
flow,
|
|
2427
2437
|
flowType: FlowType8.Login,
|
|
2428
2438
|
components,
|
|
2429
|
-
children: children != null ? children : /* @__PURE__ */
|
|
2439
|
+
children: children != null ? children : /* @__PURE__ */ jsx66(OryTwoStepCard, {})
|
|
2430
2440
|
}
|
|
2431
2441
|
);
|
|
2432
2442
|
}
|
|
@@ -2437,7 +2447,7 @@ import {
|
|
|
2437
2447
|
OryProvider as OryProvider2,
|
|
2438
2448
|
OryTwoStepCard as OryTwoStepCard2
|
|
2439
2449
|
} from "@ory/elements-react";
|
|
2440
|
-
import { jsx as
|
|
2450
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
2441
2451
|
function Recovery({
|
|
2442
2452
|
flow,
|
|
2443
2453
|
config,
|
|
@@ -2445,14 +2455,14 @@ function Recovery({
|
|
|
2445
2455
|
components: flowOverrideComponents
|
|
2446
2456
|
}) {
|
|
2447
2457
|
const components = getOryComponents(flowOverrideComponents);
|
|
2448
|
-
return /* @__PURE__ */
|
|
2458
|
+
return /* @__PURE__ */ jsx67(
|
|
2449
2459
|
OryProvider2,
|
|
2450
2460
|
{
|
|
2451
2461
|
config,
|
|
2452
2462
|
flow,
|
|
2453
2463
|
flowType: FlowType9.Recovery,
|
|
2454
2464
|
components,
|
|
2455
|
-
children: children != null ? children : /* @__PURE__ */
|
|
2465
|
+
children: children != null ? children : /* @__PURE__ */ jsx67(OryTwoStepCard2, {})
|
|
2456
2466
|
}
|
|
2457
2467
|
);
|
|
2458
2468
|
}
|
|
@@ -2463,7 +2473,7 @@ import {
|
|
|
2463
2473
|
OryProvider as OryProvider3,
|
|
2464
2474
|
OryTwoStepCard as OryTwoStepCard3
|
|
2465
2475
|
} from "@ory/elements-react";
|
|
2466
|
-
import { jsx as
|
|
2476
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
2467
2477
|
function Registration({
|
|
2468
2478
|
flow,
|
|
2469
2479
|
children,
|
|
@@ -2471,14 +2481,14 @@ function Registration({
|
|
|
2471
2481
|
config
|
|
2472
2482
|
}) {
|
|
2473
2483
|
const components = getOryComponents(flowOverrideComponents);
|
|
2474
|
-
return /* @__PURE__ */
|
|
2484
|
+
return /* @__PURE__ */ jsx68(
|
|
2475
2485
|
OryProvider3,
|
|
2476
2486
|
{
|
|
2477
2487
|
config,
|
|
2478
2488
|
flow,
|
|
2479
2489
|
flowType: FlowType10.Registration,
|
|
2480
2490
|
components,
|
|
2481
|
-
children: children != null ? children : /* @__PURE__ */
|
|
2491
|
+
children: children != null ? children : /* @__PURE__ */ jsx68(OryTwoStepCard3, {})
|
|
2482
2492
|
}
|
|
2483
2493
|
);
|
|
2484
2494
|
}
|
|
@@ -2490,7 +2500,7 @@ import {
|
|
|
2490
2500
|
OryProvider as OryProvider4,
|
|
2491
2501
|
OrySettingsCard
|
|
2492
2502
|
} from "@ory/elements-react";
|
|
2493
|
-
import { Fragment as Fragment5, jsx as
|
|
2503
|
+
import { Fragment as Fragment5, jsx as jsx69, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2494
2504
|
function Settings({
|
|
2495
2505
|
flow,
|
|
2496
2506
|
config,
|
|
@@ -2498,7 +2508,7 @@ function Settings({
|
|
|
2498
2508
|
components: flowOverrideComponents
|
|
2499
2509
|
}) {
|
|
2500
2510
|
const components = getOryComponents(flowOverrideComponents);
|
|
2501
|
-
return /* @__PURE__ */
|
|
2511
|
+
return /* @__PURE__ */ jsx69(
|
|
2502
2512
|
OryProvider4,
|
|
2503
2513
|
{
|
|
2504
2514
|
config,
|
|
@@ -2506,8 +2516,8 @@ function Settings({
|
|
|
2506
2516
|
flowType: FlowType11.Settings,
|
|
2507
2517
|
components,
|
|
2508
2518
|
children: children != null ? children : /* @__PURE__ */ jsxs36(Fragment5, { children: [
|
|
2509
|
-
/* @__PURE__ */
|
|
2510
|
-
/* @__PURE__ */
|
|
2519
|
+
/* @__PURE__ */ jsx69(HeadlessPageHeader, {}),
|
|
2520
|
+
/* @__PURE__ */ jsx69(OrySettingsCard, {})
|
|
2511
2521
|
] })
|
|
2512
2522
|
}
|
|
2513
2523
|
);
|
|
@@ -2519,7 +2529,7 @@ import {
|
|
|
2519
2529
|
OryProvider as OryProvider5,
|
|
2520
2530
|
OryTwoStepCard as OryTwoStepCard4
|
|
2521
2531
|
} from "@ory/elements-react";
|
|
2522
|
-
import { jsx as
|
|
2532
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
2523
2533
|
function Verification({
|
|
2524
2534
|
flow,
|
|
2525
2535
|
config,
|
|
@@ -2527,14 +2537,14 @@ function Verification({
|
|
|
2527
2537
|
components: flowOverrideComponents
|
|
2528
2538
|
}) {
|
|
2529
2539
|
const components = getOryComponents(flowOverrideComponents);
|
|
2530
|
-
return /* @__PURE__ */
|
|
2540
|
+
return /* @__PURE__ */ jsx70(
|
|
2531
2541
|
OryProvider5,
|
|
2532
2542
|
{
|
|
2533
2543
|
config,
|
|
2534
2544
|
flow,
|
|
2535
2545
|
flowType: FlowType12.Verification,
|
|
2536
2546
|
components,
|
|
2537
|
-
children: children != null ? children : /* @__PURE__ */
|
|
2547
|
+
children: children != null ? children : /* @__PURE__ */ jsx70(OryTwoStepCard4, {})
|
|
2538
2548
|
}
|
|
2539
2549
|
);
|
|
2540
2550
|
}
|