@helixui/library 3.1.0-next.70 → 3.1.0-next.72
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 +45 -45
- package/dist/components/hx-accordion/hx-accordion-item.d.ts.map +1 -1
- package/dist/components/hx-accordion/hx-accordion.d.ts.map +1 -1
- package/dist/components/hx-accordion/index.js +1 -1
- package/dist/components/hx-action-bar/hx-action-bar.d.ts.map +1 -1
- package/dist/components/hx-action-bar/index.js +1 -1
- 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.map +1 -1
- package/dist/components/hx-avatar/index.js +1 -1
- 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.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.d.ts.map +1 -1
- package/dist/components/hx-breadcrumb/index.js +1 -1
- 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.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.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.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 +7 -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 +2 -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.map +1 -1
- package/dist/components/hx-clinical-status/index.js +1 -1
- 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.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.map +1 -1
- package/dist/components/hx-combobox/index.js +1 -1
- 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.map +1 -1
- package/dist/components/hx-counter/index.js +1 -1
- package/dist/components/hx-data-table/hx-data-table.d.ts.map +1 -1
- package/dist/components/hx-data-table/hx-data-table.styles.d.ts.map +1 -1
- package/dist/components/hx-data-table/index.js +1 -1
- package/dist/components/hx-date-picker/hx-date-picker.d.ts.map +1 -1
- package/dist/components/hx-date-picker/index.js +1 -1
- 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.map +1 -1
- package/dist/components/hx-divider/index.js +1 -1
- 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.map +1 -1
- package/dist/components/hx-dropdown/index.js +1 -1
- package/dist/components/hx-field/index.js +1 -1
- 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.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-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.map +1 -1
- package/dist/components/hx-icon/index.js +1 -1
- 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.map +1 -1
- package/dist/components/hx-image/index.js +1 -1
- 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.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-item.styles.d.ts.map +1 -1
- package/dist/components/hx-menu/hx-menu.d.ts.map +1 -1
- package/dist/components/hx-menu/index.js +1 -1
- package/dist/components/hx-meter/hx-meter.d.ts.map +1 -1
- package/dist/components/hx-meter/hx-meter.styles.d.ts.map +1 -1
- package/dist/components/hx-meter/index.js +1 -1
- package/dist/components/hx-nav/hx-nav.d.ts.map +1 -1
- package/dist/components/hx-nav/hx-nav.styles.d.ts.map +1 -1
- package/dist/components/hx-nav/index.js +1 -1
- package/dist/components/hx-number-input/hx-number-input.d.ts.map +1 -1
- package/dist/components/hx-number-input/index.js +1 -1
- 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.map +1 -1
- package/dist/components/hx-pagination/hx-pagination.styles.d.ts.map +1 -1
- package/dist/components/hx-pagination/index.js +1 -1
- package/dist/components/hx-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 +5 -5
- package/dist/components/hx-phi-field/hx-phi-field.d.ts.map +1 -1
- package/dist/components/hx-phi-field/index.js +1 -1
- 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.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.map +1 -1
- package/dist/components/hx-progress-bar/index.js +1 -1
- package/dist/components/hx-progress-ring/hx-progress-ring.d.ts.map +1 -1
- package/dist/components/hx-progress-ring/index.js +1 -1
- package/dist/components/hx-prose/index.js +1 -1
- package/dist/components/hx-radio-group/hx-radio-group.d.ts +3 -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.map +1 -1
- package/dist/components/hx-rating/index.js +1 -1
- package/dist/components/hx-select/hx-select.d.ts.map +1 -1
- package/dist/components/hx-select/index.js +1 -1
- package/dist/components/hx-side-nav/hx-nav-item.d.ts.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.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.map +1 -1
- package/dist/components/hx-skeleton/index.js +1 -1
- package/dist/components/hx-slider/hx-slider.d.ts.map +1 -1
- package/dist/components/hx-slider/hx-slider.styles.d.ts.map +1 -1
- package/dist/components/hx-slider/index.js +1 -1
- package/dist/components/hx-spinner/hx-spinner.d.ts.map +1 -1
- package/dist/components/hx-spinner/index.js +1 -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.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-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.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.map +1 -1
- package/dist/components/hx-steps/index.js +1 -1
- 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.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 +6 -6
- package/dist/components/hx-table/hx-table.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 +8 -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.map +1 -1
- package/dist/components/hx-tag/index.js +1 -1
- 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.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.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-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.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.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.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.map +1 -1
- package/dist/components/hx-top-nav/hx-top-nav.styles.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-item.styles.d.ts.map +1 -1
- package/dist/components/hx-tree-view/hx-tree-view.d.ts.map +1 -1
- package/dist/components/hx-tree-view/index.js +1 -1
- package/dist/css/helix-all.css +1107 -775
- package/dist/css/helix-core.css +213 -152
- package/dist/css/helix-data.css +51 -42
- package/dist/css/helix-feedback.css +121 -94
- package/dist/css/helix-forms.css +465 -301
- package/dist/css/helix-layout.css +7 -4
- package/dist/css/helix-media.css +13 -9
- package/dist/css/helix-navigation.css +80 -53
- package/dist/css/helix-overlay.css +57 -45
- package/dist/css/helix-tokens.css +103 -103
- package/dist/css/helix-utility.css +51 -34
- package/dist/css/hx-action-bar.css +4 -4
- 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 +38 -21
- package/dist/css/hx-card.css +24 -10
- package/dist/css/hx-carousel.css +13 -9
- package/dist/css/hx-checkbox-group.css +3 -3
- package/dist/css/hx-checkbox.css +17 -17
- package/dist/css/hx-clinical-status.css +28 -28
- package/dist/css/hx-code-snippet.css +18 -15
- package/dist/css/hx-color-picker.css +30 -13
- package/dist/css/hx-combobox.css +26 -26
- package/dist/css/hx-copy-button.css +6 -3
- package/dist/css/hx-counter.css +1 -1
- package/dist/css/hx-data-table.css +21 -15
- package/dist/css/hx-date-picker.css +31 -31
- package/dist/css/hx-dialog.css +31 -24
- package/dist/css/hx-divider.css +2 -2
- package/dist/css/hx-drawer.css +13 -13
- package/dist/css/hx-dropdown.css +1 -1
- package/dist/css/hx-field-label.css +3 -3
- package/dist/css/hx-field.css +6 -6
- package/dist/css/hx-file-upload.css +16 -16
- package/dist/css/hx-help-text.css +5 -5
- package/dist/css/hx-icon-button.css +49 -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 +1 -1
- package/dist/css/hx-meter.css +11 -10
- package/dist/css/hx-nav.css +17 -11
- package/dist/css/hx-number-input.css +6 -6
- package/dist/css/hx-overflow-menu.css +17 -8
- package/dist/css/hx-pagination.css +18 -12
- package/dist/css/hx-patient-banner.css +17 -9
- package/dist/css/hx-phi-field.css +4 -4
- package/dist/css/hx-popover.css +8 -4
- 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 +12 -12
- package/dist/css/hx-side-nav.css +13 -10
- package/dist/css/hx-skeleton.css +1 -1
- package/dist/css/hx-slider.css +14 -11
- package/dist/css/hx-spinner.css +4 -4
- package/dist/css/hx-split-button.css +40 -26
- package/dist/css/hx-split-panel.css +7 -4
- 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 +15 -7
- package/dist/css/hx-table.css +6 -6
- 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 +25 -19
- package/dist/css/hx-toast.css +24 -9
- package/dist/css/hx-toggle-button.css +41 -28
- package/dist/css/hx-tooltip.css +4 -3
- package/dist/css/hx-top-nav.css +10 -7
- package/dist/css/hx-tree-view.css +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/manifest.json +106 -22
- package/dist/index.js +74 -74
- 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-cnKg4_la.js} +31 -30
- package/dist/shared/hx-accordion-cnKg4_la.js.map +1 -0
- package/dist/shared/{hx-action-bar-6UzmViHI.js → hx-action-bar-CitgcpGv.js} +37 -36
- package/dist/shared/hx-action-bar-CitgcpGv.js.map +1 -0
- package/dist/shared/{hx-alert-D7n94HwI.js → hx-alert-BZH8iHQf.js} +36 -31
- package/dist/shared/hx-alert-BZH8iHQf.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-DT7Zn9Bo.js} +43 -35
- package/dist/shared/hx-banner-DT7Zn9Bo.js.map +1 -0
- package/dist/shared/{hx-breadcrumb-item-BgG5RcmA.js → hx-breadcrumb-item-COeYcB2x.js} +24 -23
- package/dist/shared/hx-breadcrumb-item-COeYcB2x.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-button-CQZswjtQ.js → hx-button-modUSOpY.js} +52 -34
- package/dist/shared/hx-button-modUSOpY.js.map +1 -0
- package/dist/shared/{hx-card-Dy_FuLfS.js → hx-card-CU1QnjNb.js} +42 -27
- package/dist/shared/hx-card-CU1QnjNb.js.map +1 -0
- package/dist/shared/{hx-carousel-item-D_dCv61-.js → hx-carousel-item-BaE4hpLl.js} +38 -33
- package/dist/shared/hx-carousel-item-BaE4hpLl.js.map +1 -0
- package/dist/shared/{hx-checkbox-ZKjOF7_3.js → hx-checkbox-C46TyXhM.js} +29 -28
- package/dist/shared/hx-checkbox-C46TyXhM.js.map +1 -0
- package/dist/shared/{hx-checkbox-group-XjOBHLiP.js → hx-checkbox-group-C9n315Ju.js} +18 -17
- package/dist/shared/hx-checkbox-group-C9n315Ju.js.map +1 -0
- package/dist/shared/{hx-clinical-status-BS5lcddT.js → hx-clinical-status-BmSjfSEN.js} +55 -54
- package/dist/shared/hx-clinical-status-BmSjfSEN.js.map +1 -0
- package/dist/shared/{hx-code-snippet-DssubcYM.js → hx-code-snippet-CJ0FbQYG.js} +34 -30
- package/dist/shared/hx-code-snippet-CJ0FbQYG.js.map +1 -0
- package/dist/shared/{hx-color-picker-DBaKTVLr.js → hx-color-picker-DiDLZyvK.js} +74 -56
- package/dist/shared/hx-color-picker-DiDLZyvK.js.map +1 -0
- package/dist/shared/{hx-combobox-DLwnvHVd.js → hx-combobox-DaA5dBC4.js} +38 -37
- package/dist/shared/hx-combobox-DaA5dBC4.js.map +1 -0
- 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-CnLxo9PH.js → hx-data-table-Cq3t86Ic.js} +101 -94
- package/dist/shared/hx-data-table-Cq3t86Ic.js.map +1 -0
- package/dist/shared/{hx-date-picker-D7H7CsVH.js → hx-date-picker-DMqRQNSB.js} +42 -41
- package/dist/shared/hx-date-picker-DMqRQNSB.js.map +1 -0
- package/dist/shared/{hx-dialog-BW-jetzN.js → hx-dialog-eIS8tcDm.js} +50 -42
- package/dist/shared/hx-dialog-eIS8tcDm.js.map +1 -0
- package/dist/shared/{hx-divider-CvyUVcp-.js → hx-divider-CYfcUjcr.js} +11 -10
- package/dist/shared/hx-divider-CYfcUjcr.js.map +1 -0
- package/dist/shared/{hx-drawer-BT52I4tk.js → hx-drawer-DDhDz7RI.js} +26 -25
- package/dist/shared/hx-drawer-DDhDz7RI.js.map +1 -0
- package/dist/shared/{hx-dropdown-BpVpL6Dz.js → hx-dropdown-LyaRc8Rf.js} +15 -14
- package/dist/shared/hx-dropdown-LyaRc8Rf.js.map +1 -0
- package/dist/shared/{hx-field-BX4zE3z5.js → hx-field-B3Qo8OLS.js} +11 -11
- package/dist/shared/{hx-field-BX4zE3z5.js.map → hx-field-B3Qo8OLS.js.map} +1 -1
- package/dist/shared/{hx-field-label-DtJzb1r3.js → hx-field-label-BVRyyKeh.js} +12 -11
- package/dist/shared/hx-field-label-BVRyyKeh.js.map +1 -0
- package/dist/shared/{hx-file-upload-BNuepoGn.js → hx-file-upload-zTDbjsRw.js} +37 -36
- package/dist/shared/hx-file-upload-zTDbjsRw.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-help-text-Br3igJv5.js → hx-help-text-Xb2Yr8x2.js} +29 -28
- package/dist/shared/hx-help-text-Xb2Yr8x2.js.map +1 -0
- package/dist/shared/{hx-icon-button-CqXH5Wwb.js → hx-icon-button-BmV97nqz.js} +81 -69
- package/dist/shared/hx-icon-button-BmV97nqz.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-Bem4Gn68.js → hx-link-DmiV-mPw.js} +19 -18
- package/dist/shared/hx-link-DmiV-mPw.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-DsHWyPHy.js → hx-menu-divider-j__TZjH2.js} +36 -32
- package/dist/shared/hx-menu-divider-j__TZjH2.js.map +1 -0
- package/dist/shared/{hx-meter-TbROk-dw.js → hx-meter-Cm7k_Ro8.js} +42 -40
- package/dist/shared/hx-meter-Cm7k_Ro8.js.map +1 -0
- package/dist/shared/{hx-nav-BcYDmjf7.js → hx-nav-LoyEKZQC.js} +30 -23
- package/dist/shared/hx-nav-LoyEKZQC.js.map +1 -0
- package/dist/shared/{hx-nav-item-BTMMQv6c.js → hx-nav-item-D8xHLVOs.js} +74 -66
- package/dist/shared/hx-nav-item-D8xHLVOs.js.map +1 -0
- package/dist/shared/{hx-number-input-l6jeaGWW.js → hx-number-input-yUzFOSC1.js} +56 -55
- package/dist/shared/hx-number-input-yUzFOSC1.js.map +1 -0
- package/dist/shared/{hx-overflow-menu-DJ4qpgmi.js → hx-overflow-menu-BmKyAp5D.js} +34 -24
- package/dist/shared/hx-overflow-menu-BmKyAp5D.js.map +1 -0
- package/dist/shared/{hx-pagination-5FeVFIve.js → hx-pagination-Dqw5dorC.js} +40 -33
- package/dist/shared/hx-pagination-Dqw5dorC.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-DxeWcRm9.js → hx-phi-field-Bf9TdtC1.js} +13 -12
- package/dist/shared/hx-phi-field-Bf9TdtC1.js.map +1 -0
- package/dist/shared/{hx-popover-C05QcD9m.js → hx-popover-B93rTAfr.js} +27 -22
- package/dist/shared/hx-popover-B93rTAfr.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-CJdwAeDg.js → hx-progress-bar-Bn3JEPUf.js} +25 -24
- 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-QHrhL908.js → hx-radio-N8xgDd_5.js} +34 -33
- package/dist/shared/hx-radio-N8xgDd_5.js.map +1 -0
- package/dist/shared/{hx-rating-BO9kl9pb.js → hx-rating-i2FL1WUN.js} +14 -13
- package/dist/shared/hx-rating-i2FL1WUN.js.map +1 -0
- package/dist/shared/{hx-select-BuMvRDkY.js → hx-select-vgaBo1Ai.js} +26 -25
- package/dist/shared/hx-select-vgaBo1Ai.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-wcF_oyNJ.js → hx-slider-ydBamYhd.js} +58 -54
- package/dist/shared/hx-slider-ydBamYhd.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-CEkQqbF9.js → hx-split-button-BeMsmS6N.js} +58 -43
- package/dist/shared/hx-split-button-BeMsmS6N.js.map +1 -0
- package/dist/shared/{hx-split-panel-BymHlV5e.js → hx-split-panel-BVG1VWNT.js} +14 -10
- package/dist/shared/hx-split-panel-BVG1VWNT.js.map +1 -0
- package/dist/shared/{hx-stat-DTRyLF3a.js → hx-stat-WOcNV1Ry.js} +17 -16
- package/dist/shared/hx-stat-WOcNV1Ry.js.map +1 -0
- package/dist/shared/{hx-status-indicator-DIGRGM2G.js → hx-status-indicator-BlQyen43.js} +15 -14
- package/dist/shared/hx-status-indicator-BlQyen43.js.map +1 -0
- package/dist/shared/{hx-step-D15gtcLm.js → hx-step-DL3PbOzm.js} +61 -48
- package/dist/shared/hx-step-DL3PbOzm.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-CbunfMHW.js → hx-switch-Dougzsgp.js} +28 -19
- package/dist/shared/hx-switch-Dougzsgp.js.map +1 -0
- package/dist/shared/{hx-tab-panel-BIzKfW5i.js → hx-tab-panel-CbkO9VKu.js} +45 -44
- package/dist/shared/hx-tab-panel-CbkO9VKu.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-B737T0_c.js → hx-td-1zwTFLRw.js} +41 -40
- package/dist/shared/hx-td-1zwTFLRw.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-eSPVURd5.js → hx-text-input-B-caO5fI.js} +159 -80
- package/dist/shared/hx-text-input-B-caO5fI.js.map +1 -0
- package/dist/shared/{hx-textarea-C4DjRmo4.js → hx-textarea-D9O4U8cb.js} +109 -69
- package/dist/shared/hx-textarea-D9O4U8cb.js.map +1 -0
- package/dist/shared/{hx-time-picker-BtbHX7A4.js → hx-time-picker-m0z4nFB-.js} +41 -34
- package/dist/shared/hx-time-picker-m0z4nFB-.js.map +1 -0
- package/dist/shared/{hx-toggle-button-FOvw-ebx.js → hx-toggle-button-Dd8clXB4.js} +67 -53
- package/dist/shared/hx-toggle-button-Dd8clXB4.js.map +1 -0
- package/dist/shared/{hx-tooltip-BoZi2crX.js → hx-tooltip-nYOv9OLu.js} +18 -16
- package/dist/shared/hx-tooltip-nYOv9OLu.js.map +1 -0
- package/dist/shared/{hx-top-nav-Cd9zvv1B.js → hx-top-nav-CchPYaiV.js} +32 -28
- package/dist/shared/hx-top-nav-CchPYaiV.js.map +1 -0
- package/dist/shared/{hx-tree-item-A45WCiBu.js → hx-tree-item-DtMC3DTa.js} +35 -28
- package/dist/shared/hx-tree-item-DtMC3DTa.js.map +1 -0
- package/dist/shared/{toast-factory-M373dTcz.js → toast-factory-DvDRAh0l.js} +87 -71
- package/dist/shared/toast-factory-DvDRAh0l.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 +81 -81
- package/package.json +2 -2
- package/dist/shared/hx-accordion-Wt52OOZD.js.map +0 -1
- package/dist/shared/hx-action-bar-6UzmViHI.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-BgG5RcmA.js.map +0 -1
- package/dist/shared/hx-button-CQZswjtQ.js.map +0 -1
- package/dist/shared/hx-button-group-BJOGWoMa.js.map +0 -1
- package/dist/shared/hx-card-Dy_FuLfS.js.map +0 -1
- package/dist/shared/hx-carousel-item-D_dCv61-.js.map +0 -1
- package/dist/shared/hx-checkbox-ZKjOF7_3.js.map +0 -1
- package/dist/shared/hx-checkbox-group-XjOBHLiP.js.map +0 -1
- package/dist/shared/hx-clinical-status-BS5lcddT.js.map +0 -1
- package/dist/shared/hx-code-snippet-DssubcYM.js.map +0 -1
- package/dist/shared/hx-color-picker-DBaKTVLr.js.map +0 -1
- package/dist/shared/hx-combobox-DLwnvHVd.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-CnLxo9PH.js.map +0 -1
- package/dist/shared/hx-date-picker-D7H7CsVH.js.map +0 -1
- package/dist/shared/hx-dialog-BW-jetzN.js.map +0 -1
- package/dist/shared/hx-divider-CvyUVcp-.js.map +0 -1
- package/dist/shared/hx-drawer-BT52I4tk.js.map +0 -1
- package/dist/shared/hx-dropdown-BpVpL6Dz.js.map +0 -1
- package/dist/shared/hx-field-label-DtJzb1r3.js.map +0 -1
- package/dist/shared/hx-file-upload-BNuepoGn.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-Br3igJv5.js.map +0 -1
- package/dist/shared/hx-icon-CcyDPDYY.js.map +0 -1
- package/dist/shared/hx-icon-button-CqXH5Wwb.js.map +0 -1
- package/dist/shared/hx-image-2gt14zZd.js.map +0 -1
- package/dist/shared/hx-link-Bem4Gn68.js.map +0 -1
- package/dist/shared/hx-list-_9qVv02L.js.map +0 -1
- package/dist/shared/hx-menu-divider-DsHWyPHy.js.map +0 -1
- package/dist/shared/hx-meter-TbROk-dw.js.map +0 -1
- package/dist/shared/hx-nav-BcYDmjf7.js.map +0 -1
- package/dist/shared/hx-nav-item-BTMMQv6c.js.map +0 -1
- package/dist/shared/hx-number-input-l6jeaGWW.js.map +0 -1
- package/dist/shared/hx-overflow-menu-DJ4qpgmi.js.map +0 -1
- package/dist/shared/hx-pagination-5FeVFIve.js.map +0 -1
- package/dist/shared/hx-patient-banner-uE6gqLpT.js.map +0 -1
- package/dist/shared/hx-phi-field-DxeWcRm9.js.map +0 -1
- package/dist/shared/hx-popover-C05QcD9m.js.map +0 -1
- package/dist/shared/hx-popup-DZXpsJ1R.js.map +0 -1
- package/dist/shared/hx-progress-bar-CJdwAeDg.js.map +0 -1
- package/dist/shared/hx-progress-ring-3zMwvrwD.js.map +0 -1
- package/dist/shared/hx-radio-QHrhL908.js.map +0 -1
- package/dist/shared/hx-rating-BO9kl9pb.js.map +0 -1
- package/dist/shared/hx-select-BuMvRDkY.js.map +0 -1
- package/dist/shared/hx-skeleton-LxkI0pxr.js.map +0 -1
- package/dist/shared/hx-slider-wcF_oyNJ.js.map +0 -1
- package/dist/shared/hx-spinner-BKjuCdZB.js.map +0 -1
- package/dist/shared/hx-split-button-CEkQqbF9.js.map +0 -1
- package/dist/shared/hx-split-panel-BymHlV5e.js.map +0 -1
- package/dist/shared/hx-stat-DTRyLF3a.js.map +0 -1
- package/dist/shared/hx-status-indicator-DIGRGM2G.js.map +0 -1
- package/dist/shared/hx-step-D15gtcLm.js.map +0 -1
- package/dist/shared/hx-structured-list-CqNbaEXg.js.map +0 -1
- package/dist/shared/hx-switch-CbunfMHW.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-B737T0_c.js.map +0 -1
- package/dist/shared/hx-text-DMC2CPlL.js.map +0 -1
- package/dist/shared/hx-text-input-eSPVURd5.js.map +0 -1
- package/dist/shared/hx-textarea-C4DjRmo4.js.map +0 -1
- package/dist/shared/hx-time-picker-BtbHX7A4.js.map +0 -1
- package/dist/shared/hx-toggle-button-FOvw-ebx.js.map +0 -1
- package/dist/shared/hx-tooltip-BoZi2crX.js.map +0 -1
- package/dist/shared/hx-top-nav-Cd9zvv1B.js.map +0 -1
- package/dist/shared/hx-tree-item-A45WCiBu.js.map +0 -1
- package/dist/shared/toast-factory-M373dTcz.js.map +0 -1
|
@@ -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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;AC8DxB,IAAMC,IAAN,cAAwBC,EAAa;AAAA,EAArC,cAAA;AAAA,UAAA,GAAA,SAAA,GAgBL,KAAA,UACE,QAOF,KAAA,SAAiE,QAOjE,KAAA,QACE,WAOF,KAAA,WAAW,IAQX,KAAA,QAAQ,GAYR,KAAA,KAA6C;AAAA,EAAA;AAAA;AAAA;AAAA,EAI7C,IAAY,WAAmB;AAE7B,gCADoB,IAAI,CAAC,QAAQ,KAAK,UAAU,MAAM,KAAK,CAAC,GAC7C,IAAI,KAAK,EAAE,IAAI,KAAK,KAAK;AAAA,EAC1C;AAAA,EAES,SAAS;;AAChB,UAAMC,IAAiB,KAAK,IAAI,GAAG,KAAK,KAAK,GACvCC,IAAc,KAAK,YAAYD,MAAmB,GAClDE,IAAYF,IAAiB,GAC7BG,IAAU;AAAA,MACd,MAAM;AAAA,MACN,CAAC,SAAS,KAAK,OAAO,EAAE,GAAG;AAAA,MAC3B,CAAC,eAAe,KAAK,KAAK,EAAE,GAAG;AAAA,MAC/B,CAAC,gBAAgB,KAAK,MAAM,EAAE,GAAG,KAAK,WAAW;AAAA,MACjD,kBAAkBF;AAAA,MAClB,eAAeC;AAAA,IAAA,GAGXE,IAAeF,IAAY,EAAE,sBAAsB,OAAOF,CAAc,EAAA,IAAM,CAAA,GAE9EK,IAAYJ,KAAeC,KAAYI,IAAA,KAAK,gBAAL,gBAAAA,EAAkB,SAAS,QAElEC,IAAMC,EAAa,KAAK,QAAQ;AAEtC,WAAOC;AAAAA,SACFF,CAAG;AAAA;AAAA,gBAEIG,EAASP,CAAO,CAAC;AAAA,gBACjBQ,EAASP,CAAY,CAAC;AAAA,gBACtBQ,EAAUP,KAAa,MAAS,CAAC;AAAA;AAAA;AAAA,UAGvCE,CAAG;AAAA;AAAA,EAEX;AACF;AAlGaT,EACK,SAAS,CAACF,GAAiBiB,CAAmB;AAe9DC,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GAf9BjB,EAgBX,WAAA,WAAA,CAAA;AAQAgB,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GAvB9BjB,EAwBX,WAAA,UAAA,CAAA;AAOAgB,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GA9B9BjB,EA+BX,WAAA,SAAA,CAAA;AAQAgB,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GAtC/BjB,EAuCX,WAAA,YAAA,CAAA;AAQAgB,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GA9C9BjB,EA+CX,WAAA,SAAA,CAAA;AAYAgB,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GA1D9BjB,EA2DX,WAAA,MAAA,CAAA;AA3DWA,IAANgB,EAAA;AAAA,EADNE,EAAc,SAAS;AAAA,GACXlB,CAAA;"}
|
|
@@ -1,18 +1,19 @@
|
|
|
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
|
|
7
|
-
import {
|
|
6
|
+
import { F as m } from "./FormMixin-B8PXk5RQ.js";
|
|
7
|
+
import { b as y } from "./forced-colors-CTEDFRGa.js";
|
|
8
|
+
import { d as w } from "./dev-warn-YlwPHjtX.js";
|
|
8
9
|
import { H as S } from "./helix-element-BNEYeiys.js";
|
|
9
|
-
import { c as
|
|
10
|
-
var
|
|
10
|
+
import { c as $ } from "./id-counter-DuX8vsui.js";
|
|
11
|
+
var T = Object.defineProperty, x = (e, t, l, a) => {
|
|
11
12
|
for (var s = void 0, d = e.length - 1, p; d >= 0; d--)
|
|
12
13
|
(p = e[d]) && (s = p(t, l, s) || s);
|
|
13
|
-
return s &&
|
|
14
|
+
return s && T(t, l, s), s;
|
|
14
15
|
};
|
|
15
|
-
const
|
|
16
|
+
const I = (e) => {
|
|
16
17
|
class t extends e {
|
|
17
18
|
constructor() {
|
|
18
19
|
super(...arguments), this.focused = !1, this.focusedVisible = !1, this._focusPending = !1, this._lastInteractionWasPointer = !1, this._handleFocusIn = () => {
|
|
@@ -64,9 +65,103 @@ const T = (e) => {
|
|
|
64
65
|
], t.prototype, "focused"), x([
|
|
65
66
|
o({ type: Boolean, reflect: !0, attribute: "focused-visible" })
|
|
66
67
|
], t.prototype, "focusedVisible"), t;
|
|
67
|
-
},
|
|
68
|
+
}, C = _`
|
|
68
69
|
:host {
|
|
69
70
|
display: block;
|
|
71
|
+
|
|
72
|
+
/* ─── Component tokens (3.2.0) ──────────────────────────────────── */
|
|
73
|
+
|
|
74
|
+
/* Surface */
|
|
75
|
+
--_text-input-bg: var(
|
|
76
|
+
--hx-text-input-bg,
|
|
77
|
+
var(--hx-input-bg, var(--hx-color-surface-default, #ffffff))
|
|
78
|
+
);
|
|
79
|
+
--_text-input-color: var(
|
|
80
|
+
--hx-text-input-color,
|
|
81
|
+
var(--hx-input-color, var(--hx-color-text-strong, #202b39))
|
|
82
|
+
);
|
|
83
|
+
--_text-input-placeholder-color: var(
|
|
84
|
+
--hx-text-input-placeholder-color,
|
|
85
|
+
var(--hx-color-text-placeholder, #66787b)
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
/* Border */
|
|
89
|
+
--_text-input-border-color: var(
|
|
90
|
+
--hx-text-input-border-color,
|
|
91
|
+
var(--hx-input-border-color, var(--hx-color-border-strong, #8e9c98))
|
|
92
|
+
);
|
|
93
|
+
--_text-input-border-color-hover: var(
|
|
94
|
+
--hx-text-input-border-color-hover,
|
|
95
|
+
var(--hx-color-border-strong, #8e9c98)
|
|
96
|
+
);
|
|
97
|
+
--_text-input-border-color-focus: var(
|
|
98
|
+
--hx-text-input-border-color-focus,
|
|
99
|
+
var(
|
|
100
|
+
--hx-input-focus-ring-color,
|
|
101
|
+
var(--hx-focus-ring-color, var(--hx-color-primary-400, #6ab1b1))
|
|
102
|
+
)
|
|
103
|
+
);
|
|
104
|
+
--_text-input-border-color-invalid: var(
|
|
105
|
+
--hx-text-input-border-color-invalid,
|
|
106
|
+
var(--hx-input-error-color, var(--hx-color-error-600, #c92a2a))
|
|
107
|
+
);
|
|
108
|
+
--_text-input-border-width: var(--hx-text-input-border-width, var(--hx-border-width-thin, 1px));
|
|
109
|
+
--_text-input-border-radius: var(
|
|
110
|
+
--hx-text-input-border-radius,
|
|
111
|
+
var(--hx-input-border-radius, var(--hx-border-radius-md, 0.375rem))
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
/* Spacing */
|
|
115
|
+
--_text-input-padding-x: var(--hx-text-input-padding-x, var(--hx-space-3, 0.75rem));
|
|
116
|
+
--_text-input-padding-y: var(--hx-text-input-padding-y, var(--hx-space-2, 0.5rem));
|
|
117
|
+
|
|
118
|
+
/* Typography */
|
|
119
|
+
--_text-input-font-family: var(
|
|
120
|
+
--hx-text-input-font-family,
|
|
121
|
+
var(--hx-input-font-family, var(--hx-font-family-sans, sans-serif))
|
|
122
|
+
);
|
|
123
|
+
--_text-input-font-size: var(--hx-text-input-font-size, var(--hx-font-size-md, 1rem));
|
|
124
|
+
|
|
125
|
+
/* Focus ring */
|
|
126
|
+
--_text-input-focus-ring-color: var(
|
|
127
|
+
--hx-text-input-focus-ring-color,
|
|
128
|
+
var(
|
|
129
|
+
--hx-input-focus-ring-color,
|
|
130
|
+
var(--hx-focus-ring-color, var(--hx-color-primary-400, #6ab1b1))
|
|
131
|
+
)
|
|
132
|
+
);
|
|
133
|
+
--_text-input-focus-ring-width: var(
|
|
134
|
+
--hx-text-input-focus-ring-width,
|
|
135
|
+
var(--hx-focus-ring-width, 2px)
|
|
136
|
+
);
|
|
137
|
+
--_text-input-focus-ring-offset: var(
|
|
138
|
+
--hx-text-input-focus-ring-offset,
|
|
139
|
+
var(--hx-focus-ring-offset, 0px)
|
|
140
|
+
);
|
|
141
|
+
|
|
142
|
+
/* Disabled */
|
|
143
|
+
--_text-input-disabled-bg: var(
|
|
144
|
+
--hx-text-input-disabled-bg,
|
|
145
|
+
var(--hx-color-surface-sunken, #ebeee9)
|
|
146
|
+
);
|
|
147
|
+
--_text-input-disabled-color: var(
|
|
148
|
+
--hx-text-input-disabled-color,
|
|
149
|
+
var(--hx-color-text-disabled, #8e9c98)
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
/* Label / help / error */
|
|
153
|
+
--_text-input-label-color: var(
|
|
154
|
+
--hx-text-input-label-color,
|
|
155
|
+
var(--hx-input-label-color, var(--hx-color-text-strong, #202b39))
|
|
156
|
+
);
|
|
157
|
+
--_text-input-help-text-color: var(
|
|
158
|
+
--hx-text-input-help-text-color,
|
|
159
|
+
var(--hx-color-text-muted, #4a5362)
|
|
160
|
+
);
|
|
161
|
+
--_text-input-error-color: var(
|
|
162
|
+
--hx-text-input-error-color,
|
|
163
|
+
var(--hx-input-error-color, var(--hx-color-error-text, #c92a2a))
|
|
164
|
+
);
|
|
70
165
|
}
|
|
71
166
|
|
|
72
167
|
:host([disabled]) {
|
|
@@ -81,36 +176,13 @@ const T = (e) => {
|
|
|
81
176
|
* These complement the :focus-within rules on .field__input-wrapper and are
|
|
82
177
|
* exposed as theming hooks for consumers who target the host element.
|
|
83
178
|
*/
|
|
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
|
-
|
|
179
|
+
:host([focused]) .field__input-wrapper,
|
|
101
180
|
: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)
|
|
181
|
+
border-color: var(--_text-input-border-color-focus);
|
|
182
|
+
box-shadow: 0 0 0 var(--_text-input-focus-ring-width)
|
|
107
183
|
color-mix(
|
|
108
184
|
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%),
|
|
185
|
+
var(--_text-input-border-color-focus) calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
114
186
|
transparent
|
|
115
187
|
);
|
|
116
188
|
}
|
|
@@ -123,7 +195,7 @@ const T = (e) => {
|
|
|
123
195
|
display: flex;
|
|
124
196
|
flex-direction: column;
|
|
125
197
|
gap: var(--hx-space-1, 0.25rem);
|
|
126
|
-
font-family: var(--
|
|
198
|
+
font-family: var(--_text-input-font-family);
|
|
127
199
|
}
|
|
128
200
|
|
|
129
201
|
/* ─── Label ─── */
|
|
@@ -138,12 +210,12 @@ const T = (e) => {
|
|
|
138
210
|
gap: var(--hx-space-1, 0.25rem);
|
|
139
211
|
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
140
212
|
font-weight: var(--hx-font-weight-medium, 500);
|
|
141
|
-
color: var(--
|
|
213
|
+
color: var(--_text-input-label-color);
|
|
142
214
|
line-height: var(--hx-line-height-normal, 1.5);
|
|
143
215
|
}
|
|
144
216
|
|
|
145
217
|
.field__required-marker {
|
|
146
|
-
color: var(--
|
|
218
|
+
color: var(--_text-input-error-color);
|
|
147
219
|
font-weight: var(--hx-font-weight-bold, 700);
|
|
148
220
|
}
|
|
149
221
|
|
|
@@ -152,29 +224,25 @@ const T = (e) => {
|
|
|
152
224
|
.field__input-wrapper {
|
|
153
225
|
display: flex;
|
|
154
226
|
align-items: center;
|
|
155
|
-
border: var(--
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
background-color: var(--hx-input-bg, var(--hx-color-surface-default, #ffffff));
|
|
227
|
+
border: var(--_text-input-border-width) solid var(--_text-input-border-color);
|
|
228
|
+
border-radius: var(--_text-input-border-radius);
|
|
229
|
+
background-color: var(--_text-input-bg);
|
|
159
230
|
transition:
|
|
160
231
|
border-color var(--hx-transition-fast, 150ms ease),
|
|
161
232
|
box-shadow var(--hx-transition-fast, 150ms ease);
|
|
162
233
|
overflow: hidden;
|
|
163
234
|
}
|
|
164
235
|
|
|
236
|
+
.field__input-wrapper:hover {
|
|
237
|
+
border-color: var(--_text-input-border-color-hover);
|
|
238
|
+
}
|
|
239
|
+
|
|
165
240
|
.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)
|
|
241
|
+
border-color: var(--_text-input-border-color-focus);
|
|
242
|
+
box-shadow: 0 0 0 var(--_text-input-focus-ring-width)
|
|
171
243
|
color-mix(
|
|
172
244
|
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%),
|
|
245
|
+
var(--_text-input-border-color-focus) calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
178
246
|
transparent
|
|
179
247
|
);
|
|
180
248
|
}
|
|
@@ -182,16 +250,15 @@ const T = (e) => {
|
|
|
182
250
|
/* ─── Error State ─── */
|
|
183
251
|
|
|
184
252
|
.field--error .field__input-wrapper {
|
|
185
|
-
border-color: var(--
|
|
253
|
+
border-color: var(--_text-input-border-color-invalid);
|
|
186
254
|
}
|
|
187
255
|
|
|
188
256
|
.field--error .field__input-wrapper:focus-within {
|
|
189
|
-
border-color: var(--
|
|
190
|
-
box-shadow: 0 0 0 var(--
|
|
257
|
+
border-color: var(--_text-input-border-color-invalid);
|
|
258
|
+
box-shadow: 0 0 0 var(--_text-input-focus-ring-width)
|
|
191
259
|
color-mix(
|
|
192
260
|
in srgb,
|
|
193
|
-
var(--
|
|
194
|
-
calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
261
|
+
var(--_text-input-border-color-invalid) calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
195
262
|
transparent
|
|
196
263
|
);
|
|
197
264
|
}
|
|
@@ -202,17 +269,17 @@ const T = (e) => {
|
|
|
202
269
|
.field__suffix {
|
|
203
270
|
display: flex;
|
|
204
271
|
align-items: center;
|
|
205
|
-
color: var(--hx-color-text-muted, #
|
|
272
|
+
color: var(--hx-color-text-muted, #4a5362);
|
|
206
273
|
flex-shrink: 0;
|
|
207
274
|
}
|
|
208
275
|
|
|
209
276
|
/* Only add padding when slot has content — avoids phantom space on empty slots */
|
|
210
277
|
.field__prefix--filled {
|
|
211
|
-
padding: 0 var(--
|
|
278
|
+
padding: 0 var(--_text-input-padding-x);
|
|
212
279
|
}
|
|
213
280
|
|
|
214
281
|
.field__suffix--filled {
|
|
215
|
-
padding: 0 var(--
|
|
282
|
+
padding: 0 var(--_text-input-padding-x);
|
|
216
283
|
}
|
|
217
284
|
|
|
218
285
|
/* ─── Native Input ─── */
|
|
@@ -222,17 +289,17 @@ const T = (e) => {
|
|
|
222
289
|
border: none;
|
|
223
290
|
outline: none;
|
|
224
291
|
background: transparent;
|
|
225
|
-
padding: var(--
|
|
292
|
+
padding: var(--_text-input-padding-y) var(--_text-input-padding-x);
|
|
226
293
|
font-family: inherit;
|
|
227
|
-
font-size: var(--
|
|
228
|
-
color: var(--
|
|
294
|
+
font-size: var(--_text-input-font-size);
|
|
295
|
+
color: var(--_text-input-color);
|
|
229
296
|
line-height: var(--hx-line-height-normal, 1.5);
|
|
230
297
|
min-height: var(--hx-size-10, 2.5rem);
|
|
231
298
|
width: 100%;
|
|
232
299
|
}
|
|
233
300
|
|
|
234
301
|
.field__input::placeholder {
|
|
235
|
-
color: var(--
|
|
302
|
+
color: var(--_text-input-placeholder-color);
|
|
236
303
|
}
|
|
237
304
|
|
|
238
305
|
.field__input:focus-visible {
|
|
@@ -241,6 +308,12 @@ const T = (e) => {
|
|
|
241
308
|
|
|
242
309
|
.field__input:disabled {
|
|
243
310
|
cursor: not-allowed;
|
|
311
|
+
background-color: var(--_text-input-disabled-bg);
|
|
312
|
+
color: var(--_text-input-disabled-color);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
:host([disabled]) .field__input-wrapper {
|
|
316
|
+
background-color: var(--_text-input-disabled-bg);
|
|
244
317
|
}
|
|
245
318
|
|
|
246
319
|
/* ─── Size Variants ─── */
|
|
@@ -248,7 +321,7 @@ const T = (e) => {
|
|
|
248
321
|
.field--size-sm .field__input {
|
|
249
322
|
padding: var(--hx-space-1, 0.25rem) var(--hx-space-2, 0.5rem);
|
|
250
323
|
min-height: var(--hx-size-8, 2rem);
|
|
251
|
-
font-size: var(--hx-input-sm-font-size, 0.875rem);
|
|
324
|
+
font-size: var(--hx-text-input-sm-font-size, var(--hx-input-sm-font-size, 0.875rem));
|
|
252
325
|
}
|
|
253
326
|
|
|
254
327
|
.field--size-md .field__input {
|
|
@@ -258,20 +331,20 @@ const T = (e) => {
|
|
|
258
331
|
.field--size-lg .field__input {
|
|
259
332
|
padding: var(--hx-space-3, 0.75rem) var(--hx-space-4, 1rem);
|
|
260
333
|
min-height: var(--hx-size-12, 3rem);
|
|
261
|
-
font-size: var(--hx-input-lg-font-size, 1.125rem);
|
|
334
|
+
font-size: var(--hx-text-input-lg-font-size, var(--hx-input-lg-font-size, 1.125rem));
|
|
262
335
|
}
|
|
263
336
|
|
|
264
337
|
/* ─── Help Text & Error Messages ─── */
|
|
265
338
|
|
|
266
339
|
.field__help-text {
|
|
267
340
|
font-size: var(--hx-font-size-xs, 0.75rem);
|
|
268
|
-
color: var(--
|
|
341
|
+
color: var(--_text-input-help-text-color);
|
|
269
342
|
line-height: var(--hx-line-height-normal, 1.5);
|
|
270
343
|
}
|
|
271
344
|
|
|
272
345
|
.field__error {
|
|
273
346
|
font-size: var(--hx-font-size-xs, 0.75rem);
|
|
274
|
-
color: var(--
|
|
347
|
+
color: var(--_text-input-error-color);
|
|
275
348
|
line-height: var(--hx-line-height-normal, 1.5);
|
|
276
349
|
}
|
|
277
350
|
|
|
@@ -283,7 +356,13 @@ const T = (e) => {
|
|
|
283
356
|
}
|
|
284
357
|
}
|
|
285
358
|
|
|
286
|
-
/* ─── High Contrast Mode (forced-colors) ───
|
|
359
|
+
/* ─── High Contrast Mode (forced-colors) ───
|
|
360
|
+
*
|
|
361
|
+
* Component-specific overrides that complement the shared forcedColorsField
|
|
362
|
+
* mixin (composed in static styles). The mixin handles the input/wrapper
|
|
363
|
+
* core; the rules below extend it to the label / error / help-text /
|
|
364
|
+
* disabled-host surfaces unique to hx-text-input.
|
|
365
|
+
*/
|
|
287
366
|
|
|
288
367
|
@media (forced-colors: active) {
|
|
289
368
|
.field__input-wrapper {
|
|
@@ -341,15 +420,15 @@ const T = (e) => {
|
|
|
341
420
|
}
|
|
342
421
|
}
|
|
343
422
|
`;
|
|
344
|
-
var
|
|
345
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
423
|
+
var z = Object.defineProperty, E = Object.getOwnPropertyDescriptor, i = (e, t, l, a) => {
|
|
424
|
+
for (var s = a > 1 ? void 0 : a ? E(t, l) : t, d = e.length - 1, p; d >= 0; d--)
|
|
346
425
|
(p = e[d]) && (s = (a ? p(t, l, s) : p(s)) || s);
|
|
347
|
-
return a && s &&
|
|
426
|
+
return a && s && z(t, l, s), s;
|
|
348
427
|
};
|
|
349
|
-
const
|
|
350
|
-
let r = class extends
|
|
428
|
+
const F = $("hx-text-input");
|
|
429
|
+
let r = class extends I(m(S)) {
|
|
351
430
|
constructor() {
|
|
352
|
-
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 =
|
|
431
|
+
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 = F(), this._helpTextId = `${this._inputId}-help`, this._errorId = `${this._inputId}-error`;
|
|
353
432
|
}
|
|
354
433
|
// ─── FocusMixin integration ───
|
|
355
434
|
/**
|
|
@@ -389,7 +468,7 @@ let r = class extends T(b(S)) {
|
|
|
389
468
|
}
|
|
390
469
|
// ─── Lifecycle ───
|
|
391
470
|
updated(e) {
|
|
392
|
-
super.updated(e), e.has("value") && this._internals.setFormValue(this.value), (e.has("value") || e.has("type")) && this.type === "number" && this.value !== "" && isNaN(Number(this.value)) &&
|
|
471
|
+
super.updated(e), e.has("value") && this._internals.setFormValue(this.value), (e.has("value") || e.has("type")) && this.type === "number" && this.value !== "" && isNaN(Number(this.value)) && w(
|
|
393
472
|
"hx-text-input",
|
|
394
473
|
`type="number" received non-numeric value "${this.value}". Browser will display empty input.`
|
|
395
474
|
);
|
|
@@ -557,7 +636,7 @@ let r = class extends T(b(S)) {
|
|
|
557
636
|
`;
|
|
558
637
|
}
|
|
559
638
|
};
|
|
560
|
-
r.styles = [
|
|
639
|
+
r.styles = [C, y];
|
|
561
640
|
r.formAssociated = !0;
|
|
562
641
|
i([
|
|
563
642
|
o({ type: String })
|
|
@@ -629,10 +708,10 @@ i([
|
|
|
629
708
|
u()
|
|
630
709
|
], r.prototype, "_hasHelpTextSlot", 2);
|
|
631
710
|
r = i([
|
|
632
|
-
|
|
711
|
+
b("hx-text-input")
|
|
633
712
|
], r);
|
|
634
713
|
export {
|
|
635
|
-
|
|
714
|
+
I as F,
|
|
636
715
|
r as H
|
|
637
716
|
};
|
|
638
|
-
//# sourceMappingURL=hx-text-input-
|
|
717
|
+
//# sourceMappingURL=hx-text-input-B-caO5fI.js.map
|