@helixui/library 3.1.0 → 3.2.0-next.100
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 +6407 -339
- package/dist/components/hx-accordion/hx-accordion-item.d.ts.map +1 -1
- package/dist/components/hx-accordion/hx-accordion-item.styles.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 +14 -0
- 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 +36 -0
- package/dist/components/hx-alert/hx-alert.d.ts.map +1 -1
- package/dist/components/hx-alert/hx-alert.styles.d.ts +12 -0
- 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 +17 -0
- 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 +35 -0
- package/dist/components/hx-badge/hx-badge.d.ts.map +1 -1
- package/dist/components/hx-badge/index.js +1 -1
- package/dist/components/hx-banner/hx-banner.d.ts +34 -0
- package/dist/components/hx-banner/hx-banner.d.ts.map +1 -1
- package/dist/components/hx-banner/hx-banner.styles.d.ts +12 -0
- package/dist/components/hx-banner/hx-banner.styles.d.ts.map +1 -1
- package/dist/components/hx-banner/index.js +1 -1
- package/dist/components/hx-breadcrumb/hx-breadcrumb-item.d.ts.map +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 +3 -0
- 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 +44 -7
- 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 +2 -0
- package/dist/components/hx-button-group/hx-button-group.d.ts.map +1 -1
- package/dist/components/hx-button-group/hx-button-group.styles.d.ts.map +1 -1
- package/dist/components/hx-button-group/index.js +1 -1
- package/dist/components/hx-card/hx-card.d.ts +28 -0
- package/dist/components/hx-card/hx-card.d.ts.map +1 -1
- package/dist/components/hx-card/hx-card.styles.d.ts +9 -0
- 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.d.ts +25 -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 +38 -7
- package/dist/components/hx-checkbox/hx-checkbox.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 +16 -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-clinical-status/hx-clinical-status.d.ts +37 -0
- package/dist/components/hx-clinical-status/hx-clinical-status.d.ts.map +1 -1
- package/dist/components/hx-clinical-status/hx-clinical-status.styles.d.ts.map +1 -1
- package/dist/components/hx-clinical-status/index.js +1 -1
- package/dist/components/hx-code-snippet/hx-code-snippet.d.ts +35 -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 +29 -0
- 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 +49 -0
- package/dist/components/hx-combobox/hx-combobox.d.ts.map +1 -1
- package/dist/components/hx-combobox/index.js +1 -1
- package/dist/components/hx-container/hx-container.d.ts +5 -0
- package/dist/components/hx-container/hx-container.d.ts.map +1 -1
- package/dist/components/hx-copy-button/hx-copy-button.d.ts +24 -0
- package/dist/components/hx-copy-button/hx-copy-button.d.ts.map +1 -1
- package/dist/components/hx-copy-button/hx-copy-button.styles.d.ts.map +1 -1
- package/dist/components/hx-copy-button/index.js +1 -1
- package/dist/components/hx-counter/hx-counter.d.ts +7 -0
- 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 +29 -0
- 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 +44 -0
- 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 +31 -0
- package/dist/components/hx-dialog/hx-dialog.d.ts.map +1 -1
- package/dist/components/hx-dialog/hx-dialog.styles.d.ts +10 -0
- 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 +9 -0
- 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 +30 -0
- package/dist/components/hx-drawer/hx-drawer.d.ts.map +1 -1
- package/dist/components/hx-drawer/hx-drawer.styles.d.ts +10 -0
- 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 +6 -0
- 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 +15 -0
- 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 +11 -0
- package/dist/components/hx-field-label/hx-field-label.d.ts.map +1 -1
- package/dist/components/hx-field-label/index.js +1 -1
- package/dist/components/hx-file-upload/hx-file-upload.d.ts +35 -0
- 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/index.js +1 -1
- package/dist/components/hx-grid/hx-grid.d.ts +5 -0
- package/dist/components/hx-grid/hx-grid.d.ts.map +1 -1
- package/dist/components/hx-help-text/hx-help-text.d.ts +8 -0
- package/dist/components/hx-help-text/hx-help-text.d.ts.map +1 -1
- package/dist/components/hx-help-text/index.js +1 -1
- package/dist/components/hx-icon/hx-icon.d.ts +5 -0
- 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 +27 -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 +4 -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 +15 -0
- package/dist/components/hx-link/hx-link.d.ts.map +1 -1
- package/dist/components/hx-link/index.js +1 -1
- package/dist/components/hx-list/hx-list-item.d.ts.map +1 -1
- package/dist/components/hx-list/hx-list.d.ts +3 -0
- 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.map +1 -1
- package/dist/components/hx-menu/hx-menu-item.d.ts.map +1 -1
- package/dist/components/hx-menu/hx-menu.d.ts +6 -0
- 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 +23 -0
- 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 +29 -0
- 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 +34 -0
- 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 +26 -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 +21 -0
- 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-patient-banner/hx-patient-banner.d.ts +23 -0
- package/dist/components/hx-patient-banner/hx-patient-banner.d.ts.map +1 -1
- package/dist/components/hx-patient-banner/hx-patient-banner.styles.d.ts.map +1 -1
- package/dist/components/hx-patient-banner/index.js +1 -1
- package/dist/components/hx-phi-field/hx-phi-field.d.ts +19 -5
- package/dist/components/hx-phi-field/hx-phi-field.d.ts.map +1 -1
- package/dist/components/hx-phi-field/hx-phi-field.styles.d.ts.map +1 -1
- package/dist/components/hx-phi-field/index.js +1 -1
- package/dist/components/hx-popover/hx-popover.d.ts +15 -0
- package/dist/components/hx-popover/hx-popover.d.ts.map +1 -1
- package/dist/components/hx-popover/hx-popover.styles.d.ts +9 -0
- 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 +1 -0
- package/dist/components/hx-popup/hx-popup.d.ts.map +1 -1
- package/dist/components/hx-popup/hx-popup.styles.d.ts +9 -0
- 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 +17 -0
- 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 +15 -0
- 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 +2 -0
- 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 +17 -3
- package/dist/components/hx-radio-group/hx-radio-group.d.ts.map +1 -1
- package/dist/components/hx-radio-group/hx-radio.d.ts +5 -5
- 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 +13 -0
- 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 +43 -0
- 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 +7 -5
- 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 +9 -4
- 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-skeleton/hx-skeleton.d.ts +5 -0
- package/dist/components/hx-skeleton/hx-skeleton.d.ts.map +1 -1
- package/dist/components/hx-skeleton/index.js +1 -1
- package/dist/components/hx-slider/hx-slider.d.ts +38 -0
- 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 +10 -0
- 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 +40 -1
- package/dist/components/hx-split-button/hx-split-button.d.ts.map +1 -1
- package/dist/components/hx-split-button/hx-split-button.styles.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 -0
- 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/hx-stack.d.ts +5 -0
- package/dist/components/hx-stack/hx-stack.d.ts.map +1 -1
- package/dist/components/hx-stat/hx-stat.d.ts +24 -0
- 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 -0
- 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.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 +15 -0
- 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 +7 -0
- 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 +42 -0
- package/dist/components/hx-switch/hx-switch.d.ts.map +1 -1
- package/dist/components/hx-switch/hx-switch.styles.d.ts.map +1 -1
- package/dist/components/hx-switch/index.js +1 -1
- package/dist/components/hx-table/hx-table.d.ts +20 -6
- 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-td.d.ts +1 -1
- package/dist/components/hx-table/index.js +1 -1
- package/dist/components/hx-tabs/hx-tab-panel.d.ts +2 -2
- package/dist/components/hx-tabs/hx-tab-panel.d.ts.map +1 -1
- package/dist/components/hx-tabs/hx-tab.d.ts +6 -6
- package/dist/components/hx-tabs/hx-tab.d.ts.map +1 -1
- package/dist/components/hx-tabs/hx-tabs.d.ts +12 -8
- 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 +36 -0
- package/dist/components/hx-tag/hx-tag.d.ts.map +1 -1
- package/dist/components/hx-tag/index.js +1 -1
- package/dist/components/hx-text/hx-text.d.ts +22 -0
- package/dist/components/hx-text/hx-text.d.ts.map +1 -1
- package/dist/components/hx-text/hx-text.styles.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 +18 -5
- package/dist/components/hx-text-input/hx-text-input.d.ts.map +1 -1
- package/dist/components/hx-text-input/hx-text-input.styles.d.ts +12 -0
- package/dist/components/hx-text-input/hx-text-input.styles.d.ts.map +1 -1
- package/dist/components/hx-text-input/index.js +1 -1
- package/dist/components/hx-textarea/hx-textarea.d.ts +27 -0
- 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 +3 -0
- package/dist/components/hx-theme/hx-theme.d.ts.map +1 -1
- package/dist/components/hx-theme/index.js +1 -1
- package/dist/components/hx-time-picker/hx-time-picker.d.ts +32 -0
- 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 +30 -2
- package/dist/components/hx-toast/hx-toast.d.ts.map +1 -1
- package/dist/components/hx-toast/hx-toast.styles.d.ts +10 -0
- 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 +35 -0
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts.map +1 -1
- package/dist/components/hx-toggle-button/hx-toggle-button.styles.d.ts.map +1 -1
- package/dist/components/hx-toggle-button/index.js +1 -1
- package/dist/components/hx-tooltip/hx-tooltip.d.ts +13 -0
- package/dist/components/hx-tooltip/hx-tooltip.d.ts.map +1 -1
- package/dist/components/hx-tooltip/hx-tooltip.styles.d.ts +8 -0
- package/dist/components/hx-tooltip/hx-tooltip.styles.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 +21 -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.map +1 -1
- package/dist/components/hx-tree-view/hx-tree-view.d.ts +6 -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/css/helix-all.css +1286 -889
- package/dist/css/helix-core.css +322 -167
- package/dist/css/helix-data.css +54 -46
- package/dist/css/helix-feedback.css +132 -95
- package/dist/css/helix-forms.css +499 -349
- package/dist/css/helix-layout.css +9 -12
- package/dist/css/helix-media.css +16 -12
- package/dist/css/helix-navigation.css +86 -66
- package/dist/css/helix-overlay.css +62 -56
- package/dist/css/helix-tokens.css +173 -106
- package/dist/css/helix-utility.css +57 -40
- package/dist/css/hx-action-bar.css +5 -5
- package/dist/css/hx-alert.css +27 -23
- package/dist/css/hx-avatar.css +3 -3
- package/dist/css/hx-badge.css +22 -22
- package/dist/css/hx-banner.css +31 -24
- package/dist/css/hx-button-group.css +31 -14
- package/dist/css/hx-button.css +151 -34
- package/dist/css/hx-card.css +23 -12
- package/dist/css/hx-carousel.css +16 -12
- package/dist/css/hx-checkbox-group.css +5 -5
- package/dist/css/hx-checkbox.css +19 -19
- package/dist/css/hx-clinical-status.css +28 -30
- package/dist/css/hx-code-snippet.css +26 -18
- package/dist/css/hx-color-picker.css +20 -13
- package/dist/css/hx-combobox.css +31 -31
- package/dist/css/hx-copy-button.css +6 -3
- package/dist/css/hx-counter.css +1 -1
- package/dist/css/hx-data-table.css +16 -15
- package/dist/css/hx-date-picker.css +34 -34
- package/dist/css/hx-dialog.css +31 -27
- package/dist/css/hx-divider.css +2 -2
- package/dist/css/hx-drawer.css +18 -18
- package/dist/css/hx-dropdown.css +2 -2
- package/dist/css/hx-field-label.css +3 -3
- package/dist/css/hx-field.css +6 -6
- package/dist/css/hx-file-upload.css +21 -30
- package/dist/css/hx-help-text.css +5 -5
- package/dist/css/hx-icon-button.css +46 -38
- package/dist/css/hx-image.css +3 -3
- package/dist/css/hx-link.css +9 -9
- package/dist/css/hx-list.css +1 -1
- package/dist/css/hx-menu.css +2 -2
- package/dist/css/hx-meter.css +10 -10
- package/dist/css/hx-nav.css +11 -11
- package/dist/css/hx-number-input.css +18 -18
- package/dist/css/hx-overflow-menu.css +18 -15
- package/dist/css/hx-pagination.css +15 -15
- package/dist/css/hx-patient-banner.css +17 -9
- package/dist/css/hx-phi-field.css +4 -7
- package/dist/css/hx-popover.css +7 -6
- package/dist/css/hx-progress-bar.css +7 -7
- package/dist/css/hx-progress-ring.css +6 -6
- package/dist/css/hx-radio-group.css +5 -5
- package/dist/css/hx-rating.css +5 -5
- package/dist/css/hx-select.css +18 -16
- package/dist/css/hx-side-nav.css +28 -11
- package/dist/css/hx-skeleton.css +1 -1
- package/dist/css/hx-slider.css +15 -12
- package/dist/css/hx-spinner.css +4 -4
- package/dist/css/hx-split-button.css +45 -31
- package/dist/css/hx-split-panel.css +9 -12
- package/dist/css/hx-stat.css +8 -8
- package/dist/css/hx-status-indicator.css +7 -7
- package/dist/css/hx-structured-list.css +5 -5
- package/dist/css/hx-switch.css +16 -8
- package/dist/css/hx-table.css +6 -7
- package/dist/css/hx-tabs.css +3 -3
- package/dist/css/hx-tag.css +18 -18
- package/dist/css/hx-text-input.css +139 -61
- package/dist/css/hx-text.css +9 -7
- package/dist/css/hx-textarea.css +66 -27
- package/dist/css/hx-time-picker.css +27 -21
- package/dist/css/hx-toast.css +36 -10
- package/dist/css/hx-toggle-button.css +46 -30
- package/dist/css/hx-tooltip.css +4 -3
- package/dist/css/hx-top-nav.css +8 -8
- package/dist/css/hx-tree-view.css +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/manifest.json +330 -230
- package/dist/index.js +75 -75
- package/dist/shared/forced-colors-CTEDFRGa.js +117 -0
- package/dist/shared/forced-colors-CTEDFRGa.js.map +1 -0
- package/dist/shared/{hx-accordion-Wt52OOZD.js → hx-accordion-ZVzgDzTG.js} +29 -29
- package/dist/shared/hx-accordion-ZVzgDzTG.js.map +1 -0
- package/dist/shared/{hx-action-bar-BKMADbHj.js → hx-action-bar-CitgcpGv.js} +38 -37
- package/dist/shared/hx-action-bar-CitgcpGv.js.map +1 -0
- package/dist/shared/{hx-alert-D7n94HwI.js → hx-alert-C597yHpD.js} +36 -31
- package/dist/shared/hx-alert-C597yHpD.js.map +1 -0
- package/dist/shared/{hx-avatar-iLYzu8MJ.js → hx-avatar-C9hOmlAb.js} +19 -18
- package/dist/shared/hx-avatar-C9hOmlAb.js.map +1 -0
- package/dist/shared/{hx-badge-CVCmMPyW.js → hx-badge-CQXgOXJM.js} +65 -64
- package/dist/shared/hx-badge-CQXgOXJM.js.map +1 -0
- package/dist/shared/{hx-banner-C_He7Tr4.js → hx-banner-Cxd7eFUP.js} +43 -35
- package/dist/shared/hx-banner-Cxd7eFUP.js.map +1 -0
- package/dist/shared/{hx-breadcrumb-item-CldCwD1d.js → hx-breadcrumb-item-3tKppF9h.js} +24 -26
- package/dist/shared/hx-breadcrumb-item-3tKppF9h.js.map +1 -0
- package/dist/shared/{hx-button-Ddl-T6T-.js → hx-button-9OUjJnk7.js} +172 -55
- package/dist/shared/hx-button-9OUjJnk7.js.map +1 -0
- package/dist/shared/{hx-button-group-BJOGWoMa.js → hx-button-group-BI-QBqmO.js} +45 -27
- package/dist/shared/hx-button-group-BI-QBqmO.js.map +1 -0
- package/dist/shared/{hx-card-ycveujjL.js → hx-card-qNAM2QNV.js} +49 -37
- package/dist/shared/hx-card-qNAM2QNV.js.map +1 -0
- package/dist/shared/{hx-carousel-item-D_dCv61-.js → hx-carousel-item-z1Lc24op.js} +41 -36
- package/dist/shared/hx-carousel-item-z1Lc24op.js.map +1 -0
- package/dist/shared/{hx-checkbox-DkkoWoye.js → hx-checkbox-DBD-gMoz.js} +42 -41
- package/dist/shared/hx-checkbox-DBD-gMoz.js.map +1 -0
- package/dist/shared/{hx-checkbox-group-C3poJ-Zw.js → hx-checkbox-group-C9n315Ju.js} +20 -19
- package/dist/shared/hx-checkbox-group-C9n315Ju.js.map +1 -0
- package/dist/shared/{hx-clinical-status-BS5lcddT.js → hx-clinical-status-D3XQIOqX.js} +55 -56
- package/dist/shared/hx-clinical-status-D3XQIOqX.js.map +1 -0
- package/dist/shared/{hx-code-snippet-B7wUKzyb.js → hx-code-snippet-B26RM1_C.js} +41 -32
- package/dist/shared/hx-code-snippet-B26RM1_C.js.map +1 -0
- package/dist/shared/{hx-color-picker-DBaKTVLr.js → hx-color-picker-uRc865FJ.js} +54 -46
- package/dist/shared/hx-color-picker-uRc865FJ.js.map +1 -0
- package/dist/shared/{hx-combobox-BmgYT7Ar.js → hx-combobox-ClhNRAS5.js} +46 -45
- package/dist/shared/hx-combobox-ClhNRAS5.js.map +1 -0
- package/dist/shared/hx-container-DVI7sxfX.js.map +1 -1
- package/dist/shared/{hx-copy-button-8deNUdwP.js → hx-copy-button-sUVuikyH.js} +23 -19
- package/dist/shared/hx-copy-button-sUVuikyH.js.map +1 -0
- package/dist/shared/{hx-counter-CKfl_g8K.js → hx-counter-0zYapFhf.js} +10 -9
- package/dist/shared/hx-counter-0zYapFhf.js.map +1 -0
- package/dist/shared/{hx-data-table-B6h0RPn0.js → hx-data-table-CLqVqdxr.js} +49 -47
- package/dist/shared/hx-data-table-CLqVqdxr.js.map +1 -0
- package/dist/shared/{hx-date-picker-Dq2Nb68_.js → hx-date-picker-BJm7Yrda.js} +45 -44
- package/dist/shared/hx-date-picker-BJm7Yrda.js.map +1 -0
- package/dist/shared/{hx-dialog-CvIlY0Tc.js → hx-dialog-DRN_1-Y-.js} +68 -63
- package/dist/shared/hx-dialog-DRN_1-Y-.js.map +1 -0
- package/dist/shared/{hx-divider-DwpOrzMW.js → hx-divider-CYfcUjcr.js} +18 -17
- package/dist/shared/hx-divider-CYfcUjcr.js.map +1 -0
- package/dist/shared/{hx-drawer-Cx2ZJhBe.js → hx-drawer-Y1Ui2IWJ.js} +31 -30
- package/dist/shared/hx-drawer-Y1Ui2IWJ.js.map +1 -0
- package/dist/shared/{hx-dropdown-BjDrPUq5.js → hx-dropdown-LyaRc8Rf.js} +16 -15
- package/dist/shared/hx-dropdown-LyaRc8Rf.js.map +1 -0
- package/dist/shared/{hx-field-Dp3qQMut.js → hx-field-B3Qo8OLS.js} +15 -15
- package/dist/shared/hx-field-B3Qo8OLS.js.map +1 -0
- package/dist/shared/{hx-field-label-BC8QViXv.js → hx-field-label-BVRyyKeh.js} +8 -7
- package/dist/shared/hx-field-label-BVRyyKeh.js.map +1 -0
- package/dist/shared/{hx-file-upload-B6Yl1u0i.js → hx-file-upload-D3rKROK5.js} +51 -59
- package/dist/shared/hx-file-upload-D3rKROK5.js.map +1 -0
- package/dist/shared/hx-form-CkChEATa.js +257 -0
- package/dist/shared/hx-form-CkChEATa.js.map +1 -0
- package/dist/shared/hx-grid-CXZf3jeK.js.map +1 -1
- package/dist/shared/{hx-help-text-D7eytSim.js → hx-help-text-Xb2Yr8x2.js} +30 -29
- package/dist/shared/hx-help-text-Xb2Yr8x2.js.map +1 -0
- package/dist/shared/{hx-icon-button-BHneqPCU.js → hx-icon-button-CGNdQSFM.js} +78 -69
- package/dist/shared/hx-icon-button-CGNdQSFM.js.map +1 -0
- package/dist/shared/{hx-icon-CcyDPDYY.js → hx-icon-fuVm4-bk.js} +15 -14
- package/dist/shared/hx-icon-fuVm4-bk.js.map +1 -0
- package/dist/shared/{hx-image-2gt14zZd.js → hx-image-Ben_4yM5.js} +18 -17
- package/dist/shared/hx-image-Ben_4yM5.js.map +1 -0
- package/dist/shared/{hx-link-BESrWK8M.js → hx-link-9Ig2DW6L.js} +20 -19
- package/dist/shared/hx-link-9Ig2DW6L.js.map +1 -0
- package/dist/shared/{hx-list-_9qVv02L.js → hx-list-CkphGi9T.js} +22 -21
- package/dist/shared/hx-list-CkphGi9T.js.map +1 -0
- package/dist/shared/{hx-menu-divider-Ck-9Os1t.js → hx-menu-divider-C2omnPtj.js} +50 -49
- package/dist/shared/hx-menu-divider-C2omnPtj.js.map +1 -0
- package/dist/shared/{hx-meter-TbROk-dw.js → hx-meter-BPscsw5t.js} +41 -40
- package/dist/shared/{hx-meter-TbROk-dw.js.map → hx-meter-BPscsw5t.js.map} +1 -1
- package/dist/shared/{hx-nav-item-pqPasRUm.js → hx-nav-item-CqbO5-T5.js} +143 -81
- package/dist/shared/hx-nav-item-CqbO5-T5.js.map +1 -0
- package/dist/shared/{hx-nav-BcYDmjf7.js → hx-nav-ldFM3Fle.js} +54 -53
- package/dist/shared/hx-nav-ldFM3Fle.js.map +1 -0
- package/dist/shared/{hx-number-input-mOIZ3-46.js → hx-number-input-yUzFOSC1.js} +68 -67
- package/dist/shared/hx-number-input-yUzFOSC1.js.map +1 -0
- package/dist/shared/{hx-overflow-menu-Dprb9lnT.js → hx-overflow-menu-DCLsdIBy.js} +33 -29
- package/dist/shared/hx-overflow-menu-DCLsdIBy.js.map +1 -0
- package/dist/shared/{hx-pagination-AguTQjYC.js → hx-pagination-C7y8GVyU.js} +43 -42
- package/dist/shared/hx-pagination-C7y8GVyU.js.map +1 -0
- package/dist/shared/{hx-patient-banner-uE6gqLpT.js → hx-patient-banner-CkS-Lmj4.js} +29 -20
- package/dist/shared/hx-patient-banner-CkS-Lmj4.js.map +1 -0
- package/dist/shared/{hx-phi-field-BC_XowhC.js → hx-phi-field-C19oxlrr.js} +13 -15
- package/dist/shared/hx-phi-field-C19oxlrr.js.map +1 -0
- package/dist/shared/{hx-popover-B2_203ct.js → hx-popover-B-FP3-wW.js} +31 -29
- package/dist/shared/hx-popover-B-FP3-wW.js.map +1 -0
- package/dist/shared/{hx-popup-DZXpsJ1R.js → hx-popup-COUXXZ9X.js} +8 -7
- package/dist/shared/hx-popup-COUXXZ9X.js.map +1 -0
- package/dist/shared/{hx-progress-bar-KjEkEJLy.js → hx-progress-bar-Bn3JEPUf.js} +28 -27
- package/dist/shared/hx-progress-bar-Bn3JEPUf.js.map +1 -0
- package/dist/shared/{hx-progress-ring-3zMwvrwD.js → hx-progress-ring-TwHyXeEp.js} +15 -14
- package/dist/shared/hx-progress-ring-TwHyXeEp.js.map +1 -0
- package/dist/shared/{hx-prose-BCtK7YL6.js → hx-prose-BThYcASV.js} +12 -12
- package/dist/shared/{hx-prose-BCtK7YL6.js.map → hx-prose-BThYcASV.js.map} +1 -1
- package/dist/shared/{hx-radio-BBC5qZgE.js → hx-radio-dFjUAost.js} +38 -37
- package/dist/shared/hx-radio-dFjUAost.js.map +1 -0
- package/dist/shared/{hx-rating-C3E3ENJb.js → hx-rating-CGtsejNf.js} +38 -37
- package/dist/shared/hx-rating-CGtsejNf.js.map +1 -0
- package/dist/shared/{hx-select-CixTo7jp.js → hx-select-Bf4usFts.js} +64 -61
- package/dist/shared/hx-select-Bf4usFts.js.map +1 -0
- package/dist/shared/{hx-skeleton-LxkI0pxr.js → hx-skeleton-Cnieh5Uc.js} +14 -13
- package/dist/shared/hx-skeleton-Cnieh5Uc.js.map +1 -0
- package/dist/shared/{hx-slider-DFHuzF3N.js → hx-slider-m0aEClH1.js} +83 -79
- package/dist/shared/hx-slider-m0aEClH1.js.map +1 -0
- package/dist/shared/{hx-spinner-BKjuCdZB.js → hx-spinner-DL5AYr16.js} +18 -17
- package/dist/shared/hx-spinner-DL5AYr16.js.map +1 -0
- package/dist/shared/{hx-split-button-CGcJMmCG.js → hx-split-button-BxDFfx4D.js} +74 -59
- package/dist/shared/hx-split-button-BxDFfx4D.js.map +1 -0
- package/dist/shared/{hx-split-panel-C-1R10Mc.js → hx-split-panel-B-u0Z3mm.js} +16 -18
- package/dist/shared/hx-split-panel-B-u0Z3mm.js.map +1 -0
- package/dist/shared/hx-stack-DGfcOfWJ.js.map +1 -1
- package/dist/shared/{hx-stat-BTpykQAt.js → hx-stat-WOcNV1Ry.js} +16 -15
- package/dist/shared/hx-stat-WOcNV1Ry.js.map +1 -0
- package/dist/shared/{hx-status-indicator-X2QEWNFt.js → hx-status-indicator-BlQyen43.js} +17 -16
- package/dist/shared/hx-status-indicator-BlQyen43.js.map +1 -0
- package/dist/shared/{hx-step-CRNQlmSo.js → hx-step-R2rjp1fT.js} +60 -50
- package/dist/shared/hx-step-R2rjp1fT.js.map +1 -0
- package/dist/shared/{hx-structured-list-CqNbaEXg.js → hx-structured-list-m_-dMJbC.js} +18 -17
- package/dist/shared/hx-structured-list-m_-dMJbC.js.map +1 -0
- package/dist/shared/{hx-switch-DqOD9JR7.js → hx-switch-DvAW4YY-.js} +29 -20
- package/dist/shared/hx-switch-DvAW4YY-.js.map +1 -0
- package/dist/shared/{hx-tab-panel-BIzKfW5i.js → hx-tab-panel-SWOEHuJc.js} +45 -44
- package/dist/shared/hx-tab-panel-SWOEHuJc.js.map +1 -0
- package/dist/shared/{hx-tag-CgnrNnte.js → hx-tag-CNSmdyaK.js} +63 -62
- package/dist/shared/hx-tag-CNSmdyaK.js.map +1 -0
- package/dist/shared/{hx-td-Bra35cH4.js → hx-td-DnnEMIuA.js} +62 -62
- package/dist/shared/hx-td-DnnEMIuA.js.map +1 -0
- package/dist/shared/{hx-text-DMC2CPlL.js → hx-text-Bz_9fJ3J.js} +28 -25
- package/dist/shared/hx-text-Bz_9fJ3J.js.map +1 -0
- package/dist/shared/{hx-text-input--q0GH78x.js → hx-text-input-Bn7Gn8CI.js} +150 -72
- package/dist/shared/hx-text-input-Bn7Gn8CI.js.map +1 -0
- package/dist/shared/{hx-textarea-CK621vSL.js → hx-textarea-Jx1xnhgv.js} +108 -68
- package/dist/shared/hx-textarea-Jx1xnhgv.js.map +1 -0
- package/dist/shared/{hx-theme-DfEy-SJA.js → hx-theme-BiyQ7UUK.js} +46 -35
- package/dist/shared/hx-theme-BiyQ7UUK.js.map +1 -0
- package/dist/shared/{hx-time-picker-tPUfgElQ.js → hx-time-picker-BoEIZwzv.js} +59 -52
- package/dist/shared/hx-time-picker-BoEIZwzv.js.map +1 -0
- package/dist/shared/{hx-toggle-button-L-uBJr-a.js → hx-toggle-button-DPAIh_Xo.js} +86 -69
- package/dist/shared/hx-toggle-button-DPAIh_Xo.js.map +1 -0
- package/dist/shared/{hx-tooltip-B_zfKvwc.js → hx-tooltip-nYOv9OLu.js} +18 -16
- package/dist/shared/hx-tooltip-nYOv9OLu.js.map +1 -0
- package/dist/shared/{hx-top-nav-CATbRvIv.js → hx-top-nav-DP6OFS8C.js} +31 -30
- package/dist/shared/hx-top-nav-DP6OFS8C.js.map +1 -0
- package/dist/shared/{hx-tree-item-A45WCiBu.js → hx-tree-item-Dt0Ozqyr.js} +29 -28
- package/dist/shared/hx-tree-item-Dt0Ozqyr.js.map +1 -0
- package/dist/shared/{toast-factory-BPPnG3mM.js → toast-factory-YSznocIV.js} +98 -72
- package/dist/shared/toast-factory-YSznocIV.js.map +1 -0
- package/dist/styles/forced-colors.d.ts +60 -0
- package/dist/styles/forced-colors.d.ts.map +1 -0
- package/figma-inventory.json +8690 -827
- package/package.json +2 -2
- package/dist/shared/hx-accordion-Wt52OOZD.js.map +0 -1
- package/dist/shared/hx-action-bar-BKMADbHj.js.map +0 -1
- package/dist/shared/hx-alert-D7n94HwI.js.map +0 -1
- package/dist/shared/hx-avatar-iLYzu8MJ.js.map +0 -1
- package/dist/shared/hx-badge-CVCmMPyW.js.map +0 -1
- package/dist/shared/hx-banner-C_He7Tr4.js.map +0 -1
- package/dist/shared/hx-breadcrumb-item-CldCwD1d.js.map +0 -1
- package/dist/shared/hx-button-Ddl-T6T-.js.map +0 -1
- package/dist/shared/hx-button-group-BJOGWoMa.js.map +0 -1
- package/dist/shared/hx-card-ycveujjL.js.map +0 -1
- package/dist/shared/hx-carousel-item-D_dCv61-.js.map +0 -1
- package/dist/shared/hx-checkbox-DkkoWoye.js.map +0 -1
- package/dist/shared/hx-checkbox-group-C3poJ-Zw.js.map +0 -1
- package/dist/shared/hx-clinical-status-BS5lcddT.js.map +0 -1
- package/dist/shared/hx-code-snippet-B7wUKzyb.js.map +0 -1
- package/dist/shared/hx-color-picker-DBaKTVLr.js.map +0 -1
- package/dist/shared/hx-combobox-BmgYT7Ar.js.map +0 -1
- package/dist/shared/hx-copy-button-8deNUdwP.js.map +0 -1
- package/dist/shared/hx-counter-CKfl_g8K.js.map +0 -1
- package/dist/shared/hx-data-table-B6h0RPn0.js.map +0 -1
- package/dist/shared/hx-date-picker-Dq2Nb68_.js.map +0 -1
- package/dist/shared/hx-dialog-CvIlY0Tc.js.map +0 -1
- package/dist/shared/hx-divider-DwpOrzMW.js.map +0 -1
- package/dist/shared/hx-drawer-Cx2ZJhBe.js.map +0 -1
- package/dist/shared/hx-dropdown-BjDrPUq5.js.map +0 -1
- package/dist/shared/hx-field-Dp3qQMut.js.map +0 -1
- package/dist/shared/hx-field-label-BC8QViXv.js.map +0 -1
- package/dist/shared/hx-file-upload-B6Yl1u0i.js.map +0 -1
- package/dist/shared/hx-form-ButQFt9A.js +0 -257
- package/dist/shared/hx-form-ButQFt9A.js.map +0 -1
- package/dist/shared/hx-help-text-D7eytSim.js.map +0 -1
- package/dist/shared/hx-icon-CcyDPDYY.js.map +0 -1
- package/dist/shared/hx-icon-button-BHneqPCU.js.map +0 -1
- package/dist/shared/hx-image-2gt14zZd.js.map +0 -1
- package/dist/shared/hx-link-BESrWK8M.js.map +0 -1
- package/dist/shared/hx-list-_9qVv02L.js.map +0 -1
- package/dist/shared/hx-menu-divider-Ck-9Os1t.js.map +0 -1
- package/dist/shared/hx-nav-BcYDmjf7.js.map +0 -1
- package/dist/shared/hx-nav-item-pqPasRUm.js.map +0 -1
- package/dist/shared/hx-number-input-mOIZ3-46.js.map +0 -1
- package/dist/shared/hx-overflow-menu-Dprb9lnT.js.map +0 -1
- package/dist/shared/hx-pagination-AguTQjYC.js.map +0 -1
- package/dist/shared/hx-patient-banner-uE6gqLpT.js.map +0 -1
- package/dist/shared/hx-phi-field-BC_XowhC.js.map +0 -1
- package/dist/shared/hx-popover-B2_203ct.js.map +0 -1
- package/dist/shared/hx-popup-DZXpsJ1R.js.map +0 -1
- package/dist/shared/hx-progress-bar-KjEkEJLy.js.map +0 -1
- package/dist/shared/hx-progress-ring-3zMwvrwD.js.map +0 -1
- package/dist/shared/hx-radio-BBC5qZgE.js.map +0 -1
- package/dist/shared/hx-rating-C3E3ENJb.js.map +0 -1
- package/dist/shared/hx-select-CixTo7jp.js.map +0 -1
- package/dist/shared/hx-skeleton-LxkI0pxr.js.map +0 -1
- package/dist/shared/hx-slider-DFHuzF3N.js.map +0 -1
- package/dist/shared/hx-spinner-BKjuCdZB.js.map +0 -1
- package/dist/shared/hx-split-button-CGcJMmCG.js.map +0 -1
- package/dist/shared/hx-split-panel-C-1R10Mc.js.map +0 -1
- package/dist/shared/hx-stat-BTpykQAt.js.map +0 -1
- package/dist/shared/hx-status-indicator-X2QEWNFt.js.map +0 -1
- package/dist/shared/hx-step-CRNQlmSo.js.map +0 -1
- package/dist/shared/hx-structured-list-CqNbaEXg.js.map +0 -1
- package/dist/shared/hx-switch-DqOD9JR7.js.map +0 -1
- package/dist/shared/hx-tab-panel-BIzKfW5i.js.map +0 -1
- package/dist/shared/hx-tag-CgnrNnte.js.map +0 -1
- package/dist/shared/hx-td-Bra35cH4.js.map +0 -1
- package/dist/shared/hx-text-DMC2CPlL.js.map +0 -1
- package/dist/shared/hx-text-input--q0GH78x.js.map +0 -1
- package/dist/shared/hx-textarea-CK621vSL.js.map +0 -1
- package/dist/shared/hx-theme-DfEy-SJA.js.map +0 -1
- package/dist/shared/hx-time-picker-tPUfgElQ.js.map +0 -1
- package/dist/shared/hx-toggle-button-L-uBJr-a.js.map +0 -1
- package/dist/shared/hx-tooltip-B_zfKvwc.js.map +0 -1
- package/dist/shared/hx-top-nav-CATbRvIv.js.map +0 -1
- package/dist/shared/hx-tree-item-A45WCiBu.js.map +0 -1
- package/dist/shared/toast-factory-BPPnG3mM.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hx-td-DnnEMIuA.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-table-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: start;\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-text-strong, #202b39));\n font-size: var(--hx-font-size-md, 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-surface-raised, #f5f8f3));\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-surface-raised, #f5f8f3));\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-surface-raised, #f5f8f3));\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-surface-raised, #f5f8f3));\n }\n\n /* ─── Focus ─── */\n\n ::slotted(:focus-visible) {\n outline: var(--hx-focus-ring-width, 2px) solid var(--hx-focus-ring-color, #0f7078);\n outline-offset: var(--hx-focus-ring-offset, -2px);\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 /* ─── Forced Colors (Windows High Contrast) ─── */\n\n @media (forced-colors: active) {\n table {\n border: 1px solid CanvasText;\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 { html, nothing, type PropertyValues } from 'lit';\nimport '../../utilities/document-token-adoption.js';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { HelixElement } from '../../base/index.js';\nimport { helixTableStyles } from './hx-table.styles.js';\nimport { forcedColorsSurface } from '../../styles/forced-colors.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, #D6DBD5)] - Cell border color.\n * @cssprop [--hx-table-header-bg=var(--hx-color-neutral-50, #F5F8F3)] - Header row background.\n * @cssprop [--hx-table-header-color=var(--hx-color-neutral-700, #313E4B)] - Header text color.\n * @cssprop [--hx-table-cell-color=var(--hx-color-neutral-900, #0D1825)] - Cell text color.\n * @cssprop [--hx-table-row-hover-bg=var(--hx-color-neutral-50, #F5F8F3)] - Row hover background.\n * @cssprop [--hx-table-stripe-bg=var(--hx-color-neutral-50, #F5F8F3)] - Striped row background.\n * @cssprop [--hx-table-font-family=var(--hx-font-family-sans)] - CSS custom property.\n * @cssprop [--hx-font-family-sans] - Font family.\n * @cssprop [--hx-font-size-sm] - Font size.\n * @cssprop [--hx-space-2] - Spacing token.\n * @cssprop [--hx-space-4] - Spacing token.\n * @cssprop [--hx-font-weight-semibold] - Font weight.\n * @cssprop [--hx-color-neutral-700] - Color.\n * @cssprop [--hx-font-size-md] - Font size.\n * @cssprop [--hx-color-neutral-50] - Color.\n * @cssprop [--hx-space-3] - Spacing token.\n * @cssprop [--hx-focus-ring-width] - Width.\n * @cssprop [--hx-focus-ring-color] - Color.\n * @cssprop [--hx-color-primary-500] - Color.\n * @cssprop [--hx-focus-ring-offset] - CSS custom property.\n */\n@customElement('hx-table')\nexport class HelixTable extends HelixElement {\n static override styles = [helixTableStyles, forcedColorsSurface];\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 // ─── Internal State ───\n\n /** @internal */\n @state() private _hasCaptionSlot = false;\n\n // ─── Lifecycle ───\n\n override connectedCallback(): void {\n super.connectedCallback();\n this._hasCaptionSlot = this.querySelector('[slot=\"caption\"]') !== null;\n }\n\n override firstUpdated(changedProperties: PropertyValues<this>): void {\n super.firstUpdated(changedProperties);\n // WCAG 4.1.2: warn when neither label nor caption provides an accessible name.\n // A table without an accessible name cannot be identified by screen reader users.\n if (!this.label && !this.caption && !this._hasCaptionSlot) {\n devWarn(\n 'hx-table',\n 'No accessible name provided. Set the `label` or `caption` attribute, or use the `caption` slot, so screen readers can identify this table (WCAG 4.1.2 Name, Role, Value).',\n );\n }\n }\n\n override willUpdate(changed: PropertyValues<this>): 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 /** @internal */\n private _onCaptionSlotChange(e: Event): void {\n const slot = e.target as HTMLSlotElement;\n this._hasCaptionSlot = slot.assignedNodes({ flatten: true }).length > 0;\n }\n\n // ─── Render ───\n\n override render() {\n const hasCaption = this.caption || this._hasCaptionSlot;\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\" @slotchange=${this._onCaptionSlotChange}>${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 { html } from 'lit';\nimport '../../utilities/document-token-adoption.js';\nimport { customElement } from 'lit/decorators.js';\nimport { HelixElement } from '../../base/index.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 HelixElement {\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 { html, css } from 'lit';\nimport '../../utilities/document-token-adoption.js';\nimport { customElement } from 'lit/decorators.js';\nimport { HelixElement } from '../../base/index.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 HelixElement {\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 { html } from 'lit';\nimport '../../utilities/document-token-adoption.js';\nimport { customElement } from 'lit/decorators.js';\nimport { HelixElement } from '../../base/index.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 HelixElement {\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 { html, nothing, css } from 'lit';\nimport '../../utilities/document-token-adoption.js';\nimport { customElement, property } from 'lit/decorators.js';\nimport { HelixElement } from '../../base/index.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 HelixElement {\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, #ebf8f8));\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 { html, nothing, css } from 'lit';\nimport '../../utilities/document-token-adoption.js';\nimport { customElement, property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { HelixElement } from '../../base/index.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 HelixElement {\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, #313e4b));\n background-color: var(\n --_hx-table-cell-bg,\n var(--hx-table-header-bg, var(--hx-color-neutral-50, #f5f8f3))\n );\n border-bottom: var(--hx-border-width-thin, 1px) solid\n var(--hx-table-border-color, var(--hx-color-neutral-200, #d6dbd5));\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, #429797));\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, #429797);\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 /** @internal */\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 /** @internal */\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 /** @internal */\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 /** @internal */\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 { html, css } from 'lit';\nimport '../../utilities/document-token-adoption.js';\nimport { customElement, property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { HelixElement } from '../../base/index.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, #0D1825)] - Cell text color.\n */\n@customElement('hx-td')\nexport class HelixTableCell extends HelixElement {\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, #0d1825));\n border-bottom: var(--hx-border-width-thin, 1px) solid\n var(--hx-table-border-color, var(--hx-color-neutral-200, #d6dbd5));\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, #429797));\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, #313e4b));\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","HelixElement","changedProperties","changed","slot","hasCaption","html","nothing","forcedColorsSurface","__decorateClass","property","state","customElement","HelixTableHead","HelixTableBody","HelixTableFoot","HelixTableRow","HelixTableHeader","next","iconClass","ifDefined","HelixTableCell"],"mappings":";;;;;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X,WAAA,SAAA,CAAA;AAOAZ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAnEfW,EAoEX,WAAA,WAAA,CAAA;AAOAZ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GA1EfW,EA2EX,WAAA,WAAA,CAAA;AASAZ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,WAAW,SAAS;AAAA,GAnFnCW,EAoFX,WAAA,SAAA,CAAA;AApFWA,IAANZ,EAAA;AAAA,EADNG,EAAc,OAAO;AAAA,GACTS,CAAA;"}
|
|
@@ -4,8 +4,9 @@ import { classMap as m } from "lit/directives/class-map.js";
|
|
|
4
4
|
import { styleMap as v } from "lit/directives/style-map.js";
|
|
5
5
|
import { ifDefined as p } from "lit/directives/if-defined.js";
|
|
6
6
|
import { css as d } from "lit";
|
|
7
|
-
import {
|
|
8
|
-
|
|
7
|
+
import { a as w } from "./forced-colors-CTEDFRGa.js";
|
|
8
|
+
import { H as u } from "./helix-element-BNEYeiys.js";
|
|
9
|
+
const y = d`
|
|
9
10
|
:host {
|
|
10
11
|
display: inline;
|
|
11
12
|
}
|
|
@@ -87,31 +88,33 @@ const u = d`
|
|
|
87
88
|
/* ─── Colors ─── */
|
|
88
89
|
|
|
89
90
|
.text--color-default {
|
|
90
|
-
--hx-text-color: var(--hx-color-neutral-900, #
|
|
91
|
+
--hx-text-color: var(--hx-text-default-color, var(--hx-color-neutral-900, #0d1825));
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
.text--color-subtle {
|
|
94
|
-
--hx-text-color: var(--hx-color-neutral-500, #
|
|
95
|
+
--hx-text-color: var(--hx-text-subtle-color, var(--hx-color-neutral-500, #66787b));
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
.text--color-disabled {
|
|
98
|
-
--hx-text-color: var(--hx-color-neutral-400, #
|
|
99
|
+
--hx-text-color: var(--hx-text-disabled-color, var(--hx-color-neutral-400, #8e9c98));
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
.text--color-inverse {
|
|
102
|
-
--hx-text-color: var(--hx-color-neutral-0, #ffffff);
|
|
103
|
+
--hx-text-color: var(--hx-text-inverse-color, var(--hx-color-neutral-0, #ffffff));
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
.text--color-danger {
|
|
106
|
-
--hx-text-color: var(--hx-color-error-600, #
|
|
107
|
+
--hx-text-color: var(--hx-text-danger-color, var(--hx-color-error-600, #c92a2a));
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
.text--color-success {
|
|
110
|
-
--hx-text-color: var(--hx-color-success-
|
|
111
|
+
--hx-text-color: var(--hx-text-success-color, var(--hx-color-success-700, #146831));
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
.text--color-warning {
|
|
114
|
-
|
|
115
|
+
/* warning-600 (#B8650E) on white = 4.28:1 — fails AA body text in the
|
|
116
|
+
precision-cool palette. warning-700 (#804605) on white = 7.06:1 — AA pass. */
|
|
117
|
+
--hx-text-color: var(--hx-text-warning-color, var(--hx-color-warning-700, #804605));
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
/* ─── Weight Overrides ─── */
|
|
@@ -188,12 +191,12 @@ const u = d`
|
|
|
188
191
|
}
|
|
189
192
|
}
|
|
190
193
|
`;
|
|
191
|
-
var
|
|
192
|
-
for (var t =
|
|
193
|
-
(x = o[l]) && (t = (
|
|
194
|
-
return
|
|
194
|
+
var b = Object.defineProperty, z = Object.getOwnPropertyDescriptor, a = (o, r, i, n) => {
|
|
195
|
+
for (var t = n > 1 ? void 0 : n ? z(r, i) : r, l = o.length - 1, x; l >= 0; l--)
|
|
196
|
+
(x = o[l]) && (t = (n ? x(r, i, t) : x(t)) || t);
|
|
197
|
+
return n && t && b(r, i, t), t;
|
|
195
198
|
};
|
|
196
|
-
let e = class extends
|
|
199
|
+
let e = class extends u {
|
|
197
200
|
constructor() {
|
|
198
201
|
super(...arguments), this.variant = "body", this.weight = void 0, this.color = "default", this.truncate = !1, this.lines = 0, this.as = "span";
|
|
199
202
|
}
|
|
@@ -204,7 +207,7 @@ let e = class extends w {
|
|
|
204
207
|
}
|
|
205
208
|
render() {
|
|
206
209
|
var s;
|
|
207
|
-
const o = Math.max(0, this.lines), r = this.truncate && o === 0, i = o > 0,
|
|
210
|
+
const o = Math.max(0, this.lines), r = this.truncate && o === 0, i = o > 0, n = {
|
|
208
211
|
text: !0,
|
|
209
212
|
[`text--${this.variant}`]: !0,
|
|
210
213
|
[`text--color-${this.color}`]: !0,
|
|
@@ -215,7 +218,7 @@ let e = class extends w {
|
|
|
215
218
|
return g`
|
|
216
219
|
<${x}
|
|
217
220
|
part="base"
|
|
218
|
-
class=${m(
|
|
221
|
+
class=${m(n)}
|
|
219
222
|
style=${v(t)}
|
|
220
223
|
title=${p(l || void 0)}
|
|
221
224
|
>
|
|
@@ -224,29 +227,29 @@ let e = class extends w {
|
|
|
224
227
|
`;
|
|
225
228
|
}
|
|
226
229
|
};
|
|
227
|
-
e.styles = [
|
|
228
|
-
|
|
230
|
+
e.styles = [y, w];
|
|
231
|
+
a([
|
|
229
232
|
h({ type: String, reflect: !0 })
|
|
230
233
|
], e.prototype, "variant", 2);
|
|
231
|
-
|
|
234
|
+
a([
|
|
232
235
|
h({ type: String, reflect: !0 })
|
|
233
236
|
], e.prototype, "weight", 2);
|
|
234
|
-
|
|
237
|
+
a([
|
|
235
238
|
h({ type: String, reflect: !0 })
|
|
236
239
|
], e.prototype, "color", 2);
|
|
237
|
-
|
|
240
|
+
a([
|
|
238
241
|
h({ type: Boolean, reflect: !0 })
|
|
239
242
|
], e.prototype, "truncate", 2);
|
|
240
|
-
|
|
243
|
+
a([
|
|
241
244
|
h({ type: Number, reflect: !0 })
|
|
242
245
|
], e.prototype, "lines", 2);
|
|
243
|
-
|
|
246
|
+
a([
|
|
244
247
|
h({ type: String, reflect: !0 })
|
|
245
248
|
], e.prototype, "as", 2);
|
|
246
|
-
e =
|
|
249
|
+
e = a([
|
|
247
250
|
f("hx-text")
|
|
248
251
|
], e);
|
|
249
252
|
export {
|
|
250
253
|
e as H
|
|
251
254
|
};
|
|
252
|
-
//# sourceMappingURL=hx-text-
|
|
255
|
+
//# sourceMappingURL=hx-text-Bz_9fJ3J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hx-text-Bz_9fJ3J.js","sources":["../../src/components/hx-text/hx-text.styles.ts","../../src/components/hx-text/hx-text.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const helixTextStyles = css`\n :host {\n display: inline;\n }\n\n /* ─── Base ─── */\n\n .text {\n display: inline;\n font-family: var(--hx-text-font-family, var(--hx-font-family-sans, sans-serif));\n font-size: var(--hx-text-font-size);\n font-weight: var(--hx-text-font-weight);\n line-height: var(--hx-text-line-height);\n letter-spacing: var(--hx-text-letter-spacing);\n color: var(--hx-text-color);\n margin: 0;\n padding: 0;\n }\n\n /* ─── Variants ─── */\n\n .text--body {\n --hx-text-font-size: var(--hx-font-size-md, 1rem);\n --hx-text-font-weight: var(--hx-font-weight-normal, 400);\n --hx-text-line-height: var(--hx-line-height-normal, 1.5);\n --hx-text-letter-spacing: var(--hx-letter-spacing-normal, 0);\n }\n\n .text--body-sm {\n --hx-text-font-size: var(--hx-font-size-sm, 0.875rem);\n --hx-text-font-weight: var(--hx-font-weight-normal, 400);\n --hx-text-line-height: var(--hx-line-height-normal, 1.5);\n --hx-text-letter-spacing: var(--hx-letter-spacing-normal, 0);\n }\n\n .text--body-lg {\n --hx-text-font-size: var(--hx-font-size-lg, 1.125rem);\n --hx-text-font-weight: var(--hx-font-weight-normal, 400);\n --hx-text-line-height: var(--hx-line-height-normal, 1.5);\n --hx-text-letter-spacing: var(--hx-letter-spacing-normal, 0);\n }\n\n .text--label {\n --hx-text-font-size: var(--hx-font-size-md, 1rem);\n --hx-text-font-weight: var(--hx-font-weight-medium, 500);\n --hx-text-line-height: var(--hx-line-height-tight, 1.25);\n --hx-text-letter-spacing: var(--hx-letter-spacing-normal, 0);\n }\n\n .text--label-sm {\n --hx-text-font-size: var(--hx-font-size-sm, 0.875rem);\n --hx-text-font-weight: var(--hx-font-weight-medium, 500);\n --hx-text-line-height: var(--hx-line-height-tight, 1.25);\n --hx-text-letter-spacing: var(--hx-letter-spacing-normal, 0);\n }\n\n .text--caption {\n --hx-text-font-size: var(--hx-font-size-xs, 0.75rem);\n --hx-text-font-weight: var(--hx-font-weight-normal, 400);\n --hx-text-line-height: var(--hx-line-height-normal, 1.5);\n --hx-text-letter-spacing: var(--hx-letter-spacing-normal, 0);\n }\n\n .text--code {\n --hx-text-font-size: var(--hx-font-size-sm, 0.875rem);\n --hx-text-font-weight: var(--hx-font-weight-normal, 400);\n --hx-text-line-height: var(--hx-line-height-normal, 1.5);\n --hx-text-letter-spacing: var(--hx-letter-spacing-normal, 0);\n font-family: var(--hx-font-family-mono, monospace);\n }\n\n .text--overline {\n --hx-text-font-size: var(--hx-font-size-xs, 0.75rem);\n --hx-text-font-weight: var(--hx-font-weight-semibold, 600);\n --hx-text-line-height: var(--hx-line-height-tight, 1.25);\n --hx-text-letter-spacing: var(--hx-letter-spacing-wide, 0.025em);\n text-transform: uppercase;\n }\n\n /* ─── Colors ─── */\n\n .text--color-default {\n --hx-text-color: var(--hx-text-default-color, var(--hx-color-neutral-900, #0d1825));\n }\n\n .text--color-subtle {\n --hx-text-color: var(--hx-text-subtle-color, var(--hx-color-neutral-500, #66787b));\n }\n\n .text--color-disabled {\n --hx-text-color: var(--hx-text-disabled-color, var(--hx-color-neutral-400, #8e9c98));\n }\n\n .text--color-inverse {\n --hx-text-color: var(--hx-text-inverse-color, var(--hx-color-neutral-0, #ffffff));\n }\n\n .text--color-danger {\n --hx-text-color: var(--hx-text-danger-color, var(--hx-color-error-600, #c92a2a));\n }\n\n .text--color-success {\n --hx-text-color: var(--hx-text-success-color, var(--hx-color-success-700, #146831));\n }\n\n .text--color-warning {\n /* warning-600 (#B8650E) on white = 4.28:1 — fails AA body text in the\n precision-cool palette. warning-700 (#804605) on white = 7.06:1 — AA pass. */\n --hx-text-color: var(--hx-text-warning-color, var(--hx-color-warning-700, #804605));\n }\n\n /* ─── Weight Overrides ─── */\n\n .text--weight-regular {\n --hx-text-font-weight: var(--hx-font-weight-normal, 400);\n }\n\n .text--weight-medium {\n --hx-text-font-weight: var(--hx-font-weight-medium, 500);\n }\n\n .text--weight-semibold {\n --hx-text-font-weight: var(--hx-font-weight-semibold, 600);\n }\n\n .text--weight-bold {\n --hx-text-font-weight: var(--hx-font-weight-bold, 700);\n }\n\n /* ─── Truncation ─── */\n\n .text--truncate {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .text--clamp {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n :host([truncate]) {\n display: block;\n }\n\n :host([lines]:not([lines='0'])) {\n display: block;\n }\n\n /* ─── High Contrast Mode (forced-colors) ─── */\n\n @media (forced-colors: active) {\n /*\n * Semantic color variants (danger, success, warning) communicate state via color\n * alone. In forced-colors mode the browser overrides custom colors, so we must\n * use system color keywords to preserve the semantic distinction.\n */\n .text--color-danger {\n color: LinkText;\n }\n\n .text--color-success {\n color: CanvasText;\n }\n\n .text--color-warning {\n color: CanvasText;\n }\n\n .text--color-disabled {\n color: GrayText;\n }\n\n .text--color-inverse {\n color: CanvasText;\n }\n\n .text--color-subtle {\n color: CanvasText;\n }\n }\n`;\n","import '../../utilities/document-token-adoption.js';\nimport { html as staticHtml, unsafeStatic } from 'lit/static-html.js';\nimport { HelixElement } from '../../base/index.js';\nimport { customElement, property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { helixTextStyles } from './hx-text.styles.js';\nimport { forcedColorsSurface } from '../../styles/forced-colors.js';\n\n/**\n * A semantic typography wrapper that applies consistent text styles using design tokens.\n *\n * @summary Presentational text wrapper for consistent typography across variants, weights, and colors.\n *\n * @tag hx-text\n *\n * @slot - Default slot for text content.\n *\n * @csspart base - The inner element (tag determined by the `as` property).\n *\n * @cssprop [--hx-text-font-size] - Font size (set per variant).\n * @cssprop [--hx-text-font-weight] - Font weight (overridden by weight prop).\n * @cssprop [--hx-text-line-height] - Line height (set per variant).\n * @cssprop [--hx-text-letter-spacing] - Letter spacing (set per variant).\n * @cssprop [--hx-text-color] - Text color (set per color prop).\n *\n * @example\n * <!-- Drupal/Twig usage (CDN):\n * <hx-text variant=\"body\" color=\"default\">Patient name here</hx-text>\n * <hx-text variant=\"label\" weight=\"semibold\">Date of Birth</hx-text>\n * <hx-text variant=\"caption\" color=\"subtle\">Last reviewed on 2026-03-05</hx-text>\n * <!-- Truncate (boolean attr — omit to disable, include to enable): -->\n * <hx-text truncate>Long patient note that gets clipped</hx-text>\n * <!-- Multi-line clamp (numeric attr): -->\n * <hx-text lines=\"3\">Paragraph of clinical notes...</hx-text>\n * <!-- Semantic element override: -->\n * <hx-text as=\"p\" variant=\"body\">Paragraph-level content.</hx-text>\n * <hx-text as=\"strong\" variant=\"label\">Bold label</hx-text>\n * -->\n * @cssprop [--hx-text-font-family=var(--hx-font-family-sans)] - CSS custom property.\n * @cssprop [--hx-font-family-sans] - Font family.\n * @cssprop [--hx-font-size-md] - Font size.\n * @cssprop [--hx-font-weight-normal] - Font weight.\n * @cssprop [--hx-line-height-normal] - Line height.\n * @cssprop [--hx-letter-spacing-normal] - CSS custom property.\n * @cssprop [--hx-font-size-sm] - Font size.\n * @cssprop [--hx-font-size-lg] - Font size.\n * @cssprop [--hx-font-weight-medium] - Font weight.\n * @cssprop [--hx-line-height-tight] - Line height.\n * @cssprop [--hx-font-size-xs] - Font size.\n * @cssprop [--hx-font-family-mono] - Font family.\n * @cssprop [--hx-font-weight-semibold] - Font weight.\n * @cssprop [--hx-letter-spacing-wide] - CSS custom property.\n * @cssprop [--hx-color-neutral-900] - Color.\n * @cssprop [--hx-color-neutral-500] - Color.\n * @cssprop [--hx-color-neutral-400] - Color.\n * @cssprop [--hx-color-neutral-0] - Color.\n * @cssprop [--hx-color-error-600] - Color.\n * @cssprop [--hx-color-success-600] - Color.\n * @cssprop [--hx-color-warning-600] - Color.\n * @cssprop [--hx-font-weight-bold] - Font weight.\n */\n@customElement('hx-text')\nexport class HelixText extends HelixElement {\n static override styles = [helixTextStyles, forcedColorsSurface];\n\n /**\n * Typography variant controlling font size, line height, and letter spacing.\n *\n * Note: The public variant set (body / body-sm / body-lg / label / label-sm / caption / code /\n * overline) intentionally extends the original audit spec (body / lead / small / caption /\n * overline). `lead` and `small` were replaced with the more granular `body-lg`, `body-sm`,\n * `label`, `label-sm`, and `code` variants to better serve healthcare UI density requirements.\n * There are no `lead` or `small` variants — consumers must use `body-lg` and `body-sm`\n * respectively.\n *\n * @attr variant\n */\n @property({ type: String, reflect: true })\n variant: 'body' | 'body-sm' | 'body-lg' | 'label' | 'label-sm' | 'caption' | 'code' | 'overline' =\n 'body';\n\n /**\n * Font weight override. When unset, the variant's default weight is used.\n * @attr weight\n */\n @property({ type: String, reflect: true })\n weight: 'regular' | 'medium' | 'semibold' | 'bold' | undefined = undefined;\n\n /**\n * Semantic color intent.\n * @attr color\n */\n @property({ type: String, reflect: true })\n color: 'default' | 'subtle' | 'disabled' | 'inverse' | 'danger' | 'success' | 'warning' =\n 'default';\n\n /**\n * When true, clips text to a single line with an ellipsis overflow.\n * @attr truncate\n */\n @property({ type: Boolean, reflect: true })\n truncate = false;\n\n /**\n * Maximum number of lines to display before clamping with ellipsis.\n * When set, overrides `truncate`. Set to 0 to disable.\n * @attr lines\n */\n @property({ type: Number, reflect: true })\n lines = 0;\n\n /**\n * The HTML element to render as the inner base element.\n * Use to produce semantically appropriate markup (e.g., `p`, `strong`, `em`).\n * Defaults to `span` for inline usage.\n *\n * In Drupal Twig: `<hx-text as=\"p\" variant=\"body\">...</hx-text>`\n *\n * @attr as\n */\n @property({ type: String, reflect: true })\n as: 'span' | 'p' | 'strong' | 'em' | 'div' = 'span';\n\n /** Validates `as` against the allowed element list to prevent injection. */\n /** @internal */\n private get _safeTag(): string {\n const allowed = new Set(['span', 'p', 'strong', 'em', 'div']);\n return allowed.has(this.as) ? this.as : 'span';\n }\n\n override render() {\n const effectiveLines = Math.max(0, this.lines);\n const isTruncated = this.truncate && effectiveLines === 0;\n const isClamped = effectiveLines > 0;\n const classes = {\n text: true,\n [`text--${this.variant}`]: true,\n [`text--color-${this.color}`]: true,\n [`text--weight-${this.weight}`]: this.weight !== undefined,\n 'text--truncate': isTruncated,\n 'text--clamp': isClamped,\n };\n\n const inlineStyles = isClamped ? { '-webkit-line-clamp': String(effectiveLines) } : {};\n\n const titleText = isTruncated || isClamped ? this.textContent?.trim() : undefined;\n\n const tag = unsafeStatic(this._safeTag);\n\n return staticHtml`\n <${tag}\n part=\"base\"\n class=${classMap(classes)}\n style=${styleMap(inlineStyles)}\n title=${ifDefined(titleText || undefined)}\n >\n <slot></slot>\n </${tag}>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'hx-text': HelixText;\n }\n}\n"],"names":["helixTextStyles","css","HelixText","HelixElement","effectiveLines","isTruncated","isClamped","classes","inlineStyles","titleText","_a","tag","unsafeStatic","staticHtml","classMap","styleMap","ifDefined","forcedColorsSurface","__decorateClass","property","customElement"],"mappings":";;;;;;;;AAEO,MAAMA,IAAkBC;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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MAAM,QAAQ,SAAS,IAAM;AAAA,GA1D9BjB,EA2DX,WAAA,MAAA,CAAA;AA3DWA,IAANgB,EAAA;AAAA,EADNE,EAAc,SAAS;AAAA,GACXlB,CAAA;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { css as _, nothing as c, html as h } from "lit";
|
|
2
|
-
import { property as o, query as v, state as u, customElement as
|
|
2
|
+
import { property as o, query as v, state as u, customElement as b } from "lit/decorators.js";
|
|
3
3
|
import { classMap as f } from "lit/directives/class-map.js";
|
|
4
4
|
import { ifDefined as n } from "lit/directives/if-defined.js";
|
|
5
5
|
import { live as g } from "lit/directives/live.js";
|
|
6
|
-
import { F as
|
|
6
|
+
import { F as m } from "./FormMixin-B8PXk5RQ.js";
|
|
7
7
|
import { d as y } from "./dev-warn-YlwPHjtX.js";
|
|
8
|
-
import { H as
|
|
9
|
-
import { c as
|
|
8
|
+
import { H as w } from "./helix-element-BNEYeiys.js";
|
|
9
|
+
import { c as S } from "./id-counter-DuX8vsui.js";
|
|
10
10
|
var $ = Object.defineProperty, x = (e, t, l, a) => {
|
|
11
11
|
for (var s = void 0, d = e.length - 1, p; d >= 0; d--)
|
|
12
12
|
(p = e[d]) && (s = p(t, l, s) || s);
|
|
@@ -67,6 +67,100 @@ const T = (e) => {
|
|
|
67
67
|
}, I = _`
|
|
68
68
|
:host {
|
|
69
69
|
display: block;
|
|
70
|
+
|
|
71
|
+
/* ─── Component tokens (3.2.0) ──────────────────────────────────── */
|
|
72
|
+
|
|
73
|
+
/* Surface */
|
|
74
|
+
--_text-input-bg: var(
|
|
75
|
+
--hx-text-input-bg,
|
|
76
|
+
var(--hx-input-bg, var(--hx-color-surface-default, #ffffff))
|
|
77
|
+
);
|
|
78
|
+
--_text-input-color: var(
|
|
79
|
+
--hx-text-input-color,
|
|
80
|
+
var(--hx-input-color, var(--hx-color-text-strong, #202b39))
|
|
81
|
+
);
|
|
82
|
+
--_text-input-placeholder-color: var(
|
|
83
|
+
--hx-text-input-placeholder-color,
|
|
84
|
+
var(--hx-color-text-placeholder, #66787b)
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
/* Border */
|
|
88
|
+
--_text-input-border-color: var(
|
|
89
|
+
--hx-text-input-border-color,
|
|
90
|
+
var(--hx-input-border-color, var(--hx-color-border-strong, #66787b))
|
|
91
|
+
);
|
|
92
|
+
--_text-input-border-color-hover: var(
|
|
93
|
+
--hx-text-input-border-color-hover,
|
|
94
|
+
var(--hx-color-border-strong, #66787b)
|
|
95
|
+
);
|
|
96
|
+
--_text-input-border-color-focus: var(
|
|
97
|
+
--hx-text-input-border-color-focus,
|
|
98
|
+
var(
|
|
99
|
+
--hx-input-focus-ring-color,
|
|
100
|
+
var(--hx-focus-ring-color, var(--hx-color-primary-600, #0f7078))
|
|
101
|
+
)
|
|
102
|
+
);
|
|
103
|
+
--_text-input-border-color-invalid: var(
|
|
104
|
+
--hx-text-input-border-color-invalid,
|
|
105
|
+
var(--hx-input-error-color, var(--hx-color-error-600, #c92a2a))
|
|
106
|
+
);
|
|
107
|
+
--_text-input-border-width: var(--hx-text-input-border-width, var(--hx-border-width-thin, 1px));
|
|
108
|
+
--_text-input-border-radius: var(
|
|
109
|
+
--hx-text-input-border-radius,
|
|
110
|
+
var(--hx-input-border-radius, var(--hx-border-radius-md, 0.375rem))
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
/* Spacing */
|
|
114
|
+
--_text-input-padding-x: var(--hx-text-input-padding-x, var(--hx-space-3, 0.75rem));
|
|
115
|
+
--_text-input-padding-y: var(--hx-text-input-padding-y, var(--hx-space-2, 0.5rem));
|
|
116
|
+
|
|
117
|
+
/* Typography */
|
|
118
|
+
--_text-input-font-family: var(
|
|
119
|
+
--hx-text-input-font-family,
|
|
120
|
+
var(--hx-input-font-family, var(--hx-font-family-sans, sans-serif))
|
|
121
|
+
);
|
|
122
|
+
--_text-input-font-size: var(--hx-text-input-font-size, var(--hx-font-size-md, 1rem));
|
|
123
|
+
|
|
124
|
+
/* Focus ring */
|
|
125
|
+
--_text-input-focus-ring-color: var(
|
|
126
|
+
--hx-text-input-focus-ring-color,
|
|
127
|
+
var(
|
|
128
|
+
--hx-input-focus-ring-color,
|
|
129
|
+
var(--hx-focus-ring-color, var(--hx-color-primary-600, #0f7078))
|
|
130
|
+
)
|
|
131
|
+
);
|
|
132
|
+
--_text-input-focus-ring-width: var(
|
|
133
|
+
--hx-text-input-focus-ring-width,
|
|
134
|
+
var(--hx-focus-ring-width, 2px)
|
|
135
|
+
);
|
|
136
|
+
--_text-input-focus-ring-offset: var(
|
|
137
|
+
--hx-text-input-focus-ring-offset,
|
|
138
|
+
var(--hx-focus-ring-offset, 0px)
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
/* Disabled */
|
|
142
|
+
--_text-input-disabled-bg: var(
|
|
143
|
+
--hx-text-input-disabled-bg,
|
|
144
|
+
var(--hx-color-surface-sunken, #ebeee9)
|
|
145
|
+
);
|
|
146
|
+
--_text-input-disabled-color: var(
|
|
147
|
+
--hx-text-input-disabled-color,
|
|
148
|
+
var(--hx-color-text-disabled, #8e9c98)
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
/* Label / help / error */
|
|
152
|
+
--_text-input-label-color: var(
|
|
153
|
+
--hx-text-input-label-color,
|
|
154
|
+
var(--hx-input-label-color, var(--hx-color-text-strong, #202b39))
|
|
155
|
+
);
|
|
156
|
+
--_text-input-help-text-color: var(
|
|
157
|
+
--hx-text-input-help-text-color,
|
|
158
|
+
var(--hx-color-text-muted, #4a5362)
|
|
159
|
+
);
|
|
160
|
+
--_text-input-error-color: var(
|
|
161
|
+
--hx-text-input-error-color,
|
|
162
|
+
var(--hx-input-error-color, var(--hx-color-error-text, #c92a2a))
|
|
163
|
+
);
|
|
70
164
|
}
|
|
71
165
|
|
|
72
166
|
:host([disabled]) {
|
|
@@ -81,36 +175,13 @@ const T = (e) => {
|
|
|
81
175
|
* These complement the :focus-within rules on .field__input-wrapper and are
|
|
82
176
|
* exposed as theming hooks for consumers who target the host element.
|
|
83
177
|
*/
|
|
84
|
-
:host([focused]) .field__input-wrapper
|
|
85
|
-
border-color: var(
|
|
86
|
-
--hx-input-focus-ring-color,
|
|
87
|
-
var(--hx-focus-ring-color, var(--hx-color-primary-400, #60a5fa))
|
|
88
|
-
);
|
|
89
|
-
box-shadow: 0 0 0 var(--hx-focus-ring-width, 2px)
|
|
90
|
-
color-mix(
|
|
91
|
-
in srgb,
|
|
92
|
-
var(
|
|
93
|
-
--hx-input-focus-ring-color,
|
|
94
|
-
var(--hx-focus-ring-color, var(--hx-color-primary-400, #60a5fa))
|
|
95
|
-
)
|
|
96
|
-
calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
97
|
-
transparent
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
178
|
+
:host([focused]) .field__input-wrapper,
|
|
101
179
|
:host([focused-visible]) .field__input-wrapper {
|
|
102
|
-
border-color: var(
|
|
103
|
-
|
|
104
|
-
var(--hx-focus-ring-color, var(--hx-color-primary-400, #60a5fa))
|
|
105
|
-
);
|
|
106
|
-
box-shadow: 0 0 0 var(--hx-focus-ring-width, 2px)
|
|
180
|
+
border-color: var(--_text-input-border-color-focus);
|
|
181
|
+
box-shadow: 0 0 0 var(--_text-input-focus-ring-width)
|
|
107
182
|
color-mix(
|
|
108
183
|
in srgb,
|
|
109
|
-
var(
|
|
110
|
-
--hx-input-focus-ring-color,
|
|
111
|
-
var(--hx-focus-ring-color, var(--hx-color-primary-400, #60a5fa))
|
|
112
|
-
)
|
|
113
|
-
calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
184
|
+
var(--_text-input-border-color-focus) calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
114
185
|
transparent
|
|
115
186
|
);
|
|
116
187
|
}
|
|
@@ -123,7 +194,7 @@ const T = (e) => {
|
|
|
123
194
|
display: flex;
|
|
124
195
|
flex-direction: column;
|
|
125
196
|
gap: var(--hx-space-1, 0.25rem);
|
|
126
|
-
font-family: var(--
|
|
197
|
+
font-family: var(--_text-input-font-family);
|
|
127
198
|
}
|
|
128
199
|
|
|
129
200
|
/* ─── Label ─── */
|
|
@@ -138,12 +209,12 @@ const T = (e) => {
|
|
|
138
209
|
gap: var(--hx-space-1, 0.25rem);
|
|
139
210
|
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
140
211
|
font-weight: var(--hx-font-weight-medium, 500);
|
|
141
|
-
color: var(--
|
|
212
|
+
color: var(--_text-input-label-color);
|
|
142
213
|
line-height: var(--hx-line-height-normal, 1.5);
|
|
143
214
|
}
|
|
144
215
|
|
|
145
216
|
.field__required-marker {
|
|
146
|
-
color: var(--
|
|
217
|
+
color: var(--_text-input-error-color);
|
|
147
218
|
font-weight: var(--hx-font-weight-bold, 700);
|
|
148
219
|
}
|
|
149
220
|
|
|
@@ -152,29 +223,25 @@ const T = (e) => {
|
|
|
152
223
|
.field__input-wrapper {
|
|
153
224
|
display: flex;
|
|
154
225
|
align-items: center;
|
|
155
|
-
border: var(--
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
background-color: var(--hx-input-bg, var(--hx-color-neutral-0, #ffffff));
|
|
226
|
+
border: var(--_text-input-border-width) solid var(--_text-input-border-color);
|
|
227
|
+
border-radius: var(--_text-input-border-radius);
|
|
228
|
+
background-color: var(--_text-input-bg);
|
|
159
229
|
transition:
|
|
160
230
|
border-color var(--hx-transition-fast, 150ms ease),
|
|
161
231
|
box-shadow var(--hx-transition-fast, 150ms ease);
|
|
162
232
|
overflow: hidden;
|
|
163
233
|
}
|
|
164
234
|
|
|
235
|
+
.field__input-wrapper:hover {
|
|
236
|
+
border-color: var(--_text-input-border-color-hover);
|
|
237
|
+
}
|
|
238
|
+
|
|
165
239
|
.field__input-wrapper:focus-within {
|
|
166
|
-
border-color: var(
|
|
167
|
-
|
|
168
|
-
var(--hx-focus-ring-color, var(--hx-color-primary-400, #60a5fa))
|
|
169
|
-
);
|
|
170
|
-
box-shadow: 0 0 0 var(--hx-focus-ring-width, 2px)
|
|
240
|
+
border-color: var(--_text-input-border-color-focus);
|
|
241
|
+
box-shadow: 0 0 0 var(--_text-input-focus-ring-width)
|
|
171
242
|
color-mix(
|
|
172
243
|
in srgb,
|
|
173
|
-
var(
|
|
174
|
-
--hx-input-focus-ring-color,
|
|
175
|
-
var(--hx-focus-ring-color, var(--hx-color-primary-400, #60a5fa))
|
|
176
|
-
)
|
|
177
|
-
calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
244
|
+
var(--_text-input-border-color-focus) calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
178
245
|
transparent
|
|
179
246
|
);
|
|
180
247
|
}
|
|
@@ -182,16 +249,15 @@ const T = (e) => {
|
|
|
182
249
|
/* ─── Error State ─── */
|
|
183
250
|
|
|
184
251
|
.field--error .field__input-wrapper {
|
|
185
|
-
border-color: var(--
|
|
252
|
+
border-color: var(--_text-input-border-color-invalid);
|
|
186
253
|
}
|
|
187
254
|
|
|
188
255
|
.field--error .field__input-wrapper:focus-within {
|
|
189
|
-
border-color: var(--
|
|
190
|
-
box-shadow: 0 0 0 var(--
|
|
256
|
+
border-color: var(--_text-input-border-color-invalid);
|
|
257
|
+
box-shadow: 0 0 0 var(--_text-input-focus-ring-width)
|
|
191
258
|
color-mix(
|
|
192
259
|
in srgb,
|
|
193
|
-
var(--
|
|
194
|
-
calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
260
|
+
var(--_text-input-border-color-invalid) calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
195
261
|
transparent
|
|
196
262
|
);
|
|
197
263
|
}
|
|
@@ -202,17 +268,17 @@ const T = (e) => {
|
|
|
202
268
|
.field__suffix {
|
|
203
269
|
display: flex;
|
|
204
270
|
align-items: center;
|
|
205
|
-
color: var(--hx-color-
|
|
271
|
+
color: var(--hx-color-text-muted, #4a5362);
|
|
206
272
|
flex-shrink: 0;
|
|
207
273
|
}
|
|
208
274
|
|
|
209
275
|
/* Only add padding when slot has content — avoids phantom space on empty slots */
|
|
210
276
|
.field__prefix--filled {
|
|
211
|
-
padding: 0 var(--
|
|
277
|
+
padding: 0 var(--_text-input-padding-x);
|
|
212
278
|
}
|
|
213
279
|
|
|
214
280
|
.field__suffix--filled {
|
|
215
|
-
padding: 0 var(--
|
|
281
|
+
padding: 0 var(--_text-input-padding-x);
|
|
216
282
|
}
|
|
217
283
|
|
|
218
284
|
/* ─── Native Input ─── */
|
|
@@ -222,17 +288,17 @@ const T = (e) => {
|
|
|
222
288
|
border: none;
|
|
223
289
|
outline: none;
|
|
224
290
|
background: transparent;
|
|
225
|
-
padding: var(--
|
|
291
|
+
padding: var(--_text-input-padding-y) var(--_text-input-padding-x);
|
|
226
292
|
font-family: inherit;
|
|
227
|
-
font-size: var(--
|
|
228
|
-
color: var(--
|
|
293
|
+
font-size: var(--_text-input-font-size);
|
|
294
|
+
color: var(--_text-input-color);
|
|
229
295
|
line-height: var(--hx-line-height-normal, 1.5);
|
|
230
296
|
min-height: var(--hx-size-10, 2.5rem);
|
|
231
297
|
width: 100%;
|
|
232
298
|
}
|
|
233
299
|
|
|
234
300
|
.field__input::placeholder {
|
|
235
|
-
color: var(--
|
|
301
|
+
color: var(--_text-input-placeholder-color);
|
|
236
302
|
}
|
|
237
303
|
|
|
238
304
|
.field__input:focus-visible {
|
|
@@ -241,6 +307,12 @@ const T = (e) => {
|
|
|
241
307
|
|
|
242
308
|
.field__input:disabled {
|
|
243
309
|
cursor: not-allowed;
|
|
310
|
+
background-color: var(--_text-input-disabled-bg);
|
|
311
|
+
color: var(--_text-input-disabled-color);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
:host([disabled]) .field__input-wrapper {
|
|
315
|
+
background-color: var(--_text-input-disabled-bg);
|
|
244
316
|
}
|
|
245
317
|
|
|
246
318
|
/* ─── Size Variants ─── */
|
|
@@ -248,7 +320,7 @@ const T = (e) => {
|
|
|
248
320
|
.field--size-sm .field__input {
|
|
249
321
|
padding: var(--hx-space-1, 0.25rem) var(--hx-space-2, 0.5rem);
|
|
250
322
|
min-height: var(--hx-size-8, 2rem);
|
|
251
|
-
font-size: var(--hx-input-sm-font-size, 0.875rem);
|
|
323
|
+
font-size: var(--hx-text-input-sm-font-size, var(--hx-input-sm-font-size, 0.875rem));
|
|
252
324
|
}
|
|
253
325
|
|
|
254
326
|
.field--size-md .field__input {
|
|
@@ -258,20 +330,20 @@ const T = (e) => {
|
|
|
258
330
|
.field--size-lg .field__input {
|
|
259
331
|
padding: var(--hx-space-3, 0.75rem) var(--hx-space-4, 1rem);
|
|
260
332
|
min-height: var(--hx-size-12, 3rem);
|
|
261
|
-
font-size: var(--hx-input-lg-font-size, 1.125rem);
|
|
333
|
+
font-size: var(--hx-text-input-lg-font-size, var(--hx-input-lg-font-size, 1.125rem));
|
|
262
334
|
}
|
|
263
335
|
|
|
264
336
|
/* ─── Help Text & Error Messages ─── */
|
|
265
337
|
|
|
266
338
|
.field__help-text {
|
|
267
339
|
font-size: var(--hx-font-size-xs, 0.75rem);
|
|
268
|
-
color: var(--
|
|
340
|
+
color: var(--_text-input-help-text-color);
|
|
269
341
|
line-height: var(--hx-line-height-normal, 1.5);
|
|
270
342
|
}
|
|
271
343
|
|
|
272
344
|
.field__error {
|
|
273
345
|
font-size: var(--hx-font-size-xs, 0.75rem);
|
|
274
|
-
color: var(--
|
|
346
|
+
color: var(--_text-input-error-color);
|
|
275
347
|
line-height: var(--hx-line-height-normal, 1.5);
|
|
276
348
|
}
|
|
277
349
|
|
|
@@ -283,7 +355,13 @@ const T = (e) => {
|
|
|
283
355
|
}
|
|
284
356
|
}
|
|
285
357
|
|
|
286
|
-
/* ─── High Contrast Mode (forced-colors) ───
|
|
358
|
+
/* ─── High Contrast Mode (forced-colors) ───
|
|
359
|
+
*
|
|
360
|
+
* Bespoke block — sole owner of forced-colors deference for hx-text-input.
|
|
361
|
+
* Covers wrapper/input/placeholder/focus/disabled/error/label/help-text;
|
|
362
|
+
* strictly more than forcedColorsField. The mixin is intentionally NOT
|
|
363
|
+
* composed (XOR rule — see styles/forced-colors.ts COMPOSITION RULES).
|
|
364
|
+
*/
|
|
287
365
|
|
|
288
366
|
@media (forced-colors: active) {
|
|
289
367
|
.field__input-wrapper {
|
|
@@ -341,13 +419,13 @@ const T = (e) => {
|
|
|
341
419
|
}
|
|
342
420
|
}
|
|
343
421
|
`;
|
|
344
|
-
var
|
|
345
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
422
|
+
var C = Object.defineProperty, E = Object.getOwnPropertyDescriptor, i = (e, t, l, a) => {
|
|
423
|
+
for (var s = a > 1 ? void 0 : a ? E(t, l) : t, d = e.length - 1, p; d >= 0; d--)
|
|
346
424
|
(p = e[d]) && (s = (a ? p(t, l, s) : p(s)) || s);
|
|
347
|
-
return a && s &&
|
|
425
|
+
return a && s && C(t, l, s), s;
|
|
348
426
|
};
|
|
349
|
-
const z =
|
|
350
|
-
let r = class extends T(
|
|
427
|
+
const z = S("hx-text-input");
|
|
428
|
+
let r = class extends T(m(w)) {
|
|
351
429
|
constructor() {
|
|
352
430
|
super(...arguments), this.label = "", this.placeholder = "", this.value = "", this.type = "text", this.required = !1, this.disabled = !1, this.error = "", this.helpText = "", this.name = "", this.accessibleLabel = null, this.readonly = !1, this.minlength = void 0, this.maxlength = void 0, this.pattern = "", this.autocomplete = "", this.requiredMessage = "This field is required.", this.size = "md", this._hasLabelSlot = !1, this._hasErrorSlot = !1, this._hasPrefixSlot = !1, this._hasSuffixSlot = !1, this._hasHelpTextSlot = !1, this._inputId = z(), this._helpTextId = `${this._inputId}-help`, this._errorId = `${this._inputId}-error`;
|
|
353
431
|
}
|
|
@@ -629,10 +707,10 @@ i([
|
|
|
629
707
|
u()
|
|
630
708
|
], r.prototype, "_hasHelpTextSlot", 2);
|
|
631
709
|
r = i([
|
|
632
|
-
|
|
710
|
+
b("hx-text-input")
|
|
633
711
|
], r);
|
|
634
712
|
export {
|
|
635
713
|
T as F,
|
|
636
714
|
r as H
|
|
637
715
|
};
|
|
638
|
-
//# sourceMappingURL=hx-text-input
|
|
716
|
+
//# sourceMappingURL=hx-text-input-Bn7Gn8CI.js.map
|