@bk2k/ui 0.6.7 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BUILDING.md +88 -2
- package/CHANGELOG.md +193 -0
- package/USAGE.md +102 -33
- 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 +4 -2
- package/dist/clipboard.js +1 -0
- package/dist/components/bk-alert.js +2 -1
- 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 +55 -17
- package/dist/components/bk-button.js +71 -24
- package/dist/components/bk-card.d.ts +4 -0
- package/dist/components/bk-card.js +15 -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 +6 -0
- package/dist/components/bk-chart-bar.d.ts +63 -9
- package/dist/components/bk-chart-bar.js +152 -41
- package/dist/components/bk-chart-line.d.ts +13 -0
- package/dist/components/bk-chart-line.js +11 -1
- 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 +53 -8
- package/dist/components/bk-chip.js +43 -7
- 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 +30 -6
- package/dist/components/bk-combobox.js +63 -20
- package/dist/components/bk-delta.d.ts +10 -0
- package/dist/components/bk-delta.js +8 -6
- package/dist/components/bk-dialog.d.ts +16 -6
- package/dist/components/bk-dialog.js +20 -8
- 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-item.js +8 -6
- package/dist/components/bk-facts.d.ts +6 -4
- package/dist/components/bk-facts.js +22 -10
- 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 +33 -5
- package/dist/components/bk-image-compare.js +72 -24
- 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 +107 -11
- package/dist/components/bk-image-viewer.js +205 -34
- 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-text.d.ts +11 -0
- package/dist/components/bk-input-text.js +17 -3
- package/dist/components/bk-input-time-zone.d.ts +3 -0
- package/dist/components/bk-input-time.js +2 -1
- package/dist/components/bk-item.js +2 -1
- package/dist/components/bk-lightbox.d.ts +12 -3
- package/dist/components/bk-lightbox.js +6 -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-model-viewer.d.ts +12 -1
- package/dist/components/bk-model-viewer.js +15 -2
- 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.js +2 -0
- 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-period-nav.d.ts +102 -0
- package/dist/components/bk-period-nav.js +69 -0
- 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-select.js +2 -1
- package/dist/components/bk-shell-app.d.ts +13 -6
- package/dist/components/bk-shell-app.js +47 -11
- package/dist/components/bk-shell-sites.d.ts +2 -1
- package/dist/components/bk-shell-sites.js +3 -5
- package/dist/components/bk-sortable.d.ts +3 -0
- package/dist/components/bk-sortable.js +10 -17
- package/dist/components/bk-split-grid.d.ts +104 -3
- package/dist/components/bk-split-grid.js +425 -2
- package/dist/components/bk-split.d.ts +3 -0
- package/dist/components/bk-split.js +3 -0
- package/dist/components/bk-stat-group.js +2 -1
- package/dist/components/bk-stat.d.ts +17 -0
- package/dist/components/bk-stat.js +7 -3
- 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 +17 -13
- package/dist/components/bk-table.js +94 -15
- 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 +50 -7
- package/dist/components/bk-tabs.js +168 -96
- 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 +19 -1
- package/dist/i18n/en.d.ts +2 -0
- package/dist/i18n/en.js +3 -0
- package/dist/i18n.d.ts +23 -2
- package/dist/i18n.js +35 -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 +8 -1
- package/dist/internal/announcer.js +26 -10
- 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.d.ts +3 -0
- package/dist/internal/cloak.js +7 -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/drag.d.ts +11 -0
- package/dist/internal/drag.js +23 -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.d.ts +2 -3
- package/dist/internal/handle-menu.js +11 -3
- 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/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 +20 -0
- package/dist/internal/late.js +45 -0
- 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/jsx.d.ts +176 -56
- 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 +13 -12
- 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 +14 -4
- 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 +5 -5
- package/dist/standalone/bk-button-group.js +5 -5
- package/dist/standalone/bk-button-share.js +5 -5
- 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 +20 -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 +253 -166
- 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 +116 -103
- 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 +4 -4
- package/dist/standalone/bk-checkbox.js +4 -4
- package/dist/standalone/bk-chip-group.js +9 -5
- package/dist/standalone/bk-chip.js +56 -17
- 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 +53 -33
- package/dist/standalone/bk-command-menu.js +6 -6
- package/dist/standalone/bk-command-palette.js +6 -5
- 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 +2 -2
- 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 +10 -8
- package/dist/standalone/bk-facts.js +28 -16
- 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 +88 -47
- package/dist/standalone/bk-image-crop.js +6 -6
- package/dist/standalone/bk-image-editor.js +2 -1
- package/dist/standalone/bk-image-viewer.js +180 -59
- package/dist/standalone/bk-input-code.js +4 -4
- package/dist/standalone/bk-input-color.js +4 -4
- 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 +5 -5
- 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-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 +11 -7
- package/dist/standalone/bk-lines.js +1 -1
- package/dist/standalone/bk-link.js +33 -19
- package/dist/standalone/bk-listbox-columns.js +6 -6
- 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 +3 -3
- 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 +6 -6
- 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 +5 -3
- 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 +69 -0
- package/dist/standalone/bk-picture.js +24 -15
- package/dist/standalone/bk-popover-help.js +3 -3
- package/dist/standalone/bk-popover.js +2 -2
- package/dist/standalone/bk-presence-cursor.js +2 -2
- 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 +4 -4
- 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 +15 -13
- package/dist/standalone/bk-select-cascade.js +3 -3
- package/dist/standalone/bk-select-tree.js +4 -4
- package/dist/standalone/bk-select.js +7 -6
- package/dist/standalone/bk-shell-app.js +1 -1217
- 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 +58 -60
- package/dist/standalone/bk-spinner.js +2 -2
- package/dist/standalone/bk-split-grid.js +318 -41
- package/dist/standalone/bk-split.js +9 -6
- package/dist/standalone/bk-stack.js +1 -1
- package/dist/standalone/bk-stat-group.js +8 -7
- package/dist/standalone/bk-stat.js +11 -8
- 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 +4 -4
- 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 -1887
- package/dist/standalone/bk-tabs-item.js +58 -35
- package/dist/standalone/bk-tabs-panel.js +7 -3
- package/dist/standalone/bk-tabs.js +160 -98
- 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 +19 -18
- 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 +3 -3
- 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-D1zrRWwO.js +36 -0
- package/dist/standalone/chunks/{appearance-waHnV0kk.js → appearance-CBOJXbmC.js} +1 -1
- package/dist/standalone/chunks/{bk-alert-offline-BoMEYxnE.js → bk-alert-offline-Clw0ZSsH.js} +3 -3
- package/dist/standalone/chunks/{bk-carousel-B7-9OanA.js → bk-carousel-Biz7t8sL.js} +4 -4
- package/dist/standalone/chunks/{bk-diagram-CpOpicmo.js → bk-diagram-D_fQf6SF.js} +5 -5
- package/dist/standalone/chunks/{bk-dialog-a2BtUBf2.js → bk-dialog-DwZyUUHh.js} +65 -27
- package/dist/standalone/chunks/{bk-icon-DssFsNuB.js → bk-icon-Bp_flKdv.js} +4 -3
- package/dist/standalone/chunks/{bk-image-editor-z_Uj83fy.js → bk-image-editor-BADsoLRL.js} +5 -5
- package/dist/standalone/chunks/{bk-input-date-range-BQkbPlSJ.js → bk-input-date-range-DHcJ8-5g.js} +2 -2
- package/dist/standalone/chunks/{bk-input-rich-Dte_b4Ev.js → bk-input-rich-CFhW6vRa.js} +6 -6
- package/dist/standalone/chunks/{bk-input-text-CUNQG1ah.js → bk-input-text-DviyLBqj.js} +63 -54
- package/dist/standalone/chunks/{bk-model-viewer-D1XJPgAG.js → bk-model-viewer-w_Ah4Tvs.js} +22 -8
- package/dist/standalone/chunks/{bk-qr-code-CbI9rdOK.js → bk-qr-code-CYMovNVl.js} +3 -3
- package/dist/standalone/chunks/bk-shell-app-B2lxHit8.js +1235 -0
- package/dist/standalone/chunks/{bk-surface-DkIhrWMt.js → bk-surface-D7e0tErs.js} +9 -7
- package/dist/standalone/chunks/{bk-swatch-palette-BNNXTP3w.js → bk-swatch-palette-x13JgJQi.js} +6 -6
- package/dist/standalone/chunks/bk-table-CP8n_jy7.js +1944 -0
- package/dist/standalone/chunks/{bk-toast-group-Cix-Urgi.js → bk-toast-group-CoL6W7uk.js} +27 -24
- package/dist/standalone/chunks/{brush-Bn3lPdHN.js → brush-DALmXSru.js} +18 -2
- package/dist/standalone/chunks/{busy-B7Mxemwm.js → busy-BUB22mGY.js} +5 -4
- package/dist/standalone/chunks/{chart-tokens-D1Exf7BW.js → chart-tokens-DQ4hVSmn.js} +2 -2
- package/dist/standalone/chunks/{choice-field-BnuK9mp_.js → choice-field-poOTerh1.js} +6 -6
- package/dist/standalone/chunks/{choice-item-B6-9ZRlf.js → choice-item-Cx-nm1js.js} +17 -8
- package/dist/standalone/chunks/clipboard-RqIeP9Uz.js +29 -0
- package/dist/standalone/chunks/clipboard-UVLSkL4C.js +34 -0
- package/dist/standalone/chunks/{crop-frame-poLCGrBG.js → crop-frame-Z9N0QML4.js} +1 -11
- package/dist/standalone/chunks/{date-field-BQ5k-DDL.js → date-field-B-fCXa2D.js} +48 -47
- package/dist/standalone/chunks/{define-CzVPD4Zi.js → define-DkVeu7e9.js} +1 -1
- 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-D7dqSP9M.js → form-control-CHpfKAKa.js} +2 -2
- package/dist/standalone/chunks/{frame-BW1nKuoM.js → frame-xIMVEUCi.js} +7 -4
- package/dist/standalone/chunks/handle-menu-BgYUbGO2.js +56 -0
- package/dist/standalone/chunks/{heading-text-CV5gBf7k.js → heading-text-CgnCa_q2.js} +1 -1
- package/dist/standalone/chunks/{i18n-CNsBRNPu.js → i18n-DFfGgd3d.js} +56 -34
- package/dist/standalone/chunks/{i18n-CrZgrRu9.js → i18n-DQAcbHkY.js} +1 -1
- package/dist/standalone/chunks/link--YWr8exL.js +69 -0
- package/dist/standalone/chunks/{marks-CdqbbJpM.js → marks-pOUDNUf1.js} +2 -2
- package/dist/standalone/chunks/{options-DMEc8rQt.js → options-BdC8-KKM.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-oDhxsYMr.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-EclrETaQ.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-BgKEjDQx.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-BwL-Gp8w.js → summary-W5s0TFqV.js} +1 -1
- package/dist/standalone/chunks/{text-field-CTp2b-Ai.js → text-field-CqhJSAwZ.js} +4 -4
- package/dist/standalone/chunks/{toggle-control-DXkgmz7R.js → toggle-control-lvZbQtGW.js} +2 -2
- package/dist/standalone/chunks/{tokens-BuahF1lF.js → tokens-C_ul7pL9.js} +4 -3
- package/dist/standalone/chunks/{virtual-B-1oN14Y.js → virtual-C_h6sHnm.js} +1 -1
- package/dist/standalone/confirm.js +27 -14
- package/dist/standalone/i18n-de.js +20 -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 +9 -5
- package/dist/tokens.css +9 -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-B7bz8hmV.js +0 -275
- package/dist/standalone/chunks/clipboard-DBGdJ-1S.js +0 -61
- package/dist/standalone/chunks/handle-menu-DsxWvv4D.js +0 -22
- package/dist/standalone/chunks/link-CWSMsx04.js +0 -60
package/dist/jsx.d.ts
CHANGED
|
@@ -75,15 +75,18 @@ import type { BkFeature } from "./components/bk-feature.js";
|
|
|
75
75
|
import type { BkFieldset } from "./components/bk-fieldset.js";
|
|
76
76
|
import type { BkFilterBar, FilterBarRemoveDetail } from "./components/bk-filter-bar.js";
|
|
77
77
|
import type { BkFolderBrowser, FolderBrowserNavigateDetail } from "./components/bk-folder-browser.js";
|
|
78
|
+
import type { BkFootnote } from "./components/bk-footnote.js";
|
|
79
|
+
import type { BkFootnotesItem } from "./components/bk-footnotes-item.js";
|
|
80
|
+
import type { BkFootnotes } from "./components/bk-footnotes.js";
|
|
78
81
|
import type { BkFormGuard } from "./components/bk-form-guard.js";
|
|
79
82
|
import type { BkFormSteps, FormStepDetail } from "./components/bk-form-steps.js";
|
|
80
83
|
import type { BkGrid } from "./components/bk-grid.js";
|
|
81
84
|
import type { BkIconTile } from "./components/bk-icon-tile.js";
|
|
82
85
|
import type { BkIcon } from "./components/bk-icon.js";
|
|
83
|
-
import type { BkImageCompare } from "./components/bk-image-compare.js";
|
|
86
|
+
import type { BkImageCompare, ImageCompareView } from "./components/bk-image-compare.js";
|
|
84
87
|
import type { BkImageCrop, ImageCropRect } from "./components/bk-image-crop.js";
|
|
85
88
|
import type { BkImageEditor, ImageEdits } from "./components/bk-image-editor.js";
|
|
86
|
-
import type { BkImageViewer, ImageViewerChangeDetail } from "./components/bk-image-viewer.js";
|
|
89
|
+
import type { BkImageViewer, ImageViewerChangeDetail, ImageViewerView } from "./components/bk-image-viewer.js";
|
|
87
90
|
import type { BkInputCode } from "./components/bk-input-code.js";
|
|
88
91
|
import type { BkInputColor } from "./components/bk-input-color.js";
|
|
89
92
|
import type { BkInputDateRange } from "./components/bk-input-date-range.js";
|
|
@@ -117,7 +120,7 @@ import type { BkLogo } from "./components/bk-logo.js";
|
|
|
117
120
|
import type { BkMenuBar } from "./components/bk-menu-bar.js";
|
|
118
121
|
import type { BkMenuContext } from "./components/bk-menu-context.js";
|
|
119
122
|
import type { BkMenuDivider } from "./components/bk-menu-divider.js";
|
|
120
|
-
import type { BkMenuItem } from "./components/bk-menu-item.js";
|
|
123
|
+
import type { BkMenuItem, MenuItemRemoveDetail } from "./components/bk-menu-item.js";
|
|
121
124
|
import type { BkMenuLabel } from "./components/bk-menu-label.js";
|
|
122
125
|
import type { BkMenuList, MenuSelectDetail } from "./components/bk-menu-list.js";
|
|
123
126
|
import type { BkMenu } from "./components/bk-menu.js";
|
|
@@ -149,7 +152,8 @@ import type { BkPageSection } from "./components/bk-page-section.js";
|
|
|
149
152
|
import type { BkPagination, PaginationChangeDetail, PaginationSelectDetail } from "./components/bk-pagination.js";
|
|
150
153
|
import type { BkPane } from "./components/bk-pane.js";
|
|
151
154
|
import type { BkPanel } from "./components/bk-panel.js";
|
|
152
|
-
import type {
|
|
155
|
+
import type { BkPeriodNav } from "./components/bk-period-nav.js";
|
|
156
|
+
import type { BkPicture, PictureErrorDetail, PictureLoadDetail } from "./components/bk-picture.js";
|
|
153
157
|
import type { BkPopoverHelp } from "./components/bk-popover-help.js";
|
|
154
158
|
import type { BkPopover } from "./components/bk-popover.js";
|
|
155
159
|
import type { BkPresenceCursor } from "./components/bk-presence-cursor.js";
|
|
@@ -172,7 +176,7 @@ import type { BkShellSites } from "./components/bk-shell-sites.js";
|
|
|
172
176
|
import type { BkSkeleton } from "./components/bk-skeleton.js";
|
|
173
177
|
import type { BkSortable, SortableReorderDetail } from "./components/bk-sortable.js";
|
|
174
178
|
import type { BkSpinner } from "./components/bk-spinner.js";
|
|
175
|
-
import type { BkSplitGrid, SplitGridResizeDetail } from "./components/bk-split-grid.js";
|
|
179
|
+
import type { BkSplitGrid, SplitGridDragOutsideDetail, SplitGridDropOutsideDetail, SplitGridReorderDetail, SplitGridResizeDetail } from "./components/bk-split-grid.js";
|
|
176
180
|
import type { BkSplit, SplitEventDetail } from "./components/bk-split.js";
|
|
177
181
|
import type { BkStack } from "./components/bk-stack.js";
|
|
178
182
|
import type { BkStatGroup } from "./components/bk-stat-group.js";
|
|
@@ -495,7 +499,7 @@ declare module "react" {
|
|
|
495
499
|
"icon-end"?: BkAttr<BkButton["iconEnd"]>;
|
|
496
500
|
/** Accessible name and tooltip; needed when the button shows only an icon. */
|
|
497
501
|
"label"?: BkButton["label"];
|
|
498
|
-
/** Disables the button: no focus, no clicks, no form submit. */
|
|
502
|
+
/** Disables the button: no focus, no clicks, no form submit. A disabled ancestor `<fieldset>` disables it too (not a link button). */
|
|
499
503
|
"disabled"?: BkButton["disabled"];
|
|
500
504
|
/** Turns the button off and says why: a tooltip and the accessible description. The button stays focusable. */
|
|
501
505
|
"disabled-reason"?: BkAttr<BkButton["disabledReason"]>;
|
|
@@ -507,7 +511,7 @@ declare module "react" {
|
|
|
507
511
|
"block"?: BkButton["block"];
|
|
508
512
|
/** Position of the content of a `block` button: `center` (default), or `start` for a list of answers. A long label of a `block` button wraps, and the button grows with it. */
|
|
509
513
|
"align"?: BkButton["align"];
|
|
510
|
-
/** Toggle state; sets aria-pressed and the pressed
|
|
514
|
+
/** Toggle state; sets `aria-pressed` and the pressed look. When unset (the default), the button is not a toggle. The property `false` makes an unpressed toggle that announces `aria-pressed="false"`. In markup, write `pressed="false"` for it. The attribute `pressed` (or any other value) is a pressed toggle. */
|
|
511
515
|
"pressed"?: BkButton["pressed"];
|
|
512
516
|
/** Pill on a floating surface with a level-2 shadow, for controls laid over content. */
|
|
513
517
|
"floating"?: BkButton["floating"];
|
|
@@ -515,6 +519,10 @@ declare module "react" {
|
|
|
515
519
|
"collapse"?: BkButton["collapse"];
|
|
516
520
|
/** The current item of a set (`aria-current` attribute: `page`, `step`, `true`, ...). The inner control receives `aria-current`, and the button has the `pressed` look. Use it for a page number in a pager or the current step; a toggle uses `pressed`. */
|
|
517
521
|
"aria-current"?: BkAttr<BkButton["current"]>;
|
|
522
|
+
/** `aria-expanded` on the host (a disclosure button of the app). A popup that controls the button (setTriggerAria) wins. */
|
|
523
|
+
"aria-expanded"?: BkAttr<BkButton["hostExpanded"]>;
|
|
524
|
+
/** `aria-controls` on the host: the ids of elements in the same document or shadow root as the button. */
|
|
525
|
+
"aria-controls"?: BkAttr<BkButton["hostControls"]>;
|
|
518
526
|
/** Count badge on an icon-only button (unread items); `99+` above 99, none for 0 or unset. */
|
|
519
527
|
"count"?: BkButton["count"];
|
|
520
528
|
/** A dot on an icon-only button: something new, without a number. */
|
|
@@ -529,7 +537,7 @@ declare module "react" {
|
|
|
529
537
|
"oncancel"?: (event: Event) => void;
|
|
530
538
|
/** The user makes a plain click on the link (primary button, no modifier key, no other `target`, no `download`). `detail.href` is the resolved address. Bubbles, composed, cancelable: `preventDefault()` stops the browser, and the router of the app handles the navigation. */
|
|
531
539
|
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
532
|
-
} & BkProps<BkButton, "iconEnd" | "disabledReason" | "hideTooltip" | "current">, "onCancel" | "onCancelCapture" | "onNavigate" | "onNavigateCapture">;
|
|
540
|
+
} & BkProps<BkButton, "iconEnd" | "disabledReason" | "hideTooltip" | "current" | "hostExpanded" | "hostControls">, "onCancel" | "onCancelCapture" | "onNavigate" | "onNavigateCapture">;
|
|
533
541
|
"bk-calendar-event": BkElementProps<BkCalendarEvent, {
|
|
534
542
|
/** Start, `yyyy-mm-ddThh:mm` (local time). */
|
|
535
543
|
"start"?: BkCalendarEvent["start"];
|
|
@@ -702,6 +710,8 @@ declare module "react" {
|
|
|
702
710
|
"bare"?: BkChartArea["bare"];
|
|
703
711
|
/** Intl.NumberFormat options for values. */
|
|
704
712
|
"value-format"?: BkAttr<BkChartArea["valueFormat"]>;
|
|
713
|
+
/** Fields of the row that the tooltip, the data table and the name of each point list without drawing them. The attribute lists the keys (`tooltip-fields="prints likes"`). The property takes keys or `{ key, label, format }` objects, where `label` names the field and `format` are `Intl.NumberFormat` options. */
|
|
714
|
+
"tooltip-fields"?: BkAttr<BkChartArea["tooltipFields"]>;
|
|
705
715
|
/** `up` (default): larger values are higher. `down`: the value axis runs down. The smallest value is at the top and is the best (a rank). Lines only. */
|
|
706
716
|
"y-direction"?: BkAttr<BkChartArea["yDirection"]>;
|
|
707
717
|
/** The start of the value axis, for example `1` for ranks. Default: a round value below the data (zero with `zero`). With `y-direction="down"` and whole numbers, the default is the smallest value. */
|
|
@@ -722,7 +732,7 @@ declare module "react" {
|
|
|
722
732
|
"onchange"?: (event: CustomEvent<ChartSeriesChangeDetail>) => void;
|
|
723
733
|
/** The pointer or the focus moves to an event mark or leaves it, or the user selects it (click, Enter, Space). The detail is `{ kind, mark, id, value, label }`. `kind` is `enter`, `leave` or `select`. The event is cancelable when `kind` is `select`. */
|
|
724
734
|
"onmark"?: (event: CustomEvent<ChartMarkDetail>) => void;
|
|
725
|
-
} & BkProps<BkChartArea, "xType" | "xLabel" | "xFormat" | "seriesLabels" | "compareLabel" | "showSummary" | "valueFormat" | "yDirection" | "persistKey">, "onSelect" | "onSelectCapture" | "onMark" | "onMarkCapture">;
|
|
735
|
+
} & BkProps<BkChartArea, "xType" | "xLabel" | "xFormat" | "seriesLabels" | "compareLabel" | "showSummary" | "valueFormat" | "tooltipFields" | "yDirection" | "persistKey">, "onSelect" | "onSelectCapture" | "onMark" | "onMarkCapture">;
|
|
726
736
|
"bk-chart-bar-list": BkElementProps<BkChartBarList, {
|
|
727
737
|
/** Accessible name of the table. */
|
|
728
738
|
"label"?: BkChartBarList["label"];
|
|
@@ -756,6 +766,10 @@ declare module "react" {
|
|
|
756
766
|
"x"?: BkChartBar["x"];
|
|
757
767
|
/** Column header of the categories in the data table (default "Category"). */
|
|
758
768
|
"x-label"?: BkAttr<BkChartBar["xLabel"]>;
|
|
769
|
+
/** Field of a row that contains a second label. The chart shows it under the category label (a date, for example). */
|
|
770
|
+
"detail"?: BkChartBar["detail"];
|
|
771
|
+
/** Column header of the second label in the data table (default "Detail"). */
|
|
772
|
+
"detail-label"?: BkAttr<BkChartBar["detailLabel"]>;
|
|
759
773
|
/** `vertical` columns (default) or `horizontal` bars (for long or many category names). */
|
|
760
774
|
"orientation"?: BkChartBar["orientation"];
|
|
761
775
|
/** `grouped` side by side (default), `stacked`, or `percent` (stacked to 100 %). */
|
|
@@ -770,7 +784,7 @@ declare module "react" {
|
|
|
770
784
|
"compare-label"?: BkAttr<BkChartBar["compareLabel"]>;
|
|
771
785
|
/** Lets the user select a range of categories (drag, two clicks, Shift + arrows) and zooms to it. */
|
|
772
786
|
"selectable"?: BkChartBar["selectable"];
|
|
773
|
-
/** Makes each category a link. The template can contain `{x}` (the category) and `{<field>}` (a field of the row), for example `?day={x}`. The values are URL-encoded. Not with `selectable`. */
|
|
787
|
+
/** Makes each category a link. The template can contain `{x}` (the category) and `{<field>}` (a field of the row), for example `?day={x}`. The values are URL-encoded. A template of one field only (`{url}`) takes the value of the field as it is: each row brings its own address. A category without a value, or without a value for a field of the template, has no link. Not with `selectable`. */
|
|
774
788
|
"href"?: BkChartBar["href"];
|
|
775
789
|
/** The `target` of the category links. */
|
|
776
790
|
"target"?: BkChartBar["target"];
|
|
@@ -800,6 +814,8 @@ declare module "react" {
|
|
|
800
814
|
"variant"?: BkChartBar["variant"];
|
|
801
815
|
/** Intl.NumberFormat options for values (`{"style":"currency","currency":"EUR"}`). */
|
|
802
816
|
"value-format"?: BkAttr<BkChartBar["valueFormat"]>;
|
|
817
|
+
/** Fields of the row that the tooltip, the data table and the name of each bar list without drawing them. The attribute lists the keys (`tooltip-fields="prints likes"`). The property takes keys or `{ key, label, format }` objects, where `label` names the field and `format` are `Intl.NumberFormat` options. */
|
|
818
|
+
"tooltip-fields"?: BkAttr<BkChartBar["tooltipFields"]>;
|
|
803
819
|
/** Rows, one per category. */
|
|
804
820
|
"data"?: BkChartBar["data"];
|
|
805
821
|
/** The series to draw, in fixed colour order (default: every numeric field except `x`). */
|
|
@@ -810,7 +826,7 @@ declare module "react" {
|
|
|
810
826
|
"onselect"?: (event: CustomEvent<ChartBarSelectDetail>) => void;
|
|
811
827
|
/** With `href`: the user makes a plain click on the link of a category. The detail is `{ href }`. The event bubbles, is composed and is cancelable (the router of the app handles the click). */
|
|
812
828
|
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
813
|
-
} & BkProps<BkChartBar, "xLabel" | "seriesLabels" | "compareLabel" | "showSummary" | "valueFormat">, "onSelect" | "onSelectCapture" | "onNavigate" | "onNavigateCapture">;
|
|
829
|
+
} & BkProps<BkChartBar, "xLabel" | "detailLabel" | "seriesLabels" | "compareLabel" | "showSummary" | "valueFormat" | "tooltipFields">, "onSelect" | "onSelectCapture" | "onNavigate" | "onNavigateCapture">;
|
|
814
830
|
"bk-chart-bridge": BkElementProps<BkChartBridge, {
|
|
815
831
|
/** `default`: each step in its own colour, the totals neutral. `change`: steps up in success, steps down in danger. */
|
|
816
832
|
"variant"?: BkChartBridge["variant"];
|
|
@@ -1016,6 +1032,8 @@ declare module "react" {
|
|
|
1016
1032
|
"bare"?: BkChartLine["bare"];
|
|
1017
1033
|
/** Intl.NumberFormat options for values. */
|
|
1018
1034
|
"value-format"?: BkAttr<BkChartLine["valueFormat"]>;
|
|
1035
|
+
/** Fields of the row that the tooltip, the data table and the name of each point list without drawing them. The attribute lists the keys (`tooltip-fields="prints likes"`). The property takes keys or `{ key, label, format }` objects, where `label` names the field and `format` are `Intl.NumberFormat` options. */
|
|
1036
|
+
"tooltip-fields"?: BkAttr<BkChartLine["tooltipFields"]>;
|
|
1019
1037
|
/** `up` (default): larger values are higher. `down`: the value axis runs down. The smallest value is at the top and is the best (a rank). Lines only. */
|
|
1020
1038
|
"y-direction"?: BkAttr<BkChartLine["yDirection"]>;
|
|
1021
1039
|
/** The start of the value axis, for example `1` for ranks. Default: a round value below the data (zero with `zero`). With `y-direction="down"` and whole numbers, the default is the smallest value. */
|
|
@@ -1036,7 +1054,7 @@ declare module "react" {
|
|
|
1036
1054
|
"onmark"?: (event: CustomEvent<ChartMarkDetail>) => void;
|
|
1037
1055
|
/** The range of a `selectable` chart. The detail is `{ from, to, fromIndex, toIndex }`. The event is cancelable: cancel it to keep the zoom and use the range yourself. After a reset, `from` and `to` are null. */
|
|
1038
1056
|
"onselect"?: (event: CustomEvent<ChartSelectDetail>) => void;
|
|
1039
|
-
} & BkProps<BkChartLine, "xType" | "xLabel" | "xFormat" | "seriesLabels" | "compareLabel" | "showSummary" | "valueFormat" | "yDirection" | "persistKey">, "onMark" | "onMarkCapture" | "onSelect" | "onSelectCapture">;
|
|
1057
|
+
} & BkProps<BkChartLine, "xType" | "xLabel" | "xFormat" | "seriesLabels" | "compareLabel" | "showSummary" | "valueFormat" | "tooltipFields" | "yDirection" | "persistKey">, "onMark" | "onMarkCapture" | "onSelect" | "onSelectCapture">;
|
|
1040
1058
|
"bk-chart-mark": BkElementProps<BkChartMark, {
|
|
1041
1059
|
/** `value` (default): the position is on the value axis. `category`: the position is on the x or category axis. */
|
|
1042
1060
|
"axis"?: BkChartMark["axis"];
|
|
@@ -1276,7 +1294,7 @@ declare module "react" {
|
|
|
1276
1294
|
"tone"?: BkChip["tone"];
|
|
1277
1295
|
/** Category colour `1` to `8` (identity: a label, a project, a person), from `--bk-hue-N-*`. It has priority over `tone` for the colour. */
|
|
1278
1296
|
"hue"?: BkChip["hue"];
|
|
1279
|
-
/** Weight: `soft` (default, tinted), `solid` (filled), `outline`, `dashed` (outline with a dashed border: a suggestion). */
|
|
1297
|
+
/** Weight: `soft` (default, tinted), `solid` (filled), `outline`, `dashed` (outline with a dashed border: a suggestion), `text` (no fill, no border, no inline padding: the tone colour as text). */
|
|
1280
1298
|
"variant"?: BkChip["variant"];
|
|
1281
1299
|
/** `sm`, `md` (default) or `lg`. */
|
|
1282
1300
|
"size"?: BkChip["size"];
|
|
@@ -1296,10 +1314,14 @@ declare module "react" {
|
|
|
1296
1314
|
"copy-text"?: BkAttr<BkChip["copyText"]>;
|
|
1297
1315
|
/** Accessible name of a `copy` chip (default: i18n `copyItem`, "Copy {item}" with the chip text and the count). */
|
|
1298
1316
|
"copy-label"?: BkAttr<BkChip["copyLabel"]>;
|
|
1299
|
-
/** A number or short text
|
|
1317
|
+
/** A number or short text after the text of the chip, for example the uses of a tag. It comes before the `end` slot. */
|
|
1300
1318
|
"count"?: BkChip["count"];
|
|
1301
1319
|
/** Accessible name of the remove button (default: i18n `removeItem`, "Remove {item}" with the chip text). */
|
|
1302
1320
|
"remove-label"?: BkAttr<BkChip["removeLabel"]>;
|
|
1321
|
+
/** Shows the chip as taken out: struck-through, muted text and a hidden "Removed". With `removable`, the button restores the chip and fires `restore`. */
|
|
1322
|
+
"removed"?: BkChip["removed"];
|
|
1323
|
+
/** Accessible name of the restore button of a `removed` chip (default: i18n `restoreItem`, "Restore {item}" with the chip text). */
|
|
1324
|
+
"restore-label"?: BkAttr<BkChip["restoreLabel"]>;
|
|
1303
1325
|
/** Makes the chip a link. */
|
|
1304
1326
|
"href"?: BkChip["href"];
|
|
1305
1327
|
/** Link target. The chip passes it to the inner `<a>` when `href` is set. */
|
|
@@ -1312,9 +1334,11 @@ declare module "react" {
|
|
|
1312
1334
|
"oncopyfailed"?: (event: CustomEvent<CopyFailedDetail>) => void;
|
|
1313
1335
|
/** The element fires this event when the user clicks the remove button. */
|
|
1314
1336
|
"onremove"?: (event: Event) => void;
|
|
1337
|
+
/** The element fires this event when the user clicks the restore button of a `removed` chip. The event bubbles and is composed. The app clears `removed`. */
|
|
1338
|
+
"onrestore"?: (event: Event) => void;
|
|
1315
1339
|
/** A plain click on the link (primary button, no modifier key, no other `target`, no `download`); `detail.href` is the resolved address. The event bubbles, is composed and is cancelable: `preventDefault()` stops the browser, and the router of the app handles the navigation. */
|
|
1316
1340
|
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
1317
|
-
} & BkProps<BkChip, "copyText" | "copyLabel" | "removeLabel">, "onCopyfailed" | "onCopyfailedCapture" | "onRemove" | "onRemoveCapture" | "onNavigate" | "onNavigateCapture">;
|
|
1341
|
+
} & BkProps<BkChip, "copyText" | "copyLabel" | "removeLabel" | "restoreLabel">, "onCopyfailed" | "onCopyfailedCapture" | "onRemove" | "onRemoveCapture" | "onRestore" | "onRestoreCapture" | "onNavigate" | "onNavigateCapture">;
|
|
1318
1342
|
"bk-cluster": BkElementProps<BkCluster, {
|
|
1319
1343
|
/** Cross-axis alignment: `center` (default), `start`, `end`, `baseline`, `stretch`. */
|
|
1320
1344
|
"align"?: BkCluster["align"];
|
|
@@ -1422,6 +1446,8 @@ declare module "react" {
|
|
|
1422
1446
|
"end-label"?: BkAttr<BkColumns["endLabel"]>;
|
|
1423
1447
|
/** The current layout, set from the element's width (read-only; reflected for styling). */
|
|
1424
1448
|
"mode"?: BkColumns["mode"];
|
|
1449
|
+
/** Set by `<bk-shell-app>` while the shell around the element is narrow: the columns flow in the document. */
|
|
1450
|
+
"narrow"?: BkColumns["narrow"];
|
|
1425
1451
|
/** A column scrolled. The element fires it again on itself (it does not bubble), so window capture listeners such as popover anchoring receive it. */
|
|
1426
1452
|
"onscroll"?: (event: Event) => void;
|
|
1427
1453
|
} & BkProps<BkColumns, "startWidth" | "endWidth" | "splitAbove" | "stackAbove" | "scrollKey" | "startLabel" | "mainLabel" | "endLabel">, "onScroll" | "onScrollCapture">;
|
|
@@ -1436,7 +1462,7 @@ declare module "react" {
|
|
|
1436
1462
|
"max"?: BkCombobox["max"];
|
|
1437
1463
|
/** Label of the Enter key on a phone keyboard, like the native `enterkeyhint`: `enter`, `done`, `go`, `next`, `previous`, `search`, `send`. */
|
|
1438
1464
|
"enterkeyhint"?: BkAttr<BkCombobox["enterKeyHint"]>;
|
|
1439
|
-
/** Shows the loading row in the list.
|
|
1465
|
+
/** Shows the loading row in the list. The combobox sets it while `search` runs; apps that load options themselves set it too. */
|
|
1440
1466
|
"loading"?: BkCombobox["loading"];
|
|
1441
1467
|
/** Delay in ms before `search` runs (default 150). */
|
|
1442
1468
|
"debounce"?: BkCombobox["debounce"];
|
|
@@ -1467,7 +1493,7 @@ declare module "react" {
|
|
|
1467
1493
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
1468
1494
|
"size"?: BkCombobox["size"];
|
|
1469
1495
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
1470
|
-
"
|
|
1496
|
+
"prefixText"?: BkCombobox["prefixText"];
|
|
1471
1497
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
1472
1498
|
"suffix"?: BkAttr<BkCombobox["suffixText"]>;
|
|
1473
1499
|
/** Shows a clear button while the field has a value. */
|
|
@@ -1504,7 +1530,7 @@ declare module "react" {
|
|
|
1504
1530
|
"onloadmore"?: (event: CustomEvent<LoadMoreDetail>) => void;
|
|
1505
1531
|
/** A `ToggleEvent` (`oldState`/`newState`) after the list opens or closes. Does not bubble. */
|
|
1506
1532
|
"ontoggle"?: (event: ToggleEvent) => void;
|
|
1507
|
-
} & BkProps<BkCombobox, "allowCustom" | "enterKeyHint" | "emptyText" | "addLabel" | "
|
|
1533
|
+
} & BkProps<BkCombobox, "allowCustom" | "enterKeyHint" | "emptyText" | "addLabel" | "suffixText" | "clearLabel" | "labelPosition">, "prefix" | "onLoadmore" | "onLoadmoreCapture" | "onToggle" | "onToggleCapture">;
|
|
1508
1534
|
"bk-command-menu": BkElementProps<BkCommandMenu, {
|
|
1509
1535
|
/** The search text. */
|
|
1510
1536
|
"query"?: BkCommandMenu["query"];
|
|
@@ -1616,6 +1642,8 @@ declare module "react" {
|
|
|
1616
1642
|
"bk-delta": BkElementProps<BkDelta, {
|
|
1617
1643
|
/** The change (`change`, `count`) or the new rank (`rank`). */
|
|
1618
1644
|
"value"?: BkDelta["value"];
|
|
1645
|
+
/** Ready text for the change, shown as it is instead of the formatted `value` (like `aria-valuetext`). `value` still sets the direction and the tone. Not used in `variant="rank"`. */
|
|
1646
|
+
"value-text"?: BkAttr<BkDelta["valueText"]>;
|
|
1619
1647
|
/** The previous rank (`variant="rank"`). Without it, the rank is new. */
|
|
1620
1648
|
"previous"?: BkDelta["previous"];
|
|
1621
1649
|
/** `change` (default): a change with a mark. `count`: a figure that only grows ("+12"). `rank`: a move between ranks. */
|
|
@@ -1632,7 +1660,7 @@ declare module "react" {
|
|
|
1632
1660
|
"label"?: BkDelta["label"];
|
|
1633
1661
|
/** Upper ranks of the tiers in `variant="rank"`, separated by spaces ("3 10 50"). */
|
|
1634
1662
|
"tiers"?: BkDelta["tiers"];
|
|
1635
|
-
}
|
|
1663
|
+
} & BkProps<BkDelta, "valueText">>;
|
|
1636
1664
|
"bk-diagram": BkElementProps<BkDiagram, {
|
|
1637
1665
|
/** The text of the diagram, for a script. In markup, write the text between the tags. */
|
|
1638
1666
|
"source"?: BkDiagram["source"];
|
|
@@ -1664,7 +1692,7 @@ declare module "react" {
|
|
|
1664
1692
|
"size"?: BkDialog["size"];
|
|
1665
1693
|
/** Esc, a click on the backdrop and the close button dismiss the dialog (default true). Set `dismissible="false"` or the property to false for choices that the user must make. */
|
|
1666
1694
|
"dismissible"?: BkDialog["dismissible"];
|
|
1667
|
-
/** Alert dialog: `role="alertdialog"`, the first focus is on the least destructive action, no light dismiss. `role="alert"` on the element sets it. */
|
|
1695
|
+
/** Alert dialog: `role="alertdialog"`, the first focus is on the least destructive action, no light dismiss. `role="alert"` on the element sets it too. */
|
|
1668
1696
|
"alert"?: BkDialog["alert"];
|
|
1669
1697
|
/** Accessible name of the close button (default: i18n `close`). */
|
|
1670
1698
|
"close-label"?: BkAttr<BkDialog["closeLabel"]>;
|
|
@@ -1726,7 +1754,7 @@ declare module "react" {
|
|
|
1726
1754
|
"size"?: BkDrawer["size"];
|
|
1727
1755
|
/** Esc, a click on the backdrop and the close button dismiss the dialog (default true). Set `dismissible="false"` or the property to false for choices that the user must make. */
|
|
1728
1756
|
"dismissible"?: BkDrawer["dismissible"];
|
|
1729
|
-
/** Alert dialog: `role="alertdialog"`, the first focus is on the least destructive action, no light dismiss. `role="alert"` on the element sets it. */
|
|
1757
|
+
/** Alert dialog: `role="alertdialog"`, the first focus is on the least destructive action, no light dismiss. `role="alert"` on the element sets it too. */
|
|
1730
1758
|
"alert"?: BkDrawer["alert"];
|
|
1731
1759
|
/** Accessible name of the close button (default: i18n `close`). */
|
|
1732
1760
|
"close-label"?: BkAttr<BkDrawer["closeLabel"]>;
|
|
@@ -1825,6 +1853,28 @@ declare module "react" {
|
|
|
1825
1853
|
/** The user opens a folder (a step of the trail, a place, a subfolder); `detail` is `{ path }`. Cancelable, bubbles. */
|
|
1826
1854
|
"onnavigate"?: (event: CustomEvent<FolderBrowserNavigateDetail>) => void;
|
|
1827
1855
|
}, "onNavigate" | "onNavigateCapture">;
|
|
1856
|
+
"bk-footnote": BkElementProps<BkFootnote, {
|
|
1857
|
+
/** The `id` of the `<bk-footnotes-item>` of the note. */
|
|
1858
|
+
"note"?: BkFootnote["note"];
|
|
1859
|
+
}>;
|
|
1860
|
+
"bk-footnotes-item": BkElementProps<BkFootnotesItem, {
|
|
1861
|
+
/** Address of the source. */
|
|
1862
|
+
"href"?: BkFootnotesItem["href"];
|
|
1863
|
+
/** `target` of the source link. */
|
|
1864
|
+
"target"?: BkFootnotesItem["target"];
|
|
1865
|
+
/** `rel` of the source link. */
|
|
1866
|
+
"rel"?: BkFootnotesItem["rel"];
|
|
1867
|
+
/** Date of the data: `YYYY`, `YYYY-MM` or `YYYY-MM-DD`. */
|
|
1868
|
+
"date"?: BkFootnotesItem["date"];
|
|
1869
|
+
/** The number of the note, after the page numbered the notes. The registry sets it. */
|
|
1870
|
+
"number"?: BkFootnotesItem["number"];
|
|
1871
|
+
/** The user makes a plain click on the source link (primary button, no modifier key, no other `target`, no `download`). `detail.href` is the resolved address. The event bubbles, is composed and is cancelable. `preventDefault()` stops the browser, and the router of the app takes over. */
|
|
1872
|
+
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
1873
|
+
}, "onNavigate" | "onNavigateCapture">;
|
|
1874
|
+
"bk-footnotes": BkElementProps<BkFootnotes, {
|
|
1875
|
+
/** Accessible name of the list (default: "Footnotes", i18n `footnotes`). */
|
|
1876
|
+
"label"?: BkFootnotes["label"];
|
|
1877
|
+
}>;
|
|
1828
1878
|
"bk-form-guard": BkElementProps<BkFormGuard, {
|
|
1829
1879
|
/** The form has unsaved changes (read-only; reflected). */
|
|
1830
1880
|
"dirty"?: BkFormGuard["dirty"];
|
|
@@ -1918,13 +1968,15 @@ declare module "react" {
|
|
|
1918
1968
|
"show"?: BkImageCompare["show"];
|
|
1919
1969
|
/** The user can zoom and pan. Both pictures show the same part. */
|
|
1920
1970
|
"zoomable"?: BkImageCompare["zoomable"];
|
|
1921
|
-
/**
|
|
1971
|
+
/** Setting the view fires no `viewchange`. */
|
|
1922
1972
|
"view"?: BkImageCompare["view"];
|
|
1923
1973
|
/** The element fires this event while the user moves the divider. */
|
|
1924
1974
|
"oninput"?: (event: Event) => void;
|
|
1925
1975
|
/** The element fires this event when the user moves the divider (on release, on a key) or chooses the other picture (`toggle`). */
|
|
1926
1976
|
"onchange"?: (event: Event) => void;
|
|
1927
|
-
|
|
1977
|
+
/** The user zoomed or panned (`zoomable`). `event.detail` is the new `view`. Setting `view` and `resetZoom()` fire no event. Use it to show the same part in another `<bk-image-compare>` or `<bk-image-viewer>`. The event bubbles and is composed. */
|
|
1978
|
+
"onviewchange"?: (event: CustomEvent<ImageCompareView>) => void;
|
|
1979
|
+
} & BkProps<BkImageCompare, "beforeSrc" | "afterSrc" | "beforeLabel" | "afterLabel">, "onViewchange" | "onViewchangeCapture">;
|
|
1928
1980
|
"bk-image-crop": BkElementProps<BkImageCrop, {
|
|
1929
1981
|
/** Address of the picture. */
|
|
1930
1982
|
"src"?: BkImageCrop["src"];
|
|
@@ -1986,6 +2038,10 @@ declare module "react" {
|
|
|
1986
2038
|
"index"?: BkImageViewer["index"];
|
|
1987
2039
|
/** Shows a row of thumbnails under the image. */
|
|
1988
2040
|
"filmstrip"?: BkImageViewer["filmstrip"];
|
|
2041
|
+
/** Previous and next wrap around: after the last image comes the first. Without it, they stop at the ends. */
|
|
2042
|
+
"loop"?: BkImageViewer["loop"];
|
|
2043
|
+
/** The viewer is the main content of the screen or of its dialog (`<bk-lightbox>` sets it). The plain wheel zooms, a click steps the zoom, and the keys of the viewer work while the focus is anywhere in the surrounding dialog. */
|
|
2044
|
+
"immersive"?: BkImageViewer["immersive"];
|
|
1989
2045
|
/** Accessible name of the viewer region (default: i18n `imageViewer`). */
|
|
1990
2046
|
"label"?: BkImageViewer["label"];
|
|
1991
2047
|
/** Accessible name of the previous button (default from i18n). */
|
|
@@ -2006,11 +2062,17 @@ declare module "react" {
|
|
|
2006
2062
|
"pan-label"?: BkAttr<BkImageViewer["panLabel"]>;
|
|
2007
2063
|
/** The images. */
|
|
2008
2064
|
"items"?: BkImageViewer["items"];
|
|
2065
|
+
/** The zoom and the visible part of the image (`ImageViewerView`). Set it to show the same part as another viewer, for example in `viewchange` of that viewer. Setting it fires no `viewchange`. A view that you set before the image has its shape applies again when the shape is known. */
|
|
2066
|
+
"view"?: BkImageViewer["view"];
|
|
2067
|
+
/** The shown image has loaded (once for each image, also from the cache of the browser). `naturalWidth` and `naturalHeight` are known. The event does not bubble, as the `load` of an `<img>`. */
|
|
2068
|
+
"onload"?: (event: Event) => void;
|
|
2009
2069
|
/** The user moved to another image. `event.detail.index` is the new index. The event bubbles and is composed. */
|
|
2010
2070
|
"onchange"?: (event: CustomEvent<ImageViewerChangeDetail>) => void;
|
|
2011
2071
|
/** A single tap or click beside the (unzoomed) image. `<bk-lightbox>` closes on this event. The event bubbles and is composed. */
|
|
2012
2072
|
"ondismiss"?: (event: Event) => void;
|
|
2013
|
-
|
|
2073
|
+
/** The user changed the zoom or the visible part (at most once per frame). `event.detail` is the new `view`. Setting `view`, `resetZoom()`, `actualSize()` and a change of the image fire no event. The event bubbles and is composed. */
|
|
2074
|
+
"onviewchange"?: (event: CustomEvent<ImageViewerView>) => void;
|
|
2075
|
+
} & BkProps<BkImageViewer, "prevLabel" | "nextLabel" | "zoomInLabel" | "zoomOutLabel" | "fitLabel" | "actualSizeLabel" | "errorLabel" | "panLabel">, "onLoad" | "onLoadCapture" | "onDismiss" | "onDismissCapture" | "onViewchange" | "onViewchangeCapture">;
|
|
2014
2076
|
"bk-input-code": BkElementProps<BkInputCode, {
|
|
2015
2077
|
/** The code typed so far (up to `length` characters). */
|
|
2016
2078
|
"value"?: BkInputCode["value"];
|
|
@@ -2069,7 +2131,7 @@ declare module "react" {
|
|
|
2069
2131
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
2070
2132
|
"size"?: BkInputColor["size"];
|
|
2071
2133
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
2072
|
-
"
|
|
2134
|
+
"prefixText"?: BkInputColor["prefixText"];
|
|
2073
2135
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
2074
2136
|
"suffix"?: BkAttr<BkInputColor["suffixText"]>;
|
|
2075
2137
|
/** Shows a clear button while the field has a value. */
|
|
@@ -2094,7 +2156,7 @@ declare module "react" {
|
|
|
2094
2156
|
"oninput"?: (event: Event) => void;
|
|
2095
2157
|
/** When the user commits a change in the panel, when the user selects a format, and when the field is cleared. */
|
|
2096
2158
|
"onchange"?: (event: Event) => void;
|
|
2097
|
-
} & BkProps<BkInputColor, "
|
|
2159
|
+
} & BkProps<BkInputColor, "suffixText" | "clearLabel" | "labelPosition">, "prefix">;
|
|
2098
2160
|
"bk-input-date-range": BkElementProps<BkInputDateRange, {
|
|
2099
2161
|
/** The first moment, or "" (also while the text is not a valid range): an ISO day `yyyy-mm-dd`, with `time` a day and a time `yyyy-mm-ddThh:mm`, with `relative` also an expression such as `now-15m`. */
|
|
2100
2162
|
"start-value"?: BkAttr<BkInputDateRange["startValue"]>;
|
|
@@ -2143,7 +2205,7 @@ declare module "react" {
|
|
|
2143
2205
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
2144
2206
|
"size"?: BkInputDateRange["size"];
|
|
2145
2207
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
2146
|
-
"
|
|
2208
|
+
"prefixText"?: BkInputDateRange["prefixText"];
|
|
2147
2209
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
2148
2210
|
"suffix"?: BkAttr<BkInputDateRange["suffixText"]>;
|
|
2149
2211
|
/** Shows a clear button while the field has a value. */
|
|
@@ -2170,7 +2232,7 @@ declare module "react" {
|
|
|
2170
2232
|
"oninput"?: (event: Event) => void;
|
|
2171
2233
|
/** When an edit is committed (blur, Enter), a range is picked or the field is cleared. */
|
|
2172
2234
|
"onchange"?: (event: Event) => void;
|
|
2173
|
-
} & BkProps<BkInputDateRange, "startValue" | "endValue" | "timeZone" | "recentKey" | "enterKeyHint" | "firstDay" | "weekNumbers" | "
|
|
2235
|
+
} & BkProps<BkInputDateRange, "startValue" | "endValue" | "timeZone" | "recentKey" | "enterKeyHint" | "firstDay" | "weekNumbers" | "suffixText" | "clearLabel" | "labelPosition">, "prefix">;
|
|
2174
2236
|
"bk-input-date": BkElementProps<BkInputDate, {
|
|
2175
2237
|
/** The date as ISO `yyyy-mm-dd`, or "" (also while the text is not a valid date). */
|
|
2176
2238
|
"value"?: BkInputDate["value"];
|
|
@@ -2207,7 +2269,7 @@ declare module "react" {
|
|
|
2207
2269
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
2208
2270
|
"size"?: BkInputDate["size"];
|
|
2209
2271
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
2210
|
-
"
|
|
2272
|
+
"prefixText"?: BkInputDate["prefixText"];
|
|
2211
2273
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
2212
2274
|
"suffix"?: BkAttr<BkInputDate["suffixText"]>;
|
|
2213
2275
|
/** Shows a clear button while the field has a value. */
|
|
@@ -2232,7 +2294,7 @@ declare module "react" {
|
|
|
2232
2294
|
"oninput"?: (event: Event) => void;
|
|
2233
2295
|
/** When an edit is committed (blur, Enter), a date is picked or the field is cleared. */
|
|
2234
2296
|
"onchange"?: (event: Event) => void;
|
|
2235
|
-
} & BkProps<BkInputDate, "enterKeyHint" | "firstDay" | "weekNumbers" | "
|
|
2297
|
+
} & BkProps<BkInputDate, "enterKeyHint" | "firstDay" | "weekNumbers" | "suffixText" | "clearLabel" | "labelPosition">, "prefix">;
|
|
2236
2298
|
"bk-input-file": BkElementProps<BkInputFile, {
|
|
2237
2299
|
/** Marks the field as one that can stay empty: "(optional)" after the label. A `required` field does not show it. */
|
|
2238
2300
|
"optional"?: BkInputFile["optional"];
|
|
@@ -2330,7 +2392,7 @@ declare module "react" {
|
|
|
2330
2392
|
"editing"?: BkInputInline["editing"];
|
|
2331
2393
|
/** The user confirms a changed value; `event.detail` is `{ value, done }`. */
|
|
2332
2394
|
"onsave"?: (event: CustomEvent<InputInlineSaveDetail>) => void;
|
|
2333
|
-
/** The field closes without saving: Esc or
|
|
2395
|
+
/** The field closes without saving: Esc, the cancel button or an unchanged value (does not bubble, so dialogs around it stay open). */
|
|
2334
2396
|
"oncancel"?: (event: Event) => void;
|
|
2335
2397
|
} & BkProps<BkInputInline, "disabledReason" | "editLabel">, "onSave" | "onSaveCapture" | "onCancel" | "onCancelCapture">;
|
|
2336
2398
|
"bk-input-number": BkElementProps<BkInputNumber, {
|
|
@@ -2367,7 +2429,7 @@ declare module "react" {
|
|
|
2367
2429
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
2368
2430
|
"size"?: BkInputNumber["size"];
|
|
2369
2431
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
2370
|
-
"
|
|
2432
|
+
"prefixText"?: BkInputNumber["prefixText"];
|
|
2371
2433
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
2372
2434
|
"suffix"?: BkAttr<BkInputNumber["suffixText"]>;
|
|
2373
2435
|
/** Shows a clear button while the field has a value. */
|
|
@@ -2394,7 +2456,7 @@ declare module "react" {
|
|
|
2394
2456
|
"oninput"?: (event: Event) => void;
|
|
2395
2457
|
/** When a value is committed: blur or Enter after typing, every step, clearing. */
|
|
2396
2458
|
"onchange"?: (event: Event) => void;
|
|
2397
|
-
} & BkProps<BkInputNumber, "enterKeyHint" | "decreaseLabel" | "increaseLabel" | "
|
|
2459
|
+
} & BkProps<BkInputNumber, "enterKeyHint" | "decreaseLabel" | "increaseLabel" | "suffixText" | "clearLabel" | "labelPosition">, "prefix">;
|
|
2398
2460
|
"bk-input-rating": BkElementProps<BkInputRating, {
|
|
2399
2461
|
/** The current rating: 0 (none) up to `max`, snapped to `step`. */
|
|
2400
2462
|
"value"?: BkInputRating["value"];
|
|
@@ -2493,7 +2555,7 @@ declare module "react" {
|
|
|
2493
2555
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
2494
2556
|
"size"?: BkInputSearch["size"];
|
|
2495
2557
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
2496
|
-
"
|
|
2558
|
+
"prefixText"?: BkInputSearch["prefixText"];
|
|
2497
2559
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
2498
2560
|
"suffix"?: BkAttr<BkInputSearch["suffixText"]>;
|
|
2499
2561
|
/** Shows a clear button while the field has a value. */
|
|
@@ -2530,7 +2592,7 @@ declare module "react" {
|
|
|
2530
2592
|
"onchange"?: (event: Event) => void;
|
|
2531
2593
|
/** `CustomEvent<SearchDetail>`. Cancelable. Cancel it to stop a form from submitting. */
|
|
2532
2594
|
"onsearch"?: (event: CustomEvent<SearchDetail>) => void;
|
|
2533
|
-
} & BkProps<BkInputSearch, "enterKeyHint" | "
|
|
2595
|
+
} & BkProps<BkInputSearch, "enterKeyHint" | "suffixText" | "clearLabel" | "labelPosition">, "prefix" | "onSearch" | "onSearchCapture">;
|
|
2534
2596
|
"bk-input-slider-range": BkElementProps<BkInputSliderRange, {
|
|
2535
2597
|
/** Low end of the chosen range (default `min`). Is always at least `min-gap` below `endValue`. */
|
|
2536
2598
|
"start-value"?: BkAttr<BkInputSliderRange["startValue"]>;
|
|
@@ -2656,6 +2718,8 @@ declare module "react" {
|
|
|
2656
2718
|
"mask"?: BkInputText["mask"];
|
|
2657
2719
|
/** Label of the Enter key on a phone keyboard, like the native `enterkeyhint`: `enter`, `done`, `go`, `next`, `previous`, `search` or `send`. */
|
|
2658
2720
|
"enterkeyhint"?: BkAttr<BkInputText["enterKeyHint"]>;
|
|
2721
|
+
/** The keyboard shortcut that moves the focus into the field: the id of a shortcut in the registry (`registerShortcuts`) or a key combination (`Mod+K`). The field sets `aria-keyshortcuts` on its native control, so a screen reader says the keys. The field does not bind the keys: bind them with `onShortcut`. Show the keys with `<bk-kbd slot="end" shortcut="…">`. */
|
|
2722
|
+
"shortcut"?: BkInputText["shortcut"];
|
|
2659
2723
|
/** Focuses the field when it connects. */
|
|
2660
2724
|
"autofocus"?: BkInputText["autofocus"];
|
|
2661
2725
|
/** Accessible name of the show-password toggle (default: i18n `showPassword`). */
|
|
@@ -2679,7 +2743,7 @@ declare module "react" {
|
|
|
2679
2743
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
2680
2744
|
"size"?: BkInputText["size"];
|
|
2681
2745
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
2682
|
-
"
|
|
2746
|
+
"prefixText"?: BkInputText["prefixText"];
|
|
2683
2747
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
2684
2748
|
"suffix"?: BkAttr<BkInputText["suffixText"]>;
|
|
2685
2749
|
/** Shows a clear button while the field has a value. */
|
|
@@ -2702,7 +2766,7 @@ declare module "react" {
|
|
|
2702
2766
|
"oninput"?: (event: Event) => void;
|
|
2703
2767
|
/** When the user commits an edit (blur or Enter), and when the field is cleared. */
|
|
2704
2768
|
"onchange"?: (event: Event) => void;
|
|
2705
|
-
} & BkProps<BkInputText, "enterKeyHint" | "revealLabel" | "maxRows" | "
|
|
2769
|
+
} & BkProps<BkInputText, "enterKeyHint" | "revealLabel" | "maxRows" | "suffixText" | "clearLabel" | "labelPosition">, "prefix">;
|
|
2706
2770
|
"bk-input-time-zone": BkElementProps<BkInputTimeZone, {
|
|
2707
2771
|
/** Language for the offsets, the times and the long names (default: the page language). */
|
|
2708
2772
|
"locale"?: BkInputTimeZone["locale"];
|
|
@@ -2716,7 +2780,7 @@ declare module "react" {
|
|
|
2716
2780
|
"max"?: BkInputTimeZone["max"];
|
|
2717
2781
|
/** Label of the Enter key on a phone keyboard, like the native `enterkeyhint`: `enter`, `done`, `go`, `next`, `previous`, `search`, `send`. */
|
|
2718
2782
|
"enterkeyhint"?: BkAttr<BkInputTimeZone["enterKeyHint"]>;
|
|
2719
|
-
/** Shows the loading row in the list.
|
|
2783
|
+
/** Shows the loading row in the list. The combobox sets it while `search` runs; apps that load options themselves set it too. */
|
|
2720
2784
|
"loading"?: BkInputTimeZone["loading"];
|
|
2721
2785
|
/** Delay in ms before `search` runs (default 150). */
|
|
2722
2786
|
"debounce"?: BkInputTimeZone["debounce"];
|
|
@@ -2747,7 +2811,7 @@ declare module "react" {
|
|
|
2747
2811
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
2748
2812
|
"size"?: BkInputTimeZone["size"];
|
|
2749
2813
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
2750
|
-
"
|
|
2814
|
+
"prefixText"?: BkInputTimeZone["prefixText"];
|
|
2751
2815
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
2752
2816
|
"suffix"?: BkAttr<BkInputTimeZone["suffixText"]>;
|
|
2753
2817
|
/** Shows a clear button while the field has a value. */
|
|
@@ -2784,7 +2848,7 @@ declare module "react" {
|
|
|
2784
2848
|
"onloadmore"?: (event: CustomEvent<LoadMoreDetail>) => void;
|
|
2785
2849
|
/** A `ToggleEvent` (`oldState`/`newState`) after the list opens or closes. Does not bubble. */
|
|
2786
2850
|
"ontoggle"?: (event: ToggleEvent) => void;
|
|
2787
|
-
} & BkProps<BkInputTimeZone, "allowCustom" | "enterKeyHint" | "emptyText" | "addLabel" | "
|
|
2851
|
+
} & BkProps<BkInputTimeZone, "allowCustom" | "enterKeyHint" | "emptyText" | "addLabel" | "suffixText" | "clearLabel" | "labelPosition">, "prefix" | "onLoadmore" | "onLoadmoreCapture" | "onToggle" | "onToggleCapture">;
|
|
2788
2852
|
"bk-input-time": BkElementProps<BkInputTime, {
|
|
2789
2853
|
/** The time as 24-hour `HH:MM` or `HH:MM:SS` (with seconds), "" while a segment is empty. */
|
|
2790
2854
|
"value"?: BkInputTime["value"];
|
|
@@ -2817,7 +2881,7 @@ declare module "react" {
|
|
|
2817
2881
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
2818
2882
|
"size"?: BkInputTime["size"];
|
|
2819
2883
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
2820
|
-
"
|
|
2884
|
+
"prefixText"?: BkInputTime["prefixText"];
|
|
2821
2885
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
2822
2886
|
"suffix"?: BkAttr<BkInputTime["suffixText"]>;
|
|
2823
2887
|
/** Shows a clear button while the field has a value. */
|
|
@@ -2842,7 +2906,7 @@ declare module "react" {
|
|
|
2842
2906
|
"oninput"?: (event: Event) => void;
|
|
2843
2907
|
/** When the value changes (a complete time, or cleared), and when the field is cleared. */
|
|
2844
2908
|
"onchange"?: (event: Event) => void;
|
|
2845
|
-
} & BkProps<BkInputTime, "hourCycle" | "enterKeyHint" | "
|
|
2909
|
+
} & BkProps<BkInputTime, "hourCycle" | "enterKeyHint" | "suffixText" | "clearLabel" | "labelPosition">, "prefix">;
|
|
2846
2910
|
"bk-item-group": BkElementProps<BkItemGroup, {
|
|
2847
2911
|
/** Hairlines between the rows. */
|
|
2848
2912
|
"divided"?: BkItemGroup["divided"];
|
|
@@ -2918,6 +2982,8 @@ declare module "react" {
|
|
|
2918
2982
|
"index"?: BkLightbox["index"];
|
|
2919
2983
|
/** Shows a row of thumbnails under the image. */
|
|
2920
2984
|
"filmstrip"?: BkLightbox["filmstrip"];
|
|
2985
|
+
/** Previous and next wrap around: after the last image comes the first. Without it, they stop at the ends. */
|
|
2986
|
+
"loop"?: BkLightbox["loop"];
|
|
2921
2987
|
/** `grid`: square thumbnails that fill the width. `strip`: a wrapping row of thumbnails at one height. */
|
|
2922
2988
|
"variant"?: BkLightbox["variant"];
|
|
2923
2989
|
/** Accessible name of the viewer (default from i18n). */
|
|
@@ -3200,11 +3266,17 @@ declare module "react" {
|
|
|
3200
3266
|
"description"?: BkMenuItem["description"];
|
|
3201
3267
|
/** Tile look. A `variant="tiles"` list sets it. Do not set it yourself. */
|
|
3202
3268
|
"tile"?: BkMenuItem["tile"];
|
|
3269
|
+
/** Shows a remove button; the item fires `remove` on it and on Delete. */
|
|
3270
|
+
"removable"?: BkMenuItem["removable"];
|
|
3271
|
+
/** Name of the remove button (default "Remove {item}"). */
|
|
3272
|
+
"remove-label"?: BkAttr<BkMenuItem["removeLabel"]>;
|
|
3203
3273
|
/** Native click. Does not fire while the item is disabled. */
|
|
3204
3274
|
"onclick"?: (event: MouseEvent) => void;
|
|
3275
|
+
/** The user removes a `removable` item (remove button or Delete). Bubbles, composed; `detail` is `{ value, item }`. */
|
|
3276
|
+
"onremove"?: (event: CustomEvent<MenuItemRemoveDetail>) => void;
|
|
3205
3277
|
/** The user makes a plain click on the link (primary button, no modifier key, no other `target`, no `download`). `detail.href` is the resolved address. The event bubbles, is composed and is cancelable. `preventDefault()` stops the browser, and the router of the app takes over. */
|
|
3206
3278
|
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
3207
|
-
}, "onNavigate" | "onNavigateCapture">;
|
|
3279
|
+
} & BkProps<BkMenuItem, "removeLabel">, "onRemove" | "onRemoveCapture" | "onNavigate" | "onNavigateCapture">;
|
|
3208
3280
|
"bk-menu-label": BkElementProps<BkMenuLabel, {
|
|
3209
3281
|
|
|
3210
3282
|
}>;
|
|
@@ -3425,6 +3497,8 @@ declare module "react" {
|
|
|
3425
3497
|
"label"?: BkModelViewer["label"];
|
|
3426
3498
|
/** Colour of the part, any CSS colour (default `--bk-model-viewer-part-color`). It replaces the colours of a 3MF or OBJ file. */
|
|
3427
3499
|
"color"?: BkModelViewer["color"];
|
|
3500
|
+
/** The viewer fills the height of its container: the view takes the height that the row under it leaves. The container needs a definite height. */
|
|
3501
|
+
"fill"?: BkModelViewer["fill"];
|
|
3428
3502
|
/** Index of the shown item. */
|
|
3429
3503
|
"index"?: BkModelViewer["index"];
|
|
3430
3504
|
/** Accessible name of the previous button (default from i18n). */
|
|
@@ -3495,6 +3569,8 @@ declare module "react" {
|
|
|
3495
3569
|
"count"?: BkNavItem["count"];
|
|
3496
3570
|
/** Second line under the label. */
|
|
3497
3571
|
"description"?: BkNavItem["description"];
|
|
3572
|
+
/** Short extra text: a tooltip on hover and keyboard focus, and the accessible description. */
|
|
3573
|
+
"hint"?: BkNavItem["hint"];
|
|
3498
3574
|
/** The page you are on: `aria-current="page"` and the selected style. */
|
|
3499
3575
|
"current"?: BkNavItem["current"];
|
|
3500
3576
|
/** Not navigable; skipped by the Tab key. */
|
|
@@ -3697,6 +3773,26 @@ declare module "react" {
|
|
|
3697
3773
|
/** A `ToggleEvent` that the element fires after the user collapses (`newState: "closed"`) or expands (`newState: "open"`) the panel. It does not bubble. */
|
|
3698
3774
|
"ontoggle"?: (event: ToggleEvent) => void;
|
|
3699
3775
|
} & BkProps<BkPanel, "collapseLabel" | "expandLabel" | "persistKey" | "busyLabel">, "onToggle" | "onToggleCapture">;
|
|
3776
|
+
"bk-period-nav": BkElementProps<BkPeriodNav, {
|
|
3777
|
+
/** Address of the previous period. Unset: the previous button is disabled. */
|
|
3778
|
+
"previous-href"?: BkAttr<BkPeriodNav["previousHref"]>;
|
|
3779
|
+
/** Address of the next period. Unset: the next button is disabled. */
|
|
3780
|
+
"next-href"?: BkAttr<BkPeriodNav["nextHref"]>;
|
|
3781
|
+
/** Address of the current period. Unset: no button for the current period. */
|
|
3782
|
+
"current-href"?: BkAttr<BkPeriodNav["currentHref"]>;
|
|
3783
|
+
/** Name of the landmark (default "Period navigation"). */
|
|
3784
|
+
"label"?: BkPeriodNav["label"];
|
|
3785
|
+
/** Name of the previous button (default "Previous period"). */
|
|
3786
|
+
"previous-label"?: BkAttr<BkPeriodNav["previousLabel"]>;
|
|
3787
|
+
/** Name of the next button (default "Next period"). */
|
|
3788
|
+
"next-label"?: BkAttr<BkPeriodNav["nextLabel"]>;
|
|
3789
|
+
/** Text of the current button (default "Current period"). */
|
|
3790
|
+
"current-label"?: BkAttr<BkPeriodNav["currentLabel"]>;
|
|
3791
|
+
/** Size of the buttons: `sm`, `md` (default) or `lg`. */
|
|
3792
|
+
"size"?: BkPeriodNav["size"];
|
|
3793
|
+
/** The user makes a plain click on a link (primary button, no modifier key). `detail.href` is the resolved address. Bubbles, composed, cancelable: `preventDefault()` stops the browser, and the router of the app handles the navigation. */
|
|
3794
|
+
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
3795
|
+
} & BkProps<BkPeriodNav, "previousHref" | "nextHref" | "currentHref" | "previousLabel" | "nextLabel" | "currentLabel">, "onNavigate" | "onNavigateCapture">;
|
|
3700
3796
|
"bk-picture": BkElementProps<BkPicture, {
|
|
3701
3797
|
/** Address of the image. */
|
|
3702
3798
|
"src"?: BkPicture["src"];
|
|
@@ -3724,9 +3820,13 @@ declare module "react" {
|
|
|
3724
3820
|
"error-label"?: BkAttr<BkPicture["errorLabel"]>;
|
|
3725
3821
|
/** The text of the retry button (default: i18n `pictureRetry`). */
|
|
3726
3822
|
"retry-label"?: BkAttr<BkPicture["retryLabel"]>;
|
|
3823
|
+
/** Fires when the image of `src` has loaded. `detail` is `{ src, naturalWidth, naturalHeight }`. It bubbles and is composed: the native `load` of the inner `<img>` does not leave the shadow root. A viewer reads the size of the stage from it. An image that comes from the cache fires it too. */
|
|
3824
|
+
"onload"?: (event: CustomEvent<PictureLoadDetail>) => void;
|
|
3825
|
+
/** Fires when the image of `src` cannot load. `detail` is `{ src }`. It bubbles and is composed. A gallery tile reads it to show its own state. A retry that fails fires it again. */
|
|
3826
|
+
"onerror"?: (event: CustomEvent<PictureErrorDetail>) => void;
|
|
3727
3827
|
/** Fires on a plain click on the link (primary button, no modifier key, no other `target`, no `download`). `detail.href` is the resolved address. It bubbles, is composed and is cancelable. `preventDefault()` stops the browser, and the router of the app handles the navigation. */
|
|
3728
3828
|
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
3729
|
-
} & BkProps<BkPicture, "errorLabel" | "retryLabel">, "onNavigate" | "onNavigateCapture">;
|
|
3829
|
+
} & BkProps<BkPicture, "errorLabel" | "retryLabel">, "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onNavigate" | "onNavigateCapture">;
|
|
3730
3830
|
"bk-popover-help": BkElementProps<BkPopoverHelp, {
|
|
3731
3831
|
/** Short heading in the panel. It also names the panel. */
|
|
3732
3832
|
"heading"?: BkPopoverHelp["heading"];
|
|
@@ -3902,8 +4002,6 @@ declare module "react" {
|
|
|
3902
4002
|
"label"?: BkScroll["label"];
|
|
3903
4003
|
}>;
|
|
3904
4004
|
"bk-segmented-item": BkElementProps<BkSegmentedItem, {
|
|
3905
|
-
/** `<bk-segmented>` sets it on the chosen segment. Do not set it yourself. */
|
|
3906
|
-
"checked"?: BkSegmentedItem["checked"];
|
|
3907
4005
|
/** Fold to icon and count when the nearest size container is narrow: `""`/`md` (640px), `sm` (480px), `lg` (960px). */
|
|
3908
4006
|
"collapse"?: BkSegmentedItem["collapse"];
|
|
3909
4007
|
/** Value that selects this option in its group. */
|
|
@@ -3916,10 +4014,16 @@ declare module "react" {
|
|
|
3916
4014
|
"label"?: BkSegmentedItem["label"];
|
|
3917
4015
|
/** Renders a link instead of a choice (link mode, router-driven). */
|
|
3918
4016
|
"href"?: BkSegmentedItem["href"];
|
|
3919
|
-
/** Link target in link mode (`_blank` adds `rel="noopener noreferrer"`). */
|
|
4017
|
+
/** Link target in link mode (`_blank` adds `rel="noopener noreferrer"` when `rel` is not set). */
|
|
3920
4018
|
"target"?: BkSegmentedItem["target"];
|
|
4019
|
+
/** Link `rel` in link mode. */
|
|
4020
|
+
"rel"?: BkSegmentedItem["rel"];
|
|
4021
|
+
/** File name for a download in link mode. */
|
|
4022
|
+
"download"?: BkSegmentedItem["download"];
|
|
3921
4023
|
/** Not selectable and skipped by the arrow keys. */
|
|
3922
4024
|
"disabled"?: BkSegmentedItem["disabled"];
|
|
4025
|
+
/** `<bk-segmented>` sets it on the chosen segment (the state `:state(checked)`). Do not set it yourself. */
|
|
4026
|
+
"checked"?: BkSegmentedItem["checked"];
|
|
3923
4027
|
/** A plain click on the link (primary button, no modifier key, no other `target`, no `download`); `detail.href` is the resolved address. The event bubbles and is composed. It is cancelable: `preventDefault()` stops the browser, and the router of the app handles the navigation. */
|
|
3924
4028
|
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
3925
4029
|
}, "onNavigate" | "onNavigateCapture">;
|
|
@@ -3975,7 +4079,7 @@ declare module "react" {
|
|
|
3975
4079
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
3976
4080
|
"size"?: BkSelectCascade["size"];
|
|
3977
4081
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
3978
|
-
"
|
|
4082
|
+
"prefixText"?: BkSelectCascade["prefixText"];
|
|
3979
4083
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
3980
4084
|
"suffix"?: BkAttr<BkSelectCascade["suffixText"]>;
|
|
3981
4085
|
/** Shows a clear button while the field has a value. */
|
|
@@ -4007,7 +4111,7 @@ declare module "react" {
|
|
|
4007
4111
|
"oninput"?: (event: Event) => void;
|
|
4008
4112
|
/** When the user chooses a leaf or clears the field. */
|
|
4009
4113
|
"onchange"?: (event: Event) => void;
|
|
4010
|
-
} & BkProps<BkSelectCascade, "
|
|
4114
|
+
} & BkProps<BkSelectCascade, "suffixText" | "clearLabel" | "labelPosition">, "prefix">;
|
|
4011
4115
|
"bk-select-tree": BkElementProps<BkSelectTree, {
|
|
4012
4116
|
/** A search field above the tree filters the rows by label. */
|
|
4013
4117
|
"search"?: BkSelectTree["search"];
|
|
@@ -4032,7 +4136,7 @@ declare module "react" {
|
|
|
4032
4136
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
4033
4137
|
"size"?: BkSelectTree["size"];
|
|
4034
4138
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
4035
|
-
"
|
|
4139
|
+
"prefixText"?: BkSelectTree["prefixText"];
|
|
4036
4140
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
4037
4141
|
"suffix"?: BkAttr<BkSelectTree["suffixText"]>;
|
|
4038
4142
|
/** Shows a clear button while the field has a value. */
|
|
@@ -4062,7 +4166,7 @@ declare module "react" {
|
|
|
4062
4166
|
"oninput"?: (event: Event) => void;
|
|
4063
4167
|
/** When the user chooses a node, checks or unchecks one, or clears the field. */
|
|
4064
4168
|
"onchange"?: (event: Event) => void;
|
|
4065
|
-
} & BkProps<BkSelectTree, "
|
|
4169
|
+
} & BkProps<BkSelectTree, "suffixText" | "clearLabel" | "labelPosition">, "prefix">;
|
|
4066
4170
|
"bk-select": BkElementProps<BkSelect, {
|
|
4067
4171
|
/** Fold to icon and chevron when the nearest size container is narrow: `""`/`md` (640px), `sm` (480px), `lg` (960px). */
|
|
4068
4172
|
"collapse"?: BkSelect["collapse"];
|
|
@@ -4097,7 +4201,7 @@ declare module "react" {
|
|
|
4097
4201
|
/** Height: `sm`, `md` (default), `lg`. */
|
|
4098
4202
|
"size"?: BkSelect["size"];
|
|
4099
4203
|
/** Fixed text before the value, for example `€` or `https://` (attribute `prefix`). Not part of the value. */
|
|
4100
|
-
"
|
|
4204
|
+
"prefixText"?: BkSelect["prefixText"];
|
|
4101
4205
|
/** Fixed text after the value, for example `mm` or `.com` (attribute `suffix`). Not part of the value. */
|
|
4102
4206
|
"suffix"?: BkAttr<BkSelect["suffixText"]>;
|
|
4103
4207
|
/** Shows a clear button while the field has a value. */
|
|
@@ -4134,7 +4238,7 @@ declare module "react" {
|
|
|
4134
4238
|
"onloadmore"?: (event: CustomEvent<LoadMoreDetail>) => void;
|
|
4135
4239
|
/** A `ToggleEvent` (`oldState`/`newState`) after the list opened or closed. Does not bubble. */
|
|
4136
4240
|
"ontoggle"?: (event: ToggleEvent) => void;
|
|
4137
|
-
} & BkProps<BkSelect, "selectAll" | "selectAllLabel" | "
|
|
4241
|
+
} & BkProps<BkSelect, "selectAll" | "selectAllLabel" | "suffixText" | "clearLabel" | "labelPosition">, "prefix" | "onLoadmore" | "onLoadmoreCapture" | "onToggle" | "onToggleCapture">;
|
|
4138
4242
|
"bk-shell-app": BkElementProps<BkShellApp, {
|
|
4139
4243
|
/** Sidebar shows as a narrow icon rail. */
|
|
4140
4244
|
"sidebar-collapsed"?: BkAttr<BkShellApp["sidebarCollapsed"]>;
|
|
@@ -4245,11 +4349,17 @@ declare module "react" {
|
|
|
4245
4349
|
"label"?: BkSplitGrid["label"];
|
|
4246
4350
|
/** How many columns of `min` px fit the width; 0 until measured. */
|
|
4247
4351
|
"fit"?: BkSplitGrid["fit"];
|
|
4352
|
+
/** Cancelable. When the user drops a pane on another pane; `detail` `{ pane, from, to, order }`. The app renders the new order. */
|
|
4353
|
+
"onreorder"?: (event: CustomEvent<SplitGridReorderDetail>) => void;
|
|
4354
|
+
/** Once per frame while the user drags a pane outside the grid (`inside: false`), and once with `inside: true` when the pointer comes back or the drag ends; `detail` `{ pane, clientX, clientY, inside }`. */
|
|
4355
|
+
"ondragoutside"?: (event: CustomEvent<SplitGridDragOutsideDetail>) => void;
|
|
4356
|
+
/** When the user releases a dragged pane outside the grid; `detail` `{ pane, clientX, clientY }`. */
|
|
4357
|
+
"ondropoutside"?: (event: CustomEvent<SplitGridDropOutsideDetail>) => void;
|
|
4248
4358
|
/** When the user moves a divider (once per frame) and when the number of columns that fit changes; `detail` `{ sizes, rowSizes }` (fractions of the available space). */
|
|
4249
4359
|
"onresize"?: (event: CustomEvent<SplitGridResizeDetail>) => void;
|
|
4250
4360
|
/** When the user finishes resizing or resets the columns or the rows; `detail` `{ sizes, rowSizes }` (fractions of the available space). */
|
|
4251
4361
|
"onchange"?: (event: CustomEvent<SplitGridResizeDetail>) => void;
|
|
4252
|
-
} & BkProps<BkSplitGrid, "defaultSizes" | "rowSizes" | "defaultRowSizes" | "minRow" | "stackBelow" | "persistKey" | "resizeLabel" | "resizeRowLabel">, "onResize" | "onResizeCapture">;
|
|
4362
|
+
} & BkProps<BkSplitGrid, "defaultSizes" | "rowSizes" | "defaultRowSizes" | "minRow" | "stackBelow" | "persistKey" | "resizeLabel" | "resizeRowLabel">, "onReorder" | "onReorderCapture" | "onDragoutside" | "onDragoutsideCapture" | "onDropoutside" | "onDropoutsideCapture" | "onResize" | "onResizeCapture">;
|
|
4253
4363
|
"bk-split": BkElementProps<BkSplit, {
|
|
4254
4364
|
/** `horizontal` (default: panes side by side), `vertical` (panes on top of each other) or `auto` (the one with more room). */
|
|
4255
4365
|
"orientation"?: BkSplit["orientation"];
|
|
@@ -4287,6 +4397,8 @@ declare module "react" {
|
|
|
4287
4397
|
"label"?: BkStat["label"];
|
|
4288
4398
|
/** The value: a number (formatted in full in the locale) or ready text. */
|
|
4289
4399
|
"value"?: BkStat["value"];
|
|
4400
|
+
/** Ready text for the value, shown as it is instead of the formatted `value` (like `aria-valuetext`). Use it for a figure that the app has formatted. */
|
|
4401
|
+
"value-text"?: BkAttr<BkStat["valueText"]>;
|
|
4290
4402
|
/** Unit after the value ("ms", "GB"); for currencies and percent use `value-format`. */
|
|
4291
4403
|
"unit"?: BkStat["unit"];
|
|
4292
4404
|
/** Intl.NumberFormat options for the value (`{"minimumFractionDigits":2}` shows 13.10). */
|
|
@@ -4299,6 +4411,8 @@ declare module "react" {
|
|
|
4299
4411
|
"delta"?: BkStat["delta"];
|
|
4300
4412
|
/** Intl.NumberFormat options for the delta (`{"style":"percent"}` reads 0.084 as +8.4 %). */
|
|
4301
4413
|
"delta-format"?: BkAttr<BkStat["deltaFormat"]>;
|
|
4414
|
+
/** Ready text for the change, shown as it is instead of the formatted `delta`. The sign of `delta` still sets the direction and the tone. */
|
|
4415
|
+
"delta-text"?: BkAttr<BkStat["deltaText"]>;
|
|
4302
4416
|
/** The comparison period ("vs last month"). */
|
|
4303
4417
|
"delta-label"?: BkAttr<BkStat["deltaLabel"]>;
|
|
4304
4418
|
/** Down is good (costs, latency, error rate). */
|
|
@@ -4311,7 +4425,7 @@ declare module "react" {
|
|
|
4311
4425
|
"order"?: BkStat["order"];
|
|
4312
4426
|
/** Colour of the value: `accent`, `info`, `success`, `warning`, `danger`, `attention` (default: plain text). */
|
|
4313
4427
|
"tone"?: BkStat["tone"];
|
|
4314
|
-
} & BkProps<BkStat, "valueFormat" | "deltaFormat" | "deltaLabel">>;
|
|
4428
|
+
} & BkProps<BkStat, "valueText" | "valueFormat" | "deltaFormat" | "deltaText" | "deltaLabel">>;
|
|
4315
4429
|
"bk-status-dot": BkElementProps<BkStatusDot, {
|
|
4316
4430
|
/** `neutral` (default), `accent`, `success`, `warning`, `danger`, `attention`, `info`. */
|
|
4317
4431
|
"tone"?: BkStatusDot["tone"];
|
|
@@ -4553,8 +4667,12 @@ declare module "react" {
|
|
|
4553
4667
|
"label"?: BkTabsItem["label"];
|
|
4554
4668
|
/** Renders a link instead of a choice (link mode, router-driven). */
|
|
4555
4669
|
"href"?: BkTabsItem["href"];
|
|
4556
|
-
/** Link target in link mode (`_blank` adds `rel="noopener noreferrer"`). */
|
|
4670
|
+
/** Link target in link mode (`_blank` adds `rel="noopener noreferrer"` when `rel` is not set). */
|
|
4557
4671
|
"target"?: BkTabsItem["target"];
|
|
4672
|
+
/** Link `rel` in link mode. */
|
|
4673
|
+
"rel"?: BkTabsItem["rel"];
|
|
4674
|
+
/** File name for a download in link mode. */
|
|
4675
|
+
"download"?: BkTabsItem["download"];
|
|
4558
4676
|
/** Not selectable and skipped by the arrow keys. */
|
|
4559
4677
|
"disabled"?: BkTabsItem["disabled"];
|
|
4560
4678
|
/** The user closes the tab (close button or Delete). Bubbles, composed, cancelable; `detail` is `{ value }`. */
|
|
@@ -4585,6 +4703,8 @@ declare module "react" {
|
|
|
4585
4703
|
"addable"?: BkTabs["addable"];
|
|
4586
4704
|
/** Name of the add button (default: i18n `tabAdd`). */
|
|
4587
4705
|
"add-label"?: BkAttr<BkTabs["addLabel"]>;
|
|
4706
|
+
/** What happens with tabs that do not fit the row: `menu` (default) moves them into a "More" menu, `scroll` scrolls the row. */
|
|
4707
|
+
"overflow"?: BkTabs["overflow"];
|
|
4588
4708
|
/** Before the user selects another tab (click or keys); `detail` is `{ value, previous }`. Bubbles, composed, cancelable: `preventDefault()` leaves the current tab selected, for example to confirm unsaved changes first. */
|
|
4589
4709
|
"onselect"?: (event: CustomEvent<TabSelectDetail>) => void;
|
|
4590
4710
|
/** After the user selects another tab (or the selected tab is removed and a neighbour becomes selected); read `event.target.value`. Not cancelable: cancel `select` to leave the current tab selected. */
|