@helixui/library 3.6.0 → 3.8.0-next.145
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/README.md +41 -0
- package/aaa-verdicts.json +2036 -0
- package/custom-elements.json +3045 -1254
- package/dist/components/hx-accordion/hx-accordion-item.d.ts.map +1 -1
- package/dist/components/hx-accordion/hx-accordion-item.styles.d.ts.map +1 -1
- package/dist/components/hx-accordion/index.js +1 -1
- package/dist/components/hx-action-bar/hx-action-bar.d.ts +18 -0
- package/dist/components/hx-action-bar/hx-action-bar.d.ts.map +1 -1
- package/dist/components/hx-action-bar/hx-action-bar.styles.d.ts.map +1 -1
- package/dist/components/hx-action-bar/index.js +1 -1
- package/dist/components/hx-alert/hx-alert.d.ts +18 -8
- package/dist/components/hx-alert/hx-alert.d.ts.map +1 -1
- package/dist/components/hx-alert/hx-alert.styles.d.ts.map +1 -1
- package/dist/components/hx-alert/index.js +1 -1
- package/dist/components/hx-avatar/hx-avatar.d.ts +4 -1
- package/dist/components/hx-avatar/hx-avatar.d.ts.map +1 -1
- package/dist/components/hx-avatar/hx-avatar.styles.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/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 +19 -8
- package/dist/components/hx-banner/hx-banner.d.ts.map +1 -1
- package/dist/components/hx-banner/hx-banner.styles.d.ts.map +1 -1
- package/dist/components/hx-banner/index.js +1 -1
- package/dist/components/hx-breadcrumb/hx-breadcrumb-item.d.ts.map +1 -1
- package/dist/components/hx-breadcrumb/hx-breadcrumb-item.styles.d.ts.map +1 -1
- package/dist/components/hx-breadcrumb/hx-breadcrumb.d.ts +18 -0
- package/dist/components/hx-breadcrumb/hx-breadcrumb.d.ts.map +1 -1
- package/dist/components/hx-breadcrumb/index.js +1 -1
- package/dist/components/hx-button/hx-button.d.ts +18 -0
- package/dist/components/hx-button/hx-button.d.ts.map +1 -1
- package/dist/components/hx-button/hx-button.styles.d.ts.map +1 -1
- package/dist/components/hx-button/index.js +1 -1
- package/dist/components/hx-button-group/hx-button-group.d.ts +47 -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-carousel/hx-carousel.d.ts.map +1 -1
- package/dist/components/hx-carousel/hx-carousel.styles.d.ts.map +1 -1
- package/dist/components/hx-carousel/index.js +1 -1
- package/dist/components/hx-checkbox/hx-checkbox.d.ts +18 -0
- 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 +36 -0
- package/dist/components/hx-checkbox-group/hx-checkbox-group.d.ts.map +1 -1
- package/dist/components/hx-checkbox-group/hx-checkbox-group.styles.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 +26 -9
- package/dist/components/hx-clinical-status/hx-clinical-status.d.ts.map +1 -1
- package/dist/components/hx-clinical-status/hx-clinical-status.styles.d.ts.map +1 -1
- package/dist/components/hx-clinical-status/index.js +1 -1
- package/dist/components/hx-color-picker/hx-color-picker.d.ts +18 -0
- package/dist/components/hx-color-picker/hx-color-picker.d.ts.map +1 -1
- package/dist/components/hx-color-picker/hx-color-picker.styles.d.ts.map +1 -1
- package/dist/components/hx-color-picker/index.js +1 -1
- package/dist/components/hx-combobox/hx-combobox.d.ts +18 -0
- package/dist/components/hx-combobox/hx-combobox.d.ts.map +1 -1
- package/dist/components/hx-combobox/hx-combobox.styles.d.ts.map +1 -1
- package/dist/components/hx-combobox/index.js +1 -1
- package/dist/components/hx-copy-button/hx-copy-button.d.ts +18 -0
- package/dist/components/hx-copy-button/hx-copy-button.d.ts.map +1 -1
- package/dist/components/hx-copy-button/hx-copy-button.styles.d.ts.map +1 -1
- package/dist/components/hx-copy-button/index.js +1 -1
- package/dist/components/hx-date-picker/hx-date-picker.d.ts +18 -0
- 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 +18 -0
- package/dist/components/hx-dialog/hx-dialog.d.ts.map +1 -1
- package/dist/components/hx-drawer/hx-drawer.d.ts +18 -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 +18 -0
- package/dist/components/hx-dropdown/hx-dropdown.d.ts.map +1 -1
- package/dist/components/hx-dropdown/hx-dropdown.styles.d.ts.map +1 -1
- package/dist/components/hx-dropdown/index.js +1 -1
- package/dist/components/hx-field/hx-field.d.ts +17 -0
- package/dist/components/hx-field/hx-field.d.ts.map +1 -1
- package/dist/components/hx-field-label/hx-field-label.d.ts +17 -0
- package/dist/components/hx-field-label/hx-field-label.d.ts.map +1 -1
- package/dist/components/hx-file-upload/hx-file-upload.d.ts +46 -0
- package/dist/components/hx-file-upload/hx-file-upload.d.ts.map +1 -1
- package/dist/components/hx-file-upload/hx-file-upload.styles.d.ts.map +1 -1
- package/dist/components/hx-file-upload/index.js +1 -1
- package/dist/components/hx-form/hx-form.d.ts +19 -0
- package/dist/components/hx-form/hx-form.d.ts.map +1 -1
- package/dist/components/hx-help-text/hx-help-text.d.ts +17 -0
- package/dist/components/hx-help-text/hx-help-text.d.ts.map +1 -1
- package/dist/components/hx-help-text/hx-help-text.styles.d.ts.map +1 -1
- package/dist/components/hx-help-text/index.js +1 -1
- package/dist/components/hx-icon/hx-icon.d.ts +108 -12
- package/dist/components/hx-icon/hx-icon.d.ts.map +1 -1
- package/dist/components/hx-icon/hx-icon.styles.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 +18 -0
- package/dist/components/hx-icon-button/hx-icon-button.d.ts.map +1 -1
- package/dist/components/hx-icon-button/hx-icon-button.styles.d.ts.map +1 -1
- package/dist/components/hx-icon-button/index.js +1 -1
- package/dist/components/hx-link/hx-link.d.ts.map +1 -1
- package/dist/components/hx-link/hx-link.styles.d.ts.map +1 -1
- package/dist/components/hx-link/index.js +1 -1
- package/dist/components/hx-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 +18 -0
- package/dist/components/hx-menu/hx-menu.d.ts.map +1 -1
- package/dist/components/hx-menu/index.js +1 -1
- package/dist/components/hx-nav/hx-nav.d.ts +18 -0
- package/dist/components/hx-nav/hx-nav.d.ts.map +1 -1
- package/dist/components/hx-nav/hx-nav.styles.d.ts.map +1 -1
- package/dist/components/hx-nav/index.js +1 -1
- package/dist/components/hx-number-input/hx-number-input.d.ts +18 -0
- package/dist/components/hx-number-input/hx-number-input.d.ts.map +1 -1
- package/dist/components/hx-number-input/hx-number-input.styles.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 +23 -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.styles.d.ts.map +1 -1
- package/dist/components/hx-pagination/index.js +1 -1
- package/dist/components/hx-phi-field/hx-phi-field.d.ts.map +1 -1
- package/dist/components/hx-phi-field/hx-phi-field.styles.d.ts.map +1 -1
- package/dist/components/hx-phi-field/index.js +1 -1
- package/dist/components/hx-popover/hx-popover.d.ts +18 -0
- package/dist/components/hx-popover/hx-popover.d.ts.map +1 -1
- package/dist/components/hx-popover/hx-popover.styles.d.ts.map +1 -1
- package/dist/components/hx-popover/index.js +1 -1
- package/dist/components/hx-popup/hx-popup.d.ts +18 -0
- package/dist/components/hx-popup/hx-popup.d.ts.map +1 -1
- package/dist/components/hx-popup/hx-popup.styles.d.ts.map +1 -1
- package/dist/components/hx-popup/index.js +1 -1
- package/dist/components/hx-radio-group/hx-radio-group.d.ts +18 -0
- package/dist/components/hx-radio-group/hx-radio-group.d.ts.map +1 -1
- package/dist/components/hx-radio-group/hx-radio-group.styles.d.ts.map +1 -1
- package/dist/components/hx-radio-group/hx-radio.styles.d.ts.map +1 -1
- package/dist/components/hx-radio-group/index.js +1 -1
- package/dist/components/hx-rating/hx-rating.d.ts +19 -0
- package/dist/components/hx-rating/hx-rating.d.ts.map +1 -1
- package/dist/components/hx-rating/hx-rating.styles.d.ts.map +1 -1
- package/dist/components/hx-rating/index.js +1 -1
- package/dist/components/hx-select/hx-select.d.ts +18 -0
- package/dist/components/hx-select/hx-select.d.ts.map +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 +18 -0
- package/dist/components/hx-side-nav/hx-side-nav.d.ts.map +1 -1
- package/dist/components/hx-side-nav/hx-side-nav.styles.d.ts.map +1 -1
- package/dist/components/hx-side-nav/index.js +1 -1
- package/dist/components/hx-slider/hx-slider.d.ts +47 -0
- package/dist/components/hx-slider/hx-slider.d.ts.map +1 -1
- package/dist/components/hx-slider/index.js +1 -1
- package/dist/components/hx-split-button/hx-split-button.d.ts +18 -0
- 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-stat/hx-stat.d.ts.map +1 -1
- package/dist/components/hx-stat/hx-stat.styles.d.ts.map +1 -1
- package/dist/components/hx-stat/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/index.js +1 -1
- package/dist/components/hx-switch/hx-switch.d.ts +18 -0
- package/dist/components/hx-switch/hx-switch.d.ts.map +1 -1
- package/dist/components/hx-switch/hx-switch.styles.d.ts.map +1 -1
- package/dist/components/hx-switch/index.js +1 -1
- package/dist/components/hx-tabs/hx-tab.styles.d.ts.map +1 -1
- package/dist/components/hx-tabs/hx-tabs.d.ts +18 -0
- package/dist/components/hx-tabs/hx-tabs.d.ts.map +1 -1
- package/dist/components/hx-tabs/index.js +1 -1
- package/dist/components/hx-tag/hx-tag.d.ts.map +1 -1
- package/dist/components/hx-tag/hx-tag.styles.d.ts.map +1 -1
- package/dist/components/hx-tag/index.js +1 -1
- package/dist/components/hx-text-input/hx-text-input.d.ts +18 -0
- 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.map +1 -1
- package/dist/components/hx-text-input/index.js +1 -1
- package/dist/components/hx-textarea/hx-textarea.d.ts +18 -0
- package/dist/components/hx-textarea/hx-textarea.d.ts.map +1 -1
- package/dist/components/hx-time-picker/hx-time-picker.d.ts +18 -0
- package/dist/components/hx-time-picker/hx-time-picker.d.ts.map +1 -1
- package/dist/components/hx-time-picker/hx-time-picker.styles.d.ts.map +1 -1
- package/dist/components/hx-time-picker/index.js +1 -1
- package/dist/components/hx-toast/hx-toast.d.ts +19 -8
- package/dist/components/hx-toast/hx-toast.d.ts.map +1 -1
- package/dist/components/hx-toast/hx-toast.styles.d.ts.map +1 -1
- package/dist/components/hx-toast/index.js +1 -1
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts +18 -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 +18 -0
- package/dist/components/hx-tooltip/hx-tooltip.d.ts.map +1 -1
- 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 +18 -0
- 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/index.js +1 -1
- package/dist/css/helix-all.css +414 -118
- package/dist/css/helix-core.css +43 -19
- package/dist/css/helix-feedback.css +15 -18
- package/dist/css/helix-forms.css +172 -44
- package/dist/css/helix-media.css +6 -3
- package/dist/css/helix-navigation.css +65 -12
- package/dist/css/helix-overlay.css +63 -0
- package/dist/css/helix-tokens.css +18 -15
- package/dist/css/helix-utility.css +44 -12
- package/dist/css/hx-action-bar.css +12 -0
- package/dist/css/hx-alert.css +4 -8
- package/dist/css/hx-avatar.css +1 -2
- package/dist/css/hx-badge.css +10 -5
- package/dist/css/hx-banner.css +4 -8
- package/dist/css/hx-button.css +15 -5
- package/dist/css/hx-carousel.css +6 -3
- package/dist/css/hx-checkbox-group.css +11 -0
- package/dist/css/hx-checkbox.css +24 -13
- package/dist/css/hx-clinical-status.css +4 -7
- package/dist/css/hx-color-picker.css +14 -1
- package/dist/css/hx-combobox.css +8 -0
- package/dist/css/hx-copy-button.css +5 -2
- package/dist/css/hx-date-picker.css +16 -3
- package/dist/css/hx-drawer.css +5 -0
- package/dist/css/hx-dropdown.css +18 -0
- package/dist/css/hx-file-upload.css +4 -0
- package/dist/css/hx-help-text.css +5 -0
- package/dist/css/hx-icon-button.css +4 -5
- package/dist/css/hx-icon.css +7 -0
- package/dist/css/hx-link.css +1 -2
- package/dist/css/hx-nav.css +31 -2
- package/dist/css/hx-number-input.css +10 -11
- package/dist/css/hx-overflow-menu.css +5 -0
- package/dist/css/hx-pagination.css +6 -3
- package/dist/css/hx-phi-field.css +2 -3
- package/dist/css/hx-popover.css +13 -0
- package/dist/css/hx-popup.css +14 -0
- package/dist/css/hx-radio-group.css +10 -0
- package/dist/css/hx-rating.css +6 -0
- package/dist/css/hx-side-nav.css +10 -5
- package/dist/css/hx-split-button.css +27 -10
- package/dist/css/hx-stat.css +1 -2
- package/dist/css/hx-switch.css +19 -1
- package/dist/css/hx-tag.css +5 -0
- package/dist/css/hx-text-input.css +4 -1
- package/dist/css/hx-time-picker.css +12 -2
- package/dist/css/hx-toast.css +6 -0
- package/dist/css/hx-toggle-button.css +29 -12
- package/dist/css/hx-tooltip.css +13 -0
- package/dist/css/hx-top-nav.css +13 -2
- package/dist/css/index.css +1 -1
- package/dist/css/manifest.json +60 -20
- package/dist/index.js +49 -49
- package/dist/shared/{hx-accordion-ZVzgDzTG.js → hx-accordion-DR--Ev4t.js} +48 -54
- package/dist/shared/hx-accordion-DR--Ev4t.js.map +1 -0
- package/dist/shared/{hx-action-bar-CitgcpGv.js → hx-action-bar-BlEG4aZv.js} +41 -29
- package/dist/shared/hx-action-bar-BlEG4aZv.js.map +1 -0
- package/dist/shared/{hx-alert-Bto8-TIi.js → hx-alert-C0axS32J.js} +40 -79
- package/dist/shared/hx-alert-C0axS32J.js.map +1 -0
- package/dist/shared/{hx-avatar-C9hOmlAb.js → hx-avatar-ChAYWnK8.js} +22 -24
- package/dist/shared/hx-avatar-ChAYWnK8.js.map +1 -0
- package/dist/shared/{hx-badge-JlFtAdxS.js → hx-badge-vX-1cuLA.js} +25 -20
- package/dist/shared/hx-badge-vX-1cuLA.js.map +1 -0
- package/dist/shared/{hx-banner-fpRnciIO.js → hx-banner-PbHwFNSb.js} +51 -90
- package/dist/shared/hx-banner-PbHwFNSb.js.map +1 -0
- package/dist/shared/{hx-breadcrumb-item-3tKppF9h.js → hx-breadcrumb-item-D8xYqe3s.js} +56 -43
- package/dist/shared/hx-breadcrumb-item-D8xYqe3s.js.map +1 -0
- package/dist/shared/{hx-button-BOwAEcF1.js → hx-button-DOZTZnz-.js} +29 -19
- package/dist/shared/hx-button-DOZTZnz-.js.map +1 -0
- package/dist/shared/hx-button-group-D3QUmSzl.js +248 -0
- package/dist/shared/hx-button-group-D3QUmSzl.js.map +1 -0
- package/dist/shared/{hx-carousel-item-z1Lc24op.js → hx-carousel-item-BVIKgQ4i.js} +72 -102
- package/dist/shared/hx-carousel-item-BVIKgQ4i.js.map +1 -0
- package/dist/shared/{hx-checkbox-CYd0YV_u.js → hx-checkbox-DDSXXhps.js} +56 -47
- package/dist/shared/hx-checkbox-DDSXXhps.js.map +1 -0
- package/dist/shared/{hx-checkbox-group-D5piJLY8.js → hx-checkbox-group-C0q6HDqn.js} +101 -58
- package/dist/shared/hx-checkbox-group-C0q6HDqn.js.map +1 -0
- package/dist/shared/{hx-clinical-status-D3XQIOqX.js → hx-clinical-status-ZSVEc3Qg.js} +68 -87
- package/dist/shared/hx-clinical-status-ZSVEc3Qg.js.map +1 -0
- package/dist/shared/{hx-color-picker-DBwJzT5f.js → hx-color-picker-CYjx8i8R.js} +97 -84
- package/dist/shared/hx-color-picker-CYjx8i8R.js.map +1 -0
- package/dist/shared/{hx-combobox-NgJaLbs2.js → hx-combobox-Be-mqOv4.js} +35 -45
- package/dist/shared/hx-combobox-Be-mqOv4.js.map +1 -0
- package/dist/shared/{hx-copy-button-sUVuikyH.js → hx-copy-button-DJirFCUL.js} +18 -15
- package/dist/shared/hx-copy-button-DJirFCUL.js.map +1 -0
- package/dist/shared/{hx-date-picker-B49yo4Vm.js → hx-date-picker-CziP3Hm1.js} +85 -84
- package/dist/shared/hx-date-picker-CziP3Hm1.js.map +1 -0
- package/dist/shared/hx-dialog-B4weoj_1.js.map +1 -1
- package/dist/shared/{hx-drawer-CM_upadk.js → hx-drawer-BlU2oX8-.js} +32 -36
- package/dist/shared/hx-drawer-BlU2oX8-.js.map +1 -0
- package/dist/shared/{hx-dropdown-D626S2ZG.js → hx-dropdown-DREqpIpm.js} +51 -33
- package/dist/shared/hx-dropdown-DREqpIpm.js.map +1 -0
- package/dist/shared/hx-field-label-BVRyyKeh.js.map +1 -1
- package/dist/shared/hx-field-zw0U1KVi.js.map +1 -1
- package/dist/shared/{hx-file-upload-D3rKROK5.js → hx-file-upload-CU5QGZSP.js} +137 -80
- package/dist/shared/hx-file-upload-CU5QGZSP.js.map +1 -0
- package/dist/shared/hx-form-CkChEATa.js.map +1 -1
- package/dist/shared/hx-help-text-CNaZ82LT.js +137 -0
- package/dist/shared/hx-help-text-CNaZ82LT.js.map +1 -0
- package/dist/shared/{hx-icon-button-a6OpeQz5.js → hx-icon-button-B2BdVdyK.js} +10 -11
- package/dist/shared/hx-icon-button-B2BdVdyK.js.map +1 -0
- package/dist/shared/hx-icon-bxz9eB9a.js +386 -0
- package/dist/shared/hx-icon-bxz9eB9a.js.map +1 -0
- package/dist/shared/{hx-link-CMnZRUtQ.js → hx-link-BURSdYLp.js} +19 -26
- package/dist/shared/hx-link-BURSdYLp.js.map +1 -0
- package/dist/shared/{hx-menu-divider-A6Guuzi_.js → hx-menu-divider-g0grbWV9.js} +19 -31
- package/dist/shared/hx-menu-divider-g0grbWV9.js.map +1 -0
- package/dist/shared/{hx-nav-ldFM3Fle.js → hx-nav-GTsAZGOx.js} +94 -85
- package/dist/shared/hx-nav-GTsAZGOx.js.map +1 -0
- package/dist/shared/{hx-nav-item-CODtUlew.js → hx-nav-item-CxE7Mp3M.js} +46 -41
- package/dist/shared/hx-nav-item-CxE7Mp3M.js.map +1 -0
- package/dist/shared/{hx-number-input-yUzFOSC1.js → hx-number-input-Bvyc9kOi.js} +59 -64
- package/dist/shared/hx-number-input-Bvyc9kOi.js.map +1 -0
- package/dist/shared/{hx-overflow-menu-DFjJAziP.js → hx-overflow-menu-LrTteeR1.js} +32 -39
- package/dist/shared/{hx-overflow-menu-DFjJAziP.js.map → hx-overflow-menu-LrTteeR1.js.map} +1 -1
- package/dist/shared/{hx-pagination-C7y8GVyU.js → hx-pagination-D726PyTM.js} +7 -4
- package/dist/shared/hx-pagination-D726PyTM.js.map +1 -0
- package/dist/shared/{hx-phi-field-C19oxlrr.js → hx-phi-field-sZt_rYIL.js} +46 -66
- package/dist/shared/hx-phi-field-sZt_rYIL.js.map +1 -0
- package/dist/shared/{hx-popover-BAlAFOH9.js → hx-popover-BjB0nkcq.js} +51 -38
- package/dist/shared/hx-popover-BjB0nkcq.js.map +1 -0
- package/dist/shared/{hx-popup-COUXXZ9X.js → hx-popup-BiV_2evC.js} +59 -45
- package/dist/shared/hx-popup-BiV_2evC.js.map +1 -0
- package/dist/shared/{hx-radio-C7eTj5YI.js → hx-radio-BD_c9NJy.js} +52 -39
- package/dist/shared/hx-radio-BD_c9NJy.js.map +1 -0
- package/dist/shared/{hx-rating-C3QP53k9.js → hx-rating-BGK4AxvI.js} +45 -71
- package/dist/shared/hx-rating-BGK4AxvI.js.map +1 -0
- package/dist/shared/hx-select-DahFehiZ.js.map +1 -1
- package/dist/shared/{hx-slider-Blmv_rwS.js → hx-slider-CkOk5BCY.js} +83 -23
- package/dist/shared/hx-slider-CkOk5BCY.js.map +1 -0
- package/dist/shared/{hx-split-button-Ddle8iVx.js → hx-split-button-Bg9FHrFK.js} +73 -65
- package/dist/shared/hx-split-button-Bg9FHrFK.js.map +1 -0
- package/dist/shared/{hx-stat-Gtw_SpK8.js → hx-stat-wKxbyep6.js} +22 -55
- package/dist/shared/hx-stat-wKxbyep6.js.map +1 -0
- package/dist/shared/{hx-step-R2rjp1fT.js → hx-step-CyGQAuiB.js} +7 -27
- package/dist/shared/hx-step-CyGQAuiB.js.map +1 -0
- package/dist/shared/{hx-switch-TvKGvZJz.js → hx-switch-BCXuNxEH.js} +42 -24
- package/dist/shared/hx-switch-BCXuNxEH.js.map +1 -0
- package/dist/shared/{hx-tab-panel-DzsX8BHV.js → hx-tab-panel-BfisavKo.js} +47 -32
- package/dist/shared/hx-tab-panel-BfisavKo.js.map +1 -0
- package/dist/shared/{hx-tag-C5aCUpVi.js → hx-tag-BqO6HY6V.js} +26 -21
- package/dist/shared/hx-tag-BqO6HY6V.js.map +1 -0
- package/dist/shared/{hx-text-input-D6FlOZM-.js → hx-text-input-V5sQOpDh.js} +5 -2
- package/dist/shared/hx-text-input-V5sQOpDh.js.map +1 -0
- package/dist/shared/hx-textarea-CNG590KY.js.map +1 -1
- package/dist/shared/{hx-time-picker-Bo7FWzmf.js → hx-time-picker-if5Cl0Ei.js} +42 -43
- package/dist/shared/hx-time-picker-if5Cl0Ei.js.map +1 -0
- package/dist/shared/{hx-toggle-button-DwBers3A.js → hx-toggle-button-xNVYeA3X.js} +64 -47
- package/dist/shared/hx-toggle-button-xNVYeA3X.js.map +1 -0
- package/dist/shared/{hx-tooltip-DVqtKPCD.js → hx-tooltip-CamO-9nd.js} +24 -11
- package/dist/shared/hx-tooltip-CamO-9nd.js.map +1 -0
- package/dist/shared/{hx-top-nav-DP6OFS8C.js → hx-top-nav-vP6oDWMV.js} +42 -44
- package/dist/shared/hx-top-nav-vP6oDWMV.js.map +1 -0
- package/dist/shared/{hx-tree-item-CXyspGxI.js → hx-tree-item-D8hwKd5m.js} +54 -57
- package/dist/shared/hx-tree-item-D8hwKd5m.js.map +1 -0
- package/dist/shared/{toast-factory-Dht3pVsw.js → toast-factory-DgnbFxVs.js} +127 -153
- package/dist/shared/toast-factory-DgnbFxVs.js.map +1 -0
- package/figma-inventory.json +1280 -429
- package/package.json +8 -4
- package/dist/shared/hx-accordion-ZVzgDzTG.js.map +0 -1
- package/dist/shared/hx-action-bar-CitgcpGv.js.map +0 -1
- package/dist/shared/hx-alert-Bto8-TIi.js.map +0 -1
- package/dist/shared/hx-avatar-C9hOmlAb.js.map +0 -1
- package/dist/shared/hx-badge-JlFtAdxS.js.map +0 -1
- package/dist/shared/hx-banner-fpRnciIO.js.map +0 -1
- package/dist/shared/hx-breadcrumb-item-3tKppF9h.js.map +0 -1
- package/dist/shared/hx-button-BOwAEcF1.js.map +0 -1
- package/dist/shared/hx-button-group-4NUBpkyC.js +0 -181
- package/dist/shared/hx-button-group-4NUBpkyC.js.map +0 -1
- package/dist/shared/hx-carousel-item-z1Lc24op.js.map +0 -1
- package/dist/shared/hx-checkbox-CYd0YV_u.js.map +0 -1
- package/dist/shared/hx-checkbox-group-D5piJLY8.js.map +0 -1
- package/dist/shared/hx-clinical-status-D3XQIOqX.js.map +0 -1
- package/dist/shared/hx-color-picker-DBwJzT5f.js.map +0 -1
- package/dist/shared/hx-combobox-NgJaLbs2.js.map +0 -1
- package/dist/shared/hx-copy-button-sUVuikyH.js.map +0 -1
- package/dist/shared/hx-date-picker-B49yo4Vm.js.map +0 -1
- package/dist/shared/hx-drawer-CM_upadk.js.map +0 -1
- package/dist/shared/hx-dropdown-D626S2ZG.js.map +0 -1
- package/dist/shared/hx-file-upload-D3rKROK5.js.map +0 -1
- package/dist/shared/hx-help-text-Xb2Yr8x2.js +0 -156
- package/dist/shared/hx-help-text-Xb2Yr8x2.js.map +0 -1
- package/dist/shared/hx-icon-button-a6OpeQz5.js.map +0 -1
- package/dist/shared/hx-icon-fuVm4-bk.js +0 -283
- package/dist/shared/hx-icon-fuVm4-bk.js.map +0 -1
- package/dist/shared/hx-link-CMnZRUtQ.js.map +0 -1
- package/dist/shared/hx-menu-divider-A6Guuzi_.js.map +0 -1
- package/dist/shared/hx-nav-item-CODtUlew.js.map +0 -1
- package/dist/shared/hx-nav-ldFM3Fle.js.map +0 -1
- package/dist/shared/hx-number-input-yUzFOSC1.js.map +0 -1
- package/dist/shared/hx-pagination-C7y8GVyU.js.map +0 -1
- package/dist/shared/hx-phi-field-C19oxlrr.js.map +0 -1
- package/dist/shared/hx-popover-BAlAFOH9.js.map +0 -1
- package/dist/shared/hx-popup-COUXXZ9X.js.map +0 -1
- package/dist/shared/hx-radio-C7eTj5YI.js.map +0 -1
- package/dist/shared/hx-rating-C3QP53k9.js.map +0 -1
- package/dist/shared/hx-slider-Blmv_rwS.js.map +0 -1
- package/dist/shared/hx-split-button-Ddle8iVx.js.map +0 -1
- package/dist/shared/hx-stat-Gtw_SpK8.js.map +0 -1
- package/dist/shared/hx-step-R2rjp1fT.js.map +0 -1
- package/dist/shared/hx-switch-TvKGvZJz.js.map +0 -1
- package/dist/shared/hx-tab-panel-DzsX8BHV.js.map +0 -1
- package/dist/shared/hx-tag-C5aCUpVi.js.map +0 -1
- package/dist/shared/hx-text-input-D6FlOZM-.js.map +0 -1
- package/dist/shared/hx-time-picker-Bo7FWzmf.js.map +0 -1
- package/dist/shared/hx-toggle-button-DwBers3A.js.map +0 -1
- package/dist/shared/hx-tooltip-DVqtKPCD.js.map +0 -1
- package/dist/shared/hx-top-nav-DP6OFS8C.js.map +0 -1
- package/dist/shared/hx-tree-item-CXyspGxI.js.map +0 -1
- package/dist/shared/toast-factory-Dht3pVsw.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
1
|
+
import { css as z, nothing as E, html as C } from "lit";
|
|
2
|
+
import { property as A, query as U, state as Z, customElement as G } from "lit/decorators.js";
|
|
3
3
|
import { classMap as X } from "lit/directives/class-map.js";
|
|
4
4
|
import { d as ee } from "./dev-warn-YlwPHjtX.js";
|
|
5
5
|
import { H as J } from "./helix-element-BNEYeiys.js";
|
|
6
|
-
const te =
|
|
6
|
+
const te = z`
|
|
7
7
|
/* ─── hx-toast host ─── */
|
|
8
8
|
|
|
9
9
|
:host {
|
|
@@ -117,6 +117,12 @@ const te = V`
|
|
|
117
117
|
display: none;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
/* Match the previous inline 16x16 SVG sizing for both the variant icon and
|
|
121
|
+
the close-button glyph migrated to hx-icon (library="helix"). */
|
|
122
|
+
.toast__glyph {
|
|
123
|
+
--hx-icon-size: 16px;
|
|
124
|
+
}
|
|
125
|
+
|
|
120
126
|
/* ─── Message ─── */
|
|
121
127
|
|
|
122
128
|
.toast__message {
|
|
@@ -196,7 +202,7 @@ const te = V`
|
|
|
196
202
|
border: 1px solid ButtonText;
|
|
197
203
|
}
|
|
198
204
|
}
|
|
199
|
-
`, se =
|
|
205
|
+
`, se = z`
|
|
200
206
|
:host {
|
|
201
207
|
display: block;
|
|
202
208
|
position: fixed;
|
|
@@ -270,7 +276,7 @@ const te = V`
|
|
|
270
276
|
--hx-toast-enter-translate: calc(var(--hx-space-2, 0.5rem) * -1);
|
|
271
277
|
}
|
|
272
278
|
`;
|
|
273
|
-
var ne = Object.defineProperty, oe = Object.getOwnPropertyDescriptor,
|
|
279
|
+
var ne = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, g = (e, t, n, s) => {
|
|
274
280
|
for (var o = s > 1 ? void 0 : s ? oe(t, n) : t, l = e.length - 1, h; l >= 0; l--)
|
|
275
281
|
(h = e[l]) && (o = (s ? h(t, n, o) : h(o)) || o);
|
|
276
282
|
return s && o && ne(t, n, o), o;
|
|
@@ -408,56 +414,31 @@ let d = class extends J {
|
|
|
408
414
|
// ─── WCAG 1.4.1: Default Icons ───
|
|
409
415
|
// Each semantic variant renders a default icon when no icon is slotted,
|
|
410
416
|
// ensuring the severity is not conveyed by color alone.
|
|
411
|
-
/** @internal */
|
|
412
|
-
_renderSuccessIcon() {
|
|
413
|
-
return f`<svg viewBox="0 0 20 20" aria-hidden="true" width="16" height="16">
|
|
414
|
-
<path
|
|
415
|
-
fill="currentColor"
|
|
416
|
-
d="M10 2a8 8 0 100 16 8 8 0 000-16zm3.03 6.28a.75.75 0 00-1.06-1.06L9 10.19 7.78 8.97a.75.75 0 00-1.06 1.06l1.75 1.75a.75.75 0 001.06 0l3.5-3.5z"
|
|
417
|
-
/>
|
|
418
|
-
</svg>`;
|
|
419
|
-
}
|
|
420
|
-
/** @internal */
|
|
421
|
-
_renderWarningIcon() {
|
|
422
|
-
return f`<svg viewBox="0 0 20 20" aria-hidden="true" width="16" height="16">
|
|
423
|
-
<path
|
|
424
|
-
fill="currentColor"
|
|
425
|
-
d="M8.49 2.92a1.75 1.75 0 013.02 0l6.25 10.83A1.75 1.75 0 0116.25 16H3.75a1.75 1.75 0 01-1.51-2.25L8.49 2.92zM10 7a.75.75 0 01.75.75v3a.75.75 0 01-1.5 0v-3A.75.75 0 0110 7zm0 7.5a.75.75 0 100-1.5.75.75 0 000 1.5z"
|
|
426
|
-
/>
|
|
427
|
-
</svg>`;
|
|
428
|
-
}
|
|
429
|
-
/** @internal */
|
|
430
|
-
_renderDangerIcon() {
|
|
431
|
-
return f`<svg viewBox="0 0 20 20" aria-hidden="true" width="16" height="16">
|
|
432
|
-
<path
|
|
433
|
-
fill="currentColor"
|
|
434
|
-
d="M10 2a8 8 0 100 16 8 8 0 000-16zm-1.72 5.22a.75.75 0 011.06 0L10 7.94l.66-.72a.75.75 0 111.06 1.06L11.06 9l.66.72a.75.75 0 11-1.06 1.06L10 10.06l-.66.72a.75.75 0 01-1.06-1.06L8.94 9l-.66-.72a.75.75 0 010-1.06z"
|
|
435
|
-
/>
|
|
436
|
-
</svg>`;
|
|
437
|
-
}
|
|
438
|
-
/** @internal */
|
|
439
|
-
_renderInfoIcon() {
|
|
440
|
-
return f`<svg viewBox="0 0 20 20" aria-hidden="true" width="16" height="16">
|
|
441
|
-
<path
|
|
442
|
-
fill="currentColor"
|
|
443
|
-
d="M10 2a8 8 0 100 16 8 8 0 000-16zm.75 4.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM9.25 9a.75.75 0 011.5 0v4a.75.75 0 01-1.5 0V9z"
|
|
444
|
-
/>
|
|
445
|
-
</svg>`;
|
|
446
|
-
}
|
|
447
417
|
/** @internal Returns the default icon for the current variant, or nothing for 'default'. */
|
|
448
418
|
get _defaultIcon() {
|
|
419
|
+
let e;
|
|
449
420
|
switch (this.variant) {
|
|
450
421
|
case "success":
|
|
451
|
-
|
|
422
|
+
e = "success";
|
|
423
|
+
break;
|
|
452
424
|
case "warning":
|
|
453
|
-
|
|
425
|
+
e = "warning";
|
|
426
|
+
break;
|
|
454
427
|
case "danger":
|
|
455
|
-
|
|
428
|
+
e = "error";
|
|
429
|
+
break;
|
|
456
430
|
case "info":
|
|
457
|
-
|
|
431
|
+
e = "info";
|
|
432
|
+
break;
|
|
458
433
|
default:
|
|
459
|
-
|
|
434
|
+
e = null;
|
|
460
435
|
}
|
|
436
|
+
return e ? C`<hx-icon
|
|
437
|
+
class="toast__glyph"
|
|
438
|
+
library="helix"
|
|
439
|
+
name=${e}
|
|
440
|
+
aria-hidden="true"
|
|
441
|
+
></hx-icon>` : E;
|
|
461
442
|
}
|
|
462
443
|
/** @internal */
|
|
463
444
|
get _severityLabel() {
|
|
@@ -474,7 +455,7 @@ let d = class extends J {
|
|
|
474
455
|
// regions).
|
|
475
456
|
render() {
|
|
476
457
|
const e = this._severityLabel;
|
|
477
|
-
return
|
|
458
|
+
return C`
|
|
478
459
|
<div
|
|
479
460
|
part="base"
|
|
480
461
|
class=${X({
|
|
@@ -486,8 +467,8 @@ let d = class extends J {
|
|
|
486
467
|
@focusin=${this._handleFocusIn}
|
|
487
468
|
@focusout=${this._handleFocusOut}
|
|
488
469
|
>
|
|
489
|
-
${this.open ?
|
|
490
|
-
${e ?
|
|
470
|
+
${this.open ? C`
|
|
471
|
+
${e ? C`<span class="toast__severity-label">${e}: </span>` : E}
|
|
491
472
|
<span part="icon" class="toast__icon">
|
|
492
473
|
<slot name="icon">${this._defaultIcon}</slot>
|
|
493
474
|
</span>
|
|
@@ -497,26 +478,19 @@ let d = class extends J {
|
|
|
497
478
|
<span part="action" class="toast__action">
|
|
498
479
|
<slot name="action" @slotchange=${this._handleActionSlotChange}></slot>
|
|
499
480
|
</span>
|
|
500
|
-
${this.closable ?
|
|
481
|
+
${this.closable ? C`
|
|
501
482
|
<button
|
|
502
483
|
part="close-button"
|
|
503
484
|
class="toast__close"
|
|
504
485
|
aria-label=${this.labelClose}
|
|
505
486
|
@click=${this._handleClose}
|
|
506
487
|
>
|
|
507
|
-
<
|
|
488
|
+
<hx-icon
|
|
489
|
+
class="toast__glyph"
|
|
490
|
+
library="helix"
|
|
491
|
+
name="close"
|
|
508
492
|
aria-hidden="true"
|
|
509
|
-
|
|
510
|
-
height="16"
|
|
511
|
-
viewBox="0 0 24 24"
|
|
512
|
-
fill="none"
|
|
513
|
-
stroke="currentColor"
|
|
514
|
-
stroke-width="2"
|
|
515
|
-
stroke-linecap="round"
|
|
516
|
-
stroke-linejoin="round"
|
|
517
|
-
>
|
|
518
|
-
<path d="M18 6L6 18M6 6l12 12" />
|
|
519
|
-
</svg>
|
|
493
|
+
></hx-icon>
|
|
520
494
|
</button>
|
|
521
495
|
` : E}
|
|
522
496
|
` : E}
|
|
@@ -531,41 +505,41 @@ d._SEVERITY_LABELS = {
|
|
|
531
505
|
danger: "Error",
|
|
532
506
|
info: "Info"
|
|
533
507
|
};
|
|
534
|
-
|
|
535
|
-
|
|
508
|
+
g([
|
|
509
|
+
A({ type: String, reflect: !0 })
|
|
536
510
|
], d.prototype, "variant", 2);
|
|
537
|
-
|
|
538
|
-
|
|
511
|
+
g([
|
|
512
|
+
A({ type: Number })
|
|
539
513
|
], d.prototype, "duration", 2);
|
|
540
|
-
|
|
541
|
-
|
|
514
|
+
g([
|
|
515
|
+
A({ type: Boolean, reflect: !0 })
|
|
542
516
|
], d.prototype, "closable", 2);
|
|
543
|
-
|
|
544
|
-
|
|
517
|
+
g([
|
|
518
|
+
A({ type: Boolean, reflect: !0 })
|
|
545
519
|
], d.prototype, "open", 2);
|
|
546
|
-
|
|
547
|
-
|
|
520
|
+
g([
|
|
521
|
+
A({ attribute: "label-close" })
|
|
548
522
|
], d.prototype, "labelClose", 2);
|
|
549
|
-
|
|
523
|
+
g([
|
|
550
524
|
U(".toast")
|
|
551
525
|
], d.prototype, "_toastEl", 2);
|
|
552
|
-
|
|
526
|
+
g([
|
|
553
527
|
Z()
|
|
554
528
|
], d.prototype, "_hasActionContent", 2);
|
|
555
|
-
d =
|
|
529
|
+
d = g([
|
|
556
530
|
G("hx-toast")
|
|
557
531
|
], d);
|
|
558
|
-
var ae = Object.defineProperty, ie = Object.getOwnPropertyDescriptor,
|
|
532
|
+
var ae = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, N = (e, t, n, s) => {
|
|
559
533
|
for (var o = s > 1 ? void 0 : s ? ie(t, n) : t, l = e.length - 1, h; l >= 0; l--)
|
|
560
534
|
(h = e[l]) && (o = (s ? h(t, n, o) : h(o)) || o);
|
|
561
535
|
return s && o && ae(t, n, o), o;
|
|
562
536
|
};
|
|
563
|
-
let
|
|
537
|
+
let M = class extends J {
|
|
564
538
|
constructor() {
|
|
565
539
|
super(...arguments), this.placement = "bottom-end", this.stackLimit = 3;
|
|
566
540
|
}
|
|
567
541
|
render() {
|
|
568
|
-
return
|
|
542
|
+
return C`
|
|
569
543
|
<div
|
|
570
544
|
part="base"
|
|
571
545
|
class=${X({
|
|
@@ -578,46 +552,46 @@ let L = class extends J {
|
|
|
578
552
|
`;
|
|
579
553
|
}
|
|
580
554
|
};
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
],
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
],
|
|
588
|
-
|
|
555
|
+
M.styles = [se];
|
|
556
|
+
N([
|
|
557
|
+
A({ type: String, reflect: !0 })
|
|
558
|
+
], M.prototype, "placement", 2);
|
|
559
|
+
N([
|
|
560
|
+
A({ type: Number, attribute: "stack-limit" })
|
|
561
|
+
], M.prototype, "stackLimit", 2);
|
|
562
|
+
M = N([
|
|
589
563
|
G("hx-toast-stack")
|
|
590
|
-
],
|
|
591
|
-
const
|
|
592
|
-
function
|
|
564
|
+
], M);
|
|
565
|
+
const P = 1500, w = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakSet(), D = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap();
|
|
566
|
+
function W(e, t, n) {
|
|
593
567
|
const s = e.get(t);
|
|
594
568
|
s ? (s.push(n), s.sort((o, l) => o - l)) : e.set(t, [n]);
|
|
595
569
|
}
|
|
596
|
-
function
|
|
570
|
+
function I(e, t, n) {
|
|
597
571
|
const s = e.get(t);
|
|
598
572
|
if (!s) return;
|
|
599
573
|
const o = s.indexOf(n);
|
|
600
574
|
o >= 0 && s.splice(o, 1), s.length === 0 && e.delete(t);
|
|
601
575
|
}
|
|
602
576
|
function K(e) {
|
|
603
|
-
const t = (
|
|
604
|
-
t > 0 ?
|
|
577
|
+
const t = (D.get(e) ?? 1) - 1;
|
|
578
|
+
t > 0 ? D.set(e, t) : D.delete(e);
|
|
605
579
|
}
|
|
606
|
-
function
|
|
607
|
-
const t =
|
|
580
|
+
function q(e) {
|
|
581
|
+
const t = w.get(e);
|
|
608
582
|
if (!(!t || t.status !== "queued")) {
|
|
609
|
-
if (t.status = "cancelled", t.removalObserver !== null && (t.removalObserver.disconnect(), t.removalObserver = null), t.timerId !== null && (clearTimeout(t.timerId), t.timerId = null), K(t.stack),
|
|
583
|
+
if (t.status = "cancelled", t.removalObserver !== null && (t.removalObserver.disconnect(), t.removalObserver = null), t.timerId !== null && (clearTimeout(t.timerId), t.timerId = null), K(t.stack), I(H, t.stack, t.fireAt), t.displacement) {
|
|
610
584
|
const { target: n, fireAt: s, timerId: o } = t.displacement;
|
|
611
|
-
clearTimeout(o),
|
|
585
|
+
clearTimeout(o), S.delete(n), I(y, t.stack, s);
|
|
612
586
|
}
|
|
613
587
|
for (const n of t.synthDisplacements)
|
|
614
|
-
clearTimeout(n.timerId),
|
|
615
|
-
t.synthDisplacements = [], e.style.removeProperty("display"), e.remove(),
|
|
588
|
+
clearTimeout(n.timerId), I(y, t.stack, n.fireAt);
|
|
589
|
+
t.synthDisplacements = [], e.style.removeProperty("display"), e.remove(), w.delete(e);
|
|
616
590
|
}
|
|
617
591
|
}
|
|
618
592
|
function le(e, t) {
|
|
619
|
-
const n =
|
|
620
|
-
!n || n.status !== "queued" || (n.status = "showing", n.timerId = null, n.removalObserver !== null && (n.removalObserver.disconnect(), n.removalObserver = null), K(n.stack),
|
|
593
|
+
const n = w.get(e);
|
|
594
|
+
!n || n.status !== "queued" || (n.status = "showing", n.timerId = null, n.removalObserver !== null && (n.removalObserver.disconnect(), n.removalObserver = null), K(n.stack), I(H, n.stack, n.fireAt), e.style.removeProperty("display"), t(), e.show(), L.set(e, Date.now()), w.delete(e));
|
|
621
595
|
}
|
|
622
596
|
function me(e) {
|
|
623
597
|
if (typeof document > "u") throw new Error("toast() requires a browser environment");
|
|
@@ -627,76 +601,76 @@ function me(e) {
|
|
|
627
601
|
let o = 0;
|
|
628
602
|
const l = [], h = [];
|
|
629
603
|
if (s.stackLimit > 0) {
|
|
630
|
-
const x = [...s.querySelectorAll("hx-toast")].filter((c) => c.open).filter((c) => !
|
|
604
|
+
const x = [...s.querySelectorAll("hx-toast")].filter((c) => c.open).filter((c) => !S.has(c)), _ = D.get(s) ?? 0, m = x.length + _ + 1 - s.stackLimit, b = [];
|
|
631
605
|
for (let c = 0; c < m; c++) {
|
|
632
606
|
const u = x[c];
|
|
633
607
|
if (u) {
|
|
634
|
-
const i =
|
|
635
|
-
if (a >=
|
|
608
|
+
const i = L.get(u), a = i === void 0 ? Number.POSITIVE_INFINITY : Date.now() - i;
|
|
609
|
+
if (a >= P) {
|
|
636
610
|
u.hide();
|
|
637
611
|
continue;
|
|
638
612
|
}
|
|
639
|
-
const
|
|
640
|
-
|
|
641
|
-
const R = s,
|
|
642
|
-
|
|
643
|
-
},
|
|
644
|
-
|
|
613
|
+
const k = P - a, f = Date.now() + k;
|
|
614
|
+
S.add(u), W(y, s, f);
|
|
615
|
+
const R = s, v = setTimeout(() => {
|
|
616
|
+
S.delete(u), I(y, R, f), u.open && u.hide();
|
|
617
|
+
}, k);
|
|
618
|
+
b.push(f), l.push({ target: u, fireAt: f, timerId: v }), k > o && (o = k);
|
|
645
619
|
continue;
|
|
646
620
|
}
|
|
647
|
-
const
|
|
621
|
+
const $ = y.get(s) ?? [], B = H.get(s) ?? [], T = [...$].sort((i, a) => i - a), Q = [...B].sort((i, a) => i - a);
|
|
648
622
|
for (const i of Q)
|
|
649
|
-
for (let a = 0; a <
|
|
650
|
-
if (
|
|
651
|
-
|
|
623
|
+
for (let a = 0; a < T.length; a++)
|
|
624
|
+
if (T[a] <= i) {
|
|
625
|
+
T.splice(a, 1);
|
|
652
626
|
break;
|
|
653
627
|
}
|
|
654
|
-
for (const i of
|
|
655
|
-
const a =
|
|
656
|
-
a >= 0 &&
|
|
628
|
+
for (const i of b) {
|
|
629
|
+
const a = T.indexOf(i);
|
|
630
|
+
a >= 0 && T.splice(a, 1);
|
|
657
631
|
}
|
|
658
|
-
let
|
|
659
|
-
if (
|
|
632
|
+
let O = T[0];
|
|
633
|
+
if (O === void 0) {
|
|
660
634
|
const i = [];
|
|
661
|
-
for (const
|
|
662
|
-
for (const
|
|
663
|
-
for (const
|
|
635
|
+
for (const v of $) i.push(v);
|
|
636
|
+
for (const v of B) i.push(v);
|
|
637
|
+
for (const v of b) i.push(v);
|
|
664
638
|
if (i.length === 0)
|
|
665
639
|
break;
|
|
666
|
-
|
|
667
|
-
const a =
|
|
668
|
-
|
|
640
|
+
O = Math.max(...i) + P;
|
|
641
|
+
const a = O, k = a - Date.now(), f = s;
|
|
642
|
+
W(y, f, a);
|
|
669
643
|
const R = setTimeout(() => {
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
(j) => j.open && !
|
|
644
|
+
I(y, f, a);
|
|
645
|
+
const V = [...f.querySelectorAll("hx-toast")].filter(
|
|
646
|
+
(j) => j.open && !S.has(j)
|
|
673
647
|
)[0];
|
|
674
|
-
|
|
675
|
-
},
|
|
648
|
+
V && V.hide();
|
|
649
|
+
}, k);
|
|
676
650
|
h.push({ fireAt: a, timerId: R });
|
|
677
651
|
}
|
|
678
|
-
|
|
679
|
-
const
|
|
680
|
-
|
|
652
|
+
b.push(O);
|
|
653
|
+
const Y = O - Date.now();
|
|
654
|
+
Y > o && (o = Math.max(0, Y));
|
|
681
655
|
}
|
|
682
656
|
}
|
|
683
657
|
const r = document.createElement("hx-toast");
|
|
684
658
|
r.variant = e.variant ?? "default", r.duration = e.duration ?? 3e3, r.closable = !0, r.textContent = e.message;
|
|
685
|
-
const
|
|
659
|
+
const F = () => {
|
|
686
660
|
r.addEventListener("hx-after-hide", () => {
|
|
687
|
-
|
|
661
|
+
L.delete(r), S.delete(r), r.remove();
|
|
688
662
|
});
|
|
689
663
|
};
|
|
690
664
|
if (o > 0) {
|
|
691
|
-
const p = (
|
|
692
|
-
|
|
665
|
+
const p = (_) => {
|
|
666
|
+
_.stopImmediatePropagation(), _.stopPropagation();
|
|
693
667
|
};
|
|
694
668
|
r.addEventListener("hx-hide", p, { once: !0 }), r.addEventListener("hx-after-hide", p, { once: !0 }), r.style.display = "none";
|
|
695
669
|
const x = r.hide.bind(r);
|
|
696
670
|
r.hide = function() {
|
|
697
|
-
const m =
|
|
671
|
+
const m = w.get(r);
|
|
698
672
|
if ((m == null ? void 0 : m.status) === "queued") {
|
|
699
|
-
|
|
673
|
+
q(r);
|
|
700
674
|
return;
|
|
701
675
|
}
|
|
702
676
|
x();
|
|
@@ -704,42 +678,42 @@ function me(e) {
|
|
|
704
678
|
}
|
|
705
679
|
if (s.appendChild(r), o > 0) {
|
|
706
680
|
const p = s, x = Date.now() + o;
|
|
707
|
-
|
|
708
|
-
const
|
|
681
|
+
D.set(p, (D.get(p) ?? 0) + 1), W(H, p, x);
|
|
682
|
+
const _ = l.length > 0 ? l[0] : null, m = {
|
|
709
683
|
status: "queued",
|
|
710
684
|
stack: p,
|
|
711
685
|
fireAt: x,
|
|
712
686
|
timerId: null,
|
|
713
|
-
displacement:
|
|
687
|
+
displacement: _,
|
|
714
688
|
synthDisplacements: [...h],
|
|
715
689
|
removalObserver: null
|
|
716
690
|
};
|
|
717
|
-
|
|
718
|
-
const
|
|
691
|
+
w.set(r, m);
|
|
692
|
+
const b = new MutationObserver((c) => {
|
|
719
693
|
for (const u of c)
|
|
720
|
-
for (const
|
|
721
|
-
if (
|
|
722
|
-
|
|
694
|
+
for (const $ of u.removedNodes)
|
|
695
|
+
if ($ === r) {
|
|
696
|
+
q(r);
|
|
723
697
|
return;
|
|
724
698
|
}
|
|
725
699
|
});
|
|
726
|
-
|
|
727
|
-
const c =
|
|
700
|
+
b.observe(p, { childList: !0 }), m.removalObserver = b, m.timerId = setTimeout(() => {
|
|
701
|
+
const c = w.get(r);
|
|
728
702
|
if (!(!c || c.status === "cancelled")) {
|
|
729
703
|
if (!r.isConnected) {
|
|
730
|
-
|
|
704
|
+
q(r);
|
|
731
705
|
return;
|
|
732
706
|
}
|
|
733
|
-
le(r,
|
|
707
|
+
le(r, F);
|
|
734
708
|
}
|
|
735
709
|
}, o);
|
|
736
710
|
} else
|
|
737
|
-
|
|
711
|
+
F(), r.show(), L.set(r, Date.now());
|
|
738
712
|
return r;
|
|
739
713
|
}
|
|
740
714
|
export {
|
|
741
715
|
d as H,
|
|
742
|
-
|
|
716
|
+
M as a,
|
|
743
717
|
me as t
|
|
744
718
|
};
|
|
745
|
-
//# sourceMappingURL=toast-factory-
|
|
719
|
+
//# sourceMappingURL=toast-factory-DgnbFxVs.js.map
|