@bk2k/ui 0.6.7 → 0.7.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 (487) hide show
  1. package/BUILDING.md +88 -2
  2. package/CHANGELOG.md +193 -0
  3. package/USAGE.md +102 -33
  4. package/custom-elements.json +1 -1
  5. package/dist/charts/chart-tokens.js +1 -1
  6. package/dist/charts/fields.d.ts +20 -0
  7. package/dist/charts/fields.js +27 -0
  8. package/dist/charts/frame.d.ts +2 -0
  9. package/dist/charts/frame.js +4 -2
  10. package/dist/clipboard.js +1 -0
  11. package/dist/components/bk-alert.js +2 -1
  12. package/dist/components/bk-avatar-group.js +4 -6
  13. package/dist/components/bk-avatar.d.ts +10 -0
  14. package/dist/components/bk-avatar.js +17 -0
  15. package/dist/components/bk-bar.js +2 -0
  16. package/dist/components/bk-button-group.js +1 -1
  17. package/dist/components/bk-button-top.js +2 -1
  18. package/dist/components/bk-button.d.ts +55 -17
  19. package/dist/components/bk-button.js +71 -24
  20. package/dist/components/bk-card.d.ts +4 -0
  21. package/dist/components/bk-card.js +15 -2
  22. package/dist/components/bk-carousel-controls.d.ts +2 -0
  23. package/dist/components/bk-carousel-controls.js +4 -2
  24. package/dist/components/bk-chart-area.d.ts +6 -0
  25. package/dist/components/bk-chart-bar.d.ts +63 -9
  26. package/dist/components/bk-chart-bar.js +152 -41
  27. package/dist/components/bk-chart-line.d.ts +13 -0
  28. package/dist/components/bk-chart-line.js +11 -1
  29. package/dist/components/bk-chip-group.d.ts +2 -2
  30. package/dist/components/bk-chip-group.js +4 -0
  31. package/dist/components/bk-chip.d.ts +53 -8
  32. package/dist/components/bk-chip.js +43 -7
  33. package/dist/components/bk-code.js +6 -2
  34. package/dist/components/bk-columns.d.ts +11 -0
  35. package/dist/components/bk-columns.js +8 -1
  36. package/dist/components/bk-combobox.d.ts +30 -6
  37. package/dist/components/bk-combobox.js +63 -20
  38. package/dist/components/bk-delta.d.ts +10 -0
  39. package/dist/components/bk-delta.js +8 -6
  40. package/dist/components/bk-dialog.d.ts +16 -6
  41. package/dist/components/bk-dialog.js +20 -8
  42. package/dist/components/bk-disclosure.js +4 -2
  43. package/dist/components/bk-drop-target.d.ts +7 -1
  44. package/dist/components/bk-drop-target.js +20 -4
  45. package/dist/components/bk-error-summary.d.ts +5 -0
  46. package/dist/components/bk-error-summary.js +13 -4
  47. package/dist/components/bk-facts-item.js +8 -6
  48. package/dist/components/bk-facts.d.ts +6 -4
  49. package/dist/components/bk-facts.js +22 -10
  50. package/dist/components/bk-footnote.d.ts +73 -0
  51. package/dist/components/bk-footnote.js +97 -0
  52. package/dist/components/bk-footnotes-item.d.ts +92 -0
  53. package/dist/components/bk-footnotes-item.js +139 -0
  54. package/dist/components/bk-footnotes.d.ts +51 -0
  55. package/dist/components/bk-footnotes.js +43 -0
  56. package/dist/components/bk-icon.js +2 -2
  57. package/dist/components/bk-image-compare.d.ts +33 -5
  58. package/dist/components/bk-image-compare.js +72 -24
  59. package/dist/components/bk-image-crop.d.ts +3 -3
  60. package/dist/components/bk-image-editor.d.ts +1 -1
  61. package/dist/components/bk-image-viewer.d.ts +107 -11
  62. package/dist/components/bk-image-viewer.js +205 -34
  63. package/dist/components/bk-input-inline.d.ts +15 -6
  64. package/dist/components/bk-input-inline.js +22 -6
  65. package/dist/components/bk-input-number.js +2 -1
  66. package/dist/components/bk-input-search.d.ts +1 -1
  67. package/dist/components/bk-input-search.js +2 -1
  68. package/dist/components/bk-input-text.d.ts +11 -0
  69. package/dist/components/bk-input-text.js +17 -3
  70. package/dist/components/bk-input-time-zone.d.ts +3 -0
  71. package/dist/components/bk-input-time.js +2 -1
  72. package/dist/components/bk-item.js +2 -1
  73. package/dist/components/bk-lightbox.d.ts +12 -3
  74. package/dist/components/bk-lightbox.js +6 -3
  75. package/dist/components/bk-link.d.ts +9 -1
  76. package/dist/components/bk-link.js +14 -4
  77. package/dist/components/bk-menu-item.d.ts +40 -0
  78. package/dist/components/bk-menu-item.js +57 -9
  79. package/dist/components/bk-menu-label.js +2 -1
  80. package/dist/components/bk-menu-list.d.ts +1 -0
  81. package/dist/components/bk-menu-list.js +10 -0
  82. package/dist/components/bk-menu.d.ts +8 -1
  83. package/dist/components/bk-menu.js +16 -5
  84. package/dist/components/bk-message-feedback.d.ts +4 -3
  85. package/dist/components/bk-message-feedback.js +7 -5
  86. package/dist/components/bk-message-list.js +2 -1
  87. package/dist/components/bk-message-source.d.ts +1 -2
  88. package/dist/components/bk-message-source.js +3 -11
  89. package/dist/components/bk-message.js +2 -0
  90. package/dist/components/bk-model-viewer.d.ts +12 -1
  91. package/dist/components/bk-model-viewer.js +15 -2
  92. package/dist/components/bk-nav-group.js +1 -1
  93. package/dist/components/bk-nav-item.d.ts +18 -0
  94. package/dist/components/bk-nav-item.js +18 -5
  95. package/dist/components/bk-nav.d.ts +1 -1
  96. package/dist/components/bk-page-cta.js +2 -0
  97. package/dist/components/bk-page-section.d.ts +1 -1
  98. package/dist/components/bk-page-section.js +3 -9
  99. package/dist/components/bk-pane.d.ts +1 -0
  100. package/dist/components/bk-pane.js +7 -5
  101. package/dist/components/bk-panel.d.ts +1 -1
  102. package/dist/components/bk-panel.js +6 -5
  103. package/dist/components/bk-period-nav.d.ts +102 -0
  104. package/dist/components/bk-period-nav.js +69 -0
  105. package/dist/components/bk-picture.d.ts +17 -4
  106. package/dist/components/bk-picture.js +8 -1
  107. package/dist/components/bk-segmented-item.d.ts +24 -4
  108. package/dist/components/bk-segmented-item.js +37 -5
  109. package/dist/components/bk-segmented.js +2 -13
  110. package/dist/components/bk-select-cascade.d.ts +1 -1
  111. package/dist/components/bk-select-tree.d.ts +1 -1
  112. package/dist/components/bk-select.d.ts +1 -1
  113. package/dist/components/bk-select.js +2 -1
  114. package/dist/components/bk-shell-app.d.ts +13 -6
  115. package/dist/components/bk-shell-app.js +47 -11
  116. package/dist/components/bk-shell-sites.d.ts +2 -1
  117. package/dist/components/bk-shell-sites.js +3 -5
  118. package/dist/components/bk-sortable.d.ts +3 -0
  119. package/dist/components/bk-sortable.js +10 -17
  120. package/dist/components/bk-split-grid.d.ts +104 -3
  121. package/dist/components/bk-split-grid.js +425 -2
  122. package/dist/components/bk-split.d.ts +3 -0
  123. package/dist/components/bk-split.js +3 -0
  124. package/dist/components/bk-stat-group.js +2 -1
  125. package/dist/components/bk-stat.d.ts +17 -0
  126. package/dist/components/bk-stat.js +7 -3
  127. package/dist/components/bk-steps.js +2 -1
  128. package/dist/components/bk-surface.d.ts +2 -0
  129. package/dist/components/bk-surface.js +6 -3
  130. package/dist/components/bk-table.d.ts +17 -13
  131. package/dist/components/bk-table.js +94 -15
  132. package/dist/components/bk-tabs-item.d.ts +45 -7
  133. package/dist/components/bk-tabs-item.js +51 -20
  134. package/dist/components/bk-tabs-panel.d.ts +6 -3
  135. package/dist/components/bk-tabs-panel.js +6 -0
  136. package/dist/components/bk-tabs.d.ts +50 -7
  137. package/dist/components/bk-tabs.js +168 -96
  138. package/dist/components/bk-text.js +2 -1
  139. package/dist/components/bk-toast-group.d.ts +3 -1
  140. package/dist/components/bk-toast-group.js +11 -1
  141. package/dist/components/bk-tooltip.d.ts +3 -1
  142. package/dist/components/bk-tooltip.js +2 -1
  143. package/dist/components/bk-video.js +2 -2
  144. package/dist/components/bk-zoom.d.ts +3 -1
  145. package/dist/components/confirm.d.ts +15 -0
  146. package/dist/components/confirm.js +27 -4
  147. package/dist/i18n/de.js +19 -1
  148. package/dist/i18n/en.d.ts +2 -0
  149. package/dist/i18n/en.js +3 -0
  150. package/dist/i18n.d.ts +23 -2
  151. package/dist/i18n.js +35 -4
  152. package/dist/icons/brands-static.d.ts +3 -0
  153. package/dist/icons/brands-static.js +5 -0
  154. package/dist/icons/core.d.ts +1 -0
  155. package/dist/icons/core.js +2 -0
  156. package/dist/icons/load-static.d.ts +3 -0
  157. package/dist/icons/load-static.js +5 -0
  158. package/dist/icons/load.js +1 -0
  159. package/dist/icons/registry.js +1 -1
  160. package/dist/icons/set/save-as.d.ts +3 -0
  161. package/dist/icons/set/save-as.js +7 -0
  162. package/dist/index.d.ts +4 -0
  163. package/dist/index.js +4 -0
  164. package/dist/internal/announcer.d.ts +8 -1
  165. package/dist/internal/announcer.js +26 -10
  166. package/dist/internal/backdrop.d.ts +19 -0
  167. package/dist/internal/backdrop.js +29 -0
  168. package/dist/internal/busy.d.ts +3 -2
  169. package/dist/internal/busy.js +4 -5
  170. package/dist/internal/choice-field.js +1 -1
  171. package/dist/internal/choice-item.d.ts +17 -6
  172. package/dist/internal/choice-item.js +20 -9
  173. package/dist/internal/cloak.d.ts +3 -0
  174. package/dist/internal/cloak.js +7 -0
  175. package/dist/internal/crop-frame.d.ts +1 -1
  176. package/dist/internal/crop-frame.js +2 -7
  177. package/dist/internal/date-field.js +2 -1
  178. package/dist/internal/drag.d.ts +11 -0
  179. package/dist/internal/drag.js +23 -0
  180. package/dist/internal/english-static.d.ts +3 -0
  181. package/dist/internal/english-static.js +5 -0
  182. package/dist/internal/english.d.ts +8 -0
  183. package/dist/internal/english.js +6 -0
  184. package/dist/internal/footnotes.d.ts +56 -0
  185. package/dist/internal/footnotes.js +143 -0
  186. package/dist/internal/handle-menu.d.ts +2 -3
  187. package/dist/internal/handle-menu.js +11 -3
  188. package/dist/internal/late/bk-shell-app.d.ts +4 -0
  189. package/dist/internal/late/bk-shell-app.js +7 -0
  190. package/dist/internal/late/bk-table.d.ts +4 -0
  191. package/dist/internal/late/bk-table.js +17 -0
  192. package/dist/internal/late/handle-menu.d.ts +4 -0
  193. package/dist/internal/late/handle-menu.js +9 -0
  194. package/dist/internal/late/static.d.ts +7 -0
  195. package/dist/internal/late/static.js +5 -0
  196. package/dist/internal/late.d.ts +20 -0
  197. package/dist/internal/late.js +45 -0
  198. package/dist/internal/link.d.ts +2 -0
  199. package/dist/internal/link.js +11 -1
  200. package/dist/internal/own-text.d.ts +8 -0
  201. package/dist/internal/own-text.js +7 -0
  202. package/dist/internal/scope.js +1 -1
  203. package/dist/internal/scroll-lock.d.ts +4 -1
  204. package/dist/internal/scroll-lock.js +17 -4
  205. package/dist/internal/slider.js +2 -1
  206. package/dist/internal/styles.js +3 -0
  207. package/dist/internal/submit.d.ts +23 -0
  208. package/dist/internal/submit.js +57 -0
  209. package/dist/jsx.d.ts +176 -56
  210. package/dist/reset.css +10 -0
  211. package/dist/standalone/all.js +226 -221
  212. package/dist/standalone/appearance.js +1 -1
  213. package/dist/standalone/bk-accordion-item.js +4 -4
  214. package/dist/standalone/bk-accordion.js +2 -2
  215. package/dist/standalone/bk-action-bar.js +3 -3
  216. package/dist/standalone/bk-alert-offline.js +1 -2
  217. package/dist/standalone/bk-alert.js +13 -12
  218. package/dist/standalone/bk-app-state.js +1 -1
  219. package/dist/standalone/bk-attachment.js +4 -4
  220. package/dist/standalone/bk-avatar-group.js +12 -10
  221. package/dist/standalone/bk-avatar.js +14 -4
  222. package/dist/standalone/bk-badge.js +2 -2
  223. package/dist/standalone/bk-bar.js +3 -1
  224. package/dist/standalone/bk-brand.js +3 -3
  225. package/dist/standalone/bk-breadcrumbs.js +5 -5
  226. package/dist/standalone/bk-button-copy.js +5 -5
  227. package/dist/standalone/bk-button-group.js +5 -5
  228. package/dist/standalone/bk-button-share.js +5 -5
  229. package/dist/standalone/bk-button-top.js +9 -8
  230. package/dist/standalone/bk-button.js +74 -34
  231. package/dist/standalone/bk-calendar-event.js +1 -1
  232. package/dist/standalone/bk-calendar-week.js +3 -3
  233. package/dist/standalone/bk-calendar.js +4 -4
  234. package/dist/standalone/bk-card.js +20 -7
  235. package/dist/standalone/bk-carousel-controls.js +7 -6
  236. package/dist/standalone/bk-carousel-item.js +2 -2
  237. package/dist/standalone/bk-carousel.js +1 -1
  238. package/dist/standalone/bk-chart-area.js +1 -1
  239. package/dist/standalone/bk-chart-bar-list.js +8 -8
  240. package/dist/standalone/bk-chart-bar.js +253 -166
  241. package/dist/standalone/bk-chart-bridge.js +7 -7
  242. package/dist/standalone/bk-chart-bullet.js +6 -6
  243. package/dist/standalone/bk-chart-calendar.js +7 -7
  244. package/dist/standalone/bk-chart-heatmap.js +7 -7
  245. package/dist/standalone/bk-chart-histogram.js +5 -5
  246. package/dist/standalone/bk-chart-legend.js +6 -6
  247. package/dist/standalone/bk-chart-line.js +116 -103
  248. package/dist/standalone/bk-chart-mark.js +1 -1
  249. package/dist/standalone/bk-chart-scatter.js +6 -6
  250. package/dist/standalone/bk-chart-sparkline.js +6 -6
  251. package/dist/standalone/bk-chart-stacked-bar.js +7 -7
  252. package/dist/standalone/bk-chart-tracker.js +6 -6
  253. package/dist/standalone/bk-chart-waterfall.js +6 -6
  254. package/dist/standalone/bk-checkbox-group.js +4 -4
  255. package/dist/standalone/bk-checkbox.js +4 -4
  256. package/dist/standalone/bk-chip-group.js +9 -5
  257. package/dist/standalone/bk-chip.js +56 -17
  258. package/dist/standalone/bk-cluster.js +1 -1
  259. package/dist/standalone/bk-code-diff.js +4 -4
  260. package/dist/standalone/bk-code-stack.js +4 -4
  261. package/dist/standalone/bk-code.js +10 -6
  262. package/dist/standalone/bk-color-panel.js +5 -5
  263. package/dist/standalone/bk-columns.js +13 -5
  264. package/dist/standalone/bk-combobox.js +53 -33
  265. package/dist/standalone/bk-command-menu.js +6 -6
  266. package/dist/standalone/bk-command-palette.js +6 -5
  267. package/dist/standalone/bk-composer.js +6 -6
  268. package/dist/standalone/bk-delta.js +11 -10
  269. package/dist/standalone/bk-diagram.js +1 -1
  270. package/dist/standalone/bk-dialog.js +1 -1
  271. package/dist/standalone/bk-disclosure.js +7 -5
  272. package/dist/standalone/bk-divider.js +2 -2
  273. package/dist/standalone/bk-drawer.js +3 -3
  274. package/dist/standalone/bk-drop-target.js +12 -6
  275. package/dist/standalone/bk-empty-state.js +3 -3
  276. package/dist/standalone/bk-error-summary.js +9 -6
  277. package/dist/standalone/bk-facts-item.js +10 -8
  278. package/dist/standalone/bk-facts.js +28 -16
  279. package/dist/standalone/bk-feature.js +3 -3
  280. package/dist/standalone/bk-fieldset.js +3 -3
  281. package/dist/standalone/bk-filter-bar.js +4 -4
  282. package/dist/standalone/bk-folder-browser.js +4 -4
  283. package/dist/standalone/bk-footnote.js +82 -0
  284. package/dist/standalone/bk-footnotes-item.js +122 -0
  285. package/dist/standalone/bk-footnotes.js +37 -0
  286. package/dist/standalone/bk-form-guard.js +2 -2
  287. package/dist/standalone/bk-form-steps.js +3 -3
  288. package/dist/standalone/bk-grid.js +1 -1
  289. package/dist/standalone/bk-icon-tile.js +3 -3
  290. package/dist/standalone/bk-icon.js +1 -1
  291. package/dist/standalone/bk-image-compare.js +88 -47
  292. package/dist/standalone/bk-image-crop.js +6 -6
  293. package/dist/standalone/bk-image-editor.js +2 -1
  294. package/dist/standalone/bk-image-viewer.js +180 -59
  295. package/dist/standalone/bk-input-code.js +4 -4
  296. package/dist/standalone/bk-input-color.js +4 -4
  297. package/dist/standalone/bk-input-date-range.js +2 -2
  298. package/dist/standalone/bk-input-date.js +2 -2
  299. package/dist/standalone/bk-input-file.js +5 -5
  300. package/dist/standalone/bk-input-group.js +4 -4
  301. package/dist/standalone/bk-input-inline.js +17 -10
  302. package/dist/standalone/bk-input-number.js +9 -8
  303. package/dist/standalone/bk-input-rating.js +6 -6
  304. package/dist/standalone/bk-input-rich.js +1 -1
  305. package/dist/standalone/bk-input-search.js +23 -22
  306. package/dist/standalone/bk-input-slider-range.js +5 -5
  307. package/dist/standalone/bk-input-slider.js +5 -5
  308. package/dist/standalone/bk-input-text.js +1 -1
  309. package/dist/standalone/bk-input-time-zone.js +1 -1
  310. package/dist/standalone/bk-input-time.js +29 -28
  311. package/dist/standalone/bk-item-group.js +3 -3
  312. package/dist/standalone/bk-item.js +12 -11
  313. package/dist/standalone/bk-kbd-shortcuts.js +4 -3
  314. package/dist/standalone/bk-kbd.js +68 -1
  315. package/dist/standalone/bk-lightbox.js +11 -7
  316. package/dist/standalone/bk-lines.js +1 -1
  317. package/dist/standalone/bk-link.js +33 -19
  318. package/dist/standalone/bk-listbox-columns.js +6 -6
  319. package/dist/standalone/bk-listbox-item.js +1 -1
  320. package/dist/standalone/bk-listbox-search.js +7 -7
  321. package/dist/standalone/bk-listbox-transfer.js +6 -6
  322. package/dist/standalone/bk-listbox.js +7 -7
  323. package/dist/standalone/bk-logo-wall.js +2 -2
  324. package/dist/standalone/bk-logo.js +3 -3
  325. package/dist/standalone/bk-menu-bar.js +3 -3
  326. package/dist/standalone/bk-menu-context.js +1 -1
  327. package/dist/standalone/bk-menu-divider.js +2 -2
  328. package/dist/standalone/bk-menu-item.js +73 -29
  329. package/dist/standalone/bk-menu-label.js +7 -6
  330. package/dist/standalone/bk-menu-list.js +10 -4
  331. package/dist/standalone/bk-menu.js +19 -10
  332. package/dist/standalone/bk-message-approval.js +4 -4
  333. package/dist/standalone/bk-message-branches.js +3 -3
  334. package/dist/standalone/bk-message-citation.js +10 -10
  335. package/dist/standalone/bk-message-feedback.js +10 -6
  336. package/dist/standalone/bk-message-list.js +6 -5
  337. package/dist/standalone/bk-message-reasoning.js +5 -5
  338. package/dist/standalone/bk-message-source.js +13 -21
  339. package/dist/standalone/bk-message-tool-group.js +5 -5
  340. package/dist/standalone/bk-message-tool.js +5 -5
  341. package/dist/standalone/bk-message.js +6 -4
  342. package/dist/standalone/bk-meter.js +3 -3
  343. package/dist/standalone/bk-model-viewer.js +1 -1
  344. package/dist/standalone/bk-nav-divider.js +2 -2
  345. package/dist/standalone/bk-nav-group.js +6 -6
  346. package/dist/standalone/bk-nav-item.js +31 -23
  347. package/dist/standalone/bk-nav-toc.js +3 -3
  348. package/dist/standalone/bk-nav.js +3 -3
  349. package/dist/standalone/bk-overflow.js +3 -3
  350. package/dist/standalone/bk-page-cta.js +5 -3
  351. package/dist/standalone/bk-page-footer-column.js +2 -2
  352. package/dist/standalone/bk-page-footer.js +3 -3
  353. package/dist/standalone/bk-page-header.js +3 -3
  354. package/dist/standalone/bk-page-hero.js +3 -3
  355. package/dist/standalone/bk-page-pager.js +5 -5
  356. package/dist/standalone/bk-page-section.js +6 -6
  357. package/dist/standalone/bk-pagination.js +6 -6
  358. package/dist/standalone/bk-pane.js +10 -9
  359. package/dist/standalone/bk-panel.js +9 -10
  360. package/dist/standalone/bk-period-nav.js +69 -0
  361. package/dist/standalone/bk-picture.js +24 -15
  362. package/dist/standalone/bk-popover-help.js +3 -3
  363. package/dist/standalone/bk-popover.js +2 -2
  364. package/dist/standalone/bk-presence-cursor.js +2 -2
  365. package/dist/standalone/bk-preview.js +4 -4
  366. package/dist/standalone/bk-progress.js +3 -3
  367. package/dist/standalone/bk-prose.js +3 -3
  368. package/dist/standalone/bk-qr-code.js +1 -1
  369. package/dist/standalone/bk-radio-group.js +4 -4
  370. package/dist/standalone/bk-radio.js +3 -3
  371. package/dist/standalone/bk-rating.js +5 -5
  372. package/dist/standalone/bk-scroll.js +3 -3
  373. package/dist/standalone/bk-segmented-item.js +40 -16
  374. package/dist/standalone/bk-segmented.js +15 -13
  375. package/dist/standalone/bk-select-cascade.js +3 -3
  376. package/dist/standalone/bk-select-tree.js +4 -4
  377. package/dist/standalone/bk-select.js +7 -6
  378. package/dist/standalone/bk-shell-app.js +1 -1217
  379. package/dist/standalone/bk-shell-centered.js +2 -2
  380. package/dist/standalone/bk-shell-sites.js +5 -7
  381. package/dist/standalone/bk-skeleton.js +2 -2
  382. package/dist/standalone/bk-sortable.js +58 -60
  383. package/dist/standalone/bk-spinner.js +2 -2
  384. package/dist/standalone/bk-split-grid.js +318 -41
  385. package/dist/standalone/bk-split.js +9 -6
  386. package/dist/standalone/bk-stack.js +1 -1
  387. package/dist/standalone/bk-stat-group.js +8 -7
  388. package/dist/standalone/bk-stat.js +11 -8
  389. package/dist/standalone/bk-status-dot.js +3 -3
  390. package/dist/standalone/bk-steps-item.js +5 -5
  391. package/dist/standalone/bk-steps.js +8 -7
  392. package/dist/standalone/bk-surface.js +1 -1
  393. package/dist/standalone/bk-swatch-group.js +4 -4
  394. package/dist/standalone/bk-swatch-palette.js +1 -1
  395. package/dist/standalone/bk-swatch.js +2 -2
  396. package/dist/standalone/bk-switch.js +4 -4
  397. package/dist/standalone/bk-table.js +1 -1887
  398. package/dist/standalone/bk-tabs-item.js +58 -35
  399. package/dist/standalone/bk-tabs-panel.js +7 -3
  400. package/dist/standalone/bk-tabs.js +160 -98
  401. package/dist/standalone/bk-tasks-item.js +4 -4
  402. package/dist/standalone/bk-tasks.js +2 -2
  403. package/dist/standalone/bk-testimonial.js +3 -3
  404. package/dist/standalone/bk-text.js +19 -18
  405. package/dist/standalone/bk-time-countdown.js +4 -4
  406. package/dist/standalone/bk-time-relative.js +3 -3
  407. package/dist/standalone/bk-timeline-item.js +4 -4
  408. package/dist/standalone/bk-timeline.js +2 -2
  409. package/dist/standalone/bk-toast-group.js +1 -1
  410. package/dist/standalone/bk-toast.js +4 -4
  411. package/dist/standalone/bk-toolbar.js +2 -2
  412. package/dist/standalone/bk-tooltip.js +8 -7
  413. package/dist/standalone/bk-tree-item.js +6 -6
  414. package/dist/standalone/bk-tree.js +3 -3
  415. package/dist/standalone/bk-video.js +6 -6
  416. package/dist/standalone/bk-visually-hidden.js +2 -2
  417. package/dist/standalone/bk-zoom.js +5 -5
  418. package/dist/standalone/chunks/announcer-D1zrRWwO.js +36 -0
  419. package/dist/standalone/chunks/{appearance-waHnV0kk.js → appearance-CBOJXbmC.js} +1 -1
  420. package/dist/standalone/chunks/{bk-alert-offline-BoMEYxnE.js → bk-alert-offline-Clw0ZSsH.js} +3 -3
  421. package/dist/standalone/chunks/{bk-carousel-B7-9OanA.js → bk-carousel-Biz7t8sL.js} +4 -4
  422. package/dist/standalone/chunks/{bk-diagram-CpOpicmo.js → bk-diagram-D_fQf6SF.js} +5 -5
  423. package/dist/standalone/chunks/{bk-dialog-a2BtUBf2.js → bk-dialog-DwZyUUHh.js} +65 -27
  424. package/dist/standalone/chunks/{bk-icon-DssFsNuB.js → bk-icon-Bp_flKdv.js} +4 -3
  425. package/dist/standalone/chunks/{bk-image-editor-z_Uj83fy.js → bk-image-editor-BADsoLRL.js} +5 -5
  426. package/dist/standalone/chunks/{bk-input-date-range-BQkbPlSJ.js → bk-input-date-range-DHcJ8-5g.js} +2 -2
  427. package/dist/standalone/chunks/{bk-input-rich-Dte_b4Ev.js → bk-input-rich-CFhW6vRa.js} +6 -6
  428. package/dist/standalone/chunks/{bk-input-text-CUNQG1ah.js → bk-input-text-DviyLBqj.js} +63 -54
  429. package/dist/standalone/chunks/{bk-model-viewer-D1XJPgAG.js → bk-model-viewer-w_Ah4Tvs.js} +22 -8
  430. package/dist/standalone/chunks/{bk-qr-code-CbI9rdOK.js → bk-qr-code-CYMovNVl.js} +3 -3
  431. package/dist/standalone/chunks/bk-shell-app-B2lxHit8.js +1235 -0
  432. package/dist/standalone/chunks/{bk-surface-DkIhrWMt.js → bk-surface-D7e0tErs.js} +9 -7
  433. package/dist/standalone/chunks/{bk-swatch-palette-BNNXTP3w.js → bk-swatch-palette-x13JgJQi.js} +6 -6
  434. package/dist/standalone/chunks/bk-table-CP8n_jy7.js +1944 -0
  435. package/dist/standalone/chunks/{bk-toast-group-Cix-Urgi.js → bk-toast-group-CoL6W7uk.js} +27 -24
  436. package/dist/standalone/chunks/{brush-Bn3lPdHN.js → brush-DALmXSru.js} +18 -2
  437. package/dist/standalone/chunks/{busy-B7Mxemwm.js → busy-BUB22mGY.js} +5 -4
  438. package/dist/standalone/chunks/{chart-tokens-D1Exf7BW.js → chart-tokens-DQ4hVSmn.js} +2 -2
  439. package/dist/standalone/chunks/{choice-field-BnuK9mp_.js → choice-field-poOTerh1.js} +6 -6
  440. package/dist/standalone/chunks/{choice-item-B6-9ZRlf.js → choice-item-Cx-nm1js.js} +17 -8
  441. package/dist/standalone/chunks/clipboard-RqIeP9Uz.js +29 -0
  442. package/dist/standalone/chunks/clipboard-UVLSkL4C.js +34 -0
  443. package/dist/standalone/chunks/{crop-frame-poLCGrBG.js → crop-frame-Z9N0QML4.js} +1 -11
  444. package/dist/standalone/chunks/{date-field-BQ5k-DDL.js → date-field-B-fCXa2D.js} +48 -47
  445. package/dist/standalone/chunks/{define-CzVPD4Zi.js → define-DkVeu7e9.js} +1 -1
  446. package/dist/standalone/chunks/drag-DT4__0t9.js +12 -0
  447. package/dist/standalone/chunks/footnotes-BeisMxLk.js +94 -0
  448. package/dist/standalone/chunks/{form-control-D7dqSP9M.js → form-control-CHpfKAKa.js} +2 -2
  449. package/dist/standalone/chunks/{frame-BW1nKuoM.js → frame-xIMVEUCi.js} +7 -4
  450. package/dist/standalone/chunks/handle-menu-BgYUbGO2.js +56 -0
  451. package/dist/standalone/chunks/{heading-text-CV5gBf7k.js → heading-text-CgnCa_q2.js} +1 -1
  452. package/dist/standalone/chunks/{i18n-CNsBRNPu.js → i18n-DFfGgd3d.js} +56 -34
  453. package/dist/standalone/chunks/{i18n-CrZgrRu9.js → i18n-DQAcbHkY.js} +1 -1
  454. package/dist/standalone/chunks/link--YWr8exL.js +69 -0
  455. package/dist/standalone/chunks/{marks-CdqbbJpM.js → marks-pOUDNUf1.js} +2 -2
  456. package/dist/standalone/chunks/{options-DMEc8rQt.js → options-BdC8-KKM.js} +2 -2
  457. package/dist/standalone/chunks/own-text-mpZVnMyX.js +5 -0
  458. package/dist/standalone/chunks/{palettes-CKLHSIPx.js → palettes-J4bQ21ks.js} +2 -2
  459. package/dist/standalone/chunks/{popover-base-oDhxsYMr.js → popover-base-hxo-Vh6E.js} +2 -2
  460. package/dist/standalone/chunks/{prose-BG4oQH-i.js → prose-BiuJgiah.js} +1 -1
  461. package/dist/standalone/chunks/{ramp-EclrETaQ.js → ramp-CGDOcqBZ.js} +1 -1
  462. package/dist/standalone/chunks/save-as-DBGZjczB.js +6 -0
  463. package/dist/standalone/chunks/shortcuts-DPxCSO4M.js +210 -0
  464. package/dist/standalone/chunks/{slider-BWT8Fmwz.js → slider-jp3d-Ld-.js} +15 -14
  465. package/dist/standalone/chunks/{stars-BN9M_9Q1.js → stars-BgKEjDQx.js} +1 -1
  466. package/dist/standalone/chunks/{styles-DwSR-9a3.js → styles-CaeyhYDA.js} +3 -0
  467. package/dist/standalone/chunks/submit-BjBGB8OW.js +42 -0
  468. package/dist/standalone/chunks/{summary-BwL-Gp8w.js → summary-W5s0TFqV.js} +1 -1
  469. package/dist/standalone/chunks/{text-field-CTp2b-Ai.js → text-field-CqhJSAwZ.js} +4 -4
  470. package/dist/standalone/chunks/{toggle-control-DXkgmz7R.js → toggle-control-lvZbQtGW.js} +2 -2
  471. package/dist/standalone/chunks/{tokens-BuahF1lF.js → tokens-C_ul7pL9.js} +4 -3
  472. package/dist/standalone/chunks/{virtual-B-1oN14Y.js → virtual-C_h6sHnm.js} +1 -1
  473. package/dist/standalone/confirm.js +27 -14
  474. package/dist/standalone/i18n-de.js +20 -2
  475. package/dist/standalone/icons.js +100 -98
  476. package/dist/standalone/links.js +1 -1
  477. package/dist/standalone/reset.css +10 -0
  478. package/dist/standalone/toast.js +1 -1
  479. package/dist/standalone/tokens.css +9 -5
  480. package/dist/tokens.css +9 -5
  481. package/dist/tokens.js +4 -3
  482. package/package.json +25 -2
  483. package/dist/standalone/chunks/announcer-haFcvqbe.js +0 -25
  484. package/dist/standalone/chunks/bk-kbd-B7bz8hmV.js +0 -275
  485. package/dist/standalone/chunks/clipboard-DBGdJ-1S.js +0 -61
  486. package/dist/standalone/chunks/handle-menu-DsxWvv4D.js +0 -22
  487. package/dist/standalone/chunks/link-CWSMsx04.js +0 -60
@@ -1,18 +1,20 @@
1
1
  import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as r } from "./chunks/if-defined-z_20pBRr.js";
3
3
  import { t as i } from "./chunks/live-CgLyfc6z.js";
4
- import { n as a, t as o } from "./chunks/choice-field-BnuK9mp_.js";
5
- import { t as s } from "./chunks/define-CzVPD4Zi.js";
4
+ import { n as a, t as o } from "./chunks/choice-field-poOTerh1.js";
5
+ import { t as s } from "./chunks/define-DkVeu7e9.js";
6
6
  import { i as c } from "./chunks/events-DQ4e9cPN.js";
7
- import { n as l, t as u, u as d } from "./chunks/options-DMEc8rQt.js";
7
+ import { t as l } from "./chunks/loading-B37QBUkv.js";
8
+ import { n as u, t as d, u as f } from "./chunks/options-BdC8-KKM.js";
8
9
  import "./bk-chip.js";
9
- import "./chunks/bk-icon-DssFsNuB.js";
10
+ import "./chunks/bk-icon-Bp_flKdv.js";
10
11
  import "./bk-spinner.js";
12
+ import { r as p } from "./chunks/submit-BjBGB8OW.js";
11
13
  import "./chunks/add-CUFUzxGc.js";
12
14
  import "./chunks/chevron-down-CpVEjEyi.js";
13
15
  import "./chunks/search-Cm9mOqRy.js";
14
16
  // dist/components/bk-combobox.js
15
- var f = class extends o {
17
+ var m = class extends o {
16
18
  static properties = {
17
19
  ...o.properties,
18
20
  readonly: {
@@ -45,15 +47,19 @@ var f = class extends o {
45
47
  },
46
48
  query: { state: !0 },
47
49
  results: { state: !0 },
48
- text: { state: !0 }
50
+ text: { state: !0 },
51
+ searching: { state: !0 }
49
52
  };
53
+ searched;
54
+ shownLabel = "";
55
+ loader = new l(this);
50
56
  visible = [];
51
57
  labelCache = /* @__PURE__ */ new Map();
52
58
  matched;
53
59
  timer;
54
60
  controller;
55
61
  constructor() {
56
- super(), this.readonly = !1, this.type = "text", this.open = !1, this.allowCustom = !1, this.enterKeyHint = "", this.loading = !1, this.debounce = 150, this.emptyText = "", this.addLabel = "", this.query = "", this.results = [], this.text = "";
62
+ super(), this.readonly = !1, this.type = "text", this.open = !1, this.allowCustom = !1, this.enterKeyHint = "", this.loading = !1, this.debounce = 150, this.emptyText = "", this.addLabel = "", this.query = "", this.results = [], this.text = "", this.searching = !1;
57
63
  }
58
64
  get leadIcon() {
59
65
  return this.icon ?? (this.type === "search" ? "search" : void 0);
@@ -68,7 +74,10 @@ var f = class extends o {
68
74
  return this.visible;
69
75
  }
70
76
  disconnectedCallback() {
71
- super.disconnectedCallback(), clearTimeout(this.timer), this.controller?.abort();
77
+ super.disconnectedCallback(), clearTimeout(this.timer), this.controller?.abort(), this.searching && (this.searching = !1, this.loading = !1);
78
+ }
79
+ get busy() {
80
+ return this.loading || this.searching;
72
81
  }
73
82
  static styles = [...a("combobox"), n`
74
83
  :host { --_bk-text-field-font-size: var(--bk-combobox-font-size); }
@@ -102,7 +111,10 @@ var f = class extends o {
102
111
  return this.renderRoot?.querySelector("input") ?? null;
103
112
  }
104
113
  resetValue() {
105
- super.resetValue(), this.query = "", this.text = this.multiple ? "" : this.labelOf(this.value);
114
+ super.resetValue(), this.query = "", this.multiple ? this.text = "" : this.showLabel();
115
+ }
116
+ showLabel() {
117
+ this.text = this.shownLabel = this.labelOf(this.value);
106
118
  }
107
119
  get changeable() {
108
120
  return super.changeable && !this.readonly;
@@ -124,10 +136,11 @@ var f = class extends o {
124
136
  if (this.isDisabled || this.readonly) return;
125
137
  this.expanded || (this.expanded = !0, this.search && this.scheduleSearch()), this.visible = this.computeVisible();
126
138
  let t = this.multiple ? -1 : this.visible.findIndex((e) => e.value === this.value);
127
- this.activeIndex = t >= 0 && e >= 0 ? t : e === 0 ? -1 : u(this.visible, e);
139
+ this.activeIndex = t >= 0 && e >= 0 ? t : e === 0 ? -1 : d(this.visible, e);
128
140
  }
129
141
  labelOf(e) {
130
- return this.allOptions.find((t) => t.value === e)?.label ?? this.labelCache.get(e) ?? e;
142
+ let t = (t) => t.find((t) => t.value === e)?.label;
143
+ return t(this.allOptions) ?? this.labelCache.get(e) ?? (this.search ? t(super.allOptions) : void 0) ?? e;
131
144
  }
132
145
  remember(e) {
133
146
  this.labelCache.set(e.value, e.label);
@@ -142,7 +155,7 @@ var f = class extends o {
142
155
  if (r && r.q === e && r.opts === t && r.filter === this.filter && r.locale === n) t = r.list;
143
156
  else {
144
157
  let r = t;
145
- t = r.filter((t) => this.filter ? this.filter(t, e) : l(t.label, e, n) !== null), this.matched = {
158
+ t = r.filter((t) => this.filter ? this.filter(t, e) : u(t.label, e, n) !== null), this.matched = {
146
159
  q: e,
147
160
  opts: r,
148
161
  filter: this.filter,
@@ -154,7 +167,7 @@ var f = class extends o {
154
167
  if (this.maxed && (t = t.map((e) => this.selection.includes(e.value) || e.disabled ? e : {
155
168
  ...e,
156
169
  disabled: !0
157
- })), this.allowCustom && e && !this.maxed && !this.loading && !this.resolve(e) && !this.selection.includes(e)) {
170
+ })), this.allowCustom && e && !this.maxed && !this.busy && !this.resolve(e) && !this.selection.includes(e)) {
158
171
  let n = this.addLabel ? this.addLabel.replaceAll("{query}", e) : this.i18n.t("comboboxAdd", { query: e });
159
172
  t = [...t, {
160
173
  value: e,
@@ -167,20 +180,23 @@ var f = class extends o {
167
180
  }
168
181
  resolve(e) {
169
182
  let t = e.trim(), n = this.i18n.locale;
170
- return t ? this.allOptions.find((e) => !e.disabled && d(e.label, t, n)) : void 0;
183
+ return t ? this.allOptions.find((e) => !e.disabled && f(e.label, t, n)) : void 0;
171
184
  }
172
185
  willUpdate(e) {
173
186
  e.has("open") && this.open !== this.popupShown && (this.open ? this.showPicker() : this.close()), super.willUpdate(e);
174
- let t = e.has("options") || e.has("childOptions") || e.has("results");
187
+ let t = e.has("options") || e.has("childOptions") || e.has("results") || e.has("search");
175
188
  if (t) for (let e of this.allOptions) this.selection.includes(e.value) && this.remember(e);
176
- !this.multiple && (e.has("value") || e.has("values") || t && !this.query) && (this.text = this.labelOf(this.value)), this.visible = this.computeVisible(), this.activeIndex >= this.visible.length && (this.activeIndex = -1), this.frameRows(e.has("activeIndex") || e.has("expanded") || e.has("query")), this.open = this.popupShown;
189
+ !this.multiple && (e.has("value") || e.has("values") || t && this.text === this.shownLabel) && this.showLabel(), this.loader.set(this.busy), this.visible = this.computeVisible(), this.activeIndex >= this.visible.length && (this.activeIndex = -1), this.frameRows(e.has("activeIndex") || e.has("expanded") || e.has("query")), this.open = this.popupShown;
177
190
  }
178
191
  popupToggled(e) {
179
192
  c(this, e);
180
193
  }
181
194
  scheduleSearch() {
182
- if (clearTimeout(this.timer), this.controller?.abort(), !this.search) return;
183
- this.loading = !0;
195
+ if (clearTimeout(this.timer), this.controller?.abort(), !this.search) {
196
+ this.searching &&= this.loading = !1;
197
+ return;
198
+ }
199
+ this.searching = !0, this.loading = !0;
184
200
  let e = this.query.trim();
185
201
  this.timer = setTimeout(() => this.runSearch(e), Math.max(0, this.debounce));
186
202
  }
@@ -194,7 +210,7 @@ var f = class extends o {
194
210
  if (t.signal.aborted) return;
195
211
  this.results = [];
196
212
  }
197
- this.loading = !1, this.expanded && this.query.trim() && !this.allowCustom && (this.activeIndex = u(this.computeVisible(), 1));
213
+ this.searched = e, this.searching = !1, this.loading = !1, this.expanded && this.query.trim() && !this.allowCustom && (this.activeIndex = d(this.computeVisible(), 1));
198
214
  }
199
215
  pickRow(e) {
200
216
  let t = this.visible[e];
@@ -231,13 +247,13 @@ var f = class extends o {
231
247
  return;
232
248
  }
233
249
  let t = this.resolve(e);
234
- t ? (this.remember(t), this.commit([t.value]), this.text = t.label) : this.allowCustom ? (this.commit([e]), this.text = e) : this.text = this.labelOf(this.value);
250
+ t ? (this.remember(t), this.commit([t.value]), this.text = t.label) : this.allowCustom ? (this.commit([e]), this.text = e) : this.showLabel();
235
251
  }
236
252
  removeValue(e) {
237
253
  this.isDisabled || this.readonly || this.commit(this.selection.filter((t) => t !== e));
238
254
  }
239
255
  onInput(e) {
240
- e.stopPropagation(), this.text = e.target.value, this.query = this.text, this.expanded || this.openList(0), this.visible = this.computeVisible(), this.activeIndex = this.query.trim() && !this.allowCustom ? u(this.visible, 1) : -1, this.search && this.scheduleSearch();
256
+ e.stopPropagation(), this.text = e.target.value, this.query = this.text, this.expanded || this.openList(0), this.visible = this.computeVisible(), this.activeIndex = this.query.trim() && !this.allowCustom ? d(this.visible, 1) : -1, this.search && this.scheduleSearch();
241
257
  }
242
258
  onKeydown(e) {
243
259
  if (this.isDisabled || this.readonly || e.isComposing) return;
@@ -274,7 +290,7 @@ var f = class extends o {
274
290
  return;
275
291
  }
276
292
  let t = this.internals.form;
277
- t && setTimeout(() => t.requestSubmit());
293
+ t && setTimeout(() => p(t));
278
294
  return;
279
295
  }
280
296
  case ",":
@@ -302,15 +318,19 @@ var f = class extends o {
302
318
  onTagRemove(e, t) {
303
319
  e.stopPropagation(), this.removeValue(t), this.control?.focus();
304
320
  }
321
+ get noResults() {
322
+ let e = this.query.trim();
323
+ return !this.busy && !this.visible.length && !!e && !this.allowCustom && (!this.search || this.searched === e);
324
+ }
305
325
  get hasContent() {
306
- return this.loading || this.visible.length > 0 || !!this.query.trim() && !this.allowCustom;
326
+ return this.loader.visible || this.visible.length > 0 || this.noResults;
307
327
  }
308
328
  get popupShown() {
309
329
  return this.expanded && this.hasContent;
310
330
  }
311
331
  rowLabel = (e) => e.custom ? e.label : this.renderOption ? this.renderOption(e, this.markLabel(e)) : this.markLabel(e);
312
332
  markLabel = (t) => {
313
- let n = l(t.label, this.query, this.i18n.locale);
333
+ let n = u(t.label, this.query, this.i18n.locale);
314
334
  if (!n?.length) return t.label;
315
335
  let r = [], i = 0;
316
336
  for (let [a, o] of n) r.push(t.label.slice(i, a), e`<mark>${t.label.slice(a, o)}</mark>`), i = o;
@@ -325,13 +345,13 @@ var f = class extends o {
325
345
  }
326
346
  get announcement() {
327
347
  if (!this.expanded) return "";
328
- if (this.loading) return this.i18n.t("comboboxLoading");
348
+ if (this.busy) return this.loader.visible ? this.i18n.t("comboboxLoading") : "";
329
349
  if (!this.query.trim()) return "";
330
350
  let e = this.visible.filter((e) => !e.custom).length, t = this.visible.find((e) => e.custom);
331
- return !e && t ? t.label : e ? this.i18n.t("comboboxResults", { count: e }) : this.allowCustom ? "" : this.emptyText || this.i18n.t("comboboxNoResults");
351
+ return !e && t ? t.label : e ? this.i18n.t("comboboxResults", { count: e }) : this.noResults ? this.emptyText || this.i18n.t("comboboxNoResults") : "";
332
352
  }
333
353
  render() {
334
- let n = this.showInvalid, a = this.multiple && this.selection.length > 0, o = this.descriptionIds(a ? "tags-text" : void 0), s = `${this.key}-list`, c = this.label ? void 0 : this.forwardedName, l = this.popupShown, u = this.visible, d = !this.loading && !u.length && !!this.query.trim() && !this.allowCustom, f = this.loading && u.length > 0;
354
+ let n = this.showInvalid, a = this.multiple && this.selection.length > 0, o = this.descriptionIds(a ? "tags-text" : void 0), s = `${this.key}-list`, c = this.label ? void 0 : this.forwardedName, l = this.popupShown, u = this.visible, d = this.busy, f = this.noResults, p = d && u.length > 0;
335
355
  return e`<div @focusout=${this.onFocusOut}>
336
356
  ${this.renderField(e`<div class="${this.boxClass}${a ? " has-tags" : ""}${l ? " open" : ""}" part="box" @click=${this.onBoxClick}>
337
357
  ${this.renderStart()}
@@ -353,17 +373,17 @@ var f = class extends o {
353
373
  ${this.type === "search" ? t : e`<bk-icon class="chevron" part="chevron" name="chevron-down"></bk-icon>`}
354
374
  </div>`)}
355
375
  <div popover="manual" part="popup" @toggle=${this.onPopupToggle} @mousedown=${(e) => e.preventDefault()}>
356
- ${this.loading && !f ? e`<div class="status" part="status"><bk-spinner></bk-spinner>${this.i18n.t("comboboxLoading")}</div>` : t}
376
+ ${this.loader.visible && !u.length && !f ? e`<div class="status" part="status"><bk-spinner></bk-spinner>${this.i18n.t("comboboxLoading")}</div>` : t}
357
377
  <div role="listbox" part="listbox" id=${s} aria-label=${this.label || c || this.i18n.t("options")}
358
- aria-multiselectable=${this.multiple ? "true" : t} aria-busy=${this.loading ? "true" : t}>
359
- ${this.renderRows(this.rowLabel, f)}
378
+ aria-multiselectable=${this.multiple ? "true" : t} aria-busy=${d ? "true" : t}>
379
+ ${this.renderRows(this.rowLabel, p)}
360
380
  </div>
361
- ${d ? e`<div class="status" part="status">${this.emptyText || this.i18n.t("comboboxNoResults")}</div>` : t}
381
+ ${f ? e`<div class="status" part="status">${this.emptyText || this.i18n.t("comboboxNoResults")}</div>` : t}
362
382
  </div>
363
383
  <div class="sr-only" role="status">${this.announcement}</div>
364
384
  <slot></slot>
365
385
  </div>`;
366
386
  }
367
387
  };
368
- s("bk-combobox", f);
369
- export { f as BkCombobox, l as matchRanges };
388
+ s("bk-combobox", m);
389
+ export { m as BkCombobox, u as matchRanges };
@@ -1,12 +1,12 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as i } from "./chunks/define-CzVPD4Zi.js";
2
+ import { t as i } from "./chunks/define-DkVeu7e9.js";
3
3
  import { n as a } from "./chunks/events-DQ4e9cPN.js";
4
- import { t as o } from "./chunks/i18n-CNsBRNPu.js";
4
+ import { t as o } from "./chunks/i18n-DFfGgd3d.js";
5
5
  import { t as s } from "./chunks/state-XYmTmnOw.js";
6
- import { t as c, x as l } from "./chunks/styles-DwSR-9a3.js";
7
- import { a as u, n as d, r as f } from "./chunks/options-DMEc8rQt.js";
8
- import "./chunks/bk-icon-DssFsNuB.js";
9
- import "./chunks/bk-kbd-B7bz8hmV.js";
6
+ import { t as c, x as l } from "./chunks/styles-CaeyhYDA.js";
7
+ import { a as u, n as d, r as f } from "./chunks/options-BdC8-KKM.js";
8
+ import "./chunks/bk-icon-Bp_flKdv.js";
9
+ import "./bk-kbd.js";
10
10
  import "./bk-spinner.js";
11
11
  import { t as p } from "./chunks/scroll-CB6-StUs.js";
12
12
  import "./chunks/arrow-forward-vijvTQ6r.js";
@@ -1,11 +1,12 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { n as i, r as a, t as o } from "./chunks/define-CzVPD4Zi.js";
2
+ import { n as i, r as a, t as o } from "./chunks/define-DkVeu7e9.js";
3
3
  import { r as s } from "./chunks/events-DQ4e9cPN.js";
4
- import { t as c } from "./chunks/i18n-CNsBRNPu.js";
5
- import { t as l } from "./chunks/styles-DwSR-9a3.js";
6
- import { f as u, m as d } from "./chunks/bk-kbd-B7bz8hmV.js";
7
- import "./chunks/bk-dialog-a2BtUBf2.js";
4
+ import { t as c } from "./chunks/i18n-DFfGgd3d.js";
5
+ import { t as l } from "./chunks/styles-CaeyhYDA.js";
6
+ import { d as u, p as d } from "./chunks/shortcuts-DPxCSO4M.js";
7
+ import "./chunks/bk-dialog-DwZyUUHh.js";
8
8
  import { matchesQuery as f } from "./bk-command-menu.js";
9
+ import "./bk-kbd.js";
9
10
  // dist/components/bk-command-palette.js
10
11
  var p = 0, m = class extends n {
11
12
  static properties = {
@@ -2,16 +2,16 @@ import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as r } from "./chunks/if-defined-z_20pBRr.js";
3
3
  import { t as i } from "./chunks/live-CgLyfc6z.js";
4
4
  import { t as a } from "./chunks/style-map-BMvn17E7.js";
5
- import { t as o } from "./chunks/i18n-CNsBRNPu.js";
5
+ import { t as o } from "./chunks/i18n-DFfGgd3d.js";
6
6
  import { o as s, t as c } from "./chunks/anchor-CNX3nt2F.js";
7
- import { t as l } from "./chunks/announcer-haFcvqbe.js";
8
- import { a as u, c as d, d as f, t as p } from "./chunks/options-DMEc8rQt.js";
9
- import { t as m } from "./chunks/define-CzVPD4Zi.js";
7
+ import { t as l } from "./chunks/announcer-D1zrRWwO.js";
8
+ import { a as u, c as d, d as f, t as p } from "./chunks/options-BdC8-KKM.js";
9
+ import { t as m } from "./chunks/define-DkVeu7e9.js";
10
10
  import { n as h, t as g } from "./chunks/events-DQ4e9cPN.js";
11
- import { t as _ } from "./chunks/form-control-D7dqSP9M.js";
11
+ import { t as _ } from "./chunks/form-control-CHpfKAKa.js";
12
12
  import { t as v } from "./chunks/slots-BHTtBbPo.js";
13
13
  import { t as y } from "./chunks/state-XYmTmnOw.js";
14
- import { b, r as x, s as S, t as C } from "./chunks/styles-DwSR-9a3.js";
14
+ import { b, r as x, s as S, t as C } from "./chunks/styles-CaeyhYDA.js";
15
15
  import "./bk-button.js";
16
16
  import { t as w } from "./chunks/scroll-CB6-StUs.js";
17
17
  import "./chunks/send-LUt9DMGS.js";
@@ -1,12 +1,13 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as i } from "./chunks/define-CzVPD4Zi.js";
3
- import { t as a } from "./chunks/i18n-CNsBRNPu.js";
4
- import { t as o, x as s } from "./chunks/styles-DwSR-9a3.js";
2
+ import { t as i } from "./chunks/define-DkVeu7e9.js";
3
+ import { t as a } from "./chunks/i18n-DFfGgd3d.js";
4
+ import { t as o, x as s } from "./chunks/styles-CaeyhYDA.js";
5
5
  import { a as c, i as l, n as u, r as d, t as f } from "./chunks/delta-C3KtTv5o.js";
6
6
  // dist/components/bk-delta.js
7
7
  var p = class extends n {
8
8
  static properties = {
9
9
  value: { type: Number },
10
+ valueText: { attribute: "value-text" },
10
11
  previous: { type: Number },
11
12
  variant: {
12
13
  reflect: !0,
@@ -83,16 +84,16 @@ var p = class extends n {
83
84
  if (this.new) return e`<span class="new" part="change">${this.i18n.t("deltaNew")}</span>`;
84
85
  let r = this.value;
85
86
  if (r == null || !Number.isFinite(r)) return t;
86
- let i = f(r);
87
- if (i === "flat") return this.pair(e`<span class="change flat" part="change">–</span>`, this.i18n.t("statFlat"));
88
- let a = c(r, this.notation === "compact"), o = a ? {
87
+ let i = f(r), a = this.valueText || void 0;
88
+ if (i === "flat") return this.pair(e`<span class="change flat" part="change">${a ?? "–"}</span>`, this.i18n.t("statFlat"));
89
+ let o = c(r, this.notation === "compact"), s = o ? {
89
90
  notation: "compact",
90
91
  maximumFractionDigits: 1,
91
92
  ...this.format
92
- } : this.format, s = d(n, r, this.format);
93
- if (this.variant === "count") return this.pair(e`<span class="change count" part="change">${d(n, r, o)}</span>`, s, a ? s : void 0);
94
- let l = d(n, Math.abs(r), o, "never"), p = this.i18n.t(i === "up" ? "deltaUp" : "deltaDown", { value: d(n, Math.abs(r), this.format, "never") });
95
- return this.pair(e`<span class="change ${u(i, this.inverted)}" part="change">${this.mark(i)}${l}</span>`, p, a ? s : void 0);
93
+ } : this.format, l = a ?? d(n, r, this.format);
94
+ if (this.variant === "count") return this.pair(e`<span class="change count" part="change">${a ?? d(n, r, s)}</span>`, l, o && !a ? l : void 0);
95
+ let p = a ?? d(n, Math.abs(r), s, "never"), m = this.i18n.t(i === "up" ? "deltaUp" : "deltaDown", { value: a ?? d(n, Math.abs(r), this.format, "never") });
96
+ return this.pair(e`<span class="change ${u(i, this.inverted)}" part="change">${this.mark(i)}${p}</span>`, m, o && !a ? l : void 0);
96
97
  }
97
98
  renderRank() {
98
99
  let n = this.i18n.locale, r = this.value;
@@ -1 +1 @@
1
- export { t as BkDiagram, n as registerDiagramFonts } from "./chunks/bk-diagram-CpOpicmo.js";
1
+ export { t as BkDiagram, n as registerDiagramFonts } from "./chunks/bk-diagram-D_fQf6SF.js";
@@ -1 +1 @@
1
- export { t as BkDialog } from "./chunks/bk-dialog-a2BtUBf2.js";
1
+ export { t as BkDialog } from "./chunks/bk-dialog-DwZyUUHh.js";
@@ -1,9 +1,9 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as i } from "./chunks/define-CzVPD4Zi.js";
2
+ import { t as i } from "./chunks/define-DkVeu7e9.js";
3
3
  import { i as a } from "./chunks/events-DQ4e9cPN.js";
4
4
  import { t as o } from "./chunks/slots-BHTtBbPo.js";
5
- import { t as s, v as c } from "./chunks/styles-DwSR-9a3.js";
6
- import "./chunks/bk-icon-DssFsNuB.js";
5
+ import { t as s, v as c } from "./chunks/styles-CaeyhYDA.js";
6
+ import "./chunks/bk-icon-Bp_flKdv.js";
7
7
  import "./chunks/arrow-right-BpHbedfW.js";
8
8
  import "./chunks/chevron-down-CpVEjEyi.js";
9
9
  // dist/components/bk-disclosure.js
@@ -90,8 +90,10 @@ var l = class extends n {
90
90
  :host(:dir(rtl)[open]) .caret { rotate: -90deg; }
91
91
  /* The end content can give way, but never runs past the line. */
92
92
  .end { display: inline-flex; align-items: center; gap: var(--bk-disclosure-gap, var(--bk-space-1)); flex: 0 1 auto; min-width: 0; overflow: hidden; }
93
- /* A text in it that can be cut (overflow=ellipsis) gives way before the rest of the end content. */
94
- .end.cut { flex-shrink: 1000000; }
93
+ /* A text in it that can be cut (overflow=ellipsis) gives way before the label and the rest of the end content.
94
+ The end takes only the free room (basis 0): a shrink factor alone also takes a fraction of a pixel from the label. */
95
+ .end.cut { flex: 1 1 0; }
96
+ :host(:is([variant="row"], [variant="thread"])) .end.cut { justify-content: flex-end; }
95
97
  .end.cut ::slotted(*) { flex: none; }
96
98
  .end.cut ::slotted([overflow="ellipsis"]) { flex: 0 1 auto; min-width: 0; }
97
99
  .content { padding-block-start: var(--bk-disclosure-content-gap, var(--bk-space-1)); }
@@ -1,6 +1,6 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { n as r, r as i, t as a } from "./chunks/define-CzVPD4Zi.js";
3
- import { t as o } from "./chunks/styles-DwSR-9a3.js";
2
+ import { n as r, r as i, t as a } from "./chunks/define-DkVeu7e9.js";
3
+ import { t as o } from "./chunks/styles-CaeyhYDA.js";
4
4
  // dist/components/bk-divider.js
5
5
  var s = /* @__PURE__ */ new Set([
6
6
  "bk-stack",
@@ -1,8 +1,8 @@
1
1
  import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as n } from "./chunks/i18n-CNsBRNPu.js";
3
- import { t as r } from "./chunks/define-CzVPD4Zi.js";
2
+ import { t as n } from "./chunks/i18n-DFfGgd3d.js";
3
+ import { t as r } from "./chunks/define-DkVeu7e9.js";
4
4
  import { r as i } from "./chunks/events-DQ4e9cPN.js";
5
- import { t as a } from "./chunks/bk-dialog-a2BtUBf2.js";
5
+ import { t as a } from "./chunks/bk-dialog-DwZyUUHh.js";
6
6
  // dist/components/bk-drawer.js
7
7
  var o = 8, s = class extends a {
8
8
  static properties = {
@@ -1,6 +1,6 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/define-CzVPD4Zi.js";
3
- import { t as i } from "./chunks/styles-DwSR-9a3.js";
2
+ import { t as r } from "./chunks/define-DkVeu7e9.js";
3
+ import { t as i } from "./chunks/styles-CaeyhYDA.js";
4
4
  // dist/components/bk-drop-target.js
5
5
  var a = class extends t {
6
6
  static properties = {
@@ -25,11 +25,17 @@ var a = class extends t {
25
25
  }
26
26
  @media (forced-colors: active) { :host(:state(receiving)) { outline-color: Highlight; } }
27
27
  `];
28
- takes(e) {
29
- if (this.disabled || !e.dataTransfer) return !1;
28
+ acceptsType(e) {
29
+ if (!e.dataTransfer) return !1;
30
30
  let t = this.accept.split(/[\s,]+/).filter(Boolean);
31
31
  return !t.length || t.some((t) => e.dataTransfer.types.includes(t));
32
32
  }
33
+ takes(e) {
34
+ return !this.disabled && this.acceptsType(e);
35
+ }
36
+ refuse(e) {
37
+ return !this.disabled || !this.acceptsType(e) ? !1 : (e.preventDefault(), e.dataTransfer.dropEffect = "none", !0);
38
+ }
33
39
  set receiving(e) {
34
40
  e ? this.internals.states.add("receiving") : this.internals.states.delete("receiving");
35
41
  }
@@ -37,13 +43,13 @@ var a = class extends t {
37
43
  this.takes(e) && (e.preventDefault(), this.depth++, this.receiving = !0);
38
44
  };
39
45
  onOver = (e) => {
40
- this.takes(e) && (e.preventDefault(), e.dataTransfer.dropEffect = this.effect, this.receiving = !0);
46
+ !this.refuse(e) && this.takes(e) && (e.preventDefault(), e.dataTransfer.dropEffect = this.effect, this.receiving = !0);
41
47
  };
42
48
  onLeave = (e) => {
43
49
  this.takes(e) && (this.depth = Math.max(0, this.depth - 1), this.depth || (this.receiving = !1));
44
50
  };
45
51
  onDrop = (e) => {
46
- this.takes(e) && (e.preventDefault(), this.depth = 0, this.receiving = !1);
52
+ this.refuse(e) ? e.stopImmediatePropagation() : this.takes(e) && (e.preventDefault(), this.depth = 0, this.receiving = !1);
47
53
  };
48
54
  updated() {
49
55
  this.disabled && (this.depth = 0, this.receiving = !1);
@@ -1,8 +1,8 @@
1
- import { t as e } from "./chunks/heading-text-CV5gBf7k.js";
1
+ import { t as e } from "./chunks/heading-text-CgnCa_q2.js";
2
2
  import { a as t, n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
3
- import { t as a } from "./chunks/define-CzVPD4Zi.js";
3
+ import { t as a } from "./chunks/define-DkVeu7e9.js";
4
4
  import { t as o } from "./chunks/slots-BHTtBbPo.js";
5
- import { h as s, t as c } from "./chunks/styles-DwSR-9a3.js";
5
+ import { h as s, t as c } from "./chunks/styles-CaeyhYDA.js";
6
6
  import "./bk-icon-tile.js";
7
7
  // dist/components/bk-empty-state.js
8
8
  var l = class extends r {
@@ -1,8 +1,8 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/define-CzVPD4Zi.js";
3
- import { t as i } from "./chunks/i18n-CNsBRNPu.js";
2
+ import { t as r } from "./chunks/define-DkVeu7e9.js";
3
+ import { t as i } from "./chunks/i18n-DFfGgd3d.js";
4
4
  import { t as a } from "./chunks/slots-BHTtBbPo.js";
5
- import { t as o } from "./chunks/styles-DwSR-9a3.js";
5
+ import { t as o } from "./chunks/styles-CaeyhYDA.js";
6
6
  import "./bk-alert.js";
7
7
  // dist/components/bk-error-summary.js
8
8
  var s = !1, c = !1;
@@ -42,7 +42,7 @@ var d = class extends t {
42
42
  static styles = [o, n`
43
43
  :host { display: block; outline: none; }
44
44
  :host(:state(empty)) { display: none; }
45
- :host(:focus-visible[data-keyboard]) bk-alert::part(base) { outline: var(--bk-focus-ring); outline-offset: var(--bk-focus-offset); }
45
+ :host(:focus-visible:state(key-focus)) bk-alert::part(base) { outline: var(--bk-focus-ring); outline-offset: var(--bk-focus-offset); }
46
46
  ul { display: grid; gap: var(--bk-error-summary-gap, var(--bk-space-1)); margin: 0; padding-inline-start: var(--bk-space-4); }
47
47
  ul:empty { display: none; }
48
48
  a {
@@ -60,7 +60,7 @@ var d = class extends t {
60
60
  return this.closest("form");
61
61
  }
62
62
  connectedCallback() {
63
- super.connectedCallback(), this.hasAttribute("tabindex") || (this.tabIndex = -1), l(), this.watch(), !this.watched && document.readyState === "loading" && document.addEventListener("DOMContentLoaded", () => this.watch(), { once: !0 });
63
+ super.connectedCallback(), l(), this.watch(), !this.watched && document.readyState === "loading" && document.addEventListener("DOMContentLoaded", () => this.watch(), { once: !0 });
64
64
  }
65
65
  disconnectedCallback() {
66
66
  super.disconnectedCallback(), this.unwatch();
@@ -76,8 +76,11 @@ var d = class extends t {
76
76
  let t = this.heading || this.i18n.t("errorSummaryHeading");
77
77
  this.internals.ariaLabel = t, !this.entries.length && !this.slots.has("") ? this.internals.states.add("empty") : this.internals.states.delete("empty");
78
78
  }
79
+ focus(e) {
80
+ this.hasAttribute("tabindex") || (this.setAttribute("tabindex", "-1"), this.addEventListener("blur", () => this.removeAttribute("tabindex"), { once: !0 })), super.focus(e);
81
+ }
79
82
  updated() {
80
- this.focusPending && (this.focusPending = !1, this.entries.length && (this.toggleAttribute("data-keyboard", s), this.focus({
83
+ this.focusPending && (this.focusPending = !1, this.entries.length && (s ? this.internals.states.add("key-focus") : this.internals.states.delete("key-focus"), this.focus({
81
84
  preventScroll: !0,
82
85
  focusVisible: s
83
86
  }), this.scrollIntoView({ block: "nearest" })));
@@ -1,7 +1,7 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/define-CzVPD4Zi.js";
2
+ import { t as r } from "./chunks/define-DkVeu7e9.js";
3
3
  import { t as i } from "./chunks/slots-BHTtBbPo.js";
4
- import { t as a } from "./chunks/styles-DwSR-9a3.js";
4
+ import { t as a } from "./chunks/styles-CaeyhYDA.js";
5
5
  // dist/components/bk-facts-item.js
6
6
  var o = class extends t {
7
7
  static properties = {
@@ -16,18 +16,20 @@ var o = class extends t {
16
16
  }
17
17
  static styles = [a, n`
18
18
  :host {
19
- display: var(--_bk-facts-display, grid); flex-wrap: wrap; align-content: start; min-width: 0;
20
- gap: var(--bk-facts-item-gap, var(--bk-space-1)) var(--_bk-facts-col-gap, 0px);
19
+ display: grid; align-content: start; min-width: 0;
20
+ row-gap: var(--bk-facts-item-gap, var(--bk-space-1)); grid-column: var(--_bk-facts-span, auto);
21
+ grid-template-columns: var(--_bk-facts-subgrid, none);
21
22
  padding-block: var(--_bk-facts-pad, 0px); align-items: baseline;
22
23
  }
23
24
  /* A long word (a German compound) breaks inside the label column: hyphens in the language of the page, else anywhere. */
24
- .label { flex: var(--_bk-facts-label-flex, none); min-inline-size: 0; hyphens: auto; overflow-wrap: anywhere; }
25
- .value { flex: var(--_bk-facts-value-flex, none); }
26
- .actions { flex: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--bk-space-cluster); justify-self: start; }
25
+ .label { grid-area: var(--_bk-facts-label-area, auto); min-inline-size: 0; padding-inline-end: var(--_bk-facts-col-gap, 0px); hyphens: auto; overflow-wrap: anywhere; }
26
+ .actions { grid-area: var(--_bk-facts-actions-area, auto); display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--bk-space-cluster); justify-self: start; }
27
+ .actions:not([hidden]) { margin-inline-start: var(--_bk-facts-col-gap, 0px); }
27
28
  .actions[hidden] { display: none; }
29
+ :host([data-type="number"]) .value { text-align: end; font-variant-numeric: tabular-nums; }
28
30
  :host([wide]) { grid-column: 1 / -1; }
29
31
  .label { font-size: var(--bk-facts-item-label-size, var(--bk-label-size, var(--bk-text-xs))); font-weight: var(--bk-label-weight, inherit); text-transform: var(--bk-label-transform, none); letter-spacing: var(--bk-label-tracking, normal); line-height: var(--bk-line-height-heading); font-family: var(--bk-font-label, inherit); color: var(--bk-facts-item-label-fg, var(--bk-label-color, var(--bk-text-muted))); }
30
- .value { min-width: 0; font-size: var(--bk-facts-item-value-size, var(--bk-type-body)); line-height: var(--bk-line-height-body); color: var(--bk-facts-item-value-fg, var(--bk-text)); overflow-wrap: anywhere; }
32
+ .value { grid-area: var(--_bk-facts-value-area, auto); min-width: 0; font-size: var(--bk-facts-item-value-size, var(--bk-type-body)); line-height: var(--bk-line-height-body); color: var(--bk-facts-item-value-fg, var(--bk-text)); overflow-wrap: break-word; }
31
33
  `];
32
34
  slots = new i(this);
33
35
  render() {
@@ -1,8 +1,9 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/define-CzVPD4Zi.js";
3
- import { t as i } from "./chunks/styles-DwSR-9a3.js";
2
+ import { t as r } from "./chunks/define-DkVeu7e9.js";
3
+ import { t as i } from "./chunks/host-vars-DTKbhBPu.js";
4
+ import { t as a } from "./chunks/styles-CaeyhYDA.js";
4
5
  // dist/components/bk-facts.js
5
- var a = class extends t {
6
+ var o = class extends t {
6
7
  static properties = {
7
8
  min: { reflect: !0 },
8
9
  layout: {
@@ -13,30 +14,41 @@ var a = class extends t {
13
14
  constructor() {
14
15
  super(), this.layout = "columns", this.attachInternals().role = "list";
15
16
  }
16
- static styles = [i, n`
17
+ static styles = [a, n`
17
18
  :host {
18
19
  display: grid; min-width: 0;
19
20
  gap: var(--bk-facts-gap-block, var(--bk-space-4)) var(--bk-facts-gap-inline, var(--bk-space-5));
20
- grid-template-columns: repeat(auto-fit, minmax(min(var(--bk-facts-min, 160px), 100%), 1fr));
21
+ grid-template-columns: repeat(auto-fit, minmax(min(var(--_bk-facts-min, var(--bk-facts-min, 160px)), 100%), 1fr));
21
22
  }
22
- :host([layout="rows"]) { display: block; }
23
- /* Private variables inherit into the items; an item reads them to lay out its row. The value wraps below the label
24
- when the row is narrower than the label plus --bk-facts-rows-min. */
23
+ /* One grid for all rows: the label column is as wide as the widest label, up to --bk-facts-label-width, and never
24
+ leaves less than --bk-facts-rows-min for the value. Each item spans the columns as a subgrid: label, value, actions. */
25
+ :host([layout="rows"]) { display: block; container-type: inline-size; }
26
+ .rows { display: contents; }
27
+ :host([layout="rows"]) .rows {
28
+ display: grid;
29
+ grid-template-columns: fit-content(max(min(var(--bk-facts-label-width, 60%), calc(100% - var(--bk-facts-rows-min, var(--bk-measure-min)))), var(--bk-measure-min) / 2)) minmax(0, 1fr) auto;
30
+ column-gap: 0; row-gap: 0;
31
+ }
32
+ /* Private variables inherit into the items; an item reads them to lay out its row. */
25
33
  :host([layout="rows"]) ::slotted(bk-facts-item) {
26
- --_bk-facts-display: flex;
27
- --_bk-facts-label-flex: 1 0 var(--bk-facts-label-width, 30%);
28
- --_bk-facts-value-flex: 1000 1 var(--bk-facts-rows-min, var(--bk-measure-min));
29
- --_bk-facts-pad: var(--bk-facts-row-gap, var(--bk-space-3));
34
+ --_bk-facts-subgrid: subgrid; --_bk-facts-span: 1 / -1;
30
35
  --_bk-facts-col-gap: var(--bk-facts-gap-inline, var(--bk-space-5));
36
+ --_bk-facts-pad: var(--bk-facts-row-gap, var(--bk-space-3));
31
37
  }
32
38
  :host([layout="rows"]) ::slotted(bk-facts-item:not(:first-child)) { border-block-start: var(--bk-border-width) solid var(--bk-facts-row-divider, var(--bk-line)); }
39
+ /* A narrow list: the label and the actions share the first line, the value takes the line below at full width.
40
+ A container query cannot read a token, so the breakpoint is fixed. */
41
+ @container (inline-size < 24rem) {
42
+ .rows { grid-template-columns: minmax(0, 1fr) auto !important; }
43
+ ::slotted(bk-facts-item) { --_bk-facts-label-area: 1 / 1; --_bk-facts-actions-area: 1 / 2; --_bk-facts-value-area: 2 / 1 / 3 / -1; }
44
+ }
33
45
  `];
34
46
  updated() {
35
- this.min ? this.style.setProperty("--bk-facts-min", this.min) : this.style.removeProperty("--bk-facts-min");
47
+ i(this, { "--_bk-facts-min": this.min || "" });
36
48
  }
37
49
  render() {
38
- return e`<slot></slot>`;
50
+ return e`<div class="rows"><slot></slot></div>`;
39
51
  }
40
52
  };
41
- r("bk-facts", a);
42
- export { a as BkFacts };
53
+ r("bk-facts", o);
54
+ export { o as BkFacts };
@@ -1,8 +1,8 @@
1
- import { t as e } from "./chunks/heading-text-CV5gBf7k.js";
1
+ import { t as e } from "./chunks/heading-text-CgnCa_q2.js";
2
2
  import { a as t, n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
3
- import { t as a } from "./chunks/define-CzVPD4Zi.js";
3
+ import { t as a } from "./chunks/define-DkVeu7e9.js";
4
4
  import { t as o } from "./chunks/slots-BHTtBbPo.js";
5
- import { h as s, t as c } from "./chunks/styles-DwSR-9a3.js";
5
+ import { h as s, t as c } from "./chunks/styles-CaeyhYDA.js";
6
6
  import "./bk-icon-tile.js";
7
7
  // dist/components/bk-feature.js
8
8
  var l = class extends r {