@helixui/library 1.0.0 → 1.1.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/custom-elements.json +1901 -8476
- package/dist/components/hx-accordion/hx-accordion-item.d.ts +27 -0
- package/dist/components/hx-accordion/hx-accordion-item.d.ts.map +1 -1
- package/dist/components/hx-accordion/hx-accordion.d.ts +3 -0
- package/dist/components/hx-accordion/hx-accordion.d.ts.map +1 -1
- package/dist/components/hx-accordion/index.js +1 -1
- package/dist/components/hx-action-bar/hx-action-bar.d.ts +13 -3
- package/dist/components/hx-action-bar/hx-action-bar.d.ts.map +1 -1
- package/dist/components/hx-action-bar/index.js +1 -1
- package/dist/components/hx-alert/hx-alert.d.ts +30 -0
- package/dist/components/hx-alert/hx-alert.d.ts.map +1 -1
- package/dist/components/hx-alert/hx-alert.styles.d.ts.map +1 -1
- package/dist/components/hx-alert/index.js +1 -1
- package/dist/components/hx-avatar/hx-avatar.d.ts +8 -1
- package/dist/components/hx-avatar/hx-avatar.d.ts.map +1 -1
- package/dist/components/hx-avatar/index.js +1 -1
- package/dist/components/hx-badge/hx-badge.d.ts +10 -1
- package/dist/components/hx-badge/hx-badge.d.ts.map +1 -1
- package/dist/components/hx-badge/hx-badge.styles.d.ts.map +1 -1
- package/dist/components/hx-badge/index.js +1 -1
- package/dist/components/hx-banner/hx-banner.d.ts +17 -0
- package/dist/components/hx-banner/hx-banner.d.ts.map +1 -1
- package/dist/components/hx-banner/index.js +1 -1
- package/dist/components/hx-breadcrumb/hx-breadcrumb-item.styles.d.ts.map +1 -1
- package/dist/components/hx-breadcrumb/hx-breadcrumb.d.ts +17 -2
- package/dist/components/hx-breadcrumb/hx-breadcrumb.d.ts.map +1 -1
- package/dist/components/hx-breadcrumb/index.js +1 -1
- package/dist/components/hx-button/hx-button.d.ts +6 -0
- package/dist/components/hx-button/hx-button.d.ts.map +1 -1
- package/dist/components/hx-button/hx-button.styles.d.ts.map +1 -1
- package/dist/components/hx-button/index.js +1 -1
- package/dist/components/hx-card/hx-card.d.ts +8 -0
- package/dist/components/hx-card/hx-card.d.ts.map +1 -1
- package/dist/components/hx-card/hx-card.styles.d.ts.map +1 -1
- package/dist/components/hx-card/index.js +1 -1
- package/dist/components/hx-carousel/hx-carousel-item.d.ts +2 -0
- package/dist/components/hx-carousel/hx-carousel-item.d.ts.map +1 -1
- package/dist/components/hx-carousel/hx-carousel-item.styles.d.ts +2 -0
- package/dist/components/hx-carousel/hx-carousel-item.styles.d.ts.map +1 -0
- package/dist/components/hx-carousel/hx-carousel.d.ts +27 -0
- package/dist/components/hx-carousel/hx-carousel.d.ts.map +1 -1
- package/dist/components/hx-carousel/hx-carousel.styles.d.ts.map +1 -1
- package/dist/components/hx-carousel/index.js +1 -1
- package/dist/components/hx-checkbox/hx-checkbox.d.ts +18 -2
- package/dist/components/hx-checkbox/hx-checkbox.d.ts.map +1 -1
- package/dist/components/hx-checkbox/hx-checkbox.styles.d.ts.map +1 -1
- package/dist/components/hx-checkbox/index.js +1 -1
- package/dist/components/hx-checkbox-group/hx-checkbox-group.d.ts +20 -4
- package/dist/components/hx-checkbox-group/hx-checkbox-group.d.ts.map +1 -1
- package/dist/components/hx-checkbox-group/index.js +1 -1
- package/dist/components/hx-code-snippet/hx-code-snippet.d.ts +10 -0
- package/dist/components/hx-code-snippet/hx-code-snippet.d.ts.map +1 -1
- package/dist/components/hx-code-snippet/hx-code-snippet.styles.d.ts.map +1 -1
- package/dist/components/hx-code-snippet/index.js +1 -1
- package/dist/components/hx-color-picker/hx-color-picker.d.ts +114 -12
- package/dist/components/hx-color-picker/hx-color-picker.d.ts.map +1 -1
- package/dist/components/hx-color-picker/hx-color-picker.styles.d.ts.map +1 -1
- package/dist/components/hx-color-picker/index.js +1 -1
- package/dist/components/hx-combobox/hx-combobox.d.ts +37 -2
- package/dist/components/hx-combobox/hx-combobox.d.ts.map +1 -1
- package/dist/components/hx-combobox/hx-combobox.styles.d.ts.map +1 -1
- package/dist/components/hx-combobox/index.js +1 -1
- package/dist/components/hx-copy-button/hx-copy-button.d.ts +11 -0
- package/dist/components/hx-copy-button/hx-copy-button.d.ts.map +1 -1
- package/dist/components/hx-copy-button/index.js +1 -1
- package/dist/components/hx-counter/hx-counter.d.ts +12 -3
- package/dist/components/hx-counter/hx-counter.d.ts.map +1 -1
- package/dist/components/hx-counter/index.js +1 -1
- package/dist/components/hx-data-table/hx-data-table.d.ts +27 -2
- package/dist/components/hx-data-table/hx-data-table.d.ts.map +1 -1
- package/dist/components/hx-data-table/hx-data-table.styles.d.ts.map +1 -1
- package/dist/components/hx-data-table/index.js +1 -1
- package/dist/components/hx-date-picker/hx-date-picker.d.ts +42 -3
- package/dist/components/hx-date-picker/hx-date-picker.d.ts.map +1 -1
- package/dist/components/hx-date-picker/hx-date-picker.styles.d.ts.map +1 -1
- package/dist/components/hx-date-picker/index.js +1 -1
- package/dist/components/hx-dialog/hx-dialog.d.ts +31 -4
- package/dist/components/hx-dialog/hx-dialog.d.ts.map +1 -1
- package/dist/components/hx-dialog/hx-dialog.styles.d.ts.map +1 -1
- package/dist/components/hx-dialog/index.js +1 -1
- package/dist/components/hx-divider/hx-divider.d.ts +4 -1
- package/dist/components/hx-divider/hx-divider.d.ts.map +1 -1
- package/dist/components/hx-divider/index.js +1 -1
- package/dist/components/hx-drawer/hx-drawer.d.ts +25 -3
- package/dist/components/hx-drawer/hx-drawer.d.ts.map +1 -1
- package/dist/components/hx-drawer/hx-drawer.styles.d.ts.map +1 -1
- package/dist/components/hx-drawer/index.js +1 -1
- package/dist/components/hx-dropdown/hx-dropdown.d.ts +35 -7
- package/dist/components/hx-dropdown/hx-dropdown.d.ts.map +1 -1
- package/dist/components/hx-dropdown/index.js +1 -1
- package/dist/components/hx-field/hx-field.d.ts +10 -2
- package/dist/components/hx-field/hx-field.d.ts.map +1 -1
- package/dist/components/hx-field/index.js +1 -1
- package/dist/components/hx-file-upload/hx-file-upload.d.ts +39 -2
- package/dist/components/hx-file-upload/hx-file-upload.d.ts.map +1 -1
- package/dist/components/hx-file-upload/hx-file-upload.styles.d.ts.map +1 -1
- package/dist/components/hx-file-upload/index.js +1 -1
- package/dist/components/hx-form/hx-form.d.ts.map +1 -1
- package/dist/components/hx-form/index.js +1 -1
- package/dist/components/hx-format-date/hx-format-date.d.ts +8 -0
- package/dist/components/hx-format-date/hx-format-date.d.ts.map +1 -1
- package/dist/components/hx-format-date/index.js +1 -1
- package/dist/components/hx-grid/hx-grid.d.ts +9 -3
- package/dist/components/hx-grid/hx-grid.d.ts.map +1 -1
- package/dist/components/hx-grid/index.js +1 -1
- package/dist/components/hx-help-text/index.js +1 -1
- package/dist/components/hx-icon/hx-icon.d.ts +10 -2
- package/dist/components/hx-icon/hx-icon.d.ts.map +1 -1
- package/dist/components/hx-icon/index.js +1 -1
- package/dist/components/hx-icon-button/hx-icon-button.d.ts +11 -0
- package/dist/components/hx-icon-button/hx-icon-button.d.ts.map +1 -1
- package/dist/components/hx-icon-button/hx-icon-button.styles.d.ts.map +1 -1
- package/dist/components/hx-icon-button/index.js +1 -1
- package/dist/components/hx-image/hx-image.d.ts +8 -0
- package/dist/components/hx-image/hx-image.d.ts.map +1 -1
- package/dist/components/hx-image/index.js +1 -1
- package/dist/components/hx-link/hx-link.d.ts +3 -0
- package/dist/components/hx-link/hx-link.d.ts.map +1 -1
- package/dist/components/hx-link/hx-link.styles.d.ts.map +1 -1
- package/dist/components/hx-link/index.js +1 -1
- package/dist/components/hx-list/hx-list-item.d.ts +8 -2
- package/dist/components/hx-list/hx-list-item.d.ts.map +1 -1
- package/dist/components/hx-list/hx-list-item.styles.d.ts.map +1 -1
- package/dist/components/hx-list/hx-list.d.ts +6 -2
- package/dist/components/hx-list/hx-list.d.ts.map +1 -1
- package/dist/components/hx-list/index.js +1 -1
- package/dist/components/hx-menu/hx-menu-item.d.ts +12 -0
- package/dist/components/hx-menu/hx-menu-item.d.ts.map +1 -1
- package/dist/components/hx-menu/hx-menu-item.styles.d.ts.map +1 -1
- package/dist/components/hx-menu/hx-menu.d.ts +11 -1
- package/dist/components/hx-menu/hx-menu.d.ts.map +1 -1
- package/dist/components/hx-menu/index.js +1 -1
- package/dist/components/hx-meter/hx-meter.d.ts +9 -0
- package/dist/components/hx-meter/hx-meter.d.ts.map +1 -1
- package/dist/components/hx-meter/hx-meter.styles.d.ts.map +1 -1
- package/dist/components/hx-meter/index.js +1 -1
- package/dist/components/hx-nav/hx-nav.d.ts +15 -0
- package/dist/components/hx-nav/hx-nav.d.ts.map +1 -1
- package/dist/components/hx-nav/hx-nav.styles.d.ts.map +1 -1
- package/dist/components/hx-nav/index.js +1 -1
- package/dist/components/hx-number-input/hx-number-input.d.ts +36 -1
- package/dist/components/hx-number-input/hx-number-input.d.ts.map +1 -1
- package/dist/components/hx-number-input/index.js +1 -1
- package/dist/components/hx-overflow-menu/hx-overflow-menu.d.ts +15 -0
- package/dist/components/hx-overflow-menu/hx-overflow-menu.d.ts.map +1 -1
- package/dist/components/hx-overflow-menu/hx-overflow-menu.styles.d.ts.map +1 -1
- package/dist/components/hx-overflow-menu/index.js +1 -1
- package/dist/components/hx-pagination/hx-pagination.d.ts +24 -0
- package/dist/components/hx-pagination/hx-pagination.d.ts.map +1 -1
- package/dist/components/hx-pagination/hx-pagination.styles.d.ts.map +1 -1
- package/dist/components/hx-pagination/index.js +1 -1
- package/dist/components/hx-popover/hx-popover.d.ts +94 -11
- package/dist/components/hx-popover/hx-popover.d.ts.map +1 -1
- package/dist/components/hx-popover/hx-popover.styles.d.ts.map +1 -1
- package/dist/components/hx-popover/index.js +1 -1
- package/dist/components/hx-popup/hx-popup.d.ts +8 -0
- package/dist/components/hx-popup/hx-popup.d.ts.map +1 -1
- package/dist/components/hx-popup/hx-popup.styles.d.ts.map +1 -1
- package/dist/components/hx-popup/index.js +1 -1
- package/dist/components/hx-progress-bar/hx-progress-bar.d.ts +10 -2
- package/dist/components/hx-progress-bar/hx-progress-bar.d.ts.map +1 -1
- package/dist/components/hx-progress-bar/hx-progress-bar.styles.d.ts.map +1 -1
- package/dist/components/hx-progress-bar/index.js +1 -1
- package/dist/components/hx-progress-ring/hx-progress-ring.d.ts +8 -2
- package/dist/components/hx-progress-ring/hx-progress-ring.d.ts.map +1 -1
- package/dist/components/hx-progress-ring/index.js +1 -1
- package/dist/components/hx-prose/hx-prose.d.ts +5 -3
- package/dist/components/hx-prose/hx-prose.d.ts.map +1 -1
- package/dist/components/hx-prose/index.js +1 -1
- package/dist/components/hx-radio-group/hx-radio-group.d.ts.map +1 -1
- package/dist/components/hx-radio-group/hx-radio.d.ts +4 -2
- package/dist/components/hx-radio-group/hx-radio.d.ts.map +1 -1
- package/dist/components/hx-radio-group/index.js +1 -1
- package/dist/components/hx-rating/hx-rating.d.ts +54 -2
- package/dist/components/hx-rating/hx-rating.d.ts.map +1 -1
- package/dist/components/hx-rating/index.js +1 -1
- package/dist/components/hx-select/hx-select.d.ts +22 -2
- package/dist/components/hx-select/hx-select.d.ts.map +1 -1
- package/dist/components/hx-select/hx-select.styles.d.ts.map +1 -1
- package/dist/components/hx-select/index.js +1 -1
- package/dist/components/hx-side-nav/hx-nav-item.d.ts +6 -0
- package/dist/components/hx-side-nav/hx-nav-item.d.ts.map +1 -1
- package/dist/components/hx-side-nav/hx-nav-item.styles.d.ts.map +1 -1
- package/dist/components/hx-side-nav/hx-side-nav.d.ts +6 -1
- package/dist/components/hx-side-nav/hx-side-nav.d.ts.map +1 -1
- package/dist/components/hx-side-nav/hx-side-nav.styles.d.ts.map +1 -1
- package/dist/components/hx-side-nav/index.js +1 -1
- package/dist/components/hx-slider/hx-slider.d.ts +22 -1
- package/dist/components/hx-slider/hx-slider.d.ts.map +1 -1
- package/dist/components/hx-slider/hx-slider.styles.d.ts.map +1 -1
- package/dist/components/hx-slider/index.js +1 -1
- package/dist/components/hx-spinner/hx-spinner.d.ts +3 -1
- package/dist/components/hx-spinner/hx-spinner.d.ts.map +1 -1
- package/dist/components/hx-spinner/index.js +1 -1
- package/dist/components/hx-split-button/hx-split-button.d.ts +12 -0
- package/dist/components/hx-split-button/hx-split-button.d.ts.map +1 -1
- package/dist/components/hx-split-button/index.js +1 -1
- package/dist/components/hx-split-panel/hx-split-panel.d.ts +72 -13
- package/dist/components/hx-split-panel/hx-split-panel.d.ts.map +1 -1
- package/dist/components/hx-split-panel/hx-split-panel.styles.d.ts.map +1 -1
- package/dist/components/hx-split-panel/index.js +1 -1
- package/dist/components/hx-stack/index.js +1 -1
- package/dist/components/hx-stat/hx-stat.d.ts +5 -1
- package/dist/components/hx-stat/hx-stat.d.ts.map +1 -1
- package/dist/components/hx-stat/index.js +1 -1
- package/dist/components/hx-status-indicator/hx-status-indicator.d.ts +13 -12
- package/dist/components/hx-status-indicator/hx-status-indicator.d.ts.map +1 -1
- package/dist/components/hx-status-indicator/index.js +1 -1
- package/dist/components/hx-steps/hx-step.d.ts +7 -9
- package/dist/components/hx-steps/hx-step.d.ts.map +1 -1
- package/dist/components/hx-steps/hx-step.styles.d.ts.map +1 -1
- package/dist/components/hx-steps/hx-steps.d.ts +3 -3
- package/dist/components/hx-steps/hx-steps.d.ts.map +1 -1
- package/dist/components/hx-steps/index.js +1 -1
- package/dist/components/hx-switch/hx-switch.d.ts +21 -1
- package/dist/components/hx-switch/hx-switch.d.ts.map +1 -1
- package/dist/components/hx-switch/index.js +1 -1
- package/dist/components/hx-table/hx-table.d.ts +7 -2
- package/dist/components/hx-table/hx-table.d.ts.map +1 -1
- package/dist/components/hx-table/hx-table.styles.d.ts.map +1 -1
- package/dist/components/hx-table/hx-th.d.ts +4 -0
- package/dist/components/hx-table/hx-th.d.ts.map +1 -1
- package/dist/components/hx-table/index.js +1 -1
- package/dist/components/hx-tabs/hx-tab.d.ts +3 -0
- package/dist/components/hx-tabs/hx-tab.d.ts.map +1 -1
- package/dist/components/hx-tabs/hx-tabs.d.ts +6 -0
- package/dist/components/hx-tabs/hx-tabs.d.ts.map +1 -1
- package/dist/components/hx-tabs/index.js +1 -1
- package/dist/components/hx-tag/hx-tag.d.ts +4 -0
- package/dist/components/hx-tag/hx-tag.d.ts.map +1 -1
- package/dist/components/hx-tag/hx-tag.styles.d.ts.map +1 -1
- package/dist/components/hx-tag/index.js +1 -1
- package/dist/components/hx-text/hx-text.d.ts +1 -0
- package/dist/components/hx-text/hx-text.d.ts.map +1 -1
- package/dist/components/hx-text/index.js +1 -1
- package/dist/components/hx-text-input/hx-text-input.d.ts +9 -4
- package/dist/components/hx-text-input/hx-text-input.d.ts.map +1 -1
- package/dist/components/hx-text-input/index.js +1 -1
- package/dist/components/hx-textarea/hx-textarea.d.ts +9 -3
- package/dist/components/hx-textarea/hx-textarea.d.ts.map +1 -1
- package/dist/components/hx-textarea/hx-textarea.styles.d.ts.map +1 -1
- package/dist/components/hx-textarea/index.js +1 -1
- package/dist/components/hx-theme/hx-theme.d.ts +2 -2
- package/dist/components/hx-theme/hx-theme.d.ts.map +1 -1
- package/dist/components/hx-time-picker/hx-time-picker.d.ts +102 -22
- package/dist/components/hx-time-picker/hx-time-picker.d.ts.map +1 -1
- package/dist/components/hx-time-picker/hx-time-picker.styles.d.ts.map +1 -1
- package/dist/components/hx-time-picker/index.js +1 -1
- package/dist/components/hx-toast/hx-toast.d.ts +18 -0
- package/dist/components/hx-toast/hx-toast.d.ts.map +1 -1
- package/dist/components/hx-toast/hx-toast.styles.d.ts.map +1 -1
- package/dist/components/hx-toast/index.js +1 -1
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts +23 -0
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts.map +1 -1
- package/dist/components/hx-toggle-button/index.js +1 -1
- package/dist/components/hx-tooltip/hx-tooltip.d.ts +57 -0
- package/dist/components/hx-tooltip/hx-tooltip.d.ts.map +1 -1
- package/dist/components/hx-tooltip/index.js +1 -1
- package/dist/components/hx-top-nav/hx-top-nav.d.ts +4 -0
- package/dist/components/hx-top-nav/hx-top-nav.d.ts.map +1 -1
- package/dist/components/hx-top-nav/index.js +1 -1
- package/dist/components/hx-tree-view/hx-tree-item.d.ts +13 -1
- package/dist/components/hx-tree-view/hx-tree-item.d.ts.map +1 -1
- package/dist/components/hx-tree-view/hx-tree-item.styles.d.ts.map +1 -1
- package/dist/components/hx-tree-view/hx-tree-view.d.ts +12 -0
- package/dist/components/hx-tree-view/hx-tree-view.d.ts.map +1 -1
- package/dist/components/hx-tree-view/index.js +1 -1
- package/dist/index.js +70 -70
- package/dist/shared/{hx-accordion-Cyswa6J3.js → hx-accordion-D1kFhdeQ.js} +68 -39
- package/dist/shared/hx-accordion-D1kFhdeQ.js.map +1 -0
- package/dist/shared/{hx-action-bar-we_WJety.js → hx-action-bar-D4bulGQP.js} +38 -31
- package/dist/shared/hx-action-bar-D4bulGQP.js.map +1 -0
- package/dist/shared/{hx-alert-Cg-zxRiU.js → hx-alert-K5F8KeqI.js} +123 -40
- package/dist/shared/hx-alert-K5F8KeqI.js.map +1 -0
- package/dist/shared/{hx-avatar-Cep6Urm3.js → hx-avatar-Cun-O99h.js} +5 -1
- package/dist/shared/hx-avatar-Cun-O99h.js.map +1 -0
- package/dist/shared/{hx-badge-CjT0d8NK.js → hx-badge-CsFd2xtw.js} +83 -47
- package/dist/shared/hx-badge-CsFd2xtw.js.map +1 -0
- package/dist/shared/{hx-banner-lxAIJ2kR.js → hx-banner-BTV-X2xF.js} +58 -42
- package/dist/shared/hx-banner-BTV-X2xF.js.map +1 -0
- package/dist/shared/{hx-breadcrumb-item-C0rz0fzV.js → hx-breadcrumb-item-4IwaLgaO.js} +39 -23
- package/dist/shared/hx-breadcrumb-item-4IwaLgaO.js.map +1 -0
- package/dist/shared/{hx-button-Cbhqpm5i.js → hx-button-7k-KeCYU.js} +29 -15
- package/dist/shared/hx-button-7k-KeCYU.js.map +1 -0
- package/dist/shared/{hx-card-Bg4W4uXC.js → hx-card-0hT3G5hi.js} +24 -13
- package/dist/shared/hx-card-0hT3G5hi.js.map +1 -0
- package/dist/shared/{hx-carousel-item-BKpmFbUT.js → hx-carousel-item-DgeYyYZJ.js} +138 -107
- package/dist/shared/hx-carousel-item-DgeYyYZJ.js.map +1 -0
- package/dist/shared/{hx-checkbox-BMayOpAM.js → hx-checkbox-BvjO-O41.js} +15 -6
- package/dist/shared/hx-checkbox-BvjO-O41.js.map +1 -0
- package/dist/shared/{hx-checkbox-group-ydUdV9Sx.js → hx-checkbox-group-Z5VvWzcj.js} +50 -37
- package/dist/shared/hx-checkbox-group-Z5VvWzcj.js.map +1 -0
- package/dist/shared/{hx-code-snippet-B4hV7rWG.js → hx-code-snippet-DqzPkH4K.js} +27 -11
- package/dist/shared/hx-code-snippet-DqzPkH4K.js.map +1 -0
- package/dist/shared/hx-color-picker-Da8z6AlQ.js +596 -0
- package/dist/shared/hx-color-picker-Da8z6AlQ.js.map +1 -0
- package/dist/shared/{hx-combobox-BBi3izKJ.js → hx-combobox-CivfelTS.js} +67 -430
- package/dist/shared/hx-combobox-CivfelTS.js.map +1 -0
- package/dist/shared/{hx-copy-button-CLBA31to.js → hx-copy-button--0dymSvw.js} +9 -1
- package/dist/shared/{hx-copy-button-CLBA31to.js.map → hx-copy-button--0dymSvw.js.map} +1 -1
- package/dist/shared/{hx-counter-D-1NXzGs.js → hx-counter-Duf00H7p.js} +58 -49
- package/dist/shared/hx-counter-Duf00H7p.js.map +1 -0
- package/dist/shared/{hx-data-table-DNiDVWR2.js → hx-data-table-DujB9hSE.js} +173 -129
- package/dist/shared/hx-data-table-DujB9hSE.js.map +1 -0
- package/dist/shared/{hx-date-picker-D7yCK0nk.js → hx-date-picker-C8d2HtRV.js} +142 -505
- package/dist/shared/hx-date-picker-C8d2HtRV.js.map +1 -0
- package/dist/shared/{hx-dialog-Z7Ou_AZ9.js → hx-dialog-DkUSnVgw.js} +76 -49
- package/dist/shared/hx-dialog-DkUSnVgw.js.map +1 -0
- package/dist/shared/{hx-divider-XgWIz4Mr.js → hx-divider-DNNs4e8q.js} +2 -1
- package/dist/shared/{hx-divider-XgWIz4Mr.js.map → hx-divider-DNNs4e8q.js.map} +1 -1
- package/dist/shared/{hx-drawer-Dk-_xzy0.js → hx-drawer-CJcRZcns.js} +102 -66
- package/dist/shared/hx-drawer-CJcRZcns.js.map +1 -0
- package/dist/shared/{hx-dropdown-DnjLnkTj.js → hx-dropdown-Bo0KTM1A.js} +56 -47
- package/dist/shared/hx-dropdown-Bo0KTM1A.js.map +1 -0
- package/dist/shared/{hx-field-CDP8EXuj.js → hx-field-3MmzJ4kZ.js} +21 -13
- package/dist/shared/hx-field-3MmzJ4kZ.js.map +1 -0
- package/dist/shared/{hx-file-upload-CUORgnKc.js → hx-file-upload-ByjAgfNy.js} +131 -86
- package/dist/shared/hx-file-upload-ByjAgfNy.js.map +1 -0
- package/dist/shared/hx-form-BpS6v3Iu.js +258 -0
- package/dist/shared/hx-form-BpS6v3Iu.js.map +1 -0
- package/dist/shared/{hx-format-date-BsVr8gpD.js → hx-format-date-BdnWV2kX.js} +7 -1
- package/dist/shared/hx-format-date-BdnWV2kX.js.map +1 -0
- package/dist/shared/{hx-grid-BsDBCTbt.js → hx-grid-gEjuF0cR.js} +25 -18
- package/dist/shared/hx-grid-gEjuF0cR.js.map +1 -0
- package/dist/shared/{hx-help-text-DaOPN1iB.js → hx-help-text-BAcEGRUE.js} +2 -2
- package/dist/shared/{hx-help-text-DaOPN1iB.js.map → hx-help-text-BAcEGRUE.js.map} +1 -1
- package/dist/shared/{hx-icon--xsJztDh.js → hx-icon-CP6OnLoM.js} +6 -1
- package/dist/shared/hx-icon-CP6OnLoM.js.map +1 -0
- package/dist/shared/{hx-icon-button-C83bCR0K.js → hx-icon-button-DzH_bRtC.js} +53 -29
- package/dist/shared/hx-icon-button-DzH_bRtC.js.map +1 -0
- package/dist/shared/{hx-image-xyb_tHCR.js → hx-image-C6pGiI6c.js} +6 -1
- package/dist/shared/hx-image-C6pGiI6c.js.map +1 -0
- package/dist/shared/{hx-link-DfNy_UU8.js → hx-link-Tmk_YPvW.js} +46 -37
- package/dist/shared/hx-link-Tmk_YPvW.js.map +1 -0
- package/dist/shared/{hx-list-CdRNgeoP.js → hx-list-DwInEX2H.js} +63 -37
- package/dist/shared/hx-list-DwInEX2H.js.map +1 -0
- package/dist/shared/{hx-menu-divider-11Dp2VfM.js → hx-menu-divider-DR4G_rqw.js} +93 -56
- package/dist/shared/hx-menu-divider-DR4G_rqw.js.map +1 -0
- package/dist/shared/hx-meter-uXkTZq-W.js +238 -0
- package/dist/shared/hx-meter-uXkTZq-W.js.map +1 -0
- package/dist/shared/{hx-nav-DSpwWYUX.js → hx-nav-3JsN2Oak.js} +94 -75
- package/dist/shared/hx-nav-3JsN2Oak.js.map +1 -0
- package/dist/shared/{hx-nav-item-D54-5eUM.js → hx-nav-item-D3EJatzc.js} +40 -16
- package/dist/shared/hx-nav-item-D3EJatzc.js.map +1 -0
- package/dist/shared/{hx-number-input-BP6TIA92.js → hx-number-input-CAAibZ8X.js} +35 -7
- package/dist/shared/hx-number-input-CAAibZ8X.js.map +1 -0
- package/dist/shared/{hx-overflow-menu-C7k5wlZy.js → hx-overflow-menu-2kgOJ_ht.js} +86 -66
- package/dist/shared/hx-overflow-menu-2kgOJ_ht.js.map +1 -0
- package/dist/shared/{hx-pagination-BQ0cLTuB.js → hx-pagination-DBs-vmSv.js} +127 -103
- package/dist/shared/hx-pagination-DBs-vmSv.js.map +1 -0
- package/dist/shared/hx-popover-DxE67miP.js +274 -0
- package/dist/shared/hx-popover-DxE67miP.js.map +1 -0
- package/dist/shared/{hx-popup-CYf9Q5sj.js → hx-popup-Dg6n_PbY.js} +13 -1
- package/dist/shared/hx-popup-Dg6n_PbY.js.map +1 -0
- package/dist/shared/{hx-progress-bar-C_mdPVF-.js → hx-progress-bar-Dm_EHyng.js} +101 -73
- package/dist/shared/hx-progress-bar-Dm_EHyng.js.map +1 -0
- package/dist/shared/{hx-progress-ring-BHJBaXNk.js → hx-progress-ring-DpxBDD5d.js} +35 -28
- package/dist/shared/hx-progress-ring-DpxBDD5d.js.map +1 -0
- package/dist/shared/hx-prose-Ml_L2zje.js +59 -0
- package/dist/shared/hx-prose-Ml_L2zje.js.map +1 -0
- package/dist/shared/{hx-radio-Bqyi8re3.js → hx-radio-BywgVSEu.js} +16 -15
- package/dist/shared/hx-radio-BywgVSEu.js.map +1 -0
- package/dist/shared/{hx-rating-Y_t7Z4qb.js → hx-rating-CUWBQ0fZ.js} +131 -64
- package/dist/shared/hx-rating-CUWBQ0fZ.js.map +1 -0
- package/dist/shared/{hx-select-BBae2LqN.js → hx-select-BwDwxk-M.js} +110 -171
- package/dist/shared/hx-select-BwDwxk-M.js.map +1 -0
- package/dist/shared/hx-skeleton-BHvALyd7.js.map +1 -1
- package/dist/shared/{hx-slider-CpnxH2UP.js → hx-slider-D_0EKJyk.js} +25 -8
- package/dist/shared/hx-slider-D_0EKJyk.js.map +1 -0
- package/dist/shared/{hx-spinner-BOApJ-g9.js → hx-spinner-DMn4SChS.js} +35 -28
- package/dist/shared/hx-spinner-DMn4SChS.js.map +1 -0
- package/dist/shared/{hx-split-button-BvwoG8h2.js → hx-split-button-CypgLXw1.js} +23 -12
- package/dist/shared/{hx-split-button-BvwoG8h2.js.map → hx-split-button-CypgLXw1.js.map} +1 -1
- package/dist/shared/{hx-split-panel-Cxkeauwe.js → hx-split-panel-BPMWKPGu.js} +74 -42
- package/dist/shared/hx-split-panel-BPMWKPGu.js.map +1 -0
- package/dist/shared/{hx-stack-CfoW7jU7.js → hx-stack-BStY1RmV.js} +29 -29
- package/dist/shared/hx-stack-BStY1RmV.js.map +1 -0
- package/dist/shared/{hx-stat-C2wfph8W.js → hx-stat-CHntLHJM.js} +18 -10
- package/dist/shared/hx-stat-CHntLHJM.js.map +1 -0
- package/dist/shared/{hx-status-indicator-oYWOkWlD.js → hx-status-indicator-C1BwEvUw.js} +15 -12
- package/dist/shared/hx-status-indicator-C1BwEvUw.js.map +1 -0
- package/dist/shared/{hx-step-DYoIumpR.js → hx-step-BIVWSPxd.js} +45 -33
- package/dist/shared/hx-step-BIVWSPxd.js.map +1 -0
- package/dist/shared/{hx-switch-DkKchcuP.js → hx-switch-BgX8kuWt.js} +12 -3
- package/dist/shared/hx-switch-BgX8kuWt.js.map +1 -0
- package/dist/shared/{hx-tab-panel-CHB0u1zF.js → hx-tab-panel-DhOq67jj.js} +65 -53
- package/dist/shared/hx-tab-panel-DhOq67jj.js.map +1 -0
- package/dist/shared/{hx-tag-SJJtMlOS.js → hx-tag-CzOTDcXI.js} +81 -55
- package/dist/shared/hx-tag-CzOTDcXI.js.map +1 -0
- package/dist/shared/{hx-td-CVwCGBYf.js → hx-td-h6oeW6YC.js} +43 -41
- package/dist/shared/hx-td-h6oeW6YC.js.map +1 -0
- package/dist/shared/{hx-text-NjKoQATI.js → hx-text-DTXjiviE.js} +2 -1
- package/dist/shared/{hx-text-NjKoQATI.js.map → hx-text-DTXjiviE.js.map} +1 -1
- package/dist/shared/{hx-text-input-BrCjo4fJ.js → hx-text-input-CqEdDHMU.js} +87 -70
- package/dist/shared/hx-text-input-CqEdDHMU.js.map +1 -0
- package/dist/shared/{hx-textarea-BsQdB1Rk.js → hx-textarea-BgX7rxyo.js} +21 -12
- package/dist/shared/hx-textarea-BgX7rxyo.js.map +1 -0
- package/dist/shared/hx-theme-6GDoUG8j.js.map +1 -1
- package/dist/shared/{hx-time-picker-DRRAFuVd.js → hx-time-picker-DmLu7WUC.js} +77 -274
- package/dist/shared/hx-time-picker-DmLu7WUC.js.map +1 -0
- package/dist/shared/{hx-toggle-button-D4F1soEM.js → hx-toggle-button-D1jpDvSA.js} +75 -38
- package/dist/shared/hx-toggle-button-D1jpDvSA.js.map +1 -0
- package/dist/shared/{hx-tooltip-Bk1iQRHs.js → hx-tooltip-kh7QFPKu.js} +66 -49
- package/dist/shared/hx-tooltip-kh7QFPKu.js.map +1 -0
- package/dist/shared/{hx-top-nav-DzW7XLv-.js → hx-top-nav-DYlnzDaU.js} +4 -2
- package/dist/shared/{hx-top-nav-DzW7XLv-.js.map → hx-top-nav-DYlnzDaU.js.map} +1 -1
- package/dist/shared/{hx-tree-item-DdH6RbMs.js → hx-tree-item-BP6UF_H1.js} +137 -101
- package/dist/shared/hx-tree-item-BP6UF_H1.js.map +1 -0
- package/dist/shared/toast-factory-DTy-qN8r.js +521 -0
- package/dist/shared/toast-factory-DTy-qN8r.js.map +1 -0
- package/dist/styles/shared-field.styles.d.ts +6 -0
- package/dist/styles/shared-field.styles.d.ts.map +1 -0
- package/package.json +2 -5
- package/dist/shared/hx-accordion-Cyswa6J3.js.map +0 -1
- package/dist/shared/hx-action-bar-we_WJety.js.map +0 -1
- package/dist/shared/hx-alert-Cg-zxRiU.js.map +0 -1
- package/dist/shared/hx-avatar-Cep6Urm3.js.map +0 -1
- package/dist/shared/hx-badge-CjT0d8NK.js.map +0 -1
- package/dist/shared/hx-banner-lxAIJ2kR.js.map +0 -1
- package/dist/shared/hx-breadcrumb-item-C0rz0fzV.js.map +0 -1
- package/dist/shared/hx-button-Cbhqpm5i.js.map +0 -1
- package/dist/shared/hx-card-Bg4W4uXC.js.map +0 -1
- package/dist/shared/hx-carousel-item-BKpmFbUT.js.map +0 -1
- package/dist/shared/hx-checkbox-BMayOpAM.js.map +0 -1
- package/dist/shared/hx-checkbox-group-ydUdV9Sx.js.map +0 -1
- package/dist/shared/hx-code-snippet-B4hV7rWG.js.map +0 -1
- package/dist/shared/hx-color-picker-BvfJ_h16.js +0 -803
- package/dist/shared/hx-color-picker-BvfJ_h16.js.map +0 -1
- package/dist/shared/hx-combobox-BBi3izKJ.js.map +0 -1
- package/dist/shared/hx-counter-D-1NXzGs.js.map +0 -1
- package/dist/shared/hx-data-table-DNiDVWR2.js.map +0 -1
- package/dist/shared/hx-date-picker-D7yCK0nk.js.map +0 -1
- package/dist/shared/hx-dialog-Z7Ou_AZ9.js.map +0 -1
- package/dist/shared/hx-drawer-Dk-_xzy0.js.map +0 -1
- package/dist/shared/hx-dropdown-DnjLnkTj.js.map +0 -1
- package/dist/shared/hx-field-CDP8EXuj.js.map +0 -1
- package/dist/shared/hx-file-upload-CUORgnKc.js.map +0 -1
- package/dist/shared/hx-form-BFv_N1dm.js +0 -1272
- package/dist/shared/hx-form-BFv_N1dm.js.map +0 -1
- package/dist/shared/hx-format-date-BsVr8gpD.js.map +0 -1
- package/dist/shared/hx-grid-BsDBCTbt.js.map +0 -1
- package/dist/shared/hx-icon--xsJztDh.js.map +0 -1
- package/dist/shared/hx-icon-button-C83bCR0K.js.map +0 -1
- package/dist/shared/hx-image-xyb_tHCR.js.map +0 -1
- package/dist/shared/hx-link-DfNy_UU8.js.map +0 -1
- package/dist/shared/hx-list-CdRNgeoP.js.map +0 -1
- package/dist/shared/hx-menu-divider-11Dp2VfM.js.map +0 -1
- package/dist/shared/hx-meter-UinDQjl6.js +0 -190
- package/dist/shared/hx-meter-UinDQjl6.js.map +0 -1
- package/dist/shared/hx-nav-DSpwWYUX.js.map +0 -1
- package/dist/shared/hx-nav-item-D54-5eUM.js.map +0 -1
- package/dist/shared/hx-number-input-BP6TIA92.js.map +0 -1
- package/dist/shared/hx-overflow-menu-C7k5wlZy.js.map +0 -1
- package/dist/shared/hx-pagination-BQ0cLTuB.js.map +0 -1
- package/dist/shared/hx-popover-BQsgrJCW.js +0 -226
- package/dist/shared/hx-popover-BQsgrJCW.js.map +0 -1
- package/dist/shared/hx-popup-CYf9Q5sj.js.map +0 -1
- package/dist/shared/hx-progress-bar-C_mdPVF-.js.map +0 -1
- package/dist/shared/hx-progress-ring-BHJBaXNk.js.map +0 -1
- package/dist/shared/hx-prose-DZh2KrMb.js +0 -876
- package/dist/shared/hx-prose-DZh2KrMb.js.map +0 -1
- package/dist/shared/hx-radio-Bqyi8re3.js.map +0 -1
- package/dist/shared/hx-rating-Y_t7Z4qb.js.map +0 -1
- package/dist/shared/hx-select-BBae2LqN.js.map +0 -1
- package/dist/shared/hx-slider-CpnxH2UP.js.map +0 -1
- package/dist/shared/hx-spinner-BOApJ-g9.js.map +0 -1
- package/dist/shared/hx-split-panel-Cxkeauwe.js.map +0 -1
- package/dist/shared/hx-stack-CfoW7jU7.js.map +0 -1
- package/dist/shared/hx-stat-C2wfph8W.js.map +0 -1
- package/dist/shared/hx-status-indicator-oYWOkWlD.js.map +0 -1
- package/dist/shared/hx-step-DYoIumpR.js.map +0 -1
- package/dist/shared/hx-switch-DkKchcuP.js.map +0 -1
- package/dist/shared/hx-tab-panel-CHB0u1zF.js.map +0 -1
- package/dist/shared/hx-tag-SJJtMlOS.js.map +0 -1
- package/dist/shared/hx-td-CVwCGBYf.js.map +0 -1
- package/dist/shared/hx-text-input-BrCjo4fJ.js.map +0 -1
- package/dist/shared/hx-textarea-BsQdB1Rk.js.map +0 -1
- package/dist/shared/hx-time-picker-DRRAFuVd.js.map +0 -1
- package/dist/shared/hx-toggle-button-D4F1soEM.js.map +0 -1
- package/dist/shared/hx-tooltip-Bk1iQRHs.js.map +0 -1
- package/dist/shared/hx-tree-item-DdH6RbMs.js.map +0 -1
- package/dist/shared/toast-factory-B8jicczW.js +0 -426
- package/dist/shared/toast-factory-B8jicczW.js.map +0 -1
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { Placement } from '@floating-ui/dom';
|
|
3
|
+
/**
|
|
4
|
+
* A tooltip that displays contextual help text on hover or focus.
|
|
5
|
+
*
|
|
6
|
+
* @summary Contextual help text and abbreviations with smart positioning.
|
|
7
|
+
*
|
|
8
|
+
* @tag hx-tooltip
|
|
9
|
+
*
|
|
10
|
+
* @slot - Default slot for the trigger element.
|
|
11
|
+
* @slot content - Tooltip content to display.
|
|
12
|
+
*
|
|
13
|
+
* @csspart tooltip - The tooltip container element.
|
|
14
|
+
* @csspart arrow - The arrow indicator element.
|
|
15
|
+
*
|
|
16
|
+
* @cssprop [--hx-tooltip-bg=var(--hx-color-neutral-900)] - Tooltip background color.
|
|
17
|
+
* @cssprop [--hx-tooltip-color=var(--hx-color-neutral-50)] - Tooltip text color.
|
|
18
|
+
* @cssprop [--hx-tooltip-font-size=var(--hx-font-size-xs)] - Tooltip font size.
|
|
19
|
+
* @cssprop [--hx-tooltip-max-width=280px] - Maximum tooltip width.
|
|
20
|
+
* @cssprop [--hx-tooltip-padding] - Tooltip padding.
|
|
21
|
+
* @cssprop [--hx-tooltip-border-radius=var(--hx-border-radius-sm)] - Tooltip border radius.
|
|
22
|
+
* @cssprop [--hx-tooltip-shadow] - Tooltip box shadow.
|
|
23
|
+
* @cssprop [--hx-tooltip-z-index=9999] - Tooltip z-index.
|
|
24
|
+
* @cssprop [--hx-tooltip-transition-duration=0.15s] - Show/hide transition duration.
|
|
25
|
+
* @cssprop [--hx-tooltip-arrow-size=8px] - Size of the arrow indicator.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```html
|
|
29
|
+
* <hx-tooltip>
|
|
30
|
+
* <button>Hover me</button>
|
|
31
|
+
* <span slot="content">Helpful context here</span>
|
|
32
|
+
* </hx-tooltip>
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @example Drupal/Twig usage
|
|
36
|
+
* ```twig
|
|
37
|
+
* <hx-tooltip>
|
|
38
|
+
* <button type="button">{{ trigger_label }}</button>
|
|
39
|
+
* <span slot="content">{{ tooltip_text }}</span>
|
|
40
|
+
* </hx-tooltip>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
3
43
|
export declare class HelixTooltip extends LitElement {
|
|
4
44
|
static styles: import('lit').CSSResult[];
|
|
5
45
|
/**
|
|
@@ -27,6 +67,16 @@ export declare class HelixTooltip extends LitElement {
|
|
|
27
67
|
private _hideTimer;
|
|
28
68
|
/** @internal */
|
|
29
69
|
private readonly _tooltipId;
|
|
70
|
+
/** @internal */
|
|
71
|
+
private _defaultSlot;
|
|
72
|
+
/** @internal */
|
|
73
|
+
private _contentSlot;
|
|
74
|
+
/** @internal */
|
|
75
|
+
private _triggerWrapper;
|
|
76
|
+
/** @internal */
|
|
77
|
+
private _tooltipEl;
|
|
78
|
+
/** @internal */
|
|
79
|
+
private _arrowEl;
|
|
30
80
|
/**
|
|
31
81
|
* Visually-hidden description element in light DOM.
|
|
32
82
|
* Necessary because aria-describedby cannot cross Shadow DOM boundaries —
|
|
@@ -38,12 +88,19 @@ export declare class HelixTooltip extends LitElement {
|
|
|
38
88
|
connectedCallback(): void;
|
|
39
89
|
disconnectedCallback(): void;
|
|
40
90
|
firstUpdated(): void;
|
|
91
|
+
/** @internal */
|
|
41
92
|
private _setupTriggerAria;
|
|
93
|
+
/** @internal */
|
|
42
94
|
private _scheduleShow;
|
|
95
|
+
/** @internal */
|
|
43
96
|
private _scheduleHide;
|
|
97
|
+
/** @internal */
|
|
44
98
|
private _show;
|
|
99
|
+
/** @internal */
|
|
45
100
|
private _hide;
|
|
101
|
+
/** @internal */
|
|
46
102
|
private _clearTimers;
|
|
103
|
+
/** @internal */
|
|
47
104
|
private _updatePosition;
|
|
48
105
|
/** @internal */
|
|
49
106
|
private _handleKeydown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/hx-tooltip/hx-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,EAA+C,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"hx-tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/hx-tooltip/hx-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,EAA+C,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,qBACa,YAAa,SAAQ,UAAU;IAC1C,OAAgB,MAAM,4BAAqC;IAE3D;;;;;OAKG;IAEH,SAAS,EAAE,SAAS,CAAS;IAE7B;;;OAGG;IAEH,SAAS,SAAO;IAEhB;;;OAGG;IAEH,SAAS,SAAO;IAEhB,gBAAgB;IACP,OAAO,CAAC,QAAQ,CAAS;IAElC,gBAAgB;IAChB,OAAO,CAAC,UAAU,CAA8C;IAChE,gBAAgB;IAChB,OAAO,CAAC,UAAU,CAA8C;IAEhE,gBAAgB;IAChB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAqC;IAEhE,gBAAgB;IACW,OAAO,CAAC,YAAY,CAA0B;IACzE,gBAAgB;IACe,OAAO,CAAC,YAAY,CAA0B;IAC7E,gBAAgB;IACW,OAAO,CAAC,eAAe,CAAsB;IACxE,gBAAgB;IACW,OAAO,CAAC,UAAU,CAAsB;IACnE,gBAAgB;IACS,OAAO,CAAC,QAAQ,CAAsB;IAE/D;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB,CAAgC;IAInD,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAQ5B,YAAY,IAAI,IAAI;IAM7B,gBAAgB;IAChB,OAAO,CAAC,iBAAiB;IAoCzB,gBAAgB;IAChB,OAAO,CAAC,aAAa;IAOrB,gBAAgB;IAChB,OAAO,CAAC,aAAa;IAOrB,gBAAgB;YACF,KAAK;IAMnB,gBAAgB;IAChB,OAAO,CAAC,KAAK;IAIb,gBAAgB;IAChB,OAAO,CAAC,YAAY;IAapB,gBAAgB;YACF,eAAe;IAsC7B,gBAAgB;IAChB,OAAO,CAAC,cAAc,CAMpB;IAEF;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;IAavB,MAAM;CAyBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,YAAY,CAAC;KAC5B;CACF"}
|
|
@@ -45,11 +45,15 @@ export declare class HelixTopNav extends LitElement {
|
|
|
45
45
|
*/
|
|
46
46
|
label: string;
|
|
47
47
|
/** Whether the mobile collapsible menu is currently open. */
|
|
48
|
+
/** @internal */
|
|
48
49
|
private _mobileOpen;
|
|
49
50
|
connectedCallback(): void;
|
|
50
51
|
disconnectedCallback(): void;
|
|
52
|
+
/** @internal */
|
|
51
53
|
private _handleMobileToggle;
|
|
54
|
+
/** @internal */
|
|
52
55
|
private _handleKeydown;
|
|
56
|
+
/** @internal */
|
|
53
57
|
private _renderHamburgerIcon;
|
|
54
58
|
render(): import('lit').TemplateResult<1>;
|
|
55
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-top-nav.d.ts","sourceRoot":"","sources":["../../../src/components/hx-top-nav/hx-top-nav.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,OAAgB,MAAM,4BAAoC;IAI1D;;;OAGG;IAEH,MAAM,UAAS;IAEf;;;OAGG;IAEH,KAAK,SAAqB;IAI1B,6DAA6D;
|
|
1
|
+
{"version":3,"file":"hx-top-nav.d.ts","sourceRoot":"","sources":["../../../src/components/hx-top-nav/hx-top-nav.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,OAAgB,MAAM,4BAAoC;IAI1D;;;OAGG;IAEH,MAAM,UAAS;IAEf;;;OAGG;IAEH,KAAK,SAAqB;IAI1B,6DAA6D;IAC7D,gBAAgB;IACP,OAAO,CAAC,WAAW,CAAS;IAI5B,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAOrC,gBAAgB;IAChB,OAAO,CAAC,mBAAmB;IAyC3B,gBAAgB;IAChB,OAAO,CAAC,cAAc,CAapB;IAIF,gBAAgB;IAChB,OAAO,CAAC,oBAAoB;IA4BnB,MAAM;CAwChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,WAAW,CAAC;KAC3B;CACF"}
|
|
@@ -12,7 +12,7 @@ export interface HxTreeItemSelectDetail {
|
|
|
12
12
|
*
|
|
13
13
|
* @tag hx-tree-item
|
|
14
14
|
*
|
|
15
|
-
* @slot - Default slot for the item label content.
|
|
15
|
+
* @slot - Default slot for the item label content. This text is also used to label the children group.
|
|
16
16
|
* @slot icon - Custom icon shown before the label.
|
|
17
17
|
* @slot children - Nested hx-tree-item elements for sub-tree.
|
|
18
18
|
*
|
|
@@ -59,6 +59,11 @@ export declare class HelixTreeItem extends LitElement {
|
|
|
59
59
|
* @internal
|
|
60
60
|
*/
|
|
61
61
|
private _rovingActive;
|
|
62
|
+
/**
|
|
63
|
+
* Text content from the default slot, used to label the children group for screen readers.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
private _labelText;
|
|
62
67
|
/**
|
|
63
68
|
* Cached ARIA position metadata. Computed once on connect and on slotchange
|
|
64
69
|
* of the parent container, avoiding repeated DOM traversal on every render.
|
|
@@ -80,6 +85,8 @@ export declare class HelixTreeItem extends LitElement {
|
|
|
80
85
|
* @internal
|
|
81
86
|
*/
|
|
82
87
|
private _selectable;
|
|
88
|
+
/** @internal */
|
|
89
|
+
private _itemRowEl;
|
|
83
90
|
/**
|
|
84
91
|
* Whether this item has slotted children.
|
|
85
92
|
* @returns True if one or more elements are assigned to the children slot.
|
|
@@ -97,6 +104,11 @@ export declare class HelixTreeItem extends LitElement {
|
|
|
97
104
|
* @internal
|
|
98
105
|
*/
|
|
99
106
|
private _handleChildrenSlotChange;
|
|
107
|
+
/**
|
|
108
|
+
* Captures the text content from the default (label) slot for use on the children group label.
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
private _handleLabelSlotChange;
|
|
100
112
|
/**
|
|
101
113
|
* Toggles the expanded state when the expand/collapse button is clicked, stopping event propagation.
|
|
102
114
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-tree-item.d.ts","sourceRoot":"","sources":["../../../src/components/hx-tree-view/hx-tree-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"hx-tree-item.d.ts","sourceRoot":"","sources":["../../../src/components/hx-tree-view/hx-tree-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AAMhD,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC,oDAAoD;IACpD,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C,OAAgB,MAAM,4BAAsC;IAI5D;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,QAAQ,UAAS;IAIjB;;;OAGG;IACM,OAAO,CAAC,YAAY,CAAS;IAEtC;;;OAGG;IACM,OAAO,CAAC,aAAa,CAAS;IAEvC;;;OAGG;IACM,OAAO,CAAC,UAAU,CAAM;IAEjC;;;;OAIG;IACM,OAAO,CAAC,MAAM,CAAK;IAC5B;;;OAGG;IACM,OAAO,CAAC,SAAS,CAAK;IAC/B;;;OAGG;IACM,OAAO,CAAC,QAAQ,CAAK;IAC9B;;;OAGG;IACM,OAAO,CAAC,WAAW,CAAS;IAErC,gBAAgB;IACI,OAAO,CAAC,UAAU,CAAsB;IAI5D;;;OAGG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAmClB,iBAAiB,IAAI,IAAI;IAOlC;;;OAGG;IACH,OAAO,CAAC,yBAAyB;IAMjC;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAW9B;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAM1B;;;OAGG;IACH,OAAO,CAAC,eAAe;IAWvB;;;OAGG;IACH,OAAO,CAAC,cAAc;IAgCtB;;;;;OAKG;IACH,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAItC,iDAAiD;IACxC,KAAK,IAAI,IAAI;IAMtB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAmBhB,MAAM;CAyChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,aAAa,CAAC;KAC/B;CACF;AAED,oGAAoG;AACpG,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC,kGAAkG;AAClG,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-tree-item.styles.d.ts","sourceRoot":"","sources":["../../../src/components/hx-tree-view/hx-tree-item.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"hx-tree-item.styles.d.ts","sourceRoot":"","sources":["../../../src/components/hx-tree-view/hx-tree-item.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,yBAiL/B,CAAC"}
|
|
@@ -55,25 +55,35 @@ export declare class HelixTreeView extends LitElement {
|
|
|
55
55
|
* @attr selection
|
|
56
56
|
*/
|
|
57
57
|
selection: TreeSelection;
|
|
58
|
+
/** @internal */
|
|
58
59
|
private _currentIndex;
|
|
59
60
|
/** Tracks whether the tree has any visible items, to decide the container tabindex. */
|
|
61
|
+
/** @internal */
|
|
60
62
|
private _hasVisibleItems;
|
|
61
63
|
/**
|
|
62
64
|
* Returns a flat ordered list of all visible (not inside a collapsed item) hx-tree-items
|
|
63
65
|
* in depth-first order.
|
|
64
66
|
*/
|
|
67
|
+
/** @internal */
|
|
65
68
|
private _getVisibleItems;
|
|
69
|
+
/** @internal */
|
|
66
70
|
private _collectVisibleItems;
|
|
71
|
+
/** @internal */
|
|
67
72
|
private _getSelectedItems;
|
|
68
73
|
/**
|
|
69
74
|
* Updates the roving tabindex across all visible items so that only the
|
|
70
75
|
* item at `activeIndex` has `tabindex="0"`. All others receive `tabindex="-1"`.
|
|
71
76
|
* This is called whenever the active item changes (navigation, initial render).
|
|
72
77
|
*/
|
|
78
|
+
/** @internal */
|
|
73
79
|
private _updateRovingTabindex;
|
|
80
|
+
/** @internal */
|
|
74
81
|
private _focusItem;
|
|
82
|
+
/** @internal */
|
|
75
83
|
private _handleTreeItemSelect;
|
|
84
|
+
/** @internal */
|
|
76
85
|
private _handleKeyDown;
|
|
86
|
+
/** @internal */
|
|
77
87
|
private _handleFocusIn;
|
|
78
88
|
/**
|
|
79
89
|
* Initializes the roving tabindex after items are first slotted in.
|
|
@@ -81,7 +91,9 @@ export declare class HelixTreeView extends LitElement {
|
|
|
81
91
|
* so a Tab into the tree lands directly on the first item without a redirect.
|
|
82
92
|
* Also updates `_hasVisibleItems` so the container tabindex re-renders correctly.
|
|
83
93
|
*/
|
|
94
|
+
/** @internal */
|
|
84
95
|
private _handleSlotChange;
|
|
96
|
+
firstUpdated(): void;
|
|
85
97
|
render(): import('lit').TemplateResult<1>;
|
|
86
98
|
}
|
|
87
99
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-tree-view.d.ts","sourceRoot":"","sources":["../../../src/components/hx-tree-view/hx-tree-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"hx-tree-view.d.ts","sourceRoot":"","sources":["../../../src/components/hx-tree-view/hx-tree-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAIvC,OAAO,KAAK,EAAE,aAAa,EAA0B,MAAM,mBAAmB,CAAC;AAG/E,mCAAmC;AACnC,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE3D,6CAA6C;AAC7C,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,IAAI,EAAE,aAAa,CAAC;IACpB,wCAAwC;IACxC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C,OAAgB,MAAM,4BAAsC;IAI5D;;;;OAIG;IAEH,KAAK,SAAM;IAEX;;;;;;OAMG;IAEH,SAAS,EAAE,aAAa,CAAU;IAIlC,gBAAgB;IACP,OAAO,CAAC,aAAa,CAAK;IAEnC,uFAAuF;IACvF,gBAAgB;IACP,OAAO,CAAC,gBAAgB,CAAS;IAI1C;;;OAGG;IACH,gBAAgB;IAChB,OAAO,CAAC,gBAAgB;IAIxB,gBAAgB;IAChB,OAAO,CAAC,oBAAoB;IAgB5B,gBAAgB;IAChB,OAAO,CAAC,iBAAiB;IAIzB;;;;OAIG;IACH,gBAAgB;IAChB,OAAO,CAAC,qBAAqB;IAM7B,gBAAgB;IAChB,OAAO,CAAC,UAAU;IAWlB,gBAAgB;IAChB,OAAO,CAAC,qBAAqB;IA0B7B,gBAAgB;IAChB,OAAO,CAAC,cAAc;IAwEtB,gBAAgB;IAChB,OAAO,CAAC,cAAc;IAYtB;;;;;OAKG;IACH,gBAAgB;IAChB,OAAO,CAAC,iBAAiB;IAYhB,YAAY,IAAI,IAAI;IAWpB,MAAM;CAuBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,aAAa,CAAC;KAC/B;CACF;AAED,oGAAoG;AACpG,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC,kGAAkG;AAClG,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import { H as r, a as x } from "./shared/hx-accordion-
|
|
2
|
-
import { H as a } from "./shared/hx-action-bar-
|
|
3
|
-
import { H as i } from "./shared/hx-alert-
|
|
4
|
-
import { H as s } from "./shared/hx-avatar-
|
|
5
|
-
import { H as m } from "./shared/hx-badge-
|
|
6
|
-
import { H as n } from "./shared/hx-banner-
|
|
7
|
-
import { H as u, a as T } from "./shared/hx-breadcrumb-item-
|
|
8
|
-
import { H as c } from "./shared/hx-button-
|
|
1
|
+
import { H as r, a as x } from "./shared/hx-accordion-D1kFhdeQ.js";
|
|
2
|
+
import { H as a } from "./shared/hx-action-bar-D4bulGQP.js";
|
|
3
|
+
import { H as i } from "./shared/hx-alert-K5F8KeqI.js";
|
|
4
|
+
import { H as s } from "./shared/hx-avatar-Cun-O99h.js";
|
|
5
|
+
import { H as m } from "./shared/hx-badge-CsFd2xtw.js";
|
|
6
|
+
import { H as n } from "./shared/hx-banner-BTV-X2xF.js";
|
|
7
|
+
import { H as u, a as T } from "./shared/hx-breadcrumb-item-4IwaLgaO.js";
|
|
8
|
+
import { H as c } from "./shared/hx-button-7k-KeCYU.js";
|
|
9
9
|
import { H as I } from "./shared/hx-button-group-CWjWv-wS.js";
|
|
10
|
-
import { H as C } from "./shared/hx-card-
|
|
11
|
-
import { H as P, a as k } from "./shared/hx-carousel-item-
|
|
12
|
-
import { H as D } from "./shared/hx-checkbox-
|
|
13
|
-
import { H as F } from "./shared/hx-checkbox-group-
|
|
14
|
-
import { H as R } from "./shared/hx-code-snippet-
|
|
15
|
-
import { H as G } from "./shared/hx-color-picker-
|
|
16
|
-
import { H as N } from "./shared/hx-combobox-
|
|
10
|
+
import { H as C } from "./shared/hx-card-0hT3G5hi.js";
|
|
11
|
+
import { H as P, a as k } from "./shared/hx-carousel-item-DgeYyYZJ.js";
|
|
12
|
+
import { H as D } from "./shared/hx-checkbox-BvjO-O41.js";
|
|
13
|
+
import { H as F } from "./shared/hx-checkbox-group-Z5VvWzcj.js";
|
|
14
|
+
import { H as R } from "./shared/hx-code-snippet-DqzPkH4K.js";
|
|
15
|
+
import { H as G } from "./shared/hx-color-picker-Da8z6AlQ.js";
|
|
16
|
+
import { H as N } from "./shared/hx-combobox-CivfelTS.js";
|
|
17
17
|
import { H as y } from "./shared/hx-container-DLUKnTi9.js";
|
|
18
|
-
import { H as O } from "./shared/hx-copy-button
|
|
19
|
-
import { H as j } from "./shared/hx-counter-
|
|
20
|
-
import { H as z } from "./shared/hx-data-table-
|
|
21
|
-
import { H as J } from "./shared/hx-date-picker-
|
|
22
|
-
import { H as Q } from "./shared/hx-dialog-
|
|
23
|
-
import { H as X } from "./shared/hx-divider-
|
|
24
|
-
import { H as Z } from "./shared/hx-drawer-
|
|
25
|
-
import { H as $ } from "./shared/hx-dropdown-
|
|
26
|
-
import { H as oe } from "./shared/hx-field-
|
|
18
|
+
import { H as O } from "./shared/hx-copy-button--0dymSvw.js";
|
|
19
|
+
import { H as j } from "./shared/hx-counter-Duf00H7p.js";
|
|
20
|
+
import { H as z } from "./shared/hx-data-table-DujB9hSE.js";
|
|
21
|
+
import { H as J } from "./shared/hx-date-picker-C8d2HtRV.js";
|
|
22
|
+
import { H as Q } from "./shared/hx-dialog-DkUSnVgw.js";
|
|
23
|
+
import { H as X } from "./shared/hx-divider-DNNs4e8q.js";
|
|
24
|
+
import { H as Z } from "./shared/hx-drawer-CJcRZcns.js";
|
|
25
|
+
import { H as $ } from "./shared/hx-dropdown-Bo0KTM1A.js";
|
|
26
|
+
import { H as oe } from "./shared/hx-field-3MmzJ4kZ.js";
|
|
27
27
|
import { H as xe } from "./shared/hx-field-label-Bg-EWvqF.js";
|
|
28
|
-
import { H as ae } from "./shared/hx-file-upload-
|
|
29
|
-
import { H as ie } from "./shared/hx-form-
|
|
30
|
-
import { H as se } from "./shared/hx-format-date-
|
|
31
|
-
import { H as me, a as fe } from "./shared/hx-grid-
|
|
32
|
-
import { H as de } from "./shared/hx-help-text-
|
|
33
|
-
import { H as Te } from "./shared/hx-icon
|
|
34
|
-
import { H as ce } from "./shared/hx-icon-button-
|
|
35
|
-
import { H as Ie } from "./shared/hx-image-
|
|
36
|
-
import { H as Ce } from "./shared/hx-link-
|
|
37
|
-
import { H as Pe, a as ke } from "./shared/hx-list-
|
|
38
|
-
import { H as De, a as we, b as Fe } from "./shared/hx-menu-divider-
|
|
39
|
-
import { H as Re } from "./shared/hx-meter-
|
|
40
|
-
import { H as Ge } from "./shared/hx-nav-
|
|
41
|
-
import { H as Ne } from "./shared/hx-number-input-
|
|
42
|
-
import { H as ye } from "./shared/hx-overflow-menu-
|
|
43
|
-
import { H as Oe } from "./shared/hx-pagination-
|
|
44
|
-
import { H as je } from "./shared/hx-popover-
|
|
45
|
-
import { H as ze } from "./shared/hx-popup-
|
|
46
|
-
import { H as Je } from "./shared/hx-progress-bar-
|
|
47
|
-
import { H as Qe } from "./shared/hx-progress-ring-
|
|
48
|
-
import { H as Xe } from "./shared/hx-prose-
|
|
49
|
-
import { H as Ze, a as _e } from "./shared/hx-radio-
|
|
50
|
-
import { H as eo } from "./shared/hx-rating-
|
|
51
|
-
import { H as ro } from "./shared/hx-select-
|
|
52
|
-
import { H as Ho, a as ao } from "./shared/hx-nav-item-
|
|
28
|
+
import { H as ae } from "./shared/hx-file-upload-ByjAgfNy.js";
|
|
29
|
+
import { H as ie } from "./shared/hx-form-BpS6v3Iu.js";
|
|
30
|
+
import { H as se } from "./shared/hx-format-date-BdnWV2kX.js";
|
|
31
|
+
import { H as me, a as fe } from "./shared/hx-grid-gEjuF0cR.js";
|
|
32
|
+
import { H as de } from "./shared/hx-help-text-BAcEGRUE.js";
|
|
33
|
+
import { H as Te } from "./shared/hx-icon-CP6OnLoM.js";
|
|
34
|
+
import { H as ce } from "./shared/hx-icon-button-DzH_bRtC.js";
|
|
35
|
+
import { H as Ie } from "./shared/hx-image-C6pGiI6c.js";
|
|
36
|
+
import { H as Ce } from "./shared/hx-link-Tmk_YPvW.js";
|
|
37
|
+
import { H as Pe, a as ke } from "./shared/hx-list-DwInEX2H.js";
|
|
38
|
+
import { H as De, a as we, b as Fe } from "./shared/hx-menu-divider-DR4G_rqw.js";
|
|
39
|
+
import { H as Re } from "./shared/hx-meter-uXkTZq-W.js";
|
|
40
|
+
import { H as Ge } from "./shared/hx-nav-3JsN2Oak.js";
|
|
41
|
+
import { H as Ne } from "./shared/hx-number-input-CAAibZ8X.js";
|
|
42
|
+
import { H as ye } from "./shared/hx-overflow-menu-2kgOJ_ht.js";
|
|
43
|
+
import { H as Oe } from "./shared/hx-pagination-DBs-vmSv.js";
|
|
44
|
+
import { H as je } from "./shared/hx-popover-DxE67miP.js";
|
|
45
|
+
import { H as ze } from "./shared/hx-popup-Dg6n_PbY.js";
|
|
46
|
+
import { H as Je } from "./shared/hx-progress-bar-Dm_EHyng.js";
|
|
47
|
+
import { H as Qe } from "./shared/hx-progress-ring-DpxBDD5d.js";
|
|
48
|
+
import { H as Xe } from "./shared/hx-prose-Ml_L2zje.js";
|
|
49
|
+
import { H as Ze, a as _e } from "./shared/hx-radio-BywgVSEu.js";
|
|
50
|
+
import { H as eo } from "./shared/hx-rating-CUWBQ0fZ.js";
|
|
51
|
+
import { H as ro } from "./shared/hx-select-BwDwxk-M.js";
|
|
52
|
+
import { H as Ho, a as ao } from "./shared/hx-nav-item-D3EJatzc.js";
|
|
53
53
|
import { H as io } from "./shared/hx-skeleton-BHvALyd7.js";
|
|
54
|
-
import { H as so } from "./shared/hx-slider-
|
|
55
|
-
import { H as mo } from "./shared/hx-spinner-
|
|
56
|
-
import { H as no } from "./shared/hx-split-button-
|
|
57
|
-
import { H as To } from "./shared/hx-split-panel-
|
|
58
|
-
import { H as co } from "./shared/hx-stack-
|
|
59
|
-
import { H as Io } from "./shared/hx-stat-
|
|
60
|
-
import { H as Co } from "./shared/hx-status-indicator-
|
|
61
|
-
import { H as Po, a as ko } from "./shared/hx-step-
|
|
54
|
+
import { H as so } from "./shared/hx-slider-D_0EKJyk.js";
|
|
55
|
+
import { H as mo } from "./shared/hx-spinner-DMn4SChS.js";
|
|
56
|
+
import { H as no } from "./shared/hx-split-button-CypgLXw1.js";
|
|
57
|
+
import { H as To } from "./shared/hx-split-panel-BPMWKPGu.js";
|
|
58
|
+
import { H as co } from "./shared/hx-stack-BStY1RmV.js";
|
|
59
|
+
import { H as Io } from "./shared/hx-stat-CHntLHJM.js";
|
|
60
|
+
import { H as Co } from "./shared/hx-status-indicator-C1BwEvUw.js";
|
|
61
|
+
import { H as Po, a as ko } from "./shared/hx-step-BIVWSPxd.js";
|
|
62
62
|
import { H as Do, a as wo } from "./shared/hx-structured-list-CMWllxGg.js";
|
|
63
|
-
import { H as Lo } from "./shared/hx-switch-
|
|
64
|
-
import { H as Ao, a as Go, b as Mo, c as No, d as ho, e as yo, f as Vo } from "./shared/hx-td-
|
|
65
|
-
import { H as Uo, a as jo, b as qo } from "./shared/hx-tab-panel-
|
|
66
|
-
import { H as Eo } from "./shared/hx-tag-
|
|
67
|
-
import { H as Ko } from "./shared/hx-text-
|
|
68
|
-
import { H as Wo } from "./shared/hx-text-input-
|
|
69
|
-
import { H as Yo } from "./shared/hx-textarea-
|
|
63
|
+
import { H as Lo } from "./shared/hx-switch-BgX8kuWt.js";
|
|
64
|
+
import { H as Ao, a as Go, b as Mo, c as No, d as ho, e as yo, f as Vo } from "./shared/hx-td-h6oeW6YC.js";
|
|
65
|
+
import { H as Uo, a as jo, b as qo } from "./shared/hx-tab-panel-DhOq67jj.js";
|
|
66
|
+
import { H as Eo } from "./shared/hx-tag-CzOTDcXI.js";
|
|
67
|
+
import { H as Ko } from "./shared/hx-text-DTXjiviE.js";
|
|
68
|
+
import { H as Wo } from "./shared/hx-text-input-CqEdDHMU.js";
|
|
69
|
+
import { H as Yo } from "./shared/hx-textarea-BgX7rxyo.js";
|
|
70
70
|
import { H as _o } from "./shared/hx-theme-6GDoUG8j.js";
|
|
71
|
-
import { H as er } from "./shared/hx-time-picker-
|
|
72
|
-
import { H as rr, a as xr, t as Hr } from "./shared/toast-factory-
|
|
73
|
-
import { H as tr } from "./shared/hx-toggle-button-
|
|
74
|
-
import { H as lr } from "./shared/hx-tooltip-
|
|
75
|
-
import { H as pr } from "./shared/hx-top-nav-
|
|
76
|
-
import { H as fr, a as nr } from "./shared/hx-tree-item-
|
|
71
|
+
import { H as er } from "./shared/hx-time-picker-DmLu7WUC.js";
|
|
72
|
+
import { H as rr, a as xr, t as Hr } from "./shared/toast-factory-DTy-qN8r.js";
|
|
73
|
+
import { H as tr } from "./shared/hx-toggle-button-D1jpDvSA.js";
|
|
74
|
+
import { H as lr } from "./shared/hx-tooltip-kh7QFPKu.js";
|
|
75
|
+
import { H as pr } from "./shared/hx-top-nav-DYlnzDaU.js";
|
|
76
|
+
import { H as fr, a as nr } from "./shared/hx-tree-item-BP6UF_H1.js";
|
|
77
77
|
import { H as ur } from "./shared/hx-visually-hidden-CCTQTjbR.js";
|
|
78
78
|
export {
|
|
79
79
|
r as HelixAccordion,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
3
|
-
import { tokenStyles as k } from "@helixui/tokens/lit";
|
|
1
|
+
import { css as w, svg as S, LitElement as _, nothing as u, html as E } from "lit";
|
|
2
|
+
import { property as h, customElement as $ } from "lit/decorators.js";
|
|
4
3
|
import { classMap as D } from "lit/directives/class-map.js";
|
|
4
|
+
import { tokenStyles as k } from "@helixui/tokens/lit";
|
|
5
5
|
import { d as A } from "./dev-warn-YlwPHjtX.js";
|
|
6
|
-
const
|
|
6
|
+
const L = w`
|
|
7
7
|
:host {
|
|
8
8
|
display: block;
|
|
9
9
|
font-family: var(--hx-font-family-sans, sans-serif);
|
|
@@ -13,7 +13,7 @@ const I = b`
|
|
|
13
13
|
border-radius: var(--hx-accordion-border-radius, var(--hx-border-radius-md, 0.375rem));
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`, I = w`
|
|
17
17
|
:host {
|
|
18
18
|
display: block;
|
|
19
19
|
}
|
|
@@ -134,12 +134,12 @@ const I = b`
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
`;
|
|
137
|
-
var
|
|
138
|
-
for (var n = t > 1 ? void 0 : t ?
|
|
137
|
+
var O = Object.defineProperty, P = Object.getOwnPropertyDescriptor, p = (e, r, o, t) => {
|
|
138
|
+
for (var n = t > 1 ? void 0 : t ? P(r, o) : r, i = e.length - 1, a; i >= 0; i--)
|
|
139
139
|
(a = e[i]) && (n = (t ? a(r, o, n) : a(n)) || n);
|
|
140
|
-
return t && n &&
|
|
140
|
+
return t && n && O(r, o, n), n;
|
|
141
141
|
};
|
|
142
|
-
const
|
|
142
|
+
const j = S`
|
|
143
143
|
<svg
|
|
144
144
|
xmlns="http://www.w3.org/2000/svg"
|
|
145
145
|
width="16"
|
|
@@ -155,24 +155,45 @@ const L = C`
|
|
|
155
155
|
<polyline points="6 9 12 15 18 9"></polyline>
|
|
156
156
|
</svg>
|
|
157
157
|
`;
|
|
158
|
-
let s = class extends
|
|
158
|
+
let s = class extends _ {
|
|
159
159
|
constructor() {
|
|
160
|
-
super(...arguments), this._uid = `hx-accordion-item-${++s._counter}`, this.expanded = !1, this.disabled = !1;
|
|
160
|
+
super(...arguments), this._uid = `hx-accordion-item-${++s._counter}`, this.expanded = !1, this.disabled = !1, this.level = 3;
|
|
161
|
+
}
|
|
162
|
+
// ─── Heading Level Helper ───
|
|
163
|
+
/**
|
|
164
|
+
* Returns a clamped heading level (1–6) for use as `aria-level` on the
|
|
165
|
+
* `<summary>` element. Per the WAI-ARIA APG Accordion pattern, the
|
|
166
|
+
* `<summary>` must be a **direct child** of `<details>` for native
|
|
167
|
+
* disclosure behaviour to work. Instead of wrapping `<summary>` inside
|
|
168
|
+
* an `<h3>` (which breaks the native toggle), we apply
|
|
169
|
+
* `role="heading" aria-level="N"` directly on `<summary>`.
|
|
170
|
+
*/
|
|
171
|
+
/** @internal */
|
|
172
|
+
get _headingLevel() {
|
|
173
|
+
return Math.max(1, Math.min(6, this.level));
|
|
161
174
|
}
|
|
162
175
|
// ─── Toggle Logic ───
|
|
176
|
+
/** @internal */
|
|
163
177
|
_toggle() {
|
|
164
178
|
if (this.disabled) return;
|
|
165
179
|
const e = !this.expanded;
|
|
166
180
|
this.expanded = e, this._dispatchToggleEvent(e);
|
|
167
181
|
}
|
|
182
|
+
/** @internal */
|
|
168
183
|
_dispatchToggleEvent(e) {
|
|
169
184
|
const o = { bubbles: !0, composed: !0, detail: { expanded: e, itemId: this.id || "" } };
|
|
170
|
-
e ? this.dispatchEvent(
|
|
185
|
+
e ? this.dispatchEvent(
|
|
186
|
+
new CustomEvent("hx-expand", o)
|
|
187
|
+
) : this.dispatchEvent(
|
|
188
|
+
new CustomEvent("hx-collapse", o)
|
|
189
|
+
);
|
|
171
190
|
}
|
|
172
191
|
// ─── Event Handlers ───
|
|
192
|
+
/** @internal */
|
|
173
193
|
_handleSummaryClick(e) {
|
|
174
194
|
e.preventDefault(), this._toggle();
|
|
175
195
|
}
|
|
196
|
+
/** @internal */
|
|
176
197
|
_handleKeyDown(e) {
|
|
177
198
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this._toggle());
|
|
178
199
|
}
|
|
@@ -183,21 +204,23 @@ let s = class extends w {
|
|
|
183
204
|
"item--expanded": this.expanded,
|
|
184
205
|
"item--disabled": this.disabled
|
|
185
206
|
};
|
|
186
|
-
return
|
|
207
|
+
return E`
|
|
187
208
|
<details part="item" class=${D(e)} ?open=${this.expanded}>
|
|
188
209
|
<summary
|
|
189
210
|
id=${`${this._uid}-trigger`}
|
|
190
211
|
part="trigger"
|
|
191
212
|
class="trigger"
|
|
213
|
+
role="heading"
|
|
214
|
+
aria-level=${this._headingLevel}
|
|
192
215
|
tabindex=${this.disabled ? "-1" : "0"}
|
|
193
|
-
aria-expanded=${this.expanded ? "true" :
|
|
194
|
-
aria-disabled=${this.disabled ? "true" :
|
|
216
|
+
aria-expanded=${this.expanded ? "true" : u}
|
|
217
|
+
aria-disabled=${this.disabled ? "true" : u}
|
|
195
218
|
aria-controls=${`${this._uid}-content`}
|
|
196
219
|
@click=${this._handleSummaryClick}
|
|
197
220
|
@keydown=${this._handleKeyDown}
|
|
198
221
|
>
|
|
199
222
|
<slot name="trigger"></slot>
|
|
200
|
-
<span part="icon" class="icon">${
|
|
223
|
+
<span part="icon" class="icon">${j}</span>
|
|
201
224
|
</summary>
|
|
202
225
|
<div class="content-wrapper">
|
|
203
226
|
<div class="content-inner">
|
|
@@ -207,7 +230,7 @@ let s = class extends w {
|
|
|
207
230
|
class="content"
|
|
208
231
|
role="region"
|
|
209
232
|
aria-labelledby=${`${this._uid}-trigger`}
|
|
210
|
-
aria-hidden=${this.expanded ?
|
|
233
|
+
aria-hidden=${this.expanded ? u : "true"}
|
|
211
234
|
>
|
|
212
235
|
<slot></slot>
|
|
213
236
|
</div>
|
|
@@ -217,23 +240,26 @@ let s = class extends w {
|
|
|
217
240
|
`;
|
|
218
241
|
}
|
|
219
242
|
};
|
|
220
|
-
s.styles = [k,
|
|
243
|
+
s.styles = [k, I];
|
|
221
244
|
s._counter = 0;
|
|
222
|
-
|
|
223
|
-
|
|
245
|
+
p([
|
|
246
|
+
h({ type: Boolean, reflect: !0 })
|
|
224
247
|
], s.prototype, "expanded", 2);
|
|
225
|
-
|
|
226
|
-
|
|
248
|
+
p([
|
|
249
|
+
h({ type: Boolean, reflect: !0 })
|
|
227
250
|
], s.prototype, "disabled", 2);
|
|
228
|
-
|
|
229
|
-
|
|
251
|
+
p([
|
|
252
|
+
h({ type: Number })
|
|
253
|
+
], s.prototype, "level", 2);
|
|
254
|
+
s = p([
|
|
255
|
+
$("hx-accordion-item")
|
|
230
256
|
], s);
|
|
231
|
-
var q = Object.defineProperty, R = Object.getOwnPropertyDescriptor,
|
|
257
|
+
var q = Object.defineProperty, R = Object.getOwnPropertyDescriptor, C = (e, r, o, t) => {
|
|
232
258
|
for (var n = t > 1 ? void 0 : t ? R(r, o) : r, i = e.length - 1, a; i >= 0; i--)
|
|
233
259
|
(a = e[i]) && (n = (t ? a(r, o, n) : a(n)) || n);
|
|
234
260
|
return t && n && q(r, o, n), n;
|
|
235
261
|
};
|
|
236
|
-
let c = class extends
|
|
262
|
+
let c = class extends _ {
|
|
237
263
|
constructor() {
|
|
238
264
|
super(...arguments), this.mode = "single", this._handleChildExpand = (e) => {
|
|
239
265
|
if (this.mode !== "single") return;
|
|
@@ -242,14 +268,14 @@ let c = class extends w {
|
|
|
242
268
|
t !== r && t.expanded && (t.expanded = !1, t._dispatchToggleEvent(!1));
|
|
243
269
|
});
|
|
244
270
|
}, this._handleKeyDown = (e) => {
|
|
245
|
-
var f,
|
|
271
|
+
var f, v, x, y;
|
|
246
272
|
if (this._getTriggers().length === 0) return;
|
|
247
273
|
const o = ((f = this.shadowRoot) == null ? void 0 : f.activeElement) ?? document.activeElement;
|
|
248
274
|
let t = null;
|
|
249
275
|
const n = Array.from(this.querySelectorAll("hx-accordion-item"));
|
|
250
276
|
for (const l of n) {
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
277
|
+
const b = (v = l.shadowRoot) == null ? void 0 : v.querySelector('[part="trigger"]');
|
|
278
|
+
if (b === o || ((x = l.shadowRoot) == null ? void 0 : x.activeElement) === b) {
|
|
253
279
|
t = l;
|
|
254
280
|
break;
|
|
255
281
|
}
|
|
@@ -275,8 +301,8 @@ let c = class extends w {
|
|
|
275
301
|
return;
|
|
276
302
|
}
|
|
277
303
|
e.preventDefault();
|
|
278
|
-
const
|
|
279
|
-
|
|
304
|
+
const g = i[d], m = (y = g == null ? void 0 : g.shadowRoot) == null ? void 0 : y.querySelector('[part="trigger"]');
|
|
305
|
+
m == null || m.focus();
|
|
280
306
|
};
|
|
281
307
|
}
|
|
282
308
|
// ─── Lifecycle ───
|
|
@@ -290,6 +316,7 @@ let c = class extends w {
|
|
|
290
316
|
this._enforceSingleMode();
|
|
291
317
|
}
|
|
292
318
|
// ─── Single-expand coordination ───
|
|
319
|
+
/** @internal */
|
|
293
320
|
_enforceSingleMode() {
|
|
294
321
|
if (this.mode !== "single") return;
|
|
295
322
|
const e = this.querySelectorAll("hx-accordion-item");
|
|
@@ -298,15 +325,17 @@ let c = class extends w {
|
|
|
298
325
|
o.expanded && (r ? o.expanded = !1 : r = !0);
|
|
299
326
|
});
|
|
300
327
|
}
|
|
328
|
+
/** @internal */
|
|
301
329
|
_getTriggers() {
|
|
302
330
|
const e = this.querySelectorAll("hx-accordion-item"), r = [];
|
|
303
331
|
return e.forEach((o) => {
|
|
304
332
|
var n;
|
|
305
|
-
const t = (n = o.shadowRoot) == null ? void 0 : n.querySelector("
|
|
333
|
+
const t = (n = o.shadowRoot) == null ? void 0 : n.querySelector('[part="trigger"]');
|
|
306
334
|
t && r.push(t);
|
|
307
335
|
}), r;
|
|
308
336
|
}
|
|
309
337
|
// ─── Slot validation ───
|
|
338
|
+
/** @internal */
|
|
310
339
|
_handleSlotChange(e) {
|
|
311
340
|
const r = e.target;
|
|
312
341
|
if (!(r instanceof HTMLSlotElement)) return;
|
|
@@ -318,22 +347,22 @@ let c = class extends w {
|
|
|
318
347
|
}
|
|
319
348
|
// ─── Render ───
|
|
320
349
|
render() {
|
|
321
|
-
return
|
|
350
|
+
return E`
|
|
322
351
|
<div part="accordion" class="accordion">
|
|
323
352
|
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
324
353
|
</div>
|
|
325
354
|
`;
|
|
326
355
|
}
|
|
327
356
|
};
|
|
328
|
-
c.styles = [k,
|
|
329
|
-
|
|
330
|
-
|
|
357
|
+
c.styles = [k, L];
|
|
358
|
+
C([
|
|
359
|
+
h({ type: String, reflect: !0 })
|
|
331
360
|
], c.prototype, "mode", 2);
|
|
332
|
-
c =
|
|
333
|
-
|
|
361
|
+
c = C([
|
|
362
|
+
$("hx-accordion")
|
|
334
363
|
], c);
|
|
335
364
|
export {
|
|
336
365
|
c as H,
|
|
337
366
|
s as a
|
|
338
367
|
};
|
|
339
|
-
//# sourceMappingURL=hx-accordion-
|
|
368
|
+
//# sourceMappingURL=hx-accordion-D1kFhdeQ.js.map
|