@penwin/discord-components-core 4.3.7 → 4.3.9-dev-32917005672.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 (212) 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 +1781 -1630
  5. package/dist/bundle/index.mjs +1912 -1991
  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.d.ts.map +1 -1
  67. package/dist/components/discord-quote/DiscordQuote.js +31 -31
  68. package/dist/components/discord-quote/DiscordQuote.js.map +1 -1
  69. package/dist/components/discord-reaction/DiscordReaction.js +73 -73
  70. package/dist/components/discord-reactions/DiscordReactions.js +9 -9
  71. package/dist/components/discord-reply/DiscordReply.d.ts.map +1 -1
  72. package/dist/components/discord-reply/DiscordReply.js +246 -246
  73. package/dist/components/discord-reply/DiscordReply.js.map +1 -1
  74. package/dist/components/discord-role-select-menu-option/DiscordRoleSelectMenuOption.js +75 -75
  75. package/dist/components/discord-section/DiscordSection.js +6 -6
  76. package/dist/components/discord-section-components/DiscordSectionComponents.js +14 -14
  77. package/dist/components/discord-select-menu-portal/DiscordSelectMenuPortal.d.ts +5 -1
  78. package/dist/components/discord-select-menu-portal/DiscordSelectMenuPortal.d.ts.map +1 -1
  79. package/dist/components/discord-select-menu-portal/DiscordSelectMenuPortal.js +53 -28
  80. package/dist/components/discord-select-menu-portal/DiscordSelectMenuPortal.js.map +1 -1
  81. package/dist/components/discord-separator/DiscordSeparator.js +9 -9
  82. package/dist/components/discord-spoiler/DiscordSpoiler.js +31 -31
  83. package/dist/components/discord-string-select-menu/DiscordStringSelectMenu.js +192 -192
  84. package/dist/components/discord-string-select-menu-option/DiscordStringSelectMenuOption.js +45 -45
  85. package/dist/components/discord-subscript/DiscordSubscript.js +15 -15
  86. package/dist/components/discord-system-message/DiscordSystemMessage.d.ts.map +1 -1
  87. package/dist/components/discord-system-message/DiscordSystemMessage.js +134 -131
  88. package/dist/components/discord-system-message/DiscordSystemMessage.js.map +1 -1
  89. package/dist/components/discord-tenor-video/DiscordTenorVideo.js +76 -76
  90. package/dist/components/discord-text-display/DiscordTextDisplay.js +10 -10
  91. package/dist/components/discord-text-file-attachment-previewer/DiscordTextFileAttachmentPreviewer.js +55 -55
  92. package/dist/components/discord-thread/DiscordThread.js +81 -81
  93. package/dist/components/discord-thread-message/DiscordThreadMessage.js +90 -90
  94. package/dist/components/discord-thumbnail/DiscordThumbnail.js +20 -20
  95. package/dist/components/discord-time/DiscordTime.js +7 -7
  96. package/dist/components/discord-transcript-header/DiscordTranscriptHeader.js +51 -51
  97. package/dist/components/discord-unordered-list/DiscordUnorderedList.d.ts.map +1 -1
  98. package/dist/components/discord-unordered-list/DiscordUnorderedList.js +18 -15
  99. package/dist/components/discord-unordered-list/DiscordUnorderedList.js.map +1 -1
  100. package/dist/components/discord-user-select-menu-option/DiscordUserSelectMenuOption.js +58 -58
  101. package/dist/components/discord-verified-author-tag/DiscordVerifiedAuthorTag.js +36 -36
  102. package/dist/components/discord-video-attachment/DiscordVideoAttachment.js +494 -494
  103. package/dist/components/discord-voice-message/DiscordVoiceMessage.js +255 -255
  104. package/dist/components/svgs/AttachmentDownloadButton.js +67 -67
  105. package/dist/components/svgs/AttachmentReply.js +5 -5
  106. package/dist/components/svgs/Boost.js +3 -3
  107. package/dist/components/svgs/ChannelForum.js +19 -19
  108. package/dist/components/svgs/ChannelIcon.js +17 -17
  109. package/dist/components/svgs/ChannelThread.js +15 -15
  110. package/dist/components/svgs/ChannelsAndRoles.js +23 -23
  111. package/dist/components/svgs/CommandIcon.js +4 -4
  112. package/dist/components/svgs/CommandIconName.js +5 -5
  113. package/dist/components/svgs/CommandReply.js +9 -9
  114. package/dist/components/svgs/CustomizeCommunity.js +17 -17
  115. package/dist/components/svgs/DMCall.js +6 -6
  116. package/dist/components/svgs/DMEdit.js +8 -8
  117. package/dist/components/svgs/DMMissedCall.js +8 -8
  118. package/dist/components/svgs/Ephemeral.js +21 -21
  119. package/dist/components/svgs/ExpandMore.js +4 -4
  120. package/dist/components/svgs/FileAttachment.js +10 -10
  121. package/dist/components/svgs/GuildBadge.js +8 -8
  122. package/dist/components/svgs/LaunchIcon.js +9 -9
  123. package/dist/components/svgs/LockedVoiceChannel.js +17 -17
  124. package/dist/components/svgs/MediaPauseIcon.js +2 -2
  125. package/dist/components/svgs/MediaPlayIcon.js +2 -2
  126. package/dist/components/svgs/MediaRestartIcon.js +2 -2
  127. package/dist/components/svgs/MediaVolumeAbove50PercentIcon.js +3 -3
  128. package/dist/components/svgs/MediaVolumeBelow50PercentIcon.js +2 -2
  129. package/dist/components/svgs/MediaVolumeMutedIcon.js +2 -2
  130. package/dist/components/svgs/MessageIcon.js +3 -3
  131. package/dist/components/svgs/ModalClose.js +4 -4
  132. package/dist/components/svgs/ModalWarning.js +5 -5
  133. package/dist/components/svgs/PartnerBadgeOverlay.js +11 -11
  134. package/dist/components/svgs/Pin.js +5 -5
  135. package/dist/components/svgs/PremiumIcon.js +6 -6
  136. package/dist/components/svgs/ReplyIcon.js +5 -5
  137. package/dist/components/svgs/ServerGuide.js +17 -17
  138. package/dist/components/svgs/ServerUpgrade.js +7 -7
  139. package/dist/components/svgs/SystemAlert.js +7 -7
  140. package/dist/components/svgs/SystemError.js +6 -6
  141. package/dist/components/svgs/Thread.js +9 -9
  142. package/dist/components/svgs/UserJoin.js +5 -5
  143. package/dist/components/svgs/UserLeave.js +5 -5
  144. package/dist/components/svgs/VerifiedBadgeOverlay.js +4 -4
  145. package/dist/components/svgs/VerifiedTick.js +13 -13
  146. package/dist/components/svgs/VideoFullScreenIcon.js +8 -8
  147. package/dist/components/svgs/VideoPausePopIcon.js +2 -2
  148. package/dist/components/svgs/VideoPlayPopIcon.js +2 -2
  149. package/dist/components/svgs/VoiceChannel.js +19 -19
  150. package/dist/components/svgs/clan-icons/Crystal.js +27 -27
  151. package/dist/components/svgs/clan-icons/Diamond.js +35 -35
  152. package/dist/components/svgs/clan-icons/Explosion.js +30 -30
  153. package/dist/components/svgs/clan-icons/Flame.js +23 -23
  154. package/dist/components/svgs/clan-icons/Flower.js +18 -18
  155. package/dist/components/svgs/clan-icons/Heart.js +19 -19
  156. package/dist/components/svgs/clan-icons/Key.js +32 -32
  157. package/dist/components/svgs/clan-icons/Leaf.js +23 -23
  158. package/dist/components/svgs/clan-icons/Lightning.js +25 -25
  159. package/dist/components/svgs/clan-icons/Magic.js +34 -34
  160. package/dist/components/svgs/clan-icons/Moon.js +21 -21
  161. package/dist/components/svgs/clan-icons/Mushroom.js +33 -33
  162. package/dist/components/svgs/clan-icons/Mythical.js +32 -32
  163. package/dist/components/svgs/clan-icons/Ornament.js +48 -48
  164. package/dist/components/svgs/clan-icons/Plasma.js +23 -23
  165. package/dist/components/svgs/clan-icons/Rock.js +20 -20
  166. package/dist/components/svgs/clan-icons/Shell.js +29 -29
  167. package/dist/components/svgs/clan-icons/Skull.js +28 -28
  168. package/dist/components/svgs/clan-icons/Sun.js +36 -36
  169. package/dist/components/svgs/clan-icons/Sword.js +27 -27
  170. package/dist/components/svgs/clan-icons/Water.js +20 -20
  171. package/dist/config.d.ts +1 -1
  172. package/dist/config.d.ts.map +1 -1
  173. package/dist/config.js +9 -3
  174. package/dist/config.js.map +1 -1
  175. package/dist/hydrate/index.d.ts +40 -0
  176. package/dist/hydrate/index.d.ts.map +1 -0
  177. package/dist/hydrate/index.js +48 -0
  178. package/dist/hydrate/index.js.map +1 -0
  179. package/package.json +222 -219
  180. package/dist/bundle/styles/base.css.map +0 -1
  181. package/dist/components/discord-container copy/DiscordContainer.d.ts +0 -22
  182. package/dist/components/discord-container copy/DiscordContainer.d.ts.map +0 -1
  183. package/dist/components/discord-container copy/DiscordContainer.js +0 -159
  184. package/dist/components/discord-container copy/DiscordContainer.js.map +0 -1
  185. package/dist/components/discord-media-fullscreen-previewer/context.d.ts +0 -10
  186. package/dist/components/discord-media-fullscreen-previewer/context.d.ts.map +0 -1
  187. package/dist/components/discord-media-fullscreen-previewer/context.js +0 -3
  188. package/dist/components/discord-media-fullscreen-previewer/context.js.map +0 -1
  189. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.d.ts +0 -26
  190. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.d.ts.map +0 -1
  191. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.js +0 -183
  192. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.js.map +0 -1
  193. package/dist/components/discord-section/DiscordContainer.d.ts +0 -22
  194. package/dist/components/discord-section/DiscordContainer.d.ts.map +0 -1
  195. package/dist/components/discord-section/DiscordContainer.js +0 -159
  196. package/dist/components/discord-section/DiscordContainer.js.map +0 -1
  197. package/dist/components/discord-section copy/DiscordSection.d.ts +0 -15
  198. package/dist/components/discord-section copy/DiscordSection.d.ts.map +0 -1
  199. package/dist/components/discord-section copy/DiscordSection.js +0 -77
  200. package/dist/components/discord-section copy/DiscordSection.js.map +0 -1
  201. package/dist/components/discord-section-components/DiscordSection.d.ts +0 -15
  202. package/dist/components/discord-section-components/DiscordSection.d.ts.map +0 -1
  203. package/dist/components/discord-section-components/DiscordSection.js +0 -77
  204. package/dist/components/discord-section-components/DiscordSection.js.map +0 -1
  205. package/dist/components/discord-text-display/DiscordSection.d.ts +0 -15
  206. package/dist/components/discord-text-display/DiscordSection.d.ts.map +0 -1
  207. package/dist/components/discord-text-display/DiscordSection.js +0 -79
  208. package/dist/components/discord-text-display/DiscordSection.js.map +0 -1
  209. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.d.ts +0 -71
  210. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.d.ts.map +0 -1
  211. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.js +0 -238
  212. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.js.map +0 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ADN,OAAO,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;oDACjB;AAGtB;IADN,OAAO,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;2DACV;AApKxB,aAAa;IADzB,aAAa,CAAC,gBAAgB,CAAC;GACnB,aAAa,CA8PzB"}
@@ -13,112 +13,112 @@ import { BaseDiscordSelectMenuOption } from '../_private/BaseDiscordSelectMenuOp
13
13
  export const channelIcon = {
14
14
  '0': {
15
15
  // Guild Text
16
- normal: html `
17
- <svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
18
- <path
19
- fill="currentColor"
20
- fill-rule="evenodd"
21
- d="M10.99 3.16A1 1 0 1 0 9 2.84L8.15 8H4a1 1 0 0 0 0 2h3.82l-.67 4H3a1 1 0 1 0 0 2h3.82l-.8 4.84a1 1 0 0 0 1.97.32L8.85 16h4.97l-.8 4.84a1 1 0 0 0 1.97.32l.86-5.16H20a1 1 0 1 0 0-2h-3.82l.67-4H21a1 1 0 1 0 0-2h-3.82l.8-4.84a1 1 0 1 0-1.97-.32L15.15 8h-4.97l.8-4.84ZM14.15 14l.67-4H9.85l-.67 4h4.97Z"
22
- clip-rule="evenodd"
23
- class=""
24
- ></path>
25
- </svg>
16
+ normal: html `
17
+ <svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
18
+ <path
19
+ fill="currentColor"
20
+ fill-rule="evenodd"
21
+ d="M10.99 3.16A1 1 0 1 0 9 2.84L8.15 8H4a1 1 0 0 0 0 2h3.82l-.67 4H3a1 1 0 1 0 0 2h3.82l-.8 4.84a1 1 0 0 0 1.97.32L8.85 16h4.97l-.8 4.84a1 1 0 0 0 1.97.32l.86-5.16H20a1 1 0 1 0 0-2h-3.82l.67-4H21a1 1 0 1 0 0-2h-3.82l.8-4.84a1 1 0 1 0-1.97-.32L15.15 8h-4.97l.8-4.84ZM14.15 14l.67-4H9.85l-.67 4h4.97Z"
22
+ clip-rule="evenodd"
23
+ class=""
24
+ ></path>
25
+ </svg>
26
26
  `,
27
- private: html `
28
- <svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
29
- <path
30
- fill="currentColor"
31
- fill-rule="evenodd"
32
- d="M16 4h.5v-.5a2.5 2.5 0 0 1 5 0V4h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm4-.5V4h-2v-.5a1 1 0 1 1 2 0Z"
33
- clip-rule="evenodd"
34
- class=""
35
- ></path>
36
- <path
37
- fill="currentColor"
38
- d="M12.5 8c.28 0 .5.22.5.5V9c0 .1 0 .2.02.31.03.34-.21.69-.56.69H9.85l-.67 4h4.97l.28-1.68c.06-.34.44-.52.77-.43a3 3 0 0 0 .8.11c.27 0 .47.24.43.5l-.25 1.5H20a1 1 0 1 1 0 2h-4.15l-.86 5.16a1 1 0 0 1-1.98-.32l.8-4.84H8.86l-.86 5.16A1 1 0 0 1 6 20.84L6.82 16H3a1 1 0 1 1 0-2h4.15l.67-4H4a1 1 0 1 1 0-2h4.15l.86-5.16a1 1 0 1 1 1.98.32L10.19 8h2.31Z"
39
- class=""
40
- ></path>
41
- </svg>
27
+ private: html `
28
+ <svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
29
+ <path
30
+ fill="currentColor"
31
+ fill-rule="evenodd"
32
+ d="M16 4h.5v-.5a2.5 2.5 0 0 1 5 0V4h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm4-.5V4h-2v-.5a1 1 0 1 1 2 0Z"
33
+ clip-rule="evenodd"
34
+ class=""
35
+ ></path>
36
+ <path
37
+ fill="currentColor"
38
+ d="M12.5 8c.28 0 .5.22.5.5V9c0 .1 0 .2.02.31.03.34-.21.69-.56.69H9.85l-.67 4h4.97l.28-1.68c.06-.34.44-.52.77-.43a3 3 0 0 0 .8.11c.27 0 .47.24.43.5l-.25 1.5H20a1 1 0 1 1 0 2h-4.15l-.86 5.16a1 1 0 0 1-1.98-.32l.8-4.84H8.86l-.86 5.16A1 1 0 0 1 6 20.84L6.82 16H3a1 1 0 1 1 0-2h4.15l.67-4H4a1 1 0 1 1 0-2h4.15l.86-5.16a1 1 0 1 1 1.98.32L10.19 8h2.31Z"
39
+ class=""
40
+ ></path>
41
+ </svg>
42
42
  `
43
43
  },
44
44
  '2': {
45
45
  // Guild Voice
46
- normal: html `<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
47
- <path
48
- fill="currentColor"
49
- d="M12 3a1 1 0 0 0-1-1h-.06a1 1 0 0 0-.74.32L5.92 7H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h2.92l4.28 4.68a1 1 0 0 0 .74.32H11a1 1 0 0 0 1-1V3ZM15.1 20.75c-.58.14-1.1-.33-1.1-.92v-.03c0-.5.37-.92.85-1.05a7 7 0 0 0 0-13.5A1.11 1.11 0 0 1 14 4.2v-.03c0-.6.52-1.06 1.1-.92a9 9 0 0 1 0 17.5Z"
50
- class=""
51
- ></path>
52
- <path
53
- fill="currentColor"
54
- d="M15.16 16.51c-.57.28-1.16-.2-1.16-.83v-.14c0-.43.28-.8.63-1.02a3 3 0 0 0 0-5.04c-.35-.23-.63-.6-.63-1.02v-.14c0-.63.59-1.1 1.16-.83a5 5 0 0 1 0 9.02Z"
55
- class=""
56
- ></path>
46
+ normal: html `<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
47
+ <path
48
+ fill="currentColor"
49
+ d="M12 3a1 1 0 0 0-1-1h-.06a1 1 0 0 0-.74.32L5.92 7H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h2.92l4.28 4.68a1 1 0 0 0 .74.32H11a1 1 0 0 0 1-1V3ZM15.1 20.75c-.58.14-1.1-.33-1.1-.92v-.03c0-.5.37-.92.85-1.05a7 7 0 0 0 0-13.5A1.11 1.11 0 0 1 14 4.2v-.03c0-.6.52-1.06 1.1-.92a9 9 0 0 1 0 17.5Z"
50
+ class=""
51
+ ></path>
52
+ <path
53
+ fill="currentColor"
54
+ d="M15.16 16.51c-.57.28-1.16-.2-1.16-.83v-.14c0-.43.28-.8.63-1.02a3 3 0 0 0 0-5.04c-.35-.23-.63-.6-.63-1.02v-.14c0-.63.59-1.1 1.16-.83a5 5 0 0 1 0 9.02Z"
55
+ class=""
56
+ ></path>
57
57
  </svg>`,
58
- private: html `
59
- <svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
60
- <path
61
- fill="currentColor"
62
- fill-rule="evenodd"
63
- d="M16 4h.5v-.5a2.5 2.5 0 0 1 5 0V4h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm4-.5V4h-2v-.5a1 1 0 1 1 2 0Z"
64
- clip-rule="evenodd"
65
- class=""
66
- ></path>
67
- <path
68
- fill="currentColor"
69
- d="M11 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1h-.06a1 1 0 0 1-.74-.32L5.92 17H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h2.92l4.28-4.68a1 1 0 0 1 .74-.32H11ZM20.5 12c-.28 0-.5.22-.52.5a7 7 0 0 1-5.13 6.25c-.48.13-.85.55-.85 1.05v.03c0 .6.52 1.06 1.1.92a9 9 0 0 0 6.89-8.25.48.48 0 0 0-.49-.5h-1ZM16.5 12c-.28 0-.5.23-.54.5a3 3 0 0 1-1.33 2.02c-.35.23-.63.6-.63 1.02v.14c0 .63.59 1.1 1.16.83a5 5 0 0 0 2.82-4.01c.02-.28-.2-.5-.48-.5h-1Z"
70
- class=""
71
- ></path>
72
- </svg>
58
+ private: html `
59
+ <svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
60
+ <path
61
+ fill="currentColor"
62
+ fill-rule="evenodd"
63
+ d="M16 4h.5v-.5a2.5 2.5 0 0 1 5 0V4h.5a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm4-.5V4h-2v-.5a1 1 0 1 1 2 0Z"
64
+ clip-rule="evenodd"
65
+ class=""
66
+ ></path>
67
+ <path
68
+ fill="currentColor"
69
+ d="M11 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1h-.06a1 1 0 0 1-.74-.32L5.92 17H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h2.92l4.28-4.68a1 1 0 0 1 .74-.32H11ZM20.5 12c-.28 0-.5.22-.52.5a7 7 0 0 1-5.13 6.25c-.48.13-.85.55-.85 1.05v.03c0 .6.52 1.06 1.1.92a9 9 0 0 0 6.89-8.25.48.48 0 0 0-.49-.5h-1ZM16.5 12c-.28 0-.5.23-.54.5a3 3 0 0 1-1.33 2.02c-.35.23-.63.6-.63 1.02v.14c0 .63.59 1.1 1.16.83a5 5 0 0 0 2.82-4.01c.02-.28-.2-.5-.48-.5h-1Z"
70
+ class=""
71
+ ></path>
72
+ </svg>
73
73
  `
74
74
  },
75
75
  '4': {
76
76
  // Guild Category
77
- normal: html `<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
78
- <path
79
- fill="currentColor"
80
- d="M2 5a3 3 0 0 1 3-3h3.93a2 2 0 0 1 1.66.9L12 5h7a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5Z"
81
- class=""
82
- ></path>
77
+ normal: html `<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
78
+ <path
79
+ fill="currentColor"
80
+ d="M2 5a3 3 0 0 1 3-3h3.93a2 2 0 0 1 1.66.9L12 5h7a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5Z"
81
+ class=""
82
+ ></path>
83
83
  </svg>`
84
84
  },
85
85
  '5': {
86
86
  // Guild Announcement
87
- normal: html `
88
- <svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
89
- <path
90
- fill="currentColor"
91
- fill-rule="evenodd"
92
- d="M19.56 2a3 3 0 0 0-2.46 1.28 3.85 3.85 0 0 1-1.86 1.42l-8.9 3.18a.5.5 0 0 0-.34.47v10.09a3 3 0 0 0 2.27 2.9l.62.16c1.57.4 3.15-.56 3.55-2.12a.92.92 0 0 1 1.23-.63l2.36.94c.42.27.79.62 1.07 1.03A3 3 0 0 0 19.56 22h.94c.83 0 1.5-.67 1.5-1.5v-17c0-.83-.67-1.5-1.5-1.5h-.94Zm-8.53 15.8L8 16.7v1.73a1 1 0 0 0 .76.97l.62.15c.5.13 1-.17 1.12-.67.1-.41.29-.78.53-1.1Z"
93
- clip-rule="evenodd"
94
- class=""
95
- ></path>
96
- <path fill="currentColor" d="M2 10c0-1.1.9-2 2-2h.5c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5H4a2 2 0 0 1-2-2v-4Z" class=""></path>
97
- </svg>
87
+ normal: html `
88
+ <svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
89
+ <path
90
+ fill="currentColor"
91
+ fill-rule="evenodd"
92
+ d="M19.56 2a3 3 0 0 0-2.46 1.28 3.85 3.85 0 0 1-1.86 1.42l-8.9 3.18a.5.5 0 0 0-.34.47v10.09a3 3 0 0 0 2.27 2.9l.62.16c1.57.4 3.15-.56 3.55-2.12a.92.92 0 0 1 1.23-.63l2.36.94c.42.27.79.62 1.07 1.03A3 3 0 0 0 19.56 22h.94c.83 0 1.5-.67 1.5-1.5v-17c0-.83-.67-1.5-1.5-1.5h-.94Zm-8.53 15.8L8 16.7v1.73a1 1 0 0 0 .76.97l.62.15c.5.13 1-.17 1.12-.67.1-.41.29-.78.53-1.1Z"
93
+ clip-rule="evenodd"
94
+ class=""
95
+ ></path>
96
+ <path fill="currentColor" d="M2 10c0-1.1.9-2 2-2h.5c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5H4a2 2 0 0 1-2-2v-4Z" class=""></path>
97
+ </svg>
98
98
  `
99
99
  },
100
100
  '15': {
101
101
  // Guild Forum
102
- normal: html `<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
103
- <path
104
- fill="currentColor"
105
- d="M18.91 12.98a5.45 5.45 0 0 1 2.18 6.2c-.1.33-.09.68.1.96l.83 1.32a1 1 0 0 1-.84 1.54h-5.5A5.6 5.6 0 0 1 10 17.5a5.6 5.6 0 0 1 5.68-5.5c1.2 0 2.32.36 3.23.98Z"
106
- class=""
107
- ></path>
108
- <path
109
- fill="currentColor"
110
- d="M19.24 10.86c.32.16.72-.02.74-.38L20 10c0-4.42-4.03-8-9-8s-9 3.58-9 8c0 1.5.47 2.91 1.28 4.11.14.21.12.49-.06.67l-1.51 1.51A1 1 0 0 0 2.4 18h5.1a.5.5 0 0 0 .49-.5c0-4.2 3.5-7.5 7.68-7.5 1.28 0 2.5.3 3.56.86Z"
111
- class=""
112
- ></path>
102
+ normal: html `<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
103
+ <path
104
+ fill="currentColor"
105
+ d="M18.91 12.98a5.45 5.45 0 0 1 2.18 6.2c-.1.33-.09.68.1.96l.83 1.32a1 1 0 0 1-.84 1.54h-5.5A5.6 5.6 0 0 1 10 17.5a5.6 5.6 0 0 1 5.68-5.5c1.2 0 2.32.36 3.23.98Z"
106
+ class=""
107
+ ></path>
108
+ <path
109
+ fill="currentColor"
110
+ d="M19.24 10.86c.32.16.72-.02.74-.38L20 10c0-4.42-4.03-8-9-8s-9 3.58-9 8c0 1.5.47 2.91 1.28 4.11.14.21.12.49-.06.67l-1.51 1.51A1 1 0 0 0 2.4 18h5.1a.5.5 0 0 0 .49-.5c0-4.2 3.5-7.5 7.68-7.5 1.28 0 2.5.3 3.56.86Z"
111
+ class=""
112
+ ></path>
113
113
  </svg>`
114
114
  },
115
115
  '16': {
116
116
  // Guild Media
117
- normal: html `<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 64 64">
118
- <path
119
- fill="currentColor"
120
- d="M56 50.6667V13.3333C56 10.4 53.6 8 50.6667 8H13.3333C10.4 8 8 10.4 8 13.3333V50.6667C8 53.6 10.4 56 13.3333 56H50.6667C53.6 56 56 53.6 56 50.6667ZM22.6667 36L29.3333 44.0267L38.6667 32L50.6667 48H13.3333L22.6667 36Z"
121
- />
117
+ normal: html `<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 64 64">
118
+ <path
119
+ fill="currentColor"
120
+ d="M56 50.6667V13.3333C56 10.4 53.6 8 50.6667 8H13.3333C10.4 8 8 10.4 8 13.3333V50.6667C8 53.6 10.4 56 13.3333 56H50.6667C53.6 56 56 53.6 56 50.6667ZM22.6667 36L29.3333 44.0267L38.6667 32L50.6667 48H13.3333L22.6667 36Z"
121
+ />
122
122
  </svg>`
123
123
  }
124
124
  };
@@ -131,42 +131,42 @@ let DiscordChannelSelectMenuOption = class DiscordChannelSelectMenuOption extend
131
131
  * @internal
132
132
  */
133
133
  static { this.styles = [
134
- css `
135
- img {
136
- margin-right: 4px;
137
- vertical-align: bottom;
138
- object-fit: contain;
139
- }
140
-
141
- .discord-string-select-menu-option-ellipsis-text {
142
- overflow: hidden;
143
- text-overflow: ellipsis;
144
- white-space: nowrap;
145
- display: flex;
146
- align-items: center;
147
- gap: 4px;
148
- font-size: 16px;
149
- }
150
-
151
- strong {
152
- font-weight: 600;
153
- }
154
-
155
- .discord-string-select-menu-option-hidden {
156
- display: none;
157
- }
158
-
159
- discord-verified-author-tag {
160
- font-size: 12px;
161
- font-weight: 600;
162
- }
163
-
164
- .role-icon {
165
- fill: var(--role-color);
166
- & > path {
167
- fill: var(--role-color);
168
- }
169
- }
134
+ css `
135
+ img {
136
+ margin-right: 4px;
137
+ vertical-align: bottom;
138
+ object-fit: contain;
139
+ }
140
+
141
+ .discord-string-select-menu-option-ellipsis-text {
142
+ overflow: hidden;
143
+ text-overflow: ellipsis;
144
+ white-space: nowrap;
145
+ display: flex;
146
+ align-items: center;
147
+ gap: 4px;
148
+ font-size: 16px;
149
+ }
150
+
151
+ strong {
152
+ font-weight: 600;
153
+ }
154
+
155
+ .discord-string-select-menu-option-hidden {
156
+ display: none;
157
+ }
158
+
159
+ discord-verified-author-tag {
160
+ font-size: 12px;
161
+ font-weight: 600;
162
+ }
163
+
164
+ .role-icon {
165
+ fill: var(--role-color);
166
+ & > path {
167
+ fill: var(--role-color);
168
+ }
169
+ }
170
170
  `,
171
171
  BaseDiscordSelectMenuOption.baseStyles
172
172
  ]; }
@@ -177,17 +177,17 @@ let DiscordChannelSelectMenuOption = class DiscordChannelSelectMenuOption extend
177
177
  const defaultIcon = channelIcon[0];
178
178
  const icon = (this.isPrivate ? (channelIcon[this.type].private ?? channelIcon[this.type].normal) : channelIcon[this.type].normal) ??
179
179
  defaultIcon.normal;
180
- return html `
181
- <label>
182
- ${icon}
183
- ${this.renderSelectedContainer(html `<div class="discord-string-select-menu-option-ellipsis-text">
184
- <div class="discord-string-select-menu-option-ellipsis-text">
185
- <span>${this.name}</span>
186
- </div>
187
- </div>`)}
188
-
189
- <span class="discord-string-select-menu-option-hidden"><input type="checkbox" @click=${this.selectOption} /></span>
190
- </label>
180
+ return html `
181
+ <label>
182
+ ${icon}
183
+ ${this.renderSelectedContainer(html `<div class="discord-string-select-menu-option-ellipsis-text">
184
+ <div class="discord-string-select-menu-option-ellipsis-text">
185
+ <span>${this.name}</span>
186
+ </div>
187
+ </div>`)}
188
+
189
+ <span class="discord-string-select-menu-option-hidden"><input type="checkbox" @click=${this.selectOption} /></span>
190
+ </label>
191
191
  `;
192
192
  }
193
193
  };
@@ -27,70 +27,70 @@ let DiscordCode = class DiscordCode extends LitElement {
27
27
  /**
28
28
  * @internal
29
29
  */
30
- static { this.styles = css `
31
- :host {
32
- white-space: normal !important;
33
-
34
- font-family:
35
- Consolas,
36
- Andale Mono WT,
37
- Andale Mono,
38
- Lucida Console,
39
- Lucida Sans Typewriter,
40
- DejaVu Sans Mono,
41
- Bitstream Vera Sans Mono,
42
- Liberation Mono,
43
- Nimbus Mono L,
44
- Monaco,
45
- Courier New,
46
- Courier,
47
- monospace;
48
- border-radius: 3px;
49
- font-size: 85%;
50
- }
51
-
52
- code {
53
- padding: 0.1em;
54
- border-radius: 3px;
55
- border: none;
56
- text-indent: 0;
57
- white-space: pre-wrap;
58
- background-color: var(
59
- --discord-code-background-color,
60
- color-mix(in oklab, hsl(234.935 calc(1 * 85.556%) 64.706% /0.0784313725490196) 100%, hsl(0 0% 0% /0.0784313725490196) 0%)
61
- );
62
-
63
- border: var(--discord-code-border, 1px solid color-mix(in oklab, hsl(240 calc(1 * 4%) 60.784% /0.2) 100%, hsl(0 0% 0% /0.2) 0%));
64
- }
65
-
66
- :host([multiline]) code {
67
- display: block;
68
- width: 90%;
69
- font-size: 0.875rem;
70
- line-height: 1.125rem;
71
- padding: 0.5em;
72
- }
73
-
74
- :host([embed]) code {
75
- background-color: #1e1f22;
76
- }
77
-
78
- :host([embed][multiline]) code {
79
- display: block;
80
- width: 100%;
81
- padding: 7px;
82
- border-radius: 4px;
83
- background: #1e1f22;
84
- }
85
-
86
- :host([light-theme]) {
87
- --discord-code-border: 1px solid #d3d4da;
88
- --discord-code-background-color: #f4f5fa;
89
- }
90
-
91
- :host([light-theme][embed]) code {
92
- background-color: #e3e5e8;
93
- }
30
+ static { this.styles = css `
31
+ :host {
32
+ white-space: normal !important;
33
+
34
+ font-family:
35
+ Consolas,
36
+ Andale Mono WT,
37
+ Andale Mono,
38
+ Lucida Console,
39
+ Lucida Sans Typewriter,
40
+ DejaVu Sans Mono,
41
+ Bitstream Vera Sans Mono,
42
+ Liberation Mono,
43
+ Nimbus Mono L,
44
+ Monaco,
45
+ Courier New,
46
+ Courier,
47
+ monospace;
48
+ border-radius: 3px;
49
+ font-size: 85%;
50
+ }
51
+
52
+ code {
53
+ padding: 0.1em;
54
+ border-radius: 3px;
55
+ border: none;
56
+ text-indent: 0;
57
+ white-space: pre-wrap;
58
+ background-color: var(
59
+ --discord-code-background-color,
60
+ color-mix(in oklab, hsl(234.935 calc(1 * 85.556%) 64.706% /0.0784313725490196) 100%, hsl(0 0% 0% /0.0784313725490196) 0%)
61
+ );
62
+
63
+ border: var(--discord-code-border, 1px solid color-mix(in oklab, hsl(240 calc(1 * 4%) 60.784% /0.2) 100%, hsl(0 0% 0% /0.2) 0%));
64
+ }
65
+
66
+ :host([multiline]) code {
67
+ display: block;
68
+ width: 90%;
69
+ font-size: 0.875rem;
70
+ line-height: 1.125rem;
71
+ padding: 0.5em;
72
+ }
73
+
74
+ :host([embed]) code {
75
+ background-color: #1e1f22;
76
+ }
77
+
78
+ :host([embed][multiline]) code {
79
+ display: block;
80
+ width: 100%;
81
+ padding: 7px;
82
+ border-radius: 4px;
83
+ background: #1e1f22;
84
+ }
85
+
86
+ :host([light-theme]) {
87
+ --discord-code-border: 1px solid #d3d4da;
88
+ --discord-code-background-color: #f4f5fa;
89
+ }
90
+
91
+ :host([light-theme][embed]) code {
92
+ background-color: #e3e5e8;
93
+ }
94
94
  `; }
95
95
  render() {
96
96
  const content = html `<code><slot></slot></code>`;
@@ -29,8 +29,8 @@ let DiscordCodeBlock = class DiscordCodeBlock extends LitElement {
29
29
  // check if hljs has the language
30
30
  const language = this.language ? (hljs.getLanguage(this.language) ? this.language : 'plaintext') : 'plaintext';
31
31
  const parsed = unsafeHTML(hljs.highlight(this.code, { language }).value);
32
- return html `<div class="discord-code-block-pre discord-code-block-pre--multiline language">
33
- <code class=${`hljs language-${language}`}>${parsed}</code>
32
+ return html `<div class="discord-code-block-pre discord-code-block-pre--multiline language">
33
+ <code class=${`hljs language-${language}`}>${parsed}</code>
34
34
  </div>`;
35
35
  }
36
36
  };