@getflip/swirl-components 0.14.1 → 0.16.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 (357) hide show
  1. package/components.json +682 -52
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{swirl-action-list-item.cjs.entry.js → swirl-action-list_3.cjs.entry.js} +74 -1
  4. package/dist/cjs/swirl-app-layout_5.cjs.entry.js +4 -4
  5. package/dist/cjs/swirl-autocomplete.cjs.entry.js +1 -1
  6. package/dist/cjs/swirl-banner.cjs.entry.js +1 -1
  7. package/dist/cjs/swirl-button.cjs.entry.js +4 -1
  8. package/dist/cjs/swirl-chip.cjs.entry.js +1 -1
  9. package/dist/cjs/swirl-components.cjs.js +1 -1
  10. package/dist/cjs/swirl-console-layout.cjs.entry.js +1 -1
  11. package/dist/cjs/swirl-date-input.cjs.entry.js +1 -1
  12. package/dist/cjs/swirl-file-viewer_7.cjs.entry.js +2 -1
  13. package/dist/cjs/{swirl-icon-arrow-left_3.cjs.entry.js → swirl-icon-arrow-left_4.cjs.entry.js} +22 -4
  14. package/dist/cjs/swirl-icon-bookmark.cjs.entry.js +24 -0
  15. package/dist/cjs/swirl-icon-check-small_4.cjs.entry.js +1 -1
  16. package/dist/cjs/swirl-icon-double-arrow-left.cjs.entry.js +24 -0
  17. package/dist/cjs/swirl-icon-double-arrow-right.cjs.entry.js +24 -0
  18. package/dist/cjs/swirl-icon-download.cjs.entry.js +24 -0
  19. package/dist/cjs/swirl-icon-error_3.cjs.entry.js +2 -2
  20. package/dist/cjs/swirl-icon-folder.cjs.entry.js +24 -0
  21. package/dist/cjs/swirl-lightbox.cjs.entry.js +25 -5
  22. package/dist/cjs/swirl-pdf-reader.cjs.entry.js +9 -4
  23. package/dist/cjs/swirl-popover.cjs.entry.js +10 -4
  24. package/dist/cjs/swirl-resource-list-file-item.cjs.entry.js +1 -1
  25. package/dist/cjs/swirl-search.cjs.entry.js +1 -1
  26. package/dist/cjs/swirl-select.cjs.entry.js +1 -1
  27. package/dist/cjs/swirl-shell-layout.cjs.entry.js +106 -0
  28. package/dist/cjs/swirl-shell-navigation-item.cjs.entry.js +45 -0
  29. package/dist/cjs/swirl-table.cjs.entry.js +1 -1
  30. package/dist/cjs/swirl-text-input.cjs.entry.js +1 -1
  31. package/dist/cjs/swirl-toast.cjs.entry.js +1 -1
  32. package/dist/cjs/{utils-a07ee0db.js → utils-f1b4e064.js} +13 -0
  33. package/dist/collection/collection-manifest.json +6 -0
  34. package/dist/collection/components/swirl-action-list/swirl-action-list.css +1 -0
  35. package/dist/collection/components/swirl-action-list/swirl-action-list.js +20 -8
  36. package/dist/collection/components/swirl-action-list-item/swirl-action-list-item.js +3 -0
  37. package/dist/collection/components/swirl-app-layout/swirl-app-layout.css +35 -12
  38. package/dist/collection/components/swirl-app-layout/swirl-app-layout.js +2 -2
  39. package/dist/collection/components/swirl-app-layout/swirl-app-layout.stories.js +1 -1
  40. package/dist/collection/components/swirl-button/swirl-button.js +3 -0
  41. package/dist/collection/components/swirl-file-viewer/swirl-file-viewer.js +18 -0
  42. package/dist/collection/components/swirl-icon/icons/swirl-icon-bookmark.js +52 -0
  43. package/dist/collection/components/swirl-icon/icons/swirl-icon-double-arrow-left.js +52 -0
  44. package/dist/collection/components/swirl-icon/icons/swirl-icon-double-arrow-right.js +52 -0
  45. package/dist/collection/components/swirl-icon/icons/swirl-icon-folder.js +52 -0
  46. package/dist/collection/components/swirl-lightbox/swirl-lightbox.css +31 -2
  47. package/dist/collection/components/swirl-lightbox/swirl-lightbox.js +60 -4
  48. package/dist/collection/components/swirl-lightbox/swirl-lightbox.stories.js +14 -3
  49. package/dist/collection/components/swirl-pdf-reader/swirl-pdf-reader.css +30 -0
  50. package/dist/collection/components/swirl-pdf-reader/swirl-pdf-reader.js +61 -2
  51. package/dist/collection/components/swirl-pdf-reader/swirl-pdf-reader.stories.js +8 -1
  52. package/dist/collection/components/swirl-popover/swirl-popover.js +27 -4
  53. package/dist/collection/components/swirl-popover/swirl-popover.stories.js +3 -0
  54. package/dist/collection/components/swirl-separator/swirl-separator.css +1 -0
  55. package/dist/collection/components/swirl-shell-layout/swirl-shell-layout.css +233 -0
  56. package/dist/collection/components/swirl-shell-layout/swirl-shell-layout.js +196 -0
  57. package/dist/collection/components/swirl-shell-layout/swirl-shell-layout.stories.js +88 -0
  58. package/dist/collection/components/swirl-shell-navigation-item/swirl-shell-navigation-item.css +71 -0
  59. package/dist/collection/components/swirl-shell-navigation-item/swirl-shell-navigation-item.js +100 -0
  60. package/dist/collection/components/swirl-shell-navigation-item/swirl-shell-navigation-item.stories.js +30 -0
  61. package/dist/collection/components/swirl-spinner/swirl-spinner.css +13 -2
  62. package/dist/collection/components/swirl-spinner/swirl-spinner.js +2 -2
  63. package/dist/collection/prototypes/file-manager/file-manager.stories.js +1 -1
  64. package/dist/collection/utils.js +31 -15
  65. package/dist/components/file-manager.js +1 -0
  66. package/dist/components/swirl-action-list-item.js +1 -67
  67. package/dist/{esm/swirl-action-list-item.entry.js → components/swirl-action-list-item2.js} +36 -10
  68. package/dist/components/swirl-action-list-section.js +1 -0
  69. package/dist/components/swirl-action-list.js +1 -61
  70. package/dist/components/swirl-action-list2.js +76 -0
  71. package/dist/components/swirl-app-layout2.js +4 -3
  72. package/dist/components/swirl-autocomplete.js +1 -0
  73. package/dist/components/swirl-avatar-group.js +1 -0
  74. package/dist/components/swirl-avatar.js +1 -0
  75. package/dist/components/swirl-badge.js +1 -0
  76. package/dist/components/swirl-banner.js +1 -0
  77. package/dist/components/swirl-box2.js +1 -0
  78. package/dist/components/swirl-button-group2.js +1 -0
  79. package/dist/components/swirl-button2.js +4 -0
  80. package/dist/components/swirl-card.js +1 -0
  81. package/dist/components/swirl-checkbox.js +1 -0
  82. package/dist/components/swirl-chip.js +1 -0
  83. package/dist/components/swirl-console-layout.js +1 -0
  84. package/dist/components/swirl-date-input.js +1 -0
  85. package/dist/components/swirl-date-picker2.js +1 -0
  86. package/dist/components/swirl-description-list-item.js +1 -0
  87. package/dist/components/swirl-description-list.js +1 -0
  88. package/dist/components/swirl-dialog.js +1 -0
  89. package/dist/components/swirl-empty-state2.js +1 -0
  90. package/dist/components/swirl-file-uploader.js +1 -0
  91. package/dist/components/swirl-file-viewer-audio2.js +1 -0
  92. package/dist/components/swirl-file-viewer-csv2.js +1 -0
  93. package/dist/components/swirl-file-viewer-image2.js +1 -0
  94. package/dist/components/swirl-file-viewer-pdf2.js +1 -0
  95. package/dist/components/swirl-file-viewer-text2.js +1 -0
  96. package/dist/components/swirl-file-viewer-video2.js +1 -0
  97. package/dist/components/swirl-file-viewer2.js +3 -0
  98. package/dist/components/swirl-form-control.js +1 -0
  99. package/dist/components/swirl-form-group.js +1 -0
  100. package/dist/components/swirl-heading2.js +1 -0
  101. package/dist/components/swirl-icon-add-photo.js +1 -0
  102. package/dist/components/swirl-icon-add2.js +1 -0
  103. package/dist/components/swirl-icon-admin-panel-settings.js +1 -0
  104. package/dist/components/swirl-icon-arrow-back.js +1 -0
  105. package/dist/components/swirl-icon-arrow-downward2.js +1 -0
  106. package/dist/components/swirl-icon-arrow-forward.js +1 -0
  107. package/dist/components/swirl-icon-arrow-left2.js +1 -0
  108. package/dist/components/swirl-icon-arrow-right-small.js +1 -0
  109. package/dist/components/swirl-icon-arrow-right2.js +1 -0
  110. package/dist/components/swirl-icon-arrow-upward2.js +1 -0
  111. package/dist/components/swirl-icon-attachment.js +1 -0
  112. package/dist/components/swirl-icon-block.js +1 -0
  113. package/dist/components/swirl-icon-bookmark.d.ts +11 -0
  114. package/dist/components/swirl-icon-bookmark.js +40 -0
  115. package/dist/components/swirl-icon-cancel2.js +1 -0
  116. package/dist/components/swirl-icon-chat-bubble.js +1 -0
  117. package/dist/components/swirl-icon-chats-filled.js +1 -0
  118. package/dist/components/swirl-icon-chats-outlined.js +1 -0
  119. package/dist/components/swirl-icon-check-circle.js +1 -0
  120. package/dist/components/swirl-icon-check-small2.js +1 -0
  121. package/dist/components/swirl-icon-check-strong2.js +1 -0
  122. package/dist/components/swirl-icon-check.js +1 -0
  123. package/dist/components/swirl-icon-chevron-left.js +1 -0
  124. package/dist/components/swirl-icon-chevron-right.js +1 -0
  125. package/dist/components/swirl-icon-close-small.js +1 -0
  126. package/dist/components/swirl-icon-close2.js +1 -0
  127. package/dist/components/swirl-icon-cloud-upload2.js +1 -0
  128. package/dist/components/swirl-icon-column.js +1 -0
  129. package/dist/components/swirl-icon-comment.js +1 -0
  130. package/dist/components/swirl-icon-copy.js +1 -0
  131. package/dist/components/swirl-icon-date-range.js +1 -0
  132. package/dist/components/swirl-icon-delete.js +1 -0
  133. package/dist/components/swirl-icon-description.js +1 -0
  134. package/dist/components/swirl-icon-double-arrow-left.d.ts +11 -0
  135. package/dist/components/swirl-icon-double-arrow-left.js +40 -0
  136. package/dist/components/swirl-icon-double-arrow-right.d.ts +11 -0
  137. package/dist/components/swirl-icon-double-arrow-right.js +40 -0
  138. package/dist/components/swirl-icon-download.js +35 -1
  139. package/dist/components/swirl-icon-drag-handle2.js +1 -0
  140. package/dist/components/swirl-icon-edit.js +1 -0
  141. package/dist/components/swirl-icon-emoji-mood.js +1 -0
  142. package/dist/components/swirl-icon-emoji-satisfied.js +1 -0
  143. package/dist/components/swirl-icon-error2.js +1 -0
  144. package/dist/components/swirl-icon-expand-less2.js +1 -0
  145. package/dist/components/swirl-icon-expand-more2.js +1 -0
  146. package/dist/components/swirl-icon-file.js +1 -0
  147. package/dist/components/swirl-icon-filter.js +1 -0
  148. package/dist/components/swirl-icon-folder-shared.js +1 -0
  149. package/dist/components/swirl-icon-folder.d.ts +11 -0
  150. package/dist/components/swirl-icon-folder.js +40 -0
  151. package/dist/components/swirl-icon-fullscreen-exit2.js +1 -0
  152. package/dist/components/swirl-icon-fullscreen2.js +1 -0
  153. package/dist/components/swirl-icon-group-assign.js +1 -0
  154. package/dist/components/swirl-icon-groups-custom.js +1 -0
  155. package/dist/components/swirl-icon-groups-filled.js +1 -0
  156. package/dist/components/swirl-icon-groups-outlined.js +1 -0
  157. package/dist/components/swirl-icon-groups.js +1 -0
  158. package/dist/components/swirl-icon-help.js +1 -0
  159. package/dist/components/swirl-icon-image.js +1 -0
  160. package/dist/components/swirl-icon-info.js +1 -0
  161. package/dist/components/swirl-icon-inventory.js +1 -0
  162. package/dist/components/swirl-icon-like.js +1 -0
  163. package/dist/components/swirl-icon-link.js +1 -0
  164. package/dist/components/swirl-icon-lock.js +1 -0
  165. package/dist/components/swirl-icon-logout.js +1 -0
  166. package/dist/components/swirl-icon-mail.js +1 -0
  167. package/dist/components/swirl-icon-manage-accounts.js +1 -0
  168. package/dist/components/swirl-icon-mention.js +1 -0
  169. package/dist/components/swirl-icon-menu-filled.js +1 -0
  170. package/dist/components/swirl-icon-menu-outlined.js +1 -0
  171. package/dist/components/swirl-icon-menu.js +1 -0
  172. package/dist/components/swirl-icon-message.js +1 -0
  173. package/dist/components/swirl-icon-more-horizontal.js +1 -0
  174. package/dist/components/swirl-icon-more-vertikal.js +1 -34
  175. package/dist/{esm/swirl-icon-more-vertikal.entry.js → components/swirl-icon-more-vertikal2.js} +26 -9
  176. package/dist/components/swirl-icon-news-filled.js +1 -0
  177. package/dist/components/swirl-icon-news-outlined.js +1 -0
  178. package/dist/components/swirl-icon-notifications-active.js +1 -0
  179. package/dist/components/swirl-icon-notifications-off.js +1 -0
  180. package/dist/components/swirl-icon-notifications.js +1 -0
  181. package/dist/components/swirl-icon-open-in-new.js +1 -0
  182. package/dist/components/swirl-icon-people-alt.js +1 -0
  183. package/dist/components/swirl-icon-person-off.js +1 -0
  184. package/dist/components/swirl-icon-person2.js +1 -0
  185. package/dist/components/swirl-icon-phone.js +1 -0
  186. package/dist/components/swirl-icon-poll.js +1 -0
  187. package/dist/components/swirl-icon-print.js +1 -0
  188. package/dist/components/swirl-icon-recieved.js +1 -0
  189. package/dist/components/swirl-icon-remove2.js +1 -0
  190. package/dist/components/swirl-icon-search-strong.js +1 -0
  191. package/dist/components/swirl-icon-search2.js +1 -0
  192. package/dist/components/swirl-icon-send.js +1 -0
  193. package/dist/components/swirl-icon-settings.js +1 -0
  194. package/dist/components/swirl-icon-sync.js +1 -0
  195. package/dist/components/swirl-icon-tasks-filled.js +1 -0
  196. package/dist/components/swirl-icon-tasks-outlined.js +1 -0
  197. package/dist/components/swirl-icon-time-filled.js +1 -0
  198. package/dist/components/swirl-icon-time-outlined.js +1 -0
  199. package/dist/components/swirl-icon-today2.js +1 -0
  200. package/dist/components/swirl-icon-user-assign.js +1 -0
  201. package/dist/components/swirl-icon-video-camera.js +1 -0
  202. package/dist/components/swirl-icon-visibility-off2.js +1 -0
  203. package/dist/components/swirl-icon-visibility2.js +1 -0
  204. package/dist/components/swirl-icon-warning.js +1 -0
  205. package/dist/components/swirl-inline-error2.js +1 -0
  206. package/dist/components/swirl-lightbox.js +77 -12
  207. package/dist/components/swirl-link.js +1 -0
  208. package/dist/components/swirl-list.js +1 -0
  209. package/dist/components/swirl-modal.js +1 -0
  210. package/dist/components/swirl-option-list-item2.js +1 -0
  211. package/dist/components/swirl-option-list-section.js +1 -0
  212. package/dist/components/swirl-option-list2.js +1 -0
  213. package/dist/components/swirl-pagination.js +1 -0
  214. package/dist/components/swirl-pdf-reader.js +80 -35
  215. package/dist/components/swirl-popover2.js +13 -5
  216. package/dist/components/swirl-progress-indicator.js +1 -0
  217. package/dist/components/swirl-radio-group.js +1 -0
  218. package/dist/components/swirl-radio.js +1 -0
  219. package/dist/components/swirl-resource-list-file-item.js +1 -0
  220. package/dist/components/swirl-resource-list-item2.js +1 -0
  221. package/dist/components/swirl-resource-list2.js +1 -0
  222. package/dist/components/swirl-search.js +1 -0
  223. package/dist/components/swirl-select.js +1 -0
  224. package/dist/components/swirl-separator.js +1 -28
  225. package/dist/components/swirl-separator2.js +31 -0
  226. package/dist/components/swirl-shell-layout.d.ts +11 -0
  227. package/dist/components/swirl-shell-layout.js +134 -0
  228. package/dist/components/swirl-shell-navigation-item.d.ts +11 -0
  229. package/dist/components/swirl-shell-navigation-item.js +63 -0
  230. package/dist/components/swirl-skeleton-box.js +1 -0
  231. package/dist/components/swirl-skeleton-text.js +1 -0
  232. package/dist/components/swirl-spinner2.js +3 -2
  233. package/dist/components/swirl-stack2.js +1 -0
  234. package/dist/components/swirl-switch.js +1 -0
  235. package/dist/components/swirl-tab.js +1 -0
  236. package/dist/components/swirl-table-cell.js +1 -0
  237. package/dist/components/swirl-table-column.js +1 -0
  238. package/dist/components/swirl-table-row-group.js +1 -0
  239. package/dist/components/swirl-table-row.js +1 -0
  240. package/dist/components/swirl-table.js +1 -0
  241. package/dist/components/swirl-tabs.js +1 -0
  242. package/dist/components/swirl-tag.js +1 -0
  243. package/dist/components/swirl-text-input2.js +1 -0
  244. package/dist/components/swirl-text2.js +1 -0
  245. package/dist/components/swirl-theme-provider.js +1 -0
  246. package/dist/components/swirl-thumbnail.js +1 -39
  247. package/dist/{esm/swirl-thumbnail.entry.js → components/swirl-thumbnail2.js} +29 -9
  248. package/dist/components/swirl-toast-provider.js +1 -0
  249. package/dist/components/swirl-toast2.js +1 -0
  250. package/dist/components/swirl-tooltip.js +1 -0
  251. package/dist/components/swirl-tree-navigation-item.js +1 -0
  252. package/dist/components/swirl-video-thumbnail.js +1 -0
  253. package/dist/components/swirl-visually-hidden2.js +1 -0
  254. package/dist/components/utils.js +13 -1
  255. package/dist/components/wc-datepicker2.js +1 -0
  256. package/dist/esm/loader.js +1 -1
  257. package/dist/esm/swirl-action-list_3.entry.js +118 -0
  258. package/dist/esm/swirl-app-layout_5.entry.js +4 -4
  259. package/dist/esm/swirl-autocomplete.entry.js +1 -1
  260. package/dist/esm/swirl-banner.entry.js +1 -1
  261. package/dist/esm/swirl-button.entry.js +4 -1
  262. package/dist/esm/swirl-chip.entry.js +1 -1
  263. package/dist/esm/swirl-components.js +1 -1
  264. package/dist/esm/swirl-console-layout.entry.js +1 -1
  265. package/dist/esm/swirl-date-input.entry.js +1 -1
  266. package/dist/esm/swirl-file-viewer_7.entry.js +2 -1
  267. package/dist/esm/{swirl-icon-arrow-left_3.entry.js → swirl-icon-arrow-left_4.entry.js} +22 -5
  268. package/dist/esm/swirl-icon-bookmark.entry.js +20 -0
  269. package/dist/esm/swirl-icon-check-small_4.entry.js +1 -1
  270. package/dist/esm/swirl-icon-double-arrow-left.entry.js +20 -0
  271. package/dist/esm/swirl-icon-double-arrow-right.entry.js +20 -0
  272. package/dist/{components/swirl-icon-download2.js → esm/swirl-icon-download.entry.js} +9 -25
  273. package/dist/esm/swirl-icon-error_3.entry.js +2 -2
  274. package/dist/esm/swirl-icon-folder.entry.js +20 -0
  275. package/dist/esm/swirl-lightbox.entry.js +25 -5
  276. package/dist/esm/swirl-pdf-reader.entry.js +9 -4
  277. package/dist/esm/swirl-popover.entry.js +11 -5
  278. package/dist/esm/swirl-resource-list-file-item.entry.js +1 -1
  279. package/dist/esm/swirl-search.entry.js +1 -1
  280. package/dist/esm/swirl-select.entry.js +1 -1
  281. package/dist/esm/swirl-shell-layout.entry.js +102 -0
  282. package/dist/esm/swirl-shell-navigation-item.entry.js +41 -0
  283. package/dist/esm/swirl-table.entry.js +1 -1
  284. package/dist/esm/swirl-text-input.entry.js +1 -1
  285. package/dist/esm/swirl-toast.entry.js +1 -1
  286. package/dist/esm/{utils-33d31b58.js → utils-61f188cc.js} +13 -1
  287. package/dist/swirl-components/{p-905e3f32.entry.js → p-03c7be43.entry.js} +1 -1
  288. package/dist/swirl-components/{p-33e4b66d.entry.js → p-05550659.entry.js} +1 -1
  289. package/dist/swirl-components/p-097f02b9.entry.js +1 -0
  290. package/dist/swirl-components/p-2fce527a.entry.js +1 -0
  291. package/dist/swirl-components/p-2fd243cf.entry.js +1 -0
  292. package/dist/swirl-components/{p-67e86a11.entry.js → p-3060f78f.entry.js} +1 -1
  293. package/dist/swirl-components/{p-1a6ca33d.entry.js → p-3275cac1.entry.js} +1 -1
  294. package/dist/swirl-components/{p-87ce453b.entry.js → p-357509d4.entry.js} +1 -1
  295. package/dist/swirl-components/{p-d51a5f4f.entry.js → p-3c7eb982.entry.js} +1 -1
  296. package/dist/swirl-components/p-41466a58.entry.js +1 -0
  297. package/dist/swirl-components/p-438b3941.js +1 -0
  298. package/dist/swirl-components/p-4607e131.entry.js +1 -0
  299. package/dist/swirl-components/p-48145eb1.entry.js +1 -0
  300. package/dist/swirl-components/p-4acd4270.entry.js +1 -0
  301. package/dist/swirl-components/{p-0dcc2cbc.entry.js → p-5341bbe1.entry.js} +1 -1
  302. package/dist/swirl-components/p-5568862a.entry.js +1 -0
  303. package/dist/swirl-components/{p-fbd4380b.entry.js → p-55e7fa1b.entry.js} +1 -1
  304. package/dist/swirl-components/p-711cc9ed.entry.js +1 -0
  305. package/dist/swirl-components/p-74340004.entry.js +1 -0
  306. package/dist/swirl-components/{p-61b7f41b.entry.js → p-99778781.entry.js} +1 -1
  307. package/dist/swirl-components/{p-148b7b70.entry.js → p-a76e3488.entry.js} +1 -1
  308. package/dist/swirl-components/p-a7d93c6a.entry.js +1 -0
  309. package/dist/swirl-components/p-b0b07705.entry.js +1 -0
  310. package/dist/swirl-components/p-b12586c9.entry.js +1 -0
  311. package/dist/swirl-components/{p-2e733839.entry.js → p-c0f87c48.entry.js} +1 -1
  312. package/dist/swirl-components/{p-2c941975.entry.js → p-ca2d3b9f.entry.js} +1 -1
  313. package/dist/swirl-components/{p-8342ee34.entry.js → p-d4eb2174.entry.js} +1 -1
  314. package/dist/swirl-components/{p-19caf328.entry.js → p-f2989961.entry.js} +1 -1
  315. package/dist/swirl-components/p-f8dc7e92.entry.js +1 -0
  316. package/dist/swirl-components/swirl-components.esm.js +1 -1
  317. package/dist/types/components/swirl-action-list/swirl-action-list.d.ts +4 -0
  318. package/dist/types/components/swirl-action-list-item/swirl-action-list-item.d.ts +1 -0
  319. package/dist/types/components/swirl-app-layout/swirl-app-layout.stories.d.ts +1 -2
  320. package/dist/types/components/swirl-button/swirl-button.d.ts +1 -0
  321. package/dist/types/components/swirl-file-viewer/swirl-file-viewer.d.ts +1 -0
  322. package/dist/types/components/swirl-icon/icons/swirl-icon-bookmark.d.ts +5 -0
  323. package/dist/types/components/swirl-icon/icons/swirl-icon-double-arrow-left.d.ts +5 -0
  324. package/dist/types/components/swirl-icon/icons/swirl-icon-double-arrow-right.d.ts +5 -0
  325. package/dist/types/components/swirl-icon/icons/swirl-icon-folder.d.ts +5 -0
  326. package/dist/types/components/swirl-lightbox/swirl-lightbox.d.ts +6 -0
  327. package/dist/types/components/swirl-pdf-reader/swirl-pdf-reader.d.ts +4 -0
  328. package/dist/types/components/swirl-popover/swirl-popover.d.ts +1 -0
  329. package/dist/types/components/swirl-popover/swirl-popover.stories.d.ts +3 -0
  330. package/dist/types/components/swirl-shell-layout/swirl-shell-layout.d.ts +33 -0
  331. package/dist/types/components/swirl-shell-layout/swirl-shell-layout.stories.d.ts +15 -0
  332. package/dist/types/components/swirl-shell-navigation-item/swirl-shell-navigation-item.d.ts +11 -0
  333. package/dist/types/components/swirl-shell-navigation-item/swirl-shell-navigation-item.stories.d.ts +23 -0
  334. package/dist/types/components/swirl-spinner/swirl-spinner.d.ts +1 -1
  335. package/dist/types/components.d.ts +118 -0
  336. package/dist/types/prototypes/file-manager/file-manager.stories.d.ts +1 -2
  337. package/dist/types/utils.d.ts +2 -1
  338. package/package.json +2 -2
  339. package/vscode-data.json +121 -0
  340. package/dist/cjs/swirl-action-list.cjs.entry.js +0 -52
  341. package/dist/cjs/swirl-icon-more-vertikal.cjs.entry.js +0 -24
  342. package/dist/cjs/swirl-separator.cjs.entry.js +0 -19
  343. package/dist/cjs/swirl-thumbnail.cjs.entry.js +0 -26
  344. package/dist/esm/swirl-action-list.entry.js +0 -48
  345. package/dist/esm/swirl-separator.entry.js +0 -15
  346. package/dist/swirl-components/p-027680e2.entry.js +0 -1
  347. package/dist/swirl-components/p-2edc08f0.entry.js +0 -1
  348. package/dist/swirl-components/p-4a847ce0.entry.js +0 -1
  349. package/dist/swirl-components/p-5540b8cf.entry.js +0 -1
  350. package/dist/swirl-components/p-8ea0a318.entry.js +0 -1
  351. package/dist/swirl-components/p-9142e03b.js +0 -1
  352. package/dist/swirl-components/p-a0e0322a.entry.js +0 -1
  353. package/dist/swirl-components/p-c7326b88.entry.js +0 -1
  354. package/dist/swirl-components/p-cef24ae4.entry.js +0 -1
  355. package/dist/swirl-components/p-d20dbf47.entry.js +0 -1
  356. package/dist/swirl-components/p-e1abf6d5.entry.js +0 -1
  357. package/dist/swirl-components/p-ff161795.entry.js +0 -1
@@ -20,6 +20,9 @@ export class SwirlActionListItem {
20
20
  this.forceIconProps(this.desktopMediaQuery.matches);
21
21
  (_b = (_a = this.desktopMediaQuery).addEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, "change", this.desktopMediaQueryHandler);
22
22
  }
23
+ componentDidRender() {
24
+ this.forceIconProps(this.desktopMediaQuery.matches);
25
+ }
23
26
  disconnectedCallback() {
24
27
  var _a, _b;
25
28
  (_b = (_a = this.desktopMediaQuery).removeEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, "change", this.desktopMediaQueryHandler);
@@ -1,4 +1,6 @@
1
1
  :host {
2
+ position: relative;
3
+ z-index: 1;
2
4
  display: flex;
3
5
  width: 100%;
4
6
  height: 100%;
@@ -12,21 +14,12 @@
12
14
  display: flex;
13
15
  overflow: hidden;
14
16
  width: 100%;
15
- max-width: 100rem;
16
17
  height: 100%;
17
18
  margin-right: auto;
18
19
  margin-left: auto;
19
- border: var(--s-border-width-default) solid var(--s-border-default);
20
20
  background-color: var(--s-border-default);
21
21
  }
22
22
 
23
- @media (min-width: 1440px) {
24
-
25
- .app-layout {
26
- border-radius: var(--s-border-radius-base)
27
- }
28
- }
29
-
30
23
  .app-layout__grid {
31
24
  position: relative;
32
25
  display: grid;
@@ -208,7 +201,10 @@
208
201
  .app-layout__header {
209
202
  z-index: 1;
210
203
  display: flex;
211
- padding: var(--s-space-12) var(--s-space-16);
204
+ padding-top: var(--s-space-12);
205
+ padding-right: var(--s-space-16);
206
+ padding-bottom: var(--s-space-12);
207
+ padding-left: calc(var(--s-space-16) + var(--s-space-8) + 2.5rem);
212
208
  align-items: center;
213
209
  background-color: var(--s-background-default);
214
210
  grid-area: header;
@@ -216,6 +212,13 @@
216
212
  gap: var(--s-space-8);
217
213
  }
218
214
 
215
+ @media (min-width: 992px) {
216
+
217
+ .app-layout__header {
218
+ padding-left: var(--s-space-16)
219
+ }
220
+ }
221
+
219
222
  .app-layout__app-name {
220
223
  min-width: 0;
221
224
  }
@@ -266,13 +269,23 @@
266
269
  .app-layout__app-bar {
267
270
  display: flex;
268
271
  min-width: 0;
269
- padding: var(--s-space-12) var(--s-space-16);
272
+ padding-top: var(--s-space-12);
273
+ padding-right: var(--s-space-16);
274
+ padding-bottom: var(--s-space-12);
275
+ padding-left: calc(var(--s-space-16) + var(--s-space-8) + 2.5rem);
270
276
  align-items: center;
271
277
  background-color: var(--s-background-default);
272
278
  grid-area: app-bar;
273
279
  gap: var(--s-space-8);
274
280
  }
275
281
 
282
+ @media (min-width: 992px) {
283
+
284
+ .app-layout__app-bar {
285
+ padding-left: var(--s-space-16)
286
+ }
287
+ }
288
+
276
289
  .app-layout__back-to-navigation-button {
277
290
  margin-left: calc(-1 * var(--s-space-4));
278
291
  }
@@ -351,13 +364,23 @@
351
364
  .app-layout__sidebar-header {
352
365
  display: flex;
353
366
  min-width: 0;
354
- padding: var(--s-space-12) var(--s-space-16);
367
+ padding-top: var(--s-space-12);
368
+ padding-right: var(--s-space-16);
369
+ padding-bottom: var(--s-space-12);
370
+ padding-left: calc(var(--s-space-16) + var(--s-space-8) + 2.5rem);
355
371
  align-items: center;
356
372
  background-color: var(--s-background-default);
357
373
  grid-area: sidebar-header;
358
374
  gap: var(--s-space-8);
359
375
  }
360
376
 
377
+ @media (min-width: 992px) {
378
+
379
+ .app-layout__sidebar-header {
380
+ padding-left: var(--s-space-16)
381
+ }
382
+ }
383
+
361
384
  .app-layout__sidebar-heading {
362
385
  min-width: 0;
363
386
  flex-grow: 1;
@@ -166,9 +166,9 @@ export class SwirlAppLayout {
166
166
  "app-layout--sidebar-active": this.mobileView === "sidebar" || this.sidebarActive,
167
167
  "app-layout--sidebar-closing": this.sidebarClosing,
168
168
  });
169
- return (h(Host, null, h("section", { "aria-labelledby": "app-name", class: className, role: "document", tabIndex: 0 }, h("div", { class: "app-layout__grid" }, h("header", { class: "app-layout__header" }, this.showNavigationBackButton && (h("span", { class: "app-layout__navigation-back-button" }, h("swirl-button", { hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", intent: "primary", label: this.navigationBackButtonLabel, onClick: this.onNavigationBackButtonClick }))), h("swirl-heading", { as: "h1", class: "app-layout__app-name", headingId: "app-name", level: 2, text: this.appName }), this.hasNavigation && (h("span", { class: "app-layout__navigation-controls" }, h("slot", { name: "navigation-controls" })))), h("nav", { "aria-label": this.navigationLabel, class: "app-layout__navigation" }, h("slot", { name: "navigation" })), h("section", { "aria-labelledby": this.hasNavigation ? "heading" : "app-name", class: "app-layout__body" }, this.hasNavigation ? (h("header", { class: "app-layout__app-bar" }, showBackToNavigationButton && (h("span", { class: "app-layout__back-to-navigation-button" }, h("swirl-button", { hideLabel: true, icon: this.transitionStyle === "dialog"
169
+ return (h(Host, null, h("section", { "aria-labelledby": "app-name", class: className, role: "document", tabIndex: 0 }, h("div", { class: "app-layout__grid" }, h("header", { class: "app-layout__header" }, this.showNavigationBackButton && (h("span", { class: "app-layout__navigation-back-button" }, h("swirl-button", { hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.navigationBackButtonLabel, onClick: this.onNavigationBackButtonClick }))), h("swirl-heading", { as: "h1", class: "app-layout__app-name", headingId: "app-name", level: 2, text: this.appName }), this.hasNavigation && (h("span", { class: "app-layout__navigation-controls" }, h("slot", { name: "navigation-controls" })))), h("nav", { "aria-label": this.navigationLabel, class: "app-layout__navigation" }, h("slot", { name: "navigation" })), h("section", { "aria-labelledby": this.hasNavigation ? "heading" : "app-name", class: "app-layout__body" }, this.hasNavigation ? (h("header", { class: "app-layout__app-bar" }, showBackToNavigationButton && (h("span", { class: "app-layout__back-to-navigation-button" }, h("swirl-button", { hideLabel: true, icon: this.transitionStyle === "dialog"
170
170
  ? "<swirl-icon-close></swirl-icon-close>"
171
- : "<swirl-icon-arrow-back></swirl-icon-arrow-back>", intent: "primary", label: this.backToNavigationViewButtonLabel, onClick: this.onBackToNavigationViewButtonClick }))), this.appBarMedia && (h("div", { class: "app-layout__app-bar-media", innerHTML: this.appBarMedia })), h("div", { class: "app-layout__app-bar-heading" }, this.heading && (h("swirl-heading", { as: "h2", headingId: "heading", level: 4, text: this.heading })), this.subheading && (h("span", { class: "app-layout__app-bar-subheading" }, this.subheading))), h("div", { class: "app-layout__app-bar-controls" }, h("slot", { name: "app-bar-controls" })))) : (h("header", { class: "app-layout__app-bar" }, h("swirl-heading", { as: "h1", headingId: "app-name", level: 2, text: this.appName }), h("span", { class: "app-layout__navigation-controls" }, h("slot", { name: "navigation-controls" })))), h("div", { class: "app-layout__content" }, h("slot", { name: "content" }))), h("aside", { class: "app-layout__sidebar" }, h("header", { class: "app-layout__sidebar-header" }, h("swirl-button", { class: "app-layout__sidebar-close-button", hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", intent: "primary", label: this.sidebarCloseButtonLabel, onClick: this.onSidebarCloseButtonClick }), h("swirl-heading", { as: "h3", class: "app-layout__sidebar-heading", headingId: "sidebar-heading", level: 2, text: this.sidebarHeading })), h("div", { class: "app-layout__sidebar-content" }, h("slot", { name: "sidebar" }))), this.ctaLabel && (h("span", { class: "app-layout__floating-cta" }, h("swirl-button", { hideLabel: Boolean(this.ctaIcon), icon: this.ctaIcon, intent: "primary", label: this.ctaLabel, onClick: this.onCtaClick, variant: "floating" })))))));
171
+ : "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backToNavigationViewButtonLabel, onClick: this.onBackToNavigationViewButtonClick }))), this.appBarMedia && (h("div", { class: "app-layout__app-bar-media", innerHTML: this.appBarMedia })), h("div", { class: "app-layout__app-bar-heading" }, this.heading && (h("swirl-heading", { as: "h2", headingId: "heading", level: 4, text: this.heading })), this.subheading && (h("span", { class: "app-layout__app-bar-subheading" }, this.subheading))), h("div", { class: "app-layout__app-bar-controls" }, h("slot", { name: "app-bar-controls" })))) : (h("header", { class: "app-layout__app-bar" }, h("swirl-heading", { as: "h1", headingId: "app-name", level: 2, text: this.appName }), h("span", { class: "app-layout__navigation-controls" }, h("slot", { name: "navigation-controls" })))), h("div", { class: "app-layout__content" }, h("slot", { name: "content" }))), h("aside", { class: "app-layout__sidebar" }, h("header", { class: "app-layout__sidebar-header" }, h("swirl-button", { class: "app-layout__sidebar-close-button", hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.sidebarCloseButtonLabel, onClick: this.onSidebarCloseButtonClick }), h("swirl-heading", { as: "h3", class: "app-layout__sidebar-heading", headingId: "sidebar-heading", level: 2, text: this.sidebarHeading })), h("div", { class: "app-layout__sidebar-content" }, h("slot", { name: "sidebar" }))), this.ctaLabel && (h("span", { class: "app-layout__floating-cta" }, h("swirl-button", { hideLabel: Boolean(this.ctaIcon), icon: this.ctaIcon, intent: "primary", label: this.ctaLabel, onClick: this.onCtaClick, variant: "floating" })))))));
172
172
  }
173
173
  static get is() { return "swirl-app-layout"; }
174
174
  static get encapsulation() { return "shadow"; }
@@ -20,7 +20,7 @@ export default {
20
20
  },
21
21
  },
22
22
  component: "swirl-app-layout",
23
- decorators: [fullscreenStoryDecorator],
23
+ decorators: [fullscreenStoryDecorator()],
24
24
  parameters: {
25
25
  docs: {
26
26
  page: Docs,
@@ -32,6 +32,9 @@ export class SwirlButton {
32
32
  this.forceIconProps(this.desktopMediaQuery.matches);
33
33
  (_b = (_a = this.desktopMediaQuery).addEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, "change", this.desktopMediaQueryHandler);
34
34
  }
35
+ componentDidRender() {
36
+ this.forceIconProps(this.desktopMediaQuery.matches);
37
+ }
35
38
  disconnectedCallback() {
36
39
  var _a, _b;
37
40
  (_b = (_a = this.desktopMediaQuery).removeEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, "change", this.desktopMediaQueryHandler);
@@ -10,6 +10,7 @@ export class SwirlFileViewer {
10
10
  this.description = undefined;
11
11
  this.errorMessage = "File could not be loaded.";
12
12
  this.file = undefined;
13
+ this.thumbnailUrl = undefined;
13
14
  this.type = undefined;
14
15
  this.typeUnsupportedMessage = "File type is not supported.";
15
16
  this.zoom = 1;
@@ -141,6 +142,23 @@ export class SwirlFileViewer {
141
142
  "attribute": "file",
142
143
  "reflect": false
143
144
  },
145
+ "thumbnailUrl": {
146
+ "type": "string",
147
+ "mutable": false,
148
+ "complexType": {
149
+ "original": "string",
150
+ "resolved": "string",
151
+ "references": {}
152
+ },
153
+ "required": false,
154
+ "optional": true,
155
+ "docs": {
156
+ "tags": [],
157
+ "text": ""
158
+ },
159
+ "attribute": "thumbnail-url",
160
+ "reflect": false
161
+ },
144
162
  "type": {
145
163
  "type": "string",
146
164
  "mutable": false,
@@ -0,0 +1,52 @@
1
+ // DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
2
+ import { Fragment, h } from "@stencil/core";
3
+ import classnames from "classnames";
4
+ export class SwirlIconBookmark {
5
+ constructor() {
6
+ this.size = 24;
7
+ }
8
+ render() {
9
+ const viewBoxSize = this.size === 20 ? 24 : this.size;
10
+ const className = classnames("swirl-icon", `swirl-icon--size-${this.size}`);
11
+ return (h("svg", { class: className, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && (h(Fragment, null, h("path", { d: "M4.66666 11.9667L7.99999 10.5333L11.3333 11.9667V3.33333H4.66666V11.9667ZM4.26666 13.6C4.04444 13.6889 3.83333 13.6693 3.63333 13.5413C3.43333 13.4138 3.33333 13.2278 3.33333 12.9833V3.33333C3.33333 2.96667 3.46399 2.65267 3.72533 2.39133C3.98622 2.13044 4.29999 2 4.66666 2H11.3333C11.7 2 12.014 2.13044 12.2753 2.39133C12.5362 2.65267 12.6667 2.96667 12.6667 3.33333V12.9833C12.6667 13.2278 12.5667 13.4138 12.3667 13.5413C12.1667 13.6693 11.9556 13.6889 11.7333 13.6L7.99999 12L4.26666 13.6Z", fill: "currentColor" }))), (this.size === 20 || this.size === 24) && (h(Fragment, null, h("path", { d: "M7 17.95L12 15.8L17 17.95V5H7V17.95ZM6.4 20.4C6.06667 20.5333 5.75 20.504 5.45 20.312C5.15 20.1207 5 19.8417 5 19.475V5C5 4.45 5.196 3.979 5.588 3.587C5.97933 3.19567 6.45 3 7 3H17C17.55 3 18.021 3.19567 18.413 3.587C18.8043 3.979 19 4.45 19 5V19.475C19 19.8417 18.85 20.1207 18.55 20.312C18.25 20.504 17.9333 20.5333 17.6 20.4L12 18L6.4 20.4Z", fill: "currentColor" }))), this.size === 28 && (h(Fragment, null, h("path", { d: "M8.16666 20.9417L14 18.4333L19.8333 20.9417V5.83333H8.16666V20.9417ZM7.46666 23.8C7.07777 23.9556 6.70833 23.9213 6.35833 23.6973C6.00833 23.4741 5.83333 23.1486 5.83333 22.7208V5.83333C5.83333 5.19167 6.06199 4.64217 6.51933 4.18483C6.97588 3.72828 7.525 3.5 8.16666 3.5H19.8333C20.475 3.5 21.0245 3.72828 21.4818 4.18483C21.9384 4.64217 22.1667 5.19167 22.1667 5.83333V22.7208C22.1667 23.1486 21.9917 23.4741 21.6417 23.6973C21.2917 23.9213 20.9222 23.9556 20.5333 23.8L14 21L7.46666 23.8Z", fill: "currentColor" })))));
12
+ }
13
+ static get is() { return "swirl-icon-bookmark"; }
14
+ static get encapsulation() { return "shadow"; }
15
+ static get originalStyleUrls() {
16
+ return {
17
+ "$": ["../swirl-icon.css"]
18
+ };
19
+ }
20
+ static get styleUrls() {
21
+ return {
22
+ "$": ["../swirl-icon.css"]
23
+ };
24
+ }
25
+ static get properties() {
26
+ return {
27
+ "size": {
28
+ "type": "number",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "SwirlIconSize",
32
+ "resolved": "16 | 20 | 24 | 28",
33
+ "references": {
34
+ "SwirlIconSize": {
35
+ "location": "import",
36
+ "path": "../swirl-icon.types"
37
+ }
38
+ }
39
+ },
40
+ "required": false,
41
+ "optional": false,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": ""
45
+ },
46
+ "attribute": "size",
47
+ "reflect": false,
48
+ "defaultValue": "24"
49
+ }
50
+ };
51
+ }
52
+ }
@@ -0,0 +1,52 @@
1
+ // DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
2
+ import { Fragment, h } from "@stencil/core";
3
+ import classnames from "classnames";
4
+ export class SwirlIconDoubleArrowLeft {
5
+ constructor() {
6
+ this.size = 24;
7
+ }
8
+ render() {
9
+ const viewBoxSize = this.size === 20 ? 24 : this.size;
10
+ const className = classnames("swirl-icon", `swirl-icon--size-${this.size}`);
11
+ return (h("svg", { class: className, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && (h(Fragment, null, h("path", { d: "M10.9833 11.5378L7.91667 8.47112C7.85 8.40445 7.80289 8.33223 7.77534 8.25445C7.74734 8.17667 7.73334 8.09334 7.73334 8.00445C7.73334 7.91556 7.74734 7.83223 7.77534 7.75445C7.80289 7.67667 7.85 7.60445 7.91667 7.53778L10.9833 4.47112C11.1056 4.34889 11.2582 4.28489 11.4413 4.27912C11.6249 4.27378 11.7833 4.33778 11.9167 4.47112C12.0389 4.59334 12.1 4.74889 12.1 4.93778C12.1 5.12667 12.0389 5.28223 11.9167 5.40445L9.33334 8.00445L11.9167 10.6044C12.0389 10.7267 12.1027 10.8793 12.108 11.0624C12.1138 11.246 12.05 11.4044 11.9167 11.5378C11.7944 11.66 11.6389 11.7211 11.45 11.7211C11.2611 11.7211 11.1056 11.66 10.9833 11.5378ZM6.58334 11.5378L3.51667 8.47112C3.45 8.40445 3.40289 8.33223 3.37534 8.25445C3.34734 8.17667 3.33334 8.09334 3.33334 8.00445C3.33334 7.91556 3.34734 7.83223 3.37534 7.75445C3.40289 7.67667 3.45 7.60445 3.51667 7.53778L6.58334 4.47112C6.70556 4.34889 6.85845 4.28489 7.042 4.27912C7.22511 4.27378 7.38334 4.33778 7.51667 4.47112C7.63889 4.59334 7.7 4.74889 7.7 4.93778C7.7 5.12667 7.63889 5.28223 7.51667 5.40445L4.93334 8.00445L7.51667 10.6044C7.63889 10.7267 7.70289 10.8793 7.70867 11.0624C7.714 11.246 7.65 11.4044 7.51667 11.5378C7.39445 11.66 7.23889 11.7211 7.05 11.7211C6.86111 11.7211 6.70556 11.66 6.58334 11.5378Z", fill: "currentColor" }))), (this.size === 20 || this.size === 24) && (h(Fragment, null, h("path", { d: "M16.475 17.3067L11.875 12.7067C11.775 12.6067 11.7043 12.4983 11.663 12.3817C11.621 12.265 11.6 12.14 11.6 12.0067C11.6 11.8733 11.621 11.7483 11.663 11.6317C11.7043 11.515 11.775 11.4067 11.875 11.3067L16.475 6.70667C16.6583 6.52334 16.8873 6.42734 17.162 6.41867C17.4373 6.41067 17.675 6.50667 17.875 6.70667C18.0583 6.89001 18.15 7.12334 18.15 7.40667C18.15 7.69001 18.0583 7.92334 17.875 8.10667L14 12.0067L17.875 15.9067C18.0583 16.09 18.154 16.319 18.162 16.5937C18.1707 16.869 18.075 17.1067 17.875 17.3067C17.6917 17.49 17.4583 17.5817 17.175 17.5817C16.8917 17.5817 16.6583 17.49 16.475 17.3067ZM9.875 17.3067L5.275 12.7067C5.175 12.6067 5.10433 12.4983 5.063 12.3817C5.021 12.265 5 12.14 5 12.0067C5 11.8733 5.021 11.7483 5.063 11.6317C5.10433 11.515 5.175 11.4067 5.275 11.3067L9.875 6.70667C10.0583 6.52334 10.2877 6.42734 10.563 6.41867C10.8377 6.41067 11.075 6.50667 11.275 6.70667C11.4583 6.89001 11.55 7.12334 11.55 7.40667C11.55 7.69001 11.4583 7.92334 11.275 8.10667L7.4 12.0067L11.275 15.9067C11.4583 16.09 11.5543 16.319 11.563 16.5937C11.571 16.869 11.475 17.1067 11.275 17.3067C11.0917 17.49 10.8583 17.5817 10.575 17.5817C10.2917 17.5817 10.0583 17.49 9.875 17.3067Z", fill: "currentColor" }))), this.size === 28 && (h(Fragment, null, h("path", { d: "M19.2208 20.191L13.8542 14.8243C13.7375 14.7077 13.6551 14.5813 13.6068 14.4452C13.5578 14.3091 13.5333 14.1632 13.5333 14.0077C13.5333 13.8521 13.5578 13.7063 13.6068 13.5702C13.6551 13.4341 13.7375 13.3077 13.8542 13.191L19.2208 7.82433C19.4347 7.61044 19.7019 7.49844 20.0223 7.48833C20.3436 7.479 20.6208 7.591 20.8542 7.82433C21.0681 8.03822 21.175 8.31044 21.175 8.641C21.175 8.97155 21.0681 9.24378 20.8542 9.45766L16.3333 14.0077L20.8542 18.5577C21.0681 18.7716 21.1797 19.0387 21.189 19.3592C21.1991 19.6804 21.0875 19.9577 20.8542 20.191C20.6403 20.4049 20.3681 20.5118 20.0375 20.5118C19.7069 20.5118 19.4347 20.4049 19.2208 20.191ZM11.5208 20.191L6.15417 14.8243C6.0375 14.7077 5.95506 14.5813 5.90684 14.4452C5.85784 14.3091 5.83334 14.1632 5.83334 14.0077C5.83334 13.8521 5.85784 13.7063 5.90684 13.5702C5.95506 13.4341 6.0375 13.3077 6.15417 13.191L11.5208 7.82433C11.7347 7.61044 12.0023 7.49844 12.3235 7.48833C12.6439 7.479 12.9208 7.591 13.1542 7.82433C13.3681 8.03822 13.475 8.31044 13.475 8.641C13.475 8.97155 13.3681 9.24378 13.1542 9.45766L8.63334 14.0077L13.1542 18.5577C13.3681 18.7716 13.4801 19.0387 13.4902 19.3592C13.4995 19.6804 13.3875 19.9577 13.1542 20.191C12.9403 20.4049 12.6681 20.5118 12.3375 20.5118C12.0069 20.5118 11.7347 20.4049 11.5208 20.191Z", fill: "currentColor" })))));
12
+ }
13
+ static get is() { return "swirl-icon-double-arrow-left"; }
14
+ static get encapsulation() { return "shadow"; }
15
+ static get originalStyleUrls() {
16
+ return {
17
+ "$": ["../swirl-icon.css"]
18
+ };
19
+ }
20
+ static get styleUrls() {
21
+ return {
22
+ "$": ["../swirl-icon.css"]
23
+ };
24
+ }
25
+ static get properties() {
26
+ return {
27
+ "size": {
28
+ "type": "number",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "SwirlIconSize",
32
+ "resolved": "16 | 20 | 24 | 28",
33
+ "references": {
34
+ "SwirlIconSize": {
35
+ "location": "import",
36
+ "path": "../swirl-icon.types"
37
+ }
38
+ }
39
+ },
40
+ "required": false,
41
+ "optional": false,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": ""
45
+ },
46
+ "attribute": "size",
47
+ "reflect": false,
48
+ "defaultValue": "24"
49
+ }
50
+ };
51
+ }
52
+ }
@@ -0,0 +1,52 @@
1
+ // DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
2
+ import { Fragment, h } from "@stencil/core";
3
+ import classnames from "classnames";
4
+ export class SwirlIconDoubleArrowRight {
5
+ constructor() {
6
+ this.size = 24;
7
+ }
8
+ render() {
9
+ const viewBoxSize = this.size === 20 ? 24 : this.size;
10
+ const className = classnames("swirl-icon", `swirl-icon--size-${this.size}`);
11
+ return (h("svg", { class: className, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && (h(Fragment, null, h("path", { d: "M4.08503 11.5291C3.9628 11.4068 3.90169 11.2513 3.90169 11.0624C3.90169 10.8735 3.9628 10.7179 4.08503 10.5957L6.66836 7.99572L4.08503 5.39572C3.9628 5.2735 3.89903 5.12061 3.89369 4.93705C3.88792 4.75394 3.95169 4.59572 4.08503 4.46239C4.20725 4.34016 4.3628 4.27905 4.55169 4.27905C4.74058 4.27905 4.89614 4.34016 5.01836 4.46239L8.08503 7.52905C8.15169 7.59572 8.19903 7.66794 8.22703 7.74572C8.25458 7.8235 8.26836 7.90683 8.26836 7.99572C8.26836 8.08461 8.25458 8.16794 8.22703 8.24572C8.19903 8.3235 8.15169 8.39572 8.08503 8.46239L5.01836 11.5291C4.89614 11.6513 4.74325 11.7151 4.55969 11.7204C4.37658 11.7262 4.21836 11.6624 4.08503 11.5291ZM8.48503 11.5291C8.3628 11.4068 8.30169 11.2513 8.30169 11.0624C8.30169 10.8735 8.3628 10.7179 8.48503 10.5957L11.0684 7.99572L8.48503 5.39572C8.3628 5.2735 8.2988 5.12061 8.29303 4.93705C8.28769 4.75394 8.35169 4.59572 8.48503 4.46239C8.60725 4.34016 8.7628 4.27905 8.95169 4.27905C9.14058 4.27905 9.29614 4.34016 9.41836 4.46239L12.485 7.52905C12.5517 7.59572 12.5988 7.66794 12.6264 7.74572C12.6544 7.8235 12.6684 7.90683 12.6684 7.99572C12.6684 8.08461 12.6544 8.16794 12.6264 8.24572C12.5988 8.3235 12.5517 8.39572 12.485 8.46239L9.41836 11.5291C9.29614 11.6513 9.14347 11.7151 8.96036 11.7204C8.7768 11.7262 8.61836 11.6624 8.48503 11.5291Z", fill: "currentColor" }))), (this.size === 20 || this.size === 24) && (h(Fragment, null, h("path", { d: "M6.12754 17.2937C5.94421 17.1104 5.85254 16.877 5.85254 16.5937C5.85254 16.3104 5.94421 16.077 6.12754 15.8937L10.0025 11.9937L6.12754 8.0937C5.94421 7.91037 5.84854 7.68103 5.84054 7.4057C5.83187 7.13103 5.92754 6.8937 6.12754 6.6937C6.31087 6.51037 6.54421 6.4187 6.82754 6.4187C7.11087 6.4187 7.34421 6.51037 7.52754 6.6937L12.1275 11.2937C12.2275 11.3937 12.2985 11.502 12.3405 11.6187C12.3819 11.7354 12.4025 11.8604 12.4025 11.9937C12.4025 12.127 12.3819 12.252 12.3405 12.3687C12.2985 12.4854 12.2275 12.5937 12.1275 12.6937L7.52754 17.2937C7.34421 17.477 7.11487 17.5727 6.83954 17.5807C6.56487 17.5894 6.32754 17.4937 6.12754 17.2937ZM12.7275 17.2937C12.5442 17.1104 12.4525 16.877 12.4525 16.5937C12.4525 16.3104 12.5442 16.077 12.7275 15.8937L16.6025 11.9937L12.7275 8.0937C12.5442 7.91037 12.4482 7.68103 12.4395 7.4057C12.4315 7.13103 12.5275 6.8937 12.7275 6.6937C12.9109 6.51037 13.1442 6.4187 13.4275 6.4187C13.7109 6.4187 13.9442 6.51037 14.1275 6.6937L18.7275 11.2937C18.8275 11.3937 18.8982 11.502 18.9395 11.6187C18.9815 11.7354 19.0025 11.8604 19.0025 11.9937C19.0025 12.127 18.9815 12.252 18.9395 12.3687C18.8982 12.4854 18.8275 12.5937 18.7275 12.6937L14.1275 17.2937C13.9442 17.477 13.7152 17.5727 13.4405 17.5807C13.1652 17.5894 12.9275 17.4937 12.7275 17.2937Z", fill: "currentColor" }))), this.size === 28 && (h(Fragment, null, h("path", { d: "M7.14879 20.176C6.93491 19.9621 6.82796 19.6899 6.82796 19.3594C6.82796 19.0288 6.93491 18.7566 7.14879 18.5427L11.6696 13.9927L7.14879 9.44269C6.93491 9.2288 6.82329 8.96125 6.81396 8.64003C6.80385 8.31958 6.91546 8.04269 7.14879 7.80936C7.36268 7.59547 7.63491 7.48853 7.96546 7.48853C8.29602 7.48853 8.56824 7.59547 8.78213 7.80936L14.1488 13.176C14.2655 13.2927 14.3483 13.4191 14.3973 13.5552C14.4455 13.6913 14.4696 13.8371 14.4696 13.9927C14.4696 14.1482 14.4455 14.2941 14.3973 14.4302C14.3483 14.5663 14.2655 14.6927 14.1488 14.8094L8.78213 20.176C8.56824 20.3899 8.30068 20.5015 7.97946 20.5109C7.65902 20.521 7.38213 20.4094 7.14879 20.176ZM14.8488 20.176C14.6349 19.9621 14.528 19.6899 14.528 19.3594C14.528 19.0288 14.6349 18.7566 14.8488 18.5427L19.3696 13.9927L14.8488 9.44269C14.6349 9.2288 14.5229 8.96125 14.5128 8.64003C14.5035 8.31958 14.6155 8.04269 14.8488 7.80936C15.0627 7.59547 15.3349 7.48853 15.6655 7.48853C15.996 7.48853 16.2682 7.59547 16.4821 7.80936L21.8488 13.176C21.9655 13.2927 22.0479 13.4191 22.0961 13.5552C22.1451 13.6913 22.1696 13.8371 22.1696 13.9927C22.1696 14.1482 22.1451 14.2941 22.0961 14.4302C22.0479 14.5663 21.9655 14.6927 21.8488 14.8094L16.4821 20.176C16.2682 20.3899 16.0011 20.5015 15.6806 20.5109C15.3594 20.521 15.0821 20.4094 14.8488 20.176Z", fill: "currentColor" })))));
12
+ }
13
+ static get is() { return "swirl-icon-double-arrow-right"; }
14
+ static get encapsulation() { return "shadow"; }
15
+ static get originalStyleUrls() {
16
+ return {
17
+ "$": ["../swirl-icon.css"]
18
+ };
19
+ }
20
+ static get styleUrls() {
21
+ return {
22
+ "$": ["../swirl-icon.css"]
23
+ };
24
+ }
25
+ static get properties() {
26
+ return {
27
+ "size": {
28
+ "type": "number",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "SwirlIconSize",
32
+ "resolved": "16 | 20 | 24 | 28",
33
+ "references": {
34
+ "SwirlIconSize": {
35
+ "location": "import",
36
+ "path": "../swirl-icon.types"
37
+ }
38
+ }
39
+ },
40
+ "required": false,
41
+ "optional": false,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": ""
45
+ },
46
+ "attribute": "size",
47
+ "reflect": false,
48
+ "defaultValue": "24"
49
+ }
50
+ };
51
+ }
52
+ }
@@ -0,0 +1,52 @@
1
+ // DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
2
+ import { Fragment, h } from "@stencil/core";
3
+ import classnames from "classnames";
4
+ export class SwirlIconFolder {
5
+ constructor() {
6
+ this.size = 24;
7
+ }
8
+ render() {
9
+ const viewBoxSize = this.size === 20 ? 24 : this.size;
10
+ const className = classnames("swirl-icon", `swirl-icon--size-${this.size}`);
11
+ return (h("svg", { class: className, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && (h(Fragment, null, h("path", { d: "M2.66668 14.1482C2.30001 14.1482 1.98623 14.0177 1.72534 13.7568C1.46401 13.4955 1.33334 13.1815 1.33334 12.8148V4.81484C1.33334 4.44817 1.46401 4.1344 1.72534 3.87351C1.98623 3.61217 2.30001 3.48151 2.66668 3.48151H6.11668C6.29445 3.48151 6.46401 3.51484 6.62534 3.58151C6.78623 3.64817 6.92779 3.74262 7.05001 3.86484L8.00001 4.81484H13.3333C13.7 4.81484 14.014 4.94551 14.2753 5.20684C14.5362 5.46773 14.6667 5.78151 14.6667 6.14817V12.8148C14.6667 13.1815 14.5362 13.4955 14.2753 13.7568C14.014 14.0177 13.7 14.1482 13.3333 14.1482H2.66668Z", fill: "currentColor" }))), (this.size === 20 || this.size === 24) && (h(Fragment, null, h("path", { d: "M4 20C3.45 20 2.97933 19.8043 2.588 19.413C2.196 19.021 2 18.55 2 18V6C2 5.45 2.196 4.97933 2.588 4.588C2.97933 4.196 3.45 4 4 4H9.175C9.44167 4 9.696 4.05 9.938 4.15C10.1793 4.25 10.3917 4.39167 10.575 4.575L12 6H20C20.55 6 21.021 6.196 21.413 6.588C21.8043 6.97933 22 7.45 22 8V18C22 18.55 21.8043 19.021 21.413 19.413C21.021 19.8043 20.55 20 20 20H4Z", fill: "currentColor" }))), this.size === 28 && (h(Fragment, null, h("path", { d: "M4.66668 23.3334C4.02501 23.3334 3.4759 23.1051 3.01934 22.6485C2.56201 22.1912 2.33334 21.6417 2.33334 21V7.00002C2.33334 6.35835 2.56201 5.80924 3.01934 5.35269C3.4759 4.89535 4.02501 4.66669 4.66668 4.66669H10.7042C11.0153 4.66669 11.312 4.72502 11.5943 4.84169C11.8759 4.95835 12.1236 5.12363 12.3375 5.33752L14 7.00002H23.3333C23.975 7.00002 24.5245 7.22869 24.9818 7.68602C25.4384 8.14258 25.6667 8.69169 25.6667 9.33335V21C25.6667 21.6417 25.4384 22.1912 24.9818 22.6485C24.5245 23.1051 23.975 23.3334 23.3333 23.3334H4.66668Z", fill: "currentColor" })))));
12
+ }
13
+ static get is() { return "swirl-icon-folder"; }
14
+ static get encapsulation() { return "shadow"; }
15
+ static get originalStyleUrls() {
16
+ return {
17
+ "$": ["../swirl-icon.css"]
18
+ };
19
+ }
20
+ static get styleUrls() {
21
+ return {
22
+ "$": ["../swirl-icon.css"]
23
+ };
24
+ }
25
+ static get properties() {
26
+ return {
27
+ "size": {
28
+ "type": "number",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "SwirlIconSize",
32
+ "resolved": "16 | 20 | 24 | 28",
33
+ "references": {
34
+ "SwirlIconSize": {
35
+ "location": "import",
36
+ "path": "../swirl-icon.types"
37
+ }
38
+ }
39
+ },
40
+ "required": false,
41
+ "optional": false,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": ""
45
+ },
46
+ "attribute": "size",
47
+ "reflect": false,
48
+ "defaultValue": "24"
49
+ }
50
+ };
51
+ }
52
+ }
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  .lightbox__close-button,
96
- .lightbox__download-button,
96
+ .lightbox__menu-button,
97
97
  .lightbox__previous-slide-button,
98
98
  .lightbox__next-slide-button {
99
99
  display: inline-flex;
@@ -110,7 +110,7 @@
110
110
  pointer-events: auto;
111
111
  }
112
112
 
113
- .lightbox__close-button:disabled, .lightbox__download-button:disabled, .lightbox__previous-slide-button:disabled, .lightbox__next-slide-button:disabled {
113
+ .lightbox__close-button:disabled, .lightbox__menu-button:disabled, .lightbox__previous-slide-button:disabled, .lightbox__next-slide-button:disabled {
114
114
  pointer-events: none;
115
115
  opacity: 0;
116
116
  }
@@ -171,6 +171,35 @@
171
171
  }
172
172
  }
173
173
 
174
+ .lightbox__meta {
175
+ display: flex;
176
+ padding-top: var(--s-space-4);
177
+ padding-right: var(--s-space-16);
178
+ padding-bottom: var(--s-space-4);
179
+ padding-left: var(--s-space-16);
180
+ align-items: center;
181
+ gap: var(--s-space-12);
182
+ }
183
+
184
+ @media (min-width: 768px) {
185
+
186
+ .lightbox__meta {
187
+ max-width: 18rem
188
+ }
189
+ }
190
+
191
+ .lightbox__thumbnail {
192
+ display: inline-flex;
193
+ flex-shrink: 0;
194
+ }
195
+
196
+ .lightbox__file-info {
197
+ display: flex;
198
+ min-width: 0;
199
+ flex-grow: 1;
200
+ flex-direction: column;
201
+ }
202
+
174
203
  @-webkit-keyframes lightbox-fade-in {
175
204
  from {
176
205
  opacity: 0;
@@ -13,6 +13,7 @@ export class SwirlLightbox {
13
13
  this.onDownloadButtonClick = () => {
14
14
  var _a;
15
15
  (_a = this.slides[this.activeSlideIndex]) === null || _a === void 0 ? void 0 : _a.download();
16
+ this.menu.close();
16
17
  };
17
18
  this.onKeyDown = (event) => {
18
19
  if (event.code === "Escape") {
@@ -32,7 +33,7 @@ export class SwirlLightbox {
32
33
  this.activateSlide(Math.max(0, this.activeSlideIndex - 1));
33
34
  };
34
35
  this.registerSlides = () => {
35
- this.slides = Array.from(this.el.children);
36
+ this.slides = Array.from(this.el.children).filter((el) => el.tagName === "SWIRL-FILE-VIEWER");
36
37
  this.setSlideAttributes();
37
38
  this.updateMediaPlayers();
38
39
  };
@@ -88,8 +89,10 @@ export class SwirlLightbox {
88
89
  }
89
90
  };
90
91
  this.closeButtonLabel = "Close modal";
91
- this.downloadButtonLabel = "Download active slide content";
92
+ this.downloadButtonLabel = "Download";
92
93
  this.label = undefined;
94
+ this.menuLabel = "Slide options";
95
+ this.menuTriggerLabel = "Open slide menu";
93
96
  this.nextSlideButtonLabel = "Next slide";
94
97
  this.previousSlideButtonLabel = "Previous slide";
95
98
  this.activeSlideIndex = 0;
@@ -135,6 +138,8 @@ export class SwirlLightbox {
135
138
  * @param newActiveSlideIndex
136
139
  */
137
140
  async activateSlide(newActiveSlideIndex) {
141
+ var _a, _b;
142
+ (_b = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.close) === null || _b === void 0 ? void 0 : _b.call(_a);
138
143
  this.dragging = false;
139
144
  this.activeSlideIndex = newActiveSlideIndex;
140
145
  this.slides.forEach((slide, index) => {
@@ -179,6 +184,18 @@ export class SwirlLightbox {
179
184
  slide.style.transform = `translate3d(-${100 * this.activeSlideIndex}%, 0, 0)`;
180
185
  });
181
186
  }
187
+ getCurrentFileName() {
188
+ var _a, _b;
189
+ return (_b = (_a = this.slides[this.activeSlideIndex]) === null || _a === void 0 ? void 0 : _a.file) === null || _b === void 0 ? void 0 : _b.split("/").pop();
190
+ }
191
+ getCurrentFileType() {
192
+ var _a;
193
+ return (_a = this.slides[this.activeSlideIndex]) === null || _a === void 0 ? void 0 : _a.type;
194
+ }
195
+ getCurrentThumbnailUrl() {
196
+ var _a;
197
+ return (_a = this.slides[this.activeSlideIndex]) === null || _a === void 0 ? void 0 : _a.thumbnailUrl;
198
+ }
182
199
  lockBodyScroll() {
183
200
  disableBodyScroll(this.el);
184
201
  }
@@ -203,10 +220,13 @@ export class SwirlLightbox {
203
220
  }
204
221
  render() {
205
222
  const showPagination = this.slides.length > 1;
223
+ const currentFileName = this.getCurrentFileName();
224
+ const currentFileType = this.getCurrentFileType();
225
+ const currentThumbnailUrl = this.getCurrentThumbnailUrl();
206
226
  const className = classnames("lightbox", {
207
227
  "lightbox--closing": this.closing,
208
228
  });
209
- return (h(Host, null, h("section", { "aria-hidden": "true", "aria-label": this.label, class: className, id: "lightbox", onMouseDown: this.onPointerDown, onMouseMove: this.onPointerMove, onMouseOut: this.onPointerUp, onMouseUp: this.onPointerUp, onKeyDown: this.onKeyDown, onTouchEnd: this.onPointerUp, onTouchMove: this.onPointerMove, onTouchStart: this.onPointerDown, ref: (el) => (this.modalEl = el) }, h("div", { class: "lightbox__body", role: "document" }, h("header", { class: "lightbox__header" }, h("button", { "aria-label": this.closeButtonLabel, class: "lightbox__close-button", onClick: this.onCloseButtonClick }, h("swirl-icon-close", null)), h("button", { "aria-label": this.downloadButtonLabel, class: "lightbox__download-button", onClick: this.onDownloadButtonClick }, h("swirl-icon-download", null))), h("div", { "aria-roledescription": "carousel", class: "lightbox__content", role: "group" }, h("div", { "aria-atomic": "false", "aria-live": "polite", class: "lightbox__slides" }, h("slot", { onSlotchange: this.registerSlides }))), h("div", { class: "lightbox__controls" }, h("button", { "aria-label": this.previousSlideButtonLabel, class: "lightbox__previous-slide-button", disabled: this.activeSlideIndex === 0, onClick: this.onPreviousSlideClick }, h("swirl-icon-arrow-left", null)), h("button", { "aria-label": this.nextSlideButtonLabel, class: "lightbox__next-slide-button", disabled: this.activeSlideIndex === this.slides.length - 1, onClick: this.onNextSlideClick }, h("swirl-icon-arrow-right", null))), showPagination && (h("span", { class: "lightbox__pagination" }, h("span", { "aria-current": "page" }, this.activeSlideIndex + 1), " /", " ", this.slides.length))))));
229
+ return (h(Host, null, h("section", { "aria-hidden": "true", "aria-label": this.label, class: className, id: "lightbox", onMouseDown: this.onPointerDown, onMouseMove: this.onPointerMove, onMouseOut: this.onPointerUp, onMouseUp: this.onPointerUp, onKeyDown: this.onKeyDown, onTouchEnd: this.onPointerUp, onTouchMove: this.onPointerMove, onTouchStart: this.onPointerDown, ref: (el) => (this.modalEl = el) }, h("div", { class: "lightbox__body", role: "document" }, h("header", { class: "lightbox__header" }, h("button", { "aria-label": this.closeButtonLabel, class: "lightbox__close-button", onClick: this.onCloseButtonClick }, h("swirl-icon-close", null)), h("button", { "aria-label": this.menuTriggerLabel, class: "lightbox__menu-button", id: "slide-menu-trigger" }, h("swirl-icon-more-vertikal", null))), h("div", { "aria-roledescription": "carousel", class: "lightbox__content", role: "group" }, h("div", { "aria-atomic": "false", "aria-live": "polite", class: "lightbox__slides" }, h("slot", { onSlotchange: this.registerSlides }))), h("div", { class: "lightbox__controls" }, h("button", { "aria-label": this.previousSlideButtonLabel, class: "lightbox__previous-slide-button", disabled: this.activeSlideIndex === 0, onClick: this.onPreviousSlideClick }, h("swirl-icon-arrow-left", null)), h("button", { "aria-label": this.nextSlideButtonLabel, class: "lightbox__next-slide-button", disabled: this.activeSlideIndex === this.slides.length - 1, onClick: this.onNextSlideClick }, h("swirl-icon-arrow-right", null))), showPagination && (h("span", { class: "lightbox__pagination" }, h("span", { "aria-current": "page" }, this.activeSlideIndex + 1), " /", " ", this.slides.length))), h("swirl-popover", { animation: "scale-in-y", disableScrollLock: true, label: this.menuLabel, placement: "bottom-end", popoverId: "slide-menu", ref: (el) => (this.menu = el), trigger: "slide-menu-trigger" }, h("swirl-stack", null, h("div", { class: "lightbox__meta" }, currentThumbnailUrl && (h("div", { class: "lightbox__thumbnail" }, h("swirl-thumbnail", { alt: "", src: currentThumbnailUrl }))), h("div", { class: "lightbox__file-info" }, h("swirl-text", { truncate: true, weight: "semibold" }, currentFileName), h("swirl-text", { color: "subdued", size: "sm", truncate: true }, currentFileType))), h("swirl-separator", null), h("swirl-action-list", null, h("swirl-action-list-item", { icon: "<swirl-icon-download></swirl-icon-download>", label: this.downloadButtonLabel, onClick: this.onDownloadButtonClick }), h("slot", { name: "menu-items" })))))));
210
230
  }
211
231
  static get is() { return "swirl-lightbox"; }
212
232
  static get encapsulation() { return "shadow"; }
@@ -256,7 +276,7 @@ export class SwirlLightbox {
256
276
  },
257
277
  "attribute": "download-button-label",
258
278
  "reflect": false,
259
- "defaultValue": "\"Download active slide content\""
279
+ "defaultValue": "\"Download\""
260
280
  },
261
281
  "label": {
262
282
  "type": "string",
@@ -275,6 +295,42 @@ export class SwirlLightbox {
275
295
  "attribute": "label",
276
296
  "reflect": false
277
297
  },
298
+ "menuLabel": {
299
+ "type": "string",
300
+ "mutable": false,
301
+ "complexType": {
302
+ "original": "string",
303
+ "resolved": "string",
304
+ "references": {}
305
+ },
306
+ "required": false,
307
+ "optional": true,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": ""
311
+ },
312
+ "attribute": "menu-label",
313
+ "reflect": false,
314
+ "defaultValue": "\"Slide options\""
315
+ },
316
+ "menuTriggerLabel": {
317
+ "type": "string",
318
+ "mutable": false,
319
+ "complexType": {
320
+ "original": "string",
321
+ "resolved": "string",
322
+ "references": {}
323
+ },
324
+ "required": false,
325
+ "optional": true,
326
+ "docs": {
327
+ "tags": [],
328
+ "text": ""
329
+ },
330
+ "attribute": "menu-trigger-label",
331
+ "reflect": false,
332
+ "defaultValue": "\"Open slide menu\""
333
+ },
278
334
  "nextSlideButtonLabel": {
279
335
  "type": "string",
280
336
  "mutable": false,
@@ -29,10 +29,21 @@ const Template = (args) => {
29
29
  trigger.label = "Open lightbox";
30
30
  trigger.addEventListener("click", () => element.open());
31
31
  element.innerHTML = `
32
- <swirl-file-viewer description="Cute dog in a blanket." file="/sample.jpg" type="image/jpeg"></swirl-file-viewer>
33
- <swirl-file-viewer description="Another cute dog in a blanket." file="/sample-2.jpg" type="image/jpeg"></swirl-file-viewer>
34
- <swirl-file-viewer description="Black puppy." file="/sample-3.jpg" type="image/jpeg"></swirl-file-viewer>
32
+ <swirl-file-viewer description="Another cute dog in a blanket." file="/sample-2.jpg" thumbnail-url="/sample-2.jpg" type="image/jpeg"></swirl-file-viewer>
33
+ <swirl-file-viewer description="Cute dog in a blanket." file="/sample.jpg" thumbnail-url="/sample.jpg" type="image/jpeg"></swirl-file-viewer>
34
+ <swirl-file-viewer description="Black puppy." file="/sample-3.jpg" thumbnail-url="/sample-3.jpg" type="image/jpeg"></swirl-file-viewer>
35
35
  <swirl-file-viewer autoplay file="/sample.mp4" type="video/mp4"></swirl-file-viewer>
36
+
37
+ <swirl-action-list-item
38
+ icon="<swirl-icon-attachment></swirl-icon-attachment>"
39
+ label="Custom action 1"
40
+ slot="menu-items"
41
+ ></swirl-action-list-item>
42
+ <swirl-action-list-item
43
+ icon="<swirl-icon-cloud-upload></swirl-icon-cloud-upload>"
44
+ label="Custom action 2"
45
+ slot="menu-items"
46
+ ></swirl-action-list-item>
36
47
  `;
37
48
  container.append(trigger, element);
38
49
  return container;