pwa-auth 1.1.3 → 1.1.5

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 (128) hide show
  1. package/README.md +43 -16
  2. package/demo/index.html +6 -2
  3. package/deploy/css/font.d.ts +2 -0
  4. package/deploy/css/font.d.ts.map +1 -0
  5. package/deploy/css/font.js +16 -0
  6. package/deploy/css/form/button.d.ts +3 -0
  7. package/deploy/css/form/button.d.ts.map +1 -0
  8. package/deploy/css/form/button.js +68 -0
  9. package/deploy/css/form/input.d.ts +3 -0
  10. package/deploy/css/form/input.d.ts.map +1 -0
  11. package/deploy/css/form/input.js +24 -0
  12. package/deploy/css/form/label.d.ts +3 -0
  13. package/deploy/css/form/label.d.ts.map +1 -0
  14. package/deploy/css/form/label.js +23 -0
  15. package/deploy/css/form/list.d.ts +3 -0
  16. package/deploy/css/form/list.d.ts.map +1 -0
  17. package/deploy/css/form/list.js +12 -0
  18. package/deploy/css/svg.d.ts +4 -0
  19. package/deploy/css/svg.d.ts.map +1 -0
  20. package/deploy/css/svg.js +4 -0
  21. package/deploy/css/toggle.d.ts +2 -0
  22. package/deploy/css/toggle.d.ts.map +1 -0
  23. package/deploy/css/toggle.js +8 -0
  24. package/deploy/custom-elements/drawer/css/drawer.d.ts +3 -0
  25. package/deploy/custom-elements/drawer/css/drawer.d.ts.map +1 -0
  26. package/deploy/custom-elements/drawer/css/drawer.js +16 -0
  27. package/deploy/custom-elements/drawer/css/exit.d.ts +3 -0
  28. package/deploy/custom-elements/drawer/css/exit.d.ts.map +1 -0
  29. package/deploy/custom-elements/drawer/css/exit.js +46 -0
  30. package/deploy/custom-elements/drawer/css/link.d.ts +3 -0
  31. package/deploy/custom-elements/drawer/css/link.d.ts.map +1 -0
  32. package/deploy/custom-elements/drawer/css/link.js +12 -0
  33. package/deploy/custom-elements/drawer/css/paragraph.d.ts +3 -0
  34. package/deploy/custom-elements/drawer/css/paragraph.d.ts.map +1 -0
  35. package/deploy/custom-elements/drawer/css/paragraph.js +11 -0
  36. package/deploy/custom-elements/drawer/css/visibility.d.ts +3 -0
  37. package/deploy/custom-elements/drawer/css/visibility.d.ts.map +1 -0
  38. package/deploy/custom-elements/drawer/css/visibility.js +22 -0
  39. package/deploy/custom-elements/drawer/drawer.d.ts +35 -0
  40. package/deploy/custom-elements/drawer/drawer.d.ts.map +1 -0
  41. package/deploy/custom-elements/drawer/drawer.js +116 -0
  42. package/deploy/custom-elements/drawer/input/forgot.d.ts +16 -0
  43. package/deploy/custom-elements/drawer/input/forgot.d.ts.map +1 -0
  44. package/deploy/custom-elements/drawer/input/forgot.js +60 -0
  45. package/deploy/custom-elements/drawer/input/login.d.ts +20 -0
  46. package/deploy/custom-elements/drawer/input/login.d.ts.map +1 -0
  47. package/deploy/custom-elements/drawer/input/login.js +124 -0
  48. package/deploy/custom-elements/drawer/input/sign-up.d.ts +20 -0
  49. package/deploy/custom-elements/drawer/input/sign-up.d.ts.map +1 -0
  50. package/deploy/custom-elements/drawer/input/sign-up.js +135 -0
  51. package/deploy/custom-elements/icon/css/icon.d.ts +2 -0
  52. package/deploy/custom-elements/icon/css/icon.d.ts.map +1 -0
  53. package/deploy/custom-elements/icon/css/icon.js +62 -0
  54. package/deploy/custom-elements/icon/icon.d.ts +31 -0
  55. package/deploy/custom-elements/icon/icon.d.ts.map +1 -0
  56. package/deploy/custom-elements/icon/icon.js +73 -0
  57. package/deploy/custom-elements/settings/css/navigation.d.ts +2 -0
  58. package/deploy/custom-elements/settings/css/navigation.d.ts.map +1 -0
  59. package/deploy/custom-elements/settings/css/navigation.js +61 -0
  60. package/deploy/custom-elements/settings/css/uploader.d.ts +2 -0
  61. package/deploy/custom-elements/settings/css/uploader.d.ts.map +1 -0
  62. package/deploy/custom-elements/settings/css/uploader.js +40 -0
  63. package/deploy/custom-elements/settings/input/delete.d.ts +33 -0
  64. package/deploy/custom-elements/settings/input/delete.d.ts.map +1 -0
  65. package/deploy/custom-elements/settings/input/delete.js +78 -0
  66. package/deploy/custom-elements/settings/input/email.d.ts +34 -0
  67. package/deploy/custom-elements/settings/input/email.d.ts.map +1 -0
  68. package/deploy/custom-elements/settings/input/email.js +98 -0
  69. package/deploy/custom-elements/settings/input/images.d.ts +2 -0
  70. package/deploy/custom-elements/settings/input/images.d.ts.map +1 -0
  71. package/deploy/custom-elements/settings/input/images.js +22 -0
  72. package/deploy/custom-elements/settings/input/name.d.ts +33 -0
  73. package/deploy/custom-elements/settings/input/name.d.ts.map +1 -0
  74. package/deploy/custom-elements/settings/input/name.js +90 -0
  75. package/deploy/custom-elements/settings/input/password.d.ts +36 -0
  76. package/deploy/custom-elements/settings/input/password.d.ts.map +1 -0
  77. package/deploy/custom-elements/settings/input/password.js +145 -0
  78. package/deploy/custom-elements/settings/input/uploader.d.ts +34 -0
  79. package/deploy/custom-elements/settings/input/uploader.d.ts.map +1 -0
  80. package/deploy/custom-elements/settings/input/uploader.js +191 -0
  81. package/deploy/custom-elements/settings/settings.d.ts +36 -0
  82. package/deploy/custom-elements/settings/settings.d.ts.map +1 -0
  83. package/deploy/custom-elements/settings/settings.js +187 -0
  84. package/deploy/lazy-loader.d.ts +11 -0
  85. package/deploy/lazy-loader.d.ts.map +1 -0
  86. package/deploy/lazy-loader.js +20 -0
  87. package/deploy/redux/backend.d.ts +16 -0
  88. package/deploy/redux/backend.d.ts.map +1 -0
  89. package/deploy/redux/backend.js +43 -0
  90. package/deploy/redux/drawer.d.ts +18 -0
  91. package/deploy/redux/drawer.d.ts.map +1 -0
  92. package/deploy/redux/drawer.js +21 -0
  93. package/deploy/redux/frontend.d.ts +17 -0
  94. package/deploy/redux/frontend.d.ts.map +1 -0
  95. package/deploy/redux/frontend.js +67 -0
  96. package/deploy/redux/object.d.ts +24 -0
  97. package/deploy/redux/object.d.ts.map +1 -0
  98. package/deploy/redux/object.js +1 -0
  99. package/deploy/start.d.ts +14 -0
  100. package/deploy/start.d.ts.map +1 -0
  101. package/deploy/start.js +86 -0
  102. package/deploy/store.d.ts +19 -0
  103. package/deploy/store.d.ts.map +1 -0
  104. package/deploy/store.js +13 -0
  105. package/npm/THIRD_PARTY_LICENSES.txt +303 -0
  106. package/package.json +3 -2
  107. package/pwa-auth.js +3 -0
  108. package/images/background.svg +0 -23
  109. package/images/favicon.ico +0 -0
  110. package/images/icon-48x48.png +0 -0
  111. package/images/manifest/logo-144.png +0 -0
  112. package/images/manifest/logo-192.png +0 -0
  113. package/images/manifest/logo-48.png +0 -0
  114. package/images/manifest/logo-512.png +0 -0
  115. package/images/manifest/logo-72.png +0 -0
  116. package/images/manifest/logo-96.png +0 -0
  117. package/images/manifest/maskable_icon_x128.png +0 -0
  118. package/images/manifest/maskable_icon_x192.png +0 -0
  119. package/images/manifest/maskable_icon_x384.png +0 -0
  120. package/images/manifest/maskable_icon_x48.png +0 -0
  121. package/images/manifest/maskable_icon_x512.png +0 -0
  122. package/images/manifest/maskable_icon_x72.png +0 -0
  123. package/images/manifest/maskable_icon_x96.png +0 -0
  124. package/images/npm.svg +0 -85
  125. package/images/npm007.png +0 -0
  126. package/manifest.json +0 -47
  127. package/npm/pwa-auth.js +0 -3163
  128. package/npm/pwa-auth.js.map +0 -1
package/README.md CHANGED
@@ -2,20 +2,32 @@ Progressive Website Application Authentication
2
2
  ======================
3
3
 
4
4
  # The library [Demo](https://pwa-authentic.firebaseapp.com)
5
- 3 HTML Custom Elements with Firebase Authentication:
6
- - user-icon
7
- - user-drawer
8
- - user-settings
9
-
10
5
  This library provides Identity Access Managementy to securely store user's data.
11
6
 
7
+ ## Standard JavaScript
8
+ - copy the bundle: node_modules/pwa-auth/npm/pwa-auth.js
9
+
10
+ ## Module JavaScript
11
+ ```javascript
12
+ /* To do: Bare Module Specifiers - Currently: Absolute / Relative */
13
+ import 'pwa-auth';
14
+ ```
15
+
12
16
  ## Technological Stack
13
17
  - Development Environment: [Node JavaScript](https://nodejs.org)
14
18
  - Backend: Google Cloud: [Firebase](https://firebase.google.com/)
15
19
  - Predicate State Behavior: [Redux](https://redux.js.org/)
16
20
  - Frontend: [Lit](https://lit.dev)
17
21
 
18
- ## Library Features:
22
+ ## Boilerplate
23
+ - 3 Tag Placements (Custom HTML Elements)
24
+ - user-icon
25
+ - user-drawer
26
+ - user-settings
27
+ - Cascading Style Sheets (CSS)
28
+ - ECMA Script (JavaScript)
29
+
30
+ ## Features:
19
31
  - Register through Email and Password
20
32
  - Log-in
21
33
  - Log-out
@@ -25,12 +37,7 @@ This library provides Identity Access Managementy to securely store user's data.
25
37
  - Change Password
26
38
  - Delete Account
27
39
 
28
- ## Library Boilerplate
29
- - 3 Tag Placements (Custom HTML Elements)
30
- - Cascading Style Sheets (CSS)
31
- - ECMA Script (JavaScript)
32
-
33
- ## Library Custom Elements
40
+ ## Custom Elements
34
41
 
35
42
  ### `<user-icon>`
36
43
  - Login Word Button - State
@@ -51,10 +58,12 @@ This library provides Identity Access Managementy to securely store user's data.
51
58
  # Website Setup:
52
59
  ```html
53
60
  <header>
54
- <user-icon></user-icon>
61
+ <user-icon>Subscribe</user-icon>
55
62
  </header>
56
63
 
57
- <user-drawer></user-drawer>
64
+ <user-drawer>
65
+ <p><a href="/settings">Settings</a></p>
66
+ </user-drawer>
58
67
 
59
68
  <main>
60
69
  <user-settings></user-settings>
@@ -64,6 +73,7 @@ This library provides Identity Access Managementy to securely store user's data.
64
73
  <style>/* CSS Custom Properties */</style>
65
74
  <script src="pwa-auth.js"></script>
66
75
  ```
76
+
67
77
  ## Google Setup
68
78
  - Google Analytics
69
79
  - Firebase Project
@@ -92,6 +102,7 @@ if (lolalhost) { connect = { /* etc. */ } }
92
102
  ## CSS Default Custom Properties
93
103
  | CSS Custom Property | Description | Default | Custom Element |
94
104
  | :--- | ---: | :---: | :--- |
105
+ | --pwa_settings_background | Navigation | grey; | Settings |
95
106
  | --pwa_nav_button | Navigation | grey; | Settings |
96
107
  | --pwa_nav_select | Navigation | black; | Settings |
97
108
  | --pwa_input_background | Input | #E1E5EB; | Settings |
@@ -106,9 +117,25 @@ if (lolalhost) { connect = { /* etc. */ } }
106
117
  | --pwa_icon_background | Input | #6cc04a; | Icon |
107
118
  | --pwa_icon_hover | Input | lightgrey | Icon |
108
119
 
109
- # Footnotes
120
+ ```html
121
+ <!-- CSS: Custom Variables: <head> tag -->
122
+ <style>
123
+
124
+ :root {
125
+ --pwa_divider: grey;
126
+ /* etc. */
127
+ }
128
+
129
+ /* Dark Theme */
130
+ @media (prefers-color-scheme: dark) { /* etc. */ }
131
+
132
+ /* Light Theme */
133
+ @media (prefers-color-scheme: light) { /* etc. */ }
134
+
135
+ </style>
136
+ ```
110
137
 
111
- ## Feedback
138
+ # Feedback
112
139
  All feedback, comments, bugs, and requests are welcome.
113
140
  * [Jack's Publishing](https://www.jackspublishing.com)
114
141
  * [contractor's centre](https://www.contractorscentre.com)
package/demo/index.html CHANGED
@@ -42,10 +42,12 @@
42
42
  <body>
43
43
 
44
44
  <!-- Button -->
45
- <header><user-icon settingsURL="/"></user-icon></header>
45
+ <header><user-icon settingsURL="/">Subscribe</user-icon></header>
46
46
 
47
47
  <!-- Drawer -->
48
- <user-drawer></user-drawer>
48
+ <user-drawer>
49
+ <p><a href="/settings">Settings</a></p>
50
+ </user-drawer>
49
51
 
50
52
  <!-- Settings -->
51
53
  <main><user-settings></user-settings></main>
@@ -55,6 +57,8 @@
55
57
 
56
58
  :root {
57
59
 
60
+ --pwa_settings_background: white;
61
+
58
62
  /* Top Border Color */
59
63
  --pwa_divider: grey;
60
64
 
@@ -0,0 +1,2 @@
1
+ export declare const fontStyles: import("lit").CSSResult;
2
+ //# sourceMappingURL=font.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../src/css/font.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBActB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { css } from "lit";
2
+ export const fontStyles = css `
3
+
4
+ /* */
5
+ .x-font {
6
+ font-family: Roboto, Arial, sans-serif; /* 'Montserrat' */
7
+ line-height: 1.1;
8
+ letter-spacing: .007em;
9
+ font-size: 14px;
10
+ font-weight: 500;
11
+ text-align: center;
12
+ text-decoration-style: solid;
13
+ text-transform: uppercase;
14
+ }
15
+
16
+ `;
@@ -0,0 +1,3 @@
1
+ import { CSSResult } from "lit";
2
+ export declare const buttonStyle: CSSResult;
3
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +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,SAkEzB,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { css } from "lit";
2
+ export const buttonStyle = css `
3
+
4
+ .action-button:focus { outline:0; }
5
+
6
+ .action-button {
7
+ display: inline-block;
8
+ box-sizing: border-box;
9
+ white-space: nowrap;
10
+ margin: 10px 3px 10px auto;
11
+ font-weight: 400;
12
+ text-align: center;
13
+ vertical-align: middle;
14
+ touch-action: manipulation;
15
+ -webkit-appearance: button;
16
+ cursor: pointer;
17
+ font-size: 16px;
18
+ height: 38px;
19
+ line-height: 16px;
20
+ padding: 10px 16px;
21
+ border-radius: 6px;
22
+ color: var(--pwa_action_text_color);
23
+ background-color: var(--pwa_action_background_color);
24
+ border-color: var(--pwa_action_border_color);
25
+ box-shadow: 1px 1px 1px grey;
26
+ }
27
+
28
+ .saving{
29
+ transition: background-color 0.3s; /* Smooth transition for hover effect */
30
+ background-color: #D6EBD3;
31
+ border: 0.5px solid black;
32
+ border-radius: 4px;
33
+ height: 50px;
34
+ width: 100%;
35
+ margin: auto;
36
+ box-shadow: 1px 1px 1px grey;
37
+ }
38
+
39
+ /* */
40
+ .submit:hover { background-color: #45a049; }
41
+
42
+ .submit {
43
+ box-sizing: border-box;
44
+ width: 100%;
45
+ background-color: #4CAF50;
46
+ color: white;
47
+ padding: 14px 20px;
48
+ margin: 8px 0;
49
+ border: none;
50
+ border-radius: 4px;
51
+ cursor: pointer;
52
+ }
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
+ `;
@@ -0,0 +1,3 @@
1
+ import { CSSResult } from "lit";
2
+ export declare const inputStyle: CSSResult;
3
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/css/form/input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAG,SAsBzB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { css } from "lit";
2
+ export const inputStyle = css `
3
+
4
+ input[type=text],
5
+ input[type=email],
6
+ input[type=password],
7
+ select {
8
+ box-sizing: border-box;
9
+ -webkit-box-sizing: border-box;
10
+ height: 50px;
11
+ text-align: left;
12
+ margin: 0 3px 0 3px;
13
+ padding: 8px 16px;
14
+ background-color: var(--pwa_input_background);
15
+ border: 0;
16
+ border-radius: 4px;
17
+ -webkit-border-radius: 4px;
18
+ font-size: smaller;
19
+ box-shadow: 1px 1px 1px grey;
20
+ }
21
+
22
+ input.invalid { background-color: #ffdddd; }
23
+
24
+ `;
@@ -0,0 +1,3 @@
1
+ import { CSSResult } from "lit";
2
+ export declare const labelStyle: CSSResult;
3
+ //# sourceMappingURL=label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/css/form/label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAG,SAqBzB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { css } from "lit";
2
+ export const labelStyle = css `
3
+
4
+ label { font-size: .9em; }
5
+ label {
6
+ display: grid;
7
+ color: var(--pwa_label_text_color);
8
+ box-sizing: border-box;
9
+ width: 100%;
10
+ font-size: smaller;
11
+ margin: auto;
12
+ margin-bottom: 0;
13
+ font-weight: bold;
14
+ line-height: 36px;
15
+ }
16
+
17
+ @media (max-width: 460px) {
18
+
19
+ label { font-size: .8em; }
20
+
21
+ }
22
+
23
+ `;
@@ -0,0 +1,3 @@
1
+ import { CSSResult } from "lit";
2
+ export declare const listStyle: CSSResult;
3
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +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,SAUvB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { css } from "lit";
2
+ export const listStyle = css `
3
+
4
+ ul {
5
+ list-style-type: none;
6
+ padding: 0;
7
+ margin: 0;
8
+ }
9
+
10
+ li { display: grid; }
11
+
12
+ `;
@@ -0,0 +1,4 @@
1
+ export declare const faceIcon: import("lit-html").TemplateResult<1>;
2
+ export declare const settings: import("lit-html").TemplateResult<1>;
3
+ export declare const close: import("lit-html").TemplateResult<1>;
4
+ //# sourceMappingURL=svg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../src/css/svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,sCAAmf,CAAC;AACzgB,eAAO,MAAM,QAAQ,sCAA4tB,CAAC;AAClvB,eAAO,MAAM,KAAK,sCAAoK,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { html } from "lit";
2
+ export const faceIcon = html `<svg viewBox="0 0 24 24" height="34px" width="34px"><path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"></path></svg>`;
3
+ export const settings = html `<svg viewBox="0 0 24 24"><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"></path></svg>`;
4
+ export const close = html `<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></svg>`;
@@ -0,0 +1,2 @@
1
+ export declare const show: import("lit").CSSResult;
2
+ //# sourceMappingURL=toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/css/toggle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,yBAMhB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { css } from "lit";
2
+ export const show = css `
3
+
4
+ /* */
5
+ .spec[on] { display: grid; }
6
+ .spec { display: none; }
7
+
8
+ `;
@@ -0,0 +1,3 @@
1
+ import { CSSResult } from "lit";
2
+ export declare const drawerStyle: CSSResult;
3
+ //# sourceMappingURL=drawer.d.ts.map
@@ -0,0 +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,SAczB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { css } from "lit";
2
+ export const drawerStyle = css `
3
+
4
+ .userDrawer {
5
+ z-index: 1;
6
+ max-width: 600px;
7
+ margin: 16px auto auto auto;
8
+ background-color: var(--pwa_drawer_background_color);
9
+ color: var(--pwa_drawer_text_color);
10
+ padding: 8px 18px;
11
+ box-sizing: border-box;
12
+ border: 3px #303030 solid;
13
+ border-radius: 20px;
14
+ }
15
+
16
+ `;
@@ -0,0 +1,3 @@
1
+ import { CSSResult } from "lit";
2
+ export declare const exitStyle: CSSResult;
3
+ //# sourceMappingURL=exit.d.ts.map
@@ -0,0 +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,SA4CvB,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { css } from "lit";
2
+ export const exitStyle = css `
3
+
4
+ .exit {
5
+ display: grid;
6
+ grid-template-columns: 80px 1fr 80px;
7
+ }
8
+
9
+ .exit > h3 {
10
+ font-weight: 800;
11
+ font-size: .9em;
12
+ margin: 0px auto;
13
+ opacity: .8;
14
+ line-height: 36px;
15
+ }
16
+
17
+ .exit > .remove {
18
+ background-color: transparent;
19
+ border: 0px;
20
+ color: red;
21
+ font-weight: 800;
22
+ font-size: .7em;
23
+ text-transform: uppercase;
24
+ opacity: .6;
25
+ }
26
+
27
+ .exit > .refresh {
28
+ background-color: transparent;
29
+ border: 0px;
30
+ fill: blue;
31
+ height: 36px;
32
+ width: 36px;
33
+ padding: 0px;
34
+ }
35
+
36
+ .close {
37
+ height: 36px;
38
+ width: 36px;
39
+ margin: auto;
40
+ background-color: transparent;
41
+ border: 0px;
42
+ fill: red;
43
+ opacity: .8;
44
+ }
45
+
46
+ `;
@@ -0,0 +1,3 @@
1
+ import { CSSResult } from 'lit';
2
+ export declare const linkStyle: CSSResult;
3
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SAUvB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { css } from 'lit';
2
+ export const linkStyle = css `
3
+
4
+ a {
5
+ text-transform: uppercase;
6
+ font-size: .6em;
7
+ color: rgb(105,105,105);
8
+ font-weight: 800;
9
+ text-decoration: none;
10
+ }
11
+
12
+ `;
@@ -0,0 +1,3 @@
1
+ import { CSSResult } from "lit";
2
+ export declare const lineStyle: CSSResult;
3
+ //# sourceMappingURL=paragraph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SASvB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { css } from "lit";
2
+ export const lineStyle = css `
3
+
4
+ p {
5
+ text-align: center;
6
+ }
7
+
8
+ .setLog > p { margin: 12px; box-sizing: border-box; }
9
+ .divide { border: 2px solid #606060; margin: 6px 0 0 0; border-radius: 50%; }
10
+
11
+ `;
@@ -0,0 +1,3 @@
1
+ import { CSSResult } from "lit";
2
+ export declare const visibility: CSSResult;
3
+ //# sourceMappingURL=visibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/visibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAE,SAoBxB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { css } from "lit";
2
+ export const visibility = css `
3
+
4
+ .visibility[on] {
5
+ visibility: visible;
6
+ transform: translate3d(0, 0, 0);
7
+ }
8
+
9
+ .visibility {
10
+ position: fixed;
11
+ top: 0;
12
+ left: 0;
13
+ right: 0;
14
+ visibility: hidden;
15
+ will-change: transform;
16
+ transform: translate3d(0, -150%, 0);
17
+ transition-property: visibility, transform;
18
+ transition-duration: 1.4s;
19
+ display: block;
20
+ }
21
+
22
+ `;
@@ -0,0 +1,35 @@
1
+ import { LitElement } from 'lit';
2
+ import { AppState } from '../../store';
3
+ import './input/login';
4
+ import './input/sign-up';
5
+ declare const UserDrawer_base: (new (...args: any[]) => {
6
+ _storeUnsubscribe: import("redux").Unsubscribe;
7
+ connectedCallback(): void;
8
+ disconnectedCallback(): void;
9
+ stateChanged(_state: {
10
+ frontend: import("../../redux/object").frontendAuth;
11
+ drawer: {
12
+ drawer: boolean;
13
+ };
14
+ backend: import("../../redux/object").backendAuth;
15
+ }): void;
16
+ readonly isConnected: boolean;
17
+ }) & typeof LitElement;
18
+ export declare class UserDrawer extends UserDrawer_base {
19
+ private _name;
20
+ private _subscribe;
21
+ private _log;
22
+ private _sign;
23
+ constructor();
24
+ protected firstUpdated(): void;
25
+ stateChanged(state: AppState): void;
26
+ static get styles(): import("lit").CSSResult[];
27
+ protected render(): import("lit-html").TemplateResult<1>;
28
+ }
29
+ declare global {
30
+ interface HTMLElementTagNameMap {
31
+ 'user-drawer': UserDrawer;
32
+ }
33
+ }
34
+ export {};
35
+ //# sourceMappingURL=drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAoB,KAAK,CAAC;AAGrD,OAAO,EAAS,QAAQ,EAAE,MAAqB,aAAa,CAAC;AAc7D,OAAO,eAAe,CAAC;AACvB,OAAO,iBAAiB,CAAC;;;;;;;;;;;;;;AAEzB,qBACa,UAAW,SAAQ,eAA0B;IAE/C,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,UAAU,CAAW;IAC7B,OAAO,CAAC,IAAI,CAAiB;IAC7B,OAAO,CAAC,KAAK,CAAgB;;IAItC,SAAS,CAAC,YAAY;IAMtB,YAAY,CAAC,KAAK,EAAE,QAAQ;IAO5B,MAAM,KAAK,MAAM,8BAQd;IAEH,SAAS,CAAC,MAAM;CAgDjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,aAAa,EAAE,UAAU,CAAC;KAC7B;CACF"}