pwa-auth 3.6.0 → 3.7.1

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.
Files changed (90) hide show
  1. package/README.md +140 -485
  2. package/base/export/drawer.d.ts +2 -0
  3. package/base/export/drawer.d.ts.map +1 -0
  4. package/base/export/drawer.js +2 -0
  5. package/base/export/drawer.js.map +1 -0
  6. package/base/export/icon.d.ts +2 -0
  7. package/base/export/icon.d.ts.map +1 -0
  8. package/base/export/icon.js +2 -0
  9. package/base/export/icon.js.map +1 -0
  10. package/base/export/login.d.ts +2 -0
  11. package/base/export/login.d.ts.map +1 -0
  12. package/base/export/login.js +2 -0
  13. package/base/export/login.js.map +1 -0
  14. package/base/export/reset.d.ts +2 -0
  15. package/base/export/reset.d.ts.map +1 -0
  16. package/base/export/reset.js +2 -0
  17. package/base/export/reset.js.map +1 -0
  18. package/base/export/settings.d.ts +2 -0
  19. package/base/export/settings.d.ts.map +1 -0
  20. package/base/export/settings.js +2 -0
  21. package/base/export/settings.js.map +1 -0
  22. package/base/webcomponents/css/animation.d.ts.map +1 -1
  23. package/base/webcomponents/css/animation.js +35 -63
  24. package/base/webcomponents/css/animation.js.map +1 -1
  25. package/base/webcomponents/drawer/css/drawer.d.ts.map +1 -1
  26. package/base/webcomponents/drawer/css/drawer.js +12 -14
  27. package/base/webcomponents/drawer/css/drawer.js.map +1 -1
  28. package/base/webcomponents/drawer/css/exit.js +1 -1
  29. package/base/webcomponents/drawer/css/paragraph.d.ts.map +1 -1
  30. package/base/webcomponents/drawer/css/paragraph.js +10 -3
  31. package/base/webcomponents/drawer/css/paragraph.js.map +1 -1
  32. package/base/webcomponents/drawer/drawer.d.ts +25 -0
  33. package/base/webcomponents/drawer/drawer.d.ts.map +1 -1
  34. package/base/webcomponents/drawer/drawer.js +298 -17
  35. package/base/webcomponents/drawer/drawer.js.map +1 -1
  36. package/base/webcomponents/form/css/button.d.ts.map +1 -1
  37. package/base/webcomponents/form/css/button.js +15 -16
  38. package/base/webcomponents/form/css/button.js.map +1 -1
  39. package/base/webcomponents/form/css/input.d.ts.map +1 -1
  40. package/base/webcomponents/form/css/input.js +10 -1
  41. package/base/webcomponents/form/css/input.js.map +1 -1
  42. package/base/webcomponents/form/css/label.d.ts.map +1 -1
  43. package/base/webcomponents/form/css/label.js +19 -1
  44. package/base/webcomponents/form/css/label.js.map +1 -1
  45. package/base/webcomponents/form/css/list.d.ts.map +1 -1
  46. package/base/webcomponents/form/css/list.js +2 -1
  47. package/base/webcomponents/form/css/list.js.map +1 -1
  48. package/base/webcomponents/form/css/notice.js +3 -3
  49. package/base/webcomponents/form/css/status.d.ts.map +1 -1
  50. package/base/webcomponents/form/css/status.js +18 -5
  51. package/base/webcomponents/form/css/status.js.map +1 -1
  52. package/base/webcomponents/form/css/toggle.d.ts.map +1 -1
  53. package/base/webcomponents/form/css/toggle.js +7 -0
  54. package/base/webcomponents/form/css/toggle.js.map +1 -1
  55. package/base/webcomponents/form/forgot.d.ts.map +1 -1
  56. package/base/webcomponents/form/forgot.js +5 -4
  57. package/base/webcomponents/form/forgot.js.map +1 -1
  58. package/base/webcomponents/form/login.js +1 -1
  59. package/base/webcomponents/form/signup.js +1 -1
  60. package/base/webcomponents/icon/css/icon.d.ts.map +1 -1
  61. package/base/webcomponents/icon/css/icon.js +9 -0
  62. package/base/webcomponents/icon/css/icon.js.map +1 -1
  63. package/base/webcomponents/login/css/auth.d.ts.map +1 -1
  64. package/base/webcomponents/login/css/auth.js +9 -4
  65. package/base/webcomponents/login/css/auth.js.map +1 -1
  66. package/base/webcomponents/login/page.d.ts +20 -1
  67. package/base/webcomponents/login/page.d.ts.map +1 -1
  68. package/base/webcomponents/login/page.js +182 -6
  69. package/base/webcomponents/login/page.js.map +1 -1
  70. package/base/webcomponents/settings/css/navigation.js +3 -3
  71. package/base/webcomponents/settings/input/delete.d.ts.map +1 -1
  72. package/base/webcomponents/settings/input/delete.js +7 -1
  73. package/base/webcomponents/settings/input/delete.js.map +1 -1
  74. package/base/webcomponents/settings/input/uploader.d.ts.map +1 -1
  75. package/base/webcomponents/settings/input/uploader.js +8 -4
  76. package/base/webcomponents/settings/input/uploader.js.map +1 -1
  77. package/base/webcomponents/settings/input/verify.d.ts.map +1 -1
  78. package/base/webcomponents/settings/input/verify.js +24 -7
  79. package/base/webcomponents/settings/input/verify.js.map +1 -1
  80. package/base/webcomponents/settings/settings.d.ts +19 -1
  81. package/base/webcomponents/settings/settings.d.ts.map +1 -1
  82. package/base/webcomponents/settings/settings.js +177 -12
  83. package/base/webcomponents/settings/settings.js.map +1 -1
  84. package/docs/drawer-slide.md +206 -0
  85. package/docs/sliders.md +38 -31
  86. package/package.json +48 -10
  87. package/source/pwa-auth.js +408 -267
  88. package/source/pwa-styles.css +0 -8
  89. package/firebase.md +0 -125
  90. package/intro.md +0 -19
@@ -0,0 +1,2 @@
1
+ export { UserDrawer } from '../webcomponents/drawer/drawer.js';
2
+ //# sourceMappingURL=drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../typescript/export/drawer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { UserDrawer } from '../webcomponents/drawer/drawer.js';
2
+ //# sourceMappingURL=drawer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../typescript/export/drawer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { UserIcon } from '../webcomponents/icon/icon.js';
2
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../typescript/export/icon.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { UserIcon } from '../webcomponents/icon/icon.js';
2
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../typescript/export/icon.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { UserLogin } from '../webcomponents/login/page.js';
2
+ //# sourceMappingURL=login.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../typescript/export/login.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { UserLogin } from '../webcomponents/login/page.js';
2
+ //# sourceMappingURL=login.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.js","sourceRoot":"","sources":["../../typescript/export/login.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { EmailReset } from '../webcomponents/form/forgot.js';
2
+ //# sourceMappingURL=reset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset.d.ts","sourceRoot":"","sources":["../../typescript/export/reset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { EmailReset } from '../webcomponents/form/forgot.js';
2
+ //# sourceMappingURL=reset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset.js","sourceRoot":"","sources":["../../typescript/export/reset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { UserSettings } from '../webcomponents/settings/settings.js';
2
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../typescript/export/settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { UserSettings } from '../webcomponents/settings/settings.js';
2
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../typescript/export/settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/css/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAIrC,eAAO,MAAM,SAAS,EAAG,SAmFxB,CAAC;AAGF,eAAO,MAAM,WAAW,EAAG,SAiD1B,CAAC;AAGF,eAAO,MAAM,YAAY,EAAG,SAW3B,CAAC"}
1
+ {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/css/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAQrC,eAAO,MAAM,SAAS,EAAG,SA8FxB,CAAC;AAMF,eAAO,MAAM,WAAW,EAAG,SAe1B,CAAC;AAGF,eAAO,MAAM,YAAY,EAAG,SAM3B,CAAC"}
@@ -1,6 +1,11 @@
1
1
  import { css } from "lit";
2
2
  export const animation = css `
3
3
 
4
+ :host {
5
+ /* Required - this host's clock. It does not inherit onto a sibling component. */
6
+ --pwa_slide: 2s;
7
+ }
8
+
4
9
  .wrapper {
5
10
  display: grid;
6
11
  border-radius: 8px;
@@ -32,12 +37,9 @@ export const animation = css `
32
37
 
33
38
  backface-visibility: hidden;
34
39
 
35
- transition-property: transform;
36
- -webkit-transition-property: transform;
37
- transition-timing-function: ease-in-out;
38
- -webkit-transition-timing-function: ease-in-out;
39
- transition-duration: 2s;
40
- -webkit-transition-duration: 2s;
40
+ /* Required - no transition on the first paint. .motion on .inner arms it after boot. */
41
+ transition: none;
42
+ -webkit-transition: none;
41
43
 
42
44
  position:relative;
43
45
  z-index: 1;
@@ -57,28 +59,37 @@ export const animation = css `
57
59
  z-index: 3;
58
60
  }
59
61
 
62
+ /* Required - arm the swap only after the first paint. Closed stays put until then.
63
+ The class lives on this component's .inner, so another component cannot set it. */
64
+ .motion .content {
65
+ transition: transform var(--pwa_slide, 2s) ease-in-out, visibility 0s linear var(--pwa_slide, 2s);
66
+ -webkit-transition: transform var(--pwa_slide, 2s) ease-in-out, visibility 0s linear var(--pwa_slide, 2s);
67
+ }
68
+
69
+ .motion .opened {
70
+ /* Required - show the arriving form immediately. The duration matches --pwa_slide. */
71
+ transition: transform var(--pwa_slide, 2s) ease-in-out, visibility 0s linear 0s;
72
+ -webkit-transition: transform var(--pwa_slide, 2s) ease-in-out, visibility 0s linear 0s;
73
+ }
74
+
60
75
  .closed {
61
- /* Required - max-height slide-out runs with the transform. */
62
- transform: translate3d(0, -102%, 0);
63
- animation: slide-out 2s ease-out forwards;
64
- visibility: visible;
76
+ /* Required - same cell, full width, slid up. Absolute so the row does not stretch and the transform can run. */
77
+ transform: translate3d(0, -100%, 0);
78
+ visibility: hidden;
65
79
  pointer-events: none;
66
- position: relative;
67
- overflow: hidden;
80
+ position: absolute;
81
+ top: 0;
82
+ left: 0;
68
83
  width: 100%;
69
- height: auto;
84
+ height: auto; /* Required - a stretched row pulls Update to the top */
70
85
  align-self: start;
71
86
  justify-self: start;
72
87
  z-index: 2;
73
88
  }
74
89
 
75
90
  @media (prefers-reduced-motion: reduce) {
76
- :host,
77
- .content,
78
- .opened,
79
- .closed {
80
- transition-duration: 0s;
81
- animation-duration: 0s;
91
+ :host {
92
+ --pwa_slide: 0s;
82
93
  }
83
94
  }
84
95
 
@@ -87,61 +98,22 @@ export const drawerShell = css `
87
98
 
88
99
  :host {
89
100
  max-height: 0px;
90
- transition: max-height 1.4s ease-in-out;
91
- }
92
-
93
- :host([drawer]) {
94
- max-height: 100%;
95
- transition: max-height 1.4s ease-in-out;
96
- }
97
-
98
- .in {
99
- max-height: 0px;
101
+ min-height: 0px; /* Required - the box must be allowed to grow from 0 */
100
102
  visibility: hidden;
101
- transition: max-height 1.4s ease-in-out, visibility 0s linear 1.4s;
102
- }
103
-
104
- .spec-in {
105
- transform: translate3d(0, -100%, 0);
106
- transition: transform 1.5s;
107
- z-index: -1;
108
- animation-timing-function: linear;
103
+ pointer-events: none;
109
104
  }
110
105
 
111
- .out {
112
- max-height: 100%;
106
+ :host([sliding]) {
107
+ max-height: none;
113
108
  visibility: visible;
114
- transition: max-height 1.4s ease-in-out, visibility 0s;
115
- }
116
-
117
- .spec-out {
118
- transform: translate3d(0, 0, 0);
119
- transition: transform 2.2s;
120
- z-index: -1;
121
- animation-timing-function: linear;
122
- }
123
-
124
- @media (prefers-reduced-motion: reduce) {
125
- :host,
126
- .in,
127
- .out,
128
- .spec-in,
129
- .spec-out {
130
- transition-duration: 0s;
131
- animation-duration: 0s;
132
- }
109
+ pointer-events: auto;
133
110
  }
134
111
 
135
112
  `;
136
113
  export const hostCollapse = css `
137
114
 
138
- :host {
139
- transition: max-height 1.4s ease-in-out;
140
- }
141
-
142
115
  :host([animation]) {
143
116
  max-height: 100%;
144
- transition: max-height 1.4s ease-in-out;
145
117
  }
146
118
 
147
119
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"animation.js","sourceRoot":"","sources":["../../../typescript/webcomponents/css/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAIrC,MAAM,CAAC,MAAM,SAAS,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmFvC,CAAC;AAGF,MAAM,CAAC,MAAM,WAAW,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDzC,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAe,GAAG,CAAA;;;;;;;;;;;CAW1C,CAAC"}
1
+ {"version":3,"file":"animation.js","sourceRoot":"","sources":["../../../typescript/webcomponents/css/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAQrC,MAAM,CAAC,MAAM,SAAS,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FvC,CAAC;AAMF,MAAM,CAAC,MAAM,WAAW,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;CAezC,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAe,GAAG,CAAA;;;;;;CAM1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,SAqDzB,CAAC"}
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,SAmDzB,CAAC"}
@@ -2,30 +2,27 @@ import { css } from "lit";
2
2
  export const drawerStyle = css `
3
3
 
4
4
  :host {
5
- position: var(--pwa_drawer_position, absolute);
6
- z-index: 4;
7
- overflow: hidden;
8
- height: auto;
5
+ /* Required - stay where the tag is. Height 0 so a closed drawer takes no space. */
6
+ position: var(--pwa_drawer_position, relative);
7
+ display: block;
8
+ height: 0;
9
+ overflow: visible;
9
10
  width: 100%;
10
11
  box-sizing: border-box;
11
12
  -webkit-box-sizing: border-box;
12
- display: grid;
13
- padding-top: env(safe-area-inset-top);
14
13
  max-width: 100%; /* Required - fit 320px */
15
14
  min-width: 0;
15
+ background-color: var(--pwa_background, var(--pwa_drawer_background_color, #fff));
16
16
  }
17
17
 
18
- :host([drawer]) {
19
- /* Required - opaque sheet at 320px so the page does not show through */
20
- left: 0;
21
- right: 0;
18
+ :host([drawer]),
19
+ :host([sliding]) {
20
+ /* Required - the overlay beats the content that follows the tag. */
22
21
  z-index: 5;
23
- background-color: var(--pwa_drawer_background_color, #fffdf8);
24
- box-shadow: 0 18px 40px rgba(28, 36, 48, 0.16);
25
22
  }
26
23
 
27
24
  .userDrawer > .spec > .wrapper {
28
- margin: 20px 8px 12px; /* Required - space under the drawer header */
25
+ margin: 20px 0 12px; /* Required - space under the header. Side gap is --pwa_inset on the form. */
29
26
  }
30
27
 
31
28
  .userDrawer,
@@ -47,9 +44,10 @@ export const drawerStyle = css `
47
44
  height: auto;
48
45
  border-bottom: var(--pwa_drawer_border, 0);
49
46
  z-index: var(--pwa_drawer_z-index, 3);
50
- background-color: var(--pwa_drawer_background_color, #fffdf8);
47
+ background-color: var(--pwa_background, var(--pwa_drawer_background_color, #fff));
51
48
  color: var(--pwa_drawer_text_color, #1c2430);
52
49
  border-radius: var(--pwa_drawer_border-radius, 0 0 18px 18px);
50
+ padding-top: env(safe-area-inset-top);
53
51
  }
54
52
 
55
53
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDxC,CAAC"}
1
+ {"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDxC,CAAC"}
@@ -6,7 +6,7 @@ export const exitStyle = css `
6
6
  grid-template-columns: minmax(var(--pwa_tap, 44px), 80px) minmax(0, 1fr) minmax(var(--pwa_tap, 44px), 80px); /* Required - fit 320px */
7
7
  padding: 12px 8px;
8
8
  z-index: 2;
9
- background-color: var(--pwa_drawer_background_color, #fffdf8);
9
+ background-color: var(--pwa_background, var(--pwa_drawer_background_color, #fff));
10
10
  border-bottom: 1px solid var(--pwa_line_color, #e3daca);
11
11
  }
12
12
 
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SAqCvB,CAAC"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SA4CvB,CAAC"}
@@ -6,9 +6,12 @@ export const lineStyle = css `
6
6
  min-height: var(--pwa_tap, 44px); /* Required - minimum tap target */
7
7
  display: block;
8
8
  box-sizing: border-box;
9
- width: auto;
9
+ /* Required - same centered column as the form controls. */
10
+ width: max(0px, calc(min(100%, var(--pwa_max_width, 400px)) - 2 * var(--pwa_inset, 0px)));
11
+ max-width: 100%;
12
+ min-width: 0;
10
13
  padding: 12px 16px;
11
- margin: 12px 16px;
14
+ margin: 12px auto;
12
15
  border: 1px solid var(--pwa_line_color, #e3daca);
13
16
  border-radius: 10px;
14
17
  color: var(--pwa_drawer_text_color, #1c2430);
@@ -26,8 +29,12 @@ export const lineStyle = css `
26
29
  display: block;
27
30
  box-sizing: border-box;
28
31
  cursor: pointer;
32
+ /* Required - same centered column as the form controls. */
33
+ width: max(0px, calc(min(100%, var(--pwa_max_width, 400px)) - 2 * var(--pwa_inset, 0px)));
34
+ max-width: 100%;
35
+ min-width: 0;
29
36
  padding: 12px 16px;
30
- margin: 8px 16px 16px;
37
+ margin: 8px auto 16px;
31
38
  border: 1px solid var(--pwa_line_color, #e3daca);
32
39
  border-radius: 10px;
33
40
  background: transparent;
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCtC,CAAC"}
1
+ {"version":3,"file":"paragraph.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CtC,CAAC"}
@@ -46,18 +46,43 @@ export declare class UserDrawer extends UserDrawer_base {
46
46
  private notice;
47
47
  private user;
48
48
  private signup;
49
+ private sliding;
50
+ private motion;
51
+ private clipHeight;
52
+ private sheetShift;
53
+ private rollMotion;
54
+ private booted;
49
55
  private wasOpen;
50
56
  private sawOpen;
51
57
  private returnFocus;
52
58
  private stopNotice;
59
+ private heldHeight;
60
+ private columnWidth;
61
+ private columnObserver;
53
62
  constructor();
54
63
  connectedCallback(): void;
55
64
  disconnectedCallback(): void;
56
65
  stateChanged(state: AppState): void;
66
+ protected willUpdate(changed: PropertyValues): void;
57
67
  protected updated(changed: PropertyValues): void;
68
+ private clip;
69
+ private sheet;
70
+ private reduced;
71
+ private restShut;
72
+ private restOpen;
73
+ private clipStyle;
74
+ private sheetStyle;
75
+ private unroll;
76
+ private rollUp;
77
+ private sheetPx;
78
+ private rollBetween;
79
+ private onClipEnd;
58
80
  private onKey;
59
81
  private onLightClick;
60
82
  protected firstUpdated(): void;
83
+ private placeAnchor;
84
+ private watchColumn;
85
+ private onColumnResize;
61
86
  static get styles(): CSSResultArray;
62
87
  protected render(): import("lit-html").TemplateResult<1>;
63
88
  private destination;
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAQ,KAAK,CAAC;AAI9E,OAAO,EAAS,QAAQ,EAAE,MAAO,gBAAgB,CAAC;AAwBlD,OAAO,6BAA6B,CAAC;AAErC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAI3B,qBACa,UAAW,SAAQ,eAA0B;IAGR,GAAG,SAAM;IAGQ,MAAM,UAAS;IAGf,SAAS,UAAS;IAGR,UAAU,UAAS;IAErF,OAAO,CAAC,IAAI,CAAc;IAC1B,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,IAAI,CAAiB;IAC7B,OAAO,CAAC,MAAM,CAAe;IAEtC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,UAAU,CAA6B;;IAItC,iBAAiB,IAAI,IAAI;IASzB,oBAAoB,IAAI,IAAI;IAQrC,YAAY,CAAC,KAAK,EAAE,QAAQ;IAkB5B,SAAS,CAAC,OAA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