@bk2k/ui 0.6.8 → 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.
- package/BUILDING.md +56 -2
- package/CHANGELOG.md +199 -0
- package/USAGE.md +102 -28
- package/custom-elements.json +1 -1
- package/dist/charts/chart-tokens.js +1 -1
- package/dist/charts/fields.d.ts +20 -0
- package/dist/charts/fields.js +27 -0
- package/dist/charts/frame.d.ts +2 -0
- package/dist/charts/frame.js +2 -1
- package/dist/clipboard.js +1 -0
- package/dist/components/bk-alert.js +3 -2
- package/dist/components/bk-avatar-group.js +4 -6
- package/dist/components/bk-avatar.d.ts +10 -0
- package/dist/components/bk-avatar.js +17 -0
- package/dist/components/bk-bar.js +2 -0
- package/dist/components/bk-button-group.js +1 -1
- package/dist/components/bk-button-top.js +2 -1
- package/dist/components/bk-button.d.ts +42 -14
- package/dist/components/bk-button.js +67 -20
- package/dist/components/bk-card.d.ts +7 -0
- package/dist/components/bk-card.js +21 -2
- package/dist/components/bk-carousel-controls.d.ts +2 -0
- package/dist/components/bk-carousel-controls.js +4 -2
- package/dist/components/bk-chart-area.d.ts +10 -0
- package/dist/components/bk-chart-bar.d.ts +17 -0
- package/dist/components/bk-chart-bar.js +25 -4
- package/dist/components/bk-chart-line.d.ts +28 -0
- package/dist/components/bk-chart-line.js +27 -7
- package/dist/components/bk-chip-group.d.ts +2 -2
- package/dist/components/bk-chip-group.js +4 -0
- package/dist/components/bk-chip.d.ts +55 -8
- package/dist/components/bk-chip.js +46 -8
- package/dist/components/bk-code.js +6 -2
- package/dist/components/bk-columns.d.ts +11 -0
- package/dist/components/bk-columns.js +8 -1
- package/dist/components/bk-combobox.d.ts +3 -3
- package/dist/components/bk-combobox.js +9 -21
- package/dist/components/bk-delta.d.ts +10 -0
- package/dist/components/bk-delta.js +8 -6
- package/dist/components/bk-dialog.d.ts +12 -5
- package/dist/components/bk-dialog.js +14 -6
- package/dist/components/bk-disclosure.js +4 -2
- package/dist/components/bk-drop-target.d.ts +7 -1
- package/dist/components/bk-drop-target.js +20 -4
- package/dist/components/bk-error-summary.d.ts +5 -0
- package/dist/components/bk-error-summary.js +13 -4
- package/dist/components/bk-facts.js +3 -2
- package/dist/components/bk-footnote.d.ts +73 -0
- package/dist/components/bk-footnote.js +97 -0
- package/dist/components/bk-footnotes-item.d.ts +92 -0
- package/dist/components/bk-footnotes-item.js +139 -0
- package/dist/components/bk-footnotes.d.ts +51 -0
- package/dist/components/bk-footnotes.js +43 -0
- package/dist/components/bk-icon.js +2 -2
- package/dist/components/bk-image-compare.d.ts +69 -6
- package/dist/components/bk-image-compare.js +116 -32
- package/dist/components/bk-image-crop.d.ts +3 -3
- package/dist/components/bk-image-editor.d.ts +1 -1
- package/dist/components/bk-image-viewer.d.ts +178 -11
- package/dist/components/bk-image-viewer.js +310 -52
- package/dist/components/bk-input-color.d.ts +2 -5
- package/dist/components/bk-input-color.js +0 -14
- package/dist/components/bk-input-file.d.ts +17 -0
- package/dist/components/bk-input-file.js +18 -8
- package/dist/components/bk-input-inline.d.ts +15 -6
- package/dist/components/bk-input-inline.js +22 -6
- package/dist/components/bk-input-number.js +2 -1
- package/dist/components/bk-input-search.d.ts +1 -1
- package/dist/components/bk-input-search.js +2 -1
- package/dist/components/bk-input-tags.d.ts +219 -0
- package/dist/components/bk-input-tags.js +293 -0
- package/dist/components/bk-input-text.d.ts +20 -0
- package/dist/components/bk-input-text.js +34 -4
- package/dist/components/bk-input-time.js +2 -1
- package/dist/components/bk-item.js +2 -1
- package/dist/components/bk-lightbox.d.ts +37 -4
- package/dist/components/bk-lightbox.js +13 -3
- package/dist/components/bk-link.d.ts +9 -1
- package/dist/components/bk-link.js +14 -4
- package/dist/components/bk-menu-item.d.ts +40 -0
- package/dist/components/bk-menu-item.js +57 -9
- package/dist/components/bk-menu-label.js +2 -1
- package/dist/components/bk-menu-list.d.ts +1 -0
- package/dist/components/bk-menu-list.js +10 -0
- package/dist/components/bk-menu.d.ts +8 -1
- package/dist/components/bk-menu.js +16 -5
- package/dist/components/bk-message-feedback.d.ts +4 -3
- package/dist/components/bk-message-feedback.js +7 -5
- package/dist/components/bk-message-list.js +2 -1
- package/dist/components/bk-message-source.d.ts +1 -2
- package/dist/components/bk-message-source.js +3 -11
- package/dist/components/bk-message.js +2 -0
- package/dist/components/bk-nav-group.js +1 -1
- package/dist/components/bk-nav-item.d.ts +18 -0
- package/dist/components/bk-nav-item.js +18 -5
- package/dist/components/bk-nav.d.ts +1 -1
- package/dist/components/bk-page-cta.d.ts +2 -0
- package/dist/components/bk-page-cta.js +10 -1
- package/dist/components/bk-page-section.d.ts +1 -1
- package/dist/components/bk-page-section.js +3 -9
- package/dist/components/bk-pane.d.ts +1 -0
- package/dist/components/bk-pane.js +7 -5
- package/dist/components/bk-panel.d.ts +1 -1
- package/dist/components/bk-panel.js +6 -5
- package/dist/components/bk-picture.d.ts +17 -4
- package/dist/components/bk-picture.js +8 -1
- package/dist/components/bk-segmented-item.d.ts +24 -4
- package/dist/components/bk-segmented-item.js +37 -5
- package/dist/components/bk-segmented.js +2 -13
- package/dist/components/bk-select-cascade.d.ts +1 -1
- package/dist/components/bk-select-tree.d.ts +1 -1
- package/dist/components/bk-select.d.ts +1 -1
- package/dist/components/bk-shell-app.d.ts +10 -4
- package/dist/components/bk-shell-app.js +32 -9
- package/dist/components/bk-shell-sites.d.ts +2 -1
- package/dist/components/bk-shell-sites.js +3 -5
- package/dist/components/bk-sortable.js +7 -17
- package/dist/components/bk-split-grid.d.ts +104 -3
- package/dist/components/bk-split-grid.js +430 -2
- package/dist/components/bk-stat-group.js +2 -1
- package/dist/components/bk-stat.d.ts +19 -0
- package/dist/components/bk-stat.js +8 -4
- package/dist/components/bk-steps.js +2 -1
- package/dist/components/bk-surface.d.ts +2 -0
- package/dist/components/bk-surface.js +6 -3
- package/dist/components/bk-table.d.ts +3 -1
- package/dist/components/bk-table.js +10 -13
- package/dist/components/bk-tabs-item.d.ts +45 -7
- package/dist/components/bk-tabs-item.js +51 -20
- package/dist/components/bk-tabs-panel.d.ts +6 -3
- package/dist/components/bk-tabs-panel.js +6 -0
- package/dist/components/bk-tabs.d.ts +52 -8
- package/dist/components/bk-tabs.js +181 -97
- package/dist/components/bk-text.js +2 -1
- package/dist/components/bk-toast-group.d.ts +3 -1
- package/dist/components/bk-toast-group.js +11 -1
- package/dist/components/bk-tooltip.d.ts +3 -1
- package/dist/components/bk-tooltip.js +2 -1
- package/dist/components/bk-video.js +2 -2
- package/dist/components/bk-zoom.d.ts +3 -1
- package/dist/components/confirm.d.ts +15 -0
- package/dist/components/confirm.js +27 -4
- package/dist/i18n/de.js +12 -1
- package/dist/i18n/en.d.ts +2 -0
- package/dist/i18n/en.js +3 -0
- package/dist/i18n.d.ts +16 -2
- package/dist/i18n.js +28 -4
- package/dist/icons/brands-static.d.ts +3 -0
- package/dist/icons/brands-static.js +5 -0
- package/dist/icons/core.d.ts +1 -0
- package/dist/icons/core.js +2 -0
- package/dist/icons/load-static.d.ts +3 -0
- package/dist/icons/load-static.js +5 -0
- package/dist/icons/load.js +1 -0
- package/dist/icons/registry.js +1 -1
- package/dist/icons/set/save-as.d.ts +3 -0
- package/dist/icons/set/save-as.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/internal/announcer.d.ts +14 -1
- package/dist/internal/announcer.js +33 -12
- package/dist/internal/backdrop.d.ts +19 -0
- package/dist/internal/backdrop.js +29 -0
- package/dist/internal/busy.d.ts +3 -2
- package/dist/internal/busy.js +4 -5
- package/dist/internal/choice-field.js +1 -1
- package/dist/internal/choice-item.d.ts +17 -6
- package/dist/internal/choice-item.js +20 -9
- package/dist/internal/cloak.js +4 -0
- package/dist/internal/crop-frame.d.ts +1 -1
- package/dist/internal/crop-frame.js +2 -7
- package/dist/internal/date-field.js +2 -1
- package/dist/internal/define.d.ts +9 -0
- package/dist/internal/define.js +47 -1
- package/dist/internal/drag.d.ts +11 -0
- package/dist/internal/drag.js +23 -0
- package/dist/internal/elements.d.ts +6 -0
- package/dist/internal/elements.js +5 -0
- package/dist/internal/english-static.d.ts +3 -0
- package/dist/internal/english-static.js +5 -0
- package/dist/internal/english.d.ts +8 -0
- package/dist/internal/english.js +6 -0
- package/dist/internal/footnotes.d.ts +56 -0
- package/dist/internal/footnotes.js +143 -0
- package/dist/internal/handle-menu.js +2 -5
- package/dist/internal/hue.d.ts +8 -0
- package/dist/internal/hue.js +15 -4
- package/dist/internal/late/bk-shell-app.d.ts +4 -0
- package/dist/internal/late/bk-shell-app.js +7 -0
- package/dist/internal/late/bk-table.d.ts +4 -0
- package/dist/internal/late/bk-table.js +17 -0
- package/dist/internal/late/bk-tabs.d.ts +4 -0
- package/dist/internal/late/bk-tabs.js +8 -0
- package/dist/internal/late/handle-menu.d.ts +4 -0
- package/dist/internal/late/handle-menu.js +9 -0
- package/dist/internal/late/static.d.ts +7 -0
- package/dist/internal/late/static.js +5 -0
- package/dist/internal/late.d.ts +8 -3
- package/dist/internal/late.js +19 -4
- package/dist/internal/link.d.ts +2 -0
- package/dist/internal/link.js +11 -1
- package/dist/internal/own-text.d.ts +8 -0
- package/dist/internal/own-text.js +7 -0
- package/dist/internal/scope.js +1 -1
- package/dist/internal/scroll-lock.d.ts +4 -1
- package/dist/internal/scroll-lock.js +17 -4
- package/dist/internal/slider.js +2 -1
- package/dist/internal/styles.js +3 -0
- package/dist/internal/submit.d.ts +23 -0
- package/dist/internal/submit.js +57 -0
- package/dist/internal/tags.d.ts +15 -0
- package/dist/internal/tags.js +44 -0
- package/dist/internal/text-field.d.ts +2 -0
- package/dist/internal/text-field.js +8 -0
- package/dist/internal/toggle-control.js +3 -1
- package/dist/jsx.d.ts +222 -54
- package/dist/kit.d.ts +1 -0
- package/dist/kit.js +3 -0
- package/dist/reset.css +10 -0
- package/dist/standalone/all.js +226 -221
- package/dist/standalone/appearance.js +1 -1
- package/dist/standalone/bk-accordion-item.js +4 -4
- package/dist/standalone/bk-accordion.js +2 -2
- package/dist/standalone/bk-action-bar.js +3 -3
- package/dist/standalone/bk-alert-offline.js +1 -2
- package/dist/standalone/bk-alert.js +17 -13
- package/dist/standalone/bk-app-state.js +1 -1
- package/dist/standalone/bk-attachment.js +4 -4
- package/dist/standalone/bk-avatar-group.js +12 -10
- package/dist/standalone/bk-avatar.js +15 -5
- package/dist/standalone/bk-badge.js +2 -2
- package/dist/standalone/bk-bar.js +3 -1
- package/dist/standalone/bk-brand.js +3 -3
- package/dist/standalone/bk-breadcrumbs.js +5 -5
- package/dist/standalone/bk-button-copy.js +7 -7
- package/dist/standalone/bk-button-group.js +5 -5
- package/dist/standalone/bk-button-share.js +7 -7
- package/dist/standalone/bk-button-top.js +9 -8
- package/dist/standalone/bk-button.js +74 -34
- package/dist/standalone/bk-calendar-event.js +1 -1
- package/dist/standalone/bk-calendar-week.js +3 -3
- package/dist/standalone/bk-calendar.js +4 -4
- package/dist/standalone/bk-card.js +26 -7
- package/dist/standalone/bk-carousel-controls.js +7 -6
- package/dist/standalone/bk-carousel-item.js +2 -2
- package/dist/standalone/bk-carousel.js +1 -1
- package/dist/standalone/bk-chart-area.js +1 -1
- package/dist/standalone/bk-chart-bar-list.js +8 -8
- package/dist/standalone/bk-chart-bar.js +145 -117
- package/dist/standalone/bk-chart-bridge.js +7 -7
- package/dist/standalone/bk-chart-bullet.js +6 -6
- package/dist/standalone/bk-chart-calendar.js +7 -7
- package/dist/standalone/bk-chart-heatmap.js +7 -7
- package/dist/standalone/bk-chart-histogram.js +5 -5
- package/dist/standalone/bk-chart-legend.js +6 -6
- package/dist/standalone/bk-chart-line.js +128 -107
- package/dist/standalone/bk-chart-mark.js +1 -1
- package/dist/standalone/bk-chart-scatter.js +6 -6
- package/dist/standalone/bk-chart-sparkline.js +6 -6
- package/dist/standalone/bk-chart-stacked-bar.js +7 -7
- package/dist/standalone/bk-chart-tracker.js +6 -6
- package/dist/standalone/bk-chart-waterfall.js +6 -6
- package/dist/standalone/bk-checkbox-group.js +7 -7
- package/dist/standalone/bk-checkbox.js +4 -4
- package/dist/standalone/bk-chip-group.js +11 -7
- package/dist/standalone/bk-chip.js +59 -18
- package/dist/standalone/bk-cluster.js +1 -1
- package/dist/standalone/bk-code-diff.js +4 -4
- package/dist/standalone/bk-code-stack.js +4 -4
- package/dist/standalone/bk-code.js +10 -6
- package/dist/standalone/bk-color-panel.js +5 -5
- package/dist/standalone/bk-columns.js +13 -5
- package/dist/standalone/bk-combobox.js +23 -31
- package/dist/standalone/bk-command-menu.js +6 -6
- package/dist/standalone/bk-command-palette.js +8 -7
- package/dist/standalone/bk-composer.js +6 -6
- package/dist/standalone/bk-delta.js +11 -10
- package/dist/standalone/bk-diagram.js +1 -1
- package/dist/standalone/bk-dialog.js +1 -1
- package/dist/standalone/bk-disclosure.js +7 -5
- package/dist/standalone/bk-divider.js +5 -5
- package/dist/standalone/bk-drawer.js +3 -3
- package/dist/standalone/bk-drop-target.js +12 -6
- package/dist/standalone/bk-empty-state.js +3 -3
- package/dist/standalone/bk-error-summary.js +9 -6
- package/dist/standalone/bk-facts-item.js +2 -2
- package/dist/standalone/bk-facts.js +9 -8
- package/dist/standalone/bk-feature.js +3 -3
- package/dist/standalone/bk-fieldset.js +3 -3
- package/dist/standalone/bk-filter-bar.js +4 -4
- package/dist/standalone/bk-folder-browser.js +4 -4
- package/dist/standalone/bk-footnote.js +82 -0
- package/dist/standalone/bk-footnotes-item.js +122 -0
- package/dist/standalone/bk-footnotes.js +37 -0
- package/dist/standalone/bk-form-guard.js +2 -2
- package/dist/standalone/bk-form-steps.js +3 -3
- package/dist/standalone/bk-grid.js +1 -1
- package/dist/standalone/bk-icon-tile.js +3 -3
- package/dist/standalone/bk-icon.js +1 -1
- package/dist/standalone/bk-image-compare.js +127 -58
- package/dist/standalone/bk-image-crop.js +6 -6
- package/dist/standalone/bk-image-editor.js +1 -1
- package/dist/standalone/bk-image-viewer.js +283 -92
- package/dist/standalone/bk-input-code.js +4 -4
- package/dist/standalone/bk-input-color.js +4 -14
- package/dist/standalone/bk-input-date-range.js +2 -2
- package/dist/standalone/bk-input-date.js +2 -2
- package/dist/standalone/bk-input-file.js +22 -15
- package/dist/standalone/bk-input-group.js +4 -4
- package/dist/standalone/bk-input-inline.js +17 -10
- package/dist/standalone/bk-input-number.js +9 -8
- package/dist/standalone/bk-input-rating.js +6 -6
- package/dist/standalone/bk-input-rich.js +1 -1
- package/dist/standalone/bk-input-search.js +23 -22
- package/dist/standalone/bk-input-slider-range.js +5 -5
- package/dist/standalone/bk-input-slider.js +5 -5
- package/dist/standalone/bk-input-tags.js +224 -0
- package/dist/standalone/bk-input-text.js +1 -1
- package/dist/standalone/bk-input-time-zone.js +1 -1
- package/dist/standalone/bk-input-time.js +29 -28
- package/dist/standalone/bk-item-group.js +3 -3
- package/dist/standalone/bk-item.js +12 -11
- package/dist/standalone/bk-kbd-shortcuts.js +4 -3
- package/dist/standalone/bk-kbd.js +68 -1
- package/dist/standalone/bk-lightbox.js +24 -7
- package/dist/standalone/bk-lines.js +1 -1
- package/dist/standalone/bk-link.js +33 -19
- package/dist/standalone/bk-listbox-columns.js +8 -8
- package/dist/standalone/bk-listbox-item.js +1 -1
- package/dist/standalone/bk-listbox-search.js +7 -7
- package/dist/standalone/bk-listbox-transfer.js +6 -6
- package/dist/standalone/bk-listbox.js +7 -7
- package/dist/standalone/bk-logo-wall.js +2 -2
- package/dist/standalone/bk-logo.js +4 -4
- package/dist/standalone/bk-menu-bar.js +3 -3
- package/dist/standalone/bk-menu-context.js +1 -1
- package/dist/standalone/bk-menu-divider.js +2 -2
- package/dist/standalone/bk-menu-item.js +73 -29
- package/dist/standalone/bk-menu-label.js +7 -6
- package/dist/standalone/bk-menu-list.js +10 -4
- package/dist/standalone/bk-menu.js +19 -10
- package/dist/standalone/bk-message-approval.js +4 -4
- package/dist/standalone/bk-message-branches.js +3 -3
- package/dist/standalone/bk-message-citation.js +10 -10
- package/dist/standalone/bk-message-feedback.js +10 -6
- package/dist/standalone/bk-message-list.js +6 -5
- package/dist/standalone/bk-message-reasoning.js +5 -5
- package/dist/standalone/bk-message-source.js +13 -21
- package/dist/standalone/bk-message-tool-group.js +5 -5
- package/dist/standalone/bk-message-tool.js +5 -5
- package/dist/standalone/bk-message.js +6 -4
- package/dist/standalone/bk-meter.js +3 -3
- package/dist/standalone/bk-model-viewer.js +1 -1
- package/dist/standalone/bk-nav-divider.js +2 -2
- package/dist/standalone/bk-nav-group.js +9 -9
- package/dist/standalone/bk-nav-item.js +31 -23
- package/dist/standalone/bk-nav-toc.js +3 -3
- package/dist/standalone/bk-nav.js +3 -3
- package/dist/standalone/bk-overflow.js +3 -3
- package/dist/standalone/bk-page-cta.js +13 -4
- package/dist/standalone/bk-page-footer-column.js +2 -2
- package/dist/standalone/bk-page-footer.js +3 -3
- package/dist/standalone/bk-page-header.js +3 -3
- package/dist/standalone/bk-page-hero.js +3 -3
- package/dist/standalone/bk-page-pager.js +5 -5
- package/dist/standalone/bk-page-section.js +6 -6
- package/dist/standalone/bk-pagination.js +6 -6
- package/dist/standalone/bk-pane.js +10 -9
- package/dist/standalone/bk-panel.js +9 -10
- package/dist/standalone/bk-period-nav.js +4 -4
- package/dist/standalone/bk-picture.js +1 -166
- package/dist/standalone/bk-popover-help.js +3 -3
- package/dist/standalone/bk-popover.js +2 -2
- package/dist/standalone/bk-presence-cursor.js +3 -3
- package/dist/standalone/bk-preview.js +4 -4
- package/dist/standalone/bk-progress.js +3 -3
- package/dist/standalone/bk-prose.js +3 -3
- package/dist/standalone/bk-qr-code.js +1 -1
- package/dist/standalone/bk-radio-group.js +7 -7
- package/dist/standalone/bk-radio.js +3 -3
- package/dist/standalone/bk-rating.js +5 -5
- package/dist/standalone/bk-scroll.js +3 -3
- package/dist/standalone/bk-segmented-item.js +40 -16
- package/dist/standalone/bk-segmented.js +17 -15
- package/dist/standalone/bk-select-cascade.js +3 -3
- package/dist/standalone/bk-select-tree.js +4 -4
- package/dist/standalone/bk-select.js +5 -5
- package/dist/standalone/bk-shell-app.js +1 -1221
- package/dist/standalone/bk-shell-centered.js +2 -2
- package/dist/standalone/bk-shell-sites.js +5 -7
- package/dist/standalone/bk-skeleton.js +2 -2
- package/dist/standalone/bk-sortable.js +55 -60
- package/dist/standalone/bk-spinner.js +2 -2
- package/dist/standalone/bk-split-grid.js +324 -44
- package/dist/standalone/bk-split.js +8 -8
- package/dist/standalone/bk-stack.js +1 -1
- package/dist/standalone/bk-stat-group.js +8 -7
- package/dist/standalone/bk-stat.js +12 -9
- package/dist/standalone/bk-status-dot.js +3 -3
- package/dist/standalone/bk-steps-item.js +5 -5
- package/dist/standalone/bk-steps.js +8 -7
- package/dist/standalone/bk-surface.js +1 -1
- package/dist/standalone/bk-swatch-group.js +8 -8
- package/dist/standalone/bk-swatch-palette.js +1 -1
- package/dist/standalone/bk-swatch.js +2 -2
- package/dist/standalone/bk-switch.js +4 -4
- package/dist/standalone/bk-table.js +1 -1937
- package/dist/standalone/bk-tabs-item.js +58 -35
- package/dist/standalone/bk-tabs-panel.js +7 -3
- package/dist/standalone/bk-tabs.js +3 -352
- package/dist/standalone/bk-tasks-item.js +4 -4
- package/dist/standalone/bk-tasks.js +2 -2
- package/dist/standalone/bk-testimonial.js +3 -3
- package/dist/standalone/bk-text.js +21 -20
- package/dist/standalone/bk-time-countdown.js +4 -4
- package/dist/standalone/bk-time-relative.js +3 -3
- package/dist/standalone/bk-timeline-item.js +4 -4
- package/dist/standalone/bk-timeline.js +2 -2
- package/dist/standalone/bk-toast-group.js +1 -1
- package/dist/standalone/bk-toast.js +4 -4
- package/dist/standalone/bk-toolbar.js +2 -2
- package/dist/standalone/bk-tooltip.js +8 -7
- package/dist/standalone/bk-tree-item.js +6 -6
- package/dist/standalone/bk-tree.js +5 -5
- package/dist/standalone/bk-video.js +6 -6
- package/dist/standalone/bk-visually-hidden.js +2 -2
- package/dist/standalone/bk-zoom.js +5 -5
- package/dist/standalone/chunks/announcer-6tMlCOq1.js +41 -0
- package/dist/standalone/chunks/{appearance-waHnV0kk.js → appearance-CBOJXbmC.js} +1 -1
- package/dist/standalone/chunks/{bk-alert-offline-B1bQxOZp.js → bk-alert-offline-hCLuG-RM.js} +3 -3
- package/dist/standalone/chunks/{bk-carousel-BCwIQhG5.js → bk-carousel-_dudBMVq.js} +4 -4
- package/dist/standalone/chunks/{bk-diagram-DWK8CvRZ.js → bk-diagram-BB2odomE.js} +5 -5
- package/dist/standalone/chunks/{bk-dialog-DX0cPJ1o.js → bk-dialog-DcvwnOtN.js} +59 -25
- package/dist/standalone/chunks/{bk-icon-DssFsNuB.js → bk-icon-D4kI4F18.js} +4 -3
- package/dist/standalone/chunks/{bk-image-editor-DXEj9gCu.js → bk-image-editor-SRVkHI-4.js} +5 -5
- package/dist/standalone/chunks/{bk-input-date-range-Cbx_lpf0.js → bk-input-date-range-C0Vd-p0T.js} +2 -2
- package/dist/standalone/chunks/{bk-input-rich-ZB68vziu.js → bk-input-rich-AmDv87E5.js} +6 -6
- package/dist/standalone/chunks/{bk-input-text-DD32uWNO.js → bk-input-text-2n89GDIT.js} +73 -54
- package/dist/standalone/chunks/{bk-model-viewer-Dr81ahVv.js → bk-model-viewer-BoNYBd6W.js} +4 -4
- package/dist/standalone/chunks/bk-picture-CA5gLxgZ.js +186 -0
- package/dist/standalone/chunks/{bk-qr-code-QaYvZwOR.js → bk-qr-code-CSFfc8As.js} +3 -3
- package/dist/standalone/chunks/bk-shell-app-BlCOG25y.js +1236 -0
- package/dist/standalone/chunks/{bk-surface-DkIhrWMt.js → bk-surface-BULRdKam.js} +9 -7
- package/dist/standalone/chunks/{bk-swatch-palette-BNNXTP3w.js → bk-swatch-palette-Cqj85tSW.js} +6 -6
- package/dist/standalone/chunks/bk-table-DWlD7yoM.js +1945 -0
- package/dist/standalone/chunks/bk-tabs-STkr3-E1.js +422 -0
- package/dist/standalone/chunks/{bk-toast-group-BSeO_rPs.js → bk-toast-group-5nZg7BaJ.js} +27 -24
- package/dist/standalone/chunks/{brush-Bn3lPdHN.js → brush-DALmXSru.js} +18 -2
- package/dist/standalone/chunks/{busy-B7Mxemwm.js → busy-eG3uHonz.js} +5 -4
- package/dist/standalone/chunks/{chart-tokens-D1Exf7BW.js → chart-tokens-DQ4hVSmn.js} +2 -2
- package/dist/standalone/chunks/{choice-field-CGvE4tyb.js → choice-field-B0oe_9fI.js} +6 -6
- package/dist/standalone/chunks/{choice-item-B6-9ZRlf.js → choice-item-Cx-nm1js.js} +17 -8
- package/dist/standalone/chunks/{clipboard-Crzt1Sh9.js → clipboard-RqIeP9Uz.js} +1 -1
- package/dist/standalone/chunks/{clipboard-BKlrP5rj.js → clipboard-UVLSkL4C.js} +1 -1
- package/dist/standalone/chunks/{crop-frame-poLCGrBG.js → crop-frame-Z9N0QML4.js} +1 -11
- package/dist/standalone/chunks/{date-field-BlI6grfT.js → date-field-Dy1_qxNv.js} +48 -47
- package/dist/standalone/chunks/define-6OfuRn5c.js +60 -0
- package/dist/standalone/chunks/drag-DT4__0t9.js +12 -0
- package/dist/standalone/chunks/footnotes-BeisMxLk.js +94 -0
- package/dist/standalone/chunks/{form-control-CyXQIJ2x.js → form-control-Bmk0SRDX.js} +2 -2
- package/dist/standalone/chunks/{frame-abXBnl8a.js → frame-xIMVEUCi.js} +5 -4
- package/dist/standalone/chunks/{handle-menu-ZVR_msk2.js → handle-menu-BAe9fPYJ.js} +14 -33
- package/dist/standalone/chunks/{heading-text-CV5gBf7k.js → heading-text-B2kF-b8p.js} +1 -1
- package/dist/standalone/chunks/hue-vLbNdAEl.js +20 -0
- package/dist/standalone/chunks/{i18n-B6Al9xCK.js → i18n-DFfGgd3d.js} +49 -34
- package/dist/standalone/chunks/{i18n-BI16HQmm.js → i18n-DQAcbHkY.js} +1 -1
- package/dist/standalone/chunks/late-CPQ_RbU-.js +30 -0
- package/dist/standalone/chunks/link--YWr8exL.js +69 -0
- package/dist/standalone/chunks/{marks-0kbeB4n8.js → marks-pOUDNUf1.js} +2 -2
- package/dist/standalone/chunks/{options-DMEc8rQt.js → options-ySaDL-dW.js} +2 -2
- package/dist/standalone/chunks/own-text-mpZVnMyX.js +5 -0
- package/dist/standalone/chunks/{palettes-CKLHSIPx.js → palettes-J4bQ21ks.js} +2 -2
- package/dist/standalone/chunks/{popover-base-ac49G87f.js → popover-base-hxo-Vh6E.js} +2 -2
- package/dist/standalone/chunks/{prose-BG4oQH-i.js → prose-BiuJgiah.js} +1 -1
- package/dist/standalone/chunks/{ramp-ggoyjMvC.js → ramp-CGDOcqBZ.js} +1 -1
- package/dist/standalone/chunks/save-as-DBGZjczB.js +6 -0
- package/dist/standalone/chunks/shortcuts-DPxCSO4M.js +210 -0
- package/dist/standalone/chunks/{slider-BWT8Fmwz.js → slider-jp3d-Ld-.js} +15 -14
- package/dist/standalone/chunks/{stars-BN9M_9Q1.js → stars-BAUc_LqI.js} +1 -1
- package/dist/standalone/chunks/{styles-DwSR-9a3.js → styles-CaeyhYDA.js} +3 -0
- package/dist/standalone/chunks/submit-BjBGB8OW.js +42 -0
- package/dist/standalone/chunks/{summary-BK-B4m5A.js → summary-W5s0TFqV.js} +1 -1
- package/dist/standalone/chunks/tags-CMLAGsVw.js +37 -0
- package/dist/standalone/chunks/{text-field-4IUUpRHE.js → text-field-CufOGdfr.js} +17 -11
- package/dist/standalone/chunks/{toggle-control-ioV2jhNY.js → toggle-control-Cgqp1jhf.js} +5 -3
- package/dist/standalone/chunks/{tokens-BuahF1lF.js → tokens-C_ul7pL9.js} +4 -3
- package/dist/standalone/chunks/{virtual-B-1oN14Y.js → virtual-D-qgACnE.js} +1 -1
- package/dist/standalone/confirm.js +27 -14
- package/dist/standalone/i18n-de.js +13 -2
- package/dist/standalone/icons.js +100 -98
- package/dist/standalone/links.js +1 -1
- package/dist/standalone/reset.css +10 -0
- package/dist/standalone/toast.js +1 -1
- package/dist/standalone/tokens.css +6 -5
- package/dist/tokens.css +6 -5
- package/dist/tokens.js +4 -3
- package/package.json +25 -2
- package/dist/standalone/chunks/announcer-haFcvqbe.js +0 -25
- package/dist/standalone/chunks/bk-kbd-B_TlKzWj.js +0 -275
- package/dist/standalone/chunks/define-CzVPD4Zi.js +0 -30
- package/dist/standalone/chunks/hue-Jvb-141g.js +0 -14
- package/dist/standalone/chunks/keyed-CZ2AaouM.js +0 -16
- package/dist/standalone/chunks/link-CWSMsx04.js +0 -60
package/BUILDING.md
CHANGED
|
@@ -37,6 +37,9 @@ recipes run.
|
|
|
37
37
|
- **The aside is closed by default.** A log, a job queue or help is something the user looks at
|
|
38
38
|
sometimes. Open it with a `data-aside-toggle` button. Do not let it use a third of every screen.
|
|
39
39
|
- **One frame for the whole app.** Do not mix a scrolling page and a workspace in one view.
|
|
40
|
+
- **Columns flow on a narrow screen.** A `bk-columns` directly in the shell flows while the shell is narrow (it shows
|
|
41
|
+
the drawer), or while the columns are narrower than `stack-above`. The shell is then a page: the document scrolls,
|
|
42
|
+
the header stays in view, and `scroll-key` restores the position. Do not change the workspace with CSS of the app.
|
|
40
43
|
|
|
41
44
|
## Choose the container
|
|
42
45
|
|
|
@@ -149,6 +152,48 @@ class AppCodeField extends FormControl {
|
|
|
149
152
|
customElements.define("app-code-field", AppCodeField);
|
|
150
153
|
```
|
|
151
154
|
|
|
155
|
+
## Server rendering and hydration
|
|
156
|
+
|
|
157
|
+
A framework that hydrates (React 19) compares the attributes of the server HTML with its own render. Most elements
|
|
158
|
+
write no attribute on their host or on the children of the app when they connect. Roles, ARIA states and looks go
|
|
159
|
+
through `ElementInternals` and custom states (`bk-segmented-item:state(checked)`). A group gives the state to the
|
|
160
|
+
items of its own family, and each item shows it in its shadow root.
|
|
161
|
+
|
|
162
|
+
Some elements still write attributes. The table lists the writes when the element connects and after its first
|
|
163
|
+
layout. Writes after an action of the user are not in it. Prevent a mismatch in one of two ways:
|
|
164
|
+
|
|
165
|
+
- Write the same attributes in the server HTML. The element then changes nothing.
|
|
166
|
+
- Put `suppressHydrationWarning` on the element that gets the attribute. It covers only the attributes of that
|
|
167
|
+
element, not of its children.
|
|
168
|
+
|
|
169
|
+
| Element | Writes on | Attributes | When |
|
|
170
|
+
|---|---|---|---|
|
|
171
|
+
| `bk-alert` | host | `tabindex="-1"` | with `autofocus`, until the focus leaves |
|
|
172
|
+
| `bk-dialog` | host | removes `role`, adds `alert` | with `role="alert"`; write `alert` instead |
|
|
173
|
+
| `bk-text` | host | `role="heading"`, `aria-level` | with `level`: tools that read only the DOM then find the heading |
|
|
174
|
+
| `bk-toast-group` | host | `popover="manual"` | always |
|
|
175
|
+
| `bk-tree` | each `bk-tree-item` | `tabindex` (roving focus) | always |
|
|
176
|
+
| `bk-radio-group` | each `bk-radio` | `checked`, `tabindex` (roving focus) | always |
|
|
177
|
+
| `bk-item-group` | each `bk-item` and its controls | `tabindex` | with selection or navigation |
|
|
178
|
+
| `bk-toolbar`, `bk-menu-bar` | each control | `tabindex`; `bk-menu-bar` also `role="menuitem"` and `role="none"` | always |
|
|
179
|
+
| `bk-button-group` | each `bk-button` | `pressed`, `tabindex`, `disabled` | in toggle mode |
|
|
180
|
+
| `bk-chip-group` | each chip | `role`, `aria-selected` or `aria-pressed`, `tabindex`, `data-bk-collapsed` | always; `data-bk-collapsed` with `max` |
|
|
181
|
+
| `bk-breadcrumbs` | the last crumb | `aria-current="page"` | when no crumb has `aria-current` |
|
|
182
|
+
| `bk-fieldset`, `bk-input-group` | each control | `disabled` | while the group is disabled |
|
|
183
|
+
| `bk-form-steps` | each step; each `bk-steps-item` in `progress` | `hidden`, `inert`, `disabled`; `hidden`, `state` | always |
|
|
184
|
+
| `bk-tabs` | host | `value` | when the app leaves it out: render `value` in the server HTML |
|
|
185
|
+
| `bk-tabs-panel` | host | `hidden="until-found"` on a closed panel (find in page and `beforematch` need it); `tabindex="0"` | always; `tabindex` only when the panel has none: write it in the server HTML |
|
|
186
|
+
| `bk-carousel` | each `bk-carousel-item` | `inert` | on the items out of view |
|
|
187
|
+
| `bk-split` | host and each pane | host: `axis`, `stacked`, `floating`; panes: `inert`, `data-collapsed`, `data-floating`, `data-unshown` | after the first layout, by the width and the sizes |
|
|
188
|
+
| `bk-panel` | host | `data-min`, `data-min-inline`, `data-min-block` | while it is collapsed in a `bk-split` |
|
|
189
|
+
| `bk-bar`, `bk-overflow` | children | `hidden` | on the children that do not fit |
|
|
190
|
+
| `bk-menu`, `bk-popover`, `bk-tooltip` | a native trigger | `aria-haspopup`, `aria-expanded`; `bk-tooltip`: `aria-description`, `aria-keyshortcuts`, removes `title` | always; a `bk-button` or `bk-link` trigger gets none |
|
|
191
|
+
| `bk-lightbox` | the images and links | `role="button"`, `tabindex="0"`, `aria-haspopup="dialog"` | always |
|
|
192
|
+
| `bk-sortable` | the items or their handles | `data-sortable-grip`, `tabindex`, `role`, `aria-label`, `aria-description` | always |
|
|
193
|
+
| `bk-prose` | its content | `id` on the headings; it replaces `pre` and `a[data-citation]` | always |
|
|
194
|
+
| `bk-shell-app`, `bk-table` | their light DOM | see "Attributes that change the server HTML" in USAGE.md | by feature |
|
|
195
|
+
| `bk-breadcrumbs`, `bk-table` with a link resolver (`@bk2k/ui/links.js`) | `a` elements | the resolved `href`, `data-bk-href` | always; resolve the links on the server too |
|
|
196
|
+
|
|
152
197
|
## Recipes
|
|
153
198
|
|
|
154
199
|
Each recipe lists the job, a skeleton, the rules and the mistakes that agents made with it.
|
|
@@ -674,6 +719,11 @@ Rules:
|
|
|
674
719
|
`--bk-type-fluid: 1`. The values at a width of 1280px and 1920px: body text 16px, lead 18px, feature heading
|
|
675
720
|
18px, section heading (`--bk-type-h2`) 37px and 40px, display 59px. The header, the navigation and the footer
|
|
676
721
|
keep the ramp of the app.
|
|
722
|
+
- A scope root declares the tokens of the library again. Set the own tokens of the app (for example
|
|
723
|
+
`--bk-chart-1`) on `:root, [data-bk-scope], :is(:state(bk-scope))`, not on `:root` only. Otherwise a band shows
|
|
724
|
+
the default values. A band (`bk-page-section band`) and a layered `bk-surface` are scope roots through the custom
|
|
725
|
+
state `bk-scope`, not through an attribute. Keep `:state()` inside `:is()`: a browser without `:state()` then drops
|
|
726
|
+
only that selector, not the whole rule.
|
|
677
727
|
- A card in a band reads from the start: its footer actions start where its text starts
|
|
678
728
|
(`--bk-card-footer-justify: flex-start` on the scope root of the band). An app keeps them at the end.
|
|
679
729
|
- The heading of a section uses `--bk-measure-heading` (36ch in the size of the heading), the lead text
|
|
@@ -825,15 +875,19 @@ Rules:
|
|
|
825
875
|
(the height of the nav row of `nav-placement="below"`). "Theming: tokens only" in USAGE.md describes what each does.
|
|
826
876
|
- The looks in `looks.js` are made only of knobs of form, the palettes in `palettes.js` only of
|
|
827
877
|
colours and their knobs. An app can start from one of them.
|
|
878
|
+
- The preferences of the look that the user chooses (theme, reduce animations, underline links) go into one menu:
|
|
879
|
+
the menu of the theme in the sidebar footer. USAGE.md ("Theming: tokens only", the table of settings) shows it.
|
|
828
880
|
- The palette sets the colours of the chart series (`--bk-chart-1` … `--bk-chart-8`). A chart with
|
|
829
881
|
one series uses the accent. An app with one accent of its own sets the list of `chartSeries(accent)`
|
|
830
882
|
in its bridge file, so the first series has the hue of the accent.
|
|
831
883
|
- Do not set a derived token by hand (surfaces, text colours, lines, radius steps, type steps).
|
|
832
884
|
If the knobs cannot make the look, ask for a knob in the library.
|
|
833
885
|
- The knobs and the type registers take effect on a scope root: `:root`, an element with `data-bk-scope` or
|
|
834
|
-
`data-theme`, a `bk-page-section` with `band
|
|
886
|
+
`data-theme`, a `bk-page-section` with `band`, a `bk-surface` with `layered` (the state `bk-scope`). The scope root computes the ramp (`--bk-text-*`, `--bk-type-*`)
|
|
835
887
|
from the knobs. Set a knob on a scope root, or the ramp does not change. A value of an ancestor does not pass
|
|
836
|
-
a scope root below it: the scope root computes the ramp again.
|
|
888
|
+
a scope root below it: the scope root computes the ramp again. This also applies to a token that the app sets
|
|
889
|
+
on `:root` (for example `--bk-chart-1`): set it on `:root, [data-bk-scope], :is(:state(bk-scope))` (the rules of
|
|
890
|
+
"Marketing page" explain the `:is()`).
|
|
837
891
|
- A site reads, an app works. Set the reading ramp on the scope roots of the bands of a site:
|
|
838
892
|
`--bk-text-scale: 1.143` (body text 16px) and `--bk-type-fluid: 1` (the display, h1 and h2 sizes grow with the
|
|
839
893
|
width). Then every part in the band follows the ramp: a card, a stat, a field. Do not set single font sizes
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,205 @@
|
|
|
2
2
|
|
|
3
3
|
An app installs a release from npm: `"@bk2k/ui": "^<version>"`.
|
|
4
4
|
|
|
5
|
+
## 0.7.1
|
|
6
|
+
|
|
7
|
+
### Changes that need a line in the app
|
|
8
|
+
|
|
9
|
+
- New kit exports `nameHue(name)` and `nameColors(name)` (`@bk2k/ui/kit.js`): the hue and the colours `{ bg, fg }` that
|
|
10
|
+
`bk-avatar` and `bk-logo` give a name. An app paints a cover of the same person with them.
|
|
11
|
+
|
|
12
|
+
- `bk-card` with `href` moves up by 2 px and shows a gradient ring (from `--bk-accent-solid` to `--bk-info-solid`) on hover by
|
|
13
|
+
default. Set `--bk-card-lift-hover: 0` and `--bk-card-ring-hover: none` to keep the 0.7.0 hover. A `selected` card does
|
|
14
|
+
neither. With reduced motion the card stays in place, and forced colours show no ring.
|
|
15
|
+
|
|
16
|
+
- `bk-tabs` loads its "More" menu late, when the tabs do not fit in the row. A bundle with the condition `bk-static`
|
|
17
|
+
imports `@bk2k/ui/bk-menu.js` and `@bk2k/ui/bk-menu-item.js` for it.
|
|
18
|
+
|
|
19
|
+
### New
|
|
20
|
+
|
|
21
|
+
- `bk-input-tags`: a field for a list of tags. Enter or a comma adds the typed text, Backspace in the empty field removes the
|
|
22
|
+
last tag, and a pasted list adds one tag for each part. The value is a list (`values`, one form entry for each value).
|
|
23
|
+
The field shows its own removable chips. For a diff, put `bk-chip` elements in its slot: the field fires the cancelable
|
|
24
|
+
events `add` and `remove` (detail `{ value, chip }`), and the app marks the chips (`tone="success"`, `removed`).
|
|
25
|
+
- `bk-input-file`: the slot `preview` shows content of the app in the zone, for example a picture, a viewer or a crop tool. The
|
|
26
|
+
element then shows no file list and no tiles. Drop, browse, `actions` and `paste="page"` stay. The app reads `files`
|
|
27
|
+
in `change`. `--bk-input-file-preview-gap` sets the space between the preview and the row of buttons.
|
|
28
|
+
- `bk-chart-line`: `gaps="connect"`, or `gaps` in a series, draws a straight line from one real value to the next over missing
|
|
29
|
+
values. The tooltip says "no value" at a missing value. `--bk-chart-line-gap-dash` gives the bridge a dash pattern.
|
|
30
|
+
- The library writes a console warning when an element of the library is in the page and no code defines it:
|
|
31
|
+
`<bk-x> is in the page, but no code defines it. Add: import "@bk2k/ui/bk-x.js";`. It checks once when the browser is
|
|
32
|
+
idle, and again after a later import.
|
|
33
|
+
- `bk-button`: `--bk-button-lift-hover` (default 0) moves the button up on hover. `--bk-button-shadow` and
|
|
34
|
+
`--bk-button-shadow-hover` set its shadow (default: the shadow of the variant).
|
|
35
|
+
- `bk-button` has the custom state `:state(expanded)` while its popup is open, and the parts `icon-start` and `icon-end`. Turn a
|
|
36
|
+
chevron with `bk-button:state(expanded)::part(icon-end) { rotate: 180deg; }`.
|
|
37
|
+
- Uppercase labels: `--bk-table-head-transform` and `--bk-table-head-tracking`, `--bk-stat-label-transform` and
|
|
38
|
+
`--bk-stat-label-tracking`, `--bk-chip-transform` and `--bk-chip-tracking`. The defaults keep the current look.
|
|
39
|
+
- `bk-input-text` passes the `spellcheck` attribute of the host to its field. With `mono` spellcheck is off by default.
|
|
40
|
+
- `bk-image-viewer shaped` and `bk-image-compare shaped`: the box takes the shape of the picture. Under the height cap
|
|
41
|
+
(`--bk-image-viewer-max-height`, the new `--bk-image-compare-max-height`) the width follows the ratio of the image. The
|
|
42
|
+
box is never wider than its container or than the natural width.
|
|
43
|
+
- `bk-image-viewer` pages from outside: `pageable` shows the previous and next buttons also for one item, `first` and
|
|
44
|
+
`last` turn them off at the ends of the list of the app, and the cancelable event `page` (detail `{ direction }`)
|
|
45
|
+
says what the user asked for. `bk-lightbox` passes them through.
|
|
46
|
+
- `bk-image-compare`: `--bk-image-compare-label-transform` and `--bk-image-compare-label-tracking` set the case of the names of
|
|
47
|
+
the sides. The names stay centred in their tags.
|
|
48
|
+
- `bk-image-compare` fires `load` for each picture (detail `{ side, naturalWidth, naturalHeight }`), and each name of a side
|
|
49
|
+
has the part `label` in every variant.
|
|
50
|
+
- `--bk-card-ring` and `--bk-page-cta-ring`: an image, for example a gradient, as the ring of a card or of a call to action at
|
|
51
|
+
rest, over the border, in its radius. The default is none.
|
|
52
|
+
|
|
53
|
+
### Fixes
|
|
54
|
+
|
|
55
|
+
- `bk-input-tags` and `bk-combobox multiple`: the chips have the same gap above, below and at the start of the box, the
|
|
56
|
+
height of a button in a field and a concentric corner. One row of chips keeps the height of the field.
|
|
57
|
+
- `bk-image-compare variant="toggle"` loads `bk-segmented-item` itself.
|
|
58
|
+
- `bk-chip` with `--bk-chip-tracking` keeps its text centred: the chip takes the space after the last letter back.
|
|
59
|
+
- `bk-checkbox` and `bk-switch`: the native input is the pointer target. A test click on the element with the role
|
|
60
|
+
(`getByRole("checkbox").click()`) no longer waits for a timeout.
|
|
61
|
+
- `bk-image-viewer` keeps the last image visible while the next one loads. Paging through large images no longer flashes a
|
|
62
|
+
placeholder. The spinner shows over the old image after `--bk-loading-delay`.
|
|
63
|
+
- `bk-input-color editable` shows no chevron. The swatch is the only button that opens the panel.
|
|
64
|
+
- The shared live region reads every message of one short window, each as its own line. Before, two `live` alerts that
|
|
65
|
+
connected in the same update dropped the first message.
|
|
66
|
+
- The ghost of a `bk-split-grid` pane stays inside the viewport during a drag. Before, a drag to the edge of the window cut it.
|
|
67
|
+
|
|
68
|
+
## 0.7.0
|
|
69
|
+
|
|
70
|
+
### Changes that need a line in the app
|
|
71
|
+
|
|
72
|
+
- `bk-shell-app` with a direct `bk-columns`: while the shell is narrow, the columns flow, and the shell is a page (the document scrolls, the header stays sticky). On a wide shell it stays a workspace. Remove app code that switched the columns by width.
|
|
73
|
+
- `bk-nav-item` and `bk-menu-item` links with `target="_blank"` show the `external` icon. Remove an `icon="external"` that you set for this.
|
|
74
|
+
- **`bk-tabs-item` does not reflect `selected`.** Replace the selector `bk-tabs-item[selected]` in app CSS with
|
|
75
|
+
`bk-tabs-item:state(selected)`. The items and panels also do not get `role`, `aria-*`, generated `id`s,
|
|
76
|
+
`data-bk-overflow` or `data-dots` any more: the role and the state are on an inner element of the item, so the
|
|
77
|
+
server HTML of an app stays the same after the elements connect. A test that reads `role="tab"` on the item host
|
|
78
|
+
reads the inner element or uses `getByRole("tab")`.
|
|
79
|
+
- **A backdrop click closes a dialog only when the press also starts on the backdrop.** This applies to `bk-dialog`,
|
|
80
|
+
`bk-drawer`, `bk-lightbox` and `bk-command-palette`. A drag from the content to the backdrop no longer closes the
|
|
81
|
+
dialog. An app test that closes a dialog with a dispatched `click` on the backdrop sends a `pointerdown` there first.
|
|
82
|
+
|
|
83
|
+
- **Elements write no attributes when they connect.** An app that renders on the server (for example React 19)
|
|
84
|
+
gets no hydration mismatches from them. Roles and states are on ElementInternals, custom states or an inner element.
|
|
85
|
+
BUILDING.md ("Server rendering and hydration") lists the few attributes that elements still write. Replace these
|
|
86
|
+
selectors in app CSS:
|
|
87
|
+
- `bk-segmented-item[checked]` → `bk-segmented-item:state(checked)`.
|
|
88
|
+
- `[data-fills]` on `bk-pane`/`bk-panel` → `:state(fills)`; `bk-menu[data-described]` → `:state(described)`;
|
|
89
|
+
`bk-carousel-controls[data-linked]` → `:state(linked)`; `bk-error-summary[data-keyboard]` → `:state(key-focus)`;
|
|
90
|
+
`bk-message-feedback[data-reveal="false"]` → `:state(rated)`.
|
|
91
|
+
- `[aria-busy]` on `bk-card`, `bk-panel`, `bk-pane`, `bk-table` → `[busy]`.
|
|
92
|
+
- `bk-page-section band`, `bk-surface layered` and `bk-shell-sites` have no `data-bk-scope` attribute. Set the own
|
|
93
|
+
tokens of the app on `:root, [data-bk-scope], :is(:state(bk-scope))`.
|
|
94
|
+
- The avatars of `bk-avatar-group` get no `hidden` or `z-index`: use `:state(group-hidden)`.
|
|
95
|
+
- **`bk-button pressed="false"` is an unpressed toggle**, as with `aria-pressed`. Before, any value made it pressed.
|
|
96
|
+
The pressed look follows `tone`.
|
|
97
|
+
- **Enter in a form clicks the default `bk-button type="submit"`**, as with a native default button: the first submit
|
|
98
|
+
button of the form. A disabled one blocks Enter. Before, Enter in a native input did not submit a form with two or
|
|
99
|
+
more fields.
|
|
100
|
+
- **`bk-input-inline` saves when the user leaves it.** Tab out of the element and a click outside fire `save`, as in a
|
|
101
|
+
cell of a spreadsheet. Before, a click outside cancelled, and Tab kept the field open. Only Esc and the cancel button
|
|
102
|
+
cancel. An app that relied on the cancel at a click outside listens for `save` there too.
|
|
103
|
+
- **`bk-image-crop variant="free"` (and `bk-image-editor`) move the frame only on a drag.** A plain click on the image
|
|
104
|
+
no longer moves the centre of the frame to that point, so a stray click keeps the crop.
|
|
105
|
+
- **`bk-image-viewer` and `bk-lightbox` stop at the first and the last image.** Add `loop` to keep the wrap-around
|
|
106
|
+
(`openLightbox(items, { loop })`).
|
|
107
|
+
- **An inline `bk-image-viewer` zooms with the plain wheel only after a zoom.** While the image fits, the wheel scrolls
|
|
108
|
+
the page; Ctrl or ⌘ with the wheel and a pinch still zoom. Add `immersive` for a viewer that is the whole screen. In
|
|
109
|
+
`bk-lightbox` (immersive) a mouse click steps the zoom (2×, 4×, fit); before, a double click switched to 2.5×.
|
|
110
|
+
- **The JSX types have no `prefix` prop.** `prefix` is a read-only member of every element, and React 19 throws an
|
|
111
|
+
error when it sets it. Replace `prefix="€"` in JSX with `prefixText="€"`. HTML and Lit templates keep the attribute.
|
|
112
|
+
- **A `disabled` `bk-drop-target` refuses an accepted drag.** The browser does not open a dropped file in the tab. An
|
|
113
|
+
app `onDragOver` handler that prevented the navigation is no longer necessary.
|
|
114
|
+
### New
|
|
115
|
+
|
|
116
|
+
- `bk-nav-item` `hint`: a tooltip on hover and keyboard focus, and the accessible description of the link (part `hint`). Put information that touch users need into `description`.
|
|
117
|
+
- `bk-nav-item` and `bk-menu-item` with `target="_blank"`: the part `new-tab`, the tokens `--bk-nav-item-new-tab-size` and `--bk-menu-item-new-tab-size`, and "(opens in a new tab)" for a screen reader.
|
|
118
|
+
- Condition `bk-static` for bundles without code splitting (esbuild `--conditions=bk-static`, Vite
|
|
119
|
+
`resolve.conditions`): no icon loaders, no late loads, no built-in English, no brand icons. The app imports the icons,
|
|
120
|
+
the elements of the features and the languages that it uses (`@bk2k/ui/i18n/en.js`, `@bk2k/ui/icons/brands.js`).
|
|
121
|
+
A missing part logs a warning with the import line. USAGE.md describes it.
|
|
122
|
+
- `bk-button` in a `<fieldset disabled>` is disabled, as a native button.
|
|
123
|
+
- `bk-stat value-text` and `delta-text`, `bk-delta value-text`: a value that the app formatted shows as it is. The
|
|
124
|
+
number still gives the direction and the tone.
|
|
125
|
+
- `bk-chip removed`: a struck-through chip with the hidden text "Removed". With `removable`, its button restores the
|
|
126
|
+
chip and fires `restore`.
|
|
127
|
+
- `confirmDialog({ action })`: the dialog stays open while the async action runs. The confirm button shows `loading`,
|
|
128
|
+
and Cancel, Escape and the backdrop do nothing. If the action fails, the dialog shows the error and the user can try
|
|
129
|
+
again or cancel.
|
|
130
|
+
- `@bk2k/ui/reset.css`: an app with a global CSS reset (for example the preflight of Tailwind) imports it after the
|
|
131
|
+
reset. The reset removes the margin, padding and border that elements set on their host, and this file gives them back.
|
|
132
|
+
- `bk-tabs overflow="scroll"`: the row of tabs scrolls sideways instead of moving tabs into the "More" menu. The
|
|
133
|
+
selected tab scrolls into view.
|
|
134
|
+
- `bk-chip variant="text"`: a status label with only the colour of its tone (no fill, no border, no padding).
|
|
135
|
+
`bk-chip` has an `end` slot for content after the text and the `count`.
|
|
136
|
+
- `tooltip-fields` on `bk-chart-bar`, `bk-chart-line` and `bk-chart-area`: more fields of a row in the tooltip, in the
|
|
137
|
+
data table and in the names of the marks, without a series for them.
|
|
138
|
+
- `bk-split-grid`: a `data-split-grid-handle` in a pane (for example its header) moves the pane with a pointer. A drop
|
|
139
|
+
on another pane fires the cancelable `reorder` (`{ pane, from, to, order }`), and the app renders the new order. A
|
|
140
|
+
drag outside the grid fires `dragoutside` and `dropoutside`. Escape cancels. A focusable handle moves the pane with
|
|
141
|
+
Space and the arrow keys.
|
|
142
|
+
- `bk-menu-item removable`: a remove button at the end of the row, for example for each entry of a history. A click on
|
|
143
|
+
it or Delete fires `remove` with `{ value, item }` and does not choose the item. The app removes the item, and the
|
|
144
|
+
list first moves the focus to the next item.
|
|
145
|
+
- `bk-card` with `href`: `--bk-card-lift-hover` moves the card up on hover (default 0, no move with reduced motion). `--bk-card-ring-hover` shows an image, for example a gradient, as a ring in the radius of the card on hover.
|
|
146
|
+
- `bk-link target="_blank"` shows the `external` icon after its text, and a screen reader hears "(opens in a new tab)".
|
|
147
|
+
`bk-link::part(new-tab)` hides the icon. A `bk-button` link with `target="_blank"` has the same text as its
|
|
148
|
+
description; give it `icon-end="external"` to show it.
|
|
149
|
+
- `bk-menu` has a `header` slot above the items, for example for the name and the email address of the signed-in user.
|
|
150
|
+
It stays in view while the items scroll, and the keyboard skips it.
|
|
151
|
+
- Icon `save-as` in the core set.
|
|
152
|
+
- `bk-image-compare` has `before` and `after` slots: the slider compares any content, for example two cards of figures
|
|
153
|
+
("then" and "today"). Both sides share one box at the size of the larger side, and each side is a group with its label.
|
|
154
|
+
- `bk-footnote`, `bk-footnotes` and `bk-footnotes-item`: footnotes and source references. A marker
|
|
155
|
+
(`<bk-footnote note="cpi">`) numbers itself in the order on the screen and links to its note. The note has the source
|
|
156
|
+
text, an optional link and date ("As of Nov 2026"), and a back link to each marker. It works in text, in `bk-stat`,
|
|
157
|
+
`bk-facts` and `bk-table` cells. Each list numbers on its own.
|
|
158
|
+
- `bk-stat` has `label` and `value` slots, for example for a footnote marker after the value.
|
|
159
|
+
- `bk-picture` fires `load` with `{ src, naturalWidth, naturalHeight }` and `error` with `{ src }`. Below
|
|
160
|
+
`--bk-picture-error-min-width` the error state shows an icon-only retry button instead of no retry.
|
|
161
|
+
- `bk-image-viewer`: `immersive` (the plain wheel zooms, a click steps the zoom, the keys work in the whole dialog),
|
|
162
|
+
`view` and `viewchange` (`{ zoom, x, y }` in fractions of the image, so two viewers mirror each other), `load` with
|
|
163
|
+
`naturalWidth` and `naturalHeight`, and a height from the shape of the image (`--bk-image-viewer-max-height`).
|
|
164
|
+
- `bk-image-compare`: parts `before` and `after`, and `viewchange` for a zoom or pan of the user.
|
|
165
|
+
- `bk-input-text shortcut`: the id of a shortcut in the registry (or keys such as `Mod+K`). The field sets
|
|
166
|
+
`aria-keyshortcuts` on its native control, so a screen reader says which keys lead to the field. The field follows a
|
|
167
|
+
change of the registry. Bind the keys with `onShortcut`, and show them with `<bk-kbd slot="end" shortcut="…">`.
|
|
168
|
+
|
|
169
|
+
### Fixes
|
|
170
|
+
- `bk-bar` in a column that is taller than its content keeps the height of its content. It grew before. Remove a `flex: 0 0 auto` that you set for this.
|
|
171
|
+
- `bk-input-inline` leaves room for its pencil in its container. A text that fills the line no longer pushes the pencil out, so a narrow page does not scroll sideways.
|
|
172
|
+
|
|
173
|
+
- `toast()` finds a modal inside any shadow root (the drawer of `bk-shell-app`). Toasts and the live regions move into the open modal and back, so a toast stays operable.
|
|
174
|
+
- The scroll lock keeps the gutter only when the page showed a classic scroll bar, so a page without one does not get narrower. It turns off scroll anchoring while it locks and keeps the position at unlock.
|
|
175
|
+
- `bk-shell-app` renders again when a direct child changes its `slot` or `mode`.
|
|
176
|
+
- `bk-tooltip` leaves `aria-hidden` content out of the description.
|
|
177
|
+
- `bk-page-cta` centres every row of a `bk-stat` in it, also in a `bk-stat-group`. Before, the label and the note were
|
|
178
|
+
centred, but the value stayed at the start.
|
|
179
|
+
- `bk-code copyable`: a long line no longer runs under the copy button, in the wrap and in the scroll mode.
|
|
180
|
+
- The retry button of `bk-picture` does not pass its click to a clickable parent (a tile).
|
|
181
|
+
- `bk-button` shows no built-in tooltip in a dialog, a drawer, a lightbox or a popover, also when the button is in the
|
|
182
|
+
shadow root of another element there. Before, such a tooltip took the first Esc, and the dialog needed a second Esc.
|
|
183
|
+
- The popups of rows (`bk-menu` and its submenus, the lists of `bk-select`, `bk-combobox`, `bk-input-search`,
|
|
184
|
+
`bk-select-tree`, `bk-select-cascade`, the flyout of `bk-nav`) are concentric with their rows: the radius is the row
|
|
185
|
+
radius plus the padding and the border. Before, the frame had `--bk-radius-md`, and the corners looked uneven.
|
|
186
|
+
- `bk-shell-app` with a horizontal `bk-nav`: the line under the current item ends on the bottom edge of the header, in
|
|
187
|
+
the header row and in the row of `nav-placement="below"`. Before, it was 1.5 px below the edge.
|
|
188
|
+
- Copy without the clipboard API (an address without HTTPS) works on iOS: the fallback selects the text with a range.
|
|
189
|
+
This applies to `bk-button-copy`, `bk-code copyable` and `copyText()`.
|
|
190
|
+
- `bk-alert live` announces no marker comments of a template library. Before, an alert with content from Lit announced
|
|
191
|
+
text such as "?lit$074186629$". The same fix applies to the text of `bk-menu-item`, `bk-menu-label`, `bk-item`,
|
|
192
|
+
`bk-segmented-item` and the bottom navigation of `bk-shell-app`.
|
|
193
|
+
- `bk-tabs`: a link in the "More" menu keeps `target`, `rel` and `download`, so a middle click opens a new tab. One
|
|
194
|
+
choice in the menu selects exactly the chosen tab. Before, the page could go to another tab.
|
|
195
|
+
- `bk-chart-bar variant="minimal"`: the value scale ends at the largest value. Before, a small chart rounded the scale
|
|
196
|
+
up (for example to 40 for a largest value of 22), and the bars filled only a part of the plot.
|
|
197
|
+
- `bk-disclosure`: a long end text that the line cuts (`overflow="ellipsis"`) no longer cuts the label by a
|
|
198
|
+
fraction of a pixel. Before, the label showed an ellipsis although it fitted.
|
|
199
|
+
- `bk-tabs` schedules no update after an update. Before, Lit in dev mode logged "scheduled an update after an update
|
|
200
|
+
completed" when the "More" menu changed.
|
|
201
|
+
- The hidden data table of a chart takes no space in the layout. Before, a chart with long category names made a
|
|
202
|
+
page on a phone wider than the screen.
|
|
203
|
+
|
|
5
204
|
## 0.6.8
|
|
6
205
|
|
|
7
206
|
### Changes that need a line in the app
|