pwa-auth 3.3.6 → 3.3.8
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/README.md +181 -179
- package/base/webcomponents/css/animation.js +6 -4
- package/base/webcomponents/css/animation.js.map +1 -1
- package/base/webcomponents/drawer/css/drawer.js +30 -11
- package/base/webcomponents/drawer/css/drawer.js.map +1 -1
- package/base/webcomponents/drawer/css/exit.js +6 -0
- package/base/webcomponents/drawer/css/exit.js.map +1 -1
- package/base/webcomponents/drawer/drawer.js +2 -2
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/base/webcomponents/form/css/button.js +1 -1
- package/base/webcomponents/form/css/input.js +2 -2
- package/base/webcomponents/form/css/label.js +2 -1
- package/base/webcomponents/form/css/label.js.map +1 -1
- package/base/webcomponents/form/css/toggle.js +4 -2
- package/base/webcomponents/form/css/toggle.js.map +1 -1
- package/base/webcomponents/form/login.js +9 -5
- package/base/webcomponents/form/login.js.map +1 -1
- package/base/webcomponents/form/signup.js +9 -5
- package/base/webcomponents/form/signup.js.map +1 -1
- package/base/webcomponents/icon/css/icon.js +2 -2
- package/base/webcomponents/login/css/auth.js +3 -1
- package/base/webcomponents/login/css/auth.js.map +1 -1
- package/base/webcomponents/login/page.js +1 -1
- package/base/webcomponents/settings/css/navigation.js +22 -2
- package/base/webcomponents/settings/css/navigation.js.map +1 -1
- package/base/webcomponents/settings/input/uploader.js +2 -1
- package/base/webcomponents/settings/input/uploader.js.map +1 -1
- package/base/webcomponents/settings/settings.js +0 -11
- package/base/webcomponents/settings/settings.js.map +1 -1
- package/package.json +32 -25
- package/source/pwa-auth.js +106 -56
package/README.md
CHANGED
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
Progressive Website Application - Authentication
|
|
2
2
|
======================
|
|
3
|
-
Jack's Publishing maintains
|
|
4
|
-
|
|
5
|
-
Visit the [Live Demo](https://pwa-authentic.firebaseapp.com)
|
|
3
|
+
Jack's Publishing maintains Website Authentication Components where developers can focus on their User interface, rather than low-level API calls. Visit the [Live Demo](https://pwa-authentic.firebaseapp.com)
|
|
6
4
|
|
|
7
5
|
pwa-auth.js is a bundle of 5 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
|
+
Quickly sign-up, log-in, log-out, modify, or delete your firebase account.
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
Place 5 Custom HTML Tags, reference CSS, and Initialize a Firebase Instance. By either <b>Standard</b> or <b>Modular</b> ECMA Script.
|
|
12
10
|
|
|
13
11
|
Continue reading to understand how to install this project:
|
|
14
12
|
|
|
15
|
-
##
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- CSS Custom Properties
|
|
13
|
+
## Library
|
|
14
|
+
```javascript
|
|
15
|
+
// ES - import Modules
|
|
16
|
+
import './pwa-auth';
|
|
17
|
+
|
|
18
|
+
// Optional - copy CoreJS
|
|
19
|
+
'npm/pwa-auth/source/**/*'
|
|
20
|
+
// - source/
|
|
21
|
+
// - pwa-auth.js
|
|
22
|
+
// - pwa-styles.css
|
|
23
|
+
// - empty.jpg
|
|
24
|
+
// - Third Party License .txt
|
|
25
|
+
```
|
|
29
26
|
|
|
30
|
-
##
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
27
|
+
## Prerequisites
|
|
28
|
+
- Google
|
|
29
|
+
- Analytics
|
|
30
|
+
- Firebase Authentication
|
|
31
|
+
- Email Login
|
|
32
|
+
- Firebase Cloud Storage
|
|
33
|
+
- Storage Bucket
|
|
35
34
|
|
|
36
35
|
## Technical Summary
|
|
37
36
|
- Type Strong with [TypeScript](https://www.typescriptlang.org)
|
|
@@ -40,26 +39,13 @@ Continue reading to understand how to install this project:
|
|
|
40
39
|
- Authentication with Google's [Firebase](https://www.firebase.com)
|
|
41
40
|
- Firebase Initialization Object: `window.process = { env: { FIREBASE_CONFIG: `
|
|
42
41
|
|
|
43
|
-
##
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
- Pages:
|
|
49
|
-
- `<user-settings>` Account Settings
|
|
50
|
-
- `<user-login>` Auth: Email Log-in / email Subscribe
|
|
51
|
-
- `<email-reset>` Password Reset
|
|
52
|
-
|
|
53
|
-
<!-- ## Entry Point / Content -->
|
|
54
|
-
|
|
55
|
-
## Abstraction Layer
|
|
56
|
-
- The Observer Patterns:
|
|
57
|
-
- Event emitters:
|
|
58
|
-
- Custom Events
|
|
59
|
-
|
|
60
|
-
<!-- ## Navigation -->
|
|
42
|
+
## Atomic Engineering
|
|
43
|
+
- Development (Server-side) Environment: [Node JavaScript](https://nodejs.org)
|
|
44
|
+
- Backend: Google Cloud: [Firebase](https://firebase.google.com/)
|
|
45
|
+
- Predicate State Behavior: [Redux](https://redux.js.org/)
|
|
46
|
+
- Frontend (Client-side): [Lit](https://lit.dev)
|
|
61
47
|
|
|
62
|
-
|
|
48
|
+
Outline:
|
|
63
49
|
- Register through Email and Password
|
|
64
50
|
- Log-in
|
|
65
51
|
- Log-out
|
|
@@ -69,84 +55,76 @@ Continue reading to understand how to install this project:
|
|
|
69
55
|
- Upload Profile Picture
|
|
70
56
|
- Delete Account
|
|
71
57
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
##
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
- Optional: Custom CSS Properties
|
|
141
|
-
```
|
|
58
|
+
## Enrichment
|
|
59
|
+
- Development
|
|
60
|
+
- Redux State Connection
|
|
61
|
+
- Global Functions
|
|
62
|
+
- Optional
|
|
63
|
+
- Custom Properties
|
|
64
|
+
|
|
65
|
+
## Website Components
|
|
66
|
+
- Button
|
|
67
|
+
- `<user-icon>`
|
|
68
|
+
- Email Log-in
|
|
69
|
+
- Email Subscribe
|
|
70
|
+
- Icon
|
|
71
|
+
- Drop-down Drawer
|
|
72
|
+
- `<user-drawer>`
|
|
73
|
+
- Email Log-in
|
|
74
|
+
- Email Subscribe
|
|
75
|
+
- Menu with Log-out
|
|
76
|
+
- Pages
|
|
77
|
+
- `<user-settings>`
|
|
78
|
+
- Account Settings Page
|
|
79
|
+
- `<user-login>`
|
|
80
|
+
- Email Log-in Page
|
|
81
|
+
- Email Subscribe Page
|
|
82
|
+
- `<email-reset>`
|
|
83
|
+
- Password Reset Page
|
|
84
|
+
|
|
85
|
+
## Observer Patterns
|
|
86
|
+
- `<user-icon>`
|
|
87
|
+
- property: subscribe: (Initial State): Subscribe
|
|
88
|
+
- property: subscribe: else (Initial State): Login
|
|
89
|
+
- property: empty: location of empty image
|
|
90
|
+
- `<user-drawer>`
|
|
91
|
+
- feature: Top-down drawer: 1.4 seconds
|
|
92
|
+
- property: url: location of `<pwa-settings>` Tag
|
|
93
|
+
- property: subscribe: (Initial State): Subscribe
|
|
94
|
+
- property: subscribe: else (Initial State): Login
|
|
95
|
+
- `<user-login>`
|
|
96
|
+
- feature: regular visible page component
|
|
97
|
+
- `<user-settings>`
|
|
98
|
+
- 1 Photo Upload Feature, view uploaded bucket of photos, photo ediotr
|
|
99
|
+
- empty property: location of empty image
|
|
100
|
+
- Unavailable Photo
|
|
101
|
+
- Update Username
|
|
102
|
+
- Update Email / Verify
|
|
103
|
+
- Update Password
|
|
104
|
+
- Delete Account, Photos, Information
|
|
105
|
+
|
|
106
|
+
## Logical States
|
|
107
|
+
- `<user-icon>`
|
|
108
|
+
- Logged-out: txt: Login Button
|
|
109
|
+
- Logged-out: txt: Subscribe Button
|
|
110
|
+
- Logged-in, photo: Icon Button
|
|
111
|
+
- `<user-drawer>`
|
|
112
|
+
- logged-out: Sign-up by Email Addresses and Password
|
|
113
|
+
- logged-out: Sign-in by Email Addresses and Password
|
|
114
|
+
- logged-in: Settings Page Link, Log-out Button
|
|
115
|
+
- `<user-login>`
|
|
116
|
+
- logged-out: Sign-up by Email Addresses and Password
|
|
117
|
+
- logged-out: Sign-in by Email Addresses and Password
|
|
118
|
+
- logged-in, content: `<slot></slot>`
|
|
119
|
+
|
|
120
|
+
Implementation
|
|
121
|
+
===
|
|
122
|
+
|
|
123
|
+
## Firebase Instance Configuration
|
|
124
|
+
pwa-auth.js is built upon the Firebase SDK (Software Development Kit).
|
|
125
|
+
The entire bundle is one instance of firebase that takes in the configuration information, internally.
|
|
142
126
|
|
|
143
127
|
## Boilerplate
|
|
144
|
-
For HTML projects, copy js bundle to disk
|
|
145
|
-
- source/
|
|
146
|
-
- pwa-auth.js
|
|
147
|
-
- pwa-auth.js.map
|
|
148
|
-
- pwa-styles.css
|
|
149
|
-
- empty.jpg
|
|
150
128
|
```html
|
|
151
129
|
<head>
|
|
152
130
|
|
|
@@ -171,10 +149,93 @@ For HTML projects, copy js bundle to disk
|
|
|
171
149
|
if (lolalhost) { window.process = { env: { FIREBASE_CONFIG: 'etc.' } } }
|
|
172
150
|
</script>
|
|
173
151
|
|
|
174
|
-
<!--
|
|
152
|
+
<!-- Optional: Copy the Project Files from 'source' Folder -->
|
|
175
153
|
<script type="module" src="./path_to/pwa-auth.js"></script>
|
|
176
154
|
|
|
155
|
+
<!-- Optional: Custom CSS Properties -->
|
|
156
|
+
<style>
|
|
157
|
+
|
|
158
|
+
/* <user-icon> */
|
|
159
|
+
:root {
|
|
160
|
+
--pwa_icon_background_color: #6cc04a;
|
|
161
|
+
--pwa_icon_radius: 6px;
|
|
162
|
+
--pwa_icon_border: 2px solid black;
|
|
163
|
+
--pwa_icon_padding: 0px 16px;
|
|
164
|
+
--pwa_icon_hover_color: lightgrey;
|
|
165
|
+
--pwa_icon_font: 'Arial', sans-serif;
|
|
166
|
+
--pwa_icon_height: 32px; /* state: Logged-out (sync) */
|
|
167
|
+
--pwa_icon_diameter: 32px; /* state: Logged-in (sync) */
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* <user-drawer> */
|
|
171
|
+
:root {
|
|
172
|
+
--pwa_drawer_background_color: #fff;
|
|
173
|
+
--pwa_drawer_border-radius: 0px;
|
|
174
|
+
--pwa_drawer_border: 3px #303030 solid;
|
|
175
|
+
--pwa_drawer_z-index: 2;
|
|
176
|
+
--pwa_drawer_text_color: #303030;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* <user-settings> */
|
|
180
|
+
:root {
|
|
181
|
+
--pwa_settings_background_color: grey;
|
|
182
|
+
|
|
183
|
+
--pwa_nav_button_color: grey;
|
|
184
|
+
--pwa_nav_highlight_color: black;
|
|
185
|
+
|
|
186
|
+
--pwa_divider_color: grey;
|
|
187
|
+
--pwa_header_color: black;
|
|
188
|
+
|
|
189
|
+
--pwa_input_background_color: #E1E5EB;
|
|
190
|
+
|
|
191
|
+
--pwa_label_text_color: black;
|
|
192
|
+
|
|
193
|
+
--pwa_button_text_color: #fff;
|
|
194
|
+
--pwa_button_background_color: #6cc04a;
|
|
195
|
+
--pwa_button_border_color: #60b23e;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* shared core elements */
|
|
199
|
+
:root {
|
|
200
|
+
--section_background_color: white;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
</style>
|
|
204
|
+
|
|
177
205
|
</head>
|
|
206
|
+
|
|
207
|
+
<body>
|
|
208
|
+
<user-icon>
|
|
209
|
+
<user-drawer>
|
|
210
|
+
<user-login>
|
|
211
|
+
<user-settings>
|
|
212
|
+
<email-reset>
|
|
213
|
+
</body>
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Project Type: ECMA Script Modules
|
|
217
|
+
Eports: classes and objects
|
|
218
|
+
```javascript
|
|
219
|
+
// Custom HTML Element Classes
|
|
220
|
+
import 'pwa-auth';
|
|
221
|
+
// <user-icon subscribe emptyArtwork="./images/empty.jpg"></user-icon>
|
|
222
|
+
// <user-drawer subscribe settingsURL="./settings"></user-drawer>
|
|
223
|
+
// <user-settings emptyArtwork="./images/empty.jpg"></user-settings>
|
|
224
|
+
|
|
225
|
+
// Firebase Objects
|
|
226
|
+
import { db, storage, auth, user } from 'pwa-auth';
|
|
227
|
+
// db - firestore database reference
|
|
228
|
+
// storage - firebase storage reference
|
|
229
|
+
// auth - user object reference
|
|
230
|
+
// user - active user boolean reference
|
|
231
|
+
|
|
232
|
+
// Firebase-Redux States
|
|
233
|
+
import { store } from 'pwa-auth';
|
|
234
|
+
// store.verified
|
|
235
|
+
// store.userId
|
|
236
|
+
// store.name
|
|
237
|
+
// store.email
|
|
238
|
+
// store.photoURL
|
|
178
239
|
```
|
|
179
240
|
|
|
180
241
|
## Implementation - Drawer
|
|
@@ -210,65 +271,6 @@ For HTML projects, copy js bundle to disk
|
|
|
210
271
|
</body>
|
|
211
272
|
```
|
|
212
273
|
|
|
213
|
-
## CSS Custom Properties
|
|
214
|
-
```css
|
|
215
|
-
/* <user-icon> --> <button> */
|
|
216
|
-
:root {
|
|
217
|
-
--pwa_icon_background_color: #6cc04a;
|
|
218
|
-
--pwa_icon_radius: 6px;
|
|
219
|
-
--pwa_icon_border: 2px solid black;
|
|
220
|
-
--pwa_icon_padding: 0px 16px;
|
|
221
|
-
--pwa_icon_hover_color: lightgrey;
|
|
222
|
-
--pwa_icon_font: 'Arial', sans-serif;
|
|
223
|
-
--pwa_icon_height: 32px; /* state: Logged-out (sync) */
|
|
224
|
-
--pwa_icon_diameter: 32px; /* state: Logged-in (sync) */
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/* <user-drawer> */
|
|
228
|
-
:root {
|
|
229
|
-
--pwa_drawer_background_color: #fff;
|
|
230
|
-
--pwa_drawer_border-radius: 20px;
|
|
231
|
-
--pwa_drawer_border: 3px #303030 solid;
|
|
232
|
-
--pwa_drawer_z-index: 2;
|
|
233
|
-
--pwa_drawer_text_color: #303030;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/* <user-settings> */
|
|
237
|
-
:root {
|
|
238
|
-
--pwa_settings_background_color: grey;
|
|
239
|
-
--pwa_nav_button_color: grey;
|
|
240
|
-
--pwa_nav_highlight_color: black;
|
|
241
|
-
--pwa_divider_color: grey;
|
|
242
|
-
--pwa_header_color: black;
|
|
243
|
-
--pwa_input_background_color: #E1E5EB;
|
|
244
|
-
--pwa_label_text_color: black;
|
|
245
|
-
--pwa_button_text_color: #fff;
|
|
246
|
-
--pwa_button_background_color: #6cc04a;
|
|
247
|
-
--pwa_button_border_color: #60b23e;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/* shared core elements */
|
|
251
|
-
:root {
|
|
252
|
-
--section_background_color: white;
|
|
253
|
-
}
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
## Global Namespaced Firebase Instance Configuration
|
|
257
|
-
pwa-auth.js is built upon the Firebase SDK (Software Development Kit).
|
|
258
|
-
The entire bundle is one instance of firebase that takes in the configuration information, internally.
|
|
259
|
-
|
|
260
|
-
## Project Bundles
|
|
261
|
-
```javascript
|
|
262
|
-
import './pwa-auth/source/development/pwa-auth';
|
|
263
|
-
import './pwa-auth/source/esm/pwa-auth';
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
## Technological Engineering
|
|
267
|
-
- Development (Server-side) Environment: [Node JavaScript](https://nodejs.org)
|
|
268
|
-
- Backend: Google Cloud: [Firebase](https://firebase.google.com/)
|
|
269
|
-
- Predicate State Behavior: [Redux](https://redux.js.org/)
|
|
270
|
-
- Frontend (Client-side): [Lit](https://lit.dev)
|
|
271
|
-
|
|
272
274
|
## Feedback
|
|
273
275
|
All feedback, comments, bugs, and requests are welcome.
|
|
274
276
|
* [Jack's Publishing](https://www.jackspublishing.com)
|
|
@@ -3,27 +3,29 @@ export const animation = css `
|
|
|
3
3
|
|
|
4
4
|
.wrapper {
|
|
5
5
|
display: grid;
|
|
6
|
-
margin: 16px;
|
|
7
6
|
border-radius: 8px;
|
|
8
|
-
|
|
9
|
-
overflow: hidden
|
|
7
|
+
/* margin: 16px; */
|
|
8
|
+
/* overflow: hidden;*/
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
.inner {
|
|
13
12
|
display: grid;
|
|
14
13
|
grid-template-areas: 'pages';
|
|
15
14
|
overflow-y: auto;
|
|
15
|
+
box-shadow: 0px 6px 6px -6px;
|
|
16
16
|
border-bottom: 6px solid #0a2840;
|
|
17
|
-
border-radius: 6px;
|
|
17
|
+
border-radius: 0 0 6px 6px;
|
|
18
18
|
scrollbar-width: thin;
|
|
19
19
|
z-index: 1;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.content {
|
|
23
23
|
display: grid;
|
|
24
|
+
grid-gap: 16px;
|
|
24
25
|
grid-area: pages;
|
|
25
26
|
|
|
26
27
|
border-bottom: 2px solid grey;
|
|
28
|
+
box-shadow: inset 0px -6px 6px -8px;
|
|
27
29
|
|
|
28
30
|
box-sizing: border-box;
|
|
29
31
|
-webkit-box-sizing: border-box;
|
|
@@ -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;AAErC,MAAM,CAAC,MAAM,SAAS,GAAe,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"animation.js","sourceRoot":"","sources":["../../../typescript/webcomponents/css/animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEvC,CAAC"}
|
|
@@ -12,12 +12,17 @@ export const drawerStyle = css `
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host([drawer]) {
|
|
15
|
-
transition-duration: 1.4s;
|
|
15
|
+
/* transition-duration: 1.4s; */
|
|
16
16
|
max-height: 100%;
|
|
17
|
-
transition: max-height 1.4s ease-out;
|
|
17
|
+
transition: max-height 1.4s ease-in-out;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.userDrawer > .spec > .wrapper {
|
|
21
|
+
margin: 16px;
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
.userDrawer {
|
|
25
|
+
display: grid;
|
|
21
26
|
position: fixed;
|
|
22
27
|
top: 0;
|
|
23
28
|
left: 0;
|
|
@@ -26,27 +31,41 @@ export const drawerStyle = css `
|
|
|
26
31
|
overflow: hidden;
|
|
27
32
|
box-sizing: border-box;
|
|
28
33
|
height: auto;
|
|
34
|
+
/*
|
|
29
35
|
transition-property: visibility, max-height;
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
animation-name: animay;
|
|
37
|
+
animation-duration: 1.4s;
|
|
38
|
+
*/
|
|
39
|
+
border-bottom: var(--pwa_drawer_border, 3px #303030 solid);
|
|
32
40
|
z-index: var(--pwa_drawer_z-index, 2);
|
|
33
41
|
background-color: var(--pwa_drawer_background_color, #fff);
|
|
34
42
|
color: var(--pwa_drawer_text_color, #303030);
|
|
35
|
-
border-radius: var(--pwa_drawer_border-radius,
|
|
43
|
+
border-radius: var(--pwa_drawer_border-radius, 0px);
|
|
36
44
|
}
|
|
37
45
|
|
|
38
|
-
.
|
|
46
|
+
.in {
|
|
39
47
|
max-height: 0px;
|
|
40
|
-
transition: max-height 1.4s ease-out;
|
|
41
48
|
visibility: hidden;
|
|
42
|
-
transition-
|
|
49
|
+
transition: max-height 1.4s ease-out, visibility 0s linear 1.4s, transform 1.4s;
|
|
43
50
|
}
|
|
44
51
|
|
|
45
|
-
.in {
|
|
52
|
+
.spec-in {
|
|
53
|
+
transform: translate3d(0, -150%, 0);
|
|
54
|
+
transition: transform 2.4s;
|
|
55
|
+
z-index: -1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.out {
|
|
46
59
|
max-height: 100%;
|
|
47
|
-
transition: max-height 1.4s ease-out;
|
|
48
60
|
visibility: visible;
|
|
49
|
-
transition-
|
|
61
|
+
transition: max-height 1.4s ease-out, visibility 0s, transform 1.4s;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.spec-out {
|
|
65
|
+
transform: translate3d(0, 0, 0);
|
|
66
|
+
transition: transform 1.6s;
|
|
67
|
+
z-index: -1;
|
|
68
|
+
animation-timing-function: ease-out;
|
|
50
69
|
}
|
|
51
70
|
|
|
52
71
|
`;
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqExC,CAAC"}
|
|
@@ -5,6 +5,10 @@ export const exitStyle = css `
|
|
|
5
5
|
display: grid;
|
|
6
6
|
grid-template-columns: 80px 1fr 80px;
|
|
7
7
|
padding: 16px;
|
|
8
|
+
z-index: 2;
|
|
9
|
+
background-color: white;
|
|
10
|
+
border-bottom: 2px solid black;
|
|
11
|
+
box-shadow: 0px 0px 6px;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
.exit > h3 {
|
|
@@ -45,5 +49,7 @@ export const exitStyle = css `
|
|
|
45
49
|
opacity: .8;
|
|
46
50
|
}
|
|
47
51
|
|
|
52
|
+
|
|
53
|
+
|
|
48
54
|
`;
|
|
49
55
|
//# sourceMappingURL=exit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exit.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAc,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"exit.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDtC,CAAC"}
|
|
@@ -67,7 +67,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
67
67
|
|
|
68
68
|
<!-- Drawer Wrapper -->
|
|
69
69
|
<section
|
|
70
|
-
class="userDrawer ${this.drawer ? '
|
|
70
|
+
class="userDrawer ${this.drawer ? 'out' : 'in'}">
|
|
71
71
|
|
|
72
72
|
<!-- Exit Button -->
|
|
73
73
|
<header class="exit">
|
|
@@ -78,7 +78,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
78
78
|
|
|
79
79
|
<!-- Logged-out State -->
|
|
80
80
|
<div
|
|
81
|
-
class="spec"
|
|
81
|
+
class="spec ${this.drawer ? 'spec-out' : 'spec-in'}"
|
|
82
82
|
?on="${this.user === false}">
|
|
83
83
|
|
|
84
84
|
<div class= "wrapper">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../typescript/webcomponents/drawer/drawer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAkB,IAAI,EAAE,UAAU,EAAE,MAAQ,KAAK,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAU,mBAAmB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAiC,2BAA2B,CAAC;AAE/E,OAAO,EAAE,KAAK,EAAY,MAAO,aAAa,CAAC;AAE/C,OAAO,EAAE,KAAK,EAAE,MAAiB,YAAY,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAkB,eAAe,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAa,kBAAkB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAW,cAAc,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAa,YAAY,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAa,YAAY,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAa,iBAAiB,CAAC;AAEnD,OAAO,EAAE,UAAU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 export const inputStyle = css `
|
|
|
11
11
|
text-align: left;
|
|
12
12
|
padding: 8px 16px;
|
|
13
13
|
background-color: var(--pwa_input_background_color, #E1E5EB);
|
|
14
|
-
border:
|
|
14
|
+
border: 1px solid grey;
|
|
15
15
|
border-radius: 4px;
|
|
16
16
|
-webkit-border-radius: 4px;
|
|
17
17
|
font-size: smaller;
|
|
18
|
-
box-shadow:
|
|
18
|
+
box-shadow: 0px 6px 6px -6px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
input.invalid { background-color: #ffdddd; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/form/css/label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,UAAU,GAAe,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/form/css/label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,UAAU,GAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqBxC,CAAC"}
|
|
@@ -2,11 +2,13 @@ import { css } from "lit";
|
|
|
2
2
|
export const toggleStyle = css `
|
|
3
3
|
|
|
4
4
|
.new {
|
|
5
|
+
border: 0px;
|
|
6
|
+
border-top: 2px solid black;
|
|
7
|
+
box-shadow: 0px 0px 6px 0px;
|
|
5
8
|
padding: 12px;
|
|
6
|
-
|
|
9
|
+
/* border-radius: 4px; */
|
|
7
10
|
appearance: none;
|
|
8
11
|
background-color: transparent;
|
|
9
|
-
border: 0px;
|
|
10
12
|
color: inherit;
|
|
11
13
|
cursor: pointer;
|
|
12
14
|
text-decoration: underline;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/form/css/toggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAc,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/form/css/toggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;CAiBxC,CAAA"}
|