@brandsync/wc 1.16.0 → 1.17.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 (451) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/REFERENCE.md +231 -0
  3. package/custom-elements.json +3902 -1547
  4. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  5. package/dist/brandsync-wc/{p-0228a584.entry.js → p-044ac86c.entry.js} +1 -1
  6. package/dist/brandsync-wc/p-065c7e7c.entry.js +1 -0
  7. package/dist/brandsync-wc/{p-e9afb553.entry.js → p-07673a48.entry.js} +1 -1
  8. package/dist/brandsync-wc/{p-54f9529f.entry.js → p-08e96f13.entry.js} +1 -1
  9. package/dist/brandsync-wc/{p-f3cc961b.entry.js → p-0bbaef51.entry.js} +1 -1
  10. package/dist/brandsync-wc/p-11d80e17.entry.js +1 -0
  11. package/dist/brandsync-wc/{p-c85fe37b.entry.js → p-1bd99669.entry.js} +1 -1
  12. package/dist/brandsync-wc/{p-f4d1d56e.entry.js → p-225148be.entry.js} +1 -1
  13. package/dist/brandsync-wc/{p-15f4c343.entry.js → p-2bd30709.entry.js} +1 -1
  14. package/dist/brandsync-wc/{p-76748795.entry.js → p-32297416.entry.js} +1 -1
  15. package/dist/brandsync-wc/{p-d165a742.entry.js → p-35f76ea7.entry.js} +1 -1
  16. package/dist/brandsync-wc/{p-4ca40386.entry.js → p-3bad5e1b.entry.js} +1 -1
  17. package/dist/brandsync-wc/{p-ed71eb02.entry.js → p-3bdeeb9d.entry.js} +1 -1
  18. package/dist/brandsync-wc/{p-67629178.entry.js → p-3c6ec5d0.entry.js} +1 -1
  19. package/dist/brandsync-wc/{p-abfa43f5.entry.js → p-3cb79512.entry.js} +1 -1
  20. package/dist/brandsync-wc/p-3d2c62a6.entry.js +1 -0
  21. package/dist/brandsync-wc/{p-23379d7c.entry.js → p-3d7b0708.entry.js} +1 -1
  22. package/dist/brandsync-wc/{p-2e285364.entry.js → p-43d5f708.entry.js} +1 -1
  23. package/dist/brandsync-wc/{p-d81c4f58.entry.js → p-4b460eda.entry.js} +1 -1
  24. package/dist/brandsync-wc/{p-b6081bba.entry.js → p-4eaa9ed4.entry.js} +1 -1
  25. package/dist/brandsync-wc/{p-c25553bc.entry.js → p-4f4c0c68.entry.js} +1 -1
  26. package/dist/brandsync-wc/{p-a56bc608.entry.js → p-5057e4fe.entry.js} +1 -1
  27. package/dist/brandsync-wc/p-54d91ac9.entry.js +1 -0
  28. package/dist/brandsync-wc/{p-65fa1b21.entry.js → p-57ff14ca.entry.js} +1 -1
  29. package/dist/brandsync-wc/{p-538d5b58.entry.js → p-5b933ff4.entry.js} +1 -1
  30. package/dist/brandsync-wc/{p-b67a0c8f.entry.js → p-5c61eb06.entry.js} +1 -1
  31. package/dist/brandsync-wc/{p-86774165.entry.js → p-5eb5795f.entry.js} +1 -1
  32. package/dist/brandsync-wc/{p-b663ee67.entry.js → p-61deb48c.entry.js} +1 -1
  33. package/dist/brandsync-wc/{p-cc4c8c1d.entry.js → p-67f125e8.entry.js} +1 -1
  34. package/dist/brandsync-wc/{p-3488c4fc.entry.js → p-6ea02b98.entry.js} +1 -1
  35. package/dist/brandsync-wc/p-70c650b2.entry.js +1 -0
  36. package/dist/brandsync-wc/{p-949a4270.entry.js → p-79fc849c.entry.js} +1 -1
  37. package/dist/brandsync-wc/{p-5a45ef51.entry.js → p-7ed071fb.entry.js} +1 -1
  38. package/dist/brandsync-wc/{p-298158da.entry.js → p-8134f97c.entry.js} +1 -1
  39. package/dist/brandsync-wc/{p-4ed00786.entry.js → p-844205d9.entry.js} +1 -1
  40. package/dist/brandsync-wc/p-84d6d6eb.entry.js +1 -0
  41. package/dist/brandsync-wc/{p-401b3d3d.entry.js → p-857987f9.entry.js} +1 -1
  42. package/dist/brandsync-wc/{p-b9c9bcba.entry.js → p-8c4dfccb.entry.js} +1 -1
  43. package/dist/brandsync-wc/{p-38ac9aad.entry.js → p-90ba3032.entry.js} +1 -1
  44. package/dist/brandsync-wc/{p-1ca8b01e.entry.js → p-9396c67e.entry.js} +1 -1
  45. package/dist/brandsync-wc/{p-e9b6b30f.entry.js → p-9d740928.entry.js} +1 -1
  46. package/dist/brandsync-wc/{p-baa3d37a.entry.js → p-a7fa839a.entry.js} +1 -1
  47. package/dist/brandsync-wc/{p-f271e1d2.entry.js → p-a7fb0b59.entry.js} +1 -1
  48. package/dist/brandsync-wc/{p-89ea6366.entry.js → p-ab14a07d.entry.js} +1 -1
  49. package/dist/brandsync-wc/{p-912629c6.entry.js → p-aec2dfeb.entry.js} +1 -1
  50. package/dist/brandsync-wc/{p-8390a155.entry.js → p-b02bf1ca.entry.js} +1 -1
  51. package/dist/brandsync-wc/{p-9beeb30c.entry.js → p-b142d8c9.entry.js} +1 -1
  52. package/dist/brandsync-wc/{p-a12691d8.entry.js → p-b4511ad3.entry.js} +1 -1
  53. package/dist/brandsync-wc/{p-5ed1f45e.entry.js → p-b5710db6.entry.js} +1 -1
  54. package/dist/brandsync-wc/{p-34b0c048.entry.js → p-baa39c08.entry.js} +1 -1
  55. package/dist/brandsync-wc/{p-0159f0da.entry.js → p-be7aac52.entry.js} +1 -1
  56. package/dist/brandsync-wc/p-c835afb7.entry.js +1 -0
  57. package/dist/brandsync-wc/{p-45986ad4.entry.js → p-d25adab2.entry.js} +1 -1
  58. package/dist/brandsync-wc/p-d2a15599.entry.js +1 -0
  59. package/dist/brandsync-wc/{p-521d0fc2.entry.js → p-d7956c51.entry.js} +1 -1
  60. package/dist/brandsync-wc/p-d9184940.entry.js +1 -0
  61. package/dist/brandsync-wc/{p-0f97fe35.entry.js → p-dcbeb143.entry.js} +1 -1
  62. package/dist/brandsync-wc/{p-cf287ff1.entry.js → p-debc83cc.entry.js} +1 -1
  63. package/dist/brandsync-wc/{p-dcacee29.entry.js → p-e0a9f2d1.entry.js} +1 -1
  64. package/dist/brandsync-wc/p-e123b391.entry.js +1 -0
  65. package/dist/brandsync-wc/{p-7dc59e0b.entry.js → p-e8ae626d.entry.js} +1 -1
  66. package/dist/brandsync-wc/p-e8e22238.entry.js +1 -0
  67. package/dist/brandsync-wc/{p-6cb21302.entry.js → p-eb0dc5bf.entry.js} +1 -1
  68. package/dist/brandsync-wc/{p-38fe9d07.entry.js → p-f43a7f16.entry.js} +1 -1
  69. package/dist/brandsync-wc/{p-7b3518b8.entry.js → p-f82a9f0d.entry.js} +1 -1
  70. package/dist/brandsync-wc/{p-f0be9125.entry.js → p-f98dfa85.entry.js} +1 -1
  71. package/dist/brandsync-wc/{p-36fe783a.entry.js → p-fdc168ec.entry.js} +1 -1
  72. package/dist/brandsync-wc/{p-42b79d95.entry.js → p-ffccc1ee.entry.js} +1 -1
  73. package/dist/cjs/brandsync-wc.cjs.js +1 -1
  74. package/dist/cjs/bs-accordion-group.cjs.entry.js +1 -1
  75. package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +1 -1
  76. package/dist/cjs/bs-ai-greeting.cjs.entry.js +1 -1
  77. package/dist/cjs/bs-ai-thinking.cjs.entry.js +1 -1
  78. package/dist/cjs/bs-app-shell.cjs.entry.js +1 -1
  79. package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
  80. package/dist/cjs/bs-breadcrumbs.cjs.entry.js +1 -1
  81. package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
  82. package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +1 -1
  83. package/dist/cjs/bs-chatbot-header.cjs.entry.js +1 -1
  84. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +1 -1
  85. package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +1 -1
  86. package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +1 -1
  87. package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +1 -1
  88. package/dist/cjs/bs-citation-preview.cjs.entry.js +1 -1
  89. package/dist/cjs/bs-command-palette.cjs.entry.js +374 -0
  90. package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
  91. package/dist/cjs/bs-composer.cjs.entry.js +1 -1
  92. package/dist/cjs/bs-container.cjs.entry.js +1 -1
  93. package/dist/cjs/bs-data-table.cjs.entry.js +2 -2
  94. package/dist/cjs/bs-datepicker.cjs.entry.js +1 -1
  95. package/dist/cjs/bs-divider.cjs.entry.js +1 -1
  96. package/dist/cjs/bs-empty-state.cjs.entry.js +47 -0
  97. package/dist/cjs/bs-error-page.cjs.entry.js +1 -1
  98. package/dist/cjs/bs-file-upload-item.cjs.entry.js +1 -1
  99. package/dist/cjs/bs-file-upload.cjs.entry.js +1 -1
  100. package/dist/cjs/bs-global-search.cjs.entry.js +326 -0
  101. package/dist/cjs/bs-grid.cjs.entry.js +2 -2
  102. package/dist/cjs/bs-icon-button.cjs.entry.js +1 -1
  103. package/dist/cjs/bs-icon-tile.cjs.entry.js +2 -2
  104. package/dist/cjs/bs-inline-tab.cjs.entry.js +1 -1
  105. package/dist/cjs/bs-input_3.cjs.entry.js +4 -4
  106. package/dist/cjs/bs-key-caps.cjs.entry.js +39 -0
  107. package/dist/cjs/bs-key.cjs.entry.js +28 -0
  108. package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +112 -0
  109. package/dist/cjs/bs-list-item.cjs.entry.js +1 -1
  110. package/dist/cjs/bs-list.cjs.entry.js +1 -1
  111. package/dist/cjs/bs-message-list.cjs.entry.js +1 -1
  112. package/dist/cjs/bs-message.cjs.entry.js +1 -1
  113. package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +1 -1
  114. package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
  115. package/dist/cjs/bs-navigation-header.cjs.entry.js +1 -1
  116. package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
  117. package/dist/cjs/bs-popover.cjs.entry.js +1 -1
  118. package/dist/cjs/bs-progress-linear.cjs.entry.js +2 -2
  119. package/dist/cjs/bs-progress.cjs.entry.js +2 -2
  120. package/dist/cjs/bs-qr-code.cjs.entry.js +1 -1
  121. package/dist/cjs/bs-radio.cjs.entry.js +1 -1
  122. package/dist/cjs/bs-search-item.cjs.entry.js +47 -0
  123. package/dist/cjs/bs-session-timeout.cjs.entry.js +1 -1
  124. package/dist/cjs/bs-shortcut-row.cjs.entry.js +27 -0
  125. package/dist/cjs/bs-skeleton.cjs.entry.js +1 -1
  126. package/dist/cjs/bs-slider.cjs.entry.js +1 -1
  127. package/dist/cjs/bs-snackbar.cjs.entry.js +1 -1
  128. package/dist/cjs/bs-source-link.cjs.entry.js +2 -2
  129. package/dist/cjs/bs-spinner.cjs.entry.js +1 -1
  130. package/dist/cjs/bs-split-pane.cjs.entry.js +1 -1
  131. package/dist/cjs/bs-stack.cjs.entry.js +1 -1
  132. package/dist/cjs/bs-stepper-step.cjs.entry.js +1 -1
  133. package/dist/cjs/bs-stepper.cjs.entry.js +1 -1
  134. package/dist/cjs/bs-switch.cjs.entry.js +1 -1
  135. package/dist/cjs/bs-tab_3.cjs.entry.js +3 -3
  136. package/dist/cjs/bs-timepicker.cjs.entry.js +2 -2
  137. package/dist/cjs/bs-toast.cjs.entry.js +1 -1
  138. package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +1 -1
  139. package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
  140. package/dist/cjs/bs-tree-item.cjs.entry.js +2 -2
  141. package/dist/cjs/bs-tree.cjs.entry.js +1 -1
  142. package/dist/cjs/loader.cjs.js +1 -1
  143. package/dist/collection/collection-manifest.json +9 -1
  144. package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +1 -1
  145. package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
  146. package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
  147. package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
  148. package/dist/collection/components/bs-app-shell/bs-app-shell.js +1 -1
  149. package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
  150. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
  151. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
  152. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
  153. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
  154. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
  155. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
  156. package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
  157. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
  158. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
  159. package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +1 -1
  160. package/dist/collection/components/bs-command-palette/bs-command-palette.cmp.test.js +207 -0
  161. package/dist/collection/components/bs-command-palette/bs-command-palette.css +214 -0
  162. package/dist/collection/components/bs-command-palette/bs-command-palette.js +1114 -0
  163. package/dist/collection/components/bs-command-palette/bs-command-palette.stories.js +194 -0
  164. package/dist/collection/components/bs-composer/bs-composer.js +1 -1
  165. package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
  166. package/dist/collection/components/bs-container/bs-container.js +1 -1
  167. package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
  168. package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
  169. package/dist/collection/components/bs-divider/bs-divider.js +1 -1
  170. package/dist/collection/components/bs-empty-state/bs-empty-state.cmp.test.js +102 -0
  171. package/dist/collection/components/bs-empty-state/bs-empty-state.css +45 -0
  172. package/dist/collection/components/bs-empty-state/bs-empty-state.js +175 -0
  173. package/dist/collection/components/bs-empty-state/bs-empty-state.stories.js +52 -0
  174. package/dist/collection/components/bs-error-page/bs-error-page.js +1 -1
  175. package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
  176. package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
  177. package/dist/collection/components/bs-global-search/bs-global-search.cmp.test.js +491 -0
  178. package/dist/collection/components/bs-global-search/bs-global-search.css +115 -0
  179. package/dist/collection/components/bs-global-search/bs-global-search.js +1024 -0
  180. package/dist/collection/components/bs-global-search/bs-global-search.stories.js +146 -0
  181. package/dist/collection/components/bs-grid/bs-grid.js +2 -2
  182. package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -2
  183. package/dist/collection/components/bs-input/bs-input.js +2 -2
  184. package/dist/collection/components/bs-key/bs-key.cmp.test.js +59 -0
  185. package/dist/collection/components/bs-key/bs-key.css +58 -0
  186. package/dist/collection/components/bs-key/bs-key.js +84 -0
  187. package/dist/collection/components/bs-key/bs-key.stories.js +19 -0
  188. package/dist/collection/components/bs-key-caps/bs-key-caps.cmp.test.js +60 -0
  189. package/dist/collection/components/bs-key-caps/bs-key-caps.css +28 -0
  190. package/dist/collection/components/bs-key-caps/bs-key-caps.js +120 -0
  191. package/dist/collection/components/bs-key-caps/bs-key-caps.stories.js +29 -0
  192. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.cmp.test.js +194 -0
  193. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.css +138 -0
  194. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.js +485 -0
  195. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.stories.js +111 -0
  196. package/dist/collection/components/bs-list/bs-list.js +1 -1
  197. package/dist/collection/components/bs-list-item/bs-list-item.js +1 -1
  198. package/dist/collection/components/bs-menu/bs-menu.js +1 -1
  199. package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
  200. package/dist/collection/components/bs-message/bs-message.js +1 -1
  201. package/dist/collection/components/bs-message-list/bs-message-list.js +1 -1
  202. package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
  203. package/dist/collection/components/bs-popover/bs-popover.js +1 -1
  204. package/dist/collection/components/bs-progress/bs-progress.js +2 -2
  205. package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
  206. package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
  207. package/dist/collection/components/bs-radio/bs-radio.js +1 -1
  208. package/dist/collection/components/bs-search-item/bs-search-item.cmp.test.js +147 -0
  209. package/dist/collection/components/bs-search-item/bs-search-item.css +112 -0
  210. package/dist/collection/components/bs-search-item/bs-search-item.js +222 -0
  211. package/dist/collection/components/bs-search-item/bs-search-item.stories.js +31 -0
  212. package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
  213. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.cmp.test.js +60 -0
  214. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.css +42 -0
  215. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.js +154 -0
  216. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.stories.js +24 -0
  217. package/dist/collection/components/bs-skeleton/bs-skeleton.js +1 -1
  218. package/dist/collection/components/bs-slider/bs-slider.js +1 -1
  219. package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
  220. package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
  221. package/dist/collection/components/bs-spinner/bs-spinner.js +1 -1
  222. package/dist/collection/components/bs-split-pane/bs-split-pane.js +1 -1
  223. package/dist/collection/components/bs-stack/bs-stack.js +1 -1
  224. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
  225. package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
  226. package/dist/collection/components/bs-switch/bs-switch.js +1 -1
  227. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
  228. package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
  229. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
  230. package/dist/collection/components/bs-timepicker/bs-timepicker.js +2 -2
  231. package/dist/collection/components/bs-toast/bs-toast.js +1 -1
  232. package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
  233. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +1 -1
  234. package/dist/collection/components/bs-tree/bs-tree.js +1 -1
  235. package/dist/collection/components/bs-tree-item/bs-tree-item.js +2 -2
  236. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
  237. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
  238. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
  239. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -1
  240. package/dist/components/bs-accordion-group.js +1 -1
  241. package/dist/components/bs-ai-disclaimer.js +1 -1
  242. package/dist/components/bs-ai-greeting.js +1 -1
  243. package/dist/components/bs-ai-thinking.js +1 -1
  244. package/dist/components/bs-app-shell.js +1 -1
  245. package/dist/components/bs-attachment-list.js +1 -1
  246. package/dist/components/bs-attachment.js +1 -1
  247. package/dist/components/bs-breadcrumb-overflow.js +1 -1
  248. package/dist/components/bs-breadcrumbs.js +1 -1
  249. package/dist/components/bs-button-skeleton.js +1 -1
  250. package/dist/components/bs-carousel.js +1 -1
  251. package/dist/components/bs-chatbot-feedback.js +1 -1
  252. package/dist/components/bs-chatbot-header.js +1 -1
  253. package/dist/components/bs-chatbot-response-action.js +1 -1
  254. package/dist/components/bs-chatbot-sources-drawer.js +1 -1
  255. package/dist/components/bs-chatbot-suggestion-button.js +1 -1
  256. package/dist/components/bs-checkbox-skeleton.js +1 -1
  257. package/dist/components/bs-citation-preview.js +1 -1
  258. package/dist/components/bs-command-palette.d.ts +11 -0
  259. package/dist/components/bs-command-palette.js +1 -0
  260. package/dist/components/bs-composer-status-banner.js +1 -1
  261. package/dist/components/bs-composer.js +1 -1
  262. package/dist/components/bs-container.js +1 -1
  263. package/dist/components/bs-cookie-consent.js +1 -1
  264. package/dist/components/bs-data-table.js +1 -1
  265. package/dist/components/bs-datepicker.js +1 -1
  266. package/dist/components/bs-dialog.js +1 -1
  267. package/dist/components/bs-divider.js +1 -1
  268. package/dist/components/bs-empty-state.d.ts +11 -0
  269. package/dist/components/bs-empty-state.js +1 -0
  270. package/dist/components/bs-error-page.js +1 -1
  271. package/dist/components/bs-file-upload-item.js +1 -1
  272. package/dist/components/bs-file-upload.js +1 -1
  273. package/dist/components/bs-global-search.d.ts +11 -0
  274. package/dist/components/bs-global-search.js +1 -0
  275. package/dist/components/bs-grid.js +1 -1
  276. package/dist/components/bs-icon-button.js +1 -1
  277. package/dist/components/bs-icon-tile.js +1 -1
  278. package/dist/components/bs-inline-tab.js +1 -1
  279. package/dist/components/bs-input.js +1 -1
  280. package/dist/components/bs-key-caps.d.ts +11 -0
  281. package/dist/components/bs-key-caps.js +1 -0
  282. package/dist/components/bs-key.d.ts +11 -0
  283. package/dist/components/bs-key.js +1 -0
  284. package/dist/components/bs-keyboard-shortcuts.d.ts +11 -0
  285. package/dist/components/bs-keyboard-shortcuts.js +1 -0
  286. package/dist/components/bs-list-item.js +1 -1
  287. package/dist/components/bs-list.js +1 -1
  288. package/dist/components/bs-menu-item.js +1 -1
  289. package/dist/components/bs-menu.js +1 -1
  290. package/dist/components/bs-message-list.js +1 -1
  291. package/dist/components/bs-message.js +1 -1
  292. package/dist/components/bs-navigation-drawer-item.js +1 -1
  293. package/dist/components/bs-navigation-drawer.js +1 -1
  294. package/dist/components/bs-navigation-header.js +1 -1
  295. package/dist/components/bs-onboarding-checklist.js +1 -1
  296. package/dist/components/bs-pagination.js +1 -1
  297. package/dist/components/bs-popover.js +1 -1
  298. package/dist/components/bs-product-tour.js +1 -1
  299. package/dist/components/bs-progress-linear.js +1 -1
  300. package/dist/components/bs-progress.js +1 -1
  301. package/dist/components/bs-qr-code.js +1 -1
  302. package/dist/components/bs-radio.js +1 -1
  303. package/dist/components/bs-search-item.d.ts +11 -0
  304. package/dist/components/bs-search-item.js +1 -0
  305. package/dist/components/bs-session-timeout.js +1 -1
  306. package/dist/components/bs-shortcut-row.d.ts +11 -0
  307. package/dist/components/bs-shortcut-row.js +1 -0
  308. package/dist/components/bs-side-panel.js +1 -1
  309. package/dist/components/bs-skeleton.js +1 -1
  310. package/dist/components/bs-slider.js +1 -1
  311. package/dist/components/bs-snackbar.js +1 -1
  312. package/dist/components/bs-source-link.js +1 -1
  313. package/dist/components/bs-spinner.js +1 -1
  314. package/dist/components/bs-split-pane.js +1 -1
  315. package/dist/components/bs-stack.js +1 -1
  316. package/dist/components/bs-stepper-step.js +1 -1
  317. package/dist/components/bs-stepper.js +1 -1
  318. package/dist/components/bs-switch.js +1 -1
  319. package/dist/components/bs-tab.js +1 -1
  320. package/dist/components/bs-tabs.js +1 -1
  321. package/dist/components/bs-timepicker.js +1 -1
  322. package/dist/components/bs-toast.js +1 -1
  323. package/dist/components/bs-tooltip-trigger.js +1 -1
  324. package/dist/components/bs-tooltip.js +1 -1
  325. package/dist/components/bs-tree-item.js +1 -1
  326. package/dist/components/bs-tree.js +1 -1
  327. package/dist/components/bs-whats-new-entry.js +1 -1
  328. package/dist/components/bs-whats-new.js +1 -1
  329. package/dist/components/{p-GTDI4Ibw.js → p-B32Kl4IB.js} +1 -1
  330. package/dist/components/{p-B128GX8H.js → p-BDnZvjlq.js} +1 -1
  331. package/dist/components/{p-BdkE4auv.js → p-BUpnOUIM.js} +1 -1
  332. package/dist/components/p-BcYNrEOB.js +1 -0
  333. package/dist/components/{p-B80vOwH6.js → p-BcbaiZLh.js} +1 -1
  334. package/dist/components/p-Bp3DIxjT.js +1 -0
  335. package/dist/components/p-CH5atin4.js +1 -0
  336. package/dist/components/{p-kDJsWjTN.js → p-CRM1wIX9.js} +1 -1
  337. package/dist/components/p-CYzBTzzf.js +1 -0
  338. package/dist/components/p-CervX0wH.js +1 -0
  339. package/dist/components/{p-C93ymWm7.js → p-Cpe2k7ZC.js} +1 -1
  340. package/dist/components/{p-Bb1-2M8K.js → p-D7AXo5NT.js} +1 -1
  341. package/dist/components/{p-J9cxcDhY.js → p-D8bvv9QQ.js} +1 -1
  342. package/dist/components/{p-DFKc3lLA.js → p-DG9eT5yi.js} +1 -1
  343. package/dist/components/{p-D0KM1R2i.js → p-DMLfXpva.js} +1 -1
  344. package/dist/components/{p-CQjSDdH7.js → p-DYDk73TF.js} +1 -1
  345. package/dist/components/{p-C7RZ6qZC.js → p-DcjgRtSQ.js} +1 -1
  346. package/dist/components/p-Dt4JNhHT.js +1 -0
  347. package/dist/components/{p-CK7fiES5.js → p-DtYTs9Kh.js} +1 -1
  348. package/dist/components/{p-BsbtyRJV.js → p-TAY9S9yG.js} +1 -1
  349. package/dist/components/{p-ByLUtXxO.js → p-w-DkdA4O.js} +1 -1
  350. package/dist/esm/brandsync-wc.js +1 -1
  351. package/dist/esm/bs-accordion-group.entry.js +1 -1
  352. package/dist/esm/bs-ai-disclaimer.entry.js +1 -1
  353. package/dist/esm/bs-ai-greeting.entry.js +1 -1
  354. package/dist/esm/bs-ai-thinking.entry.js +1 -1
  355. package/dist/esm/bs-app-shell.entry.js +1 -1
  356. package/dist/esm/bs-attachment-list.entry.js +1 -1
  357. package/dist/esm/bs-breadcrumbs.entry.js +1 -1
  358. package/dist/esm/bs-button-skeleton.entry.js +1 -1
  359. package/dist/esm/bs-chatbot-feedback.entry.js +1 -1
  360. package/dist/esm/bs-chatbot-header.entry.js +1 -1
  361. package/dist/esm/bs-chatbot-response-action.entry.js +1 -1
  362. package/dist/esm/bs-chatbot-sources-drawer.entry.js +1 -1
  363. package/dist/esm/bs-chatbot-suggestion-button.entry.js +1 -1
  364. package/dist/esm/bs-checkbox-skeleton.entry.js +1 -1
  365. package/dist/esm/bs-citation-preview.entry.js +1 -1
  366. package/dist/esm/bs-command-palette.entry.js +372 -0
  367. package/dist/esm/bs-composer-status-banner.entry.js +1 -1
  368. package/dist/esm/bs-composer.entry.js +1 -1
  369. package/dist/esm/bs-container.entry.js +1 -1
  370. package/dist/esm/bs-data-table.entry.js +2 -2
  371. package/dist/esm/bs-datepicker.entry.js +1 -1
  372. package/dist/esm/bs-divider.entry.js +1 -1
  373. package/dist/esm/bs-empty-state.entry.js +45 -0
  374. package/dist/esm/bs-error-page.entry.js +1 -1
  375. package/dist/esm/bs-file-upload-item.entry.js +1 -1
  376. package/dist/esm/bs-file-upload.entry.js +1 -1
  377. package/dist/esm/bs-global-search.entry.js +324 -0
  378. package/dist/esm/bs-grid.entry.js +2 -2
  379. package/dist/esm/bs-icon-button.entry.js +1 -1
  380. package/dist/esm/bs-icon-tile.entry.js +2 -2
  381. package/dist/esm/bs-inline-tab.entry.js +1 -1
  382. package/dist/esm/bs-input_3.entry.js +4 -4
  383. package/dist/esm/bs-key-caps.entry.js +37 -0
  384. package/dist/esm/bs-key.entry.js +26 -0
  385. package/dist/esm/bs-keyboard-shortcuts.entry.js +110 -0
  386. package/dist/esm/bs-list-item.entry.js +1 -1
  387. package/dist/esm/bs-list.entry.js +1 -1
  388. package/dist/esm/bs-message-list.entry.js +1 -1
  389. package/dist/esm/bs-message.entry.js +1 -1
  390. package/dist/esm/bs-navigation-drawer-item.entry.js +1 -1
  391. package/dist/esm/bs-navigation-drawer.entry.js +2 -2
  392. package/dist/esm/bs-navigation-header.entry.js +1 -1
  393. package/dist/esm/bs-pagination.entry.js +1 -1
  394. package/dist/esm/bs-popover.entry.js +1 -1
  395. package/dist/esm/bs-progress-linear.entry.js +2 -2
  396. package/dist/esm/bs-progress.entry.js +2 -2
  397. package/dist/esm/bs-qr-code.entry.js +1 -1
  398. package/dist/esm/bs-radio.entry.js +1 -1
  399. package/dist/esm/bs-search-item.entry.js +45 -0
  400. package/dist/esm/bs-session-timeout.entry.js +1 -1
  401. package/dist/esm/bs-shortcut-row.entry.js +25 -0
  402. package/dist/esm/bs-skeleton.entry.js +1 -1
  403. package/dist/esm/bs-slider.entry.js +1 -1
  404. package/dist/esm/bs-snackbar.entry.js +1 -1
  405. package/dist/esm/bs-source-link.entry.js +2 -2
  406. package/dist/esm/bs-spinner.entry.js +1 -1
  407. package/dist/esm/bs-split-pane.entry.js +1 -1
  408. package/dist/esm/bs-stack.entry.js +1 -1
  409. package/dist/esm/bs-stepper-step.entry.js +1 -1
  410. package/dist/esm/bs-stepper.entry.js +1 -1
  411. package/dist/esm/bs-switch.entry.js +1 -1
  412. package/dist/esm/bs-tab_3.entry.js +3 -3
  413. package/dist/esm/bs-timepicker.entry.js +2 -2
  414. package/dist/esm/bs-toast.entry.js +1 -1
  415. package/dist/esm/bs-tooltip-trigger.entry.js +1 -1
  416. package/dist/esm/bs-tooltip.entry.js +1 -1
  417. package/dist/esm/bs-tree-item.entry.js +2 -2
  418. package/dist/esm/bs-tree.entry.js +1 -1
  419. package/dist/esm/loader.js +1 -1
  420. package/dist/types/components/bs-command-palette/bs-command-palette.cmp.test.d.ts +1 -0
  421. package/dist/types/components/bs-command-palette/bs-command-palette.d.ts +172 -0
  422. package/dist/types/components/bs-command-palette/bs-command-palette.stories.d.ts +56 -0
  423. package/dist/types/components/bs-empty-state/bs-empty-state.cmp.test.d.ts +1 -0
  424. package/dist/types/components/bs-empty-state/bs-empty-state.d.ts +50 -0
  425. package/dist/types/components/bs-empty-state/bs-empty-state.stories.d.ts +13 -0
  426. package/dist/types/components/bs-global-search/bs-global-search.cmp.test.d.ts +1 -0
  427. package/dist/types/components/bs-global-search/bs-global-search.d.ts +166 -0
  428. package/dist/types/components/bs-global-search/bs-global-search.stories.d.ts +61 -0
  429. package/dist/types/components/bs-key/bs-key.cmp.test.d.ts +1 -0
  430. package/dist/types/components/bs-key/bs-key.d.ts +36 -0
  431. package/dist/types/components/bs-key/bs-key.stories.d.ts +11 -0
  432. package/dist/types/components/bs-key-caps/bs-key-caps.cmp.test.d.ts +1 -0
  433. package/dist/types/components/bs-key-caps/bs-key-caps.d.ts +31 -0
  434. package/dist/types/components/bs-key-caps/bs-key-caps.stories.d.ts +15 -0
  435. package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.cmp.test.d.ts +1 -0
  436. package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.d.ts +95 -0
  437. package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.stories.d.ts +43 -0
  438. package/dist/types/components/bs-search-item/bs-search-item.cmp.test.d.ts +1 -0
  439. package/dist/types/components/bs-search-item/bs-search-item.d.ts +61 -0
  440. package/dist/types/components/bs-search-item/bs-search-item.stories.d.ts +13 -0
  441. package/dist/types/components/bs-shortcut-row/bs-shortcut-row.cmp.test.d.ts +1 -0
  442. package/dist/types/components/bs-shortcut-row/bs-shortcut-row.d.ts +38 -0
  443. package/dist/types/components/bs-shortcut-row/bs-shortcut-row.stories.d.ts +13 -0
  444. package/dist/types/components.d.ts +1902 -76
  445. package/package.json +1 -1
  446. package/reference.d.ts +24 -0
  447. package/reference.json +855 -76
  448. package/dist/brandsync-wc/p-769c5b4a.entry.js +0 -1
  449. package/dist/brandsync-wc/p-e5f50e93.entry.js +0 -1
  450. package/dist/brandsync-wc/p-e72dd05e.entry.js +0 -1
  451. package/dist/components/p-BaJEv6rL.js +0 -1
@@ -0,0 +1,146 @@
1
+ import { html } from "lit";
2
+ import { componentDescription } from "../../stories-utils";
3
+ const svg = (inner) => {
4
+ const t = document.createElement('template');
5
+ t.innerHTML = `<svg slot="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${inner}</svg>`;
6
+ return t.content.firstElementChild;
7
+ };
8
+ /** Inline icon paths (no external URLs). */
9
+ export const ICON_PATHS = {
10
+ history: '<path d="M3 12a9 9 0 1 0 3-6.7L3 8" /><path d="M3 3v5h5M12 7v5l3 2" />',
11
+ users: '<circle cx="9" cy="8" r="3.5" /><path d="M2.5 20a6.5 6.5 0 0 1 13 0" /><path d="M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14a6.5 6.5 0 0 1 3.5 6" />',
12
+ package: '<path d="M21 8 12 3 3 8v8l9 5 9-5V8Z" /><path d="m3 8 9 5 9-5M12 13v8" />',
13
+ receipt: '<path d="M6 3h12v18l-3-2-3 2-3-2-3 2V3Z" /><path d="M9 8h6M9 12h6" />',
14
+ invoice: '<path d="M7 3h8l4 4v14H7V3Z" /><path d="M15 3v4h4M10 12h6M10 16h6" />',
15
+ search: '<circle cx="11" cy="11" r="7" /><path d="m20 20-3.5-3.5" />',
16
+ };
17
+ /** Figma "Global Search" data, shared by the stories. */
18
+ export const RECENT = [
19
+ { value: 'r1', label: 'nordic sports', trailing: '2 min ago' },
20
+ { value: 'r2', label: 'INV-20931', trailing: 'Yesterday' },
21
+ { value: 'r3', label: 'wool sweater', trailing: 'Mon' },
22
+ ];
23
+ export const JUMP_TO = [
24
+ { value: 'customers', label: 'Customers', trailing: '1,284', icon: 'users' },
25
+ { value: 'products', label: 'Products', trailing: '8,930', icon: 'package' },
26
+ { value: 'orders', label: 'Orders', trailing: '24,117', icon: 'receipt' },
27
+ { value: 'invoices', label: 'Invoices', trailing: '19,402', icon: 'invoice' },
28
+ ];
29
+ export const TOP_MATCHES = [
30
+ { value: 'c-nordic-sports', match: 'Nordic', rest: ' Sports AS', description: 'Customer · Oslo · 48 orders', trailing: 'Customer', icon: 'users' },
31
+ { value: 'p-10442', match: 'Nordic', rest: ' Wool Sweater', description: 'SKU 10442 · 126 in stock', trailing: 'Product', icon: 'package' },
32
+ { value: 'o-48213', prefix: 'Order #48213 · ', match: 'Nordic', rest: ' Sports AS', description: '12 Oct · NOK 12 480', trailing: 'Order', icon: 'receipt' },
33
+ ];
34
+ export const SEARCH_IN = [
35
+ { value: 'in-customers', label: 'Customers', trailing: '12' },
36
+ { value: 'in-products', label: 'Products', trailing: '38' },
37
+ { value: 'in-orders', label: 'Orders', trailing: '146' },
38
+ ];
39
+ const recentItems = () => RECENT.map(r => html `<bs-search-item slot="recent" value=${r.value} trailing=${r.trailing}>${svg(ICON_PATHS.history)}${r.label}</bs-search-item>`);
40
+ const jumpItems = () => JUMP_TO.map(j => html `<bs-search-item slot="jump-to" value=${j.value} trailing=${j.trailing}>${svg(ICON_PATHS[j.icon])}${j.label}</bs-search-item>`);
41
+ const topItems = () => TOP_MATCHES.map(m => html `<bs-search-item slot="top-matches" value=${m.value}>
42
+ ${svg(ICON_PATHS[m.icon])}${'prefix' in m ? m.prefix : ''}<strong>${m.match}</strong>${m.rest}
43
+ <span slot="description">${m.description}</span>
44
+ <span slot="trailing">${m.trailing}</span>
45
+ </bs-search-item>`);
46
+ const searchInItems = () => SEARCH_IN.map(s => html `<bs-search-item slot="search-in" value=${s.value} trailing=${s.trailing}>${svg(ICON_PATHS.search)}“nordic” in ${s.label}</bs-search-item>`);
47
+ const meta = {
48
+ // The shared story data constants are exported for the tests; keep them out of the sidebar.
49
+ excludeStories: /^[A-Z0-9_]+$/,
50
+ title: 'Components/bs-global-search',
51
+ parameters: { layout: 'padded', docs: { description: { component: componentDescription('bs-global-search') } } },
52
+ argTypes: {
53
+ value: { control: 'text' },
54
+ open: { control: 'boolean' },
55
+ status: { control: 'select', options: ['default', 'results', 'empty', 'error'] },
56
+ totalResults: { control: 'number' },
57
+ placeholder: { control: 'text' },
58
+ disabled: { control: 'boolean' },
59
+ },
60
+ args: { value: '', open: true, status: 'default', placeholder: 'Search customers, orders, products…', disabled: false },
61
+ render: args => html `
62
+ <div style="min-height: 700px">
63
+ <bs-global-search
64
+ .value=${args.value}
65
+ .open=${args.open}
66
+ .status=${args.status}
67
+ .totalResults=${args.totalResults}
68
+ .placeholder=${args.placeholder}
69
+ .disabled=${args.disabled}
70
+ >
71
+ ${recentItems()} ${jumpItems()}
72
+ </bs-global-search>
73
+ </div>
74
+ `,
75
+ };
76
+ export default meta;
77
+ export const Closed = { args: { open: false } };
78
+ export const Default = {};
79
+ export const Results = {
80
+ args: { value: 'nordic', status: 'results', totalResults: 196 },
81
+ render: args => html `
82
+ <div style="min-height: 700px">
83
+ <bs-global-search .value=${args.value} .open=${args.open} .status=${args.status} .totalResults=${args.totalResults}>
84
+ ${topItems()} ${searchInItems()}
85
+ </bs-global-search>
86
+ </div>
87
+ `,
88
+ };
89
+ export const NoResults = {
90
+ args: { value: 'zzzz', status: 'empty' },
91
+ render: args => html `
92
+ <div style="min-height: 700px">
93
+ <bs-global-search
94
+ .value=${args.value}
95
+ .open=${args.open}
96
+ status="empty"
97
+ empty-heading="No events match these filters"
98
+ empty-description="Try a wider date range or clear filters."
99
+ clear-search-label="Clear filters"
100
+ ></bs-global-search>
101
+ </div>
102
+ `,
103
+ };
104
+ export const Error = {
105
+ args: { value: 'nordic', status: 'error' },
106
+ render: args => html `
107
+ <div style="min-height: 700px">
108
+ <bs-global-search .value=${args.value} .open=${args.open} status="error"></bs-global-search>
109
+ </div>
110
+ `,
111
+ };
112
+ export const Interactive = {
113
+ args: { open: false },
114
+ render: () => {
115
+ const log = (out, name, detail) => {
116
+ out.textContent = `${name}${detail === undefined ? '' : ' ' + JSON.stringify(detail)}`;
117
+ };
118
+ const wrap = document.createElement('div');
119
+ wrap.style.minHeight = '700px';
120
+ const out = document.createElement('output');
121
+ out.style.cssText = 'display:block;margin-top:8px;font:14px/20px monospace;color:var(--bs-text-secondary)';
122
+ out.textContent = 'Type, use the arrow keys, press Enter or Esc.';
123
+ const gs = document.createElement('bs-global-search');
124
+ gs.innerHTML = [
125
+ ...RECENT.map(r => `<bs-search-item slot="recent" value="${r.value}" trailing="${r.trailing}">${r.label}</bs-search-item>`),
126
+ ...JUMP_TO.map(j => `<bs-search-item slot="jump-to" value="${j.value}" trailing="${j.trailing}">${j.label}</bs-search-item>`),
127
+ ...TOP_MATCHES.map(m => `<bs-search-item slot="top-matches" value="${m.value}">${'prefix' in m ? m.prefix : ''}<strong>${m.match}</strong>${m.rest}<span slot="description">${m.description}</span><span slot="trailing">${m.trailing}</span></bs-search-item>`),
128
+ ...SEARCH_IN.map(s => `<bs-search-item slot="search-in" value="${s.value}" trailing="${s.trailing}">“nordic” in ${s.label}</bs-search-item>`),
129
+ ].join('');
130
+ // The app owns the search logic: show results while there is a query.
131
+ gs.addEventListener('bsInput', e => {
132
+ const q = e.detail;
133
+ gs.status = q ? (q.toLowerCase().includes('zz') ? 'empty' : 'results') : 'default';
134
+ gs.totalResults = q ? 196 : undefined;
135
+ log(out, 'bsInput', q);
136
+ });
137
+ for (const n of ['bsSearch', 'bsSelect', 'bsOpenChange', 'bsClearRecent', 'bsClearSearch', 'bsSeeAll', 'bsRetry']) {
138
+ gs.addEventListener(n, e => log(out, n, e.detail));
139
+ }
140
+ gs.addEventListener('bsClearSearch', () => {
141
+ gs.status = 'default';
142
+ });
143
+ wrap.append(gs, out);
144
+ return wrap;
145
+ },
146
+ };
@@ -59,12 +59,12 @@ export class BsGrid {
59
59
  const row = this.rowGap ? this.token(this.rowGap) : gapValue;
60
60
  const col = this.columnGap ? this.token(this.columnGap) : gapValue;
61
61
  const align = ALIGNS.includes(this.align) ? this.align : 'stretch';
62
- return (h("div", { key: 'a89d345eac5d88dd24b21606eb35b1f21e1b54dd', class: "bs-grid", part: "container", style: {
62
+ return (h("div", { key: '0799adbc2484f270db8ca5c2cadc1a0ec55ecbc0', class: "bs-grid", part: "container", style: {
63
63
  gridTemplateColumns: this.template(),
64
64
  rowGap: `var(--bs-grid-row-gap, ${row})`,
65
65
  columnGap: `var(--bs-grid-column-gap, ${col})`,
66
66
  alignItems: align,
67
- } }, h("slot", { key: 'f5676a0cc12cf0fafc04045b4fed50aee50d2995' })));
67
+ } }, h("slot", { key: '90d4940c5b1870df9eaae616f8fbe3738f025a3b' })));
68
68
  }
69
69
  static get is() { return "bs-grid"; }
70
70
  static get encapsulation() { return "shadow"; }
@@ -38,8 +38,8 @@ export class BsIconTile {
38
38
  render() {
39
39
  const labelled = !!this.label;
40
40
  return [
41
- h("div", { key: '47586c94633cb072243559352fff92ffc178b59e', part: "container", class: "bs-icon-tile", role: labelled ? 'img' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' }, h("span", { key: 'af1f942a94eed409beaaf6845eee09003ef70fd4', part: "icon", class: "bs-icon-tile__icon" }, h("slot", { key: 'be9df10596772e84a65d4de467117ea6c6a13c29', onSlotchange: (ev) => (this.hasCustomIcon = hasContent(ev.target)) }), !this.hasCustomIcon && (GLYPHS[this.intent] ?? GLYPHS.default))),
42
- h("span", { key: '0522505b1001e511e5c2446025a05b6e80ef0176', part: "text", class: { 'bs-icon-tile__text': true, 'bs-icon-tile__text--visible': this.hasText } }, h("slot", { key: '0fc0bb97e5b23a984bcd64eafc0133eb93782c2f', name: "text", onSlotchange: (ev) => (this.hasText = ev.target.assignedNodes().length > 0) })),
41
+ h("div", { key: '3fc3a9874dbadcf9ac6fa3df92f7c5cb48c4cc7b', part: "container", class: "bs-icon-tile", role: labelled ? 'img' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' }, h("span", { key: 'e27206a1f0ef5a05183863c952c631614e44b591', part: "icon", class: "bs-icon-tile__icon" }, h("slot", { key: '31c4cd875c08f01b04d1fbc8b27dbb471c383129', onSlotchange: (ev) => (this.hasCustomIcon = hasContent(ev.target)) }), !this.hasCustomIcon && (GLYPHS[this.intent] ?? GLYPHS.default))),
42
+ h("span", { key: 'fcc4dbeff34fa2de817619963ec0ec2597d04db3', part: "text", class: { 'bs-icon-tile__text': true, 'bs-icon-tile__text--visible': this.hasText } }, h("slot", { key: '24509194d7cb291ee7930039f42dcea780f0bcf3', name: "text", onSlotchange: (ev) => (this.hasText = ev.target.assignedNodes().length > 0) })),
43
43
  ];
44
44
  }
45
45
  static get is() { return "bs-icon-tile"; }
@@ -397,10 +397,10 @@ export class BsInput {
397
397
  return (h("div", { part: "field", class: `bs-input__field bs-input__field--pin ${errorClass} ${disabledClass}` }, Array.from({ length: this.length }).map((_, i) => (h("input", { id: i === 0 ? 'control' : undefined, ref: el => (this.pinInputs[i] = el), part: "control", class: "bs-input__pin-cell", type: "text", inputMode: "numeric", maxLength: 1, value: this.value[i] ?? '', disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, onInput: this.onPinInput(i), onKeyDown: this.onPinKeydown(i) })))));
398
398
  }
399
399
  render() {
400
- return (h("div", { key: 'ec191e3590785654e3701c7c49b1643f671dcc16', class: `bs-input ${this.error ? 'bs-input--error' : ''}` }, this.label && (
400
+ return (h("div", { key: '99df53d78ddc715d336738a27efeb3d64140a9c7', class: `bs-input ${this.error ? 'bs-input--error' : ''}` }, this.label && (
401
401
  // "control" is a fixed id, not a generated one -- safe because Shadow DOM scopes ids
402
402
  // to this instance's own shadow root, so it can never collide with another bs-input.
403
- h("label", { key: '264558031d7bdf104254724ad1891c893668da60', part: "label", class: "bs-input__label", htmlFor: "control" }, this.label, this.required && (h("span", { key: '225d41e84484f1f160765a9f01e49a0bd850650c', part: "required", class: "bs-input__required", "aria-hidden": "true" }, "*")))), this.type === 'pin' ? this.renderPinField() : this.type === 'initials' ? this.renderInitialsField() : this.renderField(), this.error ? (h("span", { id: "description-or-error", part: "error", class: "bs-input__error" }, h("svg", { part: "error-icon", class: "bs-input__error-icon", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("circle", { cx: "8", cy: "8", r: "6.5", stroke: "currentColor", "stroke-width": "1.2" }), h("path", { d: "M8 5V8.5", stroke: "currentColor", "stroke-width": "1.2", "stroke-linecap": "round" }), h("circle", { cx: "8", cy: "11", r: "0.75", fill: "currentColor" })), this.error)) : this.description ? (h("span", { id: "description-or-error", part: "description", class: "bs-input__description" }, this.description)) : null));
403
+ h("label", { key: '27f894fedaf23ded0432d9f26e80a9dd4d2bbb8e', part: "label", class: "bs-input__label", htmlFor: "control" }, this.label, this.required && (h("span", { key: '4260924b6128864a17ae809e5e54bc3f5aff5b64', part: "required", class: "bs-input__required", "aria-hidden": "true" }, "*")))), this.type === 'pin' ? this.renderPinField() : this.type === 'initials' ? this.renderInitialsField() : this.renderField(), this.error ? (h("span", { id: "description-or-error", part: "error", class: "bs-input__error" }, h("svg", { part: "error-icon", class: "bs-input__error-icon", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("circle", { cx: "8", cy: "8", r: "6.5", stroke: "currentColor", "stroke-width": "1.2" }), h("path", { d: "M8 5V8.5", stroke: "currentColor", "stroke-width": "1.2", "stroke-linecap": "round" }), h("circle", { cx: "8", cy: "11", r: "0.75", fill: "currentColor" })), this.error)) : this.description ? (h("span", { id: "description-or-error", part: "description", class: "bs-input__description" }, this.description)) : null));
404
404
  }
405
405
  static get is() { return "bs-input"; }
406
406
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,59 @@
1
+ import { render, h, describe, it, expect } from "@stencil/vitest";
2
+ import { assertShadowParts, runAxeCheck } from "../../test/helpers/conventions";
3
+ const cap = (host) => host.shadowRoot.querySelector('[part="container"]');
4
+ const tokenColor = (token, prop = 'backgroundColor') => {
5
+ const p = document.createElement('div');
6
+ p.style[prop === 'backgroundColor' ? 'background' : prop === 'color' ? 'color' : 'borderTopColor'] = `var(${token})`;
7
+ if (prop === 'borderTopColor')
8
+ p.style.borderTopStyle = 'solid';
9
+ document.body.appendChild(p);
10
+ const c = getComputedStyle(p)[prop];
11
+ p.remove();
12
+ return c;
13
+ };
14
+ describe('bs-key', () => {
15
+ it('renders a <kbd> cap with the label from the prop', async () => {
16
+ const { root } = await render(h("bs-key", { label: "Ctrl" }));
17
+ expect(cap(root).tagName).toBe('KBD');
18
+ expect(root.shadowRoot.querySelector('[part="label"]')).not.toBeNull();
19
+ expect(root).toHaveTextContent('');
20
+ expect(root.shadowRoot.querySelector('slot:not([name])').textContent).toBe('Ctrl');
21
+ });
22
+ it('lets the default slot override the label prop', async () => {
23
+ const { root } = await render(h("bs-key", { label: "Ignored" }, "Esc"));
24
+ const slot = root.shadowRoot.querySelector('slot:not([name])');
25
+ expect(slot.assignedNodes()[0].textContent).toBe('Esc');
26
+ });
27
+ it('has the Figma cap geometry and colours', async () => {
28
+ const { root } = await render(h("bs-key", { label: "Ctrl" }));
29
+ const cs = getComputedStyle(cap(root));
30
+ expect(cs.paddingTop).toBe('4px');
31
+ expect(cs.paddingLeft).toBe('6px');
32
+ expect(cs.borderRadius).toBe('4px');
33
+ expect(cs.borderTopWidth).toBe('1px');
34
+ expect(cs.fontSize).toBe('12px');
35
+ expect(cs.lineHeight).toBe('16px');
36
+ expect(cs.backgroundColor).toBe(tokenColor('--bs-surface-base'));
37
+ expect(cs.color).toBe(tokenColor('--bs-text-secondary', 'color'));
38
+ expect(cs.borderTopColor).toBe(tokenColor('--bs-border-default', 'borderTopColor'));
39
+ // 16px line + 8px padding + 2px border
40
+ expect(Math.round(cap(root).getBoundingClientRect().height)).toBe(26);
41
+ });
42
+ it('keeps a keycap shape for a single character (25px minimum width)', async () => {
43
+ const { root } = await render(h("bs-key", { label: "K" }));
44
+ expect(Math.round(cap(root).getBoundingClientRect().width)).toBe(25);
45
+ });
46
+ it('shows a 16px icon instead of the label when the icon slot is filled', async () => {
47
+ const { root, waitForChanges } = await render(h("bs-key", { label: "Enter" }, h("svg", { slot: "icon", viewBox: "0 0 24 24" })));
48
+ await waitForChanges();
49
+ expect(root.shadowRoot.querySelector('[part="label"]')).toBeNull();
50
+ const icon = root.shadowRoot.querySelector('[part="icon"]');
51
+ expect(Math.round(icon.getBoundingClientRect().width)).toBe(16);
52
+ expect(Math.round(icon.getBoundingClientRect().height)).toBe(16);
53
+ });
54
+ it('exposes the documented shadow parts and passes axe', async () => {
55
+ const { root } = await render(h("bs-key", { label: "Ctrl" }));
56
+ assertShadowParts(root.shadowRoot, ['container', 'label', 'icon']);
57
+ await runAxeCheck(root);
58
+ });
59
+ });
@@ -0,0 +1,58 @@
1
+ :host {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ /* Gap between a "+" separator (drawn by bs-key-caps as ::before on this host) and the cap. */
5
+ gap: var(--bs-spacing-100);
6
+ --bs-key-bg: var(--bs-surface-base);
7
+ --bs-key-border-color: var(--bs-border-default);
8
+ --bs-key-radius: var(--bs-border-radius-50);
9
+ --bs-key-padding-x: var(--bs-spacing-75);
10
+ --bs-key-padding-y: var(--bs-spacing-50);
11
+ /* Literal values from the Figma "Base keys" component (25px minimum width, 16px icon). */
12
+ --bs-key-min-width: 25px;
13
+ --bs-key-color: var(--bs-text-secondary);
14
+ --bs-key-font-size: var(--bs-font-size-xs);
15
+ --bs-key-icon-size: 16px;
16
+ }
17
+
18
+ .bs-key {
19
+ box-sizing: border-box;
20
+ display: inline-flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ min-width: var(--bs-key-min-width);
24
+ padding: var(--bs-key-padding-y) var(--bs-key-padding-x);
25
+ background: var(--bs-key-bg);
26
+ border: 1px solid var(--bs-key-border-color);
27
+ border-radius: var(--bs-key-radius);
28
+ color: var(--bs-key-color);
29
+ /* <kbd> defaults to monospace; Figma uses the regular UI font. */
30
+ font-family: inherit;
31
+ font-size: var(--bs-key-font-size);
32
+ font-weight: var(--bs-font-weight-regular);
33
+ line-height: calc(var(--bs-line-height-caption-sm) * 1px);
34
+ text-align: center;
35
+ white-space: nowrap;
36
+ }
37
+
38
+ .bs-key__label {
39
+ display: block;
40
+ }
41
+
42
+ .bs-key__icon {
43
+ display: inline-flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+ width: var(--bs-key-icon-size);
47
+ height: var(--bs-key-icon-size);
48
+ }
49
+
50
+ .bs-key__icon--hidden {
51
+ display: none;
52
+ }
53
+
54
+ .bs-key__icon ::slotted(*) {
55
+ display: block;
56
+ width: 100%;
57
+ height: 100%;
58
+ }
@@ -0,0 +1,84 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * One key of a keyboard shortcut, e.g. `Ctrl`, `K` or `Esc` -- rendered as a `<kbd>` keycap.
4
+ * Shows a text label, or an icon (e.g. a return arrow) via the `icon` slot.
5
+ *
6
+ * ## When to use
7
+ * - Showing a keyboard shortcut hint next to a control or inside a search field.
8
+ * - Alone for a single key, or as the children of `bs-key-caps` for a multi-key shortcut.
9
+ *
10
+ * ## When not to use
11
+ * - As a button or any clickable control -- a key is a static hint, not interactive.
12
+ *
13
+ * @slot - The key's label text (overrides the `label` prop), e.g. `Ctrl`.
14
+ * @slot icon - An icon shown instead of the label (16px), e.g. a return arrow.
15
+ * @part container - The `<kbd>` cap.
16
+ * @part label - The label text wrapper (not rendered while the `icon` slot is filled).
17
+ * @part icon - The icon wrapper (only rendered while the `icon` slot is filled).
18
+ * @prop --bs-key-bg - Cap background. Aliased to `--bs-surface-base`.
19
+ * @prop --bs-key-border-color - Cap border colour. Aliased to `--bs-border-default`.
20
+ * @prop --bs-key-radius - Cap corner radius. Aliased to `--bs-border-radius-50`.
21
+ * @prop --bs-key-padding-x - Horizontal padding. Aliased to `--bs-spacing-75`.
22
+ * @prop --bs-key-padding-y - Vertical padding. Aliased to `--bs-spacing-50`.
23
+ * @prop --bs-key-min-width - Smallest cap width, so single characters keep a keycap shape. Defaults to `25px` (Figma).
24
+ * @prop --bs-key-color - Label colour. Aliased to `--bs-text-secondary`.
25
+ * @prop --bs-key-font-size - Label size. Aliased to `--bs-font-size-xs` (12px).
26
+ * @prop --bs-key-icon-size - Icon size. Defaults to `16px` (Figma).
27
+ */
28
+ export class BsKey {
29
+ el;
30
+ /** The key's text, e.g. `Ctrl`. The default slot overrides it. */
31
+ label;
32
+ /** Tracks whether the `icon` slot has content, so the label is replaced by the icon. */
33
+ hasIcon = false;
34
+ componentWillLoad() {
35
+ this.hasIcon = Array.from(this.el.children).some(c => c.getAttribute('slot') === 'icon');
36
+ }
37
+ onIconSlotChange = (ev) => {
38
+ this.hasIcon = ev.target.assignedNodes().length > 0;
39
+ };
40
+ render() {
41
+ return (h("kbd", { key: 'ebd13e9ce82e11cb2868adaf1d9dfc38a261bf26', part: "container", class: "bs-key" }, !this.hasIcon && (h("span", { key: 'abb27af837ff8a82bc976841a04a2ef3d0386cdd', part: "label", class: "bs-key__label" }, h("slot", { key: 'e28affc720c80cf40edba55229e7df67e79a579b' }, this.label))), h("span", { key: 'c88fb0200102cfcd6e3b3b84218de6fcfddf06b8', part: "icon", class: { 'bs-key__icon': true, 'bs-key__icon--hidden': !this.hasIcon } }, h("slot", { key: '4043e70a46538183913b6275ba569fb75c078c27', name: "icon", onSlotchange: this.onIconSlotChange }))));
42
+ }
43
+ static get is() { return "bs-key"; }
44
+ static get encapsulation() { return "shadow"; }
45
+ static get originalStyleUrls() {
46
+ return {
47
+ "$": ["bs-key.css"]
48
+ };
49
+ }
50
+ static get styleUrls() {
51
+ return {
52
+ "$": ["bs-key.css"]
53
+ };
54
+ }
55
+ static get properties() {
56
+ return {
57
+ "label": {
58
+ "type": "string",
59
+ "mutable": false,
60
+ "complexType": {
61
+ "original": "string",
62
+ "resolved": "string",
63
+ "references": {}
64
+ },
65
+ "required": false,
66
+ "optional": true,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": "The key's text, e.g. `Ctrl`. The default slot overrides it."
70
+ },
71
+ "getter": false,
72
+ "setter": false,
73
+ "reflect": false,
74
+ "attribute": "label"
75
+ }
76
+ };
77
+ }
78
+ static get states() {
79
+ return {
80
+ "hasIcon": {}
81
+ };
82
+ }
83
+ static get elementRef() { return "el"; }
84
+ }
@@ -0,0 +1,19 @@
1
+ import { html } from "lit";
2
+ import { componentDescription } from "../../stories-utils";
3
+ const RETURN_ICON = html `<svg slot="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 14 4 9l5-5" /><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H11" /></svg>`;
4
+ const meta = {
5
+ title: 'Components/bs-key',
6
+ parameters: { docs: { description: { component: componentDescription('bs-key') } } },
7
+ render: args => html `<bs-key label=${args.label}></bs-key>`,
8
+ argTypes: { label: { control: 'text' } },
9
+ args: { label: 'Ctrl' },
10
+ };
11
+ export default meta;
12
+ export const Text = {};
13
+ export const Icon = {
14
+ render: () => html `<bs-key>${RETURN_ICON}</bs-key>`,
15
+ };
16
+ export const SingleCharacter = { args: { label: 'K' } };
17
+ export const LabelFromSlot = {
18
+ render: () => html `<bs-key>Esc</bs-key>`,
19
+ };
@@ -0,0 +1,60 @@
1
+ import { render, h, describe, it, expect } from "@stencil/vitest";
2
+ import { runAxeCheck } from "../../test/helpers/conventions";
3
+ const group = (host) => host.shadowRoot.querySelector('[part="container"]');
4
+ const keysIn = (host) => Array.from(host.shadowRoot.querySelectorAll('bs-key'));
5
+ const sepContent = (el) => getComputedStyle(el, '::before').content;
6
+ describe('bs-key-caps', () => {
7
+ it('renders one bs-key per "+"-separated key in the string', async () => {
8
+ const { root } = await render(h("bs-key-caps", { keys: "Ctrl + Shift+K" }));
9
+ const keys = keysIn(root);
10
+ expect(keys.length).toBe(3);
11
+ expect(keys.map(k => k.label)).toEqual(['Ctrl', 'Shift', 'K']);
12
+ });
13
+ it('accepts an array so a literal plus key is possible', async () => {
14
+ const { root } = await render(h("bs-key-caps", { keys: ['Ctrl', '+'] }));
15
+ expect(keysIn(root).map(k => k.label)).toEqual(['Ctrl', '+']);
16
+ });
17
+ it('draws a "+" before every key except the first', async () => {
18
+ const { root } = await render(h("bs-key-caps", { keys: "Ctrl+Alt+Del" }));
19
+ const keys = keysIn(root);
20
+ expect(sepContent(keys[0])).toBe('none');
21
+ expect(sepContent(keys[1])).toBe('"+"');
22
+ expect(sepContent(keys[2])).toBe('"+"');
23
+ });
24
+ it('lays keys out 8px apart, centred, like Figma (Keys=2 is two caps and one "+")', async () => {
25
+ const { root } = await render(h("bs-key-caps", { keys: "Ctrl+Ctrl" }));
26
+ const cs = getComputedStyle(group(root));
27
+ expect(cs.columnGap).toBe('8px');
28
+ expect(cs.alignItems).toBe('center');
29
+ const k = keysIn(root);
30
+ expect(Math.round(k[0].getBoundingClientRect().height)).toBe(26);
31
+ });
32
+ it('supports slotted bs-key elements, including icon keys, with the same separators', async () => {
33
+ const { root, waitForChanges } = await render(h("bs-key-caps", null, h("bs-key", { label: "Ctrl" }), h("bs-key", null, h("svg", { slot: "icon", viewBox: "0 0 24 24" }))));
34
+ await waitForChanges();
35
+ const slotted = Array.from(root.querySelectorAll('bs-key'));
36
+ expect(sepContent(slotted[0])).toBe('none');
37
+ expect(sepContent(slotted[1])).toBe('"+"');
38
+ });
39
+ it('is a labelled group: label defaults to the keys joined with "plus"', async () => {
40
+ const { root } = await render(h("bs-key-caps", { keys: "Ctrl+K" }));
41
+ expect(group(root)).toEqualAttribute('role', 'group');
42
+ expect(group(root)).toEqualAttribute('aria-label', 'Ctrl plus K');
43
+ });
44
+ it('lets label override the accessible name', async () => {
45
+ const { root } = await render(h("bs-key-caps", { keys: "Ctrl+K", label: "Open search" }));
46
+ expect(group(root)).toEqualAttribute('aria-label', 'Open search');
47
+ });
48
+ it('dims the whole shortcut to 38% and marks it aria-disabled when disabled', async () => {
49
+ const { root, waitForChanges } = await render(h("bs-key-caps", { keys: "Ctrl+K" }));
50
+ expect(getComputedStyle(group(root)).opacity).toBe('1');
51
+ root.setAttribute('disabled', '');
52
+ await waitForChanges();
53
+ expect(getComputedStyle(group(root)).opacity).toBe('0.38');
54
+ expect(group(root)).toEqualAttribute('aria-disabled', 'true');
55
+ });
56
+ it('passes axe', async () => {
57
+ const { root } = await render(h("bs-key-caps", { keys: "Ctrl+K" }));
58
+ await runAxeCheck(root);
59
+ });
60
+ });
@@ -0,0 +1,28 @@
1
+ :host {
2
+ display: inline-block;
3
+ --bs-key-caps-gap: var(--bs-spacing-100);
4
+ --bs-key-caps-separator-color: var(--bs-text-muted);
5
+ /* Literal from the Figma "Key caps" Disabled variant; there is no 38% opacity token. */
6
+ --bs-key-caps-disabled-opacity: 0.38;
7
+ }
8
+
9
+ .bs-key-caps {
10
+ display: inline-flex;
11
+ align-items: center;
12
+ gap: var(--bs-key-caps-gap);
13
+ }
14
+
15
+ /* The "+" is drawn as ::before on each key after the first (the key host is a flex row with its
16
+ own gap), so it works for both generated keys and slotted ones without moving any nodes. */
17
+ .bs-key-caps bs-key:not(:first-child)::before,
18
+ ::slotted(bs-key:not(:first-child))::before {
19
+ content: '+';
20
+ color: var(--bs-key-caps-separator-color);
21
+ font-size: var(--bs-font-size-xs);
22
+ line-height: calc(var(--bs-line-height-caption-sm) * 1px);
23
+ }
24
+
25
+ /* Slotted keys are laid out by this group's gap; the separator already includes its own spacing. */
26
+ :host([disabled]) .bs-key-caps {
27
+ opacity: var(--bs-key-caps-disabled-opacity);
28
+ }
@@ -0,0 +1,120 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * A keyboard shortcut of one to four keys joined by "+", e.g. `Ctrl + K`. Give it a `keys` string
4
+ * (`"Ctrl+Shift+K"`) or array (`['Ctrl', '+']` for a literal plus key), or slot your own `bs-key`
5
+ * elements -- for example when a key is an icon.
6
+ *
7
+ * ## When to use
8
+ * - A shortcut hint beside a menu item, button or inside a search field.
9
+ *
10
+ * ## When not to use
11
+ * - Instructions that need prose ("press Enter to submit") -- write a sentence and use a single `bs-key` inline.
12
+ * - Anything interactive -- keys are static hints.
13
+ *
14
+ * @slot - `bs-key` elements. A "+" separator is drawn before every key except the first.
15
+ * @part container - The group wrapper.
16
+ * @prop --bs-key-caps-gap - Gap between keys and separators. Aliased to `--bs-spacing-100`.
17
+ * @prop --bs-key-caps-separator-color - Colour of the "+" separators. Aliased to `--bs-text-muted`.
18
+ * @prop --bs-key-caps-disabled-opacity - Opacity of the whole shortcut while `disabled`. Defaults to `0.38` (Figma).
19
+ */
20
+ export class BsKeyCaps {
21
+ /**
22
+ * The keys as text. A string is split on `+` (`"Ctrl+K"`); use an array to include a literal
23
+ * plus key. Ignored when `bs-key` elements are slotted instead. Figma defines one to four keys.
24
+ */
25
+ keys;
26
+ /** Dims the whole shortcut and marks it `aria-disabled`. */
27
+ disabled = false;
28
+ /** Accessible name of the shortcut, e.g. "Control plus K". Defaults to the keys joined with " plus ". */
29
+ label;
30
+ keyList() {
31
+ if (Array.isArray(this.keys))
32
+ return this.keys.filter(k => k !== '');
33
+ if (typeof this.keys === 'string') {
34
+ return this.keys
35
+ .split('+')
36
+ .map(k => k.trim())
37
+ .filter(Boolean);
38
+ }
39
+ return [];
40
+ }
41
+ render() {
42
+ const keys = this.keyList();
43
+ const name = this.label ?? (keys.length ? keys.join(' plus ') : undefined);
44
+ return (h("span", { key: 'd2396eec919fbad20d6152faf4786d1bcfac9042', part: "container", class: "bs-key-caps", role: "group", "aria-label": name, "aria-disabled": this.disabled ? 'true' : undefined }, keys.map(k => (h("bs-key", { label: k }))), h("slot", { key: '9f4facb9f8d6ce6079facc16d260a41f48e54470' })));
45
+ }
46
+ static get is() { return "bs-key-caps"; }
47
+ static get encapsulation() { return "shadow"; }
48
+ static get originalStyleUrls() {
49
+ return {
50
+ "$": ["bs-key-caps.css"]
51
+ };
52
+ }
53
+ static get styleUrls() {
54
+ return {
55
+ "$": ["bs-key-caps.css"]
56
+ };
57
+ }
58
+ static get properties() {
59
+ return {
60
+ "keys": {
61
+ "type": "string",
62
+ "mutable": false,
63
+ "complexType": {
64
+ "original": "string | string[]",
65
+ "resolved": "string | string[]",
66
+ "references": {}
67
+ },
68
+ "required": false,
69
+ "optional": true,
70
+ "docs": {
71
+ "tags": [],
72
+ "text": "The keys as text. A string is split on `+` (`\"Ctrl+K\"`); use an array to include a literal\nplus key. Ignored when `bs-key` elements are slotted instead. Figma defines one to four keys."
73
+ },
74
+ "getter": false,
75
+ "setter": false,
76
+ "reflect": false,
77
+ "attribute": "keys"
78
+ },
79
+ "disabled": {
80
+ "type": "boolean",
81
+ "mutable": false,
82
+ "complexType": {
83
+ "original": "boolean",
84
+ "resolved": "boolean",
85
+ "references": {}
86
+ },
87
+ "required": false,
88
+ "optional": false,
89
+ "docs": {
90
+ "tags": [],
91
+ "text": "Dims the whole shortcut and marks it `aria-disabled`."
92
+ },
93
+ "getter": false,
94
+ "setter": false,
95
+ "reflect": true,
96
+ "attribute": "disabled",
97
+ "defaultValue": "false"
98
+ },
99
+ "label": {
100
+ "type": "string",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "string",
104
+ "resolved": "string",
105
+ "references": {}
106
+ },
107
+ "required": false,
108
+ "optional": true,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": "Accessible name of the shortcut, e.g. \"Control plus K\". Defaults to the keys joined with \" plus \"."
112
+ },
113
+ "getter": false,
114
+ "setter": false,
115
+ "reflect": false,
116
+ "attribute": "label"
117
+ }
118
+ };
119
+ }
120
+ }