@penwin/discord-components-core 4.3.8 → 4.3.9-dev-32918495512.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 (207) hide show
  1. package/CHANGELOG.md +826 -826
  2. package/LICENSE.md +20 -0
  3. package/README.md +673 -673
  4. package/custom-elements.json +1803 -1708
  5. package/dist/bundle/index.mjs +1976 -1976
  6. package/dist/bundle/index.mjs.map +1 -1
  7. package/dist/bundle/styles/base.css +1 -2
  8. package/dist/components/_private/BaseDiscordSelectMenuOption.js +72 -72
  9. package/dist/components/_private/DiscordMediaAttachmentStyles.js +114 -114
  10. package/dist/components/_private/DiscordPlaybackControlStyles.js +153 -153
  11. package/dist/components/_private/DiscordVolumeControlStyles.js +158 -158
  12. package/dist/components/_private/DiscordWhiteSpace.js +4 -4
  13. package/dist/components/discord-action-row/DiscordActionRow.js +6 -6
  14. package/dist/components/discord-attachments/DiscordAttachments.js +18 -18
  15. package/dist/components/discord-audio-attachment/DiscordAudioAttachment.js +202 -202
  16. package/dist/components/discord-author-info/DiscordAuthorInfo.d.ts.map +1 -1
  17. package/dist/components/discord-author-info/DiscordAuthorInfo.js +156 -156
  18. package/dist/components/discord-author-info/DiscordAuthorInfo.js.map +1 -1
  19. package/dist/components/discord-bold/DiscordBold.js +4 -4
  20. package/dist/components/discord-button/DiscordButton.d.ts.map +1 -1
  21. package/dist/components/discord-button/DiscordButton.js +131 -128
  22. package/dist/components/discord-button/DiscordButton.js.map +1 -1
  23. package/dist/components/discord-channel-select-menu-option/DiscordChannelSelectMenuOption.js +131 -131
  24. package/dist/components/discord-code/DiscordCode.js +64 -64
  25. package/dist/components/discord-code-block/DiscordCodeBlock.js +2 -2
  26. package/dist/components/discord-command/DiscordCommand.js +109 -109
  27. package/dist/components/discord-components-column/DiscordComponentsColumn.js +18 -18
  28. package/dist/components/discord-container/DiscordContainer.js +47 -47
  29. package/dist/components/discord-custom-emoji/DiscordCustomEmoji.js +36 -36
  30. package/dist/components/discord-embed/DiscordEmbed.d.ts.map +1 -1
  31. package/dist/components/discord-embed/DiscordEmbed.js +285 -285
  32. package/dist/components/discord-embed/DiscordEmbed.js.map +1 -1
  33. package/dist/components/discord-embed-description/DiscordEmbedDescription.js +25 -25
  34. package/dist/components/discord-embed-field/DiscordEmbedField.js +40 -40
  35. package/dist/components/discord-embed-fields/DiscordEmbedFields.js +19 -19
  36. package/dist/components/discord-embed-footer/DiscordEmbedFooter.js +36 -36
  37. package/dist/components/discord-file-attachment/DiscordFileAttachment.js +191 -191
  38. package/dist/components/discord-forwarded-message/DiscordForwardedMessage.js +126 -126
  39. package/dist/components/discord-header/DiscordHeader.js +27 -27
  40. package/dist/components/discord-image-attachment/DiscordImageAttachment.js +38 -38
  41. package/dist/components/discord-input-text/DiscordInputText.js +284 -284
  42. package/dist/components/discord-invite/DiscordInvite.js +225 -225
  43. package/dist/components/discord-italic/DiscordItalic.js +4 -4
  44. package/dist/components/discord-link/DiscordLink.js +19 -19
  45. package/dist/components/discord-list-item/DiscordListItem.d.ts.map +1 -1
  46. package/dist/components/discord-list-item/DiscordListItem.js +8 -5
  47. package/dist/components/discord-list-item/DiscordListItem.js.map +1 -1
  48. package/dist/components/discord-media-fullscreen-previewer/DiscordMediaFullscreenPreviewer.js +463 -463
  49. package/dist/components/discord-media-gallery/DiscordMediaGallery.js +219 -219
  50. package/dist/components/discord-media-gallery-item/DiscordMediaGalleryItem.d.ts.map +1 -1
  51. package/dist/components/discord-media-gallery-item/DiscordMediaGalleryItem.js +102 -99
  52. package/dist/components/discord-media-gallery-item/DiscordMediaGalleryItem.js.map +1 -1
  53. package/dist/components/discord-media-spoileable-cover/DiscordMediaSpoileableCover.js +65 -65
  54. package/dist/components/discord-mention/DiscordMention.js +66 -66
  55. package/dist/components/discord-message/DiscordMessage.d.ts.map +1 -1
  56. package/dist/components/discord-message/DiscordMessage.js +338 -335
  57. package/dist/components/discord-message/DiscordMessage.js.map +1 -1
  58. package/dist/components/discord-messages/DiscordMessages.js +77 -77
  59. package/dist/components/discord-modal/DiscordModal.js +465 -465
  60. package/dist/components/discord-ordered-list/DiscordOrderedList.d.ts.map +1 -1
  61. package/dist/components/discord-ordered-list/DiscordOrderedList.js +20 -14
  62. package/dist/components/discord-ordered-list/DiscordOrderedList.js.map +1 -1
  63. package/dist/components/discord-poll/DiscordPoll.js +157 -157
  64. package/dist/components/discord-poll-answer/DiscordPollAnswer.js +227 -227
  65. package/dist/components/discord-pre/DiscordPre.js +18 -18
  66. package/dist/components/discord-quote/DiscordQuote.js +31 -31
  67. package/dist/components/discord-reaction/DiscordReaction.js +73 -73
  68. package/dist/components/discord-reactions/DiscordReactions.js +9 -9
  69. package/dist/components/discord-reply/DiscordReply.d.ts.map +1 -1
  70. package/dist/components/discord-reply/DiscordReply.js +246 -246
  71. package/dist/components/discord-reply/DiscordReply.js.map +1 -1
  72. package/dist/components/discord-role-select-menu-option/DiscordRoleSelectMenuOption.js +75 -75
  73. package/dist/components/discord-section/DiscordSection.js +6 -6
  74. package/dist/components/discord-section-components/DiscordSectionComponents.js +14 -14
  75. package/dist/components/discord-select-menu-portal/DiscordSelectMenuPortal.js +30 -30
  76. package/dist/components/discord-separator/DiscordSeparator.js +9 -9
  77. package/dist/components/discord-spoiler/DiscordSpoiler.js +31 -31
  78. package/dist/components/discord-string-select-menu/DiscordStringSelectMenu.js +192 -192
  79. package/dist/components/discord-string-select-menu-option/DiscordStringSelectMenuOption.js +45 -45
  80. package/dist/components/discord-subscript/DiscordSubscript.js +15 -15
  81. package/dist/components/discord-system-message/DiscordSystemMessage.d.ts.map +1 -1
  82. package/dist/components/discord-system-message/DiscordSystemMessage.js +134 -131
  83. package/dist/components/discord-system-message/DiscordSystemMessage.js.map +1 -1
  84. package/dist/components/discord-tenor-video/DiscordTenorVideo.js +76 -76
  85. package/dist/components/discord-text-display/DiscordTextDisplay.js +10 -10
  86. package/dist/components/discord-text-file-attachment-previewer/DiscordTextFileAttachmentPreviewer.js +55 -55
  87. package/dist/components/discord-thread/DiscordThread.js +81 -81
  88. package/dist/components/discord-thread-message/DiscordThreadMessage.js +90 -90
  89. package/dist/components/discord-thumbnail/DiscordThumbnail.js +20 -20
  90. package/dist/components/discord-time/DiscordTime.js +7 -7
  91. package/dist/components/discord-transcript-header/DiscordTranscriptHeader.js +51 -51
  92. package/dist/components/discord-unordered-list/DiscordUnorderedList.d.ts.map +1 -1
  93. package/dist/components/discord-unordered-list/DiscordUnorderedList.js +18 -15
  94. package/dist/components/discord-unordered-list/DiscordUnorderedList.js.map +1 -1
  95. package/dist/components/discord-user-select-menu-option/DiscordUserSelectMenuOption.js +58 -58
  96. package/dist/components/discord-verified-author-tag/DiscordVerifiedAuthorTag.js +36 -36
  97. package/dist/components/discord-video-attachment/DiscordVideoAttachment.js +494 -494
  98. package/dist/components/discord-voice-message/DiscordVoiceMessage.js +255 -255
  99. package/dist/components/svgs/AttachmentDownloadButton.js +67 -67
  100. package/dist/components/svgs/AttachmentReply.js +5 -5
  101. package/dist/components/svgs/Boost.js +3 -3
  102. package/dist/components/svgs/ChannelForum.js +19 -19
  103. package/dist/components/svgs/ChannelIcon.js +17 -17
  104. package/dist/components/svgs/ChannelThread.js +15 -15
  105. package/dist/components/svgs/ChannelsAndRoles.js +23 -23
  106. package/dist/components/svgs/CommandIcon.js +4 -4
  107. package/dist/components/svgs/CommandIconName.js +5 -5
  108. package/dist/components/svgs/CommandReply.js +9 -9
  109. package/dist/components/svgs/CustomizeCommunity.js +17 -17
  110. package/dist/components/svgs/DMCall.js +6 -6
  111. package/dist/components/svgs/DMEdit.js +8 -8
  112. package/dist/components/svgs/DMMissedCall.js +8 -8
  113. package/dist/components/svgs/Ephemeral.js +21 -21
  114. package/dist/components/svgs/ExpandMore.js +4 -4
  115. package/dist/components/svgs/FileAttachment.js +10 -10
  116. package/dist/components/svgs/GuildBadge.js +8 -8
  117. package/dist/components/svgs/LaunchIcon.js +9 -9
  118. package/dist/components/svgs/LockedVoiceChannel.js +17 -17
  119. package/dist/components/svgs/MediaPauseIcon.js +2 -2
  120. package/dist/components/svgs/MediaPlayIcon.js +2 -2
  121. package/dist/components/svgs/MediaRestartIcon.js +2 -2
  122. package/dist/components/svgs/MediaVolumeAbove50PercentIcon.js +3 -3
  123. package/dist/components/svgs/MediaVolumeBelow50PercentIcon.js +2 -2
  124. package/dist/components/svgs/MediaVolumeMutedIcon.js +2 -2
  125. package/dist/components/svgs/MessageIcon.js +3 -3
  126. package/dist/components/svgs/ModalClose.js +4 -4
  127. package/dist/components/svgs/ModalWarning.js +5 -5
  128. package/dist/components/svgs/PartnerBadgeOverlay.js +11 -11
  129. package/dist/components/svgs/Pin.js +5 -5
  130. package/dist/components/svgs/PremiumIcon.js +6 -6
  131. package/dist/components/svgs/ReplyIcon.js +5 -5
  132. package/dist/components/svgs/ServerGuide.js +17 -17
  133. package/dist/components/svgs/ServerUpgrade.js +7 -7
  134. package/dist/components/svgs/SystemAlert.js +7 -7
  135. package/dist/components/svgs/SystemError.js +6 -6
  136. package/dist/components/svgs/Thread.js +9 -9
  137. package/dist/components/svgs/UserJoin.js +5 -5
  138. package/dist/components/svgs/UserLeave.js +5 -5
  139. package/dist/components/svgs/VerifiedBadgeOverlay.js +4 -4
  140. package/dist/components/svgs/VerifiedTick.js +13 -13
  141. package/dist/components/svgs/VideoFullScreenIcon.js +8 -8
  142. package/dist/components/svgs/VideoPausePopIcon.js +2 -2
  143. package/dist/components/svgs/VideoPlayPopIcon.js +2 -2
  144. package/dist/components/svgs/VoiceChannel.js +19 -19
  145. package/dist/components/svgs/clan-icons/Crystal.js +27 -27
  146. package/dist/components/svgs/clan-icons/Diamond.js +35 -35
  147. package/dist/components/svgs/clan-icons/Explosion.js +30 -30
  148. package/dist/components/svgs/clan-icons/Flame.js +23 -23
  149. package/dist/components/svgs/clan-icons/Flower.js +18 -18
  150. package/dist/components/svgs/clan-icons/Heart.js +19 -19
  151. package/dist/components/svgs/clan-icons/Key.js +32 -32
  152. package/dist/components/svgs/clan-icons/Leaf.js +23 -23
  153. package/dist/components/svgs/clan-icons/Lightning.js +25 -25
  154. package/dist/components/svgs/clan-icons/Magic.js +34 -34
  155. package/dist/components/svgs/clan-icons/Moon.js +21 -21
  156. package/dist/components/svgs/clan-icons/Mushroom.js +33 -33
  157. package/dist/components/svgs/clan-icons/Mythical.js +32 -32
  158. package/dist/components/svgs/clan-icons/Ornament.js +48 -48
  159. package/dist/components/svgs/clan-icons/Plasma.js +23 -23
  160. package/dist/components/svgs/clan-icons/Rock.js +20 -20
  161. package/dist/components/svgs/clan-icons/Shell.js +29 -29
  162. package/dist/components/svgs/clan-icons/Skull.js +28 -28
  163. package/dist/components/svgs/clan-icons/Sun.js +36 -36
  164. package/dist/components/svgs/clan-icons/Sword.js +27 -27
  165. package/dist/components/svgs/clan-icons/Water.js +20 -20
  166. package/dist/config.d.ts +1 -1
  167. package/dist/config.d.ts.map +1 -1
  168. package/dist/config.js +9 -3
  169. package/dist/config.js.map +1 -1
  170. package/dist/hydrate/index.d.ts +40 -0
  171. package/dist/hydrate/index.d.ts.map +1 -0
  172. package/dist/hydrate/index.js +48 -0
  173. package/dist/hydrate/index.js.map +1 -0
  174. package/package.json +222 -219
  175. package/dist/bundle/styles/base.css.map +0 -1
  176. package/dist/components/discord-container copy/DiscordContainer.d.ts +0 -22
  177. package/dist/components/discord-container copy/DiscordContainer.d.ts.map +0 -1
  178. package/dist/components/discord-container copy/DiscordContainer.js +0 -159
  179. package/dist/components/discord-container copy/DiscordContainer.js.map +0 -1
  180. package/dist/components/discord-media-fullscreen-previewer/context.d.ts +0 -10
  181. package/dist/components/discord-media-fullscreen-previewer/context.d.ts.map +0 -1
  182. package/dist/components/discord-media-fullscreen-previewer/context.js +0 -3
  183. package/dist/components/discord-media-fullscreen-previewer/context.js.map +0 -1
  184. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.d.ts +0 -26
  185. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.d.ts.map +0 -1
  186. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.js +0 -183
  187. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.js.map +0 -1
  188. package/dist/components/discord-section/DiscordContainer.d.ts +0 -22
  189. package/dist/components/discord-section/DiscordContainer.d.ts.map +0 -1
  190. package/dist/components/discord-section/DiscordContainer.js +0 -159
  191. package/dist/components/discord-section/DiscordContainer.js.map +0 -1
  192. package/dist/components/discord-section copy/DiscordSection.d.ts +0 -15
  193. package/dist/components/discord-section copy/DiscordSection.d.ts.map +0 -1
  194. package/dist/components/discord-section copy/DiscordSection.js +0 -77
  195. package/dist/components/discord-section copy/DiscordSection.js.map +0 -1
  196. package/dist/components/discord-section-components/DiscordSection.d.ts +0 -15
  197. package/dist/components/discord-section-components/DiscordSection.d.ts.map +0 -1
  198. package/dist/components/discord-section-components/DiscordSection.js +0 -77
  199. package/dist/components/discord-section-components/DiscordSection.js.map +0 -1
  200. package/dist/components/discord-text-display/DiscordSection.d.ts +0 -15
  201. package/dist/components/discord-text-display/DiscordSection.d.ts.map +0 -1
  202. package/dist/components/discord-text-display/DiscordSection.js +0 -79
  203. package/dist/components/discord-text-display/DiscordSection.js.map +0 -1
  204. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.d.ts +0 -71
  205. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.d.ts.map +0 -1
  206. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.js +0 -238
  207. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.js.map +0 -1
@@ -38,396 +38,396 @@ let DiscordModal = class DiscordModal extends LitElement {
38
38
  this.lightTheme = false;
39
39
  this.dialogRef = createRef();
40
40
  }
41
- static { this.styles = css `
42
- @keyframes modal-pop {
43
- 0% {
44
- opacity: 0;
45
- }
46
- }
47
-
48
- *,
49
- :before,
50
- :after {
51
- border-width: 0 !important;
52
- }
53
-
54
- /* This does positioning, sizing, and transition */
55
- .discord-modal {
56
- pointer-events: none;
57
- position: fixed;
58
- top: 0;
59
- right: 0;
60
- bottom: 0;
61
- left: 0;
62
- margin: 0;
63
- display: grid;
64
- height: 100%;
65
- width: 100%;
66
- max-height: none;
67
- max-width: none;
68
- justify-items: center;
69
- padding: 0;
70
- opacity: 0;
71
- overscroll-behavior: contain;
72
- z-index: 1002;
73
- background-color: transparent;
74
- color: inherit;
75
- transition-duration: 0.2s;
76
- transition-timing-function: ease;
77
- transition-property: all;
78
- overflow: hidden;
79
- }
80
-
81
- .discord-modal-open,
82
- .discord-modal:target,
83
- .discord-modal-toggle:checked + .discord-modal,
84
- .discord-modal[open] {
85
- pointer-events: auto;
86
- visibility: visible;
87
- opacity: 1;
88
- }
89
-
90
- :where(.discord-modal) {
91
- align-items: center;
92
- }
93
-
94
- .discord-modal-box {
95
- display: none;
96
- flex-direction: column;
97
- min-height: 0;
98
- max-width: 100%;
99
- background-color: oklab(0.321088 -0.000220731 -0.00934622);
100
- transform: translate(0, 0) rotate(0) skew(0) skewY(0) scaleX(0.9) scaleY(0.9);
101
- transition-property: all;
102
- transition-timing-function: ease;
103
- transition-duration: 0.2s;
104
- box-shadow: none;
105
- overflow-y: visible;
106
- border-radius: 4px;
107
- }
108
-
109
- .discord-modal-box:focus {
110
- outline: none;
111
- border: none;
112
- }
113
-
114
- .discord-modal-open .discord-modal-box,
115
- .discord-modal-toggle:checked + .discord-modal .discord-modal-box,
116
- .discord-modal:target .discord-modal-box,
117
- .discord-modal[open] .discord-modal-box {
118
- transform: translate(0, 0px) rotate(0) skew(0) skewY(0) scaleX(1) scaleY(1);
119
- }
120
-
121
- .discord-modal:not(dialog:not(.discord-modal-open)),
122
- .discord-modal::backdrop {
123
- background-color: rgba(0, 0, 0, 0.7);
124
- animation: modal-pop 0.2s ease-out;
125
- }
126
-
127
- .discord-modal-light-theme:not(dialog:not(.discord-modal-open)),
128
- .discord-modal-light-theme::backdrop {
129
- background-color: rgba(0, 0, 0, 0.54);
130
- backdrop-filter: blur(0px);
131
- }
132
-
133
- .discord-modal-root {
134
- background-color: oklab(0.321088 -0.000220731 -0.00934622);
135
- border-radius: 4px;
136
- display: flex;
137
- flex-direction: column;
138
- margin: 0 auto;
139
- pointer-events: all;
140
- position: relative;
141
- box-shadow:
142
- rgba(30, 31, 34, 0.6) 0px 0px 0px 1px,
143
- rgba(0, 0, 0, 0.2) 0px 2px 10px 0px;
144
- opacity: 1;
145
- transform: scale(1);
146
- width: 440px;
147
- max-height: 720px;
148
- min-height: 200px;
149
- }
150
-
151
- .discord-modal-content-container::-webkit-scrollbar {
152
- width: 5px;
153
- background-color: transparent;
154
- }
155
-
156
- .discord-modal-content-container::-webkit-scrollbar-track {
157
- background-color: transparent;
158
- }
159
-
160
- .discord-modal-content-container::-webkit-scrollbar-thumb {
161
- border-radius: 10px;
162
- background-color: rgba(0, 0, 0, 0.5);
163
- }
164
-
165
- .discord-modal-root-light-theme {
166
- box-shadow:
167
- 0 0 0 1px hsl(210 calc(1 * 9.3%) 78.8% / 0.3),
168
- 0 2px 10px 0 hsl(0 calc(1 * 0%) 0% / 0.1);
169
- background-color: color-mix(in oklab, hsl(0 calc(1 * 0%) 100% / 1) 100%, black 0%);
170
- }
171
-
172
- .discord-modal-header-container {
173
- flex: 0 0 auto;
174
- border-radius: 4px 4px 0 0;
175
- transition: box-shadow 0.1s ease-out;
176
- word-wrap: break-word;
177
- position: relative;
178
- padding: 16px;
179
- z-index: 1;
180
- overflow: hidden;
181
- flex-wrap: nowrap;
182
- justify-content: flex-start;
183
- align-items: center;
184
- flex-direction: row;
185
- display: flex;
186
- }
187
-
188
- .discord-modal-content-container {
189
- overflow: hidden auto;
190
- padding-right: 8px;
191
- position: relative;
192
- z-index: 0;
193
- border-radius: 5px 5px 0 0;
194
- padding-left: 16px;
195
- position: relative;
196
- z-index: 0;
197
- border-radius: 5px 5px 0 0;
198
- padding-left: 16px;
199
- }
200
-
201
- .discord-modal-actions-container {
202
- flex: 0 0 auto;
203
- box-shadow: inset 0 1px 0 hsl(220 calc(1 * 6.5%) 18% / 0.6);
204
- border-radius: 0 0 5px 5px;
205
- background-color: color-mix(in oklab, hsl(220 calc(1 * 6.5%) 18% / 1) 100%, black 0%);
206
- position: relative;
207
- padding: 16px;
208
- z-index: 1;
209
- overflow-x: hidden;
210
- flex-wrap: nowrap;
211
- justify-content: flex-start;
212
- align-items: center;
213
- flex-direction: row-reverse;
214
- display: flex;
215
- }
216
-
217
- .discord-modal-actions-container-light-theme {
218
- box-shadow: inset 0 1px 0 hsl(0 calc(1 * 0%) 97.6% / 0.6);
219
- background-color: color-mix(in oklab, hsl(220 calc(1 * 13%) 95.5% / 1) 100%, black 0%);
220
- }
221
-
222
- .discord-modal-avatar {
223
- margin-right: 0.5em;
224
- position: relative;
225
- min-width: 24px;
226
- width: 24px;
227
- height: 24px;
228
- border-radius: 50%;
229
- }
230
-
231
- .discord-modal-avatar img {
232
- width: 24px;
233
- height: 24px;
234
- border-radius: 50%;
235
- }
236
-
237
- .discord-modal-title {
238
- font-size: 24px;
239
- line-height: 30px;
240
- color: color-mix(in oklab, hsl(220 calc(1 * 13%) 95.5% / 1) 100%, black 0%);
241
- }
242
-
243
- .discord-modal-title-light-theme {
244
- color: color-mix(in oklab, hsl(240 calc(1 * 7.7%) 2.5% / 1) 100%, black 0%);
245
- }
246
-
247
- .discord-modal-close-button {
248
- position: absolute;
249
- top: 16px;
250
- right: 16px;
251
- height: 26px;
252
- padding: 4px;
253
- transition: opacity.2s ease-in-out;
254
- opacity: 0.5;
255
- cursor: pointer;
256
- border-radius: 3px;
257
- color: color-mix(in oklab, hsl(215 calc(1 * 8.8%) 73.3% / 1) 100%, black 0%);
258
- box-sizing: content-box;
259
- width: auto;
260
- background: transparent;
261
- border: 0;
262
- margin: 0;
263
- display: flex;
264
- justify-content: center;
265
- align-items: center;
266
- font-size: 14px;
267
- font-weight: 500;
268
- line-height: 16px;
269
- -moz-user-select: none;
270
- user-select: none;
271
- outline: 0;
272
- font-family: 'gg sans', 'Noto Sans', Whitney, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
273
- text-rendering: optimizeLegibility;
274
- }
275
-
276
- .discord-modal-close-button-light-theme {
277
- color: color-mix(in oklab, hsl(228 calc(1 * 6%) 32.5% / 1) 100%, black 0%);
278
- }
279
-
280
- .discord-modal-close-button:hover {
281
- opacity: 1;
282
- color: oklab(0.899401 -0.00192499 -0.00481987);
283
- }
284
-
285
- .discord-modal-close-button-light-theme:hover {
286
- color: color-mix(in oklab, hsl(223 calc(1 * 6.7%) 20.6% / 1) 100%, black 0%);
287
- }
288
-
289
- .discord-modal-close-button-content {
290
- background-image: linear-gradient(
291
- to top,
292
- transparent,
293
- transparent 1px,
294
- transparent 1px,
295
- transparent calc(1px + 1px),
296
- transparent calc(1px + 1px)
297
- );
298
- }
299
-
300
- .discord-modal-warning-container {
301
- margin-bottom: 8px;
302
- background: color-mix(in oklab, hsl(40 calc(1 * 86.4%) 56.9% / 0.1) 100%, hsl(0 0% 0% / 0.1) 0%);
303
- border: 1px solid color-mix(in oklab, hsl(40 calc(1 * 86.4%) 56.9% / 1) 100%, black 0%);
304
- color: color-mix(in oklab, hsl(0 calc(1 * 0%) 100% / 1) 100%, black 0%);
305
- display: flex;
306
- border-radius: 4px;
307
- font-weight: 500;
308
- padding: 8px;
309
- width: 100%;
310
- box-sizing: border-box;
311
- }
312
-
313
- .discord-modal-warning-container-light-theme {
314
- background: color-mix(in oklab, hsl(38 calc(1 * 78.6%) 38.4% / 0.1) 100%, hsl(0 0% 0% / 0.1) 0%);
315
- border: color-mix(in oklab, hsl(38 calc(1 * 78.6%) 38.4% / 1) 100%, black 0%);
316
- color: color-mix(in oklab, hsl(0 calc(1 * 0%) 0% / 1) 100%, black 0%);
317
- }
318
-
319
- .discord-modal-warning-icon {
320
- display: flex;
321
- }
322
-
323
- .discord-modal-warning {
324
- color: color-mix(in oklab, hsl(210 calc(1 * 9.1%) 87.1% / 1) 100%, black 0%);
325
- margin-left: 10px;
326
- flex: 1;
327
- align-self: center;
328
- font-family: 'gg sans', 'Noto Sans', Whitney, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
329
- font-size: 14px;
330
- line-height: 1.2857142857142858;
331
- font-weight: 500;
332
- }
333
-
334
- .discord-modal-warning-light-theme {
335
- color: color-mix(in oklab, hsl(223 calc(1 * 6.7%) 20.6% / 1) 100%, black 0%);
336
- }
337
-
338
- .discord-modal-warning-icon-svg {
339
- fill: color-mix(in oklab, hsl(215 calc(1 * 8.8%) 73.3% / 1) 100%, black 0%);
340
- color: color-mix(in oklab, hsl(40 calc(1 * 86.4%) 56.9% / 1) 100%, black 0%);
341
- width: 24px;
342
- height: 24px;
343
- flex-shrink: 0;
344
- }
345
-
346
- .discord-modal-warning-icon-svg-light-theme {
347
- color: color-mix(in oklab, hsl(38 calc(1 * 78.6%) 38.4% / 1) 100%, black 0%);
348
- fill: none;
349
- }
350
-
351
- .discord-modal-warning-icon-svg-light-theme > path {
352
- fill: color-mix(in oklab, hsl(228 calc(1 * 6%) 32.5% / 1) 100%, black 0%);
353
- }
354
-
355
- .discord-modal-warning-author {
356
- font-weight: 600;
357
- }
358
-
359
- .discord-modal-button {
360
- align-items: center;
361
- background: none;
362
- border-radius: 3px;
363
- border: none;
364
- box-sizing: border-box;
365
- color: hsl(0 calc(1 * 0%) 100% / 1);
366
- display: flex;
367
- font-size: 14px;
368
- font-weight: 500;
369
- height: 38px;
370
- justify-content: center;
371
- line-height: 16px;
372
- min-height: 38px;
373
- min-width: 96px;
374
- padding: 2px 16px;
375
- position: relative;
376
- -moz-user-select: none;
377
- user-select: none;
378
- width: auto;
379
- cursor: pointer;
380
- }
381
-
382
- .discord-modal-button-submit {
383
- background-color: hsl(235 calc(1 * 85.6%) 64.7% / 1);
384
- transition:
385
- background-color 170ms ease,
386
- color 170ms ease;
387
- }
388
-
389
- .discord-modal-button-submit:hover {
390
- background-color: hsl(235 calc(1 * 51.4%) 52.4% / 1);
391
- }
392
-
393
- .discord-modal-button-submit:active {
394
- background-color: hsl(235 calc(1 * 46.7%) 44.1% / 1);
395
- }
396
-
397
- .discord-modal-button-cancel-light-theme {
398
- color: hsl(223 calc(1 * 5.8%) 52.9% / 1);
399
- }
400
-
401
- .discord-modal-button-cancel:hover > .discord-modal-button-content {
402
- --button--underline-color: hsl(0 calc(1 * 0%) 100% / 1);
403
- }
404
-
405
- .discord-modal-button-cancel-light-theme:hover > .discord-modal-button-content-light-theme {
406
- --button--underline-color: hsl(223 calc(1 * 5.8%) 52.9% / 1);
407
- }
408
-
409
- .discord-modal-button-content {
410
- --button--underline-color: transparent;
411
- margin: 0 auto;
412
- white-space: nowrap;
413
- text-overflow: ellipsis;
414
- overflow: hidden;
415
- background-image: linear-gradient(
416
- to top,
417
- transparent,
418
- transparent 1px,
419
- var(--button--underline-color) 1px,
420
- var(--button--underline-color) calc(1px + 1px),
421
- transparent calc(1px + 1px)
422
- );
423
- }
424
-
425
- .discord-modal-slot-input-text {
426
- padding-right: 8px;
427
- padding-left: 20px;
428
- position: sticky;
429
- z-index: 3;
430
- }
41
+ static { this.styles = css `
42
+ @keyframes modal-pop {
43
+ 0% {
44
+ opacity: 0;
45
+ }
46
+ }
47
+
48
+ *,
49
+ :before,
50
+ :after {
51
+ border-width: 0 !important;
52
+ }
53
+
54
+ /* This does positioning, sizing, and transition */
55
+ .discord-modal {
56
+ pointer-events: none;
57
+ position: fixed;
58
+ top: 0;
59
+ right: 0;
60
+ bottom: 0;
61
+ left: 0;
62
+ margin: 0;
63
+ display: grid;
64
+ height: 100%;
65
+ width: 100%;
66
+ max-height: none;
67
+ max-width: none;
68
+ justify-items: center;
69
+ padding: 0;
70
+ opacity: 0;
71
+ overscroll-behavior: contain;
72
+ z-index: 1002;
73
+ background-color: transparent;
74
+ color: inherit;
75
+ transition-duration: 0.2s;
76
+ transition-timing-function: ease;
77
+ transition-property: all;
78
+ overflow: hidden;
79
+ }
80
+
81
+ .discord-modal-open,
82
+ .discord-modal:target,
83
+ .discord-modal-toggle:checked + .discord-modal,
84
+ .discord-modal[open] {
85
+ pointer-events: auto;
86
+ visibility: visible;
87
+ opacity: 1;
88
+ }
89
+
90
+ :where(.discord-modal) {
91
+ align-items: center;
92
+ }
93
+
94
+ .discord-modal-box {
95
+ display: none;
96
+ flex-direction: column;
97
+ min-height: 0;
98
+ max-width: 100%;
99
+ background-color: oklab(0.321088 -0.000220731 -0.00934622);
100
+ transform: translate(0, 0) rotate(0) skew(0) skewY(0) scaleX(0.9) scaleY(0.9);
101
+ transition-property: all;
102
+ transition-timing-function: ease;
103
+ transition-duration: 0.2s;
104
+ box-shadow: none;
105
+ overflow-y: visible;
106
+ border-radius: 4px;
107
+ }
108
+
109
+ .discord-modal-box:focus {
110
+ outline: none;
111
+ border: none;
112
+ }
113
+
114
+ .discord-modal-open .discord-modal-box,
115
+ .discord-modal-toggle:checked + .discord-modal .discord-modal-box,
116
+ .discord-modal:target .discord-modal-box,
117
+ .discord-modal[open] .discord-modal-box {
118
+ transform: translate(0, 0px) rotate(0) skew(0) skewY(0) scaleX(1) scaleY(1);
119
+ }
120
+
121
+ .discord-modal:not(dialog:not(.discord-modal-open)),
122
+ .discord-modal::backdrop {
123
+ background-color: rgba(0, 0, 0, 0.7);
124
+ animation: modal-pop 0.2s ease-out;
125
+ }
126
+
127
+ .discord-modal-light-theme:not(dialog:not(.discord-modal-open)),
128
+ .discord-modal-light-theme::backdrop {
129
+ background-color: rgba(0, 0, 0, 0.54);
130
+ backdrop-filter: blur(0px);
131
+ }
132
+
133
+ .discord-modal-root {
134
+ background-color: oklab(0.321088 -0.000220731 -0.00934622);
135
+ border-radius: 4px;
136
+ display: flex;
137
+ flex-direction: column;
138
+ margin: 0 auto;
139
+ pointer-events: all;
140
+ position: relative;
141
+ box-shadow:
142
+ rgba(30, 31, 34, 0.6) 0px 0px 0px 1px,
143
+ rgba(0, 0, 0, 0.2) 0px 2px 10px 0px;
144
+ opacity: 1;
145
+ transform: scale(1);
146
+ width: 440px;
147
+ max-height: 720px;
148
+ min-height: 200px;
149
+ }
150
+
151
+ .discord-modal-content-container::-webkit-scrollbar {
152
+ width: 5px;
153
+ background-color: transparent;
154
+ }
155
+
156
+ .discord-modal-content-container::-webkit-scrollbar-track {
157
+ background-color: transparent;
158
+ }
159
+
160
+ .discord-modal-content-container::-webkit-scrollbar-thumb {
161
+ border-radius: 10px;
162
+ background-color: rgba(0, 0, 0, 0.5);
163
+ }
164
+
165
+ .discord-modal-root-light-theme {
166
+ box-shadow:
167
+ 0 0 0 1px hsl(210 calc(1 * 9.3%) 78.8% / 0.3),
168
+ 0 2px 10px 0 hsl(0 calc(1 * 0%) 0% / 0.1);
169
+ background-color: color-mix(in oklab, hsl(0 calc(1 * 0%) 100% / 1) 100%, black 0%);
170
+ }
171
+
172
+ .discord-modal-header-container {
173
+ flex: 0 0 auto;
174
+ border-radius: 4px 4px 0 0;
175
+ transition: box-shadow 0.1s ease-out;
176
+ word-wrap: break-word;
177
+ position: relative;
178
+ padding: 16px;
179
+ z-index: 1;
180
+ overflow: hidden;
181
+ flex-wrap: nowrap;
182
+ justify-content: flex-start;
183
+ align-items: center;
184
+ flex-direction: row;
185
+ display: flex;
186
+ }
187
+
188
+ .discord-modal-content-container {
189
+ overflow: hidden auto;
190
+ padding-right: 8px;
191
+ position: relative;
192
+ z-index: 0;
193
+ border-radius: 5px 5px 0 0;
194
+ padding-left: 16px;
195
+ position: relative;
196
+ z-index: 0;
197
+ border-radius: 5px 5px 0 0;
198
+ padding-left: 16px;
199
+ }
200
+
201
+ .discord-modal-actions-container {
202
+ flex: 0 0 auto;
203
+ box-shadow: inset 0 1px 0 hsl(220 calc(1 * 6.5%) 18% / 0.6);
204
+ border-radius: 0 0 5px 5px;
205
+ background-color: color-mix(in oklab, hsl(220 calc(1 * 6.5%) 18% / 1) 100%, black 0%);
206
+ position: relative;
207
+ padding: 16px;
208
+ z-index: 1;
209
+ overflow-x: hidden;
210
+ flex-wrap: nowrap;
211
+ justify-content: flex-start;
212
+ align-items: center;
213
+ flex-direction: row-reverse;
214
+ display: flex;
215
+ }
216
+
217
+ .discord-modal-actions-container-light-theme {
218
+ box-shadow: inset 0 1px 0 hsl(0 calc(1 * 0%) 97.6% / 0.6);
219
+ background-color: color-mix(in oklab, hsl(220 calc(1 * 13%) 95.5% / 1) 100%, black 0%);
220
+ }
221
+
222
+ .discord-modal-avatar {
223
+ margin-right: 0.5em;
224
+ position: relative;
225
+ min-width: 24px;
226
+ width: 24px;
227
+ height: 24px;
228
+ border-radius: 50%;
229
+ }
230
+
231
+ .discord-modal-avatar img {
232
+ width: 24px;
233
+ height: 24px;
234
+ border-radius: 50%;
235
+ }
236
+
237
+ .discord-modal-title {
238
+ font-size: 24px;
239
+ line-height: 30px;
240
+ color: color-mix(in oklab, hsl(220 calc(1 * 13%) 95.5% / 1) 100%, black 0%);
241
+ }
242
+
243
+ .discord-modal-title-light-theme {
244
+ color: color-mix(in oklab, hsl(240 calc(1 * 7.7%) 2.5% / 1) 100%, black 0%);
245
+ }
246
+
247
+ .discord-modal-close-button {
248
+ position: absolute;
249
+ top: 16px;
250
+ right: 16px;
251
+ height: 26px;
252
+ padding: 4px;
253
+ transition: opacity.2s ease-in-out;
254
+ opacity: 0.5;
255
+ cursor: pointer;
256
+ border-radius: 3px;
257
+ color: color-mix(in oklab, hsl(215 calc(1 * 8.8%) 73.3% / 1) 100%, black 0%);
258
+ box-sizing: content-box;
259
+ width: auto;
260
+ background: transparent;
261
+ border: 0;
262
+ margin: 0;
263
+ display: flex;
264
+ justify-content: center;
265
+ align-items: center;
266
+ font-size: 14px;
267
+ font-weight: 500;
268
+ line-height: 16px;
269
+ -moz-user-select: none;
270
+ user-select: none;
271
+ outline: 0;
272
+ font-family: 'gg sans', 'Noto Sans', Whitney, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
273
+ text-rendering: optimizeLegibility;
274
+ }
275
+
276
+ .discord-modal-close-button-light-theme {
277
+ color: color-mix(in oklab, hsl(228 calc(1 * 6%) 32.5% / 1) 100%, black 0%);
278
+ }
279
+
280
+ .discord-modal-close-button:hover {
281
+ opacity: 1;
282
+ color: oklab(0.899401 -0.00192499 -0.00481987);
283
+ }
284
+
285
+ .discord-modal-close-button-light-theme:hover {
286
+ color: color-mix(in oklab, hsl(223 calc(1 * 6.7%) 20.6% / 1) 100%, black 0%);
287
+ }
288
+
289
+ .discord-modal-close-button-content {
290
+ background-image: linear-gradient(
291
+ to top,
292
+ transparent,
293
+ transparent 1px,
294
+ transparent 1px,
295
+ transparent calc(1px + 1px),
296
+ transparent calc(1px + 1px)
297
+ );
298
+ }
299
+
300
+ .discord-modal-warning-container {
301
+ margin-bottom: 8px;
302
+ background: color-mix(in oklab, hsl(40 calc(1 * 86.4%) 56.9% / 0.1) 100%, hsl(0 0% 0% / 0.1) 0%);
303
+ border: 1px solid color-mix(in oklab, hsl(40 calc(1 * 86.4%) 56.9% / 1) 100%, black 0%);
304
+ color: color-mix(in oklab, hsl(0 calc(1 * 0%) 100% / 1) 100%, black 0%);
305
+ display: flex;
306
+ border-radius: 4px;
307
+ font-weight: 500;
308
+ padding: 8px;
309
+ width: 100%;
310
+ box-sizing: border-box;
311
+ }
312
+
313
+ .discord-modal-warning-container-light-theme {
314
+ background: color-mix(in oklab, hsl(38 calc(1 * 78.6%) 38.4% / 0.1) 100%, hsl(0 0% 0% / 0.1) 0%);
315
+ border: color-mix(in oklab, hsl(38 calc(1 * 78.6%) 38.4% / 1) 100%, black 0%);
316
+ color: color-mix(in oklab, hsl(0 calc(1 * 0%) 0% / 1) 100%, black 0%);
317
+ }
318
+
319
+ .discord-modal-warning-icon {
320
+ display: flex;
321
+ }
322
+
323
+ .discord-modal-warning {
324
+ color: color-mix(in oklab, hsl(210 calc(1 * 9.1%) 87.1% / 1) 100%, black 0%);
325
+ margin-left: 10px;
326
+ flex: 1;
327
+ align-self: center;
328
+ font-family: 'gg sans', 'Noto Sans', Whitney, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
329
+ font-size: 14px;
330
+ line-height: 1.2857142857142858;
331
+ font-weight: 500;
332
+ }
333
+
334
+ .discord-modal-warning-light-theme {
335
+ color: color-mix(in oklab, hsl(223 calc(1 * 6.7%) 20.6% / 1) 100%, black 0%);
336
+ }
337
+
338
+ .discord-modal-warning-icon-svg {
339
+ fill: color-mix(in oklab, hsl(215 calc(1 * 8.8%) 73.3% / 1) 100%, black 0%);
340
+ color: color-mix(in oklab, hsl(40 calc(1 * 86.4%) 56.9% / 1) 100%, black 0%);
341
+ width: 24px;
342
+ height: 24px;
343
+ flex-shrink: 0;
344
+ }
345
+
346
+ .discord-modal-warning-icon-svg-light-theme {
347
+ color: color-mix(in oklab, hsl(38 calc(1 * 78.6%) 38.4% / 1) 100%, black 0%);
348
+ fill: none;
349
+ }
350
+
351
+ .discord-modal-warning-icon-svg-light-theme > path {
352
+ fill: color-mix(in oklab, hsl(228 calc(1 * 6%) 32.5% / 1) 100%, black 0%);
353
+ }
354
+
355
+ .discord-modal-warning-author {
356
+ font-weight: 600;
357
+ }
358
+
359
+ .discord-modal-button {
360
+ align-items: center;
361
+ background: none;
362
+ border-radius: 3px;
363
+ border: none;
364
+ box-sizing: border-box;
365
+ color: hsl(0 calc(1 * 0%) 100% / 1);
366
+ display: flex;
367
+ font-size: 14px;
368
+ font-weight: 500;
369
+ height: 38px;
370
+ justify-content: center;
371
+ line-height: 16px;
372
+ min-height: 38px;
373
+ min-width: 96px;
374
+ padding: 2px 16px;
375
+ position: relative;
376
+ -moz-user-select: none;
377
+ user-select: none;
378
+ width: auto;
379
+ cursor: pointer;
380
+ }
381
+
382
+ .discord-modal-button-submit {
383
+ background-color: hsl(235 calc(1 * 85.6%) 64.7% / 1);
384
+ transition:
385
+ background-color 170ms ease,
386
+ color 170ms ease;
387
+ }
388
+
389
+ .discord-modal-button-submit:hover {
390
+ background-color: hsl(235 calc(1 * 51.4%) 52.4% / 1);
391
+ }
392
+
393
+ .discord-modal-button-submit:active {
394
+ background-color: hsl(235 calc(1 * 46.7%) 44.1% / 1);
395
+ }
396
+
397
+ .discord-modal-button-cancel-light-theme {
398
+ color: hsl(223 calc(1 * 5.8%) 52.9% / 1);
399
+ }
400
+
401
+ .discord-modal-button-cancel:hover > .discord-modal-button-content {
402
+ --button--underline-color: hsl(0 calc(1 * 0%) 100% / 1);
403
+ }
404
+
405
+ .discord-modal-button-cancel-light-theme:hover > .discord-modal-button-content-light-theme {
406
+ --button--underline-color: hsl(223 calc(1 * 5.8%) 52.9% / 1);
407
+ }
408
+
409
+ .discord-modal-button-content {
410
+ --button--underline-color: transparent;
411
+ margin: 0 auto;
412
+ white-space: nowrap;
413
+ text-overflow: ellipsis;
414
+ overflow: hidden;
415
+ background-image: linear-gradient(
416
+ to top,
417
+ transparent,
418
+ transparent 1px,
419
+ var(--button--underline-color) 1px,
420
+ var(--button--underline-color) calc(1px + 1px),
421
+ transparent calc(1px + 1px)
422
+ );
423
+ }
424
+
425
+ .discord-modal-slot-input-text {
426
+ padding-right: 8px;
427
+ padding-left: 20px;
428
+ position: sticky;
429
+ z-index: 3;
430
+ }
431
431
  `; }
432
432
  handleClickCloseIcon() {
433
433
  if (this.dialogRef.value) {
@@ -504,103 +504,103 @@ let DiscordModal = class DiscordModal extends LitElement {
504
504
  };
505
505
  const profileData = (this.profile !== undefined && Reflect.get(profiles, this.profile)) || {};
506
506
  const profile = { ...defaultData, ...profileData, avatar: this.resolveAvatar(profileData.avatar ?? this.avatar) };
507
- return html `
508
- <dialog
509
- ${ref(this.dialogRef)}
510
- id="${ifDefined(this.modalId)}"
511
- class=${classMap({ 'discord-modal': true, 'discord-modal-light-theme': this.lightTheme })}
512
- @close=${this.onCloseDialog}
513
- >
514
- <div class="discord-modal-box">
515
- <form @submit=${this.handleFormSubmit}>
516
- <div aria-labelledby="discord-modal-title" role="dialog" tabindex="-1" aria-modal="true">
517
- <div class=${classMap({ 'discord-modal-root': true, 'discord-modal-root-light-theme': this.lightTheme })}>
518
- <div class="discord-modal-header-container">
519
- <div class="discord-modal-avatar">
520
- <img src="${ifDefined(profile.avatar)}" alt="${ifDefined(profile.author)}" />
521
- </div>
522
- <div
523
- id="discord-modal-title"
524
- class=${classMap({ 'discord-modal-title': true, 'discord-modal-title-light-theme': this.lightTheme })}
525
- >
526
- ${this.modalTitle}
527
- </div>
528
- <button
529
- aria-label="Close"
530
- @click=${this.handleClickCloseIcon}
531
- type="button"
507
+ return html `
508
+ <dialog
509
+ ${ref(this.dialogRef)}
510
+ id="${ifDefined(this.modalId)}"
511
+ class=${classMap({ 'discord-modal': true, 'discord-modal-light-theme': this.lightTheme })}
512
+ @close=${this.onCloseDialog}
513
+ >
514
+ <div class="discord-modal-box">
515
+ <form @submit=${this.handleFormSubmit}>
516
+ <div aria-labelledby="discord-modal-title" role="dialog" tabindex="-1" aria-modal="true">
517
+ <div class=${classMap({ 'discord-modal-root': true, 'discord-modal-root-light-theme': this.lightTheme })}>
518
+ <div class="discord-modal-header-container">
519
+ <div class="discord-modal-avatar">
520
+ <img src="${ifDefined(profile.avatar)}" alt="${ifDefined(profile.author)}" />
521
+ </div>
522
+ <div
523
+ id="discord-modal-title"
524
+ class=${classMap({ 'discord-modal-title': true, 'discord-modal-title-light-theme': this.lightTheme })}
525
+ >
526
+ ${this.modalTitle}
527
+ </div>
528
+ <button
529
+ aria-label="Close"
530
+ @click=${this.handleClickCloseIcon}
531
+ type="button"
532
532
  class=${classMap({
533
533
  'discord-modal-close-button': true,
534
534
  'discord-modal-close-button-light-theme': this.lightTheme
535
- })}
536
- >
537
- <div class="discord-modal-close-button-content">${ModalClose()}</div>
538
- </button>
539
- </div>
540
- <div
535
+ })}
536
+ >
537
+ <div class="discord-modal-close-button-content">${ModalClose()}</div>
538
+ </button>
539
+ </div>
540
+ <div
541
541
  class=${classMap({
542
542
  'discord-modal-content-container': true,
543
543
  'discord-modal-content-container-light-theme': this.lightTheme
544
- })}
545
- >
546
- <div class="discord-modal-warning-container">
547
- <div class="discord-modal-warning-icon">
544
+ })}
545
+ >
546
+ <div class="discord-modal-warning-container">
547
+ <div class="discord-modal-warning-icon">
548
548
  ${ModalWarning({
549
549
  class: 'discord-modal-warning-icon-svg' +
550
550
  (this.lightTheme ? ' discord-modal-warning-icon-svg-light-theme' : '')
551
- })}
552
- </div>
553
- <div
551
+ })}
552
+ </div>
553
+ <div
554
554
  class=${classMap({
555
555
  'discord-modal-warning': true,
556
556
  'discord-modal-warning-light-theme': this.lightTheme
557
- })}
558
- >
559
- This form will be submitted to <strong class="discord-modal-warning-author">${profile.author}</strong>. Do
560
- not share passwords or other sensitive information.
561
- </div>
562
- </div>
563
- <div
564
- aria-hidden="true"
565
- style="position: absolute; pointer-events: none; min-height: 0px; min-width: 1px; flex: 0 0 auto; height: 0px;"
566
- ></div>
567
- </div>
568
- <div class="discord-modal-slot-input-text">
569
- <slot></slot>
570
- </div>
571
- <div
557
+ })}
558
+ >
559
+ This form will be submitted to <strong class="discord-modal-warning-author">${profile.author}</strong>. Do
560
+ not share passwords or other sensitive information.
561
+ </div>
562
+ </div>
563
+ <div
564
+ aria-hidden="true"
565
+ style="position: absolute; pointer-events: none; min-height: 0px; min-width: 1px; flex: 0 0 auto; height: 0px;"
566
+ ></div>
567
+ </div>
568
+ <div class="discord-modal-slot-input-text">
569
+ <slot></slot>
570
+ </div>
571
+ <div
572
572
  class=${classMap({
573
573
  'discord-modal-actions-container': true,
574
574
  'discord-modal-actions-container-light-theme': this.lightTheme
575
- })}
576
- >
577
- <button type="submit" class="discord-modal-button discord-modal-button-submit">
578
- <div class="discord-modal-button-content">Submit</div>
579
- </button>
580
- <button
581
- type="button"
575
+ })}
576
+ >
577
+ <button type="submit" class="discord-modal-button discord-modal-button-submit">
578
+ <div class="discord-modal-button-content">Submit</div>
579
+ </button>
580
+ <button
581
+ type="button"
582
582
  class=${classMap({
583
583
  'discord-modal-button': true,
584
584
  'discord-modal-button-cancel': true,
585
585
  'discord-modal-button-cancel-light-theme': this.lightTheme
586
- })}
587
- @click=${this.handleClickCloseIcon}
588
- >
589
- <div
586
+ })}
587
+ @click=${this.handleClickCloseIcon}
588
+ >
589
+ <div
590
590
  class=${classMap({
591
591
  'discord-modal-button-content': true,
592
592
  'discord-modal-button-content-light-theme': this.lightTheme
593
- })}
594
- >
595
- Cancel
596
- </div>
597
- </button>
598
- </div>
599
- </div>
600
- </div>
601
- </form>
602
- </div>
603
- </dialog>
593
+ })}
594
+ >
595
+ Cancel
596
+ </div>
597
+ </button>
598
+ </div>
599
+ </div>
600
+ </div>
601
+ </form>
602
+ </div>
603
+ </dialog>
604
604
  `;
605
605
  }
606
606
  resolveAvatar(avatar) {