@bk2k/ui 0.6.8 → 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 (471) hide show
  1. package/BUILDING.md +56 -2
  2. package/CHANGELOG.md +136 -0
  3. package/USAGE.md +89 -26
  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.js +2 -1
  9. package/dist/clipboard.js +1 -0
  10. package/dist/components/bk-alert.js +2 -1
  11. package/dist/components/bk-avatar-group.js +4 -6
  12. package/dist/components/bk-avatar.d.ts +10 -0
  13. package/dist/components/bk-avatar.js +17 -0
  14. package/dist/components/bk-bar.js +2 -0
  15. package/dist/components/bk-button-group.js +1 -1
  16. package/dist/components/bk-button-top.js +2 -1
  17. package/dist/components/bk-button.d.ts +37 -14
  18. package/dist/components/bk-button.js +52 -16
  19. package/dist/components/bk-card.d.ts +4 -0
  20. package/dist/components/bk-card.js +15 -2
  21. package/dist/components/bk-carousel-controls.d.ts +2 -0
  22. package/dist/components/bk-carousel-controls.js +4 -2
  23. package/dist/components/bk-chart-area.d.ts +6 -0
  24. package/dist/components/bk-chart-bar.d.ts +17 -0
  25. package/dist/components/bk-chart-bar.js +25 -4
  26. package/dist/components/bk-chart-line.d.ts +13 -0
  27. package/dist/components/bk-chart-line.js +11 -1
  28. package/dist/components/bk-chip-group.d.ts +2 -2
  29. package/dist/components/bk-chip-group.js +4 -0
  30. package/dist/components/bk-chip.d.ts +53 -8
  31. package/dist/components/bk-chip.js +43 -7
  32. package/dist/components/bk-code.js +6 -2
  33. package/dist/components/bk-columns.d.ts +11 -0
  34. package/dist/components/bk-columns.js +8 -1
  35. package/dist/components/bk-combobox.d.ts +1 -1
  36. package/dist/components/bk-combobox.js +2 -1
  37. package/dist/components/bk-delta.d.ts +10 -0
  38. package/dist/components/bk-delta.js +8 -6
  39. package/dist/components/bk-dialog.d.ts +12 -5
  40. package/dist/components/bk-dialog.js +14 -6
  41. package/dist/components/bk-disclosure.js +4 -2
  42. package/dist/components/bk-drop-target.d.ts +7 -1
  43. package/dist/components/bk-drop-target.js +20 -4
  44. package/dist/components/bk-error-summary.d.ts +5 -0
  45. package/dist/components/bk-error-summary.js +13 -4
  46. package/dist/components/bk-facts.js +3 -2
  47. package/dist/components/bk-footnote.d.ts +73 -0
  48. package/dist/components/bk-footnote.js +97 -0
  49. package/dist/components/bk-footnotes-item.d.ts +92 -0
  50. package/dist/components/bk-footnotes-item.js +139 -0
  51. package/dist/components/bk-footnotes.d.ts +51 -0
  52. package/dist/components/bk-footnotes.js +43 -0
  53. package/dist/components/bk-icon.js +2 -2
  54. package/dist/components/bk-image-compare.d.ts +33 -5
  55. package/dist/components/bk-image-compare.js +72 -24
  56. package/dist/components/bk-image-crop.d.ts +3 -3
  57. package/dist/components/bk-image-editor.d.ts +1 -1
  58. package/dist/components/bk-image-viewer.d.ts +107 -11
  59. package/dist/components/bk-image-viewer.js +205 -34
  60. package/dist/components/bk-input-inline.d.ts +15 -6
  61. package/dist/components/bk-input-inline.js +22 -6
  62. package/dist/components/bk-input-number.js +2 -1
  63. package/dist/components/bk-input-search.d.ts +1 -1
  64. package/dist/components/bk-input-search.js +2 -1
  65. package/dist/components/bk-input-text.d.ts +11 -0
  66. package/dist/components/bk-input-text.js +17 -3
  67. package/dist/components/bk-input-time.js +2 -1
  68. package/dist/components/bk-item.js +2 -1
  69. package/dist/components/bk-lightbox.d.ts +12 -3
  70. package/dist/components/bk-lightbox.js +6 -3
  71. package/dist/components/bk-link.d.ts +9 -1
  72. package/dist/components/bk-link.js +14 -4
  73. package/dist/components/bk-menu-item.d.ts +40 -0
  74. package/dist/components/bk-menu-item.js +57 -9
  75. package/dist/components/bk-menu-label.js +2 -1
  76. package/dist/components/bk-menu-list.d.ts +1 -0
  77. package/dist/components/bk-menu-list.js +10 -0
  78. package/dist/components/bk-menu.d.ts +8 -1
  79. package/dist/components/bk-menu.js +16 -5
  80. package/dist/components/bk-message-feedback.d.ts +4 -3
  81. package/dist/components/bk-message-feedback.js +7 -5
  82. package/dist/components/bk-message-list.js +2 -1
  83. package/dist/components/bk-message-source.d.ts +1 -2
  84. package/dist/components/bk-message-source.js +3 -11
  85. package/dist/components/bk-message.js +2 -0
  86. package/dist/components/bk-nav-group.js +1 -1
  87. package/dist/components/bk-nav-item.d.ts +18 -0
  88. package/dist/components/bk-nav-item.js +18 -5
  89. package/dist/components/bk-nav.d.ts +1 -1
  90. package/dist/components/bk-page-cta.js +2 -0
  91. package/dist/components/bk-page-section.d.ts +1 -1
  92. package/dist/components/bk-page-section.js +3 -9
  93. package/dist/components/bk-pane.d.ts +1 -0
  94. package/dist/components/bk-pane.js +7 -5
  95. package/dist/components/bk-panel.d.ts +1 -1
  96. package/dist/components/bk-panel.js +6 -5
  97. package/dist/components/bk-picture.d.ts +17 -4
  98. package/dist/components/bk-picture.js +8 -1
  99. package/dist/components/bk-segmented-item.d.ts +24 -4
  100. package/dist/components/bk-segmented-item.js +37 -5
  101. package/dist/components/bk-segmented.js +2 -13
  102. package/dist/components/bk-select-cascade.d.ts +1 -1
  103. package/dist/components/bk-select-tree.d.ts +1 -1
  104. package/dist/components/bk-select.d.ts +1 -1
  105. package/dist/components/bk-shell-app.d.ts +10 -4
  106. package/dist/components/bk-shell-app.js +32 -9
  107. package/dist/components/bk-shell-sites.d.ts +2 -1
  108. package/dist/components/bk-shell-sites.js +3 -5
  109. package/dist/components/bk-sortable.js +7 -17
  110. package/dist/components/bk-split-grid.d.ts +104 -3
  111. package/dist/components/bk-split-grid.js +425 -2
  112. package/dist/components/bk-stat-group.js +2 -1
  113. package/dist/components/bk-stat.d.ts +17 -0
  114. package/dist/components/bk-stat.js +7 -3
  115. package/dist/components/bk-steps.js +2 -1
  116. package/dist/components/bk-surface.d.ts +2 -0
  117. package/dist/components/bk-surface.js +6 -3
  118. package/dist/components/bk-table.d.ts +1 -1
  119. package/dist/components/bk-table.js +9 -12
  120. package/dist/components/bk-tabs-item.d.ts +45 -7
  121. package/dist/components/bk-tabs-item.js +51 -20
  122. package/dist/components/bk-tabs-panel.d.ts +6 -3
  123. package/dist/components/bk-tabs-panel.js +6 -0
  124. package/dist/components/bk-tabs.d.ts +50 -7
  125. package/dist/components/bk-tabs.js +168 -96
  126. package/dist/components/bk-text.js +2 -1
  127. package/dist/components/bk-toast-group.d.ts +3 -1
  128. package/dist/components/bk-toast-group.js +11 -1
  129. package/dist/components/bk-tooltip.d.ts +3 -1
  130. package/dist/components/bk-tooltip.js +2 -1
  131. package/dist/components/bk-video.js +2 -2
  132. package/dist/components/bk-zoom.d.ts +3 -1
  133. package/dist/components/confirm.d.ts +15 -0
  134. package/dist/components/confirm.js +27 -4
  135. package/dist/i18n/de.js +12 -1
  136. package/dist/i18n/en.d.ts +2 -0
  137. package/dist/i18n/en.js +3 -0
  138. package/dist/i18n.d.ts +16 -2
  139. package/dist/i18n.js +28 -4
  140. package/dist/icons/brands-static.d.ts +3 -0
  141. package/dist/icons/brands-static.js +5 -0
  142. package/dist/icons/core.d.ts +1 -0
  143. package/dist/icons/core.js +2 -0
  144. package/dist/icons/load-static.d.ts +3 -0
  145. package/dist/icons/load-static.js +5 -0
  146. package/dist/icons/load.js +1 -0
  147. package/dist/icons/registry.js +1 -1
  148. package/dist/icons/set/save-as.d.ts +3 -0
  149. package/dist/icons/set/save-as.js +7 -0
  150. package/dist/index.d.ts +3 -0
  151. package/dist/index.js +3 -0
  152. package/dist/internal/announcer.d.ts +8 -1
  153. package/dist/internal/announcer.js +26 -10
  154. package/dist/internal/backdrop.d.ts +19 -0
  155. package/dist/internal/backdrop.js +29 -0
  156. package/dist/internal/busy.d.ts +3 -2
  157. package/dist/internal/busy.js +4 -5
  158. package/dist/internal/choice-field.js +1 -1
  159. package/dist/internal/choice-item.d.ts +17 -6
  160. package/dist/internal/choice-item.js +20 -9
  161. package/dist/internal/cloak.js +3 -0
  162. package/dist/internal/crop-frame.d.ts +1 -1
  163. package/dist/internal/crop-frame.js +2 -7
  164. package/dist/internal/date-field.js +2 -1
  165. package/dist/internal/drag.d.ts +11 -0
  166. package/dist/internal/drag.js +23 -0
  167. package/dist/internal/english-static.d.ts +3 -0
  168. package/dist/internal/english-static.js +5 -0
  169. package/dist/internal/english.d.ts +8 -0
  170. package/dist/internal/english.js +6 -0
  171. package/dist/internal/footnotes.d.ts +56 -0
  172. package/dist/internal/footnotes.js +143 -0
  173. package/dist/internal/handle-menu.js +2 -5
  174. package/dist/internal/late/bk-shell-app.d.ts +4 -0
  175. package/dist/internal/late/bk-shell-app.js +7 -0
  176. package/dist/internal/late/bk-table.d.ts +4 -0
  177. package/dist/internal/late/bk-table.js +17 -0
  178. package/dist/internal/late/handle-menu.d.ts +4 -0
  179. package/dist/internal/late/handle-menu.js +9 -0
  180. package/dist/internal/late/static.d.ts +7 -0
  181. package/dist/internal/late/static.js +5 -0
  182. package/dist/internal/late.d.ts +8 -3
  183. package/dist/internal/late.js +19 -4
  184. package/dist/internal/link.d.ts +2 -0
  185. package/dist/internal/link.js +11 -1
  186. package/dist/internal/own-text.d.ts +8 -0
  187. package/dist/internal/own-text.js +7 -0
  188. package/dist/internal/scope.js +1 -1
  189. package/dist/internal/scroll-lock.d.ts +4 -1
  190. package/dist/internal/scroll-lock.js +17 -4
  191. package/dist/internal/slider.js +2 -1
  192. package/dist/internal/styles.js +3 -0
  193. package/dist/internal/submit.d.ts +23 -0
  194. package/dist/internal/submit.js +57 -0
  195. package/dist/jsx.d.ts +141 -52
  196. package/dist/reset.css +10 -0
  197. package/dist/standalone/all.js +226 -222
  198. package/dist/standalone/appearance.js +1 -1
  199. package/dist/standalone/bk-accordion-item.js +4 -4
  200. package/dist/standalone/bk-accordion.js +2 -2
  201. package/dist/standalone/bk-action-bar.js +3 -3
  202. package/dist/standalone/bk-alert-offline.js +1 -2
  203. package/dist/standalone/bk-alert.js +13 -12
  204. package/dist/standalone/bk-app-state.js +1 -1
  205. package/dist/standalone/bk-attachment.js +4 -4
  206. package/dist/standalone/bk-avatar-group.js +12 -10
  207. package/dist/standalone/bk-avatar.js +14 -4
  208. package/dist/standalone/bk-badge.js +2 -2
  209. package/dist/standalone/bk-bar.js +3 -1
  210. package/dist/standalone/bk-brand.js +3 -3
  211. package/dist/standalone/bk-breadcrumbs.js +5 -5
  212. package/dist/standalone/bk-button-copy.js +5 -5
  213. package/dist/standalone/bk-button-group.js +5 -5
  214. package/dist/standalone/bk-button-share.js +5 -5
  215. package/dist/standalone/bk-button-top.js +9 -8
  216. package/dist/standalone/bk-button.js +62 -30
  217. package/dist/standalone/bk-calendar-event.js +1 -1
  218. package/dist/standalone/bk-calendar-week.js +3 -3
  219. package/dist/standalone/bk-calendar.js +4 -4
  220. package/dist/standalone/bk-card.js +20 -7
  221. package/dist/standalone/bk-carousel-controls.js +7 -6
  222. package/dist/standalone/bk-carousel-item.js +2 -2
  223. package/dist/standalone/bk-carousel.js +1 -1
  224. package/dist/standalone/bk-chart-area.js +1 -1
  225. package/dist/standalone/bk-chart-bar-list.js +8 -8
  226. package/dist/standalone/bk-chart-bar.js +145 -117
  227. package/dist/standalone/bk-chart-bridge.js +7 -7
  228. package/dist/standalone/bk-chart-bullet.js +6 -6
  229. package/dist/standalone/bk-chart-calendar.js +7 -7
  230. package/dist/standalone/bk-chart-heatmap.js +7 -7
  231. package/dist/standalone/bk-chart-histogram.js +5 -5
  232. package/dist/standalone/bk-chart-legend.js +6 -6
  233. package/dist/standalone/bk-chart-line.js +116 -103
  234. package/dist/standalone/bk-chart-mark.js +1 -1
  235. package/dist/standalone/bk-chart-scatter.js +6 -6
  236. package/dist/standalone/bk-chart-sparkline.js +6 -6
  237. package/dist/standalone/bk-chart-stacked-bar.js +7 -7
  238. package/dist/standalone/bk-chart-tracker.js +6 -6
  239. package/dist/standalone/bk-chart-waterfall.js +6 -6
  240. package/dist/standalone/bk-checkbox-group.js +4 -4
  241. package/dist/standalone/bk-checkbox.js +4 -4
  242. package/dist/standalone/bk-chip-group.js +9 -5
  243. package/dist/standalone/bk-chip.js +56 -17
  244. package/dist/standalone/bk-cluster.js +1 -1
  245. package/dist/standalone/bk-code-diff.js +4 -4
  246. package/dist/standalone/bk-code-stack.js +4 -4
  247. package/dist/standalone/bk-code.js +10 -6
  248. package/dist/standalone/bk-color-panel.js +5 -5
  249. package/dist/standalone/bk-columns.js +13 -5
  250. package/dist/standalone/bk-combobox.js +9 -8
  251. package/dist/standalone/bk-command-menu.js +6 -6
  252. package/dist/standalone/bk-command-palette.js +6 -5
  253. package/dist/standalone/bk-composer.js +6 -6
  254. package/dist/standalone/bk-delta.js +11 -10
  255. package/dist/standalone/bk-diagram.js +1 -1
  256. package/dist/standalone/bk-dialog.js +1 -1
  257. package/dist/standalone/bk-disclosure.js +7 -5
  258. package/dist/standalone/bk-divider.js +2 -2
  259. package/dist/standalone/bk-drawer.js +3 -3
  260. package/dist/standalone/bk-drop-target.js +12 -6
  261. package/dist/standalone/bk-empty-state.js +3 -3
  262. package/dist/standalone/bk-error-summary.js +9 -6
  263. package/dist/standalone/bk-facts-item.js +2 -2
  264. package/dist/standalone/bk-facts.js +9 -8
  265. package/dist/standalone/bk-feature.js +3 -3
  266. package/dist/standalone/bk-fieldset.js +3 -3
  267. package/dist/standalone/bk-filter-bar.js +4 -4
  268. package/dist/standalone/bk-folder-browser.js +4 -4
  269. package/dist/standalone/bk-footnote.js +82 -0
  270. package/dist/standalone/bk-footnotes-item.js +122 -0
  271. package/dist/standalone/bk-footnotes.js +37 -0
  272. package/dist/standalone/bk-form-guard.js +2 -2
  273. package/dist/standalone/bk-form-steps.js +3 -3
  274. package/dist/standalone/bk-grid.js +1 -1
  275. package/dist/standalone/bk-icon-tile.js +3 -3
  276. package/dist/standalone/bk-icon.js +1 -1
  277. package/dist/standalone/bk-image-compare.js +88 -47
  278. package/dist/standalone/bk-image-crop.js +6 -6
  279. package/dist/standalone/bk-image-editor.js +1 -1
  280. package/dist/standalone/bk-image-viewer.js +180 -59
  281. package/dist/standalone/bk-input-code.js +4 -4
  282. package/dist/standalone/bk-input-color.js +4 -4
  283. package/dist/standalone/bk-input-date-range.js +2 -2
  284. package/dist/standalone/bk-input-date.js +2 -2
  285. package/dist/standalone/bk-input-file.js +5 -5
  286. package/dist/standalone/bk-input-group.js +4 -4
  287. package/dist/standalone/bk-input-inline.js +17 -10
  288. package/dist/standalone/bk-input-number.js +9 -8
  289. package/dist/standalone/bk-input-rating.js +6 -6
  290. package/dist/standalone/bk-input-rich.js +1 -1
  291. package/dist/standalone/bk-input-search.js +23 -22
  292. package/dist/standalone/bk-input-slider-range.js +5 -5
  293. package/dist/standalone/bk-input-slider.js +5 -5
  294. package/dist/standalone/bk-input-text.js +1 -1
  295. package/dist/standalone/bk-input-time-zone.js +1 -1
  296. package/dist/standalone/bk-input-time.js +29 -28
  297. package/dist/standalone/bk-item-group.js +3 -3
  298. package/dist/standalone/bk-item.js +12 -11
  299. package/dist/standalone/bk-kbd-shortcuts.js +4 -3
  300. package/dist/standalone/bk-kbd.js +68 -1
  301. package/dist/standalone/bk-lightbox.js +11 -7
  302. package/dist/standalone/bk-lines.js +1 -1
  303. package/dist/standalone/bk-link.js +33 -19
  304. package/dist/standalone/bk-listbox-columns.js +6 -6
  305. package/dist/standalone/bk-listbox-item.js +1 -1
  306. package/dist/standalone/bk-listbox-search.js +7 -7
  307. package/dist/standalone/bk-listbox-transfer.js +6 -6
  308. package/dist/standalone/bk-listbox.js +7 -7
  309. package/dist/standalone/bk-logo-wall.js +2 -2
  310. package/dist/standalone/bk-logo.js +3 -3
  311. package/dist/standalone/bk-menu-bar.js +3 -3
  312. package/dist/standalone/bk-menu-context.js +1 -1
  313. package/dist/standalone/bk-menu-divider.js +2 -2
  314. package/dist/standalone/bk-menu-item.js +73 -29
  315. package/dist/standalone/bk-menu-label.js +7 -6
  316. package/dist/standalone/bk-menu-list.js +10 -4
  317. package/dist/standalone/bk-menu.js +19 -10
  318. package/dist/standalone/bk-message-approval.js +4 -4
  319. package/dist/standalone/bk-message-branches.js +3 -3
  320. package/dist/standalone/bk-message-citation.js +10 -10
  321. package/dist/standalone/bk-message-feedback.js +10 -6
  322. package/dist/standalone/bk-message-list.js +6 -5
  323. package/dist/standalone/bk-message-reasoning.js +5 -5
  324. package/dist/standalone/bk-message-source.js +13 -21
  325. package/dist/standalone/bk-message-tool-group.js +5 -5
  326. package/dist/standalone/bk-message-tool.js +5 -5
  327. package/dist/standalone/bk-message.js +6 -4
  328. package/dist/standalone/bk-meter.js +3 -3
  329. package/dist/standalone/bk-model-viewer.js +1 -1
  330. package/dist/standalone/bk-nav-divider.js +2 -2
  331. package/dist/standalone/bk-nav-group.js +6 -6
  332. package/dist/standalone/bk-nav-item.js +31 -23
  333. package/dist/standalone/bk-nav-toc.js +3 -3
  334. package/dist/standalone/bk-nav.js +3 -3
  335. package/dist/standalone/bk-overflow.js +3 -3
  336. package/dist/standalone/bk-page-cta.js +5 -3
  337. package/dist/standalone/bk-page-footer-column.js +2 -2
  338. package/dist/standalone/bk-page-footer.js +3 -3
  339. package/dist/standalone/bk-page-header.js +3 -3
  340. package/dist/standalone/bk-page-hero.js +3 -3
  341. package/dist/standalone/bk-page-pager.js +5 -5
  342. package/dist/standalone/bk-page-section.js +6 -6
  343. package/dist/standalone/bk-pagination.js +6 -6
  344. package/dist/standalone/bk-pane.js +10 -9
  345. package/dist/standalone/bk-panel.js +9 -10
  346. package/dist/standalone/bk-period-nav.js +4 -4
  347. package/dist/standalone/bk-picture.js +24 -15
  348. package/dist/standalone/bk-popover-help.js +3 -3
  349. package/dist/standalone/bk-popover.js +2 -2
  350. package/dist/standalone/bk-presence-cursor.js +2 -2
  351. package/dist/standalone/bk-preview.js +4 -4
  352. package/dist/standalone/bk-progress.js +3 -3
  353. package/dist/standalone/bk-prose.js +3 -3
  354. package/dist/standalone/bk-qr-code.js +1 -1
  355. package/dist/standalone/bk-radio-group.js +4 -4
  356. package/dist/standalone/bk-radio.js +3 -3
  357. package/dist/standalone/bk-rating.js +5 -5
  358. package/dist/standalone/bk-scroll.js +3 -3
  359. package/dist/standalone/bk-segmented-item.js +40 -16
  360. package/dist/standalone/bk-segmented.js +15 -13
  361. package/dist/standalone/bk-select-cascade.js +3 -3
  362. package/dist/standalone/bk-select-tree.js +4 -4
  363. package/dist/standalone/bk-select.js +5 -5
  364. package/dist/standalone/bk-shell-app.js +1 -1221
  365. package/dist/standalone/bk-shell-centered.js +2 -2
  366. package/dist/standalone/bk-shell-sites.js +5 -7
  367. package/dist/standalone/bk-skeleton.js +2 -2
  368. package/dist/standalone/bk-sortable.js +55 -60
  369. package/dist/standalone/bk-spinner.js +2 -2
  370. package/dist/standalone/bk-split-grid.js +318 -41
  371. package/dist/standalone/bk-split.js +4 -4
  372. package/dist/standalone/bk-stack.js +1 -1
  373. package/dist/standalone/bk-stat-group.js +8 -7
  374. package/dist/standalone/bk-stat.js +11 -8
  375. package/dist/standalone/bk-status-dot.js +3 -3
  376. package/dist/standalone/bk-steps-item.js +5 -5
  377. package/dist/standalone/bk-steps.js +8 -7
  378. package/dist/standalone/bk-surface.js +1 -1
  379. package/dist/standalone/bk-swatch-group.js +4 -4
  380. package/dist/standalone/bk-swatch-palette.js +1 -1
  381. package/dist/standalone/bk-swatch.js +2 -2
  382. package/dist/standalone/bk-switch.js +4 -4
  383. package/dist/standalone/bk-table.js +1 -1937
  384. package/dist/standalone/bk-tabs-item.js +58 -35
  385. package/dist/standalone/bk-tabs-panel.js +7 -3
  386. package/dist/standalone/bk-tabs.js +160 -98
  387. package/dist/standalone/bk-tasks-item.js +4 -4
  388. package/dist/standalone/bk-tasks.js +2 -2
  389. package/dist/standalone/bk-testimonial.js +3 -3
  390. package/dist/standalone/bk-text.js +19 -18
  391. package/dist/standalone/bk-time-countdown.js +4 -4
  392. package/dist/standalone/bk-time-relative.js +3 -3
  393. package/dist/standalone/bk-timeline-item.js +4 -4
  394. package/dist/standalone/bk-timeline.js +2 -2
  395. package/dist/standalone/bk-toast-group.js +1 -1
  396. package/dist/standalone/bk-toast.js +4 -4
  397. package/dist/standalone/bk-toolbar.js +2 -2
  398. package/dist/standalone/bk-tooltip.js +8 -7
  399. package/dist/standalone/bk-tree-item.js +6 -6
  400. package/dist/standalone/bk-tree.js +3 -3
  401. package/dist/standalone/bk-video.js +6 -6
  402. package/dist/standalone/bk-visually-hidden.js +2 -2
  403. package/dist/standalone/bk-zoom.js +5 -5
  404. package/dist/standalone/chunks/announcer-D1zrRWwO.js +36 -0
  405. package/dist/standalone/chunks/{appearance-waHnV0kk.js → appearance-CBOJXbmC.js} +1 -1
  406. package/dist/standalone/chunks/{bk-alert-offline-B1bQxOZp.js → bk-alert-offline-Clw0ZSsH.js} +3 -3
  407. package/dist/standalone/chunks/{bk-carousel-BCwIQhG5.js → bk-carousel-Biz7t8sL.js} +4 -4
  408. package/dist/standalone/chunks/{bk-diagram-DWK8CvRZ.js → bk-diagram-D_fQf6SF.js} +5 -5
  409. package/dist/standalone/chunks/{bk-dialog-DX0cPJ1o.js → bk-dialog-DwZyUUHh.js} +59 -25
  410. package/dist/standalone/chunks/{bk-icon-DssFsNuB.js → bk-icon-Bp_flKdv.js} +4 -3
  411. package/dist/standalone/chunks/{bk-image-editor-DXEj9gCu.js → bk-image-editor-BADsoLRL.js} +5 -5
  412. package/dist/standalone/chunks/{bk-input-date-range-Cbx_lpf0.js → bk-input-date-range-DHcJ8-5g.js} +2 -2
  413. package/dist/standalone/chunks/{bk-input-rich-ZB68vziu.js → bk-input-rich-CFhW6vRa.js} +6 -6
  414. package/dist/standalone/chunks/{bk-input-text-DD32uWNO.js → bk-input-text-DviyLBqj.js} +63 -54
  415. package/dist/standalone/chunks/{bk-model-viewer-Dr81ahVv.js → bk-model-viewer-w_Ah4Tvs.js} +4 -4
  416. package/dist/standalone/chunks/{bk-qr-code-QaYvZwOR.js → bk-qr-code-CYMovNVl.js} +3 -3
  417. package/dist/standalone/chunks/bk-shell-app-B2lxHit8.js +1235 -0
  418. package/dist/standalone/chunks/{bk-surface-DkIhrWMt.js → bk-surface-D7e0tErs.js} +9 -7
  419. package/dist/standalone/chunks/{bk-swatch-palette-BNNXTP3w.js → bk-swatch-palette-x13JgJQi.js} +6 -6
  420. package/dist/standalone/chunks/bk-table-CP8n_jy7.js +1944 -0
  421. package/dist/standalone/chunks/{bk-toast-group-BSeO_rPs.js → bk-toast-group-CoL6W7uk.js} +27 -24
  422. package/dist/standalone/chunks/{brush-Bn3lPdHN.js → brush-DALmXSru.js} +18 -2
  423. package/dist/standalone/chunks/{busy-B7Mxemwm.js → busy-BUB22mGY.js} +5 -4
  424. package/dist/standalone/chunks/{chart-tokens-D1Exf7BW.js → chart-tokens-DQ4hVSmn.js} +2 -2
  425. package/dist/standalone/chunks/{choice-field-CGvE4tyb.js → choice-field-poOTerh1.js} +6 -6
  426. package/dist/standalone/chunks/{choice-item-B6-9ZRlf.js → choice-item-Cx-nm1js.js} +17 -8
  427. package/dist/standalone/chunks/{clipboard-Crzt1Sh9.js → clipboard-RqIeP9Uz.js} +1 -1
  428. package/dist/standalone/chunks/{clipboard-BKlrP5rj.js → clipboard-UVLSkL4C.js} +1 -1
  429. package/dist/standalone/chunks/{crop-frame-poLCGrBG.js → crop-frame-Z9N0QML4.js} +1 -11
  430. package/dist/standalone/chunks/{date-field-BlI6grfT.js → date-field-B-fCXa2D.js} +48 -47
  431. package/dist/standalone/chunks/{define-CzVPD4Zi.js → define-DkVeu7e9.js} +1 -1
  432. package/dist/standalone/chunks/drag-DT4__0t9.js +12 -0
  433. package/dist/standalone/chunks/footnotes-BeisMxLk.js +94 -0
  434. package/dist/standalone/chunks/{form-control-CyXQIJ2x.js → form-control-CHpfKAKa.js} +2 -2
  435. package/dist/standalone/chunks/{frame-abXBnl8a.js → frame-xIMVEUCi.js} +5 -4
  436. package/dist/standalone/chunks/{handle-menu-ZVR_msk2.js → handle-menu-BgYUbGO2.js} +26 -19
  437. package/dist/standalone/chunks/{heading-text-CV5gBf7k.js → heading-text-CgnCa_q2.js} +1 -1
  438. package/dist/standalone/chunks/{i18n-B6Al9xCK.js → i18n-DFfGgd3d.js} +49 -34
  439. package/dist/standalone/chunks/{i18n-BI16HQmm.js → i18n-DQAcbHkY.js} +1 -1
  440. package/dist/standalone/chunks/link--YWr8exL.js +69 -0
  441. package/dist/standalone/chunks/{marks-0kbeB4n8.js → marks-pOUDNUf1.js} +2 -2
  442. package/dist/standalone/chunks/{options-DMEc8rQt.js → options-BdC8-KKM.js} +2 -2
  443. package/dist/standalone/chunks/own-text-mpZVnMyX.js +5 -0
  444. package/dist/standalone/chunks/{palettes-CKLHSIPx.js → palettes-J4bQ21ks.js} +2 -2
  445. package/dist/standalone/chunks/{popover-base-ac49G87f.js → popover-base-hxo-Vh6E.js} +2 -2
  446. package/dist/standalone/chunks/{prose-BG4oQH-i.js → prose-BiuJgiah.js} +1 -1
  447. package/dist/standalone/chunks/{ramp-ggoyjMvC.js → ramp-CGDOcqBZ.js} +1 -1
  448. package/dist/standalone/chunks/save-as-DBGZjczB.js +6 -0
  449. package/dist/standalone/chunks/shortcuts-DPxCSO4M.js +210 -0
  450. package/dist/standalone/chunks/{slider-BWT8Fmwz.js → slider-jp3d-Ld-.js} +15 -14
  451. package/dist/standalone/chunks/{stars-BN9M_9Q1.js → stars-BgKEjDQx.js} +1 -1
  452. package/dist/standalone/chunks/{styles-DwSR-9a3.js → styles-CaeyhYDA.js} +3 -0
  453. package/dist/standalone/chunks/submit-BjBGB8OW.js +42 -0
  454. package/dist/standalone/chunks/{summary-BK-B4m5A.js → summary-W5s0TFqV.js} +1 -1
  455. package/dist/standalone/chunks/{text-field-4IUUpRHE.js → text-field-CqhJSAwZ.js} +4 -4
  456. package/dist/standalone/chunks/{toggle-control-ioV2jhNY.js → toggle-control-lvZbQtGW.js} +2 -2
  457. package/dist/standalone/chunks/{tokens-BuahF1lF.js → tokens-C_ul7pL9.js} +4 -3
  458. package/dist/standalone/chunks/{virtual-B-1oN14Y.js → virtual-C_h6sHnm.js} +1 -1
  459. package/dist/standalone/confirm.js +27 -14
  460. package/dist/standalone/i18n-de.js +13 -2
  461. package/dist/standalone/icons.js +100 -98
  462. package/dist/standalone/links.js +1 -1
  463. package/dist/standalone/reset.css +10 -0
  464. package/dist/standalone/toast.js +1 -1
  465. package/dist/standalone/tokens.css +6 -5
  466. package/dist/tokens.css +6 -5
  467. package/dist/tokens.js +4 -3
  468. package/package.json +25 -2
  469. package/dist/standalone/chunks/announcer-haFcvqbe.js +0 -25
  470. package/dist/standalone/chunks/bk-kbd-B_TlKzWj.js +0 -275
  471. package/dist/standalone/chunks/link-CWSMsx04.js +0 -60
@@ -41,7 +41,7 @@ const chartTokensCss = String.raw`
41
41
  --bk-chart-hero-size: calc(48px * var(--bk-text-scale));
42
42
  --bk-chart-label-size: var(--bk-text-xs);
43
43
  }
44
- :root, [data-theme], [data-bk-scope] {
44
+ :root, [data-theme], [data-bk-scope], :is(:state(bk-scope)) {
45
45
  --bk-chart-single: var(--bk-accent-solid);
46
46
  ${categorical}
47
47
  --bk-chart-other: light-dark(oklch(from var(--bk-neutral) 0.72 calc(c * 0.6) h), oklch(from var(--bk-neutral) 0.5 calc(c * 0.6) h));
@@ -0,0 +1,20 @@
1
+ import { type ChartRow } from "./frame.js";
2
+ /** A field of the row that the tooltip lists without drawing it: `key` is the row field. */
3
+ export interface ChartField {
4
+ key: string;
5
+ /** Name in the tooltip, the table and the accessible name (default: the key). */
6
+ label?: string;
7
+ /** Intl.NumberFormat options of this field (default: the plain number format of the locale). */
8
+ format?: Intl.NumberFormatOptions;
9
+ }
10
+ /** The attribute lists the keys, separated by spaces. The property takes keys and `ChartField` objects. */
11
+ export declare const tooltipFieldsConverter: {
12
+ fromAttribute(value: string | null): ChartField[];
13
+ };
14
+ /** The fields in effect: keys become `{ key }`, and entries without a key are dropped. */
15
+ export declare function resolveFields(fields: readonly (string | ChartField)[] | undefined): ChartField[];
16
+ /** The name of a field. */
17
+ export declare const fieldLabel: (f: ChartField) => string;
18
+ /** The value of a field in a row as text: numbers with Intl in `locale`, dates as dates, a missing value as a dash. */
19
+ export declare function fieldValue(locale: string, row: ChartRow | undefined, f: ChartField): string;
20
+ //# sourceMappingURL=fields.d.ts.map
@@ -0,0 +1,27 @@
1
+ import { formatTime, formatValue } from "./format.js";
2
+ import { num } from "./frame.js";
3
+ const tooltipFieldsConverter = {
4
+ fromAttribute(value) {
5
+ return (value ?? "").split(/\s+/).filter(Boolean).map((key) => ({ key }));
6
+ }
7
+ };
8
+ function resolveFields(fields) {
9
+ return (fields ?? []).map((f) => typeof f === "string" ? { key: f } : f).filter((f) => f && f.key);
10
+ }
11
+ const fieldLabel = (f) => f.label || f.key;
12
+ function fieldValue(locale, row, f) {
13
+ const v = row?.[f.key];
14
+ if (v instanceof Date)
15
+ return formatTime(locale, v.getTime());
16
+ const n = num(v);
17
+ if (n !== null)
18
+ return formatValue(locale, n, f.format);
19
+ return v === void 0 || v === null || v === "" ? "\u2013" : String(v);
20
+ }
21
+ export {
22
+ fieldLabel,
23
+ fieldValue,
24
+ resolveFields,
25
+ tooltipFieldsConverter
26
+ };
27
+ //# sourceMappingURL=fields.js.map
@@ -244,11 +244,12 @@ class ChartController {
244
244
  }
245
245
  }
246
246
  function renderTable(model, hidden) {
247
- return html`<table class=${hidden ? "sr-only" : "data"} part=${hidden ? nothing : "table"}>
247
+ const table = html`<table class=${hidden ? nothing : "data"} part=${hidden ? nothing : "table"}>
248
248
  <caption class=${hidden ? nothing : "sr-only"}>${model.caption}</caption>
249
249
  <thead><tr>${model.columns.map((c, i) => html`<th scope="col" class=${i ? "num" : ""}>${c}</th>`)}</tr></thead>
250
250
  <tbody>${model.rows.map((r) => html`<tr>${r.map((c, i) => i ? html`<td class="num">${c}</td>` : html`<th scope="row">${c}</th>`)}</tr>`)}</tbody>
251
251
  </table>`;
252
+ return hidden ? html`<div class="sr-only">${table}</div>` : table;
252
253
  }
253
254
  function renderEmptyPlot(locale, width, height) {
254
255
  return html`<div class="plot" part="plot"><svg width=${width} height=${height} aria-hidden="true">
package/dist/clipboard.js CHANGED
@@ -30,6 +30,7 @@ function copyWithSelection(text) {
30
30
  const active = document.activeElement;
31
31
  document.body.append(area);
32
32
  area.select();
33
+ area.setSelectionRange(0, text.length);
33
34
  let ok = false;
34
35
  try {
35
36
  ok = document.execCommand("copy");
@@ -8,6 +8,7 @@ import { StateController } from "../internal/state.js";
8
8
  import { base, srOnly } from "../internal/styles.js";
9
9
  import "./bk-icon.js";
10
10
  import "./bk-button.js";
11
+ import { ownText } from "../internal/own-text.js";
11
12
  import "../icons/set/close.js";
12
13
  const TONE_KEYS = { neutral: "alertInfo", accent: "alertInfo", info: "alertInfo", success: "alertSuccess", warning: "alertWarning", danger: "alertDanger", attention: "alertAttention" };
13
14
  class BkAlert extends LitElement {
@@ -92,7 +93,7 @@ class BkAlert extends LitElement {
92
93
  return;
93
94
  clearTimeout(this.announceTimer);
94
95
  this.announceTimer = window.setTimeout(() => {
95
- const body = (this.querySelector("[slot=heading]")?.textContent ?? "") + " " + [...this.childNodes].filter((n) => !(n instanceof Element && n.slot)).map((n) => n.textContent).join(" ");
96
+ const body = (this.querySelector("[slot=heading]")?.textContent ?? "") + " " + ownText(this, " ");
96
97
  const parts = [this.heading, body.replace(/\s+/g, " ").trim()].filter(Boolean);
97
98
  const text = parts.length ? [this.i18n.t(TONE_KEYS[this.tone]), ...parts].join(": ") : "";
98
99
  if (!text)
@@ -3,6 +3,7 @@ import { ifDefined } from "lit/directives/if-defined.js";
3
3
  import { define } from "../internal/define.js";
4
4
  import { LocalizeController } from "../i18n.js";
5
5
  import { base } from "../internal/styles.js";
6
+ import { setHostVars } from "../internal/host-vars.js";
6
7
  import "./bk-avatar.js";
7
8
  import "./bk-item.js";
8
9
  import "./bk-item-group.js";
@@ -63,16 +64,13 @@ class BkAvatarGroup extends LitElement {
63
64
  layout() {
64
65
  const { avatars } = this;
65
66
  const max = this.max ?? Infinity;
66
- avatars.forEach((a, i) => {
67
- a.hidden = i >= max;
68
- a.style.zIndex = String(avatars.length - i);
69
- });
67
+ avatars.forEach((a, i) => a.setGroupPlace?.({ hidden: i >= max, layer: avatars.length - i }));
70
68
  this.hiddenCount = Math.max(0, avatars.length - max);
71
- this.style.setProperty("--_bk-avatar-group-size", `var(--bk-avatar-size-${avatars[0]?.getAttribute("size") || "md"})`);
69
+ setHostVars(this, { "--_bk-avatar-group-size": `var(--bk-avatar-size-${avatars[0]?.getAttribute("size") || "md"})` });
72
70
  this.requestUpdate();
73
71
  }
74
72
  render() {
75
- const hidden = this.avatars.filter((a) => a.hidden);
73
+ const hidden = this.avatars.filter((a) => a.groupHidden);
76
74
  return html`<slot @slotchange=${this.onSlot}></slot>${this.hiddenCount ? html`<bk-popover label=${this.i18n.t("morePeople")}>
77
75
  <button slot="trigger" class="more" part="more" type="button"
78
76
  aria-label=${this.i18n.t("moreCount", { count: this.hiddenCount })}>+${this.hiddenCount}</button>
@@ -88,6 +88,16 @@ export declare class BkAvatar extends LitElement {
88
88
  constructor();
89
89
  static styles: import("lit").CSSResult[];
90
90
  private i18n;
91
+ /**
92
+ * `<bk-avatar-group>` calls this method: `hidden` hides an avatar beyond `max`, `layer` puts earlier avatars on top.
93
+ * The avatar shows its place through its own states: the group writes no attributes on the avatars of the app.
94
+ */
95
+ setGroupPlace(o: {
96
+ hidden: boolean;
97
+ layer: number;
98
+ }): void;
99
+ /** True while a `<bk-avatar-group>` hides the avatar beyond its `max`. */
100
+ get groupHidden(): boolean;
91
101
  protected willUpdate(changed: PropertyValues): void;
92
102
  /** At xs and sm the dot is too small for a symbol. */
93
103
  private get small();
@@ -82,10 +82,27 @@ class BkAvatar extends LitElement {
82
82
  box-shadow: var(--_bk-avatar-active-shadow);
83
83
  }
84
84
  :host { transition: box-shadow var(--bk-duration-fast); }
85
+ /* The place in a <bk-avatar-group> (setGroupPlace): above the next avatar, or hidden beyond max. */
86
+ :host(:state(group-layer)) { z-index: var(--_bk-avatar-layer); }
87
+ :host(:state(group-hidden)) { display: none; }
85
88
  @media (prefers-reduced-motion: reduce) { :host { transition: none; } }
86
89
  @media (forced-colors: active) { :host { border: var(--bk-border-width) solid CanvasText; } :host([active]) { outline: var(--bk-space-0) solid Highlight; outline-offset: var(--bk-space-0); } }
87
90
  `];
88
91
  i18n = new LocalizeController(this);
92
+ /**
93
+ * `<bk-avatar-group>` calls this method: `hidden` hides an avatar beyond `max`, `layer` puts earlier avatars on top.
94
+ * The avatar shows its place through its own states: the group writes no attributes on the avatars of the app.
95
+ */
96
+ setGroupPlace(o) {
97
+ const s = this.internals.states;
98
+ o.hidden ? s.add("group-hidden") : s.delete("group-hidden");
99
+ s.add("group-layer");
100
+ setHostVars(this, { "--_bk-avatar-layer": String(o.layer) });
101
+ }
102
+ /** True while a `<bk-avatar-group>` hides the avatar beyond its `max`. */
103
+ get groupHidden() {
104
+ return this.internals.states.has("group-hidden");
105
+ }
89
106
  willUpdate(changed) {
90
107
  if (changed.has("src"))
91
108
  this.failed = false;
@@ -67,6 +67,8 @@ class BkBar extends LitElement {
67
67
  :host {
68
68
  display: flex; flex-wrap: wrap; align-items: center; flex: 1 1 auto; min-width: 0;
69
69
  gap: var(--bk-bar-gap, var(--bk-space-cluster));
70
+ /* In a row the bar takes the rest of the line. In a column it keeps the height of its content. */
71
+ max-block-size: max-content;
70
72
  }
71
73
  :host([hidden]) { display: none; }
72
74
  .start, .end { display: flex; flex-wrap: wrap; align-items: center; gap: inherit; min-width: 0; }
@@ -60,7 +60,7 @@ class BkButtonGroup extends FormControl {
60
60
  ::slotted(:not(:first-child)) { margin-inline-start: calc(-1 * var(--_bk-button-group-overlap)); }
61
61
  :host([orientation="vertical"]) ::slotted(:not(:first-child)) { margin-inline-start: 0; margin-block-start: calc(-1 * var(--_bk-button-group-overlap)); }
62
62
  /* The border of the hovered, focused or pressed button lies over its neighbours. */
63
- ::slotted(:hover), ::slotted(:focus-within), ::slotted([pressed]) { z-index: 1; }
63
+ ::slotted(:hover), ::slotted(:focus-within), ::slotted([pressed]:not([pressed="false"])) { z-index: 1; }
64
64
  :host([disabled]) .group { opacity: var(--bk-disabled-opacity); }
65
65
  `];
66
66
  get control() {
@@ -1,6 +1,7 @@
1
1
  import { LitElement, css, html } from "lit";
2
2
  import { LocalizeController } from "../i18n.js";
3
3
  import { define } from "../internal/define.js";
4
+ import { setHostVars } from "../internal/host-vars.js";
4
5
  import { base } from "../internal/styles.js";
5
6
  import "./bk-button.js";
6
7
  import "../icons/set/arrow-up.js";
@@ -88,7 +89,7 @@ class BkButtonTop extends LitElement {
88
89
  return;
89
90
  this.shown = shown;
90
91
  if (shown)
91
- this.style.setProperty("--_bk-button-top-bar", `${parseFloat(getComputedStyle(document.documentElement).scrollPaddingBottom) || 0}px`);
92
+ setHostVars(this, { "--_bk-button-top-bar": `${parseFloat(getComputedStyle(document.documentElement).scrollPaddingBottom) || 0}px` });
92
93
  }
93
94
  /** Scrolls to the top and moves focus to the start of the page or list. */
94
95
  toTop() {
@@ -3,21 +3,31 @@ import { type AriaForwarding, type TriggerAria } from "../internal/anchor.js";
3
3
  import "./bk-icon.js";
4
4
  import "./bk-spinner.js";
5
5
  import "./bk-tooltip.js";
6
+ import { SUBMIT_BUTTON, type CustomSubmitButton } from "../internal/submit.js";
6
7
  export type { NavigateDetail } from "../internal/link.js";
7
8
  import "../icons/set/label.js";
8
9
  export type ButtonVariant = "solid" | "soft" | "outline" | "ghost" | "quiet";
9
10
  export type ButtonTone = "neutral" | "accent" | "info" | "success" | "warning" | "danger" | "attention";
10
11
  export type ButtonSize = "sm" | "md" | "lg";
11
12
  /**
12
- * A button, or a link styled as one when `href` is set.
13
+ * A button, or a link styled as one when `href` is set. A link with `target="_blank"` has the description "(opens in a
14
+ * new tab)". To show it, give the button `icon-end="external"`.
13
15
  *
14
16
  * Style and meaning are separate. `variant` is the visual weight (`solid`, `soft`, `outline` (default),
15
17
  * `ghost`, `quiet`). `tone` is the colour of meaning (`neutral` (default), `accent`, `info`, `success`,
16
- * `warning`, `danger`). Every combination works. The main action of a view is
18
+ * `warning`, `danger`, `attention`). Every combination works. The main action of a view is
17
19
  * `variant="solid" tone="accent"`. A destructive action is `tone="danger"` (solid to confirm, ghost in rows).
18
20
  *
19
21
  * Form-associated: `type="submit"` and `type="reset"` act on the surrounding `<form>` like a native
20
- * button. The default slot contains the content. The `start` and `end` slots contain icons. As a shorthand,
22
+ * button. A disabled ancestor `<fieldset>` disables the button, as a native button (a link button stays a link).
23
+ *
24
+ * **Default button**: the first submit button of a form in tree order is its default button, a native one or a
25
+ * `bk-button type="submit"`. Enter in a single-line field of the form (native or of the library) clicks it. A
26
+ * disabled default button (also `loading` or `disabled-reason`) blocks Enter, as natively. The browser does not know
27
+ * a custom default button: a document listener does this for native fields. It writes nothing into the DOM. The
28
+ * native Enter does not fire `change` on the field before the submission then.
29
+ *
30
+ * The default slot contains the content. The `start` and `end` slots contain icons. As a shorthand,
21
31
  * use the `icon` and `icon-end` attributes.
22
32
  *
23
33
  * **Choose files**: `type="file"` opens the file dialog of the system, like a native
@@ -62,9 +72,10 @@ export type ButtonSize = "sm" | "md" | "lg";
62
72
  * not open from a trigger that is off.
63
73
  *
64
74
  * An icon-only button shows its name in a built-in tooltip (hover and keyboard focus, not touch; not
65
- * on an open popup trigger, not inside a dialog, drawer or popover). `hide-tooltip` turns it off,
66
- * and the native `title` with it, for a button that is in a tooltip of the app. The name stays
67
- * the `aria-label`.
75
+ * on an open popup trigger, not inside a dialog, drawer, lightbox or popover). The button finds the overlay also through
76
+ * the shadow roots of other elements. An open tooltip takes the first Esc (WCAG 1.4.13), so without the tooltip one Esc
77
+ * closes the overlay. `hide-tooltip` turns the tooltip off, and the native `title` with it, for a button that is in a
78
+ * tooltip of the app. The name stays the `aria-label`.
68
79
  *
69
80
  * @slot - Label. Or only an icon or a `<bk-avatar>` (an icon-only button).
70
81
  * @slot start - Leading content, usually a `<bk-icon>`.
@@ -98,8 +109,8 @@ export type ButtonSize = "sm" | "md" | "lg";
98
109
  * @cssprop --bk-button-solid-shadow - Shadow of `solid` (default a glow in the fill colour, scaled by --bk-glow-strength, 0 = none).
99
110
  * @cssprop --bk-button-hover - Hover overlay of `outline`, `soft` and `quiet` (default --bk-hover).
100
111
  * @cssprop --bk-button-quiet-fg - Text colour of neutral `quiet` at rest (default --bk-text-muted).
101
- * @cssprop --bk-button-pressed-bg - Background while `pressed` (default --bk-accent-soft).
102
- * @cssprop --bk-button-pressed-fg - Text colour while `pressed` (default --bk-accent-text).
112
+ * @cssprop --bk-button-pressed-bg - Background while `pressed` or current (default: the soft background of the tone, --bk-button-{tone}-soft; neutral --bk-accent-soft).
113
+ * @cssprop --bk-button-pressed-fg - Text colour while `pressed` or current (default: the text colour of the tone, --bk-button-{tone}-text; neutral --bk-accent-text).
103
114
  * @cssprop --bk-button-pressed-border - Border colour while `pressed` (default transparent).
104
115
  * @cssprop --bk-button-floating-bg - Background of `floating` (default --bk-layer-overlay-bg).
105
116
  * @cssprop --bk-button-floating-fg - Text colour of `floating` (default: the tone's text colour).
@@ -129,7 +140,7 @@ export type ButtonSize = "sm" | "md" | "lg";
129
140
  * @fires {CustomEvent<NavigateDetail>} navigate - The user makes a plain click on the link (primary button, no modifier key, no other `target`, no `download`). `detail.href` is the resolved address. Bubbles, composed, cancelable: `preventDefault()` stops the browser, and the router of the app handles the navigation.
130
141
  * @tag bk-button
131
142
  */
132
- export declare class BkButton extends LitElement implements AriaForwarding {
143
+ export declare class BkButton extends LitElement implements AriaForwarding, CustomSubmitButton {
133
144
  static formAssociated: boolean;
134
145
  static shadowRootOptions: ShadowRootInit;
135
146
  static properties: {
@@ -192,8 +203,11 @@ export declare class BkButton extends LitElement implements AriaForwarding {
192
203
  reflect: boolean;
193
204
  };
194
205
  pressed: {
195
- type: BooleanConstructor;
196
206
  reflect: boolean;
207
+ converter: {
208
+ fromAttribute: (value: string | null) => boolean;
209
+ toAttribute: (value: boolean | undefined) => "" | null;
210
+ };
197
211
  };
198
212
  floating: {
199
213
  type: BooleanConstructor;
@@ -255,7 +269,7 @@ export declare class BkButton extends LitElement implements AriaForwarding {
255
269
  iconEnd: string | undefined;
256
270
  /** Accessible name and tooltip; needed when the button shows only an icon. */
257
271
  label: string | undefined;
258
- /** Disables the button: no focus, no clicks, no form submit. */
272
+ /** Disables the button: no focus, no clicks, no form submit. A disabled ancestor `<fieldset>` disables it too (not a link button). */
259
273
  disabled: boolean;
260
274
  /** Turns the button off and says why: a tooltip and the accessible description. The button stays focusable. */
261
275
  disabledReason: string | undefined;
@@ -268,8 +282,9 @@ export declare class BkButton extends LitElement implements AriaForwarding {
268
282
  /** Position of the content of a `block` button: `center` (default), or `start` for a list of answers. A long label of a `block` button wraps, and the button grows with it. */
269
283
  align: "center" | "start" | undefined;
270
284
  /**
271
- * Toggle state; sets aria-pressed and the pressed style. When unset (the default), the button is not a toggle.
272
- * Any value, `false` too, makes it a toggle, so an unpressed toggle announces `aria-pressed="false"`.
285
+ * Toggle state; sets `aria-pressed` and the pressed look. When unset (the default), the button is not a toggle.
286
+ * The property `false` makes an unpressed toggle that announces `aria-pressed="false"`. In markup, write
287
+ * `pressed="false"` for it. The attribute `pressed` (or any other value) is a pressed toggle.
273
288
  */
274
289
  pressed: boolean | undefined;
275
290
  /** Pill on a floating surface with a level-2 shadow, for controls laid over content. */
@@ -304,8 +319,15 @@ export declare class BkButton extends LitElement implements AriaForwarding {
304
319
  showPicker(): void;
305
320
  private onPicked;
306
321
  private onPickCancel;
307
- /** Whether the button takes no action: `disabled`, `disabled-reason` or `loading`. */
322
+ /** A disabled ancestor `<fieldset>` disables the button, as a native button. A link button stays a link. */
323
+ private fieldsetDisabled;
324
+ /** The button is disabled: `disabled`, or a disabled ancestor `<fieldset>` (not a link button). */
325
+ private get isDisabled();
326
+ /** Whether the button takes no action: `disabled` (also from a `<fieldset>`), `disabled-reason` or `loading`. */
308
327
  get inactive(): boolean;
328
+ formDisabledCallback(disabled: boolean): void;
329
+ /** For the default button of the form (internal/submit.ts): null when not a submit button, else whether it is off. */
330
+ [SUBMIT_BUTTON](): boolean | null;
309
331
  /** Trigger ARIA set by popovers, menus and tooltips; rendered onto the inner control. */
310
332
  private forwarded;
311
333
  /** The elements of the ids in `aria-controls` on the host, in the root of the button (the inner control cannot refer to them by id). */
@@ -331,6 +353,7 @@ export declare class BkButton extends LitElement implements AriaForwarding {
331
353
  /** What count and dot announce to assistive technology ("3 new"), for the description. */
332
354
  private get badgeDescription();
333
355
  protected willUpdate(changed: PropertyValues): void;
356
+ protected updated(changed: PropertyValues): void;
334
357
  protected renderContent(): TemplateResult<1>;
335
358
  render(): TemplateResult;
336
359
  /**
@@ -12,9 +12,14 @@ import "./bk-icon.js";
12
12
  import "./bk-spinner.js";
13
13
  import "./bk-tooltip.js";
14
14
  import { lightDom } from "../internal/server.js";
15
+ import { SUBMIT_BUTTON, listenForImplicitSubmission } from "../internal/submit.js";
15
16
  import "../icons/set/label.js";
16
17
  const stopClick = (e) => e.stopPropagation();
17
18
  const VISUAL = /* @__PURE__ */ new Set(["bk-icon", "svg", "img", "bk-avatar"]);
19
+ const pressedConverter = {
20
+ fromAttribute: (value) => value !== null && value !== "false",
21
+ toAttribute: (value) => value ? "" : null
22
+ };
18
23
  class BkButton extends LitElement {
19
24
  static formAssociated = true;
20
25
  static shadowRootOptions = { ...LitElement.shadowRootOptions, delegatesFocus: true };
@@ -42,7 +47,7 @@ class BkButton extends LitElement {
42
47
  hideTooltip: { attribute: "hide-tooltip", type: Boolean, reflect: true },
43
48
  block: { type: Boolean, reflect: true },
44
49
  align: { reflect: true },
45
- pressed: { type: Boolean, reflect: true },
50
+ pressed: { reflect: true, converter: pressedConverter },
46
51
  floating: { type: Boolean, reflect: true },
47
52
  collapse: { reflect: true },
48
53
  current: { attribute: "aria-current" },
@@ -126,9 +131,23 @@ class BkButton extends LitElement {
126
131
  e.stopPropagation();
127
132
  emitLifecycle(this, "cancel");
128
133
  };
129
- /** Whether the button takes no action: `disabled`, `disabled-reason` or `loading`. */
134
+ /** A disabled ancestor `<fieldset>` disables the button, as a native button. A link button stays a link. */
135
+ fieldsetDisabled = false;
136
+ /** The button is disabled: `disabled`, or a disabled ancestor `<fieldset>` (not a link button). */
137
+ get isDisabled() {
138
+ return this.disabled || this.fieldsetDisabled && !this.href;
139
+ }
140
+ /** Whether the button takes no action: `disabled` (also from a `<fieldset>`), `disabled-reason` or `loading`. */
130
141
  get inactive() {
131
- return this.disabled || this.loading || !!this.disabledReason;
142
+ return this.isDisabled || this.loading || !!this.disabledReason;
143
+ }
144
+ formDisabledCallback(disabled) {
145
+ this.fieldsetDisabled = disabled;
146
+ this.requestUpdate();
147
+ }
148
+ /** For the default button of the form (internal/submit.ts): null when not a submit button, else whether it is off. */
149
+ [SUBMIT_BUTTON]() {
150
+ return this.type === "submit" && !this.href ? this.inactive : null;
132
151
  }
133
152
  /** Trigger ARIA set by popovers, menus and tooltips; rendered onto the inner control. */
134
153
  forwarded = { haspopup: null, expanded: null, controls: null, description: null, hideTitle: false };
@@ -260,14 +279,14 @@ class BkButton extends LitElement {
260
279
  --_bk-button-shadow: var(--bk-button-solid-shadow, 0 var(--bk-space-1) var(--bk-space-4) calc(-1 * var(--bk-space-1)) oklch(from var(--_bk-button-solid) l c h / calc(0.5 * var(--bk-glow-strength))));
261
280
  }
262
281
  @media (hover: hover) {
263
- :host([variant="solid"]:not([disabled]):not([pressed])) .control:hover:not([aria-disabled="true"]) { background: var(--_bk-button-fill-hover, var(--_bk-button-solid-hover)); }
282
+ :host([variant="solid"]:not([disabled], :disabled, [pressed]:not([pressed="false"]))) .control:hover:not([aria-disabled="true"]) { background: var(--_bk-button-fill-hover, var(--_bk-button-solid-hover)); }
264
283
  }
265
284
  :host([variant="soft"]) { --_bk-button-bg: var(--_bk-button-soft); --_bk-button-bd: transparent; --_bk-button-shadow: none; }
266
285
  :host([variant="ghost"]) { --_bk-button-bg: var(--bk-button-ghost-bg, transparent); --_bk-button-bd: transparent; --_bk-button-hover: var(--_bk-button-tint); --_bk-button-shadow: none; }
267
286
  :host([variant="quiet"]) { --_bk-button-bg: transparent; --_bk-button-bd: transparent; --_bk-button-shadow: none; }
268
287
  :host([variant="quiet"]:is([tone="neutral"], :not([tone]))) { --_bk-button-fg: var(--bk-button-quiet-fg, var(--bk-text-muted)); }
269
288
  @media (hover: hover) {
270
- :host([variant="quiet"]:not([disabled])) .control:hover:not([aria-disabled="true"]) { color: var(--_bk-button-text); border-color: var(--_bk-button-frame); }
289
+ :host([variant="quiet"]:not([disabled], :disabled)) .control:hover:not([aria-disabled="true"]) { color: var(--_bk-button-text); border-color: var(--_bk-button-frame); }
271
290
  }
272
291
  :host([floating]) { --_bk-button-shadow: var(--bk-button-floating-shadow, var(--bk-layer-overlay-shadow)); }
273
292
  :host([floating]:not([variant="solid"])) {
@@ -276,9 +295,12 @@ class BkButton extends LitElement {
276
295
  --_bk-button-bd: var(--bk-button-floating-border, var(--bk-layer-overlay-border));
277
296
  }
278
297
  :host([floating]) .control { border-radius: var(--bk-button-floating-radius, var(--bk-radius-full)); }
279
- :host([pressed]), :host([aria-current]:not([aria-current="false"])) {
280
- --_bk-button-bg: var(--bk-button-pressed-bg, var(--bk-accent-soft));
281
- --_bk-button-fg: var(--bk-button-pressed-fg, var(--bk-accent-text));
298
+ /* The pressed look follows the tone: its soft background and its text. Neutral (the default) uses the accent, the colour of a selection. */
299
+ :host { --_bk-button-pressed-bg: var(--bk-accent-soft); --_bk-button-pressed-fg: var(--bk-accent-text); }
300
+ :host([tone]:not([tone="neutral"])) { --_bk-button-pressed-bg: var(--_bk-button-soft); --_bk-button-pressed-fg: var(--_bk-button-text); }
301
+ :host([pressed]:not([pressed="false"])), :host([aria-current]:not([aria-current="false"])) {
302
+ --_bk-button-bg: var(--bk-button-pressed-bg, var(--_bk-button-pressed-bg));
303
+ --_bk-button-fg: var(--bk-button-pressed-fg, var(--_bk-button-pressed-fg));
282
304
  --_bk-button-bd: var(--bk-button-pressed-border, transparent);
283
305
  --_bk-button-shadow: none;
284
306
  }
@@ -300,8 +322,9 @@ class BkButton extends LitElement {
300
322
  .control:focus { outline: none; }
301
323
  .control:focus-visible { outline: var(--bk-focus-ring); outline-offset: var(--bk-button-focus-offset, var(--bk-focus-offset)); }
302
324
 
303
- :host([disabled]) .control, :host([disabled-reason]:not([disabled-reason=""])) .control { opacity: var(--bk-disabled-opacity); cursor: not-allowed; }
304
- :host([disabled]) .control::after, :host([disabled-reason]:not([disabled-reason=""])) .control::after { display: none; }
325
+ /* :disabled is also a disabled ancestor fieldset. A link button stays a link there. */
326
+ :host(:is([disabled], :disabled:not([href]))) .control, :host([disabled-reason]:not([disabled-reason=""])) .control { opacity: var(--bk-disabled-opacity); cursor: not-allowed; }
327
+ :host(:is([disabled], :disabled:not([href]))) .control::after, :host([disabled-reason]:not([disabled-reason=""])) .control::after { display: none; }
305
328
  /* The tooltip that says why the button is off wraps the control and fills the host like it. */
306
329
  .reason { display: flex; flex: 1; min-width: 0; }
307
330
  .reason::part(anchor) { flex: 1; min-width: 0; }
@@ -312,7 +335,7 @@ class BkButton extends LitElement {
312
335
  /* The content has no box of its own (display: contents), so each part hides. Not visibility: the label stays the accessible name. */
313
336
  .spinning .label, .spinning .content bk-icon, .spinning .content ::slotted(*) { opacity: 0; }
314
337
  .spinner { position: absolute; inset: 0; display: grid; place-items: center; }
315
- @media (forced-colors: active) { .control { border-color: ButtonText; } :host([pressed]) .control, :host([aria-current]:not([aria-current="false"])) .control { outline: 2px solid Highlight; } }
338
+ @media (forced-colors: active) { .control { border-color: ButtonText; } :host([pressed]:not([pressed="false"])) .control, :host([aria-current]:not([aria-current="false"])) .control { outline: 2px solid Highlight; } }
316
339
 
317
340
  .content { display: contents; }
318
341
  /* An icon's glyph carries its own inner space: the padding on its side gives that back. */
@@ -365,8 +388,15 @@ class BkButton extends LitElement {
365
388
  inOverlay = false;
366
389
  connectedCallback() {
367
390
  super.connectedCallback();
368
- const root = this.getRootNode();
369
- this.inOverlay = !!this.closest("dialog, bk-dialog, bk-drawer, [popover]") || root instanceof ShadowRoot && !!root.host.matches("bk-dialog, bk-drawer");
391
+ this.inOverlay = false;
392
+ for (let node = this; node; ) {
393
+ if (node.closest("dialog, bk-dialog, bk-drawer, bk-lightbox, bk-command-palette, [popover]")) {
394
+ this.inOverlay = true;
395
+ break;
396
+ }
397
+ const root = node.getRootNode();
398
+ node = root instanceof ShadowRoot ? root.host : null;
399
+ }
370
400
  if (this.collapsible && !this.icon && !this.iconEnd && !this.querySelector(":scope > :is([slot=start], [slot=end])")) {
371
401
  console.warn("<bk-button collapse> needs an icon (icon, icon-end, or the start or end slot): it is all that stays visible.", this);
372
402
  }
@@ -419,6 +449,11 @@ class BkButton extends LitElement {
419
449
  if (changed.has("loading"))
420
450
  this.loader.set(this.loading);
421
451
  }
452
+ updated(changed) {
453
+ super.updated(changed);
454
+ if (changed.has("type") && this.type === "submit")
455
+ listenForImplicitSubmission();
456
+ }
422
457
  renderContent() {
423
458
  return html`
424
459
  <slot name="start">${this.icon ? html`<bk-icon name=${this.icon}></bk-icon>` : nothing}</slot>
@@ -441,7 +476,8 @@ class BkButton extends LitElement {
441
476
  const title = f.hideTitle || this.hideTooltip || reason || labelTip ? void 0 : name;
442
477
  const popup = ifDefined(f.haspopup ?? void 0);
443
478
  const expanded = ifDefined(f.expanded === null ? this.hostExpanded ?? void 0 : String(f.expanded));
444
- const description = ifDefined(reason ? void 0 : [f.description, this.badgeDescription].filter(Boolean).join(". ") || void 0);
479
+ const newTab = this.href && this.target === "_blank" ? this.i18n.t("opensInNewTab") : void 0;
480
+ const description = ifDefined(reason ? void 0 : [f.description, this.badgeDescription, newTab].filter(Boolean).join(". ") || void 0);
445
481
  const current = ifDefined(this.current ?? void 0);
446
482
  const controls = controlsList(f.controls ?? this.hostControlled());
447
483
  if (this.href) {
@@ -451,11 +487,11 @@ class BkButton extends LitElement {
451
487
  download=${ifDefined(this.download)} aria-label=${ifDefined(name)} title=${ifDefined(title)}
452
488
  aria-haspopup=${popup} aria-expanded=${expanded} .ariaControlsElements=${controls} aria-description=${description} aria-current=${current}
453
489
  aria-disabled=${ifDefined(inactive ? "true" : void 0)} role=${ifDefined(inactive ? "link" : void 0)}
454
- tabindex=${ifDefined(reason ? "0" : this.disabled ? "-1" : void 0)}>${inner}</a>`);
490
+ tabindex=${ifDefined(reason ? "0" : this.isDisabled ? "-1" : void 0)}>${inner}</a>`);
455
491
  }
456
492
  return this.withReason(reason, name, labelTip, html`<button part="control" class=${cls} type="button"
457
493
  command=${ifDefined(this.command)} @click=${this.onControlClick}
458
- ?disabled=${this.disabled && !reason} aria-disabled=${ifDefined(off ? "true" : void 0)}
494
+ ?disabled=${this.isDisabled && !reason} aria-disabled=${ifDefined(off ? "true" : void 0)}
459
495
  aria-busy=${ifDefined(this.loading ? "true" : void 0)}
460
496
  aria-pressed=${ifDefined(this.pressed === void 0 ? void 0 : String(this.pressed))}
461
497
  aria-label=${ifDefined(name)} title=${ifDefined(title)}
@@ -89,6 +89,9 @@ export type { NavigateDetail } from "../internal/link.js";
89
89
  * @cssprop --bk-card-shadow - Shadow (default --bk-layer-raised-shadow; `elevated`: --bk-layer-overlay-shadow).
90
90
  * @cssprop --bk-card-shadow-hover - Shadow of a card with `href` on hover (default --bk-layer-overlay-shadow).
91
91
  * @cssprop --bk-card-border-hover - Border colour of a card with `href` on hover (default --bk-line-mid).
92
+ * @cssprop --bk-card-lift-hover - How far a card with `href` moves up on hover (default 0). Use whole pixels. With reduced motion it stays in place.
93
+ * @cssprop --bk-card-ring-hover - An image (for example a gradient) that a card with `href` shows as its ring on hover, over the border, in its
94
+ * radius (default none).
92
95
  * @cssprop --bk-card-padding - Inner padding of `padding="md"`, the default (default --bk-space-5).
93
96
  * @cssprop --bk-card-padding-sm - Inner padding of `padding="sm"` (default --bk-space-3).
94
97
  * @cssprop --bk-card-media-ratio - Aspect ratio of the media region (default auto; `media-ratio` sets it per card).
@@ -206,6 +209,7 @@ export declare class BkCard extends LitElement {
206
209
  private startSize;
207
210
  private slots;
208
211
  private i18n;
212
+ private internals;
209
213
  private busyState;
210
214
  private links;
211
215
  private sizes;
@@ -30,7 +30,8 @@ class BkCard extends LitElement {
30
30
  };
31
31
  slots = new SlotController(this);
32
32
  i18n = new LocalizeController(this);
33
- busyState = new BusyController(this, this.i18n);
33
+ internals = this.attachInternals();
34
+ busyState = new BusyController(this, this.i18n, this.internals);
34
35
  links = new LinkController(this);
35
36
  sizes = resizeObserver(([entry]) => {
36
37
  const size = entry.borderBoxSize?.[0]?.inlineSize ?? 0;
@@ -80,7 +81,16 @@ class BkCard extends LitElement {
80
81
  --bk-ground: var(--bk-card-bg, var(--bk-layer-raised-bg)); --bk-ground-tint: transparent;
81
82
  border: var(--bk-card-border-width, var(--bk-border-width)) solid var(--bk-card-border, var(--bk-layer-raised-border));
82
83
  border-radius: var(--bk-card-radius, var(--bk-radius-container, var(--bk-radius-lg))); box-shadow: var(--bk-card-shadow, var(--bk-layer-raised-shadow));
83
- text-decoration: none; transition: box-shadow var(--bk-duration), border-color var(--bk-duration);
84
+ text-decoration: none; transition: box-shadow var(--bk-duration), border-color var(--bk-duration), translate var(--bk-duration) var(--bk-ease);
85
+ }
86
+ /* The ring of a card with href on hover: an image over the border, cut to a ring in the radius of the card. The card
87
+ clips its content, so the ring is on the host. */
88
+ :host([href]) { position: relative; }
89
+ :host([href])::after {
90
+ content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
91
+ padding: var(--bk-card-border-width, var(--bk-border-width)); background: var(--bk-card-ring-hover, none);
92
+ mask: linear-gradient(currentColor 0 0) content-box exclude, linear-gradient(currentColor 0 0);
93
+ opacity: 0; transition: opacity var(--bk-duration), translate var(--bk-duration) var(--bk-ease);
84
94
  }
85
95
  :host([variant="elevated"]) .card { border-color: transparent; box-shadow: var(--bk-card-shadow, var(--bk-layer-overlay-shadow)); }
86
96
  :host([variant="flat"]) .card { border-color: transparent; box-shadow: none; background: var(--bk-card-bg, var(--bk-layer-sunken-bg)); --bk-ground: var(--bk-card-bg, var(--bk-layer-sunken-bg)); }
@@ -100,7 +110,10 @@ class BkCard extends LitElement {
100
110
  :host([href]) .overlay { z-index: 2; }
101
111
  @media (hover: hover) {
102
112
  :host([href]) .card:hover { box-shadow: var(--bk-card-shadow-hover, var(--bk-layer-overlay-shadow)); border-color: var(--bk-card-border-hover, var(--bk-line-mid)); }
113
+ :host([href]:hover)::after { opacity: 1; }
114
+ :host([href]:hover) .card, :host([href]:hover)::after { translate: 0 calc(-1 * var(--bk-card-lift-hover, 0px)); }
103
115
  }
116
+ @media (prefers-reduced-motion: reduce) { :host([href]:hover) .card, :host([href]:hover)::after { translate: none; } }
104
117
  .card:has(> .cover:active) { box-shadow: var(--bk-card-shadow, var(--bk-layer-raised-shadow)); background-image: linear-gradient(var(--bk-pressed), var(--bk-pressed)); }
105
118
  :host([tone]) .card:has(> .cover:active) { background-image: linear-gradient(var(--bk-pressed), var(--bk-pressed)), linear-gradient(var(--_bk-card-tint), var(--_bk-card-tint)); }
106
119
  /* Selected after hover: the choice stays visible under the pointer. */
@@ -44,6 +44,8 @@ export declare class BkCarouselControls extends LitElement {
44
44
  /** Size of the buttons. */
45
45
  size: "sm" | "md" | "lg";
46
46
  private readonly i18n;
47
+ /** The state `linked`: the controls are connected to a carousel with more than one page. */
48
+ private readonly internals;
47
49
  constructor();
48
50
  static styles: import("lit").CSSResult[];
49
51
  connectedCallback(): void;
@@ -14,13 +14,15 @@ class BkCarouselControls extends LitElement {
14
14
  size: { reflect: true, useDefault: true }
15
15
  };
16
16
  i18n = new LocalizeController(this);
17
+ /** The state `linked`: the controls are connected to a carousel with more than one page. */
18
+ internals = this.attachInternals();
17
19
  constructor() {
18
20
  super();
19
21
  this.size = "md";
20
22
  }
21
23
  static styles = [base, css`
22
24
  :host { display: inline-flex; align-items: center; gap: var(--bk-carousel-controls-spacing, var(--bk-space-1)); }
23
- :host(:not([data-linked])) { display: none; }
25
+ :host(:not(:state(linked))) { display: none; }
24
26
  `];
25
27
  connectedCallback() {
26
28
  super.connectedCallback();
@@ -43,7 +45,7 @@ class BkCarouselControls extends LitElement {
43
45
  if (changed.has("htmlFor") && changed.get("htmlFor") !== void 0)
44
46
  this.link();
45
47
  const linked = carouselOf(this);
46
- this.toggleAttribute("data-linked", !!linked && linked.link.state().multiple);
48
+ !!linked && linked.link.state().multiple ? this.internals.states.add("linked") : this.internals.states.delete("linked");
47
49
  }
48
50
  updated(changed) {
49
51
  super.updated(changed);
@@ -88,6 +88,12 @@ export declare class BkChartArea extends BkChartLine {
88
88
  attribute: string;
89
89
  type: ObjectConstructor;
90
90
  };
91
+ tooltipFields: {
92
+ attribute: string;
93
+ converter: {
94
+ fromAttribute(value: string | null): import("../charts/fields.js").ChartField[];
95
+ };
96
+ };
91
97
  yDirection: {
92
98
  attribute: string;
93
99
  reflect: boolean;