@helixui/library 3.3.1 → 3.4.0-next.121
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 +340 -71
- package/dist/components/hx-accordion/hx-accordion-item.d.ts +35 -0
- package/dist/components/hx-accordion/hx-accordion-item.d.ts.map +1 -1
- package/dist/components/hx-alert/hx-alert.d.ts +11 -0
- package/dist/components/hx-alert/hx-alert.d.ts.map +1 -1
- package/dist/components/hx-alert/hx-alert.styles.d.ts.map +1 -1
- package/dist/components/hx-alert/index.js +1 -1
- package/dist/components/hx-badge/hx-badge.styles.d.ts.map +1 -1
- package/dist/components/hx-badge/index.js +1 -1
- package/dist/components/hx-banner/hx-banner.d.ts +9 -1
- package/dist/components/hx-banner/hx-banner.d.ts.map +1 -1
- package/dist/components/hx-banner/index.js +1 -1
- package/dist/components/hx-button/hx-button.d.ts +11 -1
- package/dist/components/hx-button/hx-button.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 +13 -0
- package/dist/components/hx-button-group/hx-button-group.d.ts.map +1 -1
- package/dist/components/hx-button-group/index.js +1 -1
- package/dist/components/hx-checkbox/hx-checkbox.d.ts +153 -1
- package/dist/components/hx-checkbox/hx-checkbox.d.ts.map +1 -1
- package/dist/components/hx-checkbox/hx-checkbox.styles.d.ts.map +1 -1
- package/dist/components/hx-checkbox/index.js +1 -1
- package/dist/components/hx-checkbox-group/hx-checkbox-group.d.ts +151 -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-color-picker/hx-color-picker.d.ts +163 -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 +311 -2
- 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-data-table/hx-data-table.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 +182 -56
- package/dist/components/hx-date-picker/hx-date-picker.d.ts.map +1 -1
- package/dist/components/hx-date-picker/hx-date-picker.styles.d.ts.map +1 -1
- package/dist/components/hx-date-picker/index.js +1 -1
- package/dist/components/hx-dialog/hx-dialog.d.ts +240 -0
- package/dist/components/hx-dialog/hx-dialog.d.ts.map +1 -1
- package/dist/components/hx-dialog/index.js +1 -1
- package/dist/components/hx-drawer/hx-drawer.d.ts +201 -0
- package/dist/components/hx-drawer/hx-drawer.d.ts.map +1 -1
- package/dist/components/hx-drawer/hx-drawer.styles.d.ts.map +1 -1
- package/dist/components/hx-drawer/index.js +1 -1
- package/dist/components/hx-dropdown/hx-dropdown.d.ts +168 -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 +109 -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-icon-button/hx-icon-button.d.ts +16 -3
- 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-link/hx-link.d.ts +10 -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 +27 -1
- package/dist/components/hx-list/hx-list-item.d.ts.map +1 -1
- package/dist/components/hx-list/hx-list.d.ts +28 -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 +10 -0
- package/dist/components/hx-menu/hx-menu-divider.d.ts.map +1 -1
- package/dist/components/hx-menu/hx-menu-item.d.ts +99 -2
- 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 +117 -2
- 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 +39 -0
- package/dist/components/hx-meter/hx-meter.d.ts.map +1 -1
- package/dist/components/hx-meter/hx-meter.styles.d.ts.map +1 -1
- package/dist/components/hx-meter/index.js +1 -1
- package/dist/components/hx-overflow-menu/hx-overflow-menu.d.ts +132 -1
- package/dist/components/hx-overflow-menu/hx-overflow-menu.d.ts.map +1 -1
- package/dist/components/hx-overflow-menu/index.js +1 -1
- package/dist/components/hx-phi-field/hx-phi-field.d.ts +0 -1
- package/dist/components/hx-phi-field/hx-phi-field.d.ts.map +1 -1
- package/dist/components/hx-popover/hx-popover.d.ts +91 -0
- package/dist/components/hx-popover/hx-popover.d.ts.map +1 -1
- package/dist/components/hx-popover/index.js +1 -1
- package/dist/components/hx-progress-bar/hx-progress-bar.d.ts +33 -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-radio-group/hx-radio-group.d.ts +152 -1
- package/dist/components/hx-radio-group/hx-radio-group.d.ts.map +1 -1
- package/dist/components/hx-radio-group/hx-radio.d.ts +14 -0
- 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-select/hx-select.d.ts +304 -2
- package/dist/components/hx-select/hx-select.d.ts.map +1 -1
- package/dist/components/hx-select/hx-select.styles.d.ts.map +1 -1
- package/dist/components/hx-select/index.js +1 -1
- package/dist/components/hx-side-nav/hx-nav-item.styles.d.ts.map +1 -1
- package/dist/components/hx-side-nav/index.js +1 -1
- package/dist/components/hx-spinner/hx-spinner.d.ts +14 -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 +94 -7
- package/dist/components/hx-split-button/hx-split-button.d.ts.map +1 -1
- package/dist/components/hx-split-button/index.js +1 -1
- package/dist/components/hx-stat/hx-stat.d.ts +28 -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-switch/hx-switch.d.ts +78 -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-td.d.ts +30 -3
- package/dist/components/hx-table/hx-td.d.ts.map +1 -1
- package/dist/components/hx-table/hx-th.d.ts +39 -3
- package/dist/components/hx-table/hx-th.d.ts.map +1 -1
- package/dist/components/hx-table/hx-tr.d.ts +26 -0
- package/dist/components/hx-table/hx-tr.d.ts.map +1 -1
- package/dist/components/hx-table/index.js +1 -1
- package/dist/components/hx-tabs/hx-tab-panel.d.ts +34 -0
- package/dist/components/hx-tabs/hx-tab-panel.d.ts.map +1 -1
- package/dist/components/hx-tabs/hx-tab.d.ts +45 -2
- package/dist/components/hx-tabs/hx-tab.d.ts.map +1 -1
- package/dist/components/hx-tabs/hx-tab.styles.d.ts.map +1 -1
- package/dist/components/hx-tabs/hx-tabs.d.ts +32 -2
- 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.styles.d.ts.map +1 -1
- package/dist/components/hx-tag/index.js +1 -1
- package/dist/components/hx-theme/hx-theme.d.ts +10 -5
- package/dist/components/hx-theme/hx-theme.d.ts.map +1 -1
- package/dist/components/hx-time-picker/hx-time-picker.d.ts +210 -2
- 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-stack.d.ts +14 -0
- package/dist/components/hx-toast/hx-toast-stack.d.ts.map +1 -1
- package/dist/components/hx-toast/hx-toast.d.ts +22 -3
- package/dist/components/hx-toast/hx-toast.d.ts.map +1 -1
- package/dist/components/hx-toast/index.js +1 -1
- package/dist/components/hx-toast/toast-factory.d.ts.map +1 -1
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts +110 -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 +52 -0
- package/dist/components/hx-tooltip/hx-tooltip.d.ts.map +1 -1
- package/dist/components/hx-tooltip/index.js +1 -1
- package/dist/components/hx-tree-view/hx-tree-item.d.ts +117 -12
- 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 +87 -7
- 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 +221 -1
- package/dist/css/helix-core.css +81 -0
- package/dist/css/helix-feedback.css +14 -0
- package/dist/css/helix-forms.css +109 -1
- package/dist/css/helix-overlay.css +17 -0
- package/dist/css/hx-alert.css +9 -0
- package/dist/css/hx-badge.css +28 -0
- package/dist/css/hx-checkbox.css +18 -0
- package/dist/css/hx-color-picker.css +25 -0
- package/dist/css/hx-date-picker.css +2 -1
- package/dist/css/hx-drawer.css +17 -0
- package/dist/css/hx-icon-button.css +30 -0
- package/dist/css/hx-meter.css +5 -0
- package/dist/css/hx-select.css +19 -0
- package/dist/css/hx-switch.css +17 -0
- package/dist/css/hx-tag.css +23 -0
- package/dist/css/hx-time-picker.css +11 -0
- package/dist/css/hx-toggle-button.css +17 -0
- package/dist/css/index.css +1 -1
- package/dist/css/manifest.json +4 -1
- package/dist/index.js +38 -38
- package/dist/shared/aria-flatten-DY6v2vah.js +22 -0
- package/dist/shared/aria-flatten-DY6v2vah.js.map +1 -0
- package/dist/shared/aria-idref-CxvyzfQS.js +126 -0
- package/dist/shared/aria-idref-CxvyzfQS.js.map +1 -0
- package/dist/shared/hx-accordion-ZVzgDzTG.js.map +1 -1
- package/dist/shared/{hx-alert-CLn7CstP.js → hx-alert-Bto8-TIi.js} +55 -37
- package/dist/shared/hx-alert-Bto8-TIi.js.map +1 -0
- package/dist/shared/{hx-badge-CQXgOXJM.js → hx-badge-JlFtAdxS.js} +37 -9
- package/dist/shared/hx-badge-JlFtAdxS.js.map +1 -0
- package/dist/shared/{hx-banner-D3DzpfcP.js → hx-banner-fpRnciIO.js} +13 -5
- package/dist/shared/hx-banner-fpRnciIO.js.map +1 -0
- package/dist/shared/{hx-button-DPY6SPVT.js → hx-button-BOwAEcF1.js} +108 -85
- package/dist/shared/{hx-button-DPY6SPVT.js.map → hx-button-BOwAEcF1.js.map} +1 -1
- package/dist/shared/{hx-button-group-BI-QBqmO.js → hx-button-group-DcHP5MBv.js} +15 -16
- package/dist/shared/{hx-button-group-BI-QBqmO.js.map → hx-button-group-DcHP5MBv.js.map} +1 -1
- package/dist/shared/hx-checkbox-C48KYKFq.js +696 -0
- package/dist/shared/hx-checkbox-C48KYKFq.js.map +1 -0
- package/dist/shared/hx-checkbox-group-BJIAX3zU.js +496 -0
- package/dist/shared/hx-checkbox-group-BJIAX3zU.js.map +1 -0
- package/dist/shared/hx-color-picker-Dk4cBwYQ.js +1221 -0
- package/dist/shared/hx-color-picker-Dk4cBwYQ.js.map +1 -0
- package/dist/shared/hx-combobox-BTLO9qiK.js +1359 -0
- package/dist/shared/hx-combobox-BTLO9qiK.js.map +1 -0
- package/dist/shared/{hx-data-table-CLqVqdxr.js → hx-data-table-Ct3gQ6ya.js} +3 -2
- package/dist/shared/{hx-data-table-CLqVqdxr.js.map → hx-data-table-Ct3gQ6ya.js.map} +1 -1
- package/dist/shared/{hx-date-picker-2iRG1p74.js → hx-date-picker-CiR7FVnR.js} +542 -206
- package/dist/shared/hx-date-picker-CiR7FVnR.js.map +1 -0
- package/dist/shared/hx-dialog-AOZpHSuF.js +717 -0
- package/dist/shared/hx-dialog-AOZpHSuF.js.map +1 -0
- package/dist/shared/{hx-drawer-Y1Ui2IWJ.js → hx-drawer-DH6CdAN1.js} +300 -98
- package/dist/shared/hx-drawer-DH6CdAN1.js.map +1 -0
- package/dist/shared/hx-dropdown-DiLd40Lm.js +401 -0
- package/dist/shared/hx-dropdown-DiLd40Lm.js.map +1 -0
- package/dist/shared/{hx-field-B3Qo8OLS.js → hx-field-zw0U1KVi.js} +99 -38
- package/dist/shared/hx-field-zw0U1KVi.js.map +1 -0
- package/dist/shared/{hx-icon-button-CGNdQSFM.js → hx-icon-button-a6OpeQz5.js} +149 -68
- package/dist/shared/hx-icon-button-a6OpeQz5.js.map +1 -0
- package/dist/shared/{hx-link-C-O6vq0Q.js → hx-link-CMnZRUtQ.js} +55 -43
- package/dist/shared/hx-link-CMnZRUtQ.js.map +1 -0
- package/dist/shared/{hx-list-MyEhh8c7.js → hx-list-De66EtAP.js} +163 -107
- package/dist/shared/hx-list-De66EtAP.js.map +1 -0
- package/dist/shared/hx-menu-divider-BjiRIWKq.js +797 -0
- package/dist/shared/hx-menu-divider-BjiRIWKq.js.map +1 -0
- package/dist/shared/{hx-meter-BPscsw5t.js → hx-meter-BJdh6nrF.js} +105 -64
- package/dist/shared/hx-meter-BJdh6nrF.js.map +1 -0
- package/dist/shared/{hx-nav-item-xqRPOCWX.js → hx-nav-item-CODtUlew.js} +13 -9
- package/dist/shared/{hx-nav-item-xqRPOCWX.js.map → hx-nav-item-CODtUlew.js.map} +1 -1
- package/dist/shared/hx-overflow-menu-BQ4fiMYu.js +492 -0
- package/dist/shared/hx-overflow-menu-BQ4fiMYu.js.map +1 -0
- package/dist/shared/hx-phi-field-C19oxlrr.js.map +1 -1
- package/dist/shared/{hx-popover-B-FP3-wW.js → hx-popover-B9W8-tC0.js} +123 -66
- package/dist/shared/hx-popover-B9W8-tC0.js.map +1 -0
- package/dist/shared/hx-progress-bar-C8nDMdYa.js +290 -0
- package/dist/shared/hx-progress-bar-C8nDMdYa.js.map +1 -0
- package/dist/shared/hx-radio-Z1lV1zTO.js +822 -0
- package/dist/shared/hx-radio-Z1lV1zTO.js.map +1 -0
- package/dist/shared/hx-select-D18CnJ0e.js +1089 -0
- package/dist/shared/hx-select-D18CnJ0e.js.map +1 -0
- package/dist/shared/{hx-spinner-DL5AYr16.js → hx-spinner-BB0h2hKZ.js} +62 -34
- package/dist/shared/hx-spinner-BB0h2hKZ.js.map +1 -0
- package/dist/shared/{hx-split-button-Djnc5Aeg.js → hx-split-button-BoABoEm5.js} +153 -82
- package/dist/shared/hx-split-button-BoABoEm5.js.map +1 -0
- package/dist/shared/{hx-stat-WOcNV1Ry.js → hx-stat-Dtf9lz-O.js} +77 -47
- package/dist/shared/hx-stat-Dtf9lz-O.js.map +1 -0
- package/dist/shared/hx-switch-B6kr-EwE.js +540 -0
- package/dist/shared/hx-switch-B6kr-EwE.js.map +1 -0
- package/dist/shared/{hx-tab-panel-DspCrKqo.js → hx-tab-panel-BQtBXKLD.js} +255 -131
- package/dist/shared/hx-tab-panel-BQtBXKLD.js.map +1 -0
- package/dist/shared/{hx-tag-CNSmdyaK.js → hx-tag-C5aCUpVi.js} +63 -40
- package/dist/shared/hx-tag-C5aCUpVi.js.map +1 -0
- package/dist/shared/{hx-td-DnnEMIuA.js → hx-td-BGkFOJEK.js} +267 -123
- package/dist/shared/hx-td-BGkFOJEK.js.map +1 -0
- package/dist/shared/hx-theme-BsefFWTO.js.map +1 -1
- package/dist/shared/hx-time-picker-iwCD7rzW.js +1038 -0
- package/dist/shared/hx-time-picker-iwCD7rzW.js.map +1 -0
- package/dist/shared/{hx-toggle-button-iLiYrMbD.js → hx-toggle-button-BQ81EDkl.js} +226 -65
- package/dist/shared/hx-toggle-button-BQ81EDkl.js.map +1 -0
- package/dist/shared/{hx-tooltip-nYOv9OLu.js → hx-tooltip-DVqtKPCD.js} +68 -46
- package/dist/shared/hx-tooltip-DVqtKPCD.js.map +1 -0
- package/dist/shared/hx-tree-item-CHrUhuZL.js +925 -0
- package/dist/shared/hx-tree-item-CHrUhuZL.js.map +1 -0
- package/dist/shared/menu-roving-DmMnzJhn.js +14 -0
- package/dist/shared/menu-roving-DmMnzJhn.js.map +1 -0
- package/dist/shared/menu-tree-BNM0SYYq.js +42 -0
- package/dist/shared/menu-tree-BNM0SYYq.js.map +1 -0
- package/dist/shared/{toast-factory-YSznocIV.js → toast-factory-CL2BzdSB.js} +128 -77
- package/dist/shared/toast-factory-CL2BzdSB.js.map +1 -0
- package/dist/utils/aria-flatten.d.ts +56 -0
- package/dist/utils/aria-flatten.d.ts.map +1 -0
- package/dist/utils/aria-idref.d.ts +127 -0
- package/dist/utils/aria-idref.d.ts.map +1 -0
- package/dist/utils/menu-label.d.ts +18 -0
- package/dist/utils/menu-label.d.ts.map +1 -0
- package/dist/utils/menu-roving.d.ts +28 -0
- package/dist/utils/menu-roving.d.ts.map +1 -0
- package/dist/utils/menu-tree.d.ts +41 -0
- package/dist/utils/menu-tree.d.ts.map +1 -0
- package/dist/utils/tree-walk.d.ts +53 -0
- package/dist/utils/tree-walk.d.ts.map +1 -0
- package/figma-inventory.json +132 -20
- package/package.json +2 -2
- package/dist/shared/hx-alert-CLn7CstP.js.map +0 -1
- package/dist/shared/hx-badge-CQXgOXJM.js.map +0 -1
- package/dist/shared/hx-banner-D3DzpfcP.js.map +0 -1
- package/dist/shared/hx-checkbox-D7xma9YH.js +0 -524
- package/dist/shared/hx-checkbox-D7xma9YH.js.map +0 -1
- package/dist/shared/hx-checkbox-group-C9n315Ju.js +0 -323
- package/dist/shared/hx-checkbox-group-C9n315Ju.js.map +0 -1
- package/dist/shared/hx-color-picker-uRc865FJ.js +0 -882
- package/dist/shared/hx-color-picker-uRc865FJ.js.map +0 -1
- package/dist/shared/hx-combobox-DDzqNKEW.js +0 -924
- package/dist/shared/hx-combobox-DDzqNKEW.js.map +0 -1
- package/dist/shared/hx-date-picker-2iRG1p74.js.map +0 -1
- package/dist/shared/hx-dialog-DRN_1-Y-.js +0 -514
- package/dist/shared/hx-dialog-DRN_1-Y-.js.map +0 -1
- package/dist/shared/hx-drawer-Y1Ui2IWJ.js.map +0 -1
- package/dist/shared/hx-dropdown-LyaRc8Rf.js +0 -263
- package/dist/shared/hx-dropdown-LyaRc8Rf.js.map +0 -1
- package/dist/shared/hx-field-B3Qo8OLS.js.map +0 -1
- package/dist/shared/hx-icon-button-CGNdQSFM.js.map +0 -1
- package/dist/shared/hx-link-C-O6vq0Q.js.map +0 -1
- package/dist/shared/hx-list-MyEhh8c7.js.map +0 -1
- package/dist/shared/hx-menu-divider-C2omnPtj.js +0 -558
- package/dist/shared/hx-menu-divider-C2omnPtj.js.map +0 -1
- package/dist/shared/hx-meter-BPscsw5t.js.map +0 -1
- package/dist/shared/hx-overflow-menu-DCLsdIBy.js +0 -374
- package/dist/shared/hx-overflow-menu-DCLsdIBy.js.map +0 -1
- package/dist/shared/hx-popover-B-FP3-wW.js.map +0 -1
- package/dist/shared/hx-progress-bar-Bn3JEPUf.js +0 -258
- package/dist/shared/hx-progress-bar-Bn3JEPUf.js.map +0 -1
- package/dist/shared/hx-radio-CJvNU2yP.js +0 -621
- package/dist/shared/hx-radio-CJvNU2yP.js.map +0 -1
- package/dist/shared/hx-select-C8fEHQhC.js +0 -807
- package/dist/shared/hx-select-C8fEHQhC.js.map +0 -1
- package/dist/shared/hx-spinner-DL5AYr16.js.map +0 -1
- package/dist/shared/hx-split-button-Djnc5Aeg.js.map +0 -1
- package/dist/shared/hx-stat-WOcNV1Ry.js.map +0 -1
- package/dist/shared/hx-switch-BrZFaRue.js +0 -420
- package/dist/shared/hx-switch-BrZFaRue.js.map +0 -1
- package/dist/shared/hx-tab-panel-DspCrKqo.js.map +0 -1
- package/dist/shared/hx-tag-CNSmdyaK.js.map +0 -1
- package/dist/shared/hx-td-DnnEMIuA.js.map +0 -1
- package/dist/shared/hx-time-picker-BoEIZwzv.js +0 -688
- package/dist/shared/hx-time-picker-BoEIZwzv.js.map +0 -1
- package/dist/shared/hx-toggle-button-iLiYrMbD.js.map +0 -1
- package/dist/shared/hx-tooltip-nYOv9OLu.js.map +0 -1
- package/dist/shared/hx-tree-item-C2CiWuDE.js +0 -703
- package/dist/shared/hx-tree-item-C2CiWuDE.js.map +0 -1
- package/dist/shared/toast-factory-YSznocIV.js.map +0 -1
|
@@ -1,621 +0,0 @@
|
|
|
1
|
-
import { css as g, nothing as h, html as p } from "lit";
|
|
2
|
-
import { property as d, state as S, customElement as m } from "lit/decorators.js";
|
|
3
|
-
import { classMap as y } from "lit/directives/class-map.js";
|
|
4
|
-
import { F as C } from "./FormMixin-B8PXk5RQ.js";
|
|
5
|
-
import { b as k } from "./forced-colors-CTEDFRGa.js";
|
|
6
|
-
import { H as w } from "./helix-element-BNEYeiys.js";
|
|
7
|
-
import { c as R } from "./id-counter-DuX8vsui.js";
|
|
8
|
-
const E = g`
|
|
9
|
-
:host {
|
|
10
|
-
display: block;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
:host([disabled]) {
|
|
14
|
-
opacity: var(--hx-opacity-disabled, 0.5);
|
|
15
|
-
pointer-events: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
* {
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* ─── Fieldset ─── */
|
|
23
|
-
|
|
24
|
-
.fieldset {
|
|
25
|
-
border: none;
|
|
26
|
-
margin: 0;
|
|
27
|
-
padding: 0;
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
gap: var(--hx-space-2, 0.5rem);
|
|
31
|
-
font-family: var(--hx-radio-group-font-family, var(--hx-font-family-sans, sans-serif));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* ─── Legend ─── */
|
|
35
|
-
|
|
36
|
-
.fieldset__legend {
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: baseline;
|
|
39
|
-
gap: var(--hx-space-1, 0.25rem);
|
|
40
|
-
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
41
|
-
font-weight: var(--hx-font-weight-medium, 500);
|
|
42
|
-
color: var(--hx-radio-group-label-color, var(--hx-color-text-strong, #202b39));
|
|
43
|
-
line-height: var(--hx-line-height-normal, 1.5);
|
|
44
|
-
padding: 0;
|
|
45
|
-
margin-bottom: var(--hx-space-1, 0.25rem);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.fieldset__required-marker {
|
|
49
|
-
color: var(--hx-radio-group-error-color, var(--hx-color-error-text, #c92a2a));
|
|
50
|
-
font-weight: var(--hx-font-weight-bold, 700);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* ─── Group Container ─── */
|
|
54
|
-
|
|
55
|
-
.fieldset__group {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
gap: var(--hx-radio-group-gap, var(--hx-space-3, 0.75rem));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host([orientation='horizontal']) .fieldset__group {
|
|
62
|
-
flex-direction: row;
|
|
63
|
-
flex-wrap: wrap;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* ─── Error State ─── */
|
|
67
|
-
|
|
68
|
-
.fieldset--error .fieldset__legend {
|
|
69
|
-
color: var(--hx-radio-group-error-color, var(--hx-color-error-text, #c92a2a));
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* ─── Help Text & Error Messages ─── */
|
|
73
|
-
|
|
74
|
-
.fieldset__help-text {
|
|
75
|
-
font-size: var(--hx-font-size-xs, 0.75rem);
|
|
76
|
-
color: var(--hx-radio-group-help-text-color, var(--hx-color-text-muted, #66787b));
|
|
77
|
-
line-height: var(--hx-line-height-normal, 1.5);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.fieldset__error {
|
|
81
|
-
font-size: var(--hx-font-size-xs, 0.75rem);
|
|
82
|
-
color: var(--hx-radio-group-error-color, var(--hx-color-error-text, #c92a2a));
|
|
83
|
-
line-height: var(--hx-line-height-normal, 1.5);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/* ─── High Contrast Mode (forced-colors) ─── */
|
|
87
|
-
|
|
88
|
-
@media (forced-colors: active) {
|
|
89
|
-
.fieldset {
|
|
90
|
-
border: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.fieldset__legend {
|
|
94
|
-
color: CanvasText;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.fieldset--error .fieldset__legend {
|
|
98
|
-
color: LinkText;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
:host([disabled]) {
|
|
102
|
-
opacity: 1;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
:host([disabled]) .fieldset__legend {
|
|
106
|
-
color: GrayText;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.fieldset__help-text {
|
|
110
|
-
color: GrayText;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.fieldset__error {
|
|
114
|
-
color: LinkText;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
`;
|
|
118
|
-
var I = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, n = (e, t, i, r) => {
|
|
119
|
-
for (var o = r > 1 ? void 0 : r ? $(t, i) : t, a = e.length - 1, s; a >= 0; a--)
|
|
120
|
-
(s = e[a]) && (o = (r ? s(t, i, o) : s(o)) || o);
|
|
121
|
-
return r && o && I(t, i, o), o;
|
|
122
|
-
};
|
|
123
|
-
const T = R("hx-radio-group");
|
|
124
|
-
let l = class extends C(w) {
|
|
125
|
-
constructor() {
|
|
126
|
-
super(...arguments), this.value = "", this.name = "", this.label = "", this.required = !1, this.disabled = !1, this.error = "", this.helpText = "", this.orientation = "vertical", this._hasErrorSlot = !1, this._groupId = T(), this._helpTextId = `${this._groupId}-help`, this._errorId = `${this._groupId}-error`, this._cachedRadios = null, this._individualDisabledStates = /* @__PURE__ */ new WeakMap(), this._handleRadioSelect = (e) => {
|
|
127
|
-
if (!(e instanceof CustomEvent)) return;
|
|
128
|
-
e.stopPropagation();
|
|
129
|
-
const t = e.detail.value;
|
|
130
|
-
t !== this.value && (this.value = t, this._handleInteractionInput(), this.dispatchEvent(
|
|
131
|
-
new CustomEvent("hx-change", {
|
|
132
|
-
bubbles: !0,
|
|
133
|
-
composed: !0,
|
|
134
|
-
detail: { value: this.value, checked: !0 }
|
|
135
|
-
})
|
|
136
|
-
));
|
|
137
|
-
}, this._handleKeydown = (e) => {
|
|
138
|
-
var x, b, _, v;
|
|
139
|
-
const t = this._getEnabledRadios();
|
|
140
|
-
if (t.length === 0 || ![
|
|
141
|
-
"ArrowUp",
|
|
142
|
-
"ArrowDown",
|
|
143
|
-
"ArrowLeft",
|
|
144
|
-
"ArrowRight",
|
|
145
|
-
" ",
|
|
146
|
-
"Home",
|
|
147
|
-
"End"
|
|
148
|
-
].includes(e.key))
|
|
149
|
-
return;
|
|
150
|
-
if (e.preventDefault(), e.key === " ") {
|
|
151
|
-
const u = (b = (x = e.target) == null ? void 0 : x.closest) == null ? void 0 : b.call(x, "hx-radio");
|
|
152
|
-
u && !u.disabled && u.dispatchEvent(
|
|
153
|
-
new CustomEvent("hx-radio-select", {
|
|
154
|
-
bubbles: !0,
|
|
155
|
-
composed: !0,
|
|
156
|
-
detail: { value: u.value }
|
|
157
|
-
})
|
|
158
|
-
);
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
const r = (v = (_ = e.target) == null ? void 0 : _.closest) == null ? void 0 : v.call(_, "hx-radio"), o = r ? t.indexOf(r) : t.findIndex((u) => u.checked);
|
|
162
|
-
let a;
|
|
163
|
-
e.key === "Home" ? a = 0 : e.key === "End" ? a = t.length - 1 : e.key === "ArrowDown" || e.key === "ArrowRight" ? a = o === -1 ? 0 : (o + 1) % t.length : a = o <= 0 ? t.length - 1 : o - 1;
|
|
164
|
-
const s = t[a];
|
|
165
|
-
s && (s.focus(), s.dispatchEvent(
|
|
166
|
-
new CustomEvent("hx-radio-select", {
|
|
167
|
-
bubbles: !0,
|
|
168
|
-
composed: !0,
|
|
169
|
-
detail: { value: s.value }
|
|
170
|
-
})
|
|
171
|
-
));
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Queries the rendered group container element within the shadow root.
|
|
176
|
-
* @internal
|
|
177
|
-
*/
|
|
178
|
-
get _groupEl() {
|
|
179
|
-
var e;
|
|
180
|
-
return ((e = this.renderRoot) == null ? void 0 : e.querySelector(".fieldset__group")) ?? null;
|
|
181
|
-
}
|
|
182
|
-
// ─── Slot Handlers ───
|
|
183
|
-
/**
|
|
184
|
-
* Handles slotchange events on the error slot to detect assigned content.
|
|
185
|
-
* @internal
|
|
186
|
-
*/
|
|
187
|
-
_handleErrorSlotChange(e) {
|
|
188
|
-
e.target instanceof HTMLSlotElement && (this._hasErrorSlot = e.target.assignedNodes({ flatten: !0 }).length > 0);
|
|
189
|
-
}
|
|
190
|
-
// ─── Lifecycle ───
|
|
191
|
-
connectedCallback() {
|
|
192
|
-
super.connectedCallback(), this.addEventListener("hx-radio-select", this._handleRadioSelect), this.addEventListener("keydown", this._handleKeydown);
|
|
193
|
-
}
|
|
194
|
-
disconnectedCallback() {
|
|
195
|
-
super.disconnectedCallback(), this.removeEventListener("hx-radio-select", this._handleRadioSelect), this.removeEventListener("keydown", this._handleKeydown);
|
|
196
|
-
}
|
|
197
|
-
updated(e) {
|
|
198
|
-
var t;
|
|
199
|
-
if (super.updated(e), e.has("value") && (this._internals.setFormValue(this.value || null), this._syncRadios()), e.has("disabled") && this._syncRadios(), e.has("error") && this.error) {
|
|
200
|
-
const i = (t = this.shadowRoot) == null ? void 0 : t.querySelector('[role="alert"]');
|
|
201
|
-
if (i) {
|
|
202
|
-
const r = this.error;
|
|
203
|
-
requestAnimationFrame(() => {
|
|
204
|
-
i.textContent = "", requestAnimationFrame(() => {
|
|
205
|
-
i.textContent = r;
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
firstUpdated(e) {
|
|
212
|
-
super.firstUpdated(e), this._syncRadios(), !this.label && this.getAttribute("aria-label");
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Returns all child hx-radio elements, using the cache when available.
|
|
216
|
-
* @internal
|
|
217
|
-
*/
|
|
218
|
-
_getRadios() {
|
|
219
|
-
return this._cachedRadios || (this._cachedRadios = Array.from(this.querySelectorAll("hx-radio"))), this._cachedRadios;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Returns only the child hx-radio elements that are not disabled.
|
|
223
|
-
* @internal
|
|
224
|
-
*/
|
|
225
|
-
_getEnabledRadios() {
|
|
226
|
-
return this._getRadios().filter((e) => !e.disabled && !this.disabled);
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Synchronizes checked state, disabled state, and roving tabindex across all child radios.
|
|
230
|
-
* @internal
|
|
231
|
-
*/
|
|
232
|
-
_syncRadios() {
|
|
233
|
-
const e = this._getRadios(), t = this._getEnabledRadios();
|
|
234
|
-
e.forEach((r) => {
|
|
235
|
-
const o = r.value === this.value && this.value !== "";
|
|
236
|
-
if (r.checked = o, this.disabled)
|
|
237
|
-
this._individualDisabledStates.has(r) || this._individualDisabledStates.set(r, r.disabled), r.disabled = !0;
|
|
238
|
-
else {
|
|
239
|
-
const a = this._individualDisabledStates.get(r);
|
|
240
|
-
a !== void 0 && (r.disabled = a, this._individualDisabledStates.delete(r));
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
const i = t.find((r) => r.checked);
|
|
244
|
-
if (e.forEach((r) => {
|
|
245
|
-
r.tabIndex = -1;
|
|
246
|
-
}), i)
|
|
247
|
-
i.tabIndex = 0;
|
|
248
|
-
else if (t.length > 0) {
|
|
249
|
-
const r = t[0];
|
|
250
|
-
r && (r.tabIndex = 0);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Handles slotchange events on the default slot to refresh the radio cache.
|
|
255
|
-
* @internal
|
|
256
|
-
*/
|
|
257
|
-
_handleSlotChange() {
|
|
258
|
-
this._cachedRadios = null, this._syncRadios();
|
|
259
|
-
}
|
|
260
|
-
// ─── Form Integration ───
|
|
261
|
-
/**
|
|
262
|
-
* Updates the ElementInternals validity state based on the required constraint and current value.
|
|
263
|
-
* @internal
|
|
264
|
-
*/
|
|
265
|
-
_updateValidity() {
|
|
266
|
-
this.required && !this.value ? this._internals.setValidity(
|
|
267
|
-
{ valueMissing: !0 },
|
|
268
|
-
this.error || "Please select an option.",
|
|
269
|
-
this._groupEl ?? void 0
|
|
270
|
-
) : this._internals.setValidity({});
|
|
271
|
-
}
|
|
272
|
-
/** @internal */
|
|
273
|
-
_onFormReset() {
|
|
274
|
-
this.value = "", this._internals.setFormValue(null), this._syncRadios(), this._resetInteractionState();
|
|
275
|
-
}
|
|
276
|
-
/** @internal */
|
|
277
|
-
_onFormStateRestore(e, t) {
|
|
278
|
-
typeof e == "string" && (this.value = e);
|
|
279
|
-
}
|
|
280
|
-
/** @internal */
|
|
281
|
-
_onFormDisabled(e) {
|
|
282
|
-
this.disabled = e;
|
|
283
|
-
}
|
|
284
|
-
// ─── Render ───
|
|
285
|
-
render() {
|
|
286
|
-
const e = !!this.error, t = `${this._groupId}-legend`, i = {
|
|
287
|
-
fieldset: !0,
|
|
288
|
-
"fieldset--error": e,
|
|
289
|
-
"fieldset--disabled": this.disabled,
|
|
290
|
-
"fieldset--required": this.required
|
|
291
|
-
}, r = !!this.helpText, s = [
|
|
292
|
-
e || this._hasErrorSlot ? this._errorId : null,
|
|
293
|
-
r ? this._helpTextId : null
|
|
294
|
-
].filter(Boolean).join(" ") || h;
|
|
295
|
-
return p`
|
|
296
|
-
<fieldset
|
|
297
|
-
part="fieldset"
|
|
298
|
-
class=${y(i)}
|
|
299
|
-
role="radiogroup"
|
|
300
|
-
aria-labelledby=${this.label ? t : h}
|
|
301
|
-
aria-describedby=${s}
|
|
302
|
-
aria-required=${this.required ? "true" : h}
|
|
303
|
-
>
|
|
304
|
-
${this.label ? p`
|
|
305
|
-
<legend part="legend" class="fieldset__legend" id=${t}>
|
|
306
|
-
${this.label}
|
|
307
|
-
${this.required ? p`<span class="fieldset__required-marker" aria-hidden="true">*</span>` : h}
|
|
308
|
-
</legend>
|
|
309
|
-
` : h}
|
|
310
|
-
|
|
311
|
-
<div part="group" class="fieldset__group" role="none">
|
|
312
|
-
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
313
|
-
</div>
|
|
314
|
-
|
|
315
|
-
<!-- WCAG 1.3.1: wrap slot in a persistent container so _errorId stays stable
|
|
316
|
-
regardless of whether error content comes from the slot or the property. -->
|
|
317
|
-
<div id=${this._errorId}>
|
|
318
|
-
<slot name="error" @slotchange=${this._handleErrorSlotChange}>
|
|
319
|
-
${e ? p`<div part="error" class="fieldset__error" role="alert">${this.error}</div>` : h}
|
|
320
|
-
</slot>
|
|
321
|
-
</div>
|
|
322
|
-
|
|
323
|
-
${this.helpText && !e ? p`
|
|
324
|
-
<div part="help-text" class="fieldset__help-text" id=${this._helpTextId}>
|
|
325
|
-
<slot name="help-text">${this.helpText}</slot>
|
|
326
|
-
</div>
|
|
327
|
-
` : h}
|
|
328
|
-
</fieldset>
|
|
329
|
-
`;
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
l.styles = [E, k];
|
|
333
|
-
l.formAssociated = !0;
|
|
334
|
-
n([
|
|
335
|
-
d({ type: String, reflect: !0 })
|
|
336
|
-
], l.prototype, "value", 2);
|
|
337
|
-
n([
|
|
338
|
-
d({ type: String, reflect: !0 })
|
|
339
|
-
], l.prototype, "name", 2);
|
|
340
|
-
n([
|
|
341
|
-
d({ type: String })
|
|
342
|
-
], l.prototype, "label", 2);
|
|
343
|
-
n([
|
|
344
|
-
d({ type: Boolean, reflect: !0 })
|
|
345
|
-
], l.prototype, "required", 2);
|
|
346
|
-
n([
|
|
347
|
-
d({ type: Boolean, reflect: !0 })
|
|
348
|
-
], l.prototype, "disabled", 2);
|
|
349
|
-
n([
|
|
350
|
-
d({ type: String })
|
|
351
|
-
], l.prototype, "error", 2);
|
|
352
|
-
n([
|
|
353
|
-
d({ type: String, attribute: "help-text" })
|
|
354
|
-
], l.prototype, "helpText", 2);
|
|
355
|
-
n([
|
|
356
|
-
d({ type: String, reflect: !0 })
|
|
357
|
-
], l.prototype, "orientation", 2);
|
|
358
|
-
n([
|
|
359
|
-
S()
|
|
360
|
-
], l.prototype, "_hasErrorSlot", 2);
|
|
361
|
-
l = n([
|
|
362
|
-
m("hx-radio-group")
|
|
363
|
-
], l);
|
|
364
|
-
const H = g`
|
|
365
|
-
:host {
|
|
366
|
-
display: block;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
:host([disabled]) {
|
|
370
|
-
opacity: var(--hx-opacity-disabled, 0.5);
|
|
371
|
-
pointer-events: none;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
* {
|
|
375
|
-
box-sizing: border-box;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.radio {
|
|
379
|
-
display: inline-flex;
|
|
380
|
-
align-items: center;
|
|
381
|
-
gap: var(--hx-space-2, 0.5rem);
|
|
382
|
-
/* WCAG 2.5.5 (healthcare mandate): minimum 44px touch target height */
|
|
383
|
-
min-height: var(--hx-touch-target-min, 2.75rem);
|
|
384
|
-
cursor: pointer;
|
|
385
|
-
position: relative;
|
|
386
|
-
font-family: var(--hx-radio-font-family, var(--hx-font-family-sans, sans-serif));
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.radio--disabled {
|
|
390
|
-
cursor: not-allowed;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
/* ─── Hidden Native Input ─── */
|
|
394
|
-
|
|
395
|
-
.radio__input {
|
|
396
|
-
position: absolute;
|
|
397
|
-
width: var(--hx-space-px);
|
|
398
|
-
height: var(--hx-space-px);
|
|
399
|
-
padding: 0;
|
|
400
|
-
margin: calc(var(--hx-space-px) * -1);
|
|
401
|
-
overflow: hidden;
|
|
402
|
-
clip: rect(0, 0, 0, 0);
|
|
403
|
-
white-space: nowrap;
|
|
404
|
-
border: 0;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
/* ─── Visual Radio Circle ─── */
|
|
408
|
-
|
|
409
|
-
.radio__control {
|
|
410
|
-
display: inline-flex;
|
|
411
|
-
align-items: center;
|
|
412
|
-
justify-content: center;
|
|
413
|
-
width: var(--hx-radio-size, var(--hx-size-5, 1.25rem));
|
|
414
|
-
height: var(--hx-radio-size, var(--hx-size-5, 1.25rem));
|
|
415
|
-
border: var(--hx-border-width-medium, 2px) solid
|
|
416
|
-
var(--hx-radio-border-color, var(--hx-color-border-strong, #66787b));
|
|
417
|
-
border-radius: var(--hx-border-radius-full, 9999px);
|
|
418
|
-
background-color: var(--hx-radio-bg, var(--hx-color-surface-default, #ffffff));
|
|
419
|
-
transition:
|
|
420
|
-
border-color var(--hx-transition-fast, 150ms ease),
|
|
421
|
-
background-color var(--hx-transition-fast, 150ms ease),
|
|
422
|
-
box-shadow var(--hx-transition-fast, 150ms ease);
|
|
423
|
-
flex-shrink: 0;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/* ─── Inner Dot ─── */
|
|
427
|
-
|
|
428
|
-
.radio__dot {
|
|
429
|
-
width: calc(var(--hx-radio-size, var(--hx-size-5, 1.25rem)) * 0.4);
|
|
430
|
-
height: calc(var(--hx-radio-size, var(--hx-size-5, 1.25rem)) * 0.4);
|
|
431
|
-
border-radius: var(--hx-border-radius-full, 9999px);
|
|
432
|
-
background-color: var(--hx-radio-dot-color, var(--hx-color-text-on-primary, #ffffff));
|
|
433
|
-
transform: scale(0);
|
|
434
|
-
transition: transform var(--hx-transition-fast, 150ms ease);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
/* ─── Checked State ─── */
|
|
438
|
-
|
|
439
|
-
.radio--checked .radio__control {
|
|
440
|
-
border-color: var(--hx-radio-checked-border-color, var(--hx-color-primary-500, #429797));
|
|
441
|
-
background-color: var(--hx-radio-checked-bg, var(--hx-color-primary-500, #429797));
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.radio--checked .radio__dot {
|
|
445
|
-
transform: scale(1);
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/* ─── Focus State ─── */
|
|
449
|
-
|
|
450
|
-
:host(:focus-visible) .radio__control {
|
|
451
|
-
outline: var(--hx-focus-ring-width, 2px) solid
|
|
452
|
-
var(--hx-radio-focus-ring-color, var(--hx-focus-ring-color, #0f7078));
|
|
453
|
-
outline-offset: var(--hx-focus-ring-offset, 2px);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
/* ─── Hover State ─── */
|
|
457
|
-
|
|
458
|
-
.radio:not(.radio--disabled):not(.radio--checked):hover .radio__control {
|
|
459
|
-
border-color: var(--hx-radio-hover-border-color, var(--hx-color-border-strong, #66787b));
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
/* ─── Label ─── */
|
|
463
|
-
|
|
464
|
-
.radio__label {
|
|
465
|
-
font-size: var(--hx-font-size-md, 1rem);
|
|
466
|
-
color: var(--hx-radio-label-color, var(--hx-color-text-strong, #202b39));
|
|
467
|
-
line-height: var(--hx-line-height-normal, 1.5);
|
|
468
|
-
user-select: none;
|
|
469
|
-
-webkit-user-select: none;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/* ─── Reduced Motion ─── */
|
|
473
|
-
|
|
474
|
-
@media (prefers-reduced-motion: reduce) {
|
|
475
|
-
.radio__control,
|
|
476
|
-
.radio__dot {
|
|
477
|
-
transition: none;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
/* ─── High Contrast Mode (forced-colors) ─── */
|
|
482
|
-
|
|
483
|
-
@media (forced-colors: active) {
|
|
484
|
-
.radio__control {
|
|
485
|
-
forced-color-adjust: none;
|
|
486
|
-
background-color: ButtonFace;
|
|
487
|
-
border: 2px solid ButtonText;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
:host(:focus-visible) .radio__control {
|
|
491
|
-
outline: 3px solid Highlight;
|
|
492
|
-
outline-offset: 2px;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.radio--checked .radio__control {
|
|
496
|
-
background-color: Highlight;
|
|
497
|
-
border-color: Highlight;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
.radio--checked .radio__dot {
|
|
501
|
-
background-color: HighlightText;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
:host([disabled]) {
|
|
505
|
-
opacity: 1;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
:host([disabled]) .radio__control {
|
|
509
|
-
border-color: GrayText;
|
|
510
|
-
background-color: ButtonFace;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
:host([disabled]) .radio--checked .radio__control {
|
|
514
|
-
background-color: GrayText;
|
|
515
|
-
border-color: GrayText;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
:host([disabled]) .radio__label {
|
|
519
|
-
color: GrayText;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.radio__label {
|
|
523
|
-
color: CanvasText;
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
`;
|
|
527
|
-
var z = Object.defineProperty, A = Object.getOwnPropertyDescriptor, f = (e, t, i, r) => {
|
|
528
|
-
for (var o = r > 1 ? void 0 : r ? A(t, i) : t, a = e.length - 1, s; a >= 0; a--)
|
|
529
|
-
(s = e[a]) && (o = (r ? s(t, i, o) : s(o)) || o);
|
|
530
|
-
return r && o && z(t, i, o), o;
|
|
531
|
-
};
|
|
532
|
-
const D = R("hx-radio");
|
|
533
|
-
let c = class extends w {
|
|
534
|
-
constructor() {
|
|
535
|
-
super(...arguments), this.value = "", this.label = "", this.disabled = !1, this.checked = !1, this._inputId = D();
|
|
536
|
-
}
|
|
537
|
-
// ─── Lifecycle ───
|
|
538
|
-
connectedCallback() {
|
|
539
|
-
super.connectedCallback(), this._internals.role = "radio", this._syncAriaState();
|
|
540
|
-
}
|
|
541
|
-
updated(e) {
|
|
542
|
-
super.updated(e), (e.has("checked") || e.has("label") || e.has("disabled")) && this._syncAriaState();
|
|
543
|
-
}
|
|
544
|
-
/**
|
|
545
|
-
* Mirror reactive ARIA state onto ElementInternals. Setting a value to `null`
|
|
546
|
-
* removes it from the accessibility tree (matching the previous
|
|
547
|
-
* removeAttribute behavior).
|
|
548
|
-
*
|
|
549
|
-
* WCAG 4.1.2: expose the label text as ariaLabel on the host so assistive
|
|
550
|
-
* technology can associate the visible label with the radio role. The label
|
|
551
|
-
* span lives inside Shadow DOM and aria-labelledby cannot cross shadow
|
|
552
|
-
* boundaries, so ariaLabel on the host is the correct pattern here.
|
|
553
|
-
*
|
|
554
|
-
* WCAG 4.1.2: omit ariaDisabled entirely when not disabled. Setting
|
|
555
|
-
* aria-disabled="false" is verbose and unnecessary — omission is preferred.
|
|
556
|
-
*
|
|
557
|
-
* @internal
|
|
558
|
-
*/
|
|
559
|
-
_syncAriaState() {
|
|
560
|
-
this._internals.ariaChecked = String(this.checked), this._internals.ariaLabel = this.label || null, this._internals.ariaDisabled = this.disabled ? "true" : null;
|
|
561
|
-
}
|
|
562
|
-
// ─── Event Handling ───
|
|
563
|
-
/** @internal */
|
|
564
|
-
_handleClick() {
|
|
565
|
-
this.disabled || this.dispatchEvent(
|
|
566
|
-
new CustomEvent("hx-radio-select", {
|
|
567
|
-
bubbles: !0,
|
|
568
|
-
composed: !0,
|
|
569
|
-
detail: { value: this.value }
|
|
570
|
-
})
|
|
571
|
-
);
|
|
572
|
-
}
|
|
573
|
-
// ─── Render ───
|
|
574
|
-
render() {
|
|
575
|
-
const e = {
|
|
576
|
-
radio: !0,
|
|
577
|
-
"radio--checked": this.checked,
|
|
578
|
-
"radio--disabled": this.disabled
|
|
579
|
-
};
|
|
580
|
-
return p`
|
|
581
|
-
<div class=${y(e)} @click=${this._handleClick}>
|
|
582
|
-
<input
|
|
583
|
-
class="radio__input"
|
|
584
|
-
type="radio"
|
|
585
|
-
id=${this._inputId}
|
|
586
|
-
.checked=${this.checked}
|
|
587
|
-
?disabled=${this.disabled}
|
|
588
|
-
tabindex="-1"
|
|
589
|
-
aria-hidden="true"
|
|
590
|
-
/>
|
|
591
|
-
<span part="radio" class="radio__control" aria-hidden="true">
|
|
592
|
-
<span class="radio__dot"></span>
|
|
593
|
-
</span>
|
|
594
|
-
<span part="label" class="radio__label">
|
|
595
|
-
<slot>${this.label}</slot>
|
|
596
|
-
</span>
|
|
597
|
-
</div>
|
|
598
|
-
`;
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
c.styles = [H, k];
|
|
602
|
-
f([
|
|
603
|
-
d({ type: String })
|
|
604
|
-
], c.prototype, "value", 2);
|
|
605
|
-
f([
|
|
606
|
-
d({ type: String })
|
|
607
|
-
], c.prototype, "label", 2);
|
|
608
|
-
f([
|
|
609
|
-
d({ type: Boolean, reflect: !0 })
|
|
610
|
-
], c.prototype, "disabled", 2);
|
|
611
|
-
f([
|
|
612
|
-
d({ type: Boolean, reflect: !0 })
|
|
613
|
-
], c.prototype, "checked", 2);
|
|
614
|
-
c = f([
|
|
615
|
-
m("hx-radio")
|
|
616
|
-
], c);
|
|
617
|
-
export {
|
|
618
|
-
c as H,
|
|
619
|
-
l as a
|
|
620
|
-
};
|
|
621
|
-
//# sourceMappingURL=hx-radio-CJvNU2yP.js.map
|