@bk2k/ui 0.7.0 → 0.7.1

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 (313) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/USAGE.md +20 -9
  3. package/custom-elements.json +1 -1
  4. package/dist/charts/frame.d.ts +2 -0
  5. package/dist/components/bk-alert.js +1 -1
  6. package/dist/components/bk-button.d.ts +5 -0
  7. package/dist/components/bk-button.js +15 -4
  8. package/dist/components/bk-card.d.ts +6 -3
  9. package/dist/components/bk-card.js +15 -9
  10. package/dist/components/bk-chart-area.d.ts +4 -0
  11. package/dist/components/bk-chart-line.d.ts +15 -0
  12. package/dist/components/bk-chart-line.js +16 -6
  13. package/dist/components/bk-chip.d.ts +2 -0
  14. package/dist/components/bk-chip.js +3 -1
  15. package/dist/components/bk-combobox.d.ts +2 -2
  16. package/dist/components/bk-combobox.js +7 -20
  17. package/dist/components/bk-footnotes-item.d.ts +2 -2
  18. package/dist/components/bk-image-compare.d.ts +36 -1
  19. package/dist/components/bk-image-compare.js +47 -11
  20. package/dist/components/bk-image-viewer.d.ts +74 -3
  21. package/dist/components/bk-image-viewer.js +115 -28
  22. package/dist/components/bk-input-color.d.ts +2 -5
  23. package/dist/components/bk-input-color.js +0 -14
  24. package/dist/components/bk-input-file.d.ts +17 -0
  25. package/dist/components/bk-input-file.js +18 -8
  26. package/dist/components/bk-input-tags.d.ts +219 -0
  27. package/dist/components/bk-input-tags.js +293 -0
  28. package/dist/components/bk-input-text.d.ts +9 -0
  29. package/dist/components/bk-input-text.js +18 -2
  30. package/dist/components/bk-lightbox.d.ts +25 -1
  31. package/dist/components/bk-lightbox.js +7 -0
  32. package/dist/components/bk-page-cta.d.ts +2 -0
  33. package/dist/components/bk-page-cta.js +8 -1
  34. package/dist/components/bk-split-grid.js +7 -2
  35. package/dist/components/bk-stat.d.ts +2 -0
  36. package/dist/components/bk-stat.js +1 -1
  37. package/dist/components/bk-table.d.ts +2 -0
  38. package/dist/components/bk-table.js +1 -1
  39. package/dist/components/bk-tabs.d.ts +2 -1
  40. package/dist/components/bk-tabs.js +15 -3
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.js +1 -0
  43. package/dist/internal/announcer.d.ts +6 -0
  44. package/dist/internal/announcer.js +7 -2
  45. package/dist/internal/cloak.js +1 -0
  46. package/dist/internal/define.d.ts +9 -0
  47. package/dist/internal/define.js +47 -1
  48. package/dist/internal/elements.d.ts +6 -0
  49. package/dist/internal/elements.js +5 -0
  50. package/dist/internal/hue.d.ts +8 -0
  51. package/dist/internal/hue.js +15 -4
  52. package/dist/internal/late/bk-tabs.d.ts +4 -0
  53. package/dist/internal/late/bk-tabs.js +8 -0
  54. package/dist/internal/late.js +3 -3
  55. package/dist/internal/tags.d.ts +15 -0
  56. package/dist/internal/tags.js +44 -0
  57. package/dist/internal/text-field.d.ts +2 -0
  58. package/dist/internal/text-field.js +8 -0
  59. package/dist/internal/toggle-control.js +3 -1
  60. package/dist/jsx.d.ts +85 -6
  61. package/dist/kit.d.ts +1 -0
  62. package/dist/kit.js +3 -0
  63. package/dist/reset.css +1 -1
  64. package/dist/standalone/all.js +106 -105
  65. package/dist/standalone/bk-accordion-item.js +3 -3
  66. package/dist/standalone/bk-accordion.js +1 -1
  67. package/dist/standalone/bk-action-bar.js +1 -1
  68. package/dist/standalone/bk-alert-offline.js +1 -1
  69. package/dist/standalone/bk-alert.js +7 -4
  70. package/dist/standalone/bk-app-state.js +1 -1
  71. package/dist/standalone/bk-attachment.js +2 -2
  72. package/dist/standalone/bk-avatar-group.js +1 -1
  73. package/dist/standalone/bk-avatar.js +3 -3
  74. package/dist/standalone/bk-badge.js +1 -1
  75. package/dist/standalone/bk-bar.js +1 -1
  76. package/dist/standalone/bk-brand.js +1 -1
  77. package/dist/standalone/bk-breadcrumbs.js +2 -2
  78. package/dist/standalone/bk-button-copy.js +4 -4
  79. package/dist/standalone/bk-button-group.js +2 -2
  80. package/dist/standalone/bk-button-share.js +4 -4
  81. package/dist/standalone/bk-button-top.js +1 -1
  82. package/dist/standalone/bk-button.js +14 -6
  83. package/dist/standalone/bk-calendar-event.js +1 -1
  84. package/dist/standalone/bk-calendar-week.js +1 -1
  85. package/dist/standalone/bk-calendar.js +2 -2
  86. package/dist/standalone/bk-card.js +17 -11
  87. package/dist/standalone/bk-carousel-controls.js +2 -2
  88. package/dist/standalone/bk-carousel-item.js +1 -1
  89. package/dist/standalone/bk-carousel.js +1 -1
  90. package/dist/standalone/bk-chart-area.js +1 -1
  91. package/dist/standalone/bk-chart-bar-list.js +2 -2
  92. package/dist/standalone/bk-chart-bar.js +1 -1
  93. package/dist/standalone/bk-chart-bridge.js +1 -1
  94. package/dist/standalone/bk-chart-bullet.js +1 -1
  95. package/dist/standalone/bk-chart-calendar.js +1 -1
  96. package/dist/standalone/bk-chart-heatmap.js +1 -1
  97. package/dist/standalone/bk-chart-histogram.js +1 -1
  98. package/dist/standalone/bk-chart-legend.js +1 -1
  99. package/dist/standalone/bk-chart-line.js +16 -8
  100. package/dist/standalone/bk-chart-mark.js +1 -1
  101. package/dist/standalone/bk-chart-scatter.js +1 -1
  102. package/dist/standalone/bk-chart-sparkline.js +1 -1
  103. package/dist/standalone/bk-chart-stacked-bar.js +1 -1
  104. package/dist/standalone/bk-chart-tracker.js +1 -1
  105. package/dist/standalone/bk-chart-waterfall.js +2 -2
  106. package/dist/standalone/bk-checkbox-group.js +5 -5
  107. package/dist/standalone/bk-checkbox.js +3 -3
  108. package/dist/standalone/bk-chip-group.js +4 -4
  109. package/dist/standalone/bk-chip.js +5 -3
  110. package/dist/standalone/bk-cluster.js +1 -1
  111. package/dist/standalone/bk-code-diff.js +2 -2
  112. package/dist/standalone/bk-code-stack.js +1 -1
  113. package/dist/standalone/bk-code.js +1 -1
  114. package/dist/standalone/bk-color-panel.js +2 -2
  115. package/dist/standalone/bk-columns.js +1 -1
  116. package/dist/standalone/bk-combobox.js +21 -30
  117. package/dist/standalone/bk-command-menu.js +3 -3
  118. package/dist/standalone/bk-command-palette.js +4 -4
  119. package/dist/standalone/bk-composer.js +4 -4
  120. package/dist/standalone/bk-delta.js +1 -1
  121. package/dist/standalone/bk-diagram.js +1 -1
  122. package/dist/standalone/bk-dialog.js +1 -1
  123. package/dist/standalone/bk-disclosure.js +2 -2
  124. package/dist/standalone/bk-divider.js +4 -4
  125. package/dist/standalone/bk-drawer.js +2 -2
  126. package/dist/standalone/bk-drop-target.js +1 -1
  127. package/dist/standalone/bk-empty-state.js +2 -2
  128. package/dist/standalone/bk-error-summary.js +1 -1
  129. package/dist/standalone/bk-facts-item.js +1 -1
  130. package/dist/standalone/bk-facts.js +1 -1
  131. package/dist/standalone/bk-feature.js +2 -2
  132. package/dist/standalone/bk-fieldset.js +1 -1
  133. package/dist/standalone/bk-filter-bar.js +2 -2
  134. package/dist/standalone/bk-folder-browser.js +2 -2
  135. package/dist/standalone/bk-footnote.js +1 -1
  136. package/dist/standalone/bk-footnotes-item.js +2 -2
  137. package/dist/standalone/bk-footnotes.js +1 -1
  138. package/dist/standalone/bk-form-guard.js +1 -1
  139. package/dist/standalone/bk-form-steps.js +1 -1
  140. package/dist/standalone/bk-grid.js +1 -1
  141. package/dist/standalone/bk-icon-tile.js +2 -2
  142. package/dist/standalone/bk-icon.js +1 -1
  143. package/dist/standalone/bk-image-compare.js +55 -27
  144. package/dist/standalone/bk-image-crop.js +3 -3
  145. package/dist/standalone/bk-image-editor.js +1 -1
  146. package/dist/standalone/bk-image-viewer.js +127 -57
  147. package/dist/standalone/bk-input-code.js +2 -2
  148. package/dist/standalone/bk-input-color.js +3 -13
  149. package/dist/standalone/bk-input-date-range.js +2 -2
  150. package/dist/standalone/bk-input-date.js +2 -2
  151. package/dist/standalone/bk-input-file.js +20 -13
  152. package/dist/standalone/bk-input-group.js +2 -2
  153. package/dist/standalone/bk-input-inline.js +1 -1
  154. package/dist/standalone/bk-input-number.js +4 -4
  155. package/dist/standalone/bk-input-rating.js +4 -4
  156. package/dist/standalone/bk-input-rich.js +1 -1
  157. package/dist/standalone/bk-input-search.js +4 -4
  158. package/dist/standalone/bk-input-slider-range.js +2 -2
  159. package/dist/standalone/bk-input-slider.js +2 -2
  160. package/dist/standalone/bk-input-tags.js +224 -0
  161. package/dist/standalone/bk-input-text.js +1 -1
  162. package/dist/standalone/bk-input-time-zone.js +1 -1
  163. package/dist/standalone/bk-input-time.js +4 -4
  164. package/dist/standalone/bk-item-group.js +2 -2
  165. package/dist/standalone/bk-item.js +2 -2
  166. package/dist/standalone/bk-kbd-shortcuts.js +1 -1
  167. package/dist/standalone/bk-kbd.js +1 -1
  168. package/dist/standalone/bk-lightbox.js +16 -3
  169. package/dist/standalone/bk-lines.js +1 -1
  170. package/dist/standalone/bk-link.js +2 -2
  171. package/dist/standalone/bk-listbox-columns.js +6 -6
  172. package/dist/standalone/bk-listbox-item.js +1 -1
  173. package/dist/standalone/bk-listbox-search.js +5 -5
  174. package/dist/standalone/bk-listbox-transfer.js +4 -4
  175. package/dist/standalone/bk-listbox.js +5 -5
  176. package/dist/standalone/bk-logo-wall.js +1 -1
  177. package/dist/standalone/bk-logo.js +2 -2
  178. package/dist/standalone/bk-menu-bar.js +1 -1
  179. package/dist/standalone/bk-menu-context.js +1 -1
  180. package/dist/standalone/bk-menu-divider.js +1 -1
  181. package/dist/standalone/bk-menu-item.js +2 -2
  182. package/dist/standalone/bk-menu-label.js +1 -1
  183. package/dist/standalone/bk-menu-list.js +1 -1
  184. package/dist/standalone/bk-menu.js +4 -4
  185. package/dist/standalone/bk-message-approval.js +2 -2
  186. package/dist/standalone/bk-message-branches.js +1 -1
  187. package/dist/standalone/bk-message-citation.js +1 -1
  188. package/dist/standalone/bk-message-feedback.js +2 -2
  189. package/dist/standalone/bk-message-list.js +2 -2
  190. package/dist/standalone/bk-message-reasoning.js +3 -3
  191. package/dist/standalone/bk-message-source.js +1 -1
  192. package/dist/standalone/bk-message-tool-group.js +3 -3
  193. package/dist/standalone/bk-message-tool.js +3 -3
  194. package/dist/standalone/bk-message.js +2 -2
  195. package/dist/standalone/bk-meter.js +1 -1
  196. package/dist/standalone/bk-model-viewer.js +1 -1
  197. package/dist/standalone/bk-nav-divider.js +1 -1
  198. package/dist/standalone/bk-nav-group.js +5 -5
  199. package/dist/standalone/bk-nav-item.js +2 -2
  200. package/dist/standalone/bk-nav-toc.js +1 -1
  201. package/dist/standalone/bk-nav.js +1 -1
  202. package/dist/standalone/bk-overflow.js +1 -1
  203. package/dist/standalone/bk-page-cta.js +10 -3
  204. package/dist/standalone/bk-page-footer-column.js +1 -1
  205. package/dist/standalone/bk-page-footer.js +1 -1
  206. package/dist/standalone/bk-page-header.js +2 -2
  207. package/dist/standalone/bk-page-hero.js +2 -2
  208. package/dist/standalone/bk-page-pager.js +2 -2
  209. package/dist/standalone/bk-page-section.js +2 -2
  210. package/dist/standalone/bk-pagination.js +3 -3
  211. package/dist/standalone/bk-pane.js +2 -2
  212. package/dist/standalone/bk-panel.js +2 -2
  213. package/dist/standalone/bk-period-nav.js +2 -2
  214. package/dist/standalone/bk-picture.js +1 -175
  215. package/dist/standalone/bk-popover-help.js +1 -1
  216. package/dist/standalone/bk-popover.js +1 -1
  217. package/dist/standalone/bk-presence-cursor.js +2 -2
  218. package/dist/standalone/bk-preview.js +2 -2
  219. package/dist/standalone/bk-progress.js +1 -1
  220. package/dist/standalone/bk-prose.js +1 -1
  221. package/dist/standalone/bk-qr-code.js +1 -1
  222. package/dist/standalone/bk-radio-group.js +5 -5
  223. package/dist/standalone/bk-radio.js +2 -2
  224. package/dist/standalone/bk-rating.js +3 -3
  225. package/dist/standalone/bk-scroll.js +1 -1
  226. package/dist/standalone/bk-segmented-item.js +2 -2
  227. package/dist/standalone/bk-segmented.js +4 -4
  228. package/dist/standalone/bk-select-cascade.js +3 -3
  229. package/dist/standalone/bk-select-tree.js +4 -4
  230. package/dist/standalone/bk-select.js +4 -4
  231. package/dist/standalone/bk-shell-app.js +1 -1
  232. package/dist/standalone/bk-shell-centered.js +1 -1
  233. package/dist/standalone/bk-shell-sites.js +1 -1
  234. package/dist/standalone/bk-skeleton.js +1 -1
  235. package/dist/standalone/bk-sortable.js +2 -2
  236. package/dist/standalone/bk-spinner.js +1 -1
  237. package/dist/standalone/bk-split-grid.js +10 -7
  238. package/dist/standalone/bk-split.js +6 -6
  239. package/dist/standalone/bk-stack.js +1 -1
  240. package/dist/standalone/bk-stat-group.js +1 -1
  241. package/dist/standalone/bk-stat.js +3 -3
  242. package/dist/standalone/bk-status-dot.js +2 -2
  243. package/dist/standalone/bk-steps-item.js +2 -2
  244. package/dist/standalone/bk-steps.js +1 -1
  245. package/dist/standalone/bk-surface.js +1 -1
  246. package/dist/standalone/bk-swatch-group.js +6 -6
  247. package/dist/standalone/bk-swatch-palette.js +1 -1
  248. package/dist/standalone/bk-swatch.js +1 -1
  249. package/dist/standalone/bk-switch.js +2 -2
  250. package/dist/standalone/bk-table.js +1 -1
  251. package/dist/standalone/bk-tabs-item.js +2 -2
  252. package/dist/standalone/bk-tabs-panel.js +1 -1
  253. package/dist/standalone/bk-tabs.js +3 -414
  254. package/dist/standalone/bk-tasks-item.js +2 -2
  255. package/dist/standalone/bk-tasks.js +1 -1
  256. package/dist/standalone/bk-testimonial.js +2 -2
  257. package/dist/standalone/bk-text.js +3 -3
  258. package/dist/standalone/bk-time-countdown.js +2 -2
  259. package/dist/standalone/bk-time-relative.js +1 -1
  260. package/dist/standalone/bk-timeline-item.js +2 -2
  261. package/dist/standalone/bk-timeline.js +1 -1
  262. package/dist/standalone/bk-toast-group.js +1 -1
  263. package/dist/standalone/bk-toast.js +2 -2
  264. package/dist/standalone/bk-toolbar.js +1 -1
  265. package/dist/standalone/bk-tooltip.js +1 -1
  266. package/dist/standalone/bk-tree-item.js +3 -3
  267. package/dist/standalone/bk-tree.js +4 -4
  268. package/dist/standalone/bk-video.js +2 -2
  269. package/dist/standalone/bk-visually-hidden.js +1 -1
  270. package/dist/standalone/bk-zoom.js +3 -3
  271. package/dist/standalone/chunks/{announcer-D1zrRWwO.js → announcer-6tMlCOq1.js} +9 -4
  272. package/dist/standalone/chunks/{bk-alert-offline-Clw0ZSsH.js → bk-alert-offline-hCLuG-RM.js} +1 -1
  273. package/dist/standalone/chunks/{bk-carousel-Biz7t8sL.js → bk-carousel-_dudBMVq.js} +2 -2
  274. package/dist/standalone/chunks/{bk-diagram-D_fQf6SF.js → bk-diagram-BB2odomE.js} +2 -2
  275. package/dist/standalone/chunks/{bk-dialog-DwZyUUHh.js → bk-dialog-DcvwnOtN.js} +2 -2
  276. package/dist/standalone/chunks/{bk-icon-Bp_flKdv.js → bk-icon-D4kI4F18.js} +1 -1
  277. package/dist/standalone/chunks/{bk-image-editor-BADsoLRL.js → bk-image-editor-SRVkHI-4.js} +2 -2
  278. package/dist/standalone/chunks/{bk-input-date-range-DHcJ8-5g.js → bk-input-date-range-C0Vd-p0T.js} +2 -2
  279. package/dist/standalone/chunks/{bk-input-rich-CFhW6vRa.js → bk-input-rich-AmDv87E5.js} +3 -3
  280. package/dist/standalone/chunks/{bk-input-text-DviyLBqj.js → bk-input-text-2n89GDIT.js} +15 -5
  281. package/dist/standalone/chunks/{bk-model-viewer-w_Ah4Tvs.js → bk-model-viewer-BoNYBd6W.js} +2 -2
  282. package/dist/standalone/chunks/bk-picture-CA5gLxgZ.js +186 -0
  283. package/dist/standalone/chunks/{bk-qr-code-CYMovNVl.js → bk-qr-code-CSFfc8As.js} +1 -1
  284. package/dist/standalone/chunks/{bk-shell-app-B2lxHit8.js → bk-shell-app-BlCOG25y.js} +31 -30
  285. package/dist/standalone/chunks/{bk-surface-D7e0tErs.js → bk-surface-BULRdKam.js} +1 -1
  286. package/dist/standalone/chunks/{bk-swatch-palette-x13JgJQi.js → bk-swatch-palette-Cqj85tSW.js} +1 -1
  287. package/dist/standalone/chunks/{bk-table-CP8n_jy7.js → bk-table-DWlD7yoM.js} +72 -71
  288. package/dist/standalone/chunks/bk-tabs-STkr3-E1.js +422 -0
  289. package/dist/standalone/chunks/{bk-toast-group-CoL6W7uk.js → bk-toast-group-5nZg7BaJ.js} +2 -2
  290. package/dist/standalone/chunks/{busy-BUB22mGY.js → busy-eG3uHonz.js} +1 -1
  291. package/dist/standalone/chunks/{choice-field-poOTerh1.js → choice-field-B0oe_9fI.js} +4 -4
  292. package/dist/standalone/chunks/{date-field-B-fCXa2D.js → date-field-Dy1_qxNv.js} +2 -2
  293. package/dist/standalone/chunks/define-6OfuRn5c.js +60 -0
  294. package/dist/standalone/chunks/{form-control-CHpfKAKa.js → form-control-Bmk0SRDX.js} +1 -1
  295. package/dist/standalone/chunks/{handle-menu-BgYUbGO2.js → handle-menu-BAe9fPYJ.js} +10 -36
  296. package/dist/standalone/chunks/{heading-text-CgnCa_q2.js → heading-text-B2kF-b8p.js} +1 -1
  297. package/dist/standalone/chunks/hue-vLbNdAEl.js +20 -0
  298. package/dist/standalone/chunks/late-CPQ_RbU-.js +30 -0
  299. package/dist/standalone/chunks/{options-BdC8-KKM.js → options-ySaDL-dW.js} +1 -1
  300. package/dist/standalone/chunks/{stars-BgKEjDQx.js → stars-BAUc_LqI.js} +1 -1
  301. package/dist/standalone/chunks/tags-CMLAGsVw.js +37 -0
  302. package/dist/standalone/chunks/{text-field-CqhJSAwZ.js → text-field-CufOGdfr.js} +16 -10
  303. package/dist/standalone/chunks/{toggle-control-lvZbQtGW.js → toggle-control-Cgqp1jhf.js} +4 -2
  304. package/dist/standalone/chunks/{virtual-C_h6sHnm.js → virtual-D-qgACnE.js} +1 -1
  305. package/dist/standalone/confirm.js +2 -2
  306. package/dist/standalone/reset.css +1 -1
  307. package/dist/standalone/toast.js +1 -1
  308. package/dist/standalone/tokens.css +1 -1
  309. package/dist/tokens.css +1 -1
  310. package/package.json +2 -2
  311. package/dist/standalone/chunks/define-DkVeu7e9.js +0 -30
  312. package/dist/standalone/chunks/hue-Jvb-141g.js +0 -14
  313. package/dist/standalone/chunks/keyed-CZ2AaouM.js +0 -16
@@ -0,0 +1,44 @@
1
+ import { css, unsafeCSS } from "lit";
2
+ const SEPARATORS = /[,;\n\t]+/;
3
+ function splitTags(text) {
4
+ return text.split(SEPARATORS).map((t) => t.trim()).filter(Boolean);
5
+ }
6
+ function pastedTags(e, typed) {
7
+ const pasted = e.clipboardData?.getData("text") ?? "";
8
+ if (!SEPARATORS.test(pasted))
9
+ return void 0;
10
+ e.preventDefault();
11
+ return splitTags(typed + pasted);
12
+ }
13
+ function tagFieldStyles(prefix) {
14
+ const p = unsafeCSS(`--bk-${prefix}`);
15
+ return css`
16
+ .box { cursor: text; }
17
+ .values { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(${p}-tag-gap, var(--bk-space-1)); }
18
+ /*
19
+ * The chips sit in the box as its buttons do: the same gap above, below and at the start (the inset of the
20
+ * control box), the height of a button and a concentric corner. One row of chips keeps the height of the field.
21
+ */
22
+ .box.has-tags { padding-block: var(${p}-tags-padding, var(--_bk-control-box-inset)); }
23
+ :host .box.tags-first { padding-inline-start: var(${p}-tags-padding, var(--_bk-control-box-inset)); }
24
+ .has-tags bk-chip, .has-tags ::slotted(bk-chip) {
25
+ --bk-chip-height: var(--_bk-control-box-button-size);
26
+ --bk-chip-radius: var(--_bk-control-box-button-radius);
27
+ }
28
+ .tags { display: contents; }
29
+ bk-chip, ::slotted(bk-chip) { max-width: 100%; }
30
+ input { text-overflow: ellipsis; }
31
+ /* The text after the chips needs only the width of a pointer target: it stays in the row of the chips while it can. */
32
+ .has-tags input { min-width: var(${p}-input-min-width, var(--bk-target-min)); width: auto; }
33
+ input:disabled { cursor: not-allowed; }
34
+ /* Disabled with chips: the chips keep their text contrast (a dimmed box fails 4.5:1); the sunken fill and the cursor show the state. */
35
+ :host([disabled]) .box.has-tags { opacity: 1; }
36
+ :host([disabled]) .box.has-tags input { opacity: var(--bk-disabled-opacity); }
37
+ `;
38
+ }
39
+ export {
40
+ pastedTags,
41
+ splitTags,
42
+ tagFieldStyles
43
+ };
44
+ //# sourceMappingURL=tags.js.map
@@ -145,6 +145,8 @@ export declare abstract class TextField extends FormControl {
145
145
  /** A click on the prefix or suffix puts the caret into the field. */
146
146
  private onAffixPointerdown;
147
147
  private onClear;
148
+ /** Content comes before the value in the box: an icon, the `start` slot or a prefix. */
149
+ protected get hasLead(): boolean;
148
150
  protected renderStart(): TemplateResult<1>;
149
151
  protected renderEnd(): TemplateResult<1>;
150
152
  protected renderPrefix(): typeof nothing | TemplateResult<1>;
@@ -3,6 +3,7 @@ import { LocalizeController } from "../i18n.js";
3
3
  import { emit } from "./events.js";
4
4
  import { describedBy, fieldTemplate } from "./field.js";
5
5
  import { FormControl } from "./form-control.js";
6
+ import { lightDom } from "./server.js";
6
7
  import { base, controlBox, controlIcon, fieldStyles, fieldWidth, interactive } from "./styles.js";
7
8
  import "../components/bk-icon.js";
8
9
  import "../icons/set/close.js";
@@ -120,6 +121,13 @@ class TextField extends FormControl {
120
121
  this.focus();
121
122
  };
122
123
  onClear = () => this.clear();
124
+ /** Content comes before the value in the box: an icon, the `start` slot or a prefix. */
125
+ get hasLead() {
126
+ if (this.leadIcon || this.showAffixes && this.prefixText)
127
+ return true;
128
+ const host = lightDom(this);
129
+ return !!host && [...host.children].some((c) => c.slot === "start");
130
+ }
123
131
  renderStart() {
124
132
  const icon = this.leadIcon;
125
133
  return html`<slot name="start">${icon ? html`<bk-icon class="lead" name=${icon}></bk-icon>` : nothing}</slot>`;
@@ -83,8 +83,10 @@ class ToggleControl extends FormControl {
83
83
  /*
84
84
  * The native input lies on the indicator: the browser scrolls a focused element into view, and an input
85
85
  * at another place moves the page between pointerdown and pointerup. The click then does not toggle.
86
+ * The input is on top of the mark and the thumb: it gets the pointer, so a test tool that clicks the
87
+ * element with the role (getByRole("checkbox")) can reach it.
86
88
  */
87
- input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
89
+ input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: inherit; }
88
90
  .indicator:has(> input:focus-visible) { outline: var(--bk-focus-ring); outline-offset: var(--bk-focus-offset); }
89
91
  `;
90
92
  get control() {
package/dist/jsx.d.ts CHANGED
@@ -83,10 +83,10 @@ import type { BkFormSteps, FormStepDetail } from "./components/bk-form-steps.js"
83
83
  import type { BkGrid } from "./components/bk-grid.js";
84
84
  import type { BkIconTile } from "./components/bk-icon-tile.js";
85
85
  import type { BkIcon } from "./components/bk-icon.js";
86
- import type { BkImageCompare, ImageCompareView } from "./components/bk-image-compare.js";
86
+ import type { BkImageCompare, ImageCompareLoadDetail, ImageCompareView } from "./components/bk-image-compare.js";
87
87
  import type { BkImageCrop, ImageCropRect } from "./components/bk-image-crop.js";
88
88
  import type { BkImageEditor, ImageEdits } from "./components/bk-image-editor.js";
89
- import type { BkImageViewer, ImageViewerChangeDetail, ImageViewerView } from "./components/bk-image-viewer.js";
89
+ import type { BkImageViewer, ImageViewerChangeDetail, ImageViewerPageDetail, ImageViewerView } from "./components/bk-image-viewer.js";
90
90
  import type { BkInputCode } from "./components/bk-input-code.js";
91
91
  import type { BkInputColor } from "./components/bk-input-color.js";
92
92
  import type { BkInputDateRange } from "./components/bk-input-date-range.js";
@@ -100,6 +100,7 @@ import type { BkInputRich } from "./components/bk-input-rich.js";
100
100
  import type { BkInputSearch, SearchDetail } from "./components/bk-input-search.js";
101
101
  import type { BkInputSliderRange } from "./components/bk-input-slider-range.js";
102
102
  import type { BkInputSlider } from "./components/bk-input-slider.js";
103
+ import type { BkInputTags, InputTagsAddDetail, InputTagsRemoveDetail } from "./components/bk-input-tags.js";
103
104
  import type { BkInputText } from "./components/bk-input-text.js";
104
105
  import type { BkInputTimeZone } from "./components/bk-input-time-zone.js";
105
106
  import type { BkInputTime } from "./components/bk-input-time.js";
@@ -107,7 +108,7 @@ import type { BkItemGroup, ItemGroupSelectDetail } from "./components/bk-item-gr
107
108
  import type { BkItem } from "./components/bk-item.js";
108
109
  import type { BkKbdShortcuts } from "./components/bk-kbd-shortcuts.js";
109
110
  import type { BkKbd } from "./components/bk-kbd.js";
110
- import type { BkLightbox, LightboxChangeDetail } from "./components/bk-lightbox.js";
111
+ import type { BkLightbox, LightboxChangeDetail, LightboxPageDetail } from "./components/bk-lightbox.js";
111
112
  import type { BkLines } from "./components/bk-lines.js";
112
113
  import type { BkLink } from "./components/bk-link.js";
113
114
  import type { BkListboxColumns } from "./components/bk-listbox-columns.js";
@@ -720,6 +721,8 @@ declare module "react" {
720
721
  "toggleable"?: BkChartArea["toggleable"];
721
722
  /** With `toggleable`: stores the visible series in the app state (entry `chart-series:<persist-key>`, see `<bk-app-state>`). */
722
723
  "persist-key"?: BkAttr<BkChartArea["persistKey"]>;
724
+ /** `break` (default): a missing value breaks the line. `connect`: a straight segment bridges the gap between two real points. `gaps` in a series overrides it. Lines only: a stacked layer counts a missing value as 0. */
725
+ "gaps"?: BkChartArea["gaps"];
723
726
  /** Rows, one per x position. */
724
727
  "data"?: BkChartArea["data"];
725
728
  /** The series to draw, in fixed colour order (default: every numeric field except `x`). */
@@ -1042,6 +1045,8 @@ declare module "react" {
1042
1045
  "toggleable"?: BkChartLine["toggleable"];
1043
1046
  /** With `toggleable`: stores the visible series in the app state (entry `chart-series:<persist-key>`, see `<bk-app-state>`). */
1044
1047
  "persist-key"?: BkAttr<BkChartLine["persistKey"]>;
1048
+ /** `break` (default): a missing value breaks the line. `connect`: a straight segment bridges the gap between two real points. `gaps` in a series overrides it. Lines only: a stacked layer counts a missing value as 0. */
1049
+ "gaps"?: BkChartLine["gaps"];
1045
1050
  /** Rows, one per x position. */
1046
1051
  "data"?: BkChartLine["data"];
1047
1052
  /** The series to draw, in fixed colour order (default: every numeric field except `x`). */
@@ -1968,15 +1973,19 @@ declare module "react" {
1968
1973
  "show"?: BkImageCompare["show"];
1969
1974
  /** The user can zoom and pan. Both pictures show the same part. */
1970
1975
  "zoomable"?: BkImageCompare["zoomable"];
1976
+ /** The box takes the shape of the pictures: under `--bk-image-compare-max-height` the width follows the ratio. The box is never wider than its container and never larger than the natural size of the pictures. */
1977
+ "shaped"?: BkImageCompare["shaped"];
1971
1978
  /** Setting the view fires no `viewchange`. */
1972
1979
  "view"?: BkImageCompare["view"];
1973
1980
  /** The element fires this event while the user moves the divider. */
1974
1981
  "oninput"?: (event: Event) => void;
1975
1982
  /** The element fires this event when the user moves the divider (on release, on a key) or chooses the other picture (`toggle`). */
1976
1983
  "onchange"?: (event: Event) => void;
1984
+ /** A picture has loaded, also from the cache of the browser. `event.detail` is `{ side, naturalWidth, naturalHeight }` with `side` `before` or `after`. The event bubbles and is composed: the native `load` of the inner `<img>` does not leave the shadow root. */
1985
+ "onload"?: (event: CustomEvent<ImageCompareLoadDetail>) => void;
1977
1986
  /** The user zoomed or panned (`zoomable`). `event.detail` is the new `view`. Setting `view` and `resetZoom()` fire no event. Use it to show the same part in another `<bk-image-compare>` or `<bk-image-viewer>`. The event bubbles and is composed. */
1978
1987
  "onviewchange"?: (event: CustomEvent<ImageCompareView>) => void;
1979
- } & BkProps<BkImageCompare, "beforeSrc" | "afterSrc" | "beforeLabel" | "afterLabel">, "onViewchange" | "onViewchangeCapture">;
1988
+ } & BkProps<BkImageCompare, "beforeSrc" | "afterSrc" | "beforeLabel" | "afterLabel">, "onLoad" | "onLoadCapture" | "onViewchange" | "onViewchangeCapture">;
1980
1989
  "bk-image-crop": BkElementProps<BkImageCrop, {
1981
1990
  /** Address of the picture. */
1982
1991
  "src"?: BkImageCrop["src"];
@@ -2042,6 +2051,14 @@ declare module "react" {
2042
2051
  "loop"?: BkImageViewer["loop"];
2043
2052
  /** The viewer is the main content of the screen or of its dialog (`<bk-lightbox>` sets it). The plain wheel zooms, a click steps the zoom, and the keys of the viewer work while the focus is anywhere in the surrounding dialog. */
2044
2053
  "immersive"?: BkImageViewer["immersive"];
2054
+ /** The box takes the shape of the image: under `--bk-image-viewer-max-height` the width follows the ratio of the image. The box is never wider than its container and never larger than the natural size of the image. */
2055
+ "shaped"?: BkImageViewer["shaped"];
2056
+ /** The app has the list of pictures. The previous and next buttons show also for one item, and the viewer fires `page` when the user asks for a picture beyond its own items. */
2057
+ "pageable"?: BkImageViewer["pageable"];
2058
+ /** With `pageable`: the shown picture is the first of the list of the app. The previous button is off. */
2059
+ "first"?: BkImageViewer["first"];
2060
+ /** With `pageable`: the shown picture is the last of the list of the app. The next button is off. */
2061
+ "last"?: BkImageViewer["last"];
2045
2062
  /** Accessible name of the viewer region (default: i18n `imageViewer`). */
2046
2063
  "label"?: BkImageViewer["label"];
2047
2064
  /** Accessible name of the previous button (default from i18n). */
@@ -2072,7 +2089,9 @@ declare module "react" {
2072
2089
  "ondismiss"?: (event: Event) => void;
2073
2090
  /** The user changed the zoom or the visible part (at most once per frame). `event.detail` is the new `view`. Setting `view`, `resetZoom()`, `actualSize()` and a change of the image fire no event. The event bubbles and is composed. */
2074
2091
  "onviewchange"?: (event: CustomEvent<ImageViewerView>) => void;
2075
- } & BkProps<BkImageViewer, "prevLabel" | "nextLabel" | "zoomInLabel" | "zoomOutLabel" | "fitLabel" | "actualSizeLabel" | "errorLabel" | "panLabel">, "onLoad" | "onLoadCapture" | "onDismiss" | "onDismissCapture" | "onViewchange" | "onViewchangeCapture">;
2092
+ /** With `pageable`: the user asks for the previous or the next picture of the list of the app (a button, ← →, a swipe), and the viewer has no own item in that direction. `event.detail.direction` is `previous` or `next`. The app sets `items` to that picture. The event bubbles, is composed and is cancelable, as every event that navigates: `defaultPrevented` tells a later listener that a handler took the request. The viewer itself has no default action. */
2093
+ "onpage"?: (event: CustomEvent<ImageViewerPageDetail>) => void;
2094
+ } & BkProps<BkImageViewer, "prevLabel" | "nextLabel" | "zoomInLabel" | "zoomOutLabel" | "fitLabel" | "actualSizeLabel" | "errorLabel" | "panLabel">, "onLoad" | "onLoadCapture" | "onDismiss" | "onDismissCapture" | "onViewchange" | "onViewchangeCapture" | "onPage" | "onPageCapture">;
2076
2095
  "bk-input-code": BkElementProps<BkInputCode, {
2077
2096
  /** The code typed so far (up to `length` characters). */
2078
2097
  "value"?: BkInputCode["value"];
@@ -2689,6 +2708,58 @@ declare module "react" {
2689
2708
  /** When the user commits a change: on release of a drag, on each key press, on a commit in the field. */
2690
2709
  "onchange"?: (event: Event) => void;
2691
2710
  } & BkProps<BkInputSlider, "showValue" | "inputPosition">>;
2711
+ "bk-input-tags": BkElementProps<BkInputTags, {
2712
+ /** Text shown while the field has no tags. */
2713
+ "placeholder"?: BkInputTags["placeholder"];
2714
+ /** Shows the values, but the user cannot change them. */
2715
+ "readonly"?: BkInputTags["readonly"];
2716
+ /** Label of the Enter key on a phone keyboard, like the native `enterkeyhint`: `enter`, `done`, `go`, `next`, `previous`, `search`, `send`. */
2717
+ "enterkeyhint"?: BkAttr<BkInputTags["enterKeyHint"]>;
2718
+ /** Marks the field as one that may stay empty: "(optional)" after the label. A `required` field does not show it. */
2719
+ "optional"?: BkInputTags["optional"];
2720
+ /** Visible label of the field. Also its accessible name. */
2721
+ "label"?: BkInputTags["label"];
2722
+ /** Help text below the box. */
2723
+ "hint"?: BkInputTags["hint"];
2724
+ /** Error text below the box; also marks the field invalid. */
2725
+ "error"?: BkInputTags["error"];
2726
+ /** Leading icon name (shorthand for a `<bk-icon>` in the start slot). */
2727
+ "icon"?: BkInputTags["icon"];
2728
+ /** Height: `sm`, `md` (default), `lg`. */
2729
+ "size"?: BkInputTags["size"];
2730
+ /** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
2731
+ "prefixText"?: BkInputTags["prefixText"];
2732
+ /** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
2733
+ "suffix"?: BkAttr<BkInputTags["suffixText"]>;
2734
+ /** Shows a clear button while the field has a value. */
2735
+ "clearable"?: BkInputTags["clearable"];
2736
+ /** Accessible name of the clear button (default: i18n `clear`). */
2737
+ "clear-label"?: BkAttr<BkInputTags["clearLabel"]>;
2738
+ /** `top` (default): the label above the box. `start`: the label before the box on one row, centred on the box; hint and error stay below the box. The label column is `--bk-field-label-width` wide. */
2739
+ "label-position"?: BkAttr<BkInputTags["labelPosition"]>;
2740
+ /** Field name submitted with the form. */
2741
+ "name"?: BkInputTags["name"];
2742
+ /** Disables the control. A disabled ancestor `<fieldset>` disables it too. */
2743
+ "disabled"?: BkInputTags["disabled"];
2744
+ /** Requires a value before the form can submit. */
2745
+ "required"?: BkInputTags["required"];
2746
+ /** Set when the control failed validation (after a submit attempt or reportValidity()); cleared once valid. */
2747
+ "invalid"?: BkInputTags["invalid"];
2748
+ /** The values at the first connection, restored on form reset. */
2749
+ "defaultValues"?: BkInputTags["defaultValues"];
2750
+ /** The values: the text of the slotted chips that are not `removed`, else the values of the field. */
2751
+ "values"?: BkInputTags["values"];
2752
+ /** The `restore` event of a slotted `removed` chip, unchanged (the chip is the target). */
2753
+ "onrestore"?: (event: Event) => void;
2754
+ /** The user adds a value (Enter, comma, paste, blur). Cancelable: cancel it to keep the list as it is. It bubbles and is composed. */
2755
+ "onadd"?: (event: CustomEvent<InputTagsAddDetail>) => void;
2756
+ /** The user removes a value (Backspace, or the remove button of a chip of the field). Cancelable. It bubbles and is composed. With slotted chips, `detail.chip` is the chip. The field stops the `remove` event of a slotted chip at the field and fires this event instead. */
2757
+ "onremove"?: (event: CustomEvent<InputTagsRemoveDetail>) => void;
2758
+ /** When the values of the field change by the user (added, removed, cleared). */
2759
+ "oninput"?: (event: Event) => void;
2760
+ /** When the values of the field change by the user. */
2761
+ "onchange"?: (event: Event) => void;
2762
+ } & BkProps<BkInputTags, "enterKeyHint" | "suffixText" | "clearLabel" | "labelPosition">, "prefix" | "onRestore" | "onRestoreCapture" | "onAdd" | "onAddCapture" | "onRemove" | "onRemoveCapture">;
2692
2763
  "bk-input-text": BkElementProps<BkInputText, {
2693
2764
  /** The current value. */
2694
2765
  "value"?: BkInputText["value"];
@@ -2984,6 +3055,12 @@ declare module "react" {
2984
3055
  "filmstrip"?: BkLightbox["filmstrip"];
2985
3056
  /** Previous and next wrap around: after the last image comes the first. Without it, they stop at the ends. */
2986
3057
  "loop"?: BkLightbox["loop"];
3058
+ /** The app has the list of pictures: the viewer shows previous and next also for one image and fires `page` beyond its own images. */
3059
+ "pageable"?: BkLightbox["pageable"];
3060
+ /** With `pageable`: the shown picture is the first of the list of the app. The previous button is off. */
3061
+ "first"?: BkLightbox["first"];
3062
+ /** With `pageable`: the shown picture is the last of the list of the app. The next button is off. */
3063
+ "last"?: BkLightbox["last"];
2987
3064
  /** `grid`: square thumbnails that fill the width. `strip`: a wrapping row of thumbnails at one height. */
2988
3065
  "variant"?: BkLightbox["variant"];
2989
3066
  /** Accessible name of the viewer (default from i18n). */
@@ -3012,7 +3089,9 @@ declare module "react" {
3012
3089
  "onclose"?: (event: Event) => void;
3013
3090
  /** The user moves to another image. `event.detail.index` is the new index. The event bubbles (from the viewer). */
3014
3091
  "onchange"?: (event: CustomEvent<LightboxChangeDetail>) => void;
3015
- } & BkProps<BkLightbox, "closeLabel" | "prevLabel" | "nextLabel" | "zoomInLabel" | "zoomOutLabel" | "fitLabel" | "actualSizeLabel" | "errorLabel">, "onOpen" | "onOpenCapture" | "onClose" | "onCloseCapture">;
3092
+ /** With `pageable`: the user asks for the previous or the next picture of the list of the app. `event.detail.direction` is `previous` or `next`. The event bubbles, is composed and is cancelable (from the viewer). See `<bk-image-viewer>`. */
3093
+ "onpage"?: (event: CustomEvent<LightboxPageDetail>) => void;
3094
+ } & BkProps<BkLightbox, "closeLabel" | "prevLabel" | "nextLabel" | "zoomInLabel" | "zoomOutLabel" | "fitLabel" | "actualSizeLabel" | "errorLabel">, "onOpen" | "onOpenCapture" | "onClose" | "onCloseCapture" | "onPage" | "onPageCapture">;
3016
3095
  "bk-lines": BkElementProps<BkLines, {
3017
3096
  /** Cross-axis alignment: `stretch` (default), `start`, `center`, `end`. */
3018
3097
  "align"?: BkLines["align"];
package/dist/kit.d.ts CHANGED
@@ -27,4 +27,5 @@ export { emit, emitDetail, emitLifecycle, emitToggle } from "./internal/events.j
27
27
  export { anchorPopover, setTriggerAria, type AnchorOptions, type Placement, type TriggerAria } from "./internal/anchor.js";
28
28
  export { base, cloak } from "./base.js";
29
29
  export { interactive, focusRing, fieldStyles, controlBox, controlIcon, countBadge, srOnly, grip, popupSurface, popupMotion, } from "./internal/styles.js";
30
+ export { hue as nameHue, nameColors } from "./internal/hue.js";
30
31
  //# sourceMappingURL=kit.d.ts.map
package/dist/kit.js CHANGED
@@ -7,6 +7,7 @@ import { emit, emitDetail, emitLifecycle, emitToggle } from "./internal/events.j
7
7
  import { anchorPopover, setTriggerAria } from "./internal/anchor.js";
8
8
  import { base, cloak } from "./base.js";
9
9
  import { interactive, focusRing, fieldStyles, controlBox, controlIcon, countBadge, srOnly, grip, popupSurface, popupMotion } from "./internal/styles.js";
10
+ import { hue, nameColors } from "./internal/hue.js";
10
11
  export {
11
12
  FormControl,
12
13
  LocalizeController,
@@ -28,6 +29,8 @@ export {
28
29
  focusRing,
29
30
  grip,
30
31
  interactive,
32
+ nameColors,
33
+ hue as nameHue,
31
34
  optionalMarker,
32
35
  popupMotion,
33
36
  popupSurface,
package/dist/reset.css CHANGED
@@ -2,7 +2,7 @@
2
2
  Import it after the reset, in the same layer. The layer name must be the layer of the reset (Tailwind 4: base).
3
3
  :where() adds no specificity: the rule wins over the reset by its order, and the utilities of later layers still win. */
4
4
  @layer base {
5
- :where(bk-accordion, bk-accordion-item, bk-action-bar, bk-alert, bk-alert-offline, bk-app-state, bk-attachment, bk-avatar, bk-avatar-group, bk-badge, bk-bar, bk-brand, bk-breadcrumbs, bk-button, bk-button-copy, bk-button-group, bk-button-share, bk-button-top, bk-calendar, bk-calendar-event, bk-calendar-week, bk-card, bk-carousel, bk-carousel-controls, bk-carousel-item, bk-chart-area, bk-chart-bar, bk-chart-bar-list, bk-chart-bridge, bk-chart-bullet, bk-chart-calendar, bk-chart-heatmap, bk-chart-histogram, bk-chart-legend, bk-chart-line, bk-chart-mark, bk-chart-scatter, bk-chart-sparkline, bk-chart-stacked-bar, bk-chart-tracker, bk-chart-waterfall, bk-checkbox, bk-checkbox-group, bk-chip, bk-chip-group, bk-cluster, bk-code, bk-code-diff, bk-code-stack, bk-color-panel, bk-columns, bk-combobox, bk-command-menu, bk-command-palette, bk-composer, bk-delta, bk-diagram, bk-dialog, bk-disclosure, bk-divider, bk-drawer, bk-drop-target, bk-empty-state, bk-error-summary, bk-facts, bk-facts-item, bk-feature, bk-fieldset, bk-filter-bar, bk-folder-browser, bk-footnote, bk-footnotes, bk-footnotes-item, bk-form-guard, bk-form-steps, bk-grid, bk-icon, bk-icon-tile, bk-image-compare, bk-image-crop, bk-image-editor, bk-image-viewer, bk-input-code, bk-input-color, bk-input-date, bk-input-date-range, bk-input-file, bk-input-group, bk-input-inline, bk-input-number, bk-input-rating, bk-input-rich, bk-input-search, bk-input-slider, bk-input-slider-range, bk-input-text, bk-input-time, bk-input-time-zone, bk-item, bk-item-group, bk-kbd, bk-kbd-shortcuts, bk-lightbox, bk-lines, bk-link, bk-listbox, bk-listbox-columns, bk-listbox-item, bk-listbox-search, bk-listbox-transfer, bk-logo, bk-logo-wall, bk-menu, bk-menu-bar, bk-menu-context, bk-menu-divider, bk-menu-item, bk-menu-label, bk-menu-list, bk-message, bk-message-approval, bk-message-branches, bk-message-citation, bk-message-feedback, bk-message-list, bk-message-reasoning, bk-message-source, bk-message-tool, bk-message-tool-group, bk-meter, bk-model-viewer, bk-nav, bk-nav-divider, bk-nav-group, bk-nav-item, bk-nav-toc, bk-overflow, bk-page-cta, bk-page-footer, bk-page-footer-column, bk-page-header, bk-page-hero, bk-page-pager, bk-page-section, bk-pagination, bk-pane, bk-period-nav, bk-panel, bk-picture, bk-popover, bk-popover-help, bk-presence-cursor, bk-preview, bk-progress, bk-prose, bk-qr-code, bk-radio, bk-radio-group, bk-rating, bk-scroll, bk-segmented, bk-segmented-item, bk-select, bk-select-cascade, bk-select-tree, bk-shell-app, bk-shell-centered, bk-shell-sites, bk-skeleton, bk-sortable, bk-spinner, bk-split, bk-split-grid, bk-stack, bk-stat, bk-stat-group, bk-status-dot, bk-steps, bk-steps-item, bk-surface, bk-swatch, bk-swatch-group, bk-swatch-palette, bk-switch, bk-table, bk-tabs, bk-tabs-item, bk-tabs-panel, bk-tasks, bk-tasks-item, bk-testimonial, bk-text, bk-time-countdown, bk-time-relative, bk-timeline, bk-timeline-item, bk-toast, bk-toast-group, bk-toolbar, bk-tooltip, bk-tree, bk-tree-item, bk-video, bk-visually-hidden, bk-zoom) {
5
+ :where(bk-accordion, bk-accordion-item, bk-action-bar, bk-alert, bk-alert-offline, bk-app-state, bk-attachment, bk-avatar, bk-avatar-group, bk-badge, bk-bar, bk-brand, bk-breadcrumbs, bk-button, bk-button-copy, bk-button-group, bk-button-share, bk-button-top, bk-calendar, bk-calendar-event, bk-calendar-week, bk-card, bk-carousel, bk-carousel-controls, bk-carousel-item, bk-chart-area, bk-chart-bar, bk-chart-bar-list, bk-chart-bridge, bk-chart-bullet, bk-chart-calendar, bk-chart-heatmap, bk-chart-histogram, bk-chart-legend, bk-chart-line, bk-chart-mark, bk-chart-scatter, bk-chart-sparkline, bk-chart-stacked-bar, bk-chart-tracker, bk-chart-waterfall, bk-checkbox, bk-checkbox-group, bk-chip, bk-chip-group, bk-cluster, bk-code, bk-code-diff, bk-code-stack, bk-color-panel, bk-columns, bk-combobox, bk-command-menu, bk-command-palette, bk-composer, bk-delta, bk-diagram, bk-dialog, bk-disclosure, bk-divider, bk-drawer, bk-drop-target, bk-empty-state, bk-error-summary, bk-facts, bk-facts-item, bk-feature, bk-fieldset, bk-filter-bar, bk-folder-browser, bk-footnote, bk-footnotes, bk-footnotes-item, bk-form-guard, bk-form-steps, bk-grid, bk-icon, bk-icon-tile, bk-image-compare, bk-image-crop, bk-image-editor, bk-image-viewer, bk-input-code, bk-input-color, bk-input-date, bk-input-date-range, bk-input-file, bk-input-group, bk-input-inline, bk-input-number, bk-input-rating, bk-input-rich, bk-input-search, bk-input-slider, bk-input-slider-range, bk-input-tags, bk-input-text, bk-input-time, bk-input-time-zone, bk-item, bk-item-group, bk-kbd, bk-kbd-shortcuts, bk-lightbox, bk-lines, bk-link, bk-listbox, bk-listbox-columns, bk-listbox-item, bk-listbox-search, bk-listbox-transfer, bk-logo, bk-logo-wall, bk-menu, bk-menu-bar, bk-menu-context, bk-menu-divider, bk-menu-item, bk-menu-label, bk-menu-list, bk-message, bk-message-approval, bk-message-branches, bk-message-citation, bk-message-feedback, bk-message-list, bk-message-reasoning, bk-message-source, bk-message-tool, bk-message-tool-group, bk-meter, bk-model-viewer, bk-nav, bk-nav-divider, bk-nav-group, bk-nav-item, bk-nav-toc, bk-overflow, bk-page-cta, bk-page-footer, bk-page-footer-column, bk-page-header, bk-page-hero, bk-page-pager, bk-page-section, bk-pagination, bk-pane, bk-period-nav, bk-panel, bk-picture, bk-popover, bk-popover-help, bk-presence-cursor, bk-preview, bk-progress, bk-prose, bk-qr-code, bk-radio, bk-radio-group, bk-rating, bk-scroll, bk-segmented, bk-segmented-item, bk-select, bk-select-cascade, bk-select-tree, bk-shell-app, bk-shell-centered, bk-shell-sites, bk-skeleton, bk-sortable, bk-spinner, bk-split, bk-split-grid, bk-stack, bk-stat, bk-stat-group, bk-status-dot, bk-steps, bk-steps-item, bk-surface, bk-swatch, bk-swatch-group, bk-swatch-palette, bk-switch, bk-table, bk-tabs, bk-tabs-item, bk-tabs-panel, bk-tasks, bk-tasks-item, bk-testimonial, bk-text, bk-time-countdown, bk-time-relative, bk-timeline, bk-timeline-item, bk-toast, bk-toast-group, bk-toolbar, bk-tooltip, bk-tree, bk-tree-item, bk-video, bk-visually-hidden, bk-zoom) {
6
6
  margin: revert-layer;
7
7
  padding: revert-layer;
8
8
  border: revert-layer;