webs-sdk 0.18.43 → 0.18.44
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.
|
@@ -2,5 +2,5 @@ import type { PasswordResetTheme, PasswordRules } from './types';
|
|
|
2
2
|
export declare const STYLE_ID = "webs-sdk-password-reset";
|
|
3
3
|
export declare const DEFAULT_THEME: Required<PasswordResetTheme>;
|
|
4
4
|
export declare const DEFAULT_PASSWORD_RULES: Required<PasswordRules>;
|
|
5
|
-
export declare const PASSWORD_RESET_CSS = "\n.pr-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:24px 16px;box-sizing:border-box}\n.pr-logo-wrap{margin-bottom:24px;text-align:center}\n.pr-logo{display:block;max-width:
|
|
5
|
+
export declare const PASSWORD_RESET_CSS = "\n.pr-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:24px 16px;box-sizing:border-box}\n.pr-logo-wrap{margin-bottom:24px;text-align:center}\n.pr-logo{display:block;max-width:200px;max-height:60px;width:auto;height:auto;object-fit:contain;margin:0 auto}\n.pr-card{width:100%;max-width:var(--pr-card-max-width,540px);padding:48px 44px;box-sizing:border-box}\n@media(max-width:480px){.pr-card{padding:36px 24px}}\n.pr-title{font-size:32px;font-weight:700;text-align:center;margin:0 0 16px 0;line-height:1.25}\n.pr-subtitle{font-size:24px;text-align:center;margin:0 0 36px 0;line-height:1.4;font-weight:400}\n.pr-field{margin-bottom:24px}\n.pr-label{display:block;font-size:20px;font-weight:600;margin-bottom:12px}\n.pr-input-wrap{position:relative;display:flex;align-items:center}\n.pr-input-icon{position:absolute;left:14px;width:20px;height:20px;flex-shrink:0;pointer-events:none;display:flex;align-items:center;justify-content:center}\n.pr-input-icon svg{width:20px;height:20px;display:block}\n.pr-input{width:100%;padding:16px 44px;border-radius:999px;border:1.5px solid;font-size:17px;outline:none;transition:border-color .18s,opacity .18s;box-sizing:border-box;font-family:inherit;line-height:1.4}\n.pr-input::placeholder{color:var(--pr-ph,rgba(255,255,255,0.35))}\n.pr-input:disabled{opacity:.6;cursor:not-allowed}\n.pr-input-eye{position:absolute;right:14px;background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:opacity .18s;line-height:0}\n.pr-input-eye:hover{opacity:.7}\n.pr-input-eye svg{width:20px;height:20px;display:block}\n.pr-btn{width:100%;padding:18px 24px;border-radius:999px;border:none;font-size:18px;font-weight:700;cursor:pointer;transition:opacity .18s,transform .1s;margin-top:16px;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;line-height:1}\n.pr-btn:hover:not(:disabled){opacity:.85}\n.pr-btn:active:not(:disabled){transform:scale(.98)}\n.pr-btn:disabled{cursor:not-allowed;opacity:.5}\n.pr-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:pr-spin .65s linear infinite;flex-shrink:0}\n@keyframes pr-spin{to{transform:rotate(360deg)}}\n.pr-error-msg{font-size:16px;text-align:center;margin:18px 0 0 0;line-height:1.5}\n.pr-success{text-align:center;padding:8px 0}\n.pr-success-icon{font-size:52px;margin-bottom:24px;line-height:1}\n.pr-success-text{font-size:18px;line-height:1.65;margin:0}\n.pr-rules{margin:14px 0 4px 6px;display:flex;flex-direction:column;gap:10px}\n.pr-rule{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.3;transition:color .2s}\n.pr-rule-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;transition:background-color .2s}\n@media(max-width:480px){.pr-title{font-size:28px}}\n";
|
|
6
6
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordReset/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,QAAQ,4BAA4B,CAAC;AAElD,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,kBAAkB,CAatD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,aAAa,CAK1D,CAAC;AASF,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordReset/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,QAAQ,4BAA4B,CAAC;AAElD,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,kBAAkB,CAatD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,aAAa,CAK1D,CAAC;AASF,eAAO,MAAM,kBAAkB,01FAiC9B,CAAC"}
|
|
@@ -13,7 +13,7 @@ exports.DEFAULT_THEME = {
|
|
|
13
13
|
errorColor: '#fc8181',
|
|
14
14
|
successColor: '#68d391',
|
|
15
15
|
cardBorderRadius: '16px',
|
|
16
|
-
cardMaxWidth: '
|
|
16
|
+
cardMaxWidth: '540px',
|
|
17
17
|
fontFamily: 'inherit',
|
|
18
18
|
};
|
|
19
19
|
exports.DEFAULT_PASSWORD_RULES = {
|
|
@@ -25,32 +25,35 @@ exports.DEFAULT_PASSWORD_RULES = {
|
|
|
25
25
|
exports.PASSWORD_RESET_CSS = `
|
|
26
26
|
.pr-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:24px 16px;box-sizing:border-box}
|
|
27
27
|
.pr-logo-wrap{margin-bottom:24px;text-align:center}
|
|
28
|
-
.pr-logo{display:block;max-width:
|
|
29
|
-
.pr-card{width:100%;max-width:var(--pr-card-max-width,
|
|
30
|
-
@media(max-width:480px){.pr-card{padding:
|
|
31
|
-
.pr-title{font-size:
|
|
32
|
-
.pr-subtitle{font-size:
|
|
33
|
-
.pr-field{margin-bottom:
|
|
34
|
-
.pr-label{display:block;font-size:
|
|
28
|
+
.pr-logo{display:block;max-width:200px;max-height:60px;width:auto;height:auto;object-fit:contain;margin:0 auto}
|
|
29
|
+
.pr-card{width:100%;max-width:var(--pr-card-max-width,540px);padding:48px 44px;box-sizing:border-box}
|
|
30
|
+
@media(max-width:480px){.pr-card{padding:36px 24px}}
|
|
31
|
+
.pr-title{font-size:32px;font-weight:700;text-align:center;margin:0 0 16px 0;line-height:1.25}
|
|
32
|
+
.pr-subtitle{font-size:24px;text-align:center;margin:0 0 36px 0;line-height:1.4;font-weight:400}
|
|
33
|
+
.pr-field{margin-bottom:24px}
|
|
34
|
+
.pr-label{display:block;font-size:20px;font-weight:600;margin-bottom:12px}
|
|
35
35
|
.pr-input-wrap{position:relative;display:flex;align-items:center}
|
|
36
|
-
.pr-input-icon{position:absolute;left:14px;width:
|
|
37
|
-
.pr-input-icon svg{width:
|
|
38
|
-
.pr-input{width:100%;padding:
|
|
36
|
+
.pr-input-icon{position:absolute;left:14px;width:20px;height:20px;flex-shrink:0;pointer-events:none;display:flex;align-items:center;justify-content:center}
|
|
37
|
+
.pr-input-icon svg{width:20px;height:20px;display:block}
|
|
38
|
+
.pr-input{width:100%;padding:16px 44px;border-radius:999px;border:1.5px solid;font-size:17px;outline:none;transition:border-color .18s,opacity .18s;box-sizing:border-box;font-family:inherit;line-height:1.4}
|
|
39
39
|
.pr-input::placeholder{color:var(--pr-ph,rgba(255,255,255,0.35))}
|
|
40
|
+
.pr-input:disabled{opacity:.6;cursor:not-allowed}
|
|
40
41
|
.pr-input-eye{position:absolute;right:14px;background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:opacity .18s;line-height:0}
|
|
41
|
-
.pr-input-eye
|
|
42
|
-
.pr-
|
|
42
|
+
.pr-input-eye:hover{opacity:.7}
|
|
43
|
+
.pr-input-eye svg{width:20px;height:20px;display:block}
|
|
44
|
+
.pr-btn{width:100%;padding:18px 24px;border-radius:999px;border:none;font-size:18px;font-weight:700;cursor:pointer;transition:opacity .18s,transform .1s;margin-top:16px;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;line-height:1}
|
|
43
45
|
.pr-btn:hover:not(:disabled){opacity:.85}
|
|
44
46
|
.pr-btn:active:not(:disabled){transform:scale(.98)}
|
|
45
47
|
.pr-btn:disabled{cursor:not-allowed;opacity:.5}
|
|
46
|
-
.pr-spinner{width:
|
|
48
|
+
.pr-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:pr-spin .65s linear infinite;flex-shrink:0}
|
|
47
49
|
@keyframes pr-spin{to{transform:rotate(360deg)}}
|
|
48
|
-
.pr-error-msg{font-size:
|
|
50
|
+
.pr-error-msg{font-size:16px;text-align:center;margin:18px 0 0 0;line-height:1.5}
|
|
49
51
|
.pr-success{text-align:center;padding:8px 0}
|
|
50
|
-
.pr-success-icon{font-size:
|
|
51
|
-
.pr-success-text{font-size:
|
|
52
|
-
.pr-rules{margin:
|
|
53
|
-
.pr-rule{display:flex;align-items:center;gap:
|
|
54
|
-
.pr-rule-dot{width:
|
|
52
|
+
.pr-success-icon{font-size:52px;margin-bottom:24px;line-height:1}
|
|
53
|
+
.pr-success-text{font-size:18px;line-height:1.65;margin:0}
|
|
54
|
+
.pr-rules{margin:14px 0 4px 6px;display:flex;flex-direction:column;gap:10px}
|
|
55
|
+
.pr-rule{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.3;transition:color .2s}
|
|
56
|
+
.pr-rule-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;transition:background-color .2s}
|
|
57
|
+
@media(max-width:480px){.pr-title{font-size:28px}}
|
|
55
58
|
`;
|
|
56
59
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/PasswordReset/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG,yBAAyB,CAAC;AAErC,QAAA,aAAa,GAAiC;IACzD,eAAe,EAAE,SAAS;IAC1B,mBAAmB,EAAE,SAAS;IAC9B,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,SAAS;IACpB,cAAc,EAAE,wBAAwB;IACxC,oBAAoB,EAAE,SAAS;IAC/B,gBAAgB,EAAE,aAAa;IAC/B,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,SAAS;IACvB,gBAAgB,EAAE,MAAM;IACxB,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,SAAS;CACtB,CAAC;AAEW,QAAA,sBAAsB,GAA4B;IAC7D,SAAS,EAAE,CAAC;IACZ,gBAAgB,EAAE,IAAI;IACtB,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,KAAK;CAC1B,CAAC;AASW,QAAA,kBAAkB,GAAG
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/PasswordReset/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG,yBAAyB,CAAC;AAErC,QAAA,aAAa,GAAiC;IACzD,eAAe,EAAE,SAAS;IAC1B,mBAAmB,EAAE,SAAS;IAC9B,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,SAAS;IACpB,cAAc,EAAE,wBAAwB;IACxC,oBAAoB,EAAE,SAAS;IAC/B,gBAAgB,EAAE,aAAa;IAC/B,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,SAAS;IACvB,gBAAgB,EAAE,MAAM;IACxB,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,SAAS;CACtB,CAAC;AAEW,QAAA,sBAAsB,GAA4B;IAC7D,SAAS,EAAE,CAAC;IACZ,gBAAgB,EAAE,IAAI;IACtB,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,KAAK;CAC1B,CAAC;AASW,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCjC,CAAC"}
|