@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
@@ -211,6 +211,36 @@
211
211
  cursor: default;
212
212
  }
213
213
 
214
+ .pdf-reader__meta {
215
+ display: flex;
216
+ padding-top: var(--s-space-4);
217
+ padding-right: var(--s-space-16);
218
+ padding-bottom: var(--s-space-4);
219
+ padding-left: var(--s-space-8);
220
+ align-items: center;
221
+ gap: var(--s-space-12);
222
+ }
223
+
224
+ @media (min-width: 768px) {
225
+
226
+ .pdf-reader__meta {
227
+ max-width: 18rem
228
+ }
229
+ }
230
+
231
+ .pdf-reader__thumbnail {
232
+ display: inline-flex;
233
+ flex-shrink: 0;
234
+ padding-left: var(--s-space-4);
235
+ }
236
+
237
+ .pdf-reader__file-info {
238
+ display: flex;
239
+ min-width: 0;
240
+ flex-grow: 1;
241
+ flex-direction: column;
242
+ }
243
+
214
244
  @-webkit-keyframes pdf-reader-fade-in {
215
245
  from {
216
246
  opacity: 0;
@@ -21,11 +21,13 @@ export class SwirlPdfReader {
21
21
  };
22
22
  this.onPrintButtonClick = () => {
23
23
  this.pdfViewer.print();
24
+ this.menu.close();
24
25
  };
25
26
  this.onDownloadButtonClick = async () => {
26
27
  this.downloading = true;
27
28
  await this.viewer.download();
28
29
  this.downloading = false;
30
+ this.menu.close();
29
31
  };
30
32
  this.onZoomInButtonClick = () => {
31
33
  const currentZoomStepIndex = this.zoomSteps.indexOf(+this.zoom);
@@ -52,7 +54,10 @@ export class SwirlPdfReader {
52
54
  this.closeButtonLabel = "Close PDF viewer";
53
55
  this.downloadButtonLabel = "Download PDF";
54
56
  this.file = undefined;
57
+ this.fileTypeLabel = "PDF Document";
55
58
  this.label = undefined;
59
+ this.menuLabel = "File menu";
60
+ this.menuTriggerLabel = "Open file menu";
56
61
  this.printButtonLabel = "Print PDF";
57
62
  this.zoomInButtonLabel = "Zoom in";
58
63
  this.zoomOutButtonLabel = "Zoom out";
@@ -125,9 +130,9 @@ export class SwirlPdfReader {
125
130
  const className = classnames("pdf-reader", {
126
131
  "pdf-reader--closing": this.closing,
127
132
  });
128
- return (h(Host, null, h("section", { "aria-hidden": "true", "aria-label": this.label, class: className, id: "pdf-reader", onKeyDown: this.onKeyDown, ref: (el) => (this.modalEl = el) }, h("div", { class: "pdf-reader__body", role: "document" }, h("header", { class: "pdf-reader__header" }, h("span", { class: "pdf-reader__header-left" }, h("swirl-button", { class: "pdf-reader__close-button", hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick }), h("span", { class: "pdf-reader__label" }, this.label)), h("span", { class: "pdf-reader__header-center" }, h("span", { class: "pdf-reader__zoom-button-container" }, h("swirl-button", { class: "pdf-reader__zoom-button", disabled: this.zoom === this.zoomSteps[0], hideLabel: true, icon: "<swirl-icon-remove></swirl-icon-remove>", label: this.zoomOutButtonLabel, onClick: this.onZoomOutButtonClick }), h("swirl-button", { class: "pdf-reader__zoom-button", disabled: this.zoom === this.zoomSteps[this.zoomSteps.length - 1], hideLabel: true, icon: "<swirl-icon-add></swirl-icon-add>", label: this.zoomInButtonLabel, onClick: this.onZoomInButtonClick })), h("span", { class: "pdf-reader__zoom-select-container" }, h("select", { "aria-label": this.zoomSelectLabel, class: "pdf-reader__zoom-select", name: "zoom-select", id: "zoom-select", onChange: this.onZoomChange }, h("option", { selected: this.zoom === "auto", value: "auto" }, this.autoZoomLabel), this.zoomSteps.map((zoom) => (h("option", { key: zoom, selected: this.zoom === zoom, value: zoom }, zoom * 100, "%")))), h("swirl-icon-expand-more", { class: "pdf-reader__zoom-select-icon" }))), h("span", { class: "pdf-reader__header-right" }, h("swirl-button", { class: "pdf-reader__print-button", hideLabel: true, icon: "<swirl-icon-print></swirl-icon-print>", label: this.printButtonLabel, onClick: this.onPrintButtonClick }), h("swirl-button", { class: "pdf-reader__download-button", disabled: this.downloading, hideLabel: true, icon: !this.downloading
133
+ return (h(Host, null, h("section", { "aria-hidden": "true", "aria-label": this.label, class: className, id: "pdf-reader", onKeyDown: this.onKeyDown, ref: (el) => (this.modalEl = el) }, h("div", { class: "pdf-reader__body", role: "document" }, h("header", { class: "pdf-reader__header" }, h("span", { class: "pdf-reader__header-left" }, h("swirl-button", { class: "pdf-reader__close-button", hideLabel: true, icon: "<swirl-icon-close></swirl-icon-close>", label: this.closeButtonLabel, onClick: this.onCloseButtonClick }), h("span", { class: "pdf-reader__label" }, this.label)), h("span", { class: "pdf-reader__header-center" }, h("span", { class: "pdf-reader__zoom-button-container" }, h("swirl-button", { class: "pdf-reader__zoom-button", disabled: this.zoom === this.zoomSteps[0], hideLabel: true, icon: "<swirl-icon-remove></swirl-icon-remove>", label: this.zoomOutButtonLabel, onClick: this.onZoomOutButtonClick }), h("swirl-button", { class: "pdf-reader__zoom-button", disabled: this.zoom === this.zoomSteps[this.zoomSteps.length - 1], hideLabel: true, icon: "<swirl-icon-add></swirl-icon-add>", label: this.zoomInButtonLabel, onClick: this.onZoomInButtonClick })), h("span", { class: "pdf-reader__zoom-select-container" }, h("select", { "aria-label": this.zoomSelectLabel, class: "pdf-reader__zoom-select", name: "zoom-select", id: "zoom-select", onChange: this.onZoomChange }, h("option", { selected: this.zoom === "auto", value: "auto" }, this.autoZoomLabel), this.zoomSteps.map((zoom) => (h("option", { key: zoom, selected: this.zoom === zoom, value: zoom }, zoom * 100, "%")))), h("swirl-icon-expand-more", { class: "pdf-reader__zoom-select-icon" }))), h("span", { class: "pdf-reader__header-right" }, h("swirl-button", { class: "pdf-reader__menu-button", hideLabel: true, icon: "<swirl-icon-more-vertikal></swirl-icon-more-vertikal>", id: "menu-trigger", label: this.menuTriggerLabel }))), h("div", { class: "pdf-reader__content" }, h("swirl-file-viewer", { active: this.active, file: this.file, onActivate: this.onActivate, ref: (el) => (this.viewer = el), type: "application/pdf", zoom: this.zoom }), h("div", { class: "pdf-reader__mobile-zoom-controls" }, h("button", { "aria-label": this.autoZoomLabel, class: "pdf-reader__mobile-zoom-button", onClick: this.onZoomAutoButtonClick, type: "button" }, this.zoom === "auto" ? (h("swirl-icon-fullscreen-exit", null)) : (h("swirl-icon-fullscreen", null))), h("button", { "aria-label": this.zoomInButtonLabel, class: "pdf-reader__mobile-zoom-button", disabled: this.zoom === this.zoomSteps[this.zoomSteps.length - 1], onClick: this.onZoomInButtonClick, type: "button" }, h("swirl-icon-add", null)), h("button", { "aria-label": this.zoomOutButtonLabel, class: "pdf-reader__mobile-zoom-button", disabled: this.zoom === this.zoomSteps[0], onClick: this.onZoomOutButtonClick, type: "button" }, h("swirl-icon-remove", null))))), h("swirl-popover", { animation: "scale-in-y", disableScrollLock: true, label: this.menuLabel, placement: "bottom-end", popoverId: "menu", ref: (el) => (this.menu = el), trigger: "menu-trigger" }, h("swirl-stack", null, h("div", { class: "pdf-reader__meta" }, h("div", { class: "pdf-reader__thumbnail" }, h("svg", { fill: "none", height: "36", viewBox: "0 0 24 36", width: "24" }, h("path", { d: "M7.01755 21.6V15.192H8.39455C8.64655 15.192 8.86855 15.225 9.06055 15.291C9.25255 15.357 9.42655 15.474 9.58255 15.642C9.73855 15.81 9.84655 16.008 9.90655 16.236C9.96655 16.458 9.99655 16.761 9.99655 17.145C9.99655 17.433 9.97855 17.676 9.94255 17.874C9.91255 18.072 9.84355 18.258 9.73555 18.432C9.60955 18.642 9.44155 18.807 9.23155 18.927C9.02155 19.041 8.74555 19.098 8.40355 19.098H7.93555V21.6H7.01755ZM7.93555 16.056V18.234H8.37655C8.56255 18.234 8.70655 18.207 8.80855 18.153C8.91055 18.099 8.98555 18.024 9.03355 17.928C9.08155 17.838 9.10855 17.727 9.11455 17.595C9.12655 17.463 9.13255 17.316 9.13255 17.154C9.13255 17.004 9.12955 16.863 9.12355 16.731C9.11755 16.593 9.09055 16.473 9.04255 16.371C8.99455 16.269 8.92255 16.191 8.82655 16.137C8.73055 16.083 8.59255 16.056 8.41255 16.056H7.93555Z", fill: "white" }), h("path", { d: "M10.6826 21.6V15.192H12.0416C12.5696 15.192 12.9686 15.336 13.2386 15.624C13.5146 15.912 13.6526 16.32 13.6526 16.848V19.845C13.6526 20.445 13.5056 20.889 13.2116 21.177C12.9236 21.459 12.5066 21.6 11.9606 21.6H10.6826ZM11.6006 16.056V20.736H12.0236C12.2816 20.736 12.4646 20.673 12.5726 20.547C12.6806 20.415 12.7346 20.211 12.7346 19.935V16.848C12.7346 16.596 12.6836 16.401 12.5816 16.263C12.4796 16.125 12.2936 16.056 12.0236 16.056H11.6006Z", fill: "white" }), h("path", { d: "M14.5146 21.6V15.192H17.2506V16.056H15.4326V18H17.0166V18.864H15.4326V21.6H14.5146Z", fill: "white" }), h("path", { d: "M3.59961 9.00001C3.59961 8.0059 4.4055 7.20001 5.39961 7.20001H14.854C15.3314 7.20001 15.7893 7.38965 16.1268 7.72722L19.8724 11.4728C20.21 11.8104 20.3996 12.2682 20.3996 12.7456V27C20.3996 27.9941 19.5937 28.8 18.5996 28.8H5.39961C4.4055 28.8 3.59961 27.9941 3.59961 27V9.00001Z", fill: "#FF574D" }), h("path", { d: "M15.5996 7.36166V10.2C15.5996 11.1941 16.4055 12 17.3996 12H20.2379C20.3237 12.1884 20.3768 12.3913 20.3937 12.6H17.3996C16.0785 12.6 15.0067 11.5325 14.9996 10.213L14.9996 7.20587C15.2083 7.2228 15.4112 7.27593 15.5996 7.36166Z", fill: "white" }), h("path", { d: "M7.01755 21.6V15.192H8.39455C8.64655 15.192 8.86855 15.225 9.06055 15.291C9.25255 15.357 9.42655 15.474 9.58255 15.642C9.73855 15.81 9.84655 16.008 9.90655 16.236C9.96655 16.458 9.99655 16.761 9.99655 17.145C9.99655 17.433 9.97855 17.676 9.94255 17.874C9.91255 18.072 9.84355 18.258 9.73555 18.432C9.60955 18.642 9.44155 18.807 9.23155 18.927C9.02155 19.041 8.74555 19.098 8.40355 19.098H7.93555V21.6H7.01755ZM7.93555 16.056V18.234H8.37655C8.56255 18.234 8.70655 18.207 8.80855 18.153C8.91055 18.099 8.98555 18.024 9.03355 17.928C9.08155 17.838 9.10855 17.727 9.11455 17.595C9.12655 17.463 9.13255 17.316 9.13255 17.154C9.13255 17.004 9.12955 16.863 9.12355 16.731C9.11755 16.593 9.09055 16.473 9.04255 16.371C8.99455 16.269 8.92255 16.191 8.82655 16.137C8.73055 16.083 8.59255 16.056 8.41255 16.056H7.93555Z", fill: "white" }), h("path", { d: "M10.6826 21.6V15.192H12.0416C12.5696 15.192 12.9686 15.336 13.2386 15.624C13.5146 15.912 13.6526 16.32 13.6526 16.848V19.845C13.6526 20.445 13.5056 20.889 13.2116 21.177C12.9236 21.459 12.5066 21.6 11.9606 21.6H10.6826ZM11.6006 16.056V20.736H12.0236C12.2816 20.736 12.4646 20.673 12.5726 20.547C12.6806 20.415 12.7346 20.211 12.7346 19.935V16.848C12.7346 16.596 12.6836 16.401 12.5816 16.263C12.4796 16.125 12.2936 16.056 12.0236 16.056H11.6006Z", fill: "white" }), h("path", { d: "M14.5146 21.6V15.192H17.2506V16.056H15.4326V18H17.0166V18.864H15.4326V21.6H14.5146Z", fill: "white" }))), h("div", { class: "pdf-reader__file-info" }, h("swirl-text", { truncate: true, weight: "semibold" }, this.label), h("swirl-text", { color: "subdued", size: "sm", truncate: true }, this.fileTypeLabel))), h("swirl-separator", null), h("swirl-action-list", null, h("swirl-action-list-item", { class: "pdf-reader__print-button", icon: "<swirl-icon-print></swirl-icon-print>", label: this.printButtonLabel, onClick: this.onPrintButtonClick }), h("swirl-action-list-item", { class: "pdf-reader__download-button", disabled: this.downloading, icon: !this.downloading
129
134
  ? "<swirl-icon-download></swirl-icon-download>"
130
- : '<swirl-spinner size="s"></swirl-spinner>', label: this.downloadButtonLabel, onClick: this.onDownloadButtonClick }))), h("div", { class: "pdf-reader__content" }, h("swirl-file-viewer", { active: this.active, file: this.file, onActivate: this.onActivate, ref: (el) => (this.viewer = el), type: "application/pdf", zoom: this.zoom }), h("div", { class: "pdf-reader__mobile-zoom-controls" }, h("button", { "aria-label": this.autoZoomLabel, class: "pdf-reader__mobile-zoom-button", onClick: this.onZoomAutoButtonClick, type: "button" }, this.zoom === "auto" ? (h("swirl-icon-fullscreen-exit", null)) : (h("swirl-icon-fullscreen", null))), h("button", { "aria-label": this.zoomInButtonLabel, class: "pdf-reader__mobile-zoom-button", disabled: this.zoom === this.zoomSteps[this.zoomSteps.length - 1], onClick: this.onZoomInButtonClick, type: "button" }, h("swirl-icon-add", null)), h("button", { "aria-label": this.zoomOutButtonLabel, class: "pdf-reader__mobile-zoom-button", disabled: this.zoom === this.zoomSteps[0], onClick: this.onZoomOutButtonClick, type: "button" }, h("swirl-icon-remove", null))))))));
135
+ : '<swirl-spinner size="xs"></swirl-spinner>', label: this.downloadButtonLabel, onClick: this.onDownloadButtonClick }), h("slot", { name: "menu-items" })))))));
131
136
  }
132
137
  static get is() { return "swirl-pdf-reader"; }
133
138
  static get encapsulation() { return "shadow"; }
@@ -214,6 +219,24 @@ export class SwirlPdfReader {
214
219
  "attribute": "file",
215
220
  "reflect": false
216
221
  },
222
+ "fileTypeLabel": {
223
+ "type": "string",
224
+ "mutable": false,
225
+ "complexType": {
226
+ "original": "string",
227
+ "resolved": "string",
228
+ "references": {}
229
+ },
230
+ "required": false,
231
+ "optional": true,
232
+ "docs": {
233
+ "tags": [],
234
+ "text": ""
235
+ },
236
+ "attribute": "file-type-label",
237
+ "reflect": false,
238
+ "defaultValue": "\"PDF Document\""
239
+ },
217
240
  "label": {
218
241
  "type": "string",
219
242
  "mutable": false,
@@ -231,6 +254,42 @@ export class SwirlPdfReader {
231
254
  "attribute": "label",
232
255
  "reflect": false
233
256
  },
257
+ "menuLabel": {
258
+ "type": "string",
259
+ "mutable": false,
260
+ "complexType": {
261
+ "original": "string",
262
+ "resolved": "string",
263
+ "references": {}
264
+ },
265
+ "required": false,
266
+ "optional": true,
267
+ "docs": {
268
+ "tags": [],
269
+ "text": ""
270
+ },
271
+ "attribute": "menu-label",
272
+ "reflect": false,
273
+ "defaultValue": "\"File menu\""
274
+ },
275
+ "menuTriggerLabel": {
276
+ "type": "string",
277
+ "mutable": false,
278
+ "complexType": {
279
+ "original": "string",
280
+ "resolved": "string",
281
+ "references": {}
282
+ },
283
+ "required": false,
284
+ "optional": true,
285
+ "docs": {
286
+ "tags": [],
287
+ "text": ""
288
+ },
289
+ "attribute": "menu-trigger-label",
290
+ "reflect": false,
291
+ "defaultValue": "\"Open file menu\""
292
+ },
234
293
  "printButtonLabel": {
235
294
  "type": "string",
236
295
  "mutable": false,
@@ -21,6 +21,13 @@ const Template = (args) => {
21
21
  const container = document.createElement("div");
22
22
  const trigger = document.createElement("swirl-button");
23
23
  const element = generateStoryElement("swirl-pdf-reader", args);
24
+ element.innerHTML = `
25
+ <swirl-action-list-item
26
+ icon="<swirl-icon-attachment></swirl-icon-attachment>"
27
+ label="Custom action"
28
+ slot="menu-items"
29
+ ></swirl-action-list-item>
30
+ `;
24
31
  trigger.label = "Open PDF reader";
25
32
  trigger.addEventListener("click", () => element.open());
26
33
  container.append(trigger, element);
@@ -29,5 +36,5 @@ const Template = (args) => {
29
36
  export const SwirlPdfReader = Template.bind({});
30
37
  SwirlPdfReader.args = {
31
38
  file: "/sample.pdf",
32
- label: "PDF Reader",
39
+ label: "sample.pdf",
33
40
  };
@@ -2,7 +2,7 @@ import { autoUpdate, computePosition, flip, offset, shift, } from "@floating-ui/
2
2
  import { h, Host, } from "@stencil/core";
3
3
  import { disableBodyScroll, enableBodyScroll } from "body-scroll-lock";
4
4
  import classnames from "classnames";
5
- import { isMobileViewport, querySelectorAllDeep } from "../../utils";
5
+ import { getActiveElement, isMobileViewport, querySelectorAllDeep, } from "../../utils";
6
6
  /**
7
7
  * @slot slot - The popover content.
8
8
  */
@@ -48,6 +48,7 @@ export class SwirlPopover {
48
48
  this.close();
49
49
  };
50
50
  this.animation = "scale-in-xy";
51
+ this.disableScrollLock = undefined;
51
52
  this.enableFlip = true;
52
53
  this.label = undefined;
53
54
  this.offset = 8;
@@ -65,14 +66,15 @@ export class SwirlPopover {
65
66
  this.updateTriggerAttributes();
66
67
  }
67
68
  disconnectedCallback() {
68
- enableBodyScroll(this.scrollContainer);
69
+ this.unlockBodyScroll();
69
70
  }
70
71
  onWindowFocusIn(event) {
71
72
  if (!this.active) {
72
73
  return;
73
74
  }
74
75
  const target = event.target;
75
- const popoverLostFocus = !this.el.contains(target);
76
+ const activeElement = getActiveElement();
77
+ const popoverLostFocus = !this.el.contains(target) && !this.el.contains(activeElement);
76
78
  if (popoverLostFocus) {
77
79
  this.close();
78
80
  }
@@ -197,12 +199,16 @@ export class SwirlPopover {
197
199
  }
198
200
  lockBodyScroll() {
199
201
  const mobile = isMobileViewport();
200
- if (!mobile) {
202
+ if (!mobile || this.disableScrollLock) {
201
203
  return;
202
204
  }
203
205
  disableBodyScroll(this.scrollContainer);
204
206
  }
205
207
  unlockBodyScroll() {
208
+ const mobile = isMobileViewport();
209
+ if (!mobile || this.disableScrollLock) {
210
+ return;
211
+ }
206
212
  enableBodyScroll(this.scrollContainer);
207
213
  }
208
214
  render() {
@@ -254,6 +260,23 @@ export class SwirlPopover {
254
260
  "reflect": false,
255
261
  "defaultValue": "\"scale-in-xy\""
256
262
  },
263
+ "disableScrollLock": {
264
+ "type": "boolean",
265
+ "mutable": false,
266
+ "complexType": {
267
+ "original": "boolean",
268
+ "resolved": "boolean",
269
+ "references": {}
270
+ },
271
+ "required": false,
272
+ "optional": true,
273
+ "docs": {
274
+ "tags": [],
275
+ "text": ""
276
+ },
277
+ "attribute": "disable-scroll-lock",
278
+ "reflect": false
279
+ },
257
280
  "enableFlip": {
258
281
  "type": "boolean",
259
282
  "mutable": false,
@@ -2,6 +2,9 @@ import { generateStoryElement } from "../../utils";
2
2
  import Docs from "./swirl-popover.mdx";
3
3
  export default {
4
4
  argTypes: {
5
+ disableScrollLock: {
6
+ description: "You should disable the scroll lock for popovers inside modals and dialogs.",
7
+ },
5
8
  offset: {
6
9
  description: "Pass a number to specify the main axis offset. Use an array to provide the main axis and cross axis offsets.",
7
10
  control: {
@@ -1,5 +1,6 @@
1
1
  :host {
2
2
  display: flex;
3
+ width: 100%;
3
4
  padding-top: var(--s-space-8);
4
5
  padding-bottom: var(--s-space-8);
5
6
  align-items: center;
@@ -0,0 +1,233 @@
1
+ :host {
2
+ --extended-sidebar-width: 17.5rem;
3
+ --collapsed-sidebar-width: 4rem;
4
+ display: flex;
5
+ width: 100%;
6
+ height: 100%;
7
+ }
8
+
9
+ :host * {
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ .shell-layout {
14
+ display: flex;
15
+ width: 100%;
16
+ min-height: 100%;
17
+ background-color: var(--s-border-default);
18
+ gap: var(--s-border-width-default);
19
+ }
20
+
21
+ @media (min-width: 992px) {
22
+ .shell-layout--collapsed-sidebar:not(.shell-layout--collapsing) .shell-layout__sidebar-wrapper.shell-layout__sidebar-wrapper--hovered .shell-layout__sidebar, .shell-layout--collapsed-sidebar:not(.shell-layout--collapsing) .shell-layout__sidebar-wrapper:focus-within .shell-layout__sidebar {
23
+ width: var(--extended-sidebar-width);
24
+ box-shadow: 0 0.75rem 2rem rgba(25, 26, 28, 0.12),
25
+ 0 0.25rem 0.75rem rgba(25, 26, 28, 0.08);
26
+ }
27
+ }
28
+
29
+ .shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper {
30
+ min-height: 100%;
31
+ transform: translate3d(-100%, 0, 0);
32
+ }
33
+
34
+ .shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper .shell-layout__sidebar {
35
+ width: 100%;
36
+ box-shadow: none;
37
+ }
38
+
39
+ @media (min-width: 992px) {
40
+
41
+ .shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper {
42
+ max-width: var(--collapsed-sidebar-width);
43
+ flex-basis: var(--collapsed-sidebar-width);
44
+ transform: none
45
+ }
46
+ .shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__sidebar {
47
+ box-shadow: none;
48
+ }
49
+
50
+ .shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__collapsed-logo {
51
+ display: block;
52
+ }
53
+
54
+ .shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__expanded-logo {
55
+ display: none;
56
+ }
57
+
58
+ .shell-layout--collapsed-sidebar .shell-layout__sidebar-wrapper:not(.shell-layout__sidebar-wrapper--hovered):not(:focus-within) .shell-layout__toggle {
59
+ display: none;
60
+ }
61
+ }
62
+
63
+ .shell-layout__sidebar-wrapper {
64
+ position: absolute;
65
+ z-index: 2;
66
+ top: 0;
67
+ bottom: 0;
68
+ left: 0;
69
+ width: 100%;
70
+ max-width: var(--extended-sidebar-width);
71
+ flex-basis: var(--extended-sidebar-width);
72
+ flex-shrink: 0;
73
+ transition: max-width 0.2s, transform 0.2s;
74
+ }
75
+
76
+ @media (min-width: 992px) {
77
+
78
+ .shell-layout__sidebar-wrapper {
79
+ position: relative;
80
+ inset: auto
81
+ }
82
+ }
83
+
84
+ .shell-layout__sidebar {
85
+ display: flex;
86
+ width: var(--extended-sidebar-width);
87
+ height: 100%;
88
+ border-right: var(--s-border-width-default) solid var(--s-border-default);
89
+ background-color: var(--s-border-default);
90
+ flex-direction: column;
91
+ transition: box-shadow 0.2s, width 0.2s;
92
+ box-shadow: 0 0.75rem 2rem rgba(25, 26, 28, 0.12),
93
+ 0 0.25rem 0.75rem rgba(25, 26, 28, 0.08);
94
+ gap: var(--s-border-width-default);
95
+ }
96
+
97
+ @media (min-width: 992px) {
98
+
99
+ .shell-layout__sidebar {
100
+ border-right: none;
101
+ box-shadow: none
102
+ }
103
+ }
104
+
105
+ .shell-layout__header {
106
+ padding: var(--s-space-8);
107
+ flex-shrink: 0;
108
+ background-color: var(--s-background-default);
109
+ }
110
+
111
+ .shell-layout__logo-bar {
112
+ display: flex;
113
+ overflow: hidden;
114
+ align-items: center;
115
+ }
116
+
117
+ .shell-layout__expanded-logo {
118
+ padding-top: var(--s-space-8);
119
+ padding-right: calc(var(--s-space-12) + var(--s-space-2));
120
+ padding-bottom: var(--s-space-8);
121
+ padding-left: calc(var(--s-space-12) + var(--s-space-2));
122
+ flex-grow: 1;
123
+ }
124
+
125
+ .shell-layout__collapsed-logo {
126
+ display: none;
127
+ padding-top: var(--s-space-8);
128
+ padding-right: calc(var(--s-space-12) + var(--s-space-2));
129
+ padding-bottom: var(--s-space-8);
130
+ padding-left: calc(var(--s-space-12) + var(--s-space-2));
131
+ flex-grow: 1;
132
+ }
133
+
134
+ .shell-layout__toggle {
135
+ padding-right: var(--s-space-8);
136
+ padding-left: var(--s-space-12);
137
+ flex-grow: 0;
138
+ flex-shrink: 0;
139
+ }
140
+
141
+ .shell-layout__mobile-toggle {
142
+ position: absolute;
143
+ z-index: 2;
144
+ top: var(--s-space-12);
145
+ left: calc(100% + var(--s-space-16));
146
+ }
147
+
148
+ @media (min-width: 992px) {
149
+
150
+ .shell-layout__mobile-toggle {
151
+ display: none
152
+ }
153
+ }
154
+
155
+ .shell-layout__tools {
156
+ margin-top: var(--s-space-4);
157
+ flex-basis: 100%;
158
+ flex-shrink: 0;
159
+ }
160
+
161
+ .shell-layout__main-navigation {
162
+ overflow: auto;
163
+ padding: var(--s-space-8);
164
+ flex-grow: 1;
165
+ background-color: var(--s-background-default);
166
+ }
167
+
168
+ .shell-layout__main {
169
+ flex-grow: 1;
170
+ background-color: var(--s-background-default);
171
+ }
172
+
173
+ .shell-layout__main > *,
174
+ .shell-layout__main ::slotted(*) {
175
+ height: 100%;
176
+ }
177
+
178
+ .shell-layout__backdrop {
179
+ position: fixed;
180
+ z-index: 1;
181
+ background-color: rgba(0, 0, 0, 0.4);
182
+ -webkit-animation: shell-layout-backdrop-fade-in 0.1s;
183
+ animation: shell-layout-backdrop-fade-in 0.1s;
184
+ inset: 0;
185
+ }
186
+
187
+ @media (min-width: 992px) {
188
+
189
+ .shell-layout__backdrop {
190
+ display: none
191
+ }
192
+ }
193
+
194
+ .shell-layout__backdrop--fading {
195
+ -webkit-animation: shell-layout-backdrop-fade-out 0.2s;
196
+ animation: shell-layout-backdrop-fade-out 0.2s;
197
+ }
198
+
199
+ @-webkit-keyframes shell-layout-backdrop-fade-in {
200
+ from {
201
+ opacity: 0;
202
+ }
203
+ to {
204
+ opacity: 1;
205
+ }
206
+ }
207
+
208
+ @keyframes shell-layout-backdrop-fade-in {
209
+ from {
210
+ opacity: 0;
211
+ }
212
+ to {
213
+ opacity: 1;
214
+ }
215
+ }
216
+
217
+ @-webkit-keyframes shell-layout-backdrop-fade-out {
218
+ from {
219
+ opacity: 1;
220
+ }
221
+ to {
222
+ opacity: 0;
223
+ }
224
+ }
225
+
226
+ @keyframes shell-layout-backdrop-fade-out {
227
+ from {
228
+ opacity: 1;
229
+ }
230
+ to {
231
+ opacity: 0;
232
+ }
233
+ }