@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
@@ -1,414 +1,3 @@
1
- import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as i } from "./chunks/if-defined-z_20pBRr.js";
3
- import { t as a } from "./chunks/repeat-Dxf3qZZl.js";
4
- import { i as o, n as s, r as c, t as l } from "./chunks/define-DkVeu7e9.js";
5
- import { i as u, n as d } from "./chunks/anchor-CNX3nt2F.js";
6
- import { n as f, t as p } from "./chunks/events-DQ4e9cPN.js";
7
- import { a as m } from "./chunks/link--YWr8exL.js";
8
- import { t as h } from "./chunks/i18n-DFfGgd3d.js";
9
- import { t as g } from "./chunks/state-XYmTmnOw.js";
10
- import { t as _, v } from "./chunks/styles-CaeyhYDA.js";
11
- import { BkTabsItem as y } from "./bk-tabs-item.js";
12
- import { BkTabsPanel as b } from "./bk-tabs-panel.js";
13
- import { BkMenuItem as x } from "./bk-menu-item.js";
14
- import "./bk-button.js";
15
- import "./chunks/bk-icon-Bp_flKdv.js";
16
- import "./bk-menu.js";
17
- import "./chunks/add-CUFUzxGc.js";
18
- import "./chunks/more-horiz-mUorHvCo.js";
19
- // dist/components/bk-tabs.js
20
- var S = (e, t) => e.value || String(t), C = class extends n {
21
- static shadowRootOptions = {
22
- ...n.shadowRootOptions,
23
- slotAssignment: "manual"
24
- };
25
- static properties = {
26
- value: {
27
- reflect: !0,
28
- useDefault: !0
29
- },
30
- variant: {
31
- reflect: !0,
32
- useDefault: !0
33
- },
34
- size: {
35
- reflect: !0,
36
- useDefault: !0
37
- },
38
- orientation: {
39
- reflect: !0,
40
- useDefault: !0
41
- },
42
- activation: {},
43
- label: {},
44
- persistKey: { attribute: "persist-key" },
45
- addable: {
46
- type: Boolean,
47
- reflect: !0
48
- },
49
- addLabel: { attribute: "add-label" },
50
- overflow: {
51
- reflect: !0,
52
- useDefault: !0
53
- },
54
- overflowed: { state: !0 },
55
- menuOpen: { state: !0 }
56
- };
57
- menuTabs = [];
58
- stopKey;
59
- revealed = !1;
60
- internals = this.attachInternals();
61
- i18n = new h(this);
62
- resizer = o(() => this.measure());
63
- sizes;
64
- tabs = [];
65
- panels = [];
66
- others = [];
67
- ends = [];
68
- restored;
69
- authored;
70
- stored = new g(this, () => !this.linkMode && this.persistKey && `tabs:${this.persistKey}`, { onChange: (e) => {
71
- this.authored ??= this.value, e === void 0 ? this.value = this.authored : typeof e == "string" && this.tabs.some((t, n) => !t.disabled && S(t, n) === e) && (this.value = e);
72
- } });
73
- observer = c((e) => {
74
- e.some((e) => e.type === "childList" || e.target.parentElement === this) && this.requestUpdate();
75
- });
76
- constructor() {
77
- super(), this.value = "", this.variant = "underline", this.size = "md", this.orientation = "horizontal", this.activation = "automatic", this.overflowed = [], this.menuOpen = !1, this.overflow = "menu", this.addable = !1, this.addEventListener("remove", this.onRemove), this.addEventListener("click", this.onClick), this.addEventListener("beforematch", this.onFound), this.addEventListener("keydown", this.onKeydown), this.addEventListener("focusout", this.onFocusout);
78
- }
79
- connectedCallback() {
80
- super.connectedCallback(), this.observer.observe(this, {
81
- childList: !0,
82
- subtree: !0,
83
- attributes: !0,
84
- attributeFilter: [
85
- "value",
86
- "href",
87
- "disabled",
88
- "slot",
89
- "dot"
90
- ]
91
- }), this.requestUpdate();
92
- }
93
- disconnectedCallback() {
94
- super.disconnectedCallback(), this.observer.disconnect(), this.resizer.disconnect();
95
- }
96
- get linkMode() {
97
- return this.tabs.some((e) => !!e.href);
98
- }
99
- static styles = [
100
- _,
101
- v,
102
- r`
103
- /* In a container with a height (a bk-pane) the tabs fill it and hand the rest to the selected panel; otherwise as tall as their content. */
104
- :host {
105
- display: flex; flex-direction: column; block-size: 100%; min-height: 0;
106
- --_bk-tabs-panel-padding: var(--bk-space-4) 0 0;
107
- --_bk-tab-indicator-inset: auto 0 0 0;
108
- --_bk-tab-indicator-scale: 0.4 1;
109
- --_bk-tab-h: var(--bk-tabs-tab-height-md, var(--bk-control-md));
110
- --_bk-tab-px: var(--bk-tabs-tab-padding-md, var(--bk-space-3));
111
- --_bk-tab-fs: var(--bk-tabs-tab-font-size-md, var(--bk-type-body));
112
- --_bk-tab-icon: var(--bk-control-icon-md);
113
- }
114
- :host([size="sm"]) {
115
- --_bk-tab-h: var(--bk-tabs-tab-height-sm, var(--bk-control-sm));
116
- --_bk-tab-px: var(--bk-tabs-tab-padding-sm, var(--bk-space-2));
117
- --_bk-tab-fs: var(--bk-tabs-tab-font-size-sm, var(--bk-type-small));
118
- --_bk-tab-icon: var(--bk-control-icon-sm);
119
- }
120
- :host([size="lg"]) {
121
- --_bk-tab-h: var(--bk-tabs-tab-height-lg, var(--bk-control-lg));
122
- --_bk-tab-px: var(--bk-tabs-tab-padding-lg, var(--bk-space-4));
123
- --_bk-tab-fs: var(--bk-tabs-tab-font-size-lg, var(--bk-type-lead));
124
- --_bk-tab-icon: var(--bk-control-icon-lg);
125
- }
126
- .tabs { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
127
- .bar {
128
- position: relative; display: flex; align-items: center; gap: var(--bk-space-cluster); min-width: 0;
129
- box-shadow: inset 0 calc(-1 * var(--bk-tabs-border-width, var(--bk-border-width))) 0 var(--bk-tabs-border, var(--bk-line));
130
- }
131
- .list {
132
- display: flex; flex: 1; min-width: 0; gap: var(--bk-tabs-gap, var(--bk-space-1));
133
- position: relative; overflow-x: hidden;
134
- }
135
- /* A tab that does not fit leaves the row but keeps its size, so the row can measure it. */
136
- /* overflow="scroll": the row scrolls sideways, without a visible scroll bar. */
137
- :host([overflow="scroll"]:not([orientation="vertical"])) .list {
138
- overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity;
139
- }
140
- :host([overflow="scroll"]) ::slotted(bk-tabs-item) { scroll-snap-align: start; }
141
- :host([overflow="scroll"]) .more { display: none; }
142
- .more { flex: none; display: flex; align-items: center; margin-inline-start: calc(var(--bk-tabs-more-gap, var(--bk-space-cluster)) - var(--bk-space-cluster)); }
143
- .more.off { position: absolute; inset-block-start: 0; inset-inline-end: 0; visibility: hidden; pointer-events: none; }
144
- :host([orientation="vertical"]) .more { display: none; }
145
- .end { display: flex; align-items: center; gap: var(--bk-space-cluster); flex: none; }
146
- .add {
147
- flex: none; display: inline-grid; place-items: center; inline-size: var(--bk-tabs-add-size, var(--_bk-tab-h)); block-size: var(--bk-tabs-add-size, var(--_bk-tab-h));
148
- padding: 0; margin: 0; border: 0; background: none; font: inherit; color: var(--bk-tabs-add-fg, var(--bk-text-muted));
149
- border-radius: var(--bk-tabs-add-radius, var(--bk-radius-sm));
150
- --_bk-interactive-hover: var(--bk-tabs-add-hover-bg, var(--bk-hover)); --_bk-interactive-pressed: var(--bk-tabs-tab-pressed-bg, var(--bk-pressed));
151
- --bk-icon-size: var(--_bk-tab-icon);
152
- }
153
- .panels { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
154
- /* Only the selected panel takes the rest. A closed panel (hidden="until-found") stays in the flow and has no height. */
155
- .panels ::slotted(bk-tabs-panel:not([hidden])) { flex: 1; min-height: 0; }
156
-
157
- :host([orientation="vertical"]) {
158
- --_bk-tabs-panel-padding: 0 0 0 var(--bk-space-5);
159
- --_bk-tab-indicator-inset: 0 0 0 auto;
160
- --_bk-tab-indicator-block: auto;
161
- --_bk-tab-indicator-inline: var(--bk-tabs-indicator-width, var(--bk-indicator-width));
162
- --_bk-tab-indicator-scale: 1 0.4;
163
- --_bk-tab-justify: flex-start;
164
- /* The tab is a grid: mark, start, label, end. The end column lines up in the list. */
165
- --_bk-tab-display: grid;
166
- --_bk-tab-columns: auto auto minmax(0, 1fr) auto;
167
- --_bk-tab-row: 1;
168
- --_bk-tab-col-mark: 1;
169
- --_bk-tab-col-start: 2;
170
- --_bk-tab-col-label: 3;
171
- --_bk-tab-col-end: 4;
172
- --_bk-tab-mark-gap: var(--bk-tabs-tab-gap, var(--bk-space-2));
173
- --_bk-tab-column-gap: 0;
174
- }
175
- :host([orientation="vertical"]:state(dots)) {
176
- --_bk-tab-columns: calc(var(--bk-tabs-dot-size, var(--bk-space-2)) + var(--bk-tabs-tab-gap, var(--bk-space-2))) auto minmax(0, 1fr) auto;
177
- --_bk-tab-dot-gap: 0;
178
- }
179
- :host([orientation="vertical"]:dir(rtl)) { --_bk-tabs-panel-padding: 0 var(--bk-space-5) 0 0; --_bk-tab-indicator-inset: 0 auto 0 0; }
180
- :host(:not([variant="pills"])) { --_bk-tab-radius-es: 0; --_bk-tab-radius-ee: 0; }
181
- :host(:not([variant="pills"])[orientation="vertical"]) { --_bk-tab-radius-es: initial; --_bk-tab-radius-se: 0; }
182
- :host([orientation="vertical"]) .tabs { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
183
- :host([orientation="vertical"]) .bar {
184
- flex-direction: column; align-items: stretch; box-shadow: none;
185
- border-inline-end: var(--bk-tabs-border-width, var(--bk-border-width)) solid var(--bk-tabs-border, var(--bk-line));
186
- }
187
- :host([orientation="vertical"]) .list { flex-direction: column; overflow: visible; }
188
- :host([orientation="vertical"]) .end { flex-direction: column; align-items: stretch; }
189
-
190
- :host([variant="pills"]) {
191
- --_bk-tab-indicator-display: none;
192
- --_bk-tab-radius: var(--bk-tabs-pill-radius, var(--bk-radius-md));
193
- --_bk-tab-bg-selected: var(--bk-tabs-pill-bg, var(--bk-accent-soft));
194
- --_bk-tab-fg-selected: var(--bk-tabs-pill-fg, var(--bk-accent-text));
195
- }
196
- :host([variant="pills"]) .bar { box-shadow: none; border: 0; }
197
- :host([variant="pills"][orientation="vertical"]) { --_bk-tabs-panel-padding: 0 0 0 var(--bk-space-4); }
198
- @media (forced-colors: active) {
199
- .bar { border-block-end: var(--bk-border-width) solid CanvasText; }
200
- :host([variant="pills"]) .bar { border: 0; }
201
- }
202
- `
203
- ];
204
- willUpdate(e) {
205
- super.willUpdate(e), this.tabs = [], this.panels = [], this.others = [], this.ends = [];
206
- for (let e of s(this)?.children ?? []) e.getAttribute("slot") === "end" ? this.ends.push(e) : e instanceof y ? this.tabs.push(e) : e instanceof b ? this.panels.push(e) : this.others.push(e);
207
- this.internals.states[this.tabs.some((e) => e.dot || e.hasAttribute("dot")) ? "add" : "delete"]("dots");
208
- let t = this.tabs.filter((e) => !e.disabled);
209
- if (this.persistKey && this.persistKey !== this.restored && this.tabs.length && !this.linkMode) {
210
- this.restored = this.persistKey;
211
- let e = this.stored.value;
212
- typeof e == "string" && t.some((t) => S(t, this.tabs.indexOf(t)) === e) && (this.value = e);
213
- }
214
- !this.tabs.some((e, t) => S(e, t) === this.value) && t.length && !this.linkMode && (this.value = S(t[0], this.tabs.indexOf(t[0])));
215
- let n = this.overflowFor();
216
- (n.length !== this.overflowed.length || n.some((e, t) => e !== this.overflowed[t])) && (this.overflowed = n);
217
- }
218
- updated(e) {
219
- super.updated(e);
220
- let t = this.renderRoot;
221
- t.querySelector("slot[name=tab]")?.assign(...this.tabs), t.querySelector("slot[name=panel]")?.assign(...this.panels, ...this.others), t.querySelector("slot[name=end]")?.assign(...this.ends);
222
- let n = t.querySelector(".bar");
223
- for (let e of [
224
- n,
225
- t.querySelector(".more"),
226
- t.querySelector(".end"),
227
- ...this.tabs
228
- ]) e && this.resizer.observe(e);
229
- this.syncTabs();
230
- let r = this.linkMode, i = new Map(this.tabs.map((e, t) => [S(e, t), e]));
231
- this.panels.forEach((e, t) => {
232
- let n = S(e, t);
233
- e.setTab(r ? null : i.get(n) ?? null), e.hasAttribute("tabindex") || (e.tabIndex = 0), n === this.value ? e.removeAttribute("hidden") : e.getAttribute("hidden") !== "until-found" && e.setAttribute("hidden", "until-found");
234
- });
235
- let a = !this.revealed;
236
- (a || e.has("value") || e.has("overflow")) && this.revealSelected(a);
237
- }
238
- syncTabs() {
239
- let e = this.linkMode, t = new Set(this.overflowed), n = new Map(this.panels.map((e, t) => [S(e, t), e])), r = this.stopKey ?? this.value;
240
- this.tabs.forEach((i, a) => {
241
- let o = S(i, a);
242
- i.setTabState({
243
- tab: !e,
244
- selected: o === this.value,
245
- tabStop: !e && o === r,
246
- controls: e ? null : n.get(o) ?? null,
247
- overflow: t.has(i)
248
- });
249
- });
250
- }
251
- revealSelected(e) {
252
- if (this.overflow !== "scroll" || this.orientation === "vertical") return;
253
- let t = this.tabs.find((e, t) => S(e, t) === this.value);
254
- t && (this.revealed = !0, Promise.all(this.tabs.map((e) => e.updateComplete)).then(() => {
255
- let n = this.renderRoot?.querySelector(".list");
256
- if (!n || !t.isConnected || n.scrollWidth <= n.clientWidth) return;
257
- let r = n.getBoundingClientRect(), i = t.getBoundingClientRect(), a = i.left < r.left ? i.left - r.left : i.right > r.right ? Math.min(i.right - r.right, i.left - r.left) : 0;
258
- if (!a) return;
259
- let o = e || matchMedia("(prefers-reduced-motion: reduce)").matches;
260
- n.scrollBy({
261
- left: a,
262
- behavior: o ? "instant" : "smooth"
263
- });
264
- }));
265
- }
266
- tabFrom(e) {
267
- let t = e?.closest?.("bk-tabs-item");
268
- return t instanceof y && t.parentElement === this ? t : null;
269
- }
270
- select(e) {
271
- if (e.disabled) return !0;
272
- let t = S(e, this.tabs.indexOf(e));
273
- return t === this.value ? !0 : f(this, "select", {
274
- value: t,
275
- previous: this.value
276
- }, !0) ? (this.value = t, this.stopKey = void 0, e.href || this.stored.set(t), p(this, "change"), !0) : !1;
277
- }
278
- onFound = (e) => {
279
- let t = e.target;
280
- if (!(t instanceof b) || t.parentElement !== this) return;
281
- let n = S(t, this.panels.indexOf(t)), r = this.tabs.find((e, t) => S(e, t) === n);
282
- r && this.select(r);
283
- };
284
- onClick = (e) => {
285
- let t = this.tabFrom(e.target);
286
- if (t) {
287
- if (t.disabled) e.preventDefault();
288
- else if (t.href) {
289
- if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
290
- this.select(t) || e.preventDefault(), m(t, e);
291
- } else t.focus(), this.select(t);
292
- }
293
- };
294
- onKeydown = (e) => {
295
- let t = this.tabFrom(e.target);
296
- if (!t || this.linkMode) return;
297
- let n = this.orientation === "vertical", r = this.matches(":dir(rtl)"), i = n ? "ArrowUp" : r ? "ArrowRight" : "ArrowLeft", a = n ? "ArrowDown" : r ? "ArrowLeft" : "ArrowRight";
298
- if (e.key === "Delete" && t.removable) {
299
- e.preventDefault(), t.requestRemove();
300
- return;
301
- }
302
- let o = new Set(this.overflowed), s = this.tabs.filter((e) => !e.disabled && !o.has(e));
303
- if (!s.length) return;
304
- let c, l = s.indexOf(t);
305
- switch (e.key) {
306
- case i:
307
- c = s[(l - 1 + s.length) % s.length];
308
- break;
309
- case a:
310
- c = s[(l + 1) % s.length];
311
- break;
312
- case "Home":
313
- c = s[0];
314
- break;
315
- case "End":
316
- c = s[s.length - 1];
317
- break;
318
- case "Enter":
319
- case " ":
320
- e.preventDefault(), this.select(t);
321
- return;
322
- default: return;
323
- }
324
- e.preventDefault(), this.stopKey = S(c, this.tabs.indexOf(c)), this.syncTabs(), c.focus(), this.activation !== "manual" && this.select(c);
325
- };
326
- onFocusout = (e) => {
327
- this.linkMode || this.tabFrom(e.relatedTarget) || this.stopKey === void 0 || (this.stopKey = void 0, this.syncTabs());
328
- };
329
- measure() {
330
- let e = this.renderRoot, t = e?.querySelector(".bar"), n = e?.querySelector(".list"), r = e?.querySelector(".more");
331
- if (!t || !n || !r) return;
332
- let i = parseFloat(getComputedStyle(n).columnGap) || 0, a = parseFloat(getComputedStyle(t).columnGap) || 0, o = e.querySelector(".end"), s = t.clientWidth > 0 ? t.clientWidth - (o ? o.offsetWidth + a : 0) : 0, c = new Map(this.tabs.map((e) => [e, e.offsetWidth])), l = this.sizes, u = l && l.room === s && l.more === r.offsetWidth + a && l.gap === i && l.widths.size === c.size && [...c].every(([e, t]) => l.widths.get(e) === t);
333
- this.sizes = {
334
- room: s,
335
- more: r.offsetWidth + a,
336
- gap: i,
337
- widths: c
338
- }, u || this.requestUpdate();
339
- }
340
- overflowFor() {
341
- let e = this.sizes;
342
- if (!e || e.room <= 0 || this.orientation === "vertical" || this.overflow === "scroll" || this.tabs.length < 2) return [];
343
- let t = this.tabs.map((t) => e.widths.get(t) ?? 0);
344
- if (t.reduce((e, t) => e + t, 0) + e.gap * (t.length - 1) <= e.room) return [];
345
- let n = e.room - e.more, r = this.tabs.findIndex((e, t) => S(e, t) === this.value), i = /* @__PURE__ */ new Set(), a = 0;
346
- r >= 0 && (i.add(r), a = t[r]);
347
- for (let r = 0; r < this.tabs.length; r++) {
348
- if (i.has(r)) continue;
349
- let o = a + (i.size ? e.gap : 0) + t[r];
350
- if (o > n) break;
351
- i.add(r), a = o;
352
- }
353
- return this.tabs.filter((e, t) => !i.has(t));
354
- }
355
- tabOfEntry(e) {
356
- let t = e.composedPath().find((e) => e instanceof x);
357
- return t ? this.tabs.find((e, n) => S(e, n) === t.value) : void 0;
358
- }
359
- onMoreClick = (e) => {
360
- let t = this.tabOfEntry(e);
361
- t?.href && !t.disabled && (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0 || this.select(t) || e.preventDefault());
362
- };
363
- onMoreNavigate = (e) => {
364
- let t = this.tabOfEntry(e);
365
- t && (e.stopPropagation(), f(t, "navigate", e.detail, !0) || e.preventDefault());
366
- };
367
- onMoreSelect = (e) => {
368
- e.stopPropagation();
369
- let t = this.tabs.find((t, n) => S(t, n) === e.detail.value);
370
- t && ((t.href ? S(t, this.tabs.indexOf(t)) !== this.value : !this.select(t)) || this.updateComplete.then(() => requestAnimationFrame(() => t.focus())));
371
- };
372
- onMoreOpen = () => {
373
- this.menuTabs = this.overflowed, this.menuOpen = !0;
374
- };
375
- onMoreClose = () => {
376
- setTimeout(() => {
377
- this.menuOpen = !1;
378
- });
379
- };
380
- onRemove = (e) => {
381
- let t = this.tabFrom(e.target);
382
- t && queueMicrotask(() => {
383
- e.defaultPrevented || this.removeTab(t);
384
- });
385
- };
386
- removeTab(e) {
387
- let t = this.tabs.indexOf(e);
388
- if (t < 0) return;
389
- let n = S(e, t), r = this.panels.find((e, t) => S(e, t) === n), i = d(e, u()), a = n === this.value, o = this.tabs.map((e, t) => ({
390
- t: e,
391
- j: t
392
- })).filter(({ t }) => t !== e && !t.disabled), s = o.find(({ j: e }) => e > t) ?? o.at(-1), c = s ? s.t.value || String(s.j > t ? s.j - 1 : s.j) : "";
393
- e.remove(), r?.remove(), a && (this.value = c, s && p(this, "change")), i && s && this.updateComplete.then(() => s.t.focus());
394
- }
395
- render() {
396
- let n = this.orientation === "vertical", r = this.linkMode ? e`<nav class="list" part="tablist" aria-label=${i(this.label)}><slot name="tab"></slot></nav>` : e`<div class="list" part="tablist" role="tablist" aria-orientation=${n ? "vertical" : "horizontal"}
397
- aria-label=${i(this.label)}><slot name="tab"></slot></div>`, o = this.menuOpen ? this.menuTabs : this.overflowed, s = e`<bk-menu class="more ${o.length ? "" : "off"}" part="more" placement="bottom-end" @select=${this.onMoreSelect}
398
- @click=${{
399
- handleEvent: this.onMoreClick,
400
- capture: !0
401
- }} @navigate=${this.onMoreNavigate} @open=${this.onMoreOpen} @close=${this.onMoreClose}>
402
- <bk-button slot="trigger" variant="ghost" size=${this.size} icon="more-horiz" label=${this.i18n.t("more")}></bk-button>
403
- ${a(o, (e) => e, (t) => e`<bk-menu-item value=${S(t, this.tabs.indexOf(t))} icon=${i(t.icon)} ?disabled=${t.disabled}
404
- href=${i(t.href)} target=${i(t.target)} rel=${i(t.rel)} download=${i(t.download)}>${t.text}</bk-menu-item>`)}
405
- </bk-menu>`, c = this.addable ? e`<button class="add interactive" part="add" type="button" title=${this.addLabel || this.i18n.t("tabAdd")}
406
- aria-label=${this.addLabel || this.i18n.t("tabAdd")} @click=${() => p(this, "add")}><bk-icon name="add"></bk-icon></button>` : t;
407
- return e`<div class="tabs">
408
- <div class="bar" part="bar">${r}${s}${this.ends.length || this.addable ? e`<div class="end">${c}<slot name="end"></slot></div>` : t}</div>
409
- <div class="panels" part="panels"><slot name="panel"></slot></div>
410
- </div>`;
411
- }
412
- };
413
- l("bk-tabs", C);
414
- export { C as BkTabs };
1
+ import "./bk-tabs-item.js";
2
+ import "./bk-tabs-panel.js";
3
+ export { t as BkTabs } from "./chunks/bk-tabs-STkr3-E1.js";
@@ -1,10 +1,10 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as i } from "./chunks/define-DkVeu7e9.js";
2
+ import { t as i } from "./chunks/define-6OfuRn5c.js";
3
3
  import { t as a } from "./chunks/i18n-DFfGgd3d.js";
4
4
  import { i as o } from "./chunks/events-DQ4e9cPN.js";
5
5
  import { t as s } from "./chunks/slots-BHTtBbPo.js";
6
6
  import { t as c, v as l, x as u } from "./chunks/styles-CaeyhYDA.js";
7
- import "./chunks/bk-icon-Bp_flKdv.js";
7
+ import "./chunks/bk-icon-D4kI4F18.js";
8
8
  import "./bk-spinner.js";
9
9
  import "./chunks/block-BnkC6tdx.js";
10
10
  import "./chunks/check-circle-DYcaKS5n.js";
@@ -1,5 +1,5 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/define-DkVeu7e9.js";
2
+ import { t as r } from "./chunks/define-6OfuRn5c.js";
3
3
  import { t as i } from "./chunks/styles-CaeyhYDA.js";
4
4
  import { BkTasksItem as a } from "./bk-tasks-item.js";
5
5
  // dist/components/bk-tasks.js
@@ -1,8 +1,8 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as i } from "./chunks/define-DkVeu7e9.js";
2
+ import { t as i } from "./chunks/define-6OfuRn5c.js";
3
3
  import { t as a } from "./chunks/slots-BHTtBbPo.js";
4
4
  import { t as o } from "./chunks/styles-CaeyhYDA.js";
5
- import "./chunks/bk-icon-Bp_flKdv.js";
5
+ import "./chunks/bk-icon-D4kI4F18.js";
6
6
  import "./chunks/format-quote-BMN2b-AN.js";
7
7
  import "./chunks/person-DE-elrsL.js";
8
8
  // dist/components/bk-testimonial.js
@@ -1,5 +1,5 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { i, n as a, r as o, t as s } from "./chunks/define-DkVeu7e9.js";
2
+ import { a as i, i as a, r as o, t as s } from "./chunks/define-6OfuRn5c.js";
3
3
  import { t as c } from "./chunks/host-vars-DTKbhBPu.js";
4
4
  import { t as l } from "./chunks/i18n-DFfGgd3d.js";
5
5
  import { i as u } from "./chunks/events-DQ4e9cPN.js";
@@ -80,7 +80,7 @@ var h = class extends n {
80
80
  autoTitle = !1;
81
81
  offerFullText = () => {
82
82
  if (this.overflow !== "ellipsis" && this.overflow !== "lines" || this.expandable || this.hasAttribute("title") && !this.autoTitle) return;
83
- let e = this.overflow === "lines" ? this.scrollHeight > this.clientHeight : this.scrollWidth > this.clientWidth, t = a(this)?.textContent?.replace(/\s+/g, " ").trim();
83
+ let e = this.overflow === "lines" ? this.scrollHeight > this.clientHeight : this.scrollWidth > this.clientWidth, t = o(this)?.textContent?.replace(/\s+/g, " ").trim();
84
84
  e && t ? (this.setAttribute("title", t), this.autoTitle = !0) : this.autoTitle &&= (this.removeAttribute("title"), !1);
85
85
  };
86
86
  static styles = [p, r`
@@ -171,7 +171,7 @@ var h = class extends n {
171
171
  @media (forced-colors: active) { mark { background: Mark; color: MarkText; forced-color-adjust: none; } }
172
172
  `];
173
173
  segments;
174
- text = o(() => this.requestUpdate());
174
+ text = a(() => this.requestUpdate());
175
175
  sizes = i(() => this.measure());
176
176
  connectedCallback() {
177
177
  super.connectedCallback(), this.highlight && this.text.observe(this, {
@@ -1,6 +1,6 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/announcer-D1zrRWwO.js";
3
- import { t as i } from "./chunks/define-DkVeu7e9.js";
2
+ import { t as r } from "./chunks/announcer-6tMlCOq1.js";
3
+ import { t as i } from "./chunks/define-6OfuRn5c.js";
4
4
  import { t as a } from "./chunks/events-DQ4e9cPN.js";
5
5
  import { t as o } from "./chunks/i18n-DFfGgd3d.js";
6
6
  import { t as s, x as c } from "./chunks/styles-CaeyhYDA.js";
@@ -1,5 +1,5 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/define-DkVeu7e9.js";
2
+ import { t as r } from "./chunks/define-6OfuRn5c.js";
3
3
  import { t as i } from "./chunks/i18n-DFfGgd3d.js";
4
4
  import { t as a } from "./chunks/styles-CaeyhYDA.js";
5
5
  import { a as o, i as s, o as c, r as l, s as u } from "./chunks/format-Dj4SzErj.js";
@@ -1,6 +1,6 @@
1
- import { t as e } from "./chunks/heading-text-CgnCa_q2.js";
1
+ import { t as e } from "./chunks/heading-text-B2kF-b8p.js";
2
2
  import { a as t, n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
3
- import { t as a } from "./chunks/define-DkVeu7e9.js";
3
+ import { t as a } from "./chunks/define-6OfuRn5c.js";
4
4
  import { t as o } from "./chunks/i18n-DFfGgd3d.js";
5
5
  import { r as s, s as c } from "./chunks/format-Dj4SzErj.js";
6
6
  import { t as l } from "./chunks/slots-BHTtBbPo.js";
@@ -1,5 +1,5 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/define-DkVeu7e9.js";
2
+ import { t as r } from "./chunks/define-6OfuRn5c.js";
3
3
  import { t as i } from "./chunks/styles-CaeyhYDA.js";
4
4
  import "./bk-timeline-item.js";
5
5
  // dist/components/bk-timeline.js
@@ -1,2 +1,2 @@
1
- export { t as BkToastGroup, n as toast } from "./chunks/bk-toast-group-CoL6W7uk.js";
1
+ export { t as BkToastGroup, n as toast } from "./chunks/bk-toast-group-5nZg7BaJ.js";
2
2
  import "./bk-toast.js";
@@ -1,10 +1,10 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as i } from "./chunks/define-DkVeu7e9.js";
2
+ import { t as i } from "./chunks/define-6OfuRn5c.js";
3
3
  import { t as a } from "./chunks/i18n-DFfGgd3d.js";
4
4
  import { a as o, i as s, n as c, r as l, t as u } from "./chunks/message--qZJ4Gw7.js";
5
5
  import { t as d } from "./chunks/slots-BHTtBbPo.js";
6
6
  import { t as f } from "./chunks/styles-CaeyhYDA.js";
7
- import "./chunks/bk-icon-Bp_flKdv.js";
7
+ import "./chunks/bk-icon-D4kI4F18.js";
8
8
  import "./bk-button.js";
9
9
  import "./chunks/close-CcDDKPf9.js";
10
10
  // dist/components/bk-toast.js
@@ -1,5 +1,5 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { r, t as i } from "./chunks/define-DkVeu7e9.js";
2
+ import { i as r, t as i } from "./chunks/define-6OfuRn5c.js";
3
3
  import { t as a } from "./chunks/styles-CaeyhYDA.js";
4
4
  import "./bk-divider.js";
5
5
  // dist/components/bk-toolbar.js
@@ -1,6 +1,6 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { a as i, i as a, s as o, t as s } from "./chunks/anchor-CNX3nt2F.js";
3
- import { t as c } from "./chunks/define-DkVeu7e9.js";
3
+ import { t as c } from "./chunks/define-6OfuRn5c.js";
4
4
  import { t as l } from "./chunks/styles-CaeyhYDA.js";
5
5
  import { c as u, t as d } from "./chunks/shortcuts-DPxCSO4M.js";
6
6
  import "./bk-kbd.js";
@@ -1,13 +1,13 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as i } from "./chunks/if-defined-z_20pBRr.js";
3
3
  import { t as a } from "./chunks/style-map-BMvn17E7.js";
4
- import { t as o } from "./chunks/define-DkVeu7e9.js";
4
+ import { t as o } from "./chunks/define-6OfuRn5c.js";
5
5
  import { t as s } from "./chunks/link--YWr8exL.js";
6
6
  import { i as c } from "./chunks/events-DQ4e9cPN.js";
7
7
  import { t as l } from "./chunks/i18n-DFfGgd3d.js";
8
8
  import { t as u } from "./chunks/styles-CaeyhYDA.js";
9
- import { n as d } from "./chunks/toggle-control-lvZbQtGW.js";
10
- import "./chunks/bk-icon-Bp_flKdv.js";
9
+ import { n as d } from "./chunks/toggle-control-Cgqp1jhf.js";
10
+ import "./chunks/bk-icon-D4kI4F18.js";
11
11
  import "./bk-spinner.js";
12
12
  import "./chunks/check-BkWcIJJJ.js";
13
13
  import "./chunks/chevron-right-CxqvZ6TS.js";
@@ -1,10 +1,10 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { n as r, r as i, t as a } from "./chunks/define-DkVeu7e9.js";
2
+ import { i as r, r as i, t as a } from "./chunks/define-6OfuRn5c.js";
3
3
  import { n as o } from "./chunks/events-DQ4e9cPN.js";
4
4
  import { t as s } from "./chunks/state-XYmTmnOw.js";
5
5
  import { t as c } from "./chunks/styles-CaeyhYDA.js";
6
6
  import { t as l } from "./chunks/typeahead-CTUSPo-a.js";
7
- import { t as u } from "./chunks/virtual-C_h6sHnm.js";
7
+ import { t as u } from "./chunks/virtual-D-qgACnE.js";
8
8
  import { BkTreeItem as d } from "./bk-tree-item.js";
9
9
  import "./bk-skeleton.js";
10
10
  // dist/components/bk-tree.js
@@ -22,7 +22,7 @@ var f = class extends t {
22
22
  };
23
23
  active = null;
24
24
  typeahead = new l();
25
- observer = i(() => {
25
+ observer = r(() => {
26
26
  this.restore(), this.syncItems(), this.syncFocus(), this.requestUpdate();
27
27
  });
28
28
  known = /* @__PURE__ */ new WeakSet();
@@ -72,7 +72,7 @@ var f = class extends t {
72
72
  }
73
73
  `];
74
74
  get items() {
75
- return [...r(this)?.querySelectorAll("bk-tree-item") ?? []].filter((e) => e instanceof d && e.closest("bk-tree") === this);
75
+ return [...i(this)?.querySelectorAll("bk-tree-item") ?? []].filter((e) => e instanceof d && e.closest("bk-tree") === this);
76
76
  }
77
77
  get visibleItems() {
78
78
  return this.items.filter((e) => {
@@ -1,12 +1,12 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as i } from "./chunks/style-map-BMvn17E7.js";
3
- import { n as a, t as o } from "./chunks/define-DkVeu7e9.js";
3
+ import { r as a, t as o } from "./chunks/define-6OfuRn5c.js";
4
4
  import { t as s } from "./chunks/i18n-DFfGgd3d.js";
5
5
  import { i as c } from "./chunks/format-Dj4SzErj.js";
6
6
  import { t as l } from "./chunks/loading-B37QBUkv.js";
7
7
  import { t as u } from "./chunks/styles-CaeyhYDA.js";
8
8
  import "./bk-button.js";
9
- import "./chunks/bk-icon-Bp_flKdv.js";
9
+ import "./chunks/bk-icon-D4kI4F18.js";
10
10
  import "./bk-spinner.js";
11
11
  import "./chunks/closed-caption-CnJInFtE.js";
12
12
  import "./chunks/closed-caption-fill-PlMslC35.js";
@@ -1,5 +1,5 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/define-DkVeu7e9.js";
2
+ import { t as r } from "./chunks/define-6OfuRn5c.js";
3
3
  import { C as i, S as a, t as o } from "./chunks/styles-CaeyhYDA.js";
4
4
  // dist/components/bk-visually-hidden.js
5
5
  var s = class extends t {
@@ -1,12 +1,12 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as i } from "./chunks/i18n-DFfGgd3d.js";
3
- import { t as a } from "./chunks/define-DkVeu7e9.js";
3
+ import { t as a } from "./chunks/define-6OfuRn5c.js";
4
4
  import { t as o } from "./chunks/events-DQ4e9cPN.js";
5
- import { n as s, r as c } from "./chunks/form-control-CHpfKAKa.js";
5
+ import { n as s, r as c } from "./chunks/form-control-Bmk0SRDX.js";
6
6
  import { t as l, x as u } from "./chunks/styles-CaeyhYDA.js";
7
7
  import "./bk-button.js";
8
8
  import "./bk-input-slider.js";
9
- import "./chunks/bk-input-text-DviyLBqj.js";
9
+ import "./chunks/bk-input-text-2n89GDIT.js";
10
10
  import "./chunks/zoom-in-C934gQ2K.js";
11
11
  import "./chunks/zoom-out-wKpHan14.js";
12
12
  // dist/components/bk-zoom.js