@helixui/library 0.3.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/custom-elements.json +13178 -12195
- package/dist/components/hx-accordion/hx-accordion-item.d.ts +3 -1
- package/dist/components/hx-accordion/hx-accordion-item.d.ts.map +1 -1
- package/dist/components/hx-accordion/hx-accordion.d.ts +9 -1
- 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 +1 -1
- 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 +3 -6
- package/dist/components/hx-alert/hx-alert.d.ts.map +1 -1
- package/dist/components/hx-alert/index.js +1 -1
- package/dist/components/hx-avatar/hx-avatar.d.ts +1 -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 +1 -1
- package/dist/components/hx-banner/hx-banner.d.ts +99 -0
- package/dist/components/hx-banner/hx-banner.d.ts.map +1 -0
- package/dist/components/hx-banner/hx-banner.styles.d.ts +2 -0
- package/dist/components/hx-banner/hx-banner.styles.d.ts.map +1 -0
- package/dist/components/hx-banner/index.d.ts +3 -0
- package/dist/components/hx-banner/index.d.ts.map +1 -0
- package/dist/components/hx-banner/index.js +5 -0
- package/dist/components/hx-banner/index.js.map +1 -0
- package/dist/components/hx-breadcrumb/hx-breadcrumb-item.d.ts +1 -1
- package/dist/components/hx-breadcrumb/hx-breadcrumb.d.ts +6 -1
- 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 +17 -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-button-group/hx-button-group.d.ts +9 -1
- package/dist/components/hx-button-group/hx-button-group.d.ts.map +1 -1
- package/dist/components/hx-button-group/index.js +1 -1
- package/dist/components/hx-card/hx-card.d.ts +17 -1
- 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 +1 -1
- package/dist/components/hx-carousel/hx-carousel.d.ts +123 -1
- package/dist/components/hx-carousel/hx-carousel.d.ts.map +1 -1
- package/dist/components/hx-carousel/index.js +1 -1
- package/dist/components/hx-checkbox/hx-checkbox.d.ts +4 -2
- package/dist/components/hx-checkbox/hx-checkbox.d.ts.map +1 -1
- package/dist/components/hx-checkbox-group/hx-checkbox-group.d.ts +6 -2
- 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 +21 -6
- package/dist/components/hx-code-snippet/hx-code-snippet.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 +14 -1
- 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 +25 -1
- 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-container/hx-container.d.ts +4 -2
- package/dist/components/hx-container/hx-container.d.ts.map +1 -1
- package/dist/components/hx-copy-button/hx-copy-button.d.ts +7 -1
- 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 +79 -0
- package/dist/components/hx-counter/hx-counter.d.ts.map +1 -0
- package/dist/components/hx-counter/hx-counter.styles.d.ts +2 -0
- package/dist/components/hx-counter/hx-counter.styles.d.ts.map +1 -0
- package/dist/components/hx-counter/index.d.ts +3 -0
- package/dist/components/hx-counter/index.d.ts.map +1 -0
- package/dist/components/hx-counter/index.js +5 -0
- package/dist/components/hx-counter/index.js.map +1 -0
- package/dist/components/hx-data-table/hx-data-table.d.ts +7 -1
- 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 +125 -1
- package/dist/components/hx-date-picker/hx-date-picker.d.ts.map +1 -1
- package/dist/components/hx-date-picker/index.js +1 -1
- package/dist/components/hx-dialog/hx-dialog.d.ts +1 -1
- package/dist/components/hx-dialog/hx-dialog.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-drawer/hx-drawer.d.ts +55 -2
- package/dist/components/hx-drawer/hx-drawer.d.ts.map +1 -1
- package/dist/components/hx-drawer/index.js +1 -1
- package/dist/components/hx-dropdown/hx-dropdown.d.ts +6 -1
- package/dist/components/hx-dropdown/hx-dropdown.d.ts.map +1 -1
- package/dist/components/hx-field/hx-field.d.ts +32 -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-field-label/hx-field-label.d.ts +1 -1
- package/dist/components/hx-file-upload/hx-file-upload.d.ts +13 -1
- package/dist/components/hx-file-upload/hx-file-upload.d.ts.map +1 -1
- package/dist/components/hx-file-upload/index.js +1 -1
- package/dist/components/hx-form/hx-form.d.ts +25 -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 +1 -1
- package/dist/components/hx-grid/hx-grid.d.ts +2 -2
- package/dist/components/hx-help-text/hx-help-text.d.ts +4 -1
- package/dist/components/hx-help-text/hx-help-text.d.ts.map +1 -1
- package/dist/components/hx-icon/hx-icon.d.ts +1 -1
- package/dist/components/hx-icon-button/hx-icon-button.d.ts +1 -1
- package/dist/components/hx-icon-button/hx-icon-button.d.ts.map +1 -1
- package/dist/components/hx-icon-button/index.js +1 -1
- package/dist/components/hx-image/hx-image.d.ts +1 -1
- package/dist/components/hx-link/hx-link.d.ts +1 -1
- package/dist/components/hx-list/hx-list-item.d.ts +1 -1
- package/dist/components/hx-list/hx-list.d.ts +1 -1
- 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-divider.d.ts +1 -1
- package/dist/components/hx-menu/hx-menu-item.d.ts +1 -1
- package/dist/components/hx-menu/hx-menu.d.ts +13 -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 +3 -1
- package/dist/components/hx-meter/hx-meter.d.ts.map +1 -1
- package/dist/components/hx-meter/index.js +1 -1
- package/dist/components/hx-nav/hx-nav.d.ts +16 -2
- package/dist/components/hx-nav/hx-nav.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 +3 -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 -1
- package/dist/components/hx-overflow-menu/hx-overflow-menu.d.ts.map +1 -1
- package/dist/components/hx-overflow-menu/index.js +1 -1
- package/dist/components/hx-pagination/hx-pagination.d.ts +6 -1
- package/dist/components/hx-pagination/hx-pagination.d.ts.map +1 -1
- package/dist/components/hx-pagination/index.js +1 -1
- package/dist/components/hx-popover/hx-popover.d.ts +11 -39
- package/dist/components/hx-popover/hx-popover.d.ts.map +1 -1
- package/dist/components/hx-popover/index.js +1 -1
- package/dist/components/hx-popup/hx-popup.d.ts +1 -1
- package/dist/components/hx-progress-bar/hx-progress-bar.d.ts +11 -1
- package/dist/components/hx-progress-bar/hx-progress-bar.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.map +1 -1
- package/dist/components/hx-progress-ring/index.js +1 -1
- package/dist/components/hx-prose/hx-prose.d.ts +1 -1
- package/dist/components/hx-radio-group/hx-radio-group.d.ts +76 -4
- 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 +19 -4
- 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 +10 -1
- package/dist/components/hx-select/hx-select.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 +1 -1
- package/dist/components/hx-side-nav/hx-side-nav.d.ts +1 -1
- package/dist/components/hx-side-nav/hx-side-nav.d.ts.map +1 -1
- package/dist/components/hx-side-nav/index.js +1 -1
- package/dist/components/hx-skeleton/hx-skeleton.d.ts +1 -1
- package/dist/components/hx-slider/hx-slider.d.ts +2 -0
- package/dist/components/hx-slider/hx-slider.d.ts.map +1 -1
- package/dist/components/hx-slider/index.js +1 -1
- package/dist/components/hx-spinner/hx-spinner.d.ts +1 -1
- package/dist/components/hx-split-button/hx-split-button.d.ts +17 -1
- 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 +12 -1
- package/dist/components/hx-split-panel/hx-split-panel.d.ts.map +1 -1
- package/dist/components/hx-stack/hx-stack.d.ts +1 -1
- package/dist/components/hx-stat/hx-stat.d.ts +71 -0
- package/dist/components/hx-stat/hx-stat.d.ts.map +1 -0
- package/dist/components/hx-stat/hx-stat.styles.d.ts +2 -0
- package/dist/components/hx-stat/hx-stat.styles.d.ts.map +1 -0
- package/dist/components/hx-stat/index.d.ts +3 -0
- package/dist/components/hx-stat/index.d.ts.map +1 -0
- package/dist/components/hx-stat/index.js +5 -0
- package/dist/components/hx-stat/index.js.map +1 -0
- package/dist/components/hx-status-indicator/hx-status-indicator.d.ts +1 -1
- package/dist/components/hx-steps/hx-step.d.ts +1 -1
- package/dist/components/hx-steps/hx-steps.d.ts +6 -1
- 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-structured-list/hx-structured-list.d.ts +4 -2
- package/dist/components/hx-structured-list/hx-structured-list.d.ts.map +1 -1
- package/dist/components/hx-structured-list/index.js +1 -1
- package/dist/components/hx-switch/hx-switch.d.ts +3 -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 +60 -0
- package/dist/components/hx-table/hx-table.d.ts.map +1 -0
- package/dist/components/hx-table/hx-table.styles.d.ts +9 -0
- package/dist/components/hx-table/hx-table.styles.d.ts.map +1 -0
- package/dist/components/hx-table/hx-tbody.d.ts +23 -0
- package/dist/components/hx-table/hx-tbody.d.ts.map +1 -0
- package/dist/components/hx-table/hx-td.d.ts +46 -0
- package/dist/components/hx-table/hx-td.d.ts.map +1 -0
- package/dist/components/hx-table/hx-tfoot.d.ts +23 -0
- package/dist/components/hx-table/hx-tfoot.d.ts.map +1 -0
- package/dist/components/hx-table/hx-th.d.ts +61 -0
- package/dist/components/hx-table/hx-th.d.ts.map +1 -0
- package/dist/components/hx-table/hx-thead.d.ts +23 -0
- package/dist/components/hx-table/hx-thead.d.ts.map +1 -0
- package/dist/components/hx-table/hx-tr.d.ts +33 -0
- package/dist/components/hx-table/hx-tr.d.ts.map +1 -0
- package/dist/components/hx-table/index.d.ts +9 -0
- package/dist/components/hx-table/index.d.ts.map +1 -0
- package/dist/components/hx-table/index.js +11 -0
- package/dist/components/hx-table/index.js.map +1 -0
- package/dist/components/hx-tabs/hx-tab-panel.d.ts +1 -1
- package/dist/components/hx-tabs/hx-tab.d.ts +1 -1
- package/dist/components/hx-tabs/hx-tabs.d.ts +1 -1
- 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 +1 -1
- package/dist/components/hx-text/hx-text.d.ts +1 -1
- package/dist/components/hx-text-input/hx-text-input.d.ts +2 -1
- 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 +15 -1
- 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 +1 -1
- package/dist/components/hx-time-picker/hx-time-picker.d.ts +23 -2
- package/dist/components/hx-time-picker/hx-time-picker.d.ts.map +1 -1
- package/dist/components/hx-time-picker/index.js +1 -1
- package/dist/components/hx-toast/hx-toast-stack.d.ts +36 -0
- package/dist/components/hx-toast/hx-toast-stack.d.ts.map +1 -0
- package/dist/components/hx-toast/hx-toast.d.ts +1 -53
- package/dist/components/hx-toast/hx-toast.d.ts.map +1 -1
- package/dist/components/hx-toast/index.d.ts +6 -2
- package/dist/components/hx-toast/index.d.ts.map +1 -1
- package/dist/components/hx-toast/index.js +1 -1
- package/dist/components/hx-toast/toast-factory.d.ts +25 -0
- package/dist/components/hx-toast/toast-factory.d.ts.map +1 -0
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts +2 -1
- 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 +2 -46
- 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 +1 -1
- 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 +51 -1
- package/dist/components/hx-tree-view/hx-tree-item.d.ts.map +1 -1
- package/dist/components/hx-tree-view/hx-tree-view.d.ts +16 -1
- 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/components/hx-visually-hidden/hx-visually-hidden.d.ts +1 -1
- package/dist/index.d.ts +20 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +168 -154
- package/dist/index.js.map +1 -1
- package/dist/shared/body-scroll-lock-VBa5TFP-.js +12 -0
- package/dist/shared/body-scroll-lock-VBa5TFP-.js.map +1 -0
- package/dist/shared/dev-warn-YlwPHjtX.js +6 -0
- package/dist/shared/dev-warn-YlwPHjtX.js.map +1 -0
- package/dist/shared/{hx-accordion-D95XSAft.js → hx-accordion-Cyswa6J3.js} +46 -43
- package/dist/shared/hx-accordion-Cyswa6J3.js.map +1 -0
- package/dist/shared/{hx-action-bar-B4i9tBCP.js → hx-action-bar-we_WJety.js} +41 -40
- package/dist/shared/hx-action-bar-we_WJety.js.map +1 -0
- package/dist/shared/{hx-alert-BQpT4gL3.js → hx-alert-Cg-zxRiU.js} +2 -2
- package/dist/shared/hx-alert-Cg-zxRiU.js.map +1 -0
- package/dist/shared/{hx-avatar-yHjmNdtf.js → hx-avatar-Cep6Urm3.js} +62 -65
- package/dist/shared/hx-avatar-Cep6Urm3.js.map +1 -0
- package/dist/shared/hx-banner-lxAIJ2kR.js +349 -0
- package/dist/shared/hx-banner-lxAIJ2kR.js.map +1 -0
- package/dist/shared/{hx-breadcrumb-item-DtSxRZ_W.js → hx-breadcrumb-item-C0rz0fzV.js} +46 -44
- package/dist/shared/hx-breadcrumb-item-C0rz0fzV.js.map +1 -0
- package/dist/shared/{hx-button-CtiJsmOg.js → hx-button-Cbhqpm5i.js} +111 -28
- package/dist/shared/hx-button-Cbhqpm5i.js.map +1 -0
- package/dist/shared/{hx-button-group-BMV5qFs4.js → hx-button-group-CWjWv-wS.js} +10 -10
- package/dist/shared/hx-button-group-CWjWv-wS.js.map +1 -0
- package/dist/shared/{hx-card-DAkEfpJd.js → hx-card-Bg4W4uXC.js} +16 -16
- package/dist/shared/hx-card-Bg4W4uXC.js.map +1 -0
- package/dist/shared/{hx-carousel-item-C2yBnM0r.js → hx-carousel-item-BKpmFbUT.js} +101 -63
- package/dist/shared/hx-carousel-item-BKpmFbUT.js.map +1 -0
- package/dist/shared/hx-checkbox-BMayOpAM.js.map +1 -1
- package/dist/shared/{hx-checkbox-group-DTS9iT4b.js → hx-checkbox-group-ydUdV9Sx.js} +7 -7
- package/dist/shared/hx-checkbox-group-ydUdV9Sx.js.map +1 -0
- package/dist/shared/{hx-code-snippet-DdEqy-1B.js → hx-code-snippet-B4hV7rWG.js} +65 -53
- package/dist/shared/hx-code-snippet-B4hV7rWG.js.map +1 -0
- package/dist/shared/{hx-color-picker-K2x_dyeG.js → hx-color-picker-BvfJ_h16.js} +100 -90
- package/dist/shared/hx-color-picker-BvfJ_h16.js.map +1 -0
- package/dist/shared/{hx-combobox-DjMigccw.js → hx-combobox-BBi3izKJ.js} +80 -44
- package/dist/shared/hx-combobox-BBi3izKJ.js.map +1 -0
- package/dist/shared/hx-container-DLUKnTi9.js.map +1 -1
- package/dist/shared/{hx-copy-button-BXL1xkxb.js → hx-copy-button-CLBA31to.js} +45 -50
- package/dist/shared/hx-copy-button-CLBA31to.js.map +1 -0
- package/dist/shared/hx-counter-D-1NXzGs.js +138 -0
- package/dist/shared/hx-counter-D-1NXzGs.js.map +1 -0
- package/dist/shared/{hx-data-table-D3NZvc3P.js → hx-data-table-DNiDVWR2.js} +100 -95
- package/dist/shared/hx-data-table-DNiDVWR2.js.map +1 -0
- package/dist/shared/{hx-date-picker-CIHwx9b3.js → hx-date-picker-D7yCK0nk.js} +17 -12
- package/dist/shared/hx-date-picker-D7yCK0nk.js.map +1 -0
- package/dist/shared/{hx-dialog-e4CSD8xX.js → hx-dialog-Z7Ou_AZ9.js} +37 -36
- package/dist/shared/hx-dialog-Z7Ou_AZ9.js.map +1 -0
- package/dist/shared/hx-divider-XgWIz4Mr.js.map +1 -1
- package/dist/shared/{hx-drawer-bTF0nbrg.js → hx-drawer-Dk-_xzy0.js} +59 -58
- package/dist/shared/hx-drawer-Dk-_xzy0.js.map +1 -0
- package/dist/shared/hx-dropdown-DnjLnkTj.js.map +1 -1
- package/dist/shared/{hx-field-Dz-7M_SC.js → hx-field-CDP8EXuj.js} +22 -19
- package/dist/shared/hx-field-CDP8EXuj.js.map +1 -0
- package/dist/shared/{hx-file-upload-DnYiIhyN.js → hx-file-upload-CUORgnKc.js} +17 -14
- package/dist/shared/hx-file-upload-CUORgnKc.js.map +1 -0
- package/dist/shared/{hx-form-BJeLK34m.js → hx-form-BFv_N1dm.js} +9 -1
- package/dist/shared/{hx-form-BJeLK34m.js.map → hx-form-BFv_N1dm.js.map} +1 -1
- package/dist/shared/hx-help-text-DaOPN1iB.js.map +1 -1
- package/dist/shared/{hx-icon-button-C_fsUJW4.js → hx-icon-button-C83bCR0K.js} +2 -4
- package/dist/shared/hx-icon-button-C83bCR0K.js.map +1 -0
- package/dist/shared/{hx-list-CF-AAnp-.js → hx-list-CdRNgeoP.js} +7 -9
- package/dist/shared/{hx-list-CF-AAnp-.js.map → hx-list-CdRNgeoP.js.map} +1 -1
- package/dist/shared/{hx-menu-divider-Buc5XA9E.js → hx-menu-divider-11Dp2VfM.js} +50 -48
- package/dist/shared/hx-menu-divider-11Dp2VfM.js.map +1 -0
- package/dist/shared/{hx-meter-qcXl0zCL.js → hx-meter-UinDQjl6.js} +43 -37
- package/dist/shared/hx-meter-UinDQjl6.js.map +1 -0
- package/dist/shared/{hx-nav-CWwByFdq.js → hx-nav-DSpwWYUX.js} +81 -81
- package/dist/shared/hx-nav-DSpwWYUX.js.map +1 -0
- package/dist/shared/{hx-nav-item-DItaMWl0.js → hx-nav-item-D54-5eUM.js} +12 -12
- package/dist/shared/hx-nav-item-D54-5eUM.js.map +1 -0
- package/dist/shared/{hx-number-input-CS6_w1lT.js → hx-number-input-BP6TIA92.js} +5 -1
- package/dist/shared/hx-number-input-BP6TIA92.js.map +1 -0
- package/dist/shared/{hx-overflow-menu-CAS1Mlus.js → hx-overflow-menu-C7k5wlZy.js} +39 -34
- package/dist/shared/hx-overflow-menu-C7k5wlZy.js.map +1 -0
- package/dist/shared/{hx-pagination-DNFgXQm3.js → hx-pagination-BQ0cLTuB.js} +65 -62
- package/dist/shared/hx-pagination-BQ0cLTuB.js.map +1 -0
- package/dist/shared/{hx-popover-BjAyLbzp.js → hx-popover-BQsgrJCW.js} +7 -7
- package/dist/shared/hx-popover-BQsgrJCW.js.map +1 -0
- package/dist/shared/{hx-progress-bar-b3_m1hna.js → hx-progress-bar-C_mdPVF-.js} +61 -52
- package/dist/shared/hx-progress-bar-C_mdPVF-.js.map +1 -0
- package/dist/shared/{hx-progress-ring-wOSv2y_I.js → hx-progress-ring-BHJBaXNk.js} +2 -4
- package/dist/shared/hx-progress-ring-BHJBaXNk.js.map +1 -0
- package/dist/shared/{hx-radio-CGtFKls2.js → hx-radio-Bqyi8re3.js} +44 -12
- package/dist/shared/hx-radio-Bqyi8re3.js.map +1 -0
- package/dist/shared/{hx-rating-C4kTOyHF.js → hx-rating-Y_t7Z4qb.js} +104 -67
- package/dist/shared/hx-rating-Y_t7Z4qb.js.map +1 -0
- package/dist/shared/{hx-select-D9bYJcDv.js → hx-select-BBae2LqN.js} +16 -10
- package/dist/shared/hx-select-BBae2LqN.js.map +1 -0
- package/dist/shared/{hx-slider-Duzmuid9.js → hx-slider-CpnxH2UP.js} +9 -5
- package/dist/shared/{hx-slider-Duzmuid9.js.map → hx-slider-CpnxH2UP.js.map} +1 -1
- package/dist/shared/{hx-split-button-DhncgAtZ.js → hx-split-button-BvwoG8h2.js} +14 -13
- package/dist/shared/hx-split-button-BvwoG8h2.js.map +1 -0
- package/dist/shared/hx-split-panel-Cxkeauwe.js.map +1 -1
- package/dist/shared/hx-stat-C2wfph8W.js +212 -0
- package/dist/shared/hx-stat-C2wfph8W.js.map +1 -0
- package/dist/shared/{hx-step-nMT0fHEn.js → hx-step-DYoIumpR.js} +29 -29
- package/dist/shared/hx-step-DYoIumpR.js.map +1 -0
- package/dist/shared/{hx-structured-list-CMja1VXz.js → hx-structured-list-CMWllxGg.js} +23 -17
- package/dist/shared/{hx-structured-list-CMja1VXz.js.map → hx-structured-list-CMWllxGg.js.map} +1 -1
- package/dist/shared/{hx-switch-BPvIcDpM.js → hx-switch-DkKchcuP.js} +8 -3
- package/dist/shared/{hx-switch-BPvIcDpM.js.map → hx-switch-DkKchcuP.js.map} +1 -1
- package/dist/shared/{hx-tab-panel-C7h5lRpw.js → hx-tab-panel-CHB0u1zF.js} +91 -85
- package/dist/shared/hx-tab-panel-CHB0u1zF.js.map +1 -0
- package/dist/shared/hx-td-CVwCGBYf.js +604 -0
- package/dist/shared/hx-td-CVwCGBYf.js.map +1 -0
- package/dist/shared/{hx-text-input-BUMgOQHX.js → hx-text-input-BrCjo4fJ.js} +5 -1
- package/dist/shared/hx-text-input-BrCjo4fJ.js.map +1 -0
- package/dist/shared/{hx-textarea-B_nmxzhC.js → hx-textarea-BsQdB1Rk.js} +51 -18
- package/dist/shared/hx-textarea-BsQdB1Rk.js.map +1 -0
- package/dist/shared/{hx-time-picker-a-BCkecJ.js → hx-time-picker-DRRAFuVd.js} +62 -54
- package/dist/shared/hx-time-picker-DRRAFuVd.js.map +1 -0
- package/dist/shared/{hx-toggle-button--xCXWRJW.js → hx-toggle-button-D4F1soEM.js} +34 -22
- package/dist/shared/{hx-toggle-button--xCXWRJW.js.map → hx-toggle-button-D4F1soEM.js.map} +1 -1
- package/dist/shared/{hx-tooltip-DN6lMlP5.js → hx-tooltip-Bk1iQRHs.js} +23 -23
- package/dist/shared/hx-tooltip-Bk1iQRHs.js.map +1 -0
- package/dist/shared/{hx-top-nav-8lDKNZUj.js → hx-top-nav-DzW7XLv-.js} +42 -29
- package/dist/shared/{hx-top-nav-8lDKNZUj.js.map → hx-top-nav-DzW7XLv-.js.map} +1 -1
- package/dist/shared/{hx-tree-item-Cesh_du5.js → hx-tree-item-DdH6RbMs.js} +170 -111
- package/dist/shared/hx-tree-item-DdH6RbMs.js.map +1 -0
- package/dist/shared/{hx-toast-ikwh9Y03.js → toast-factory-B8jicczW.js} +69 -66
- package/dist/shared/toast-factory-B8jicczW.js.map +1 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/aria-analyzer.d.ts +12 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/aria-analyzer.d.ts.map +1 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/focus-analyzer.d.ts +13 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/focus-analyzer.d.ts.map +1 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/form-analyzer.d.ts +13 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/form-analyzer.d.ts.map +1 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/keyboard-analyzer.d.ts +12 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/keyboard-analyzer.d.ts.map +1 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/label-analyzer.d.ts +13 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/label-analyzer.d.ts.map +1 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/motion-analyzer.d.ts +12 -0
- package/dist/tools/cem-a11y-analyzer/analyzers/motion-analyzer.d.ts.map +1 -0
- package/dist/tools/cem-a11y-analyzer/index.d.ts +14 -0
- package/dist/tools/cem-a11y-analyzer/index.d.ts.map +1 -0
- package/dist/tools/cem-a11y-analyzer/reporter.d.ts +6 -0
- package/dist/tools/cem-a11y-analyzer/reporter.d.ts.map +1 -0
- package/dist/tools/cem-a11y-analyzer/scorer.d.ts +22 -0
- package/dist/tools/cem-a11y-analyzer/scorer.d.ts.map +1 -0
- package/dist/tools/cem-a11y-analyzer/types.d.ts +171 -0
- package/dist/tools/cem-a11y-analyzer/types.d.ts.map +1 -0
- package/dist/utils/body-scroll-lock.d.ts +34 -0
- package/dist/utils/body-scroll-lock.d.ts.map +1 -0
- package/dist/utils/dev-warn.d.ts +19 -0
- package/dist/utils/dev-warn.d.ts.map +1 -0
- package/package.json +33 -27
- package/dist/shared/hx-accordion-D95XSAft.js.map +0 -1
- package/dist/shared/hx-action-bar-B4i9tBCP.js.map +0 -1
- package/dist/shared/hx-alert-BQpT4gL3.js.map +0 -1
- package/dist/shared/hx-avatar-yHjmNdtf.js.map +0 -1
- package/dist/shared/hx-breadcrumb-item-DtSxRZ_W.js.map +0 -1
- package/dist/shared/hx-button-CtiJsmOg.js.map +0 -1
- package/dist/shared/hx-button-group-BMV5qFs4.js.map +0 -1
- package/dist/shared/hx-card-DAkEfpJd.js.map +0 -1
- package/dist/shared/hx-carousel-item-C2yBnM0r.js.map +0 -1
- package/dist/shared/hx-checkbox-group-DTS9iT4b.js.map +0 -1
- package/dist/shared/hx-code-snippet-DdEqy-1B.js.map +0 -1
- package/dist/shared/hx-color-picker-K2x_dyeG.js.map +0 -1
- package/dist/shared/hx-combobox-DjMigccw.js.map +0 -1
- package/dist/shared/hx-copy-button-BXL1xkxb.js.map +0 -1
- package/dist/shared/hx-data-table-D3NZvc3P.js.map +0 -1
- package/dist/shared/hx-date-picker-CIHwx9b3.js.map +0 -1
- package/dist/shared/hx-dialog-e4CSD8xX.js.map +0 -1
- package/dist/shared/hx-drawer-bTF0nbrg.js.map +0 -1
- package/dist/shared/hx-field-Dz-7M_SC.js.map +0 -1
- package/dist/shared/hx-file-upload-DnYiIhyN.js.map +0 -1
- package/dist/shared/hx-icon-button-C_fsUJW4.js.map +0 -1
- package/dist/shared/hx-menu-divider-Buc5XA9E.js.map +0 -1
- package/dist/shared/hx-meter-qcXl0zCL.js.map +0 -1
- package/dist/shared/hx-nav-CWwByFdq.js.map +0 -1
- package/dist/shared/hx-nav-item-DItaMWl0.js.map +0 -1
- package/dist/shared/hx-number-input-CS6_w1lT.js.map +0 -1
- package/dist/shared/hx-overflow-menu-CAS1Mlus.js.map +0 -1
- package/dist/shared/hx-pagination-DNFgXQm3.js.map +0 -1
- package/dist/shared/hx-popover-BjAyLbzp.js.map +0 -1
- package/dist/shared/hx-progress-bar-b3_m1hna.js.map +0 -1
- package/dist/shared/hx-progress-ring-wOSv2y_I.js.map +0 -1
- package/dist/shared/hx-radio-CGtFKls2.js.map +0 -1
- package/dist/shared/hx-rating-C4kTOyHF.js.map +0 -1
- package/dist/shared/hx-select-D9bYJcDv.js.map +0 -1
- package/dist/shared/hx-split-button-DhncgAtZ.js.map +0 -1
- package/dist/shared/hx-step-nMT0fHEn.js.map +0 -1
- package/dist/shared/hx-tab-panel-C7h5lRpw.js.map +0 -1
- package/dist/shared/hx-text-input-BUMgOQHX.js.map +0 -1
- package/dist/shared/hx-textarea-B_nmxzhC.js.map +0 -1
- package/dist/shared/hx-time-picker-a-BCkecJ.js.map +0 -1
- package/dist/shared/hx-toast-ikwh9Y03.js.map +0 -1
- package/dist/shared/hx-tooltip-DN6lMlP5.js.map +0 -1
- package/dist/shared/hx-tree-item-Cesh_du5.js.map +0 -1
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
import { css as d, LitElement as b, nothing as g, html as n } from "lit";
|
|
2
|
+
import { property as i, customElement as v } from "lit/decorators.js";
|
|
3
|
+
import { tokenStyles as O } from "@helixui/tokens/lit";
|
|
4
|
+
import { ifDefined as f } from "lit/directives/if-defined.js";
|
|
5
|
+
const P = d`
|
|
6
|
+
:host {
|
|
7
|
+
display: block;
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
font-family: var(--hx-font-family-sans, sans-serif);
|
|
10
|
+
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* ─── Scroll Wrapper ─── */
|
|
14
|
+
|
|
15
|
+
.table-wrapper {
|
|
16
|
+
min-width: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* ─── Table ─── */
|
|
21
|
+
|
|
22
|
+
table {
|
|
23
|
+
border-collapse: collapse;
|
|
24
|
+
border-spacing: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([full-width]) table {
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* ─── Caption ─── */
|
|
32
|
+
|
|
33
|
+
caption {
|
|
34
|
+
caption-side: top;
|
|
35
|
+
text-align: left;
|
|
36
|
+
padding: var(--hx-space-2, 0.5rem) var(--hx-space-4, 1rem);
|
|
37
|
+
font-weight: var(--hx-font-weight-semibold, 600);
|
|
38
|
+
color: var(--hx-table-header-color, var(--hx-color-neutral-700, #334155));
|
|
39
|
+
font-size: var(--hx-font-size-base, 1rem);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* ─── Slotted sub-component styling ─── */
|
|
43
|
+
|
|
44
|
+
/*
|
|
45
|
+
* ::slotted() only matches DIRECT slot assignees. hx-table's direct
|
|
46
|
+
* slot children are hx-thead, hx-tbody, and hx-tfoot — never hx-tr,
|
|
47
|
+
* hx-th, or hx-td. CSS custom properties inherit through shadow DOM
|
|
48
|
+
* boundaries, so variables set on section elements cascade to their
|
|
49
|
+
* slotted row and cell descendants automatically.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/* Header background via CSS vars that cascade through display:contents */
|
|
53
|
+
::slotted(hx-thead) {
|
|
54
|
+
--_hx-table-cell-bg: var(--hx-table-header-bg, var(--hx-color-neutral-50, #f8fafc));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Striped variant: set stripe signal on hx-tbody (direct slotted child) so hx-tbody can apply to even rows */
|
|
58
|
+
:host([variant='striped']) ::slotted(hx-tbody) {
|
|
59
|
+
--_hx-table-row-stripe-bg: var(--hx-table-stripe-bg, var(--hx-color-neutral-50, #f8fafc));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Hover variant: set hover bg variable on direct slotted section elements */
|
|
63
|
+
:host([variant='hover']) ::slotted(hx-tbody),
|
|
64
|
+
:host([variant='hover']) ::slotted(hx-thead),
|
|
65
|
+
:host([variant='striped']) ::slotted(hx-tbody),
|
|
66
|
+
:host([variant='striped']) ::slotted(hx-thead),
|
|
67
|
+
:host([variant='default']) ::slotted(hx-tbody),
|
|
68
|
+
:host([variant='default']) ::slotted(hx-thead) {
|
|
69
|
+
--_hx-table-row-hover-bg: var(--hx-table-row-hover-bg, var(--hx-color-neutral-50, #f8fafc));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Compact variant: reduced padding signal set on section elements that cascade to cells */
|
|
73
|
+
:host([variant='compact']) ::slotted(hx-thead),
|
|
74
|
+
:host([variant='compact']) ::slotted(hx-tbody),
|
|
75
|
+
:host([variant='compact']) ::slotted(hx-tfoot) {
|
|
76
|
+
--_hx-table-cell-padding: var(--hx-space-2, 0.5rem) var(--hx-space-3, 0.75rem);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* ─── Sticky Header ─── */
|
|
80
|
+
|
|
81
|
+
:host([sticky-header]) ::slotted(hx-thead) {
|
|
82
|
+
--_hx-table-th-position: sticky;
|
|
83
|
+
--_hx-table-th-top: 0;
|
|
84
|
+
--_hx-table-th-z-index: 1;
|
|
85
|
+
--_hx-table-th-bg: var(--hx-table-header-bg, var(--hx-color-neutral-50, #f8fafc));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* ─── Focus ─── */
|
|
89
|
+
|
|
90
|
+
::slotted(:focus-visible) {
|
|
91
|
+
outline: var(--hx-focus-ring-width, 2px) solid
|
|
92
|
+
var(--hx-focus-ring-color, var(--hx-color-primary-500, #2563eb));
|
|
93
|
+
outline-offset: var(--hx-focus-ring-offset, -2px);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* ─── Dark Mode ─── */
|
|
97
|
+
|
|
98
|
+
@media (prefers-color-scheme: dark) {
|
|
99
|
+
:host {
|
|
100
|
+
--hx-table-border-color: var(--hx-color-neutral-700, #334155);
|
|
101
|
+
--hx-table-header-bg: var(--hx-color-neutral-800, #1e293b);
|
|
102
|
+
--hx-table-header-color: var(--hx-color-neutral-200, #e2e8f0);
|
|
103
|
+
--hx-table-cell-color: var(--hx-color-neutral-100, #f1f5f9);
|
|
104
|
+
--hx-table-row-hover-bg: var(--hx-color-neutral-700, #334155);
|
|
105
|
+
--hx-table-stripe-bg: var(--hx-color-neutral-800, #1e293b);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* ─── Responsive Mobile Card Layout ─── */
|
|
110
|
+
|
|
111
|
+
@media (max-width: 768px) {
|
|
112
|
+
.table-wrapper {
|
|
113
|
+
overflow-x: visible;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* ─── Reduced Motion ─── */
|
|
118
|
+
|
|
119
|
+
@media (prefers-reduced-motion: reduce) {
|
|
120
|
+
::slotted(*) {
|
|
121
|
+
transition: none !important;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
`;
|
|
125
|
+
d`
|
|
126
|
+
:host {
|
|
127
|
+
display: contents;
|
|
128
|
+
}
|
|
129
|
+
`;
|
|
130
|
+
d`
|
|
131
|
+
:host {
|
|
132
|
+
display: contents;
|
|
133
|
+
}
|
|
134
|
+
`;
|
|
135
|
+
const D = d`
|
|
136
|
+
:host {
|
|
137
|
+
display: contents;
|
|
138
|
+
}
|
|
139
|
+
`;
|
|
140
|
+
var C = Object.defineProperty, H = Object.getOwnPropertyDescriptor, x = (r, e, l, o) => {
|
|
141
|
+
for (var t = o > 1 ? void 0 : o ? H(e, l) : e, a = r.length - 1, s; a >= 0; a--)
|
|
142
|
+
(s = r[a]) && (t = (o ? s(e, l, t) : s(t)) || t);
|
|
143
|
+
return o && t && C(e, l, t), t;
|
|
144
|
+
};
|
|
145
|
+
let h = class extends b {
|
|
146
|
+
constructor() {
|
|
147
|
+
super(...arguments), this.label = "", this.caption = "", this.variant = "default", this.stickyHeader = !1, this.fullWidth = !0;
|
|
148
|
+
}
|
|
149
|
+
// ─── Lifecycle ───
|
|
150
|
+
willUpdate(r) {
|
|
151
|
+
r.has("label") && !this.label && r.get("label");
|
|
152
|
+
}
|
|
153
|
+
// ─── Render ───
|
|
154
|
+
render() {
|
|
155
|
+
const r = this.caption || this.querySelector('[slot="caption"]') !== null;
|
|
156
|
+
return n`
|
|
157
|
+
<div class="table-wrapper">
|
|
158
|
+
<!-- role="table" is required: sub-components use display:contents which can confuse assistive technology in Shadow DOM -->
|
|
159
|
+
<table part="table" role="table" aria-label=${this.label || g}>
|
|
160
|
+
${r ? n`<caption part="caption">
|
|
161
|
+
<slot name="caption">${this.caption}</slot>
|
|
162
|
+
</caption>` : g}
|
|
163
|
+
<slot></slot>
|
|
164
|
+
</table>
|
|
165
|
+
</div>
|
|
166
|
+
`;
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
h.styles = [O, P];
|
|
170
|
+
x([
|
|
171
|
+
i({ type: String })
|
|
172
|
+
], h.prototype, "label", 2);
|
|
173
|
+
x([
|
|
174
|
+
i({ type: String })
|
|
175
|
+
], h.prototype, "caption", 2);
|
|
176
|
+
x([
|
|
177
|
+
i({ type: String, reflect: !0 })
|
|
178
|
+
], h.prototype, "variant", 2);
|
|
179
|
+
x([
|
|
180
|
+
i({ type: Boolean, reflect: !0, attribute: "sticky-header" })
|
|
181
|
+
], h.prototype, "stickyHeader", 2);
|
|
182
|
+
x([
|
|
183
|
+
i({ type: Boolean, reflect: !0, attribute: "full-width" })
|
|
184
|
+
], h.prototype, "fullWidth", 2);
|
|
185
|
+
h = x([
|
|
186
|
+
v("hx-table")
|
|
187
|
+
], h);
|
|
188
|
+
var j = Object.getOwnPropertyDescriptor, T = (r, e, l, o) => {
|
|
189
|
+
for (var t = o > 1 ? void 0 : o ? j(e, l) : e, a = r.length - 1, s; a >= 0; a--)
|
|
190
|
+
(s = r[a]) && (t = s(t) || t);
|
|
191
|
+
return t;
|
|
192
|
+
};
|
|
193
|
+
let w = class extends b {
|
|
194
|
+
render() {
|
|
195
|
+
return n`<thead part="thead" role="rowgroup">
|
|
196
|
+
<slot></slot>
|
|
197
|
+
</thead>`;
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
w.styles = [D];
|
|
201
|
+
w = T([
|
|
202
|
+
v("hx-thead")
|
|
203
|
+
], w);
|
|
204
|
+
var B = Object.getOwnPropertyDescriptor, z = (r, e, l, o) => {
|
|
205
|
+
for (var t = o > 1 ? void 0 : o ? B(e, l) : e, a = r.length - 1, s; a >= 0; a--)
|
|
206
|
+
(s = r[a]) && (t = s(t) || t);
|
|
207
|
+
return t;
|
|
208
|
+
};
|
|
209
|
+
let _ = class extends b {
|
|
210
|
+
render() {
|
|
211
|
+
return n`<tbody part="tbody" role="rowgroup">
|
|
212
|
+
<slot></slot>
|
|
213
|
+
</tbody>`;
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
_.styles = [
|
|
217
|
+
d`
|
|
218
|
+
:host {
|
|
219
|
+
display: contents;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/*
|
|
223
|
+
* Striped rows: only applies when the parent hx-table sets
|
|
224
|
+
* --_hx-table-row-stripe-bg (via variant="striped"). Falls back
|
|
225
|
+
* to transparent so non-striped variants are unaffected.
|
|
226
|
+
*/
|
|
227
|
+
::slotted(hx-tr:nth-child(even)) {
|
|
228
|
+
--_hx-table-row-bg: var(--_hx-table-row-stripe-bg, transparent);
|
|
229
|
+
}
|
|
230
|
+
`
|
|
231
|
+
];
|
|
232
|
+
_ = z([
|
|
233
|
+
v("hx-tbody")
|
|
234
|
+
], _);
|
|
235
|
+
var M = Object.getOwnPropertyDescriptor, L = (r, e, l, o) => {
|
|
236
|
+
for (var t = o > 1 ? void 0 : o ? M(e, l) : e, a = r.length - 1, s; a >= 0; a--)
|
|
237
|
+
(s = r[a]) && (t = s(t) || t);
|
|
238
|
+
return t;
|
|
239
|
+
};
|
|
240
|
+
let S = class extends b {
|
|
241
|
+
render() {
|
|
242
|
+
return n`<tfoot part="tfoot" role="rowgroup">
|
|
243
|
+
<slot></slot>
|
|
244
|
+
</tfoot>`;
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
S.styles = [D];
|
|
248
|
+
S = L([
|
|
249
|
+
v("hx-tfoot")
|
|
250
|
+
], S);
|
|
251
|
+
var A = Object.defineProperty, E = Object.getOwnPropertyDescriptor, $ = (r, e, l, o) => {
|
|
252
|
+
for (var t = o > 1 ? void 0 : o ? E(e, l) : e, a = r.length - 1, s; a >= 0; a--)
|
|
253
|
+
(s = r[a]) && (t = (o ? s(e, l, t) : s(t)) || t);
|
|
254
|
+
return o && t && A(e, l, t), t;
|
|
255
|
+
};
|
|
256
|
+
let y = class extends b {
|
|
257
|
+
constructor() {
|
|
258
|
+
super(...arguments), this.selected = !1, this.disabled = !1;
|
|
259
|
+
}
|
|
260
|
+
render() {
|
|
261
|
+
return n`
|
|
262
|
+
<tr
|
|
263
|
+
part="row"
|
|
264
|
+
role="row"
|
|
265
|
+
aria-selected=${this.selected ? "true" : g}
|
|
266
|
+
aria-disabled=${this.disabled ? "true" : g}
|
|
267
|
+
>
|
|
268
|
+
<slot></slot>
|
|
269
|
+
</tr>
|
|
270
|
+
`;
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
y.styles = [
|
|
274
|
+
d`
|
|
275
|
+
:host {
|
|
276
|
+
display: contents;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
tr {
|
|
280
|
+
background-color: var(--_hx-table-row-bg, transparent);
|
|
281
|
+
transition: background-color var(--hx-transition-fast, 150ms ease);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
tr:hover {
|
|
285
|
+
background-color: var(--_hx-table-row-hover-bg, var(--hx-table-row-hover-bg, transparent));
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
:host([selected]) tr {
|
|
289
|
+
background-color: var(--hx-table-row-selected-bg, var(--hx-color-primary-50, #eff6ff));
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
:host([disabled]) tr {
|
|
293
|
+
opacity: 0.5;
|
|
294
|
+
pointer-events: none;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@media (prefers-reduced-motion: reduce) {
|
|
298
|
+
tr {
|
|
299
|
+
transition: none;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
`
|
|
303
|
+
];
|
|
304
|
+
$([
|
|
305
|
+
i({ type: Boolean, reflect: !0 })
|
|
306
|
+
], y.prototype, "selected", 2);
|
|
307
|
+
$([
|
|
308
|
+
i({ type: Boolean, reflect: !0 })
|
|
309
|
+
], y.prototype, "disabled", 2);
|
|
310
|
+
y = $([
|
|
311
|
+
v("hx-tr")
|
|
312
|
+
], y);
|
|
313
|
+
var I = Object.defineProperty, N = Object.getOwnPropertyDescriptor, u = (r, e, l, o) => {
|
|
314
|
+
for (var t = o > 1 ? void 0 : o ? N(e, l) : e, a = r.length - 1, s; a >= 0; a--)
|
|
315
|
+
(s = r[a]) && (t = (o ? s(e, l, t) : s(t)) || t);
|
|
316
|
+
return o && t && I(e, l, t), t;
|
|
317
|
+
};
|
|
318
|
+
let c = class extends b {
|
|
319
|
+
constructor() {
|
|
320
|
+
super(...arguments), this.sortable = !1, this.sortDirection = "none", this.scope = "col", this.colspan = 0, this.rowspan = 0;
|
|
321
|
+
}
|
|
322
|
+
// ─── Event Handlers ───
|
|
323
|
+
_handleSort() {
|
|
324
|
+
const r = this.sortDirection === "asc" ? "desc" : "asc";
|
|
325
|
+
this.sortDirection = r, this.dispatchEvent(
|
|
326
|
+
new CustomEvent("hx-sort", {
|
|
327
|
+
bubbles: !0,
|
|
328
|
+
composed: !0,
|
|
329
|
+
detail: { direction: r }
|
|
330
|
+
})
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
// ─── Render Helpers ───
|
|
334
|
+
_renderSortIcon() {
|
|
335
|
+
const e = [
|
|
336
|
+
"sort-icon",
|
|
337
|
+
this.sortDirection !== "none" ? "sort-icon--active" : "",
|
|
338
|
+
this.sortDirection === "desc" ? "sort-icon--desc" : ""
|
|
339
|
+
].filter(Boolean).join(" ");
|
|
340
|
+
return n`
|
|
341
|
+
<span part="sort-icon" class=${e} aria-hidden="true">
|
|
342
|
+
<svg
|
|
343
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
344
|
+
viewBox="0 0 16 16"
|
|
345
|
+
fill="currentColor"
|
|
346
|
+
width="16"
|
|
347
|
+
height="16"
|
|
348
|
+
>
|
|
349
|
+
<path d="M8 3L5 7h6L8 3zM8 13l3-4H5l3 4z" fill-rule="evenodd" />
|
|
350
|
+
</svg>
|
|
351
|
+
</span>
|
|
352
|
+
`;
|
|
353
|
+
}
|
|
354
|
+
_ariaSort() {
|
|
355
|
+
return this.sortable ? this.sortDirection === "asc" ? "ascending" : this.sortDirection === "desc" ? "descending" : "none" : g;
|
|
356
|
+
}
|
|
357
|
+
_sortLabel() {
|
|
358
|
+
return this.sortDirection === "asc" ? "Sort descending" : this.sortDirection === "desc" ? "Sort ascending" : "Sort";
|
|
359
|
+
}
|
|
360
|
+
render() {
|
|
361
|
+
return n`
|
|
362
|
+
<th
|
|
363
|
+
part="header"
|
|
364
|
+
role="columnheader"
|
|
365
|
+
scope=${this.scope}
|
|
366
|
+
colspan=${f(this.colspan > 0 ? this.colspan : void 0)}
|
|
367
|
+
rowspan=${f(this.rowspan > 0 ? this.rowspan : void 0)}
|
|
368
|
+
aria-sort=${this._ariaSort()}
|
|
369
|
+
>
|
|
370
|
+
${this.sortable ? n`
|
|
371
|
+
<button class="sort-btn" @click=${this._handleSort} aria-label=${this._sortLabel()}>
|
|
372
|
+
<slot></slot>
|
|
373
|
+
${this._renderSortIcon()}
|
|
374
|
+
</button>
|
|
375
|
+
` : n`<slot></slot>`}
|
|
376
|
+
</th>
|
|
377
|
+
`;
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
c.styles = [
|
|
381
|
+
d`
|
|
382
|
+
:host {
|
|
383
|
+
display: contents;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
th {
|
|
387
|
+
padding: var(--_hx-table-cell-padding, var(--hx-space-3, 0.75rem) var(--hx-space-4, 1rem));
|
|
388
|
+
text-align: left;
|
|
389
|
+
font-weight: var(--hx-font-weight-semibold, 600);
|
|
390
|
+
color: var(--hx-table-header-color, var(--hx-color-neutral-700, #334155));
|
|
391
|
+
background-color: var(
|
|
392
|
+
--_hx-table-cell-bg,
|
|
393
|
+
var(--hx-table-header-bg, var(--hx-color-neutral-50, #f8fafc))
|
|
394
|
+
);
|
|
395
|
+
border-bottom: var(--hx-border-width-thin, 1px) solid
|
|
396
|
+
var(--hx-table-border-color, var(--hx-color-neutral-200, #e2e8f0));
|
|
397
|
+
white-space: nowrap;
|
|
398
|
+
vertical-align: middle;
|
|
399
|
+
position: var(--_hx-table-th-position, static);
|
|
400
|
+
top: var(--_hx-table-th-top, auto);
|
|
401
|
+
z-index: var(--_hx-table-th-z-index, auto);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
:host([sortable]) th {
|
|
405
|
+
cursor: pointer;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/* ─── Sort Button ─── */
|
|
409
|
+
|
|
410
|
+
.sort-btn {
|
|
411
|
+
display: inline-flex;
|
|
412
|
+
align-items: center;
|
|
413
|
+
gap: var(--hx-space-1, 0.25rem);
|
|
414
|
+
background: none;
|
|
415
|
+
border: none;
|
|
416
|
+
padding: 0;
|
|
417
|
+
font: inherit;
|
|
418
|
+
font-weight: inherit;
|
|
419
|
+
color: inherit;
|
|
420
|
+
cursor: pointer;
|
|
421
|
+
white-space: nowrap;
|
|
422
|
+
width: 100%;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.sort-btn:focus-visible {
|
|
426
|
+
outline: var(--hx-focus-ring-width, 2px) solid
|
|
427
|
+
var(--hx-focus-ring-color, var(--hx-color-primary-500, #2563eb));
|
|
428
|
+
outline-offset: var(--hx-focus-ring-offset, 2px);
|
|
429
|
+
border-radius: var(--hx-border-radius-sm, 2px);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/* ─── Sort Icon ─── */
|
|
433
|
+
|
|
434
|
+
.sort-icon {
|
|
435
|
+
display: inline-flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
flex-shrink: 0;
|
|
438
|
+
width: 1em;
|
|
439
|
+
height: 1em;
|
|
440
|
+
opacity: 0.4;
|
|
441
|
+
transition:
|
|
442
|
+
opacity var(--hx-transition-fast, 150ms ease),
|
|
443
|
+
transform var(--hx-transition-fast, 150ms ease);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.sort-icon--active {
|
|
447
|
+
opacity: 1;
|
|
448
|
+
color: var(--hx-color-primary-500, #2563eb);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.sort-icon--desc {
|
|
452
|
+
transform: rotate(180deg);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
@media (prefers-reduced-motion: reduce) {
|
|
456
|
+
.sort-icon {
|
|
457
|
+
transition: none;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/* ─── Mobile card layout ─── */
|
|
462
|
+
|
|
463
|
+
@media (max-width: 768px) {
|
|
464
|
+
/*
|
|
465
|
+
* Visually hide the header cell on mobile while keeping it in the
|
|
466
|
+
* accessibility tree. Screen readers can then associate column
|
|
467
|
+
* headers with data cells via the semantic table structure
|
|
468
|
+
* (scope="col", role="columnheader"), satisfying WCAG 2.1 AA.
|
|
469
|
+
* Using display:none would remove headers from the a11y tree entirely.
|
|
470
|
+
*/
|
|
471
|
+
th {
|
|
472
|
+
position: absolute;
|
|
473
|
+
width: 1px;
|
|
474
|
+
height: 1px;
|
|
475
|
+
padding: 0;
|
|
476
|
+
margin: -1px;
|
|
477
|
+
overflow: hidden;
|
|
478
|
+
clip: rect(0, 0, 0, 0);
|
|
479
|
+
white-space: nowrap;
|
|
480
|
+
border: 0;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
`
|
|
484
|
+
];
|
|
485
|
+
u([
|
|
486
|
+
i({ type: Boolean, reflect: !0 })
|
|
487
|
+
], c.prototype, "sortable", 2);
|
|
488
|
+
u([
|
|
489
|
+
i({ type: String, reflect: !0, attribute: "sort-direction" })
|
|
490
|
+
], c.prototype, "sortDirection", 2);
|
|
491
|
+
u([
|
|
492
|
+
i({ type: String })
|
|
493
|
+
], c.prototype, "scope", 2);
|
|
494
|
+
u([
|
|
495
|
+
i({ type: Number })
|
|
496
|
+
], c.prototype, "colspan", 2);
|
|
497
|
+
u([
|
|
498
|
+
i({ type: Number })
|
|
499
|
+
], c.prototype, "rowspan", 2);
|
|
500
|
+
c = u([
|
|
501
|
+
v("hx-th")
|
|
502
|
+
], c);
|
|
503
|
+
var R = Object.defineProperty, W = Object.getOwnPropertyDescriptor, m = (r, e, l, o) => {
|
|
504
|
+
for (var t = o > 1 ? void 0 : o ? W(e, l) : e, a = r.length - 1, s; a >= 0; a--)
|
|
505
|
+
(s = r[a]) && (t = (o ? s(e, l, t) : s(t)) || t);
|
|
506
|
+
return o && t && R(e, l, t), t;
|
|
507
|
+
};
|
|
508
|
+
let p = class extends b {
|
|
509
|
+
constructor() {
|
|
510
|
+
super(...arguments), this.align = "left", this.colspan = 0, this.rowspan = 0, this.label = "";
|
|
511
|
+
}
|
|
512
|
+
render() {
|
|
513
|
+
return n`
|
|
514
|
+
<td
|
|
515
|
+
part="cell"
|
|
516
|
+
role="cell"
|
|
517
|
+
data-label=${f(this.label || void 0)}
|
|
518
|
+
colspan=${f(this.colspan > 0 ? this.colspan : void 0)}
|
|
519
|
+
rowspan=${f(this.rowspan > 0 ? this.rowspan : void 0)}
|
|
520
|
+
>
|
|
521
|
+
<slot></slot>
|
|
522
|
+
</td>
|
|
523
|
+
`;
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
p.styles = [
|
|
527
|
+
d`
|
|
528
|
+
:host {
|
|
529
|
+
display: contents;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
td {
|
|
533
|
+
padding: var(--_hx-table-cell-padding, var(--hx-space-3, 0.75rem) var(--hx-space-4, 1rem));
|
|
534
|
+
text-align: left;
|
|
535
|
+
color: var(--hx-table-cell-color, var(--hx-color-neutral-900, #0f172a));
|
|
536
|
+
border-bottom: var(--hx-border-width-thin, 1px) solid
|
|
537
|
+
var(--hx-table-border-color, var(--hx-color-neutral-200, #e2e8f0));
|
|
538
|
+
vertical-align: middle;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
:host([align='center']) td {
|
|
542
|
+
text-align: center;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
:host([align='right']) td {
|
|
546
|
+
text-align: right;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
td:focus-visible {
|
|
550
|
+
outline: var(--hx-focus-ring-width, 2px) solid
|
|
551
|
+
var(--hx-focus-ring-color, var(--hx-color-primary-500, #2563eb));
|
|
552
|
+
outline-offset: var(--hx-focus-ring-offset, -2px);
|
|
553
|
+
border-radius: var(--hx-border-radius-sm, 2px);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/* ─── Mobile card layout ─── */
|
|
557
|
+
|
|
558
|
+
@media (max-width: 768px) {
|
|
559
|
+
:host {
|
|
560
|
+
display: block;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
td {
|
|
564
|
+
display: block;
|
|
565
|
+
text-align: right;
|
|
566
|
+
padding: var(--hx-space-2, 0.5rem) var(--hx-space-3, 0.75rem);
|
|
567
|
+
border-bottom: none;
|
|
568
|
+
position: relative;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
td::before {
|
|
572
|
+
content: attr(data-label);
|
|
573
|
+
font-weight: var(--hx-font-weight-semibold, 600);
|
|
574
|
+
float: left;
|
|
575
|
+
color: var(--hx-table-header-color, var(--hx-color-neutral-700, #334155));
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
`
|
|
579
|
+
];
|
|
580
|
+
m([
|
|
581
|
+
i({ type: String, reflect: !0 })
|
|
582
|
+
], p.prototype, "align", 2);
|
|
583
|
+
m([
|
|
584
|
+
i({ type: Number })
|
|
585
|
+
], p.prototype, "colspan", 2);
|
|
586
|
+
m([
|
|
587
|
+
i({ type: Number })
|
|
588
|
+
], p.prototype, "rowspan", 2);
|
|
589
|
+
m([
|
|
590
|
+
i({ type: String, attribute: "label" })
|
|
591
|
+
], p.prototype, "label", 2);
|
|
592
|
+
p = m([
|
|
593
|
+
v("hx-td")
|
|
594
|
+
], p);
|
|
595
|
+
export {
|
|
596
|
+
h as H,
|
|
597
|
+
_ as a,
|
|
598
|
+
p as b,
|
|
599
|
+
S as c,
|
|
600
|
+
w as d,
|
|
601
|
+
c as e,
|
|
602
|
+
y as f
|
|
603
|
+
};
|
|
604
|
+
//# sourceMappingURL=hx-td-CVwCGBYf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hx-td-CVwCGBYf.js","sources":["../../src/components/hx-table/hx-table.styles.ts","../../src/components/hx-table/hx-table.ts","../../src/components/hx-table/hx-thead.ts","../../src/components/hx-table/hx-tbody.ts","../../src/components/hx-table/hx-tfoot.ts","../../src/components/hx-table/hx-tr.ts","../../src/components/hx-table/hx-th.ts","../../src/components/hx-table/hx-td.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const helixTableStyles = css`\n :host {\n display: block;\n overflow-x: auto;\n font-family: var(--hx-font-family-sans, sans-serif);\n font-size: var(--hx-font-size-sm, 0.875rem);\n }\n\n /* ─── Scroll Wrapper ─── */\n\n .table-wrapper {\n min-width: 0;\n width: 100%;\n }\n\n /* ─── Table ─── */\n\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n :host([full-width]) table {\n width: 100%;\n }\n\n /* ─── Caption ─── */\n\n caption {\n caption-side: top;\n text-align: left;\n padding: var(--hx-space-2, 0.5rem) var(--hx-space-4, 1rem);\n font-weight: var(--hx-font-weight-semibold, 600);\n color: var(--hx-table-header-color, var(--hx-color-neutral-700, #334155));\n font-size: var(--hx-font-size-base, 1rem);\n }\n\n /* ─── Slotted sub-component styling ─── */\n\n /*\n * ::slotted() only matches DIRECT slot assignees. hx-table's direct\n * slot children are hx-thead, hx-tbody, and hx-tfoot — never hx-tr,\n * hx-th, or hx-td. CSS custom properties inherit through shadow DOM\n * boundaries, so variables set on section elements cascade to their\n * slotted row and cell descendants automatically.\n */\n\n /* Header background via CSS vars that cascade through display:contents */\n ::slotted(hx-thead) {\n --_hx-table-cell-bg: var(--hx-table-header-bg, var(--hx-color-neutral-50, #f8fafc));\n }\n\n /* Striped variant: set stripe signal on hx-tbody (direct slotted child) so hx-tbody can apply to even rows */\n :host([variant='striped']) ::slotted(hx-tbody) {\n --_hx-table-row-stripe-bg: var(--hx-table-stripe-bg, var(--hx-color-neutral-50, #f8fafc));\n }\n\n /* Hover variant: set hover bg variable on direct slotted section elements */\n :host([variant='hover']) ::slotted(hx-tbody),\n :host([variant='hover']) ::slotted(hx-thead),\n :host([variant='striped']) ::slotted(hx-tbody),\n :host([variant='striped']) ::slotted(hx-thead),\n :host([variant='default']) ::slotted(hx-tbody),\n :host([variant='default']) ::slotted(hx-thead) {\n --_hx-table-row-hover-bg: var(--hx-table-row-hover-bg, var(--hx-color-neutral-50, #f8fafc));\n }\n\n /* Compact variant: reduced padding signal set on section elements that cascade to cells */\n :host([variant='compact']) ::slotted(hx-thead),\n :host([variant='compact']) ::slotted(hx-tbody),\n :host([variant='compact']) ::slotted(hx-tfoot) {\n --_hx-table-cell-padding: var(--hx-space-2, 0.5rem) var(--hx-space-3, 0.75rem);\n }\n\n /* ─── Sticky Header ─── */\n\n :host([sticky-header]) ::slotted(hx-thead) {\n --_hx-table-th-position: sticky;\n --_hx-table-th-top: 0;\n --_hx-table-th-z-index: 1;\n --_hx-table-th-bg: var(--hx-table-header-bg, var(--hx-color-neutral-50, #f8fafc));\n }\n\n /* ─── Focus ─── */\n\n ::slotted(:focus-visible) {\n outline: var(--hx-focus-ring-width, 2px) solid\n var(--hx-focus-ring-color, var(--hx-color-primary-500, #2563eb));\n outline-offset: var(--hx-focus-ring-offset, -2px);\n }\n\n /* ─── Dark Mode ─── */\n\n @media (prefers-color-scheme: dark) {\n :host {\n --hx-table-border-color: var(--hx-color-neutral-700, #334155);\n --hx-table-header-bg: var(--hx-color-neutral-800, #1e293b);\n --hx-table-header-color: var(--hx-color-neutral-200, #e2e8f0);\n --hx-table-cell-color: var(--hx-color-neutral-100, #f1f5f9);\n --hx-table-row-hover-bg: var(--hx-color-neutral-700, #334155);\n --hx-table-stripe-bg: var(--hx-color-neutral-800, #1e293b);\n }\n }\n\n /* ─── Responsive Mobile Card Layout ─── */\n\n @media (max-width: 768px) {\n .table-wrapper {\n overflow-x: visible;\n }\n }\n\n /* ─── Reduced Motion ─── */\n\n @media (prefers-reduced-motion: reduce) {\n ::slotted(*) {\n transition: none !important;\n }\n }\n`;\n\n/**\n * Styles shared by sub-components (hx-th, hx-td) for cell layout.\n * Exported so sub-components can import them directly.\n */\nexport const helixTableCellBaseStyles = css`\n :host {\n display: contents;\n }\n`;\n\nexport const helixTableRowBaseStyles = css`\n :host {\n display: contents;\n }\n`;\n\nexport const helixTableSectionBaseStyles = css`\n :host {\n display: contents;\n }\n`;\n","import { LitElement, html, nothing } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { tokenStyles } from '@helixui/tokens/lit';\nimport { helixTableStyles } from './hx-table.styles.js';\nimport { devWarn } from '../../utils/dev-warn.js';\n\n/**\n * A semantic table container with variant styling and accessibility support.\n * Compose with `hx-thead`, `hx-tbody`, `hx-tfoot`, `hx-tr`, `hx-th`, and `hx-td`.\n *\n * @summary Semantic HTML table with variant styling, sticky header, and responsive layout.\n *\n * @tag hx-table\n *\n * @slot - Default slot for `hx-thead`, `hx-tbody`, and `hx-tfoot` sub-components.\n * @slot caption - Custom caption content rendered inside the `<caption>` element.\n *\n * @csspart table - The `<table>` element.\n * @csspart caption - The `<caption>` element.\n *\n * @cssprop [--hx-table-border-color=var(--hx-color-neutral-200, #e2e8f0)] - Cell border color.\n * @cssprop [--hx-table-header-bg=var(--hx-color-neutral-50, #f8fafc)] - Header row background.\n * @cssprop [--hx-table-header-color=var(--hx-color-neutral-700, #334155)] - Header text color.\n * @cssprop [--hx-table-cell-color=var(--hx-color-neutral-900, #0f172a)] - Cell text color.\n * @cssprop [--hx-table-row-hover-bg=var(--hx-color-neutral-50, #f8fafc)] - Row hover background.\n * @cssprop [--hx-table-stripe-bg=var(--hx-color-neutral-50, #f8fafc)] - Striped row background.\n */\n@customElement('hx-table')\nexport class HelixTable extends LitElement {\n static override styles = [tokenStyles, helixTableStyles];\n\n // ─── Public Properties ───\n\n /**\n * Accessible name for the table (WCAG 4.1.2 requirement).\n * Exposed via `aria-label` on the `<table>` element.\n * @attr label\n */\n @property({ type: String })\n label = '';\n\n /**\n * Visible caption text. When set, renders a `<caption>` element.\n * Use the `caption` slot for richer caption content.\n * @attr caption\n */\n @property({ type: String })\n caption = '';\n\n /**\n * Visual variant that controls row styling.\n * @attr variant\n */\n @property({ type: String, reflect: true })\n variant: 'default' | 'striped' | 'hover' | 'compact' = 'default';\n\n /**\n * When true, the header row stays fixed while the table body scrolls.\n * @attr sticky-header\n */\n @property({ type: Boolean, reflect: true, attribute: 'sticky-header' })\n stickyHeader = false;\n\n /**\n * When true, the table expands to fill 100% of its container width.\n * @attr full-width\n */\n @property({ type: Boolean, reflect: true, attribute: 'full-width' })\n fullWidth = true;\n\n // ─── Lifecycle ───\n\n override willUpdate(changed: Map<string, unknown>): void {\n if (changed.has('label') && !this.label && changed.get('label') !== undefined) {\n devWarn(\n 'hx-table',\n 'No accessible name provided. Set the `label` attribute so screen readers can identify this table (WCAG 4.1.2).',\n );\n }\n }\n\n // ─── Render ───\n\n override render() {\n const hasCaption = this.caption || this.querySelector('[slot=\"caption\"]') !== null;\n\n return html`\n <div class=\"table-wrapper\">\n <!-- role=\"table\" is required: sub-components use display:contents which can confuse assistive technology in Shadow DOM -->\n <table part=\"table\" role=\"table\" aria-label=${this.label || nothing}>\n ${hasCaption\n ? html`<caption part=\"caption\">\n <slot name=\"caption\">${this.caption}</slot>\n </caption>`\n : nothing}\n <slot></slot>\n </table>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'hx-table': HelixTable;\n }\n}\n","import { LitElement, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { helixTableSectionBaseStyles } from './hx-table.styles.js';\n\n/**\n * Semantic table head section. Must be a direct child of `hx-table`.\n * Contains `hx-tr` rows with `hx-th` header cells.\n *\n * @summary Table head section (`<thead>`) for use inside `hx-table`.\n *\n * @tag hx-thead\n *\n * @slot - Default slot for `hx-tr` elements.\n *\n * @csspart thead - The `<thead>` element.\n */\n@customElement('hx-thead')\nexport class HelixTableHead extends LitElement {\n static override styles = [helixTableSectionBaseStyles];\n\n override render() {\n return html`<thead part=\"thead\" role=\"rowgroup\">\n <slot></slot>\n </thead>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'hx-thead': HelixTableHead;\n }\n}\n","import { LitElement, html, css } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\n/**\n * Semantic table body section. Must be a direct child of `hx-table`.\n * Contains `hx-tr` rows with `hx-td` data cells.\n *\n * @summary Table body section (`<tbody>`) for use inside `hx-table`.\n *\n * @tag hx-tbody\n *\n * @slot - Default slot for `hx-tr` elements.\n *\n * @csspart tbody - The `<tbody>` element.\n */\n@customElement('hx-tbody')\nexport class HelixTableBody extends LitElement {\n static override styles = [\n css`\n :host {\n display: contents;\n }\n\n /*\n * Striped rows: only applies when the parent hx-table sets\n * --_hx-table-row-stripe-bg (via variant=\"striped\"). Falls back\n * to transparent so non-striped variants are unaffected.\n */\n ::slotted(hx-tr:nth-child(even)) {\n --_hx-table-row-bg: var(--_hx-table-row-stripe-bg, transparent);\n }\n `,\n ];\n\n override render() {\n return html`<tbody part=\"tbody\" role=\"rowgroup\">\n <slot></slot>\n </tbody>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'hx-tbody': HelixTableBody;\n }\n}\n","import { LitElement, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { helixTableSectionBaseStyles } from './hx-table.styles.js';\n\n/**\n * Semantic table foot section. Must be a direct child of `hx-table`.\n * Typically contains summary or totals rows.\n *\n * @summary Table foot section (`<tfoot>`) for use inside `hx-table`.\n *\n * @tag hx-tfoot\n *\n * @slot - Default slot for `hx-tr` elements.\n *\n * @csspart tfoot - The `<tfoot>` element.\n */\n@customElement('hx-tfoot')\nexport class HelixTableFoot extends LitElement {\n static override styles = [helixTableSectionBaseStyles];\n\n override render() {\n return html`<tfoot part=\"tfoot\" role=\"rowgroup\">\n <slot></slot>\n </tfoot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'hx-tfoot': HelixTableFoot;\n }\n}\n","import { LitElement, html, nothing, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\n/**\n * Semantic table row. Must be a child of `hx-thead`, `hx-tbody`, or `hx-tfoot`.\n * Contains `hx-th` or `hx-td` cells.\n *\n * @summary Table row (`<tr>`) for use inside `hx-thead`, `hx-tbody`, or `hx-tfoot`.\n *\n * @tag hx-tr\n *\n * @slot - Default slot for `hx-th` and `hx-td` elements.\n *\n * @csspart row - The `<tr>` element.\n */\n@customElement('hx-tr')\nexport class HelixTableRow extends LitElement {\n static override styles = [\n css`\n :host {\n display: contents;\n }\n\n tr {\n background-color: var(--_hx-table-row-bg, transparent);\n transition: background-color var(--hx-transition-fast, 150ms ease);\n }\n\n tr:hover {\n background-color: var(--_hx-table-row-hover-bg, var(--hx-table-row-hover-bg, transparent));\n }\n\n :host([selected]) tr {\n background-color: var(--hx-table-row-selected-bg, var(--hx-color-primary-50, #eff6ff));\n }\n\n :host([disabled]) tr {\n opacity: 0.5;\n pointer-events: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n tr {\n transition: none;\n }\n }\n `,\n ];\n\n /**\n * When true, marks the row as selected and applies selected styling.\n * @attr selected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * When true, the row is visually disabled and non-interactive.\n * @attr disabled\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n override render() {\n return html`\n <tr\n part=\"row\"\n role=\"row\"\n aria-selected=${this.selected ? 'true' : nothing}\n aria-disabled=${this.disabled ? 'true' : nothing}\n >\n <slot></slot>\n </tr>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'hx-tr': HelixTableRow;\n }\n}\n","import { LitElement, html, nothing, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\n/**\n * Detail type for `hx-sort` events dispatched from `hx-th`.\n */\nexport interface HxTableSortDetail {\n direction: 'asc' | 'desc';\n}\n\n/**\n * Semantic table header cell. Must be a child of `hx-tr`.\n * Supports sortable columns with accessible sort state.\n *\n * @summary Table header cell (`<th>`) with optional sort support.\n *\n * @tag hx-th\n *\n * @slot - Default slot for header label content.\n *\n * @fires {CustomEvent<HxTableSortDetail>} hx-sort - Dispatched when a sortable header is activated.\n *\n * @csspart header - The `<th>` element.\n * @csspart sort-icon - The sort indicator icon `<span>` inside sortable headers.\n */\n@customElement('hx-th')\nexport class HelixTableHeader extends LitElement {\n static override styles = [\n css`\n :host {\n display: contents;\n }\n\n th {\n padding: var(--_hx-table-cell-padding, var(--hx-space-3, 0.75rem) var(--hx-space-4, 1rem));\n text-align: left;\n font-weight: var(--hx-font-weight-semibold, 600);\n color: var(--hx-table-header-color, var(--hx-color-neutral-700, #334155));\n background-color: var(\n --_hx-table-cell-bg,\n var(--hx-table-header-bg, var(--hx-color-neutral-50, #f8fafc))\n );\n border-bottom: var(--hx-border-width-thin, 1px) solid\n var(--hx-table-border-color, var(--hx-color-neutral-200, #e2e8f0));\n white-space: nowrap;\n vertical-align: middle;\n position: var(--_hx-table-th-position, static);\n top: var(--_hx-table-th-top, auto);\n z-index: var(--_hx-table-th-z-index, auto);\n }\n\n :host([sortable]) th {\n cursor: pointer;\n }\n\n /* ─── Sort Button ─── */\n\n .sort-btn {\n display: inline-flex;\n align-items: center;\n gap: var(--hx-space-1, 0.25rem);\n background: none;\n border: none;\n padding: 0;\n font: inherit;\n font-weight: inherit;\n color: inherit;\n cursor: pointer;\n white-space: nowrap;\n width: 100%;\n }\n\n .sort-btn:focus-visible {\n outline: var(--hx-focus-ring-width, 2px) solid\n var(--hx-focus-ring-color, var(--hx-color-primary-500, #2563eb));\n outline-offset: var(--hx-focus-ring-offset, 2px);\n border-radius: var(--hx-border-radius-sm, 2px);\n }\n\n /* ─── Sort Icon ─── */\n\n .sort-icon {\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n width: 1em;\n height: 1em;\n opacity: 0.4;\n transition:\n opacity var(--hx-transition-fast, 150ms ease),\n transform var(--hx-transition-fast, 150ms ease);\n }\n\n .sort-icon--active {\n opacity: 1;\n color: var(--hx-color-primary-500, #2563eb);\n }\n\n .sort-icon--desc {\n transform: rotate(180deg);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .sort-icon {\n transition: none;\n }\n }\n\n /* ─── Mobile card layout ─── */\n\n @media (max-width: 768px) {\n /*\n * Visually hide the header cell on mobile while keeping it in the\n * accessibility tree. Screen readers can then associate column\n * headers with data cells via the semantic table structure\n * (scope=\"col\", role=\"columnheader\"), satisfying WCAG 2.1 AA.\n * Using display:none would remove headers from the a11y tree entirely.\n */\n th {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n }\n `,\n ];\n\n /**\n * When true, the header renders a sort button and emits `hx-sort` on activation.\n * @attr sortable\n */\n @property({ type: Boolean, reflect: true })\n sortable = false;\n\n /**\n * Current sort direction. Reflected for CSS targeting.\n * @attr sort-direction\n */\n @property({ type: String, reflect: true, attribute: 'sort-direction' })\n sortDirection: 'asc' | 'desc' | 'none' = 'none';\n\n /**\n * The `scope` attribute for the underlying `<th>` element.\n * @attr scope\n */\n @property({ type: String })\n scope: 'col' | 'row' | 'colgroup' | 'rowgroup' = 'col';\n\n /**\n * Number of columns this header spans.\n * @attr colspan\n */\n @property({ type: Number })\n colspan = 0;\n\n /**\n * Number of rows this header spans.\n * @attr rowspan\n */\n @property({ type: Number })\n rowspan = 0;\n\n // ─── Event Handlers ───\n\n private _handleSort(): void {\n const next: 'asc' | 'desc' = this.sortDirection === 'asc' ? 'desc' : 'asc';\n this.sortDirection = next;\n this.dispatchEvent(\n new CustomEvent<HxTableSortDetail>('hx-sort', {\n bubbles: true,\n composed: true,\n detail: { direction: next },\n }),\n );\n }\n\n // ─── Render Helpers ───\n\n private _renderSortIcon() {\n const isActive = this.sortDirection !== 'none';\n const iconClass = [\n 'sort-icon',\n isActive ? 'sort-icon--active' : '',\n this.sortDirection === 'desc' ? 'sort-icon--desc' : '',\n ]\n .filter(Boolean)\n .join(' ');\n\n return html`\n <span part=\"sort-icon\" class=${iconClass} aria-hidden=\"true\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 16 16\"\n fill=\"currentColor\"\n width=\"16\"\n height=\"16\"\n >\n <path d=\"M8 3L5 7h6L8 3zM8 13l3-4H5l3 4z\" fill-rule=\"evenodd\" />\n </svg>\n </span>\n `;\n }\n\n private _ariaSort(): 'ascending' | 'descending' | 'none' | typeof nothing {\n if (!this.sortable) return nothing;\n if (this.sortDirection === 'asc') return 'ascending';\n if (this.sortDirection === 'desc') return 'descending';\n return 'none';\n }\n\n private _sortLabel(): string {\n if (this.sortDirection === 'asc') return 'Sort descending';\n if (this.sortDirection === 'desc') return 'Sort ascending';\n return 'Sort';\n }\n\n override render() {\n return html`\n <th\n part=\"header\"\n role=\"columnheader\"\n scope=${this.scope}\n colspan=${ifDefined(this.colspan > 0 ? this.colspan : undefined)}\n rowspan=${ifDefined(this.rowspan > 0 ? this.rowspan : undefined)}\n aria-sort=${this._ariaSort()}\n >\n ${this.sortable\n ? html`\n <button class=\"sort-btn\" @click=${this._handleSort} aria-label=${this._sortLabel()}>\n <slot></slot>\n ${this._renderSortIcon()}\n </button>\n `\n : html`<slot></slot>`}\n </th>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'hx-th': HelixTableHeader;\n }\n}\n","import { LitElement, html, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\n/**\n * Semantic table data cell. Must be a child of `hx-tr`.\n *\n * @summary Table data cell (`<td>`) for use inside `hx-tr`.\n *\n * @tag hx-td\n *\n * @slot - Default slot for cell content.\n *\n * @csspart cell - The `<td>` element.\n *\n * @cssprop [--hx-table-cell-color=var(--hx-color-neutral-900, #0f172a)] - Cell text color.\n */\n@customElement('hx-td')\nexport class HelixTableCell extends LitElement {\n static override styles = [\n css`\n :host {\n display: contents;\n }\n\n td {\n padding: var(--_hx-table-cell-padding, var(--hx-space-3, 0.75rem) var(--hx-space-4, 1rem));\n text-align: left;\n color: var(--hx-table-cell-color, var(--hx-color-neutral-900, #0f172a));\n border-bottom: var(--hx-border-width-thin, 1px) solid\n var(--hx-table-border-color, var(--hx-color-neutral-200, #e2e8f0));\n vertical-align: middle;\n }\n\n :host([align='center']) td {\n text-align: center;\n }\n\n :host([align='right']) td {\n text-align: right;\n }\n\n td:focus-visible {\n outline: var(--hx-focus-ring-width, 2px) solid\n var(--hx-focus-ring-color, var(--hx-color-primary-500, #2563eb));\n outline-offset: var(--hx-focus-ring-offset, -2px);\n border-radius: var(--hx-border-radius-sm, 2px);\n }\n\n /* ─── Mobile card layout ─── */\n\n @media (max-width: 768px) {\n :host {\n display: block;\n }\n\n td {\n display: block;\n text-align: right;\n padding: var(--hx-space-2, 0.5rem) var(--hx-space-3, 0.75rem);\n border-bottom: none;\n position: relative;\n }\n\n td::before {\n content: attr(data-label);\n font-weight: var(--hx-font-weight-semibold, 600);\n float: left;\n color: var(--hx-table-header-color, var(--hx-color-neutral-700, #334155));\n }\n }\n `,\n ];\n\n /**\n * Horizontal alignment for cell content.\n * @attr align\n */\n @property({ type: String, reflect: true })\n align: 'left' | 'center' | 'right' = 'left';\n\n /**\n * Number of columns this cell spans.\n * @attr colspan\n */\n @property({ type: Number })\n colspan = 0;\n\n /**\n * Number of rows this cell spans.\n * @attr rowspan\n */\n @property({ type: Number })\n rowspan = 0;\n\n /**\n * Column header label for this cell. Forwarded as `data-label` on the native `<td>` for\n * the mobile card layout (`td::before { content: attr(data-label) }`) and as `aria-label`\n * so screen readers identify the column when the header row is hidden.\n * @attr label\n */\n @property({ type: String, attribute: 'label' })\n label = '';\n\n override render() {\n return html`\n <td\n part=\"cell\"\n role=\"cell\"\n data-label=${ifDefined(this.label || undefined)}\n colspan=${ifDefined(this.colspan > 0 ? this.colspan : undefined)}\n rowspan=${ifDefined(this.rowspan > 0 ? this.rowspan : undefined)}\n >\n <slot></slot>\n </td>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'hx-td': HelixTableCell;\n }\n}\n"],"names":["helixTableStyles","css","helixTableSectionBaseStyles","HelixTable","LitElement","changed","hasCaption","html","nothing","tokenStyles","__decorateClass","property","customElement","HelixTableHead","HelixTableBody","HelixTableFoot","HelixTableRow","HelixTableHeader","next","iconClass","ifDefined","HelixTableCell"],"mappings":";;;;AAEO,MAAMA,IAAmBC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6HQA;AAAA;AAAA;AAAA;AAAA;AAMDA;AAAA;AAAA;AAAA;AAAA;AAMhC,MAAMC,IAA8BD;AAAA;AAAA;AAAA;AAAA;;;;;;AC/GpC,IAAME,IAAN,cAAyBC,EAAW;AAAA,EAApC,cAAA;AAAA,UAAA,GAAA,SAAA,GAWL,KAAA,QAAQ,IAQR,KAAA,UAAU,IAOV,KAAA,UAAuD,WAOvD,KAAA,eAAe,IAOf,KAAA,YAAY;AAAA,EAAA;AAAA;AAAA,EAIH,WAAWC,GAAqC;AACvD,IAAIA,EAAQ,IAAI,OAAO,KAAK,CAAC,KAAK,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ADNE,EAAc,OAAO;AAAA,GACTS,CAAA;"}
|
|
@@ -259,6 +259,10 @@ let $ = 0, r = class extends x {
|
|
|
259
259
|
formStateRestoreCallback(e) {
|
|
260
260
|
this.value = e;
|
|
261
261
|
}
|
|
262
|
+
// Called when a parent fieldset is disabled/enabled
|
|
263
|
+
formDisabledCallback(e) {
|
|
264
|
+
this.disabled = e;
|
|
265
|
+
}
|
|
262
266
|
// ─── Event Handling ───
|
|
263
267
|
/** @internal */
|
|
264
268
|
_handleInput(e) {
|
|
@@ -437,4 +441,4 @@ r = i([
|
|
|
437
441
|
export {
|
|
438
442
|
r as H
|
|
439
443
|
};
|
|
440
|
-
//# sourceMappingURL=hx-text-input-
|
|
444
|
+
//# sourceMappingURL=hx-text-input-BrCjo4fJ.js.map
|