@internetarchive/modal-manager 0.2.12 → 0.3.0

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 (84) hide show
  1. package/.editorconfig +29 -29
  2. package/.eslintrc.js +14 -14
  3. package/.github/workflows/ci.yml +26 -26
  4. package/.github/workflows/gh-pages-main.yml +42 -0
  5. package/.github/workflows/pr-preview.yml +40 -0
  6. package/LICENSE +661 -661
  7. package/README.md +139 -139
  8. package/custom-elements.json +170 -170
  9. package/dist/index.d.ts +7 -7
  10. package/dist/index.js +5 -5
  11. package/dist/index.js.map +1 -1
  12. package/dist/src/modal-config.d.ts +92 -92
  13. package/dist/src/modal-config.js +22 -22
  14. package/dist/src/modal-config.js.map +1 -1
  15. package/dist/src/modal-manager-host-bridge-interface.d.ts +12 -12
  16. package/dist/src/modal-manager-host-bridge-interface.js +1 -0
  17. package/dist/src/modal-manager-host-bridge-interface.js.map +1 -1
  18. package/dist/src/modal-manager-host-bridge.d.ts +34 -34
  19. package/dist/src/modal-manager-host-bridge.js +62 -62
  20. package/dist/src/modal-manager-host-bridge.js.map +1 -1
  21. package/dist/src/modal-manager-interface.d.ts +25 -25
  22. package/dist/src/modal-manager-interface.js +1 -0
  23. package/dist/src/modal-manager-interface.js.map +1 -1
  24. package/dist/src/modal-manager-mode.d.ts +10 -10
  25. package/dist/src/modal-manager-mode.js +11 -11
  26. package/dist/src/modal-manager-mode.js.map +1 -1
  27. package/dist/src/modal-manager.d.ts +108 -108
  28. package/dist/src/modal-manager.js +192 -189
  29. package/dist/src/modal-manager.js.map +1 -1
  30. package/dist/src/modal-template.d.ts +32 -32
  31. package/dist/src/modal-template.js +276 -276
  32. package/dist/src/modal-template.js.map +1 -1
  33. package/dist/test/modal-config.test.d.ts +1 -1
  34. package/dist/test/modal-config.test.js +61 -61
  35. package/dist/test/modal-config.test.js.map +1 -1
  36. package/dist/test/modal-manager.test.d.ts +1 -1
  37. package/dist/test/modal-manager.test.js +204 -200
  38. package/dist/test/modal-manager.test.js.map +1 -1
  39. package/dist/test/modal-template.test.d.ts +1 -1
  40. package/dist/test/modal-template.test.js +95 -95
  41. package/dist/test/modal-template.test.js.map +1 -1
  42. package/dist/vite.config.d.ts +2 -0
  43. package/dist/vite.config.js +23 -0
  44. package/dist/vite.config.js.map +1 -0
  45. package/docs/assets/css/main.css +2678 -2678
  46. package/docs/classes/_src_modal_config_.modalconfig.html +429 -429
  47. package/docs/classes/_src_modal_manager_.modalmanager.html +7702 -7702
  48. package/docs/classes/_src_modal_manager_host_bridge_.modalmanagerhostbridge.html +409 -409
  49. package/docs/classes/_src_modal_template_.modaltemplate.html +7096 -7096
  50. package/docs/enums/_src_modal_manager_mode_.modalmanagermode.html +196 -196
  51. package/docs/globals.html +150 -150
  52. package/docs/index.html +252 -252
  53. package/docs/interfaces/_src_modal_manager_host_bridge_interface_.modalmanagerhostbridgeinterface.html +210 -210
  54. package/docs/interfaces/_src_modal_manager_interface_.modalmanagerinterface.html +7095 -7095
  55. package/docs/modules/_index_.html +208 -208
  56. package/docs/modules/_src_modal_config_.html +146 -146
  57. package/docs/modules/_src_modal_manager_.html +146 -146
  58. package/docs/modules/_src_modal_manager_host_bridge_.html +146 -146
  59. package/docs/modules/_src_modal_manager_host_bridge_interface_.html +146 -146
  60. package/docs/modules/_src_modal_manager_interface_.html +146 -146
  61. package/docs/modules/_src_modal_manager_mode_.html +146 -146
  62. package/docs/modules/_src_modal_template_.html +146 -146
  63. package/docs/modules/_test_modal_config_test_.html +106 -106
  64. package/docs/modules/_test_modal_manager_test_.html +106 -106
  65. package/docs/modules/_test_modal_template_test_.html +106 -106
  66. package/{demo/index.html → index.html} +278 -278
  67. package/index.ts +7 -7
  68. package/karma.conf.js +24 -24
  69. package/package.json +85 -82
  70. package/renovate.json +7 -0
  71. package/src/modal-config.ts +117 -117
  72. package/src/modal-manager-host-bridge-interface.ts +13 -13
  73. package/src/modal-manager-host-bridge.ts +82 -82
  74. package/src/modal-manager-interface.ts +28 -28
  75. package/src/modal-manager-mode.ts +10 -10
  76. package/src/modal-manager.ts +230 -228
  77. package/src/modal-template.ts +279 -279
  78. package/test/modal-config.test.ts +69 -69
  79. package/test/modal-manager.test.ts +250 -245
  80. package/test/modal-template.test.ts +111 -111
  81. package/tsconfig.json +21 -20
  82. package/vite.config.ts +23 -0
  83. /package/{demo → assets/images}/100x100.jpg +0 -0
  84. /package/{demo → assets/images}/200x200.jpg +0 -0
@@ -1,32 +1,32 @@
1
- import { LitElement, CSSResult, TemplateResult } from 'lit';
2
- import '@internetarchive/ia-activity-indicator/ia-activity-indicator';
3
- import { ModalConfig } from './modal-config';
4
- export declare class ModalTemplate extends LitElement {
5
- /**
6
- * The ModalConfig that displayed the template
7
- *
8
- * @type {ModalConfig}
9
- * @memberof ModalTemplate
10
- */
11
- config: ModalConfig;
12
- /** @inheritdoc */
13
- render(): TemplateResult;
14
- /**
15
- * Dispatch the `closeButtonPressed` event to the consumer
16
- *
17
- * @private
18
- * @memberof ModalTemplate
19
- */
20
- private handleCloseButton;
21
- /**
22
- * The close button template
23
- *
24
- * @readonly
25
- * @private
26
- * @type {TemplateResult}
27
- * @memberof ModalTemplate
28
- */
29
- private get closeButtonTemplate();
30
- /** @inheritdoc */
31
- static get styles(): CSSResult;
32
- }
1
+ import { LitElement, CSSResult, TemplateResult } from 'lit';
2
+ import '@internetarchive/ia-activity-indicator/ia-activity-indicator';
3
+ import { ModalConfig } from './modal-config';
4
+ export declare class ModalTemplate extends LitElement {
5
+ /**
6
+ * The ModalConfig that displayed the template
7
+ *
8
+ * @type {ModalConfig}
9
+ * @memberof ModalTemplate
10
+ */
11
+ config: ModalConfig;
12
+ /** @inheritdoc */
13
+ render(): TemplateResult;
14
+ /**
15
+ * Dispatch the `closeButtonPressed` event to the consumer
16
+ *
17
+ * @private
18
+ * @memberof ModalTemplate
19
+ */
20
+ private handleCloseButton;
21
+ /**
22
+ * The close button template
23
+ *
24
+ * @readonly
25
+ * @private
26
+ * @type {TemplateResult}
27
+ * @memberof ModalTemplate
28
+ */
29
+ private get closeButtonTemplate();
30
+ /** @inheritdoc */
31
+ static get styles(): CSSResult;
32
+ }
@@ -1,277 +1,277 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement, html, css, nothing } from 'lit';
3
- import { property, customElement } from 'lit/decorators.js';
4
- import '@internetarchive/ia-activity-indicator/ia-activity-indicator';
5
- import closeIcon from '@internetarchive/icon-close/index.js';
6
- import iaIcon from '@internetarchive/icon-ia-logo/index.js';
7
- import { ModalConfig } from './modal-config';
8
- let ModalTemplate = class ModalTemplate extends LitElement {
9
- constructor() {
10
- super(...arguments);
11
- /**
12
- * The ModalConfig that displayed the template
13
- *
14
- * @type {ModalConfig}
15
- * @memberof ModalTemplate
16
- */
17
- this.config = new ModalConfig();
18
- }
19
- /** @inheritdoc */
20
- render() {
21
- return html `
22
- <div class="modal-wrapper">
23
- <div class="modal-container">
24
- <header style="background-color: ${this.config.headerColor}">
25
- ${this.config.showCloseButton ? this.closeButtonTemplate : ''}
26
- ${this.config.showHeaderLogo
27
- ? html `<div class="logo-icon">${iaIcon}</div>`
28
- : nothing}
29
- ${this.config.title
30
- ? html `<h1 class="title">${this.config.title}</h1>`
31
- : ''}
32
- ${this.config.subtitle
33
- ? html `<h2 class="subtitle">${this.config.subtitle}</h2>`
34
- : ''}
35
- </header>
36
- <section
37
- class="modal-body"
38
- style="background-color: ${this.config.bodyColor}"
39
- >
40
- <div class="content">
41
- <div
42
- class="processing-logo ${this.config.showProcessingIndicator
43
- ? ''
44
- : 'hidden'}"
45
- >
46
- <ia-activity-indicator
47
- .mode=${this.config.processingImageMode}
48
- ></ia-activity-indicator>
49
- </div>
50
- ${this.config.headline
51
- ? html ` <h1 class="headline">${this.config.headline}</h1> `
52
- : ''}
53
- ${this.config.message
54
- ? html ` <p class="message">${this.config.message}</p> `
55
- : ''}
56
-
57
- <div class="slot-container">
58
- <slot> </slot>
59
- </div>
60
- </div>
61
- </section>
62
- </div>
63
- </div>
64
- `;
65
- }
66
- /**
67
- * Dispatch the `closeButtonPressed` event to the consumer
68
- *
69
- * @private
70
- * @memberof ModalTemplate
71
- */
72
- handleCloseButton() {
73
- const event = new Event('closeButtonPressed');
74
- this.dispatchEvent(event);
75
- }
76
- /**
77
- * The close button template
78
- *
79
- * @readonly
80
- * @private
81
- * @type {TemplateResult}
82
- * @memberof ModalTemplate
83
- */
84
- get closeButtonTemplate() {
85
- return html `
86
- <button
87
- type="button"
88
- class="close-button"
89
- tabindex="0"
90
- @click=${this.handleCloseButton}
91
- >
92
- ${closeIcon}
93
- </button>
94
- `;
95
- }
96
- /** @inheritdoc */
97
- static get styles() {
98
- const modalLogoSize = css `var(--modalLogoSize, 6.5rem)`;
99
- const processingImageSize = css `var(--processingImageSize, 7.5rem)`;
100
- const modalCornerRadius = css `var(--modalCornerRadius, 1rem)`;
101
- const modalBorder = css `var(--modalBorder, 2px solid black)`;
102
- // if the content of the modal is too big to fit on screen, this sets the bottom margin
103
- // it's not exact, but a close estimation
104
- const modalBottomMarginCss = css `var(--modalBottomMargin, 2.5rem)`;
105
- const modalTopMarginCss = css `var(--modalTopMargin, 5rem)`;
106
- const modalHeaderBottomPaddingCss = css `var(--modalHeaderBottomPadding, 0.5em)`;
107
- const modalBottomPadding = css `var(--modalBottomPadding, 2rem)`;
108
- const scrollOffset = css `var(--modalScrollOffset, 5px)`;
109
- const titleFontSize = css `var(--modalTitleFontSize, 1.8rem)`;
110
- const subtitleFontSize = css `var(--modalSubtitleFontSize, 1.4rem)`;
111
- const headlineFontSize = css `var(--modalHeadlineFontSize, 1.6rem)`;
112
- const messageFontSize = css `var(--modalMessageFontSize, 1.4rem)`;
113
- const titleLineHeight = css `var(--modalTitleLineHeight, normal)`;
114
- const subtitleLineHeight = css `var(--modalSubtitleLineHeight, normal)`;
115
- const headlineLineHeight = css `var(--modalHeadlineLineHeight, normal)`;
116
- const messageLineHeight = css `var(--modalMessageLineHeight, normal)`;
117
- return css `
118
- .processing-logo {
119
- margin: auto;
120
- width: ${processingImageSize};
121
- height: ${processingImageSize};
122
- }
123
-
124
- .processing-logo.hidden {
125
- height: 1rem;
126
- }
127
-
128
- .processing-logo.hidden ia-activity-indicator {
129
- display: none;
130
- }
131
-
132
- .modal-wrapper {
133
- outline: none;
134
- }
135
-
136
- .modal-container {
137
- border-radius: ${modalCornerRadius};
138
- width: 100%;
139
- margin-top: ${modalTopMarginCss};
140
- }
141
-
142
- header {
143
- position: relative;
144
- background-color: #36a483;
145
- color: white;
146
- border-radius: calc(${modalCornerRadius}) calc(${modalCornerRadius}) 0 0;
147
- border: ${modalBorder};
148
- border-bottom: 0;
149
- text-align: center;
150
- padding-bottom: ${modalHeaderBottomPaddingCss};
151
- }
152
-
153
- .title {
154
- margin: 0;
155
- padding: 0;
156
- font-size: ${titleFontSize};
157
- font-weight: bold;
158
- line-height: ${titleLineHeight};
159
- }
160
-
161
- .subtitle {
162
- margin: 0;
163
- padding: 0;
164
- font-weight: normal;
165
- padding-top: 0;
166
- font-size: ${subtitleFontSize};
167
- line-height: ${subtitleLineHeight};
168
- }
169
-
170
- .modal-body {
171
- background-color: #f5f5f7;
172
- border-radius: 0 0 calc(${modalCornerRadius}) calc(${modalCornerRadius});
173
- border: ${modalBorder};
174
- border-top: 0;
175
- padding: 0 1rem calc(${modalBottomPadding} - ${scrollOffset}) 1rem;
176
- color: #333;
177
- margin-bottom: 2.5rem;
178
- min-height: 5rem;
179
- }
180
-
181
- .content {
182
- overflow-y: auto;
183
- max-height: calc(100vh - (16.5rem + ${modalBottomMarginCss}));
184
- min-height: 5rem;
185
- padding: 0 0 calc(${scrollOffset}) 0;
186
- }
187
-
188
- .headline {
189
- font-size: ${headlineFontSize};
190
- font-weight: bold;
191
- text-align: center;
192
- line-height: ${headlineLineHeight};
193
- margin: 0;
194
- padding: 0;
195
- }
196
-
197
- .message {
198
- margin: 1rem 0 0 0;
199
- text-align: center;
200
- font-size: ${messageFontSize};
201
- line-height: ${messageLineHeight};
202
- }
203
-
204
- .logo-icon {
205
- border-radius: 100%;
206
- border: 3px solid #fff;
207
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18),
208
- 0 2px 2px 0 rgba(0, 0, 0, 0.08);
209
- width: ${modalLogoSize};
210
- height: ${modalLogoSize};
211
- margin: -2.9rem auto 0.5rem auto;
212
- background-color: black;
213
- display: flex;
214
- justify-content: center;
215
- align-items: center;
216
- }
217
-
218
- .logo-icon svg {
219
- width: calc(${modalLogoSize} * 0.65);
220
- height: calc(${modalLogoSize} * 0.65);
221
- }
222
-
223
- .logo-icon svg .fill-color {
224
- fill: white;
225
- }
226
-
227
- .logo-icon svg .stroke-color {
228
- stroke: red;
229
- }
230
-
231
- .close-button {
232
- position: absolute;
233
- right: 1.2rem;
234
- top: 1.2rem;
235
- width: 2rem;
236
- height: 2rem;
237
- border-radius: 100%;
238
- border: 0;
239
- padding: 0;
240
- cursor: pointer;
241
- background-color: white;
242
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18),
243
- 0 4px 4px 0 rgba(0, 0, 0, 0.08);
244
- }
245
-
246
- .sr-only {
247
- position: absolute;
248
- width: 1px;
249
- height: 1px;
250
- padding: 0;
251
- margin: -1px;
252
- overflow: hidden;
253
- clip: rect(0, 0, 0, 0);
254
- border: 0;
255
- }
256
-
257
- slot::slotted(.sr-only) {
258
- position: absolute;
259
- width: 1px;
260
- height: 1px;
261
- padding: 0;
262
- margin: -1px;
263
- overflow: hidden;
264
- clip: rect(0, 0, 0, 0);
265
- border: 0;
266
- }
267
- `;
268
- }
269
- };
270
- __decorate([
271
- property({ type: Object })
272
- ], ModalTemplate.prototype, "config", void 0);
273
- ModalTemplate = __decorate([
274
- customElement('modal-template')
275
- ], ModalTemplate);
276
- export { ModalTemplate };
1
+ import { __decorate } from "tslib";
2
+ import { LitElement, html, css, nothing } from 'lit';
3
+ import { property, customElement } from 'lit/decorators.js';
4
+ import '@internetarchive/ia-activity-indicator/ia-activity-indicator';
5
+ import closeIcon from '@internetarchive/icon-close/index.js';
6
+ import iaIcon from '@internetarchive/icon-ia-logo/index.js';
7
+ import { ModalConfig } from './modal-config';
8
+ let ModalTemplate = class ModalTemplate extends LitElement {
9
+ constructor() {
10
+ super(...arguments);
11
+ /**
12
+ * The ModalConfig that displayed the template
13
+ *
14
+ * @type {ModalConfig}
15
+ * @memberof ModalTemplate
16
+ */
17
+ this.config = new ModalConfig();
18
+ }
19
+ /** @inheritdoc */
20
+ render() {
21
+ return html `
22
+ <div class="modal-wrapper">
23
+ <div class="modal-container">
24
+ <header style="background-color: ${this.config.headerColor}">
25
+ ${this.config.showCloseButton ? this.closeButtonTemplate : ''}
26
+ ${this.config.showHeaderLogo
27
+ ? html `<div class="logo-icon">${iaIcon}</div>`
28
+ : nothing}
29
+ ${this.config.title
30
+ ? html `<h1 class="title">${this.config.title}</h1>`
31
+ : ''}
32
+ ${this.config.subtitle
33
+ ? html `<h2 class="subtitle">${this.config.subtitle}</h2>`
34
+ : ''}
35
+ </header>
36
+ <section
37
+ class="modal-body"
38
+ style="background-color: ${this.config.bodyColor}"
39
+ >
40
+ <div class="content">
41
+ <div
42
+ class="processing-logo ${this.config.showProcessingIndicator
43
+ ? ''
44
+ : 'hidden'}"
45
+ >
46
+ <ia-activity-indicator
47
+ .mode=${this.config.processingImageMode}
48
+ ></ia-activity-indicator>
49
+ </div>
50
+ ${this.config.headline
51
+ ? html ` <h1 class="headline">${this.config.headline}</h1> `
52
+ : ''}
53
+ ${this.config.message
54
+ ? html ` <p class="message">${this.config.message}</p> `
55
+ : ''}
56
+
57
+ <div class="slot-container">
58
+ <slot> </slot>
59
+ </div>
60
+ </div>
61
+ </section>
62
+ </div>
63
+ </div>
64
+ `;
65
+ }
66
+ /**
67
+ * Dispatch the `closeButtonPressed` event to the consumer
68
+ *
69
+ * @private
70
+ * @memberof ModalTemplate
71
+ */
72
+ handleCloseButton() {
73
+ const event = new Event('closeButtonPressed');
74
+ this.dispatchEvent(event);
75
+ }
76
+ /**
77
+ * The close button template
78
+ *
79
+ * @readonly
80
+ * @private
81
+ * @type {TemplateResult}
82
+ * @memberof ModalTemplate
83
+ */
84
+ get closeButtonTemplate() {
85
+ return html `
86
+ <button
87
+ type="button"
88
+ class="close-button"
89
+ tabindex="0"
90
+ @click=${this.handleCloseButton}
91
+ >
92
+ ${closeIcon}
93
+ </button>
94
+ `;
95
+ }
96
+ /** @inheritdoc */
97
+ static get styles() {
98
+ const modalLogoSize = css `var(--modalLogoSize, 6.5rem)`;
99
+ const processingImageSize = css `var(--processingImageSize, 7.5rem)`;
100
+ const modalCornerRadius = css `var(--modalCornerRadius, 1rem)`;
101
+ const modalBorder = css `var(--modalBorder, 2px solid black)`;
102
+ // if the content of the modal is too big to fit on screen, this sets the bottom margin
103
+ // it's not exact, but a close estimation
104
+ const modalBottomMarginCss = css `var(--modalBottomMargin, 2.5rem)`;
105
+ const modalTopMarginCss = css `var(--modalTopMargin, 5rem)`;
106
+ const modalHeaderBottomPaddingCss = css `var(--modalHeaderBottomPadding, 0.5em)`;
107
+ const modalBottomPadding = css `var(--modalBottomPadding, 2rem)`;
108
+ const scrollOffset = css `var(--modalScrollOffset, 5px)`;
109
+ const titleFontSize = css `var(--modalTitleFontSize, 1.8rem)`;
110
+ const subtitleFontSize = css `var(--modalSubtitleFontSize, 1.4rem)`;
111
+ const headlineFontSize = css `var(--modalHeadlineFontSize, 1.6rem)`;
112
+ const messageFontSize = css `var(--modalMessageFontSize, 1.4rem)`;
113
+ const titleLineHeight = css `var(--modalTitleLineHeight, normal)`;
114
+ const subtitleLineHeight = css `var(--modalSubtitleLineHeight, normal)`;
115
+ const headlineLineHeight = css `var(--modalHeadlineLineHeight, normal)`;
116
+ const messageLineHeight = css `var(--modalMessageLineHeight, normal)`;
117
+ return css `
118
+ .processing-logo {
119
+ margin: auto;
120
+ width: ${processingImageSize};
121
+ height: ${processingImageSize};
122
+ }
123
+
124
+ .processing-logo.hidden {
125
+ height: 1rem;
126
+ }
127
+
128
+ .processing-logo.hidden ia-activity-indicator {
129
+ display: none;
130
+ }
131
+
132
+ .modal-wrapper {
133
+ outline: none;
134
+ }
135
+
136
+ .modal-container {
137
+ border-radius: ${modalCornerRadius};
138
+ width: 100%;
139
+ margin-top: ${modalTopMarginCss};
140
+ }
141
+
142
+ header {
143
+ position: relative;
144
+ background-color: #36a483;
145
+ color: white;
146
+ border-radius: calc(${modalCornerRadius}) calc(${modalCornerRadius}) 0 0;
147
+ border: ${modalBorder};
148
+ border-bottom: 0;
149
+ text-align: center;
150
+ padding-bottom: ${modalHeaderBottomPaddingCss};
151
+ }
152
+
153
+ .title {
154
+ margin: 0;
155
+ padding: 0;
156
+ font-size: ${titleFontSize};
157
+ font-weight: bold;
158
+ line-height: ${titleLineHeight};
159
+ }
160
+
161
+ .subtitle {
162
+ margin: 0;
163
+ padding: 0;
164
+ font-weight: normal;
165
+ padding-top: 0;
166
+ font-size: ${subtitleFontSize};
167
+ line-height: ${subtitleLineHeight};
168
+ }
169
+
170
+ .modal-body {
171
+ background-color: #f5f5f7;
172
+ border-radius: 0 0 calc(${modalCornerRadius}) calc(${modalCornerRadius});
173
+ border: ${modalBorder};
174
+ border-top: 0;
175
+ padding: 0 1rem calc(${modalBottomPadding} - ${scrollOffset}) 1rem;
176
+ color: #333;
177
+ margin-bottom: 2.5rem;
178
+ min-height: 5rem;
179
+ }
180
+
181
+ .content {
182
+ overflow-y: auto;
183
+ max-height: calc(100vh - (16.5rem + ${modalBottomMarginCss}));
184
+ min-height: 5rem;
185
+ padding: 0 0 calc(${scrollOffset}) 0;
186
+ }
187
+
188
+ .headline {
189
+ font-size: ${headlineFontSize};
190
+ font-weight: bold;
191
+ text-align: center;
192
+ line-height: ${headlineLineHeight};
193
+ margin: 0;
194
+ padding: 0;
195
+ }
196
+
197
+ .message {
198
+ margin: 1rem 0 0 0;
199
+ text-align: center;
200
+ font-size: ${messageFontSize};
201
+ line-height: ${messageLineHeight};
202
+ }
203
+
204
+ .logo-icon {
205
+ border-radius: 100%;
206
+ border: 3px solid #fff;
207
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18),
208
+ 0 2px 2px 0 rgba(0, 0, 0, 0.08);
209
+ width: ${modalLogoSize};
210
+ height: ${modalLogoSize};
211
+ margin: -2.9rem auto 0.5rem auto;
212
+ background-color: black;
213
+ display: flex;
214
+ justify-content: center;
215
+ align-items: center;
216
+ }
217
+
218
+ .logo-icon svg {
219
+ width: calc(${modalLogoSize} * 0.65);
220
+ height: calc(${modalLogoSize} * 0.65);
221
+ }
222
+
223
+ .logo-icon svg .fill-color {
224
+ fill: white;
225
+ }
226
+
227
+ .logo-icon svg .stroke-color {
228
+ stroke: red;
229
+ }
230
+
231
+ .close-button {
232
+ position: absolute;
233
+ right: 1.2rem;
234
+ top: 1.2rem;
235
+ width: 2rem;
236
+ height: 2rem;
237
+ border-radius: 100%;
238
+ border: 0;
239
+ padding: 0;
240
+ cursor: pointer;
241
+ background-color: white;
242
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18),
243
+ 0 4px 4px 0 rgba(0, 0, 0, 0.08);
244
+ }
245
+
246
+ .sr-only {
247
+ position: absolute;
248
+ width: 1px;
249
+ height: 1px;
250
+ padding: 0;
251
+ margin: -1px;
252
+ overflow: hidden;
253
+ clip: rect(0, 0, 0, 0);
254
+ border: 0;
255
+ }
256
+
257
+ slot::slotted(.sr-only) {
258
+ position: absolute;
259
+ width: 1px;
260
+ height: 1px;
261
+ padding: 0;
262
+ margin: -1px;
263
+ overflow: hidden;
264
+ clip: rect(0, 0, 0, 0);
265
+ border: 0;
266
+ }
267
+ `;
268
+ }
269
+ };
270
+ __decorate([
271
+ property({ type: Object })
272
+ ], ModalTemplate.prototype, "config", void 0);
273
+ ModalTemplate = __decorate([
274
+ customElement('modal-template')
275
+ ], ModalTemplate);
276
+ export { ModalTemplate };
277
277
  //# sourceMappingURL=modal-template.js.map