@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
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{R as d,e as p,g as l,f as u}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const m="c713a293-47c4-4605-8605-40127751083b",c="browser",y="2024-10-29T10:45:42.152426Z",g="2024-10-29T09:45:42.152426Z",b="https://serene-archimedes-edlkt7nkyd.projects.oryapis:8080/self-service/registration/browser",f={action:"https://serene-archimedes-edlkt7nkyd.projects.oryapis:8080/self-service/registration?flow=c713a293-47c4-4605-8605-40127751083b",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"b4t2jzkWsZ67gMxwZ1WDdbblCPkF8Lkryka4hNK8Dpz8RDvpmn1Hy0ZYC/n6NoKUc0InKUu/aZ9pjtQ78QAPbQ==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"password",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property email is missing.",type:"error",context:{property:"email"}}],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property password is missing.",type:"error",context:{property:"password"}}],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"password",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"password",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},w=null,_="choose_method",h={id:m,type:c,expires_at:y,issued_at:g,request_url:b,ui:f,organization_id:w,state:_},x="c713a293-47c4-4605-8605-40127751083b",k="browser",N="2024-10-29T10:45:42.152426303Z",v="2024-10-29T09:45:42.152426303Z",P="https://serene-archimedes-edlkt7nkyd.projects.oryapis:8080/self-service/registration/browser",q={action:"https://serene-archimedes-edlkt7nkyd.projects.oryapis:8080/self-service/registration?flow=c713a293-47c4-4605-8605-40127751083b",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"y6s8GWDem5uw1EE6kJW14kj+MiQdDtIriC3ALVRTah5YZHF/w7Vtzk0MhrMN9rQDjVkd9FNBAp8r5aySd+9r7w==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"password",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"password",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"password",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},S=null,F="choose_method",j={id:x,type:k,expires_at:N,issued_at:v,request_url:P,ui:q,organization_id:S,state:F},R={title:"Ory Elements/One Step Registration/Methods/Password",component:d,parameters:{layout:"centered"}},e={args:{flow:l(j),config:p}},t={args:{flow:u(h),config:p}};var s,a,r;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
flow: RegistrationFlowFromJSON(require("$snapshots/registration/one-step/password/initial-form.json")),
|
|
4
|
-
config
|
|
5
|
-
}
|
|
6
|
-
}`,...(r=(a=e.parameters)==null?void 0:a.docs)==null?void 0:r.source}}};var o,i,n;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{
|
|
7
|
-
args: {
|
|
8
|
-
flow: LoginFlowFromJSON(require("$snapshots/registration/one-step/password/missing-fields.json")),
|
|
9
|
-
config
|
|
10
|
-
}
|
|
11
|
-
}`,...(n=(i=t.parameters)==null?void 0:i.docs)==null?void 0:n.source}}};const Z=["ShowForm","ValidationError"];export{e as ShowForm,t as ValidationError,Z as __namedExportsOrder,R as default};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{L as b,e as a,f as o}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const y="78253dca-fd68-4e9f-9a39-3ebc5bbf2fda",f="browser",g="2024-10-29T10:45:42.780134Z",w="2024-10-29T09:45:42.780134Z",x="https://keen-bartik-cvzpttoe79.projects.oryapis:8080/self-service/registration/browser",_={action:"https://keen-bartik-cvzpttoe79.projects.oryapis:8080/self-service/registration?flow=78253dca-fd68-4e9f-9a39-3ebc5bbf2fda",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"qZWOK4pg46gRau/4n2wUB8cxFZIHelRpgAeUToi4FY4sWsjM8XwjET4JErDK2XEVTw7/IWZY/6okY7ht7VtMXA==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"password",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property email is missing.",type:"error",context:{property:"email"}}],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"password",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"password",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},h=null,v="choose_method",q={id:y,type:f,expires_at:g,issued_at:w,request_url:x,ui:_,organization_id:h,state:v},k="78253dca-fd68-4e9f-9a39-3ebc5bbf2fda",P="browser",F="2024-10-29T10:45:42.780134Z",$="2024-10-29T09:45:42.780134Z",N="https://keen-bartik-cvzpttoe79.projects.oryapis:8080/self-service/registration/browser",z={action:"https://keen-bartik-cvzpttoe79.projects.oryapis:8080/self-service/registration?flow=78253dca-fd68-4e9f-9a39-3ebc5bbf2fda",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"/6H3gkLHBCEsjqgFWAxXWCq5aV1sE5gy7HjLWUZMbH16brFlOdvEmAPtVU0NuTJKooaD7g0xM/FIHOd6I681rw==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"password",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property email is missing.",type:"error",context:{property:"email"}}],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property password is missing.",type:"error",context:{property:"password"}}],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"password",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"password",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},S=null,j="choose_method",T={id:k,type:P,expires_at:F,issued_at:$,request_url:N,ui:z,organization_id:S,state:j},E="78253dca-fd68-4e9f-9a39-3ebc5bbf2fda",M="browser",L="2024-10-29T10:45:42.780134678Z",O="2024-10-29T09:45:42.780134678Z",Z="https://keen-bartik-cvzpttoe79.projects.oryapis:8080/self-service/registration/browser",A={action:"https://keen-bartik-cvzpttoe79.projects.oryapis:8080/self-service/registration?flow=78253dca-fd68-4e9f-9a39-3ebc5bbf2fda",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"jqF9x5lfM3JLsNcb5HWSRRm8xBLk9EQ/R6ozZJTLYhwLbjsg4kPzy2TTKlOxwPdXkYMuoYXW7/zjzh9H8Sg7zg==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"password",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"password",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"password",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},H=null,J="choose_method",R={id:E,type:M,expires_at:L,issued_at:O,request_url:Z,ui:A,organization_id:H,state:J},Y={title:"Ory Elements/First Factor Login/Methods/Password",component:b,parameters:{layout:"centered"}},e={args:{flow:o(R),config:a}},t={args:{flow:o(T),config:a}},s={args:{flow:o(q),config:a}};var i,r,n;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
flow: LoginFlowFromJSON(require("$snapshots/login/1fa/password/initial-form.json")),
|
|
4
|
-
config
|
|
5
|
-
}
|
|
6
|
-
}`,...(n=(r=e.parameters)==null?void 0:r.docs)==null?void 0:n.source}}};var p,d,l;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`{
|
|
7
|
-
args: {
|
|
8
|
-
flow: LoginFlowFromJSON(require("$snapshots/login/1fa/password/missing-email.json")),
|
|
9
|
-
config
|
|
10
|
-
}
|
|
11
|
-
}`,...(l=(d=t.parameters)==null?void 0:d.docs)==null?void 0:l.source}}};var u,m,c;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`{
|
|
12
|
-
args: {
|
|
13
|
-
flow: LoginFlowFromJSON(require("$snapshots/login/1fa/password/wrong-credentials.json")),
|
|
14
|
-
config
|
|
15
|
-
}
|
|
16
|
-
}`,...(c=(m=s.parameters)==null?void 0:m.docs)==null?void 0:c.source}}};const C=["ShowForm","ValidationMissingFields","ValidationIncorrectCredentials"];export{e as ShowForm,s as ValidationIncorrectCredentials,t as ValidationMissingFields,C as __namedExportsOrder,Y as default};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{R as w,e as i,g as _,f as o}from"./settings-Bx4osEmB.js";import"./jsx-runtime-QvZ8i92b.js";import"./index-uubelm5h.js";import"./index-CfOt2XX2.js";const h="2223b632-5224-45f0-a268-26d8782092eb",x="browser",v="2024-10-29T10:45:45.283503Z",S="2024-10-29T09:45:45.283503Z",$="https://pedantic-spence-hvwjb2by59.projects.oryapis:8080/self-service/registration/browser",j={action:"https://pedantic-spence-hvwjb2by59.projects.oryapis:8080/self-service/registration?flow=2223b632-5224-45f0-a268-26d8782092eb",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"traits.email",type:"hidden",value:"dev+orycye2eda2f162daf6142dd0.1iw6f08ipeh0.alsa81zs8lj@ory.dev",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"mjdylNQrcSHcXpJqQccdgZNMAuFyzA6Cr4hBuzix5GspzzKscGM9dX0zyjrfa608cXBHz2QOHpFqTmpVM5cI4Q==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[{id:4000032,text:"The password must be at least 8 characters long, but got 4.",type:"error",context:{actual_length:4,min_length:8}}],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}},{type:"input",group:"profile",attributes:{name:"screen",type:"submit",value:"previous",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040008,text:"Back",type:"info"}}}]},q=null,P="choose_method",F={id:h,type:x,expires_at:v,issued_at:S,request_url:$,ui:j,organization_id:q,state:P},z="2223b632-5224-45f0-a268-26d8782092eb",N="browser",T="2024-10-29T10:45:45.283503Z",O="2024-10-29T09:45:45.283503Z",E="https://pedantic-spence-hvwjb2by59.projects.oryapis:8080/self-service/registration/browser",M={action:"https://pedantic-spence-hvwjb2by59.projects.oryapis:8080/self-service/registration?flow=2223b632-5224-45f0-a268-26d8782092eb",method:"POST",nodes:[{type:"input",group:"password",attributes:{name:"password",type:"password",required:!0,autocomplete:"new-password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070001,text:"Password",type:"info"}}},{type:"input",group:"password",attributes:{name:"method",type:"submit",value:"password",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}},{type:"input",group:"profile",attributes:{name:"screen",type:"submit",value:"previous",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040008,text:"Back",type:"info"}}},{type:"input",group:"default",attributes:{name:"traits.email",type:"hidden",value:"dev+orycye2eda2f162daf6142dd0.1iw6f08ipeh0.alsa81zs8lj@ory.dev",disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"KOik58l074egcfYz3JWbsWJmtpmbUoTX+Z8+4rjF5MubEOTfbTyj0wEcrmNCOSsMgFrzt42QlMQ8WRUMs+MIQQ==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}}],messages:[{id:1040009,text:"Please choose a credential to authenticate yourself with.",type:"info"}]},J=null,R={},Z="choose_method",k={id:z,type:N,expires_at:T,issued_at:O,request_url:E,ui:M,organization_id:J,transient_payload:R,state:Z},Q="2223b632-5224-45f0-a268-26d8782092eb",A="browser",B="2024-10-29T10:45:45.283503Z",I="2024-10-29T09:45:45.283503Z",L="https://pedantic-spence-hvwjb2by59.projects.oryapis:8080/self-service/registration/browser",V={action:"https://pedantic-spence-hvwjb2by59.projects.oryapis:8080/self-service/registration?flow=2223b632-5224-45f0-a268-26d8782092eb",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[{id:4000002,text:"Property email is missing.",type:"error",context:{property:"email"}}],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"default",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"default",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"default",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"z/kMSPbeDK8RXBjLgKt0EJy5uJpHg0Soa5WkvD2xrYF8AUxwUpZA+7AxQJseB8StfoX9tFFBVLuuU49SNpdBCw==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"profile",attributes:{name:"method",type:"submit",value:"profile",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},D=null,U="choose_method",X={id:Q,type:A,expires_at:B,issued_at:I,request_url:L,ui:V,organization_id:D,state:U},H="2223b632-5224-45f0-a268-26d8782092eb",C="browser",K="2024-10-29T10:45:45.283503179Z",W="2024-10-29T09:45:45.283503179Z",G="https://pedantic-spence-hvwjb2by59.projects.oryapis:8080/self-service/registration/browser",Y={action:"https://pedantic-spence-hvwjb2by59.projects.oryapis:8080/self-service/registration?flow=2223b632-5224-45f0-a268-26d8782092eb",method:"POST",nodes:[{type:"input",group:"default",attributes:{name:"traits.email",type:"email",required:!0,autocomplete:"email",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"E-Mail",type:"info",context:{title:"E-Mail"}}}},{type:"input",group:"default",attributes:{name:"traits.tos",type:"checkbox",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Accept the terms of service",type:"info",context:{title:"Accept the terms of service"}}}},{type:"input",group:"default",attributes:{name:"traits.phone",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Phone Number",type:"info",context:{title:"Phone Number"}}}},{type:"input",group:"default",attributes:{name:"traits.nested.name",type:"text",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1070002,text:"Name",type:"info",context:{title:"Name"}}}},{type:"input",group:"default",attributes:{name:"csrf_token",type:"hidden",value:"Ixz8JqIffgDP8R2rwTPLSt6yx0bZ/DDgeYS3UpNa5IaQ5LweBlcyVG6cRftfn3v3PI6CaM8+IPO8Qpy8mHwIDA==",required:!0,disabled:!1,node_type:"input"},messages:[],meta:{}},{type:"input",group:"profile",attributes:{name:"method",type:"submit",value:"profile",disabled:!1,node_type:"input"},messages:[],meta:{label:{id:1040001,text:"Sign up",type:"info"}}}]},ee=null,te="choose_method",se={id:H,type:C,expires_at:K,issued_at:W,request_url:G,ui:Y,organization_id:ee,state:te},ne={title:"Ory Elements/Two Step Registration/Methods/Password",component:w,parameters:{layout:"centered"}},e={args:{flow:_(se),config:i}},t={args:{flow:o(X),config:i}},s={args:{flow:o(k),config:i}},a={args:{flow:o(F),config:i}};var r,n,p;e.parameters={...e.parameters,docs:{...(r=e.parameters)==null?void 0:r.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
flow: RegistrationFlowFromJSON(require("$snapshots/registration/two-step/password/initial-form.json")),
|
|
4
|
-
config
|
|
5
|
-
}
|
|
6
|
-
}`,...(p=(n=e.parameters)==null?void 0:n.docs)==null?void 0:p.source}}};var d,u,l;t.parameters={...t.parameters,docs:{...(d=t.parameters)==null?void 0:d.docs,source:{originalSource:`{
|
|
7
|
-
args: {
|
|
8
|
-
flow: LoginFlowFromJSON(require("$snapshots/registration/two-step/password/missing-fields.json")),
|
|
9
|
-
config
|
|
10
|
-
}
|
|
11
|
-
}`,...(l=(u=t.parameters)==null?void 0:u.docs)==null?void 0:l.source}}};var c,m,y;s.parameters={...s.parameters,docs:{...(c=s.parameters)==null?void 0:c.docs,source:{originalSource:`{
|
|
12
|
-
args: {
|
|
13
|
-
flow: LoginFlowFromJSON(require("$snapshots/registration/two-step/password/enter-password.json")),
|
|
14
|
-
config
|
|
15
|
-
}
|
|
16
|
-
}`,...(y=(m=s.parameters)==null?void 0:m.docs)==null?void 0:y.source}}};var b,f,g;a.parameters={...a.parameters,docs:{...(b=a.parameters)==null?void 0:b.docs,source:{originalSource:`{
|
|
17
|
-
args: {
|
|
18
|
-
flow: LoginFlowFromJSON(require("$snapshots/registration/two-step/password/password-validation-error.json")),
|
|
19
|
-
config
|
|
20
|
-
}
|
|
21
|
-
}`,...(g=(f=a.parameters)==null?void 0:f.docs)==null?void 0:g.source}}};const pe=["ShowForm","FirstStepValidationError","EnterPassword","SecondStepValidationError"];export{s as EnterPassword,t as FirstStepValidationError,a as SecondStepValidationError,e as ShowForm,pe as __namedExportsOrder,ne as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var j="Invariant failed";function S(e,t){if(!e)throw new Error(j)}const{useEffect:T}=__STORYBOOK_MODULE_PREVIEW_API__,{global:d}=__STORYBOOK_MODULE_GLOBAL__;var K="measureEnabled";function Y(){let e=d.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function G(){let e=d.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");S(t!=null);let{width:o,height:l}=Y();return A(e,t,{width:o,height:l}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",d.document.body.appendChild(e),{canvas:e,context:t,width:o,height:l}}function A(e,t,{width:o,height:l}){e.style.width=`${o}px`,e.style.height=`${l}px`;let i=d.window.devicePixelRatio;e.width=Math.floor(o*i),e.height=Math.floor(l*i),t.scale(i,i)}var h={};function U(){h.canvas||(h=G())}function H(){h.context&&h.context.clearRect(0,0,h.width??0,h.height??0)}function V(e){H(),e(h.context)}function Z(){S(h.canvas),S(h.context),A(h.canvas,h.context,{width:0,height:0});let{width:e,height:t}=Y();A(h.canvas,h.context,{width:e,height:t}),h.width=e,h.height=t}function J(){var e;h.canvas&&(H(),(e=h.canvas.parentNode)==null||e.removeChild(h.canvas),h={})}var w={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},c=6;function W(e,{x:t,y:o,w:l,h:i,r:n}){t=t-l/2,o=o-i/2,l<2*n&&(n=l/2),i<2*n&&(n=i/2),e.beginPath(),e.moveTo(t+n,o),e.arcTo(t+l,o,t+l,o+i,n),e.arcTo(t+l,o+i,t,o+i,n),e.arcTo(t,o+i,t,o,n),e.arcTo(t,o,t+l,o,n),e.closePath()}function Q(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom,s=r+o.left+t.left,u=n+o.top+t.top;return e==="top"?s+=f/2:e==="right"?(s+=f,u+=a/2):e==="bottom"?(s+=f/2,u+=a):e==="left"?u+=a/2:e==="center"&&(s+=f/2,u+=a/2),{x:s,y:u}}function x(e,t,{margin:o,border:l,padding:i},n,r){let f=m=>0,a=0,s=0,u=r?1:.5,g=r?n*2:0;return e==="padding"?f=m=>i[m]*u+g:e==="border"?f=m=>i[m]+l[m]*u+g:e==="margin"&&(f=m=>i[m]+l[m]+o[m]*u+g),t==="top"?s=-f("top"):t==="right"?a=f("right"):t==="bottom"?s=f("bottom"):t==="left"&&(a=-f("left")),{offsetX:a,offsetY:s}}function tt(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function et(e,t,o){return e==="top"?t.y=o.y-o.h-c:e==="right"?t.x=o.x+o.w/2+c+t.w/2:e==="bottom"?t.y=o.y+o.h+c:e==="left"&&(t.x=o.x-o.w/2-c-t.w/2),{x:t.x,y:t.y}}function X(e,t,{x:o,y:l,w:i,h:n},r){return W(e,{x:o,y:l,w:i,h:n,r:3}),e.fillStyle=`${w[t]}dd`,e.fill(),e.strokeStyle=w[t],e.stroke(),e.fillStyle=w.text,e.fillText(r,o,l),W(e,{x:o,y:l,w:i,h:n,r:3}),e.fillStyle=`${w[t]}dd`,e.fill(),e.strokeStyle=w[t],e.stroke(),e.fillStyle=w.text,e.fillText(r,o,l),{x:o,y:l,w:i,h:n}}function C(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let o=e.measureText(t),l=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent,i=o.width+c*2,n=l+c*2;return{w:i,h:n}}function ot(e,t,{type:o,position:l="center",text:i},n,r=!1){let{x:f,y:a}=Q(l,t),{offsetX:s,offsetY:u}=x(o,l,t,c+1,r);f+=s,a+=u;let{w:g,h:m}=C(e,i);if(n&&tt({x:f,y:a,w:g,h:m},n)){let v=et(l,{x:f,y:a,w:g},n);f=v.x,a=v.y}return X(e,o,{x:f,y:a,w:g,h:m},i)}function it(e,{w:t,h:o}){let l=t*.5+c,i=o*.5+c;return{offsetX:(e.x==="left"?-1:1)*l,offsetY:(e.y==="top"?-1:1)*i}}function lt(e,t,{type:o,text:l}){let{floatingAlignment:i,extremities:n}=t,r=n[i.x],f=n[i.y],{w:a,h:s}=C(e,l),{offsetX:u,offsetY:g}=it(i,{w:a,h:s});return r+=u,f+=g,X(e,o,{x:r,y:f,w:a,h:s},l)}function E(e,t,o,l){let i=[];o.forEach((n,r)=>{let f=l&&n.position==="center"?lt(e,t,n):ot(e,t,n,i[r-1],l);i[r]=f})}function nt(e,t,o,l){let i=o.reduce((n,r)=>{var f;return Object.prototype.hasOwnProperty.call(n,r.position)||(n[r.position]=[]),(f=n[r.position])==null||f.push(r),n},{});i.top&&E(e,t,i.top,l),i.right&&E(e,t,i.right,l),i.bottom&&E(e,t,i.bottom,l),i.left&&E(e,t,i.left,l),i.center&&E(e,t,i.center,l)}var L={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},B=30;function p(e){return parseInt(e.replace("px",""),10)}function b(e){return Number.isInteger(e)?e:e.toFixed(2)}function P(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function ft(e){let t={top:d.window.scrollY,bottom:d.window.scrollY+d.window.innerHeight,left:d.window.scrollX,right:d.window.scrollX+d.window.innerWidth},o={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:o.left>o.right?"left":"right",y:o.top>o.bottom?"top":"bottom"}}function rt(e){let t=d.getComputedStyle(e),{top:o,left:l,right:i,bottom:n,width:r,height:f}=e.getBoundingClientRect(),{marginTop:a,marginBottom:s,marginLeft:u,marginRight:g,paddingTop:m,paddingBottom:v,paddingLeft:k,paddingRight:F,borderBottomWidth:I,borderTopWidth:D,borderLeftWidth:$,borderRightWidth:N}=t;o=o+d.window.scrollY,l=l+d.window.scrollX,n=n+d.window.scrollY,i=i+d.window.scrollX;let y={top:p(a),bottom:p(s),left:p(u),right:p(g)},q={top:p(m),bottom:p(v),left:p(k),right:p(F)},z={top:p(D),bottom:p(I),left:p($),right:p(N)},_={top:o-y.top,bottom:n+y.bottom,left:l-y.left,right:i+y.right};return{margin:y,padding:q,border:z,top:o,left:l,bottom:n,right:i,width:r,height:f,extremities:_,floatingAlignment:ft(_)}}function at(e,{margin:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l+t.bottom+t.top;e.fillStyle=L.margin,e.fillRect(n,i-t.top,o,t.top),e.fillRect(f,i-t.top,t.right,a),e.fillRect(n,r,o,t.bottom),e.fillRect(n-t.left,i-t.top,t.left,a);let s=[{type:"margin",text:b(t.top),position:"top"},{type:"margin",text:b(t.right),position:"right"},{type:"margin",text:b(t.bottom),position:"bottom"},{type:"margin",text:b(t.left),position:"left"}];return P(s)}function st(e,{padding:t,border:o,width:l,height:i,top:n,left:r,bottom:f,right:a}){let s=l-o.left-o.right,u=i-t.top-t.bottom-o.top-o.bottom;e.fillStyle=L.padding,e.fillRect(r+o.left,n+o.top,s,t.top),e.fillRect(a-t.right-o.right,n+t.top+o.top,t.right,u),e.fillRect(r+o.left,f-t.bottom-o.bottom,s,t.bottom),e.fillRect(r+o.left,n+t.top+o.top,t.left,u);let g=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return P(g)}function ht(e,{border:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l-t.top-t.bottom;e.fillStyle=L.border,e.fillRect(n,i,o,t.top),e.fillRect(n,r-t.bottom,o,t.bottom),e.fillRect(n,i+t.top,t.left,a),e.fillRect(f-t.right,i+t.top,t.right,a);let s=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return P(s)}function ut(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom;return e.fillStyle=L.content,e.fillRect(r+o.left+t.left,n+o.top+t.top,f,a),[{type:"content",position:"center",text:`${b(f)} x ${b(a)}`}]}function dt(e){return t=>{if(e&&t){let o=rt(e),l=at(t,o),i=st(t,o),n=ht(t,o),r=ut(t,o),f=o.width<=B*3||o.height<=B;nt(t,o,[...r,...i,...n,...l],f)}}}function mt(e){V(dt(e))}var gt=(e,t)=>{let o=d.document.elementFromPoint(e,t),l=i=>{if(i&&i.shadowRoot){let n=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(n)?i:n.shadowRoot?l(n):n}return i};return l(o)||o},O,M={x:0,y:0};function R(e,t){O=gt(e,t),mt(O)}var pt=(e,t)=>{let{measureEnabled:o}=t.globals;return T(()=>{let l=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),M.x=i.clientX,M.y=i.clientY})};return document.addEventListener("pointermove",l),()=>{document.removeEventListener("pointermove",l)}},[]),T(()=>{let l=n=>{window.requestAnimationFrame(()=>{n.stopPropagation(),R(n.clientX,n.clientY)})},i=()=>{window.requestAnimationFrame(()=>{Z()})};return t.viewMode==="story"&&o&&(document.addEventListener("pointerover",l),U(),window.addEventListener("resize",i),R(M.x,M.y)),()=>{window.removeEventListener("resize",i),J()}},[o,t.viewMode]),e()},ct=[pt],wt={[K]:!1};export{ct as decorators,wt as initialGlobals};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-YqKt61zP.js","./iframe-C5GAfuxh.js","./index-uubelm5h.js","./jsx-runtime-QvZ8i92b.js","./index-CfOt2XX2.js","./index-BVoBHvaS.js","./index-DrFu-skq.js","./react-18-CtsMCmcS.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as a}from"./iframe-C5GAfuxh.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-YqKt61zP.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters};
|
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
import{d as $}from"./index-DrFu-skq.js";const{useMemo:x,useEffect:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:p}=__STORYBOOK_MODULE_GLOBAL__;var m="outline",u=i=>{(Array.isArray(i)?i:[i]).forEach(r)},r=i=>{let t=typeof i=="string"?i:i.join(""),o=p.document.getElementById(t);o&&o.parentElement&&o.parentElement.removeChild(o)},b=(i,t)=>{let o=p.document.getElementById(i);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{let n=p.document.createElement("style");n.setAttribute("id",i),n.innerHTML=t,p.document.head.appendChild(n)}};function s(i){return $`
|
|
2
|
-
${i} body {
|
|
3
|
-
outline: 1px solid #2980b9 !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
${i} article {
|
|
7
|
-
outline: 1px solid #3498db !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
${i} nav {
|
|
11
|
-
outline: 1px solid #0088c3 !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
${i} aside {
|
|
15
|
-
outline: 1px solid #33a0ce !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
${i} section {
|
|
19
|
-
outline: 1px solid #66b8da !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
${i} header {
|
|
23
|
-
outline: 1px solid #99cfe7 !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
${i} footer {
|
|
27
|
-
outline: 1px solid #cce7f3 !important;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
${i} h1 {
|
|
31
|
-
outline: 1px solid #162544 !important;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
${i} h2 {
|
|
35
|
-
outline: 1px solid #314e6e !important;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
${i} h3 {
|
|
39
|
-
outline: 1px solid #3e5e85 !important;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
${i} h4 {
|
|
43
|
-
outline: 1px solid #449baf !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
${i} h5 {
|
|
47
|
-
outline: 1px solid #c7d1cb !important;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
${i} h6 {
|
|
51
|
-
outline: 1px solid #4371d0 !important;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
${i} main {
|
|
55
|
-
outline: 1px solid #2f4f90 !important;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
${i} address {
|
|
59
|
-
outline: 1px solid #1a2c51 !important;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
${i} div {
|
|
63
|
-
outline: 1px solid #036cdb !important;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
${i} p {
|
|
67
|
-
outline: 1px solid #ac050b !important;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
${i} hr {
|
|
71
|
-
outline: 1px solid #ff063f !important;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
${i} pre {
|
|
75
|
-
outline: 1px solid #850440 !important;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
${i} blockquote {
|
|
79
|
-
outline: 1px solid #f1b8e7 !important;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
${i} ol {
|
|
83
|
-
outline: 1px solid #ff050c !important;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
${i} ul {
|
|
87
|
-
outline: 1px solid #d90416 !important;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
${i} li {
|
|
91
|
-
outline: 1px solid #d90416 !important;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
${i} dl {
|
|
95
|
-
outline: 1px solid #fd3427 !important;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
${i} dt {
|
|
99
|
-
outline: 1px solid #ff0043 !important;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
${i} dd {
|
|
103
|
-
outline: 1px solid #e80174 !important;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
${i} figure {
|
|
107
|
-
outline: 1px solid #ff00bb !important;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
${i} figcaption {
|
|
111
|
-
outline: 1px solid #bf0032 !important;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
${i} table {
|
|
115
|
-
outline: 1px solid #00cc99 !important;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
${i} caption {
|
|
119
|
-
outline: 1px solid #37ffc4 !important;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
${i} thead {
|
|
123
|
-
outline: 1px solid #98daca !important;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
${i} tbody {
|
|
127
|
-
outline: 1px solid #64a7a0 !important;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
${i} tfoot {
|
|
131
|
-
outline: 1px solid #22746b !important;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
${i} tr {
|
|
135
|
-
outline: 1px solid #86c0b2 !important;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
${i} th {
|
|
139
|
-
outline: 1px solid #a1e7d6 !important;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
${i} td {
|
|
143
|
-
outline: 1px solid #3f5a54 !important;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
${i} col {
|
|
147
|
-
outline: 1px solid #6c9a8f !important;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
${i} colgroup {
|
|
151
|
-
outline: 1px solid #6c9a9d !important;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
${i} button {
|
|
155
|
-
outline: 1px solid #da8301 !important;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
${i} datalist {
|
|
159
|
-
outline: 1px solid #c06000 !important;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
${i} fieldset {
|
|
163
|
-
outline: 1px solid #d95100 !important;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
${i} form {
|
|
167
|
-
outline: 1px solid #d23600 !important;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
${i} input {
|
|
171
|
-
outline: 1px solid #fca600 !important;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
${i} keygen {
|
|
175
|
-
outline: 1px solid #b31e00 !important;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
${i} label {
|
|
179
|
-
outline: 1px solid #ee8900 !important;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
${i} legend {
|
|
183
|
-
outline: 1px solid #de6d00 !important;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
${i} meter {
|
|
187
|
-
outline: 1px solid #e8630c !important;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
${i} optgroup {
|
|
191
|
-
outline: 1px solid #b33600 !important;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
${i} option {
|
|
195
|
-
outline: 1px solid #ff8a00 !important;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
${i} output {
|
|
199
|
-
outline: 1px solid #ff9619 !important;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
${i} progress {
|
|
203
|
-
outline: 1px solid #e57c00 !important;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
${i} select {
|
|
207
|
-
outline: 1px solid #e26e0f !important;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
${i} textarea {
|
|
211
|
-
outline: 1px solid #cc5400 !important;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
${i} details {
|
|
215
|
-
outline: 1px solid #33848f !important;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
${i} summary {
|
|
219
|
-
outline: 1px solid #60a1a6 !important;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
${i} command {
|
|
223
|
-
outline: 1px solid #438da1 !important;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
${i} menu {
|
|
227
|
-
outline: 1px solid #449da6 !important;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
${i} del {
|
|
231
|
-
outline: 1px solid #bf0000 !important;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
${i} ins {
|
|
235
|
-
outline: 1px solid #400000 !important;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
${i} img {
|
|
239
|
-
outline: 1px solid #22746b !important;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
${i} iframe {
|
|
243
|
-
outline: 1px solid #64a7a0 !important;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
${i} embed {
|
|
247
|
-
outline: 1px solid #98daca !important;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
${i} object {
|
|
251
|
-
outline: 1px solid #00cc99 !important;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
${i} param {
|
|
255
|
-
outline: 1px solid #37ffc4 !important;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
${i} video {
|
|
259
|
-
outline: 1px solid #6ee866 !important;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
${i} audio {
|
|
263
|
-
outline: 1px solid #027353 !important;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
${i} source {
|
|
267
|
-
outline: 1px solid #012426 !important;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
${i} canvas {
|
|
271
|
-
outline: 1px solid #a2f570 !important;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
${i} track {
|
|
275
|
-
outline: 1px solid #59a600 !important;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
${i} map {
|
|
279
|
-
outline: 1px solid #7be500 !important;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
${i} area {
|
|
283
|
-
outline: 1px solid #305900 !important;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
${i} a {
|
|
287
|
-
outline: 1px solid #ff62ab !important;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
${i} em {
|
|
291
|
-
outline: 1px solid #800b41 !important;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
${i} strong {
|
|
295
|
-
outline: 1px solid #ff1583 !important;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
${i} i {
|
|
299
|
-
outline: 1px solid #803156 !important;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
${i} b {
|
|
303
|
-
outline: 1px solid #cc1169 !important;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
${i} u {
|
|
307
|
-
outline: 1px solid #ff0430 !important;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
${i} s {
|
|
311
|
-
outline: 1px solid #f805e3 !important;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
${i} small {
|
|
315
|
-
outline: 1px solid #d107b2 !important;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
${i} abbr {
|
|
319
|
-
outline: 1px solid #4a0263 !important;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
${i} q {
|
|
323
|
-
outline: 1px solid #240018 !important;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
${i} cite {
|
|
327
|
-
outline: 1px solid #64003c !important;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
${i} dfn {
|
|
331
|
-
outline: 1px solid #b4005a !important;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
${i} sub {
|
|
335
|
-
outline: 1px solid #dba0c8 !important;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
${i} sup {
|
|
339
|
-
outline: 1px solid #cc0256 !important;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
${i} time {
|
|
343
|
-
outline: 1px solid #d6606d !important;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
${i} code {
|
|
347
|
-
outline: 1px solid #e04251 !important;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
${i} kbd {
|
|
351
|
-
outline: 1px solid #5e001f !important;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
${i} samp {
|
|
355
|
-
outline: 1px solid #9c0033 !important;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
${i} var {
|
|
359
|
-
outline: 1px solid #d90047 !important;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
${i} mark {
|
|
363
|
-
outline: 1px solid #ff0053 !important;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
${i} bdi {
|
|
367
|
-
outline: 1px solid #bf3668 !important;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
${i} bdo {
|
|
371
|
-
outline: 1px solid #6f1400 !important;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
${i} ruby {
|
|
375
|
-
outline: 1px solid #ff7b93 !important;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
${i} rt {
|
|
379
|
-
outline: 1px solid #ff2f54 !important;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
${i} rp {
|
|
383
|
-
outline: 1px solid #803e49 !important;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
${i} span {
|
|
387
|
-
outline: 1px solid #cc2643 !important;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
${i} br {
|
|
391
|
-
outline: 1px solid #db687d !important;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
${i} wbr {
|
|
395
|
-
outline: 1px solid #db175b !important;
|
|
396
|
-
}`}var e=(i,t)=>{let{globals:o}=t,n=[!0,"true"].includes(o[m]),d=t.viewMode==="docs",l=x(()=>s(d?'[data-story-block="true"]':".sb-show-main"),[t]);return f(()=>{let a=d?`addon-outline-docs-${t.id}`:"addon-outline";return n?b(a,l):u(a),()=>{u(a)}},[n,l,t]),i()},h=[e],g={[m]:!1};export{h as decorators,g as initialGlobals};
|