webs-sdk 0.18.44 → 0.18.45

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: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";
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,400px);padding:32px 24px;box-sizing:border-box}\n.pr-title{font-size:32px;font-weight:600;text-align:center;margin:0 0 16px 0;line-height:1.25}\n.pr-subtitle{font-size:20px;text-align:center;margin:0 0 32px 0;line-height:1.4;font-weight:400;opacity:0.8}\n.pr-field{margin-bottom:20px}\n.pr-label{display:block;font-size:20px;font-weight:500;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:14px 44px;border-radius:999px;border:1.5px solid;font-size:16px;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:16px 24px;border-radius:999px;border:none;font-size:18px;font-weight:700;cursor:pointer;transition:opacity .18s,transform .1s;margin-top:12px;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:15px;text-align:center;margin:16px 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-card{padding:32px 20px}.pr-title{font-size:28px}}\n@media(min-width:768px){.pr-card{max-width:var(--pr-card-max-width,448px);padding:32px}}\n@media(min-width:1024px){.pr-card{max-width:var(--pr-card-max-width,512px);padding:40px}}\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,01FAiC9B,CAAC"}
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,ggGAkC9B,CAAC"}
@@ -13,7 +13,7 @@ exports.DEFAULT_THEME = {
13
13
  errorColor: '#fc8181',
14
14
  successColor: '#68d391',
15
15
  cardBorderRadius: '16px',
16
- cardMaxWidth: '540px',
16
+ cardMaxWidth: '512px',
17
17
  fontFamily: 'inherit',
18
18
  };
19
19
  exports.DEFAULT_PASSWORD_RULES = {
@@ -26,34 +26,35 @@ 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
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}
29
+ .pr-card{width:100%;max-width:var(--pr-card-max-width,400px);padding:32px 24px;box-sizing:border-box}
30
+ .pr-title{font-size:32px;font-weight:600;text-align:center;margin:0 0 16px 0;line-height:1.25}
31
+ .pr-subtitle{font-size:20px;text-align:center;margin:0 0 32px 0;line-height:1.4;font-weight:400;opacity:0.8}
32
+ .pr-field{margin-bottom:20px}
33
+ .pr-label{display:block;font-size:20px;font-weight:500;margin-bottom:12px}
35
34
  .pr-input-wrap{position:relative;display:flex;align-items:center}
36
35
  .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
36
  .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}
37
+ .pr-input{width:100%;padding:14px 44px;border-radius:999px;border:1.5px solid;font-size:16px;outline:none;transition:border-color .18s,opacity .18s;box-sizing:border-box;font-family:inherit;line-height:1.4}
39
38
  .pr-input::placeholder{color:var(--pr-ph,rgba(255,255,255,0.35))}
40
39
  .pr-input:disabled{opacity:.6;cursor:not-allowed}
41
40
  .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}
42
41
  .pr-input-eye:hover{opacity:.7}
43
42
  .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
+ .pr-btn{width:100%;padding:16px 24px;border-radius:999px;border:none;font-size:18px;font-weight:700;cursor:pointer;transition:opacity .18s,transform .1s;margin-top:12px;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;line-height:1}
45
44
  .pr-btn:hover:not(:disabled){opacity:.85}
46
45
  .pr-btn:active:not(:disabled){transform:scale(.98)}
47
46
  .pr-btn:disabled{cursor:not-allowed;opacity:.5}
48
47
  .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}
49
48
  @keyframes pr-spin{to{transform:rotate(360deg)}}
50
- .pr-error-msg{font-size:16px;text-align:center;margin:18px 0 0 0;line-height:1.5}
49
+ .pr-error-msg{font-size:15px;text-align:center;margin:16px 0 0 0;line-height:1.5}
51
50
  .pr-success{text-align:center;padding:8px 0}
52
51
  .pr-success-icon{font-size:52px;margin-bottom:24px;line-height:1}
53
52
  .pr-success-text{font-size:18px;line-height:1.65;margin:0}
54
53
  .pr-rules{margin:14px 0 4px 6px;display:flex;flex-direction:column;gap:10px}
55
54
  .pr-rule{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.3;transition:color .2s}
56
55
  .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}}
56
+ @media(max-width:480px){.pr-card{padding:32px 20px}.pr-title{font-size:28px}}
57
+ @media(min-width:768px){.pr-card{max-width:var(--pr-card-max-width,448px);padding:32px}}
58
+ @media(min-width:1024px){.pr-card{max-width:var(--pr-card-max-width,512px);padding:40px}}
58
59
  `;
59
60
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCjC,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webs-sdk",
3
- "version": "0.18.44",
3
+ "version": "0.18.45",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",