pwa-auth 1.2.3 → 2.0.2
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 +8 -0
- package/README.md +84 -43
- package/demo/index.html +72 -34
- package/deploy/css/form/button.d.ts.map +1 -1
- package/deploy/css/form/button.js +0 -14
- package/deploy/css/form/list.d.ts.map +1 -1
- package/deploy/css/form/list.js +11 -1
- package/deploy/custom-elements/drawer/css/drawer.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/css/drawer.js +38 -8
- package/deploy/custom-elements/drawer/css/exit.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/css/exit.js +3 -2
- package/deploy/custom-elements/drawer/css/paragraph.js +3 -3
- package/deploy/custom-elements/drawer/css/toggle.d.ts +3 -0
- package/deploy/custom-elements/drawer/css/toggle.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/css/toggle.js +18 -0
- package/deploy/custom-elements/drawer/drawer.d.ts +2 -2
- package/deploy/custom-elements/drawer/drawer.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/drawer.js +10 -44
- package/deploy/custom-elements/drawer/input/login.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/input/login.js +11 -7
- package/deploy/custom-elements/drawer/input/sign-up.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/input/sign-up.js +12 -9
- package/deploy/custom-elements/icon/css/icon.d.ts.map +1 -1
- package/deploy/custom-elements/icon/css/icon.js +28 -30
- package/deploy/custom-elements/icon/icon.d.ts +1 -1
- package/deploy/custom-elements/icon/icon.d.ts.map +1 -1
- package/deploy/custom-elements/icon/icon.js +8 -16
- package/deploy/custom-elements/settings/css/navigation.d.ts.map +1 -1
- package/deploy/custom-elements/settings/css/navigation.js +1 -11
- package/npm/pwa-auth.js +1 -1
- package/package.json +1 -1
- package/deploy/custom-elements/drawer/css/old/visibility.d.ts +0 -3
- package/deploy/custom-elements/drawer/css/old/visibility.d.ts.map +0 -1
- package/deploy/custom-elements/drawer/css/old/visibility.js +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,14 @@ Removed - for now removed features.
|
|
|
12
12
|
Fixed - for any bug fixes.
|
|
13
13
|
Security - in case of vulnerabilities.
|
|
14
14
|
|
|
15
|
+
# [1.2.4] - 2025-08-31
|
|
16
|
+
|
|
17
|
+
## Changed
|
|
18
|
+
- user-icon: property namespace: subscribe
|
|
19
|
+
- user-drawer: property namespace: subscribe, settingsURL
|
|
20
|
+
- updated ReadMe File
|
|
21
|
+
- updated CSS Custom Properties
|
|
22
|
+
|
|
15
23
|
# [1.1.6] - 2025-08-25
|
|
16
24
|
|
|
17
25
|
## Changed
|
package/README.md
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
Progressive Website Application - Authentication
|
|
2
2
|
======================
|
|
3
|
-
|
|
4
|
-
# PWA-Auth Components [Demo](https://pwa-authentic.firebaseapp.com)
|
|
5
3
|
Hello, and welcome to Jack's Publishing of Custom HTML Elements.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
pwa-auth.js is a bundle of 3 Custom HTML Elements for Firebase (IAM) Authenication using email and password, with the ability to change username, icon, email, password, or delete your own account and it's content all together.
|
|
8
6
|
|
|
9
7
|
You will learn how to reference, initialize, and place 3 Custom HTML Tags for use. By either <b>Standard</b> or <b>Modular</b> ECMA Script.
|
|
10
8
|
|
|
@@ -20,10 +18,12 @@ Continue reading to start installing the bundle:
|
|
|
20
18
|
- Color Scheme: CSS Custom Properties
|
|
21
19
|
- Firebase Initialization
|
|
22
20
|
|
|
21
|
+
[Live Demo](https://pwa-authentic.firebaseapp.com)
|
|
22
|
+
|
|
23
23
|
## Standard, Namespaced JavaScript
|
|
24
24
|
- copy the bundle: node_modules/pwa-auth/npm/pwa-auth.js
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Modular JavaScript
|
|
27
27
|
```javascript
|
|
28
28
|
import 'pwa-auth';
|
|
29
29
|
```
|
|
@@ -54,18 +54,24 @@ import 'pwa-auth';
|
|
|
54
54
|
|
|
55
55
|
## Custom Elements
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
```html
|
|
58
|
+
<user-icon subscribe></user-icon>
|
|
59
|
+
```
|
|
58
60
|
- Login Word Button - State
|
|
59
61
|
- 1 Photo Icon Display - State
|
|
60
62
|
|
|
61
|
-
|
|
63
|
+
```html
|
|
64
|
+
<user-drawer subscribe settingsURL=""></user-drawer>
|
|
65
|
+
```
|
|
62
66
|
- Drop-down
|
|
63
67
|
- Sign-up by Email Addresses and Password
|
|
64
68
|
- Sign-in by Email Addresses and Password
|
|
65
69
|
- logged-in state
|
|
66
70
|
- logged-out state
|
|
67
71
|
|
|
68
|
-
|
|
72
|
+
```html
|
|
73
|
+
<user-settings></user-settings>
|
|
74
|
+
```
|
|
69
75
|
- 1 Photo Upload
|
|
70
76
|
- Unavailable Photo
|
|
71
77
|
- Update Username
|
|
@@ -76,15 +82,15 @@ import 'pwa-auth';
|
|
|
76
82
|
# Website Setup:
|
|
77
83
|
```html
|
|
78
84
|
<header>
|
|
79
|
-
<!--
|
|
80
|
-
<!--
|
|
81
|
-
<user-icon
|
|
85
|
+
<!-- subscribe: Indicate the 'register' boolean for 'subscribe state' -->
|
|
86
|
+
<!-- subscribe: else 'login state' -->
|
|
87
|
+
<user-icon subscribe></user-icon>
|
|
82
88
|
</header>
|
|
83
89
|
|
|
84
|
-
<!--
|
|
85
|
-
<!--
|
|
86
|
-
<!--
|
|
87
|
-
<user-drawer
|
|
90
|
+
<!-- settingsURL: where the <pwa-settings> Tag will be placed-->
|
|
91
|
+
<!-- subscribe: boolean for 'subscribe state' -->
|
|
92
|
+
<!-- subscribe: else 'login state' -->
|
|
93
|
+
<user-drawer subscribe settingsURL="/settings"></user-drawer>
|
|
88
94
|
|
|
89
95
|
<main>
|
|
90
96
|
<user-settings></user-settings>
|
|
@@ -117,47 +123,82 @@ import 'pwa-auth';
|
|
|
117
123
|
<!-- CSS: Custom Variables -->
|
|
118
124
|
<!-- Place this txt into your document -->
|
|
119
125
|
<style>
|
|
120
|
-
|
|
121
|
-
:root {
|
|
122
126
|
|
|
123
|
-
|
|
127
|
+
:root {
|
|
128
|
+
|
|
129
|
+
/* WebComponent 1 : User Icon
|
|
130
|
+
<user-icon>
|
|
131
|
+
<button> */
|
|
132
|
+
--pwa_icon_hover: lightgrey;
|
|
133
|
+
--pwa_icon_background: #6cc04a;
|
|
134
|
+
--pwa_icon_border: 2px solid black;
|
|
135
|
+
|
|
136
|
+
/* WebComponent 1: logged-out
|
|
137
|
+
<user-icon>
|
|
138
|
+
<button class="login"> */
|
|
139
|
+
--pwa_icon_height: 32px;
|
|
140
|
+
--pwa_icon_padding: 0px 16px;
|
|
141
|
+
--pwa_icon_radius: 6px;
|
|
142
|
+
--pwa_icon_font: 'Arial', sans-serif;
|
|
143
|
+
|
|
144
|
+
/* WebComponent 1: logged-in
|
|
145
|
+
<user-icon>
|
|
146
|
+
<button class="icon"> */
|
|
147
|
+
--pwa_icon_diameter: 40px;
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
/* WebComponent 2: Drop-down Drawer
|
|
152
|
+
<user-drawer>
|
|
153
|
+
<section>
|
|
154
|
+
<header></header>
|
|
155
|
+
<div class="spec"> */
|
|
156
|
+
--pwa_drawer_border: 3px #303030 solid;
|
|
157
|
+
--pwa_drawer_z-index: 2;
|
|
158
|
+
--pwa_drawer_border-radius: 20px;
|
|
159
|
+
|
|
160
|
+
/* WebComponent 2: Drop-down Drawer - logged-out
|
|
161
|
+
<div class="spec"> */
|
|
162
|
+
--pwa_drawer_text_color: #303030;
|
|
163
|
+
--pwa_drawer_background_color: #fff;
|
|
164
|
+
|
|
165
|
+
/* WebComponent 2: Drop-down Drawer - logged-in
|
|
166
|
+
<div class="spec" on> */
|
|
124
167
|
|
|
125
|
-
/* Top Border Color */
|
|
126
|
-
--pwa_divider: grey;
|
|
127
168
|
|
|
128
|
-
/* Section Header Color */
|
|
129
|
-
--pwa_section_header: black;
|
|
130
169
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
170
|
+
/* WebComponent 3: Settings Page
|
|
171
|
+
<user-settings>
|
|
172
|
+
<nav></nav>
|
|
173
|
+
<section></section> */
|
|
174
|
+
--pwa_settings_background: white;
|
|
175
|
+
--pwa_divider: black;
|
|
134
176
|
|
|
135
|
-
|
|
136
|
-
|
|
177
|
+
/* Navigation */
|
|
178
|
+
--pwa_nav_button: grey;
|
|
179
|
+
--pwa_nav_select: black;
|
|
137
180
|
|
|
138
|
-
|
|
139
|
-
|
|
181
|
+
/* Section Header */
|
|
182
|
+
--pwa_section_header: black;
|
|
140
183
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
--pwa_action_background_color: #6cc04a;
|
|
144
|
-
--pwa_action_border_color: #60b23e;
|
|
184
|
+
/* Label */
|
|
185
|
+
--pwa_label_text_color: black;
|
|
145
186
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
--pwa_drawer_background_color: #fff;
|
|
187
|
+
/* Input */
|
|
188
|
+
--pwa_input_background: #E1E5EB;
|
|
149
189
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
190
|
+
/* Button */
|
|
191
|
+
--pwa_action_text_color: #fff;
|
|
192
|
+
--pwa_action_background_color: #6cc04a;
|
|
193
|
+
--pwa_action_border_color: #60b23e;
|
|
153
194
|
|
|
154
|
-
|
|
195
|
+
}
|
|
155
196
|
|
|
156
|
-
|
|
157
|
-
|
|
197
|
+
/* Dark Theme */
|
|
198
|
+
@media (prefers-color-scheme: dark) { /* etc. */ }
|
|
158
199
|
|
|
159
|
-
|
|
160
|
-
|
|
200
|
+
/* Light Theme */
|
|
201
|
+
@media (prefers-color-scheme: light) { /* etc. */ }
|
|
161
202
|
|
|
162
203
|
</style>
|
|
163
204
|
```
|
package/demo/index.html
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
+
|
|
2
3
|
<html lang="en">
|
|
4
|
+
|
|
3
5
|
<head>
|
|
4
6
|
|
|
5
7
|
<meta charset="UTF-8">
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
<!-- HTTPS REFERRER TAG-->
|
|
21
23
|
<meta name="referrer" content="origin" />
|
|
22
24
|
<!-- MANIFEST -->
|
|
23
|
-
<link rel="manifest" href="manifest.json" />
|
|
25
|
+
<link rel="manifest" href="public/manifest.json" />
|
|
24
26
|
<!-- FAVICON -->
|
|
25
27
|
<link rel="icon" href="images/favicon.ico">
|
|
26
28
|
|
|
@@ -37,7 +39,7 @@
|
|
|
37
39
|
|
|
38
40
|
</head>
|
|
39
41
|
<!-- End Head -->
|
|
40
|
-
|
|
42
|
+
|
|
41
43
|
<!-- Start Body -->
|
|
42
44
|
<body>
|
|
43
45
|
|
|
@@ -47,12 +49,12 @@
|
|
|
47
49
|
<iframe src="https://github.com/sponsors/busynest/button" title="Sponsor busynest" height="32" width="114" style="border: 0; border-radius: 6px; margin: auto 0 auto 0;"></iframe>
|
|
48
50
|
|
|
49
51
|
<!-- Icon Tag -->
|
|
50
|
-
<user-icon
|
|
52
|
+
<user-icon subscribe></user-icon>
|
|
51
53
|
|
|
52
54
|
</header>
|
|
53
55
|
|
|
54
56
|
<!-- Drawer Tag-->
|
|
55
|
-
<user-drawer
|
|
57
|
+
<user-drawer subscribe settingsURL="/demo/settings"></user-drawer>
|
|
56
58
|
|
|
57
59
|
<main>
|
|
58
60
|
|
|
@@ -63,47 +65,82 @@
|
|
|
63
65
|
|
|
64
66
|
<!-- CSS: Custom Variables: <head> tag -->
|
|
65
67
|
<style>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
|
|
69
|
+
:root {
|
|
68
70
|
|
|
69
|
-
|
|
71
|
+
/* WebComponent 1 : User Icon
|
|
72
|
+
<user-icon>
|
|
73
|
+
<button> */
|
|
74
|
+
--pwa_icon_hover: lightgrey;
|
|
75
|
+
--pwa_icon_background: #6cc04a;
|
|
76
|
+
--pwa_icon_border: 2px solid black;
|
|
70
77
|
|
|
71
|
-
|
|
72
|
-
|
|
78
|
+
/* WebComponent 1: logged-out
|
|
79
|
+
<user-icon>
|
|
80
|
+
<button class="login"> */
|
|
81
|
+
--pwa_icon_height: 32px;
|
|
82
|
+
--pwa_icon_padding: 0px 16px;
|
|
83
|
+
--pwa_icon_radius: 6px;
|
|
84
|
+
--pwa_icon_font: 'Arial', sans-serif;
|
|
73
85
|
|
|
74
|
-
|
|
75
|
-
|
|
86
|
+
/* WebComponent 1: logged-in
|
|
87
|
+
<user-icon>
|
|
88
|
+
<button class="icon"> */
|
|
89
|
+
--pwa_icon_diameter: 40px;
|
|
76
90
|
|
|
77
|
-
/* Navigation Colors */
|
|
78
|
-
--pwa_nav_button: grey;
|
|
79
|
-
--pwa_nav_select: black;
|
|
80
91
|
|
|
81
|
-
/* Label Color */
|
|
82
|
-
--pwa_label_text_color: black;
|
|
83
92
|
|
|
84
|
-
|
|
85
|
-
|
|
93
|
+
/* WebComponent 2: Drop-down Drawer
|
|
94
|
+
<user-drawer>
|
|
95
|
+
<section>
|
|
96
|
+
<header></header>
|
|
97
|
+
<div class="spec"> */
|
|
98
|
+
--pwa_drawer_border: 3px #303030 solid;
|
|
99
|
+
--pwa_drawer_z-index: 2;
|
|
100
|
+
--pwa_drawer_border-radius: 20px;
|
|
86
101
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
102
|
+
/* WebComponent 2: Drop-down Drawer - logged-out
|
|
103
|
+
<div class="spec"> */
|
|
104
|
+
--pwa_drawer_text_color: #303030;
|
|
105
|
+
--pwa_drawer_background_color: #fff;
|
|
91
106
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
--pwa_drawer_background_color: #fff;
|
|
107
|
+
/* WebComponent 2: Drop-down Drawer - logged-in
|
|
108
|
+
<div class="spec" on> */
|
|
95
109
|
|
|
96
|
-
/* Icon Colors */
|
|
97
|
-
--pwa_icon_background: #6cc04a;
|
|
98
|
-
--pwa_icon_hover: lightgrey;
|
|
99
110
|
|
|
100
|
-
}
|
|
101
111
|
|
|
102
|
-
/*
|
|
103
|
-
|
|
112
|
+
/* WebComponent 3: Settings Page
|
|
113
|
+
<user-settings>
|
|
114
|
+
<nav></nav>
|
|
115
|
+
<section></section> */
|
|
116
|
+
--pwa_settings_background: white;
|
|
117
|
+
--pwa_divider: black;
|
|
118
|
+
|
|
119
|
+
/* Navigation */
|
|
120
|
+
--pwa_nav_button: grey;
|
|
121
|
+
--pwa_nav_select: black;
|
|
122
|
+
|
|
123
|
+
/* Section Header */
|
|
124
|
+
--pwa_section_header: black;
|
|
125
|
+
|
|
126
|
+
/* Label */
|
|
127
|
+
--pwa_label_text_color: black;
|
|
104
128
|
|
|
105
|
-
/*
|
|
106
|
-
|
|
129
|
+
/* Input */
|
|
130
|
+
--pwa_input_background: #E1E5EB;
|
|
131
|
+
|
|
132
|
+
/* Button */
|
|
133
|
+
--pwa_action_text_color: #fff;
|
|
134
|
+
--pwa_action_background_color: #6cc04a;
|
|
135
|
+
--pwa_action_border_color: #60b23e;
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Dark Theme */
|
|
140
|
+
@media (prefers-color-scheme: dark) { }
|
|
141
|
+
|
|
142
|
+
/* Light Theme */
|
|
143
|
+
@media (prefers-color-scheme: light) { }
|
|
107
144
|
|
|
108
145
|
</style>
|
|
109
146
|
|
|
@@ -126,6 +163,7 @@
|
|
|
126
163
|
|
|
127
164
|
<!-- Application Shell -->
|
|
128
165
|
<script type="module" src="pwa-auth.js" async></script>
|
|
129
|
-
|
|
166
|
+
|
|
130
167
|
</body>
|
|
168
|
+
|
|
131
169
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/css/form/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/css/form/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,eAAO,MAAM,WAAW,EAAE,SAoDzB,CAAC"}
|
|
@@ -51,18 +51,4 @@ export const buttonStyle = css `
|
|
|
51
51
|
cursor: pointer;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
/* Switch Login / Sign-up Button */
|
|
55
|
-
.new {
|
|
56
|
-
padding: 12px;
|
|
57
|
-
border-radius: 4px;
|
|
58
|
-
appearance: none;
|
|
59
|
-
background-color: transparent;
|
|
60
|
-
border: 0px;
|
|
61
|
-
color: inherit;
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
text-decoration: underline;
|
|
64
|
-
font-size: small;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
54
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/css/form/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/css/form/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SAoBvB,CAAC"}
|
package/deploy/css/form/list.js
CHANGED
|
@@ -7,6 +7,16 @@ export const listStyle = css `
|
|
|
7
7
|
margin: 0;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
li {
|
|
10
|
+
li {
|
|
11
|
+
display: grid;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.divider {
|
|
15
|
+
border-top: 2px dotted black;
|
|
16
|
+
border-bottom: 2px dotted black;
|
|
17
|
+
text-align: center;
|
|
18
|
+
width: 80%;
|
|
19
|
+
margin: auto;
|
|
20
|
+
}
|
|
11
21
|
|
|
12
22
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,SAqDzB,CAAC"}
|
|
@@ -1,25 +1,55 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
export const drawerStyle = css `
|
|
3
3
|
|
|
4
|
+
/* <user-drawer> : parent container */
|
|
5
|
+
:host {
|
|
6
|
+
position: absolute;
|
|
7
|
+
max-height: 0px;
|
|
8
|
+
transition: max-height 1.4s ease-out;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
height: auto;
|
|
11
|
+
display: grid;
|
|
12
|
+
padding-top: env(safe-area-inset-top);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host([drawer]) {
|
|
16
|
+
transition-duration: 1.4s;
|
|
17
|
+
max-height: 100%;
|
|
18
|
+
transition: max-height 1.4s ease-out;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* wrapper : child container*/
|
|
4
22
|
.userDrawer {
|
|
5
|
-
|
|
6
|
-
|
|
23
|
+
position: fixed;
|
|
24
|
+
top: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
transition-duration: 1.4s;
|
|
28
|
+
border: var(--pwa_drawer_border);
|
|
29
|
+
z-index: var(--pwa_drawer_z-index);
|
|
30
|
+
overflow: hidden;
|
|
7
31
|
background-color: var(--pwa_drawer_background_color);
|
|
8
32
|
color: var(--pwa_drawer_text_color);
|
|
9
33
|
box-sizing: border-box;
|
|
10
|
-
border:
|
|
11
|
-
border-radius: 20px;
|
|
34
|
+
border-radius: var(--pwa_drawer_border-radius);
|
|
12
35
|
height: auto;
|
|
36
|
+
transition-property: visibility, max-height;
|
|
13
37
|
}
|
|
14
38
|
|
|
39
|
+
/* wrapper closed */
|
|
15
40
|
.closed {
|
|
16
|
-
max-height:
|
|
17
|
-
transition: max-height
|
|
41
|
+
max-height: 0px;
|
|
42
|
+
transition: max-height 1.4s ease-out;
|
|
43
|
+
visibility: hidden;
|
|
44
|
+
transition-property: visibility, max-height;
|
|
18
45
|
}
|
|
19
46
|
|
|
47
|
+
/* wrapper opened */
|
|
20
48
|
.opened {
|
|
21
|
-
max-height:
|
|
22
|
-
transition: max-height
|
|
49
|
+
max-height: 100%;
|
|
50
|
+
transition: max-height 1.4s ease-out;
|
|
51
|
+
visibility: visible;
|
|
52
|
+
transition-property: visibility, max-height;
|
|
23
53
|
}
|
|
24
54
|
|
|
25
55
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SA8CvB,CAAC"}
|
|
@@ -16,6 +16,7 @@ export const exitStyle = css `
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.exit > .remove {
|
|
19
|
+
cursor: pointer;
|
|
19
20
|
background-color: transparent;
|
|
20
21
|
border: 0px;
|
|
21
22
|
color: red;
|
|
@@ -24,7 +25,7 @@ export const exitStyle = css `
|
|
|
24
25
|
text-transform: uppercase;
|
|
25
26
|
opacity: .6;
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
+
/*
|
|
28
29
|
.exit > .refresh {
|
|
29
30
|
background-color: transparent;
|
|
30
31
|
border: 0px;
|
|
@@ -33,7 +34,7 @@ export const exitStyle = css `
|
|
|
33
34
|
width: 36px;
|
|
34
35
|
padding: 0px;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
+
*/
|
|
37
38
|
.close {
|
|
38
39
|
height: 30px;
|
|
39
40
|
width: 42px;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/toggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,SAgBzB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const toggleStyle = css `
|
|
3
|
+
|
|
4
|
+
/* Switch Login / Sign-up Button */
|
|
5
|
+
.new {
|
|
6
|
+
padding: 12px;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
appearance: none;
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
border: 0px;
|
|
11
|
+
color: inherit;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
text-decoration: underline;
|
|
14
|
+
font-size: small;
|
|
15
|
+
line-height: 42px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
`;
|
|
@@ -16,9 +16,9 @@ declare const UserDrawer_base: (new (...args: any[]) => {
|
|
|
16
16
|
readonly isConnected: boolean;
|
|
17
17
|
}) & typeof LitElement;
|
|
18
18
|
export declare class UserDrawer extends UserDrawer_base {
|
|
19
|
-
private
|
|
19
|
+
private settingsURL;
|
|
20
20
|
drawer: boolean;
|
|
21
|
-
|
|
21
|
+
subscribe: boolean;
|
|
22
22
|
private _name;
|
|
23
23
|
private _log;
|
|
24
24
|
private _sign;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAQ,UAAU,EAAE,MAAQ,KAAK,CAAC;AAGzD,OAAO,EAAS,QAAQ,EAAE,MAAyB,aAAa,CAAC;AAajE,OAAO,eAAe,CAAC;AACvB,OAAO,iBAAiB,CAAC;;;;;;;;;;;;;;AAEzB,qBACa,UAAW,SAAQ,eAA0B;IAGf,OAAO,CAAC,WAAW,CAAM;IAGD,MAAM,UAAS;IAGf,SAAS,UAAS;IAE1E,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,IAAI,CAAiB;IAC7B,OAAO,CAAC,KAAK,CAAgB;;IAItC,YAAY,CAAC,KAAK,EAAE,QAAQ;IAO5B,SAAS,CAAC,YAAY;IAatB,MAAM,KAAK,MAAM,IAAI,cAAc,CAOhC;IAEH,SAAS,CAAC,MAAM;CA+CjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,aAAa,EAAE,UAAU,CAAC;KAC7B;CACF"}
|