@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
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as s } from "./chunks/link
|
|
3
|
+
import { r as a, t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
|
+
import { t as s } from "./chunks/link--YWr8exL.js";
|
|
5
5
|
import { t as c } from "./chunks/loading-B37QBUkv.js";
|
|
6
6
|
import { t as l } from "./chunks/slots-BHTtBbPo.js";
|
|
7
|
-
import { t as u } from "./chunks/i18n-
|
|
8
|
-
import { a as d, i as f, t as p } from "./chunks/styles-
|
|
7
|
+
import { t as u } from "./chunks/i18n-DFfGgd3d.js";
|
|
8
|
+
import { a as d, i as f, t as p } from "./chunks/styles-CaeyhYDA.js";
|
|
9
9
|
import { r as m } from "./chunks/anchor-CNX3nt2F.js";
|
|
10
10
|
import { r as h, t as g } from "./chunks/events-DQ4e9cPN.js";
|
|
11
|
-
import "./chunks/bk-icon-
|
|
11
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
12
12
|
import "./bk-spinner.js";
|
|
13
13
|
import "./bk-tooltip.js";
|
|
14
|
+
import { n as _, t as v } from "./chunks/submit-BjBGB8OW.js";
|
|
14
15
|
import "./chunks/label-cokyRPHN.js";
|
|
15
16
|
// dist/components/bk-button.js
|
|
16
|
-
var
|
|
17
|
+
var y = (e) => e.stopPropagation(), b = /* @__PURE__ */ new Set([
|
|
17
18
|
"bk-icon",
|
|
18
19
|
"svg",
|
|
19
20
|
"img",
|
|
20
21
|
"bk-avatar"
|
|
21
|
-
]),
|
|
22
|
+
]), x = {
|
|
23
|
+
fromAttribute: (e) => e !== null && e !== "false",
|
|
24
|
+
toAttribute: (e) => e ? "" : null
|
|
25
|
+
}, S = class extends n {
|
|
22
26
|
static formAssociated = !0;
|
|
23
27
|
static shadowRootOptions = {
|
|
24
28
|
...n.shadowRootOptions,
|
|
@@ -80,8 +84,8 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
80
84
|
},
|
|
81
85
|
align: { reflect: !0 },
|
|
82
86
|
pressed: {
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
reflect: !0,
|
|
88
|
+
converter: x
|
|
85
89
|
},
|
|
86
90
|
floating: {
|
|
87
91
|
type: Boolean,
|
|
@@ -145,8 +149,18 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
145
149
|
onPickCancel = (e) => {
|
|
146
150
|
e.stopPropagation(), h(this, "cancel");
|
|
147
151
|
};
|
|
152
|
+
fieldsetDisabled = !1;
|
|
153
|
+
get isDisabled() {
|
|
154
|
+
return this.disabled || this.fieldsetDisabled && !this.href;
|
|
155
|
+
}
|
|
148
156
|
get inactive() {
|
|
149
|
-
return this.
|
|
157
|
+
return this.isDisabled || this.loading || !!this.disabledReason;
|
|
158
|
+
}
|
|
159
|
+
formDisabledCallback(e) {
|
|
160
|
+
this.fieldsetDisabled = e, this.requestUpdate();
|
|
161
|
+
}
|
|
162
|
+
[v]() {
|
|
163
|
+
return this.type === "submit" && !this.href ? this.inactive : null;
|
|
150
164
|
}
|
|
151
165
|
forwarded = {
|
|
152
166
|
haspopup: null,
|
|
@@ -280,14 +294,14 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
280
294
|
--_bk-button-shadow: var(--bk-button-solid-shadow, 0 var(--bk-space-1) var(--bk-space-4) calc(-1 * var(--bk-space-1)) oklch(from var(--_bk-button-solid) l c h / calc(0.5 * var(--bk-glow-strength))));
|
|
281
295
|
}
|
|
282
296
|
@media (hover: hover) {
|
|
283
|
-
:host([variant="solid"]:not([disabled]
|
|
297
|
+
:host([variant="solid"]:not([disabled], :disabled, [pressed]:not([pressed="false"]))) .control:hover:not([aria-disabled="true"]) { background: var(--_bk-button-fill-hover, var(--_bk-button-solid-hover)); }
|
|
284
298
|
}
|
|
285
299
|
:host([variant="soft"]) { --_bk-button-bg: var(--_bk-button-soft); --_bk-button-bd: transparent; --_bk-button-shadow: none; }
|
|
286
300
|
:host([variant="ghost"]) { --_bk-button-bg: var(--bk-button-ghost-bg, transparent); --_bk-button-bd: transparent; --_bk-button-hover: var(--_bk-button-tint); --_bk-button-shadow: none; }
|
|
287
301
|
:host([variant="quiet"]) { --_bk-button-bg: transparent; --_bk-button-bd: transparent; --_bk-button-shadow: none; }
|
|
288
302
|
:host([variant="quiet"]:is([tone="neutral"], :not([tone]))) { --_bk-button-fg: var(--bk-button-quiet-fg, var(--bk-text-muted)); }
|
|
289
303
|
@media (hover: hover) {
|
|
290
|
-
:host([variant="quiet"]:not([disabled])) .control:hover:not([aria-disabled="true"]) { color: var(--_bk-button-text); border-color: var(--_bk-button-frame); }
|
|
304
|
+
:host([variant="quiet"]:not([disabled], :disabled)) .control:hover:not([aria-disabled="true"]) { color: var(--_bk-button-text); border-color: var(--_bk-button-frame); }
|
|
291
305
|
}
|
|
292
306
|
:host([floating]) { --_bk-button-shadow: var(--bk-button-floating-shadow, var(--bk-layer-overlay-shadow)); }
|
|
293
307
|
:host([floating]:not([variant="solid"])) {
|
|
@@ -296,9 +310,12 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
296
310
|
--_bk-button-bd: var(--bk-button-floating-border, var(--bk-layer-overlay-border));
|
|
297
311
|
}
|
|
298
312
|
:host([floating]) .control { border-radius: var(--bk-button-floating-radius, var(--bk-radius-full)); }
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
313
|
+
/* The pressed look follows the tone: its soft background and its text. Neutral (the default) uses the accent, the colour of a selection. */
|
|
314
|
+
:host { --_bk-button-pressed-bg: var(--bk-accent-soft); --_bk-button-pressed-fg: var(--bk-accent-text); }
|
|
315
|
+
:host([tone]:not([tone="neutral"])) { --_bk-button-pressed-bg: var(--_bk-button-soft); --_bk-button-pressed-fg: var(--_bk-button-text); }
|
|
316
|
+
:host([pressed]:not([pressed="false"])), :host([aria-current]:not([aria-current="false"])) {
|
|
317
|
+
--_bk-button-bg: var(--bk-button-pressed-bg, var(--_bk-button-pressed-bg));
|
|
318
|
+
--_bk-button-fg: var(--bk-button-pressed-fg, var(--_bk-button-pressed-fg));
|
|
302
319
|
--_bk-button-bd: var(--bk-button-pressed-border, transparent);
|
|
303
320
|
--_bk-button-shadow: none;
|
|
304
321
|
}
|
|
@@ -310,18 +327,25 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
310
327
|
letter-spacing: var(--bk-button-letter-spacing, normal); text-transform: var(--bk-button-text-transform, none);
|
|
311
328
|
line-height: 1; white-space: nowrap;
|
|
312
329
|
color: var(--_bk-button-fg); background: var(--_bk-button-bg); border: var(--bk-button-border-width, var(--bk-border-width)) solid var(--_bk-button-bd);
|
|
313
|
-
border-radius: var(--_bk-button-group-radius, var(--bk-button-radius, var(--bk-radius-control, var(--bk-radius-md)))); box-shadow: var(--_bk-button-shadow);
|
|
330
|
+
border-radius: var(--_bk-button-group-radius, var(--bk-button-radius, var(--bk-radius-control, var(--bk-radius-md)))); box-shadow: var(--bk-button-shadow, var(--_bk-button-shadow));
|
|
314
331
|
text-decoration: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
|
|
315
|
-
transition: background-color var(--bk-duration-fast), border-color var(--bk-duration-fast), color var(--bk-duration-fast);
|
|
332
|
+
transition: background-color var(--bk-duration-fast), border-color var(--bk-duration-fast), color var(--bk-duration-fast), box-shadow var(--bk-duration-fast), translate var(--bk-duration-fast);
|
|
316
333
|
}
|
|
334
|
+
@media (hover: hover) {
|
|
335
|
+
:host(:not(:is([disabled], :disabled:not([href]), [disabled-reason]:not([disabled-reason=""])))) .control:hover:not([aria-disabled="true"]) {
|
|
336
|
+
translate: 0 calc(-1 * var(--bk-button-lift-hover, 0px)); box-shadow: var(--bk-button-shadow-hover, var(--bk-button-shadow, var(--_bk-button-shadow)));
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
@media (prefers-reduced-motion: reduce) { .control:hover { translate: none !important; } }
|
|
317
340
|
.control::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transition: background-color var(--bk-duration-fast); }
|
|
318
341
|
@media (hover: hover) { .control:hover::after { background: var(--_bk-button-hover); } }
|
|
319
342
|
.control:active::after { background: var(--bk-button-active, var(--bk-pressed)); }
|
|
320
343
|
.control:focus { outline: none; }
|
|
321
344
|
.control:focus-visible { outline: var(--bk-focus-ring); outline-offset: var(--bk-button-focus-offset, var(--bk-focus-offset)); }
|
|
322
345
|
|
|
323
|
-
:
|
|
324
|
-
:host([disabled]) .control
|
|
346
|
+
/* :disabled is also a disabled ancestor fieldset. A link button stays a link there. */
|
|
347
|
+
:host(:is([disabled], :disabled:not([href]))) .control, :host([disabled-reason]:not([disabled-reason=""])) .control { opacity: var(--bk-disabled-opacity); cursor: not-allowed; }
|
|
348
|
+
:host(:is([disabled], :disabled:not([href]))) .control::after, :host([disabled-reason]:not([disabled-reason=""])) .control::after { display: none; }
|
|
325
349
|
/* The tooltip that says why the button is off wraps the control and fills the host like it. */
|
|
326
350
|
.reason { display: flex; flex: 1; min-width: 0; }
|
|
327
351
|
.reason::part(anchor) { flex: 1; min-width: 0; }
|
|
@@ -332,7 +356,7 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
332
356
|
/* The content has no box of its own (display: contents), so each part hides. Not visibility: the label stays the accessible name. */
|
|
333
357
|
.spinning .label, .spinning .content bk-icon, .spinning .content ::slotted(*) { opacity: 0; }
|
|
334
358
|
.spinner { position: absolute; inset: 0; display: grid; place-items: center; }
|
|
335
|
-
@media (forced-colors: active) { .control { border-color: ButtonText; } :host([pressed]) .control, :host([aria-current]:not([aria-current="false"])) .control { outline: 2px solid Highlight; } }
|
|
359
|
+
@media (forced-colors: active) { .control { border-color: ButtonText; } :host([pressed]:not([pressed="false"])) .control, :host([aria-current]:not([aria-current="false"])) .control { outline: 2px solid Highlight; } }
|
|
336
360
|
|
|
337
361
|
.content { display: contents; }
|
|
338
362
|
/* An icon's glyph carries its own inner space: the padding on its side gives that back. */
|
|
@@ -383,15 +407,22 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
383
407
|
}
|
|
384
408
|
inOverlay = !1;
|
|
385
409
|
connectedCallback() {
|
|
386
|
-
super.connectedCallback();
|
|
387
|
-
let e = this
|
|
388
|
-
|
|
410
|
+
super.connectedCallback(), this.inOverlay = !1;
|
|
411
|
+
for (let e = this; e;) {
|
|
412
|
+
if (e.closest("dialog, bk-dialog, bk-drawer, bk-lightbox, bk-command-palette, [popover]")) {
|
|
413
|
+
this.inOverlay = !0;
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
let t = e.getRootNode();
|
|
417
|
+
e = t instanceof ShadowRoot ? t.host : null;
|
|
418
|
+
}
|
|
419
|
+
this.collapsible && !this.icon && !this.iconEnd && !this.querySelector(":scope > :is([slot=start], [slot=end])") && console.warn("<bk-button collapse> needs an icon (icon, icon-end, or the start or end slot): it is all that stays visible.", this);
|
|
389
420
|
}
|
|
390
421
|
get iconOnly() {
|
|
391
422
|
return this.iconEnd || this.slots.has("end") ? !1 : this.slots.has("") ? this.visualOnly : !!this.icon || this.slots.has("start");
|
|
392
423
|
}
|
|
393
424
|
onDefaultSlot(e) {
|
|
394
|
-
let t = e.target.assignedNodes({ flatten: !0 }), n = t.filter((e) => e.nodeType === Node.ELEMENT_NODE), r = !t.some((e) => e.nodeType === Node.TEXT_NODE && !!e.textContent?.trim()) && n.length > 0 && n.every((e) =>
|
|
425
|
+
let t = e.target.assignedNodes({ flatten: !0 }), n = t.filter((e) => e.nodeType === Node.ELEMENT_NODE), r = !t.some((e) => e.nodeType === Node.TEXT_NODE && !!e.textContent?.trim()) && n.length > 0 && n.every((e) => b.has(e.localName)), i = n.find((e) => e.localName === "bk-avatar");
|
|
395
426
|
this.internals.states[r && i && i.getAttribute("shape") !== "square" ? "add" : "delete"]("round"), (r !== this.visualOnly || this.collapsible) && (this.visualOnly = r, this.requestUpdate());
|
|
396
427
|
}
|
|
397
428
|
firstUpdated() {
|
|
@@ -407,31 +438,40 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
407
438
|
}
|
|
408
439
|
willUpdate(e) {
|
|
409
440
|
super.willUpdate(e), e.has("loading") && this.loader.set(this.loading);
|
|
441
|
+
let t = this.forwarded, n = t.expanded === null ? this.hostExpanded === "true" : t.expanded, r = this.internals.states;
|
|
442
|
+
r && (n ? r.add("expanded") : r.delete("expanded"));
|
|
443
|
+
}
|
|
444
|
+
updated(e) {
|
|
445
|
+
super.updated(e), e.has("type") && this.type === "submit" && _();
|
|
410
446
|
}
|
|
411
447
|
renderContent() {
|
|
412
448
|
return e`
|
|
413
|
-
<slot name="start">${this.icon ? e`<bk-icon name=${this.icon}></bk-icon>` : t}</slot>
|
|
449
|
+
<slot name="start">${this.icon ? e`<bk-icon part="icon-start" name=${this.icon}></bk-icon>` : t}</slot>
|
|
414
450
|
<span class="label"><slot @slotchange=${this.onDefaultSlot}></slot></span>
|
|
415
|
-
<slot name="end">${this.iconEnd ? e`<bk-icon name=${this.iconEnd}></bk-icon>` : t}</slot>`;
|
|
451
|
+
<slot name="end">${this.iconEnd ? e`<bk-icon part="icon-end" name=${this.iconEnd}></bk-icon>` : t}</slot>`;
|
|
416
452
|
}
|
|
417
453
|
render() {
|
|
418
454
|
let n = e`<span class="content">${this.renderContent()}</span>
|
|
419
455
|
${this.loader.visible ? e`<span class="spinner"><bk-spinner></bk-spinner></span>` : t}
|
|
420
|
-
${this.iconOnly ? this.countText ? e`<span class="count" part="count" aria-hidden="true" data-count=${this.countText}></span>` : this.dot ? e`<span class="dot" part="count" aria-hidden="true"></span>` : t : t}`, r = !this.iconOnly && (!!this.icon || this.slots.has("start")), o = !this.iconOnly && (!!this.iconEnd || this.slots.has("end")), s = `control${this.loader.visible ? " spinning" : ""}${this.iconOnly ? " icon-only" : ""}${r ? " has-start" : ""}${o ? " has-end" : ""}`, c = this.disabledReason || void 0, l = this.inactive, u = !!c || this.loading, d = this.forwarded, f = this.label ?? (this.collapsible && a(this)?.textContent?.replace(/\s+/g, " ").trim() || void 0), p = !c && !d.hideTitle && !this.hideTooltip && !this.inOverlay && this.iconOnly && f ? f : void 0, h = d.hideTitle || this.hideTooltip || c || p ? void 0 : f, g = i(d.haspopup ?? void 0),
|
|
456
|
+
${this.iconOnly ? this.countText ? e`<span class="count" part="count" aria-hidden="true" data-count=${this.countText}></span>` : this.dot ? e`<span class="dot" part="count" aria-hidden="true"></span>` : t : t}`, r = !this.iconOnly && (!!this.icon || this.slots.has("start")), o = !this.iconOnly && (!!this.iconEnd || this.slots.has("end")), s = `control${this.loader.visible ? " spinning" : ""}${this.iconOnly ? " icon-only" : ""}${r ? " has-start" : ""}${o ? " has-end" : ""}`, c = this.disabledReason || void 0, l = this.inactive, u = !!c || this.loading, d = this.forwarded, f = this.label ?? (this.collapsible && a(this)?.textContent?.replace(/\s+/g, " ").trim() || void 0), p = !c && !d.hideTitle && !this.hideTooltip && !this.inOverlay && this.iconOnly && f ? f : void 0, h = d.hideTitle || this.hideTooltip || c || p ? void 0 : f, g = i(d.haspopup ?? void 0), _ = i(d.expanded === null ? this.hostExpanded ?? void 0 : String(d.expanded)), v = this.href && this.target === "_blank" ? this.i18n.t("opensInNewTab") : void 0, b = i(c ? void 0 : [
|
|
457
|
+
d.description,
|
|
458
|
+
this.badgeDescription,
|
|
459
|
+
v
|
|
460
|
+
].filter(Boolean).join(". ") || void 0), x = i(this.current ?? void 0), S = m(d.controls ?? this.hostControlled());
|
|
421
461
|
return this.href ? this.withReason(c, f, p, e`<a part="control" class=${s}
|
|
422
462
|
href=${i(l ? void 0 : this.links.href(this.href))} @click=${this.links.click} target=${i(this.target)}
|
|
423
463
|
rel=${i(this.rel ?? (this.target === "_blank" ? "noopener noreferrer" : void 0))}
|
|
424
464
|
download=${i(this.download)} aria-label=${i(f)} title=${i(h)}
|
|
425
|
-
aria-haspopup=${g} aria-expanded=${
|
|
465
|
+
aria-haspopup=${g} aria-expanded=${_} .ariaControlsElements=${S} aria-description=${b} aria-current=${x}
|
|
426
466
|
aria-disabled=${i(l ? "true" : void 0)} role=${i(l ? "link" : void 0)}
|
|
427
|
-
tabindex=${i(c ? "0" : this.
|
|
467
|
+
tabindex=${i(c ? "0" : this.isDisabled ? "-1" : void 0)}>${n}</a>`) : this.withReason(c, f, p, e`<button part="control" class=${s} type="button"
|
|
428
468
|
command=${i(this.command)} @click=${this.onControlClick}
|
|
429
|
-
?disabled=${this.
|
|
469
|
+
?disabled=${this.isDisabled && !c} aria-disabled=${i(u ? "true" : void 0)}
|
|
430
470
|
aria-busy=${i(this.loading ? "true" : void 0)}
|
|
431
471
|
aria-pressed=${i(this.pressed === void 0 ? void 0 : String(this.pressed))}
|
|
432
472
|
aria-label=${i(f)} title=${i(h)}
|
|
433
|
-
aria-haspopup=${g} aria-expanded=${
|
|
434
|
-
@click=${
|
|
473
|
+
aria-haspopup=${g} aria-expanded=${_} .ariaControlsElements=${S} aria-description=${b} aria-current=${x}>${n}</button>${this.type === "file" ? e`<input type="file" hidden tabindex="-1" aria-hidden="true" accept=${i(this.accept || void 0)} ?multiple=${this.multiple}
|
|
474
|
+
@click=${y} @input=${y} @change=${this.onPicked} @cancel=${this.onPickCancel}>` : t}`);
|
|
435
475
|
}
|
|
436
476
|
onControlClick = (e) => {
|
|
437
477
|
let t = e.currentTarget;
|
|
@@ -441,5 +481,5 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
441
481
|
return r ? e`<bk-tooltip class="labelled" content=${r}>${i}</bk-tooltip>` : t ? e`<bk-tooltip class="reason" content=${n ? `${n}. ${t}` : t}>${i}</bk-tooltip>` : i;
|
|
442
482
|
}
|
|
443
483
|
};
|
|
444
|
-
o("bk-button",
|
|
445
|
-
export {
|
|
484
|
+
o("bk-button", S);
|
|
485
|
+
export { S as BkButton };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
4
|
-
import { t as o } from "./chunks/i18n-
|
|
5
|
-
import {
|
|
4
|
+
import { t as o } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
|
+
import { i as s, t as c } from "./chunks/define-6OfuRn5c.js";
|
|
6
6
|
import { n as l, t as u } from "./chunks/events-DQ4e9cPN.js";
|
|
7
|
-
import { t as d, x as f } from "./chunks/styles-
|
|
7
|
+
import { t as d, x as f } from "./chunks/styles-CaeyhYDA.js";
|
|
8
8
|
import { addDays as p, dateLocaleData as m, fromUtc as h, utc as g, validIso as _ } from "./bk-calendar.js";
|
|
9
9
|
import "./bk-button.js";
|
|
10
10
|
import "./bk-calendar-event.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
|
-
import { t as a } from "./chunks/define-
|
|
3
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { n as o, t as s } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { t as c } from "./chunks/slots-BHTtBbPo.js";
|
|
6
|
-
import { t as l, x as u } from "./chunks/styles-
|
|
7
|
-
import {
|
|
8
|
-
import "./chunks/bk-icon-
|
|
6
|
+
import { t as l, x as u } from "./chunks/styles-CaeyhYDA.js";
|
|
7
|
+
import { o as d, t as f } from "./chunks/i18n-DFfGgd3d.js";
|
|
8
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
9
9
|
import "./chunks/chevron-down-CpVEjEyi.js";
|
|
10
10
|
import "./chunks/chevron-left-BHF34JzQ.js";
|
|
11
11
|
import "./chunks/chevron-right-CxqvZ6TS.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as c } from "./chunks/link
|
|
5
|
-
import { t as l } from "./chunks/i18n-
|
|
6
|
-
import { n as u, t as d } from "./chunks/busy-
|
|
3
|
+
import { a, r as o, t as s } from "./chunks/define-6OfuRn5c.js";
|
|
4
|
+
import { t as c } from "./chunks/link--YWr8exL.js";
|
|
5
|
+
import { t as l } from "./chunks/i18n-DFfGgd3d.js";
|
|
6
|
+
import { n as u, t as d } from "./chunks/busy-eG3uHonz.js";
|
|
7
7
|
import { t as f } from "./chunks/slots-BHTtBbPo.js";
|
|
8
|
-
import { h as p, t as m, u as h } from "./chunks/styles-
|
|
8
|
+
import { h as p, t as m, u as h } from "./chunks/styles-CaeyhYDA.js";
|
|
9
9
|
import { t as g } from "./chunks/events-DQ4e9cPN.js";
|
|
10
10
|
import "./bk-checkbox.js";
|
|
11
11
|
// dist/components/bk-card.js
|
|
@@ -52,7 +52,8 @@ var _ = class extends n {
|
|
|
52
52
|
};
|
|
53
53
|
slots = new f(this);
|
|
54
54
|
i18n = new l(this);
|
|
55
|
-
|
|
55
|
+
internals = this.attachInternals();
|
|
56
|
+
busyState = new d(this, this.i18n, this.internals);
|
|
56
57
|
links = new c(this);
|
|
57
58
|
sizes = a(([e]) => {
|
|
58
59
|
let t = e.borderBoxSize?.[0]?.inlineSize ?? 0;
|
|
@@ -97,8 +98,20 @@ var _ = class extends n {
|
|
|
97
98
|
--bk-ground: var(--bk-card-bg, var(--bk-layer-raised-bg)); --bk-ground-tint: transparent;
|
|
98
99
|
border: var(--bk-card-border-width, var(--bk-border-width)) solid var(--bk-card-border, var(--bk-layer-raised-border));
|
|
99
100
|
border-radius: var(--bk-card-radius, var(--bk-radius-container, var(--bk-radius-lg))); box-shadow: var(--bk-card-shadow, var(--bk-layer-raised-shadow));
|
|
100
|
-
text-decoration: none; transition: box-shadow var(--bk-duration), border-color var(--bk-duration);
|
|
101
|
+
text-decoration: none; transition: box-shadow var(--bk-duration), border-color var(--bk-duration), translate var(--bk-duration) var(--bk-ease);
|
|
101
102
|
}
|
|
103
|
+
/* The rings: an image over the border, cut to a ring in the radius of the card. ::before is the ring at rest,
|
|
104
|
+
::after the ring of a card with href on hover. The card clips its content, so the rings are on the host. */
|
|
105
|
+
:host { position: relative; }
|
|
106
|
+
:host::before, :host([href])::after {
|
|
107
|
+
content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
|
|
108
|
+
padding: var(--bk-card-border-width, var(--bk-border-width));
|
|
109
|
+
mask: linear-gradient(currentColor 0 0) content-box exclude, linear-gradient(currentColor 0 0);
|
|
110
|
+
transition: opacity var(--bk-duration), translate var(--bk-duration) var(--bk-ease);
|
|
111
|
+
}
|
|
112
|
+
:host::before { background: var(--bk-card-ring, none); }
|
|
113
|
+
:host([selected])::before { display: none; }
|
|
114
|
+
:host([href])::after { background: var(--bk-card-ring-hover, linear-gradient(135deg, var(--bk-accent-solid), var(--bk-info-solid))); opacity: 0; }
|
|
102
115
|
:host([variant="elevated"]) .card { border-color: transparent; box-shadow: var(--bk-card-shadow, var(--bk-layer-overlay-shadow)); }
|
|
103
116
|
:host([variant="flat"]) .card { border-color: transparent; box-shadow: none; background: var(--bk-card-bg, var(--bk-layer-sunken-bg)); --bk-ground: var(--bk-card-bg, var(--bk-layer-sunken-bg)); }
|
|
104
117
|
/* Tone: the tint lies over the layer background, so --bk-card-bg stays the base. */
|
|
@@ -117,7 +130,13 @@ var _ = class extends n {
|
|
|
117
130
|
:host([href]) .overlay { z-index: 2; }
|
|
118
131
|
@media (hover: hover) {
|
|
119
132
|
:host([href]) .card:hover { box-shadow: var(--bk-card-shadow-hover, var(--bk-layer-overlay-shadow)); border-color: var(--bk-card-border-hover, var(--bk-line-mid)); }
|
|
133
|
+
:host([href]:not([selected]):hover)::after { opacity: 1; }
|
|
134
|
+
:host([href]:not([selected]):hover) .card, :host([href]:not([selected]):hover)::before, :host([href]:not([selected]):hover)::after {
|
|
135
|
+
translate: 0 calc(-1 * var(--bk-card-lift-hover, round(var(--bk-space-0), 1px)));
|
|
136
|
+
}
|
|
120
137
|
}
|
|
138
|
+
@media (prefers-reduced-motion: reduce) { :host([href]:hover) .card, :host([href]:hover)::before, :host([href]:hover)::after { translate: none; } }
|
|
139
|
+
@media (forced-colors: active) { :host::before, :host([href])::after { display: none; } }
|
|
121
140
|
.card:has(> .cover:active) { box-shadow: var(--bk-card-shadow, var(--bk-layer-raised-shadow)); background-image: linear-gradient(var(--bk-pressed), var(--bk-pressed)); }
|
|
122
141
|
:host([tone]) .card:has(> .cover:active) { background-image: linear-gradient(var(--bk-pressed), var(--bk-pressed)), linear-gradient(var(--_bk-card-tint), var(--_bk-card-tint)); }
|
|
123
142
|
/* Selected after hover: the choice stays visible under the pointer. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as i } from "./chunks/i18n-
|
|
2
|
+
import { t as i } from "./chunks/i18n-DFfGgd3d.js";
|
|
3
3
|
import { c as a } from "./chunks/anchor-CNX3nt2F.js";
|
|
4
|
-
import { n as o, r as s } from "./chunks/bk-carousel-
|
|
5
|
-
import { t as c } from "./chunks/define-
|
|
6
|
-
import { t as l } from "./chunks/styles-
|
|
4
|
+
import { n as o, r as s } from "./chunks/bk-carousel-_dudBMVq.js";
|
|
5
|
+
import { t as c } from "./chunks/define-6OfuRn5c.js";
|
|
6
|
+
import { t as l } from "./chunks/styles-CaeyhYDA.js";
|
|
7
7
|
import "./bk-button.js";
|
|
8
8
|
import "./chunks/chevron-left-BHF34JzQ.js";
|
|
9
9
|
import "./chunks/chevron-right-CxqvZ6TS.js";
|
|
@@ -17,12 +17,13 @@ var u = class extends n {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
i18n = new i(this);
|
|
20
|
+
internals = this.attachInternals();
|
|
20
21
|
constructor() {
|
|
21
22
|
super(), this.size = "md";
|
|
22
23
|
}
|
|
23
24
|
static styles = [l, r`
|
|
24
25
|
:host { display: inline-flex; align-items: center; gap: var(--bk-carousel-controls-spacing, var(--bk-space-1)); }
|
|
25
|
-
:host(:not(
|
|
26
|
+
:host(:not(:state(linked))) { display: none; }
|
|
26
27
|
`];
|
|
27
28
|
connectedCallback() {
|
|
28
29
|
super.connectedCallback(), this.link();
|
|
@@ -38,7 +39,7 @@ var u = class extends n {
|
|
|
38
39
|
willUpdate(e) {
|
|
39
40
|
super.willUpdate(e), e.has("htmlFor") && e.get("htmlFor") !== void 0 && this.link();
|
|
40
41
|
let t = s(this);
|
|
41
|
-
|
|
42
|
+
t && t.link.state().multiple ? this.internals.states.add("linked") : this.internals.states.delete("linked");
|
|
42
43
|
}
|
|
43
44
|
updated(e) {
|
|
44
45
|
super.updated(e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/define-
|
|
3
|
-
import { t as i } from "./chunks/styles-
|
|
2
|
+
import { t as r } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as i } from "./chunks/styles-CaeyhYDA.js";
|
|
4
4
|
// dist/components/bk-carousel-item.js
|
|
5
5
|
var a = class extends t {
|
|
6
6
|
static properties = { label: {} };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as BkCarousel } from "./chunks/bk-carousel-
|
|
1
|
+
export { t as BkCarousel } from "./chunks/bk-carousel-_dudBMVq.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import "./chunks/bk-icon-
|
|
4
|
-
import { t as a } from "./chunks/define-
|
|
5
|
-
import { t as o } from "./chunks/link
|
|
6
|
-
import { t as s } from "./chunks/i18n-
|
|
7
|
-
import { t as c, x as l } from "./chunks/styles-
|
|
8
|
-
import { r as u } from "./chunks/chart-tokens-
|
|
9
|
-
import { t as d } from "./chunks/i18n-
|
|
3
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
4
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
5
|
+
import { t as o } from "./chunks/link--YWr8exL.js";
|
|
6
|
+
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
7
|
+
import { t as c, x as l } from "./chunks/styles-CaeyhYDA.js";
|
|
8
|
+
import { r as u } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
9
|
+
import { t as d } from "./chunks/i18n-DQAcbHkY.js";
|
|
10
10
|
import { a as f, r as p } from "./chunks/format-DEwvmPPd.js";
|
|
11
|
-
import { t as m } from "./chunks/summary-
|
|
11
|
+
import { t as m } from "./chunks/summary-W5s0TFqV.js";
|
|
12
12
|
import "./chunks/description-DXoJ8atg.js";
|
|
13
13
|
// dist/components/bk-chart-bar-list.js
|
|
14
14
|
u();
|