@helixui/library 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +31860 -0
- package/dist/components/hx-accordion/hx-accordion-item.d.ts +52 -0
- package/dist/components/hx-accordion/hx-accordion-item.d.ts.map +1 -0
- package/dist/components/hx-accordion/hx-accordion-item.styles.d.ts +2 -0
- package/dist/components/hx-accordion/hx-accordion-item.styles.d.ts.map +1 -0
- package/dist/components/hx-accordion/hx-accordion.d.ts +45 -0
- package/dist/components/hx-accordion/hx-accordion.d.ts.map +1 -0
- package/dist/components/hx-accordion/hx-accordion.styles.d.ts +2 -0
- package/dist/components/hx-accordion/hx-accordion.styles.d.ts.map +1 -0
- package/dist/components/hx-accordion/index.d.ts +3 -0
- package/dist/components/hx-accordion/index.d.ts.map +1 -0
- package/dist/components/hx-accordion/index.js +6 -0
- package/dist/components/hx-accordion/index.js.map +1 -0
- package/dist/components/hx-action-bar/hx-action-bar.d.ts +91 -0
- package/dist/components/hx-action-bar/hx-action-bar.d.ts.map +1 -0
- package/dist/components/hx-action-bar/hx-action-bar.styles.d.ts +2 -0
- package/dist/components/hx-action-bar/hx-action-bar.styles.d.ts.map +1 -0
- package/dist/components/hx-action-bar/index.d.ts +2 -0
- package/dist/components/hx-action-bar/index.d.ts.map +1 -0
- package/dist/components/hx-action-bar/index.js +5 -0
- package/dist/components/hx-action-bar/index.js.map +1 -0
- package/dist/components/hx-alert/hx-alert.d.ts +108 -0
- package/dist/components/hx-alert/hx-alert.d.ts.map +1 -0
- package/dist/components/hx-alert/hx-alert.styles.d.ts +2 -0
- package/dist/components/hx-alert/hx-alert.styles.d.ts.map +1 -0
- package/dist/components/hx-alert/index.d.ts +2 -0
- package/dist/components/hx-alert/index.d.ts.map +1 -0
- package/dist/components/hx-alert/index.js +5 -0
- package/dist/components/hx-alert/index.js.map +1 -0
- package/dist/components/hx-avatar/hx-avatar.d.ts +85 -0
- package/dist/components/hx-avatar/hx-avatar.d.ts.map +1 -0
- package/dist/components/hx-avatar/hx-avatar.styles.d.ts +2 -0
- package/dist/components/hx-avatar/hx-avatar.styles.d.ts.map +1 -0
- package/dist/components/hx-avatar/index.d.ts +2 -0
- package/dist/components/hx-avatar/index.d.ts.map +1 -0
- package/dist/components/hx-avatar/index.js +5 -0
- package/dist/components/hx-avatar/index.js.map +1 -0
- package/dist/components/hx-badge/hx-badge.d.ts +98 -0
- package/dist/components/hx-badge/hx-badge.d.ts.map +1 -0
- package/dist/components/hx-badge/hx-badge.styles.d.ts +2 -0
- package/dist/components/hx-badge/hx-badge.styles.d.ts.map +1 -0
- package/dist/components/hx-badge/index.d.ts +2 -0
- package/dist/components/hx-badge/index.d.ts.map +1 -0
- package/dist/components/hx-badge/index.js +5 -0
- package/dist/components/hx-badge/index.js.map +1 -0
- package/dist/components/hx-breadcrumb/hx-breadcrumb-item.d.ts +66 -0
- package/dist/components/hx-breadcrumb/hx-breadcrumb-item.d.ts.map +1 -0
- package/dist/components/hx-breadcrumb/hx-breadcrumb-item.styles.d.ts +2 -0
- package/dist/components/hx-breadcrumb/hx-breadcrumb-item.styles.d.ts.map +1 -0
- package/dist/components/hx-breadcrumb/hx-breadcrumb.d.ts +130 -0
- package/dist/components/hx-breadcrumb/hx-breadcrumb.d.ts.map +1 -0
- package/dist/components/hx-breadcrumb/hx-breadcrumb.styles.d.ts +2 -0
- package/dist/components/hx-breadcrumb/hx-breadcrumb.styles.d.ts.map +1 -0
- package/dist/components/hx-breadcrumb/index.d.ts +3 -0
- package/dist/components/hx-breadcrumb/index.d.ts.map +1 -0
- package/dist/components/hx-breadcrumb/index.js +6 -0
- package/dist/components/hx-breadcrumb/index.js.map +1 -0
- package/dist/components/hx-button/hx-button.d.ts +97 -0
- package/dist/components/hx-button/hx-button.d.ts.map +1 -0
- package/dist/components/hx-button/hx-button.styles.d.ts +2 -0
- package/dist/components/hx-button/hx-button.styles.d.ts.map +1 -0
- package/dist/components/hx-button/index.d.ts +2 -0
- package/dist/components/hx-button/index.d.ts.map +1 -0
- package/dist/components/hx-button/index.js +5 -0
- package/dist/components/hx-button/index.js.map +1 -0
- package/dist/components/hx-button-group/hx-button-group.d.ts +49 -0
- package/dist/components/hx-button-group/hx-button-group.d.ts.map +1 -0
- package/dist/components/hx-button-group/hx-button-group.styles.d.ts +2 -0
- package/dist/components/hx-button-group/hx-button-group.styles.d.ts.map +1 -0
- package/dist/components/hx-button-group/index.d.ts +2 -0
- package/dist/components/hx-button-group/index.d.ts.map +1 -0
- package/dist/components/hx-button-group/index.js +5 -0
- package/dist/components/hx-button-group/index.js.map +1 -0
- package/dist/components/hx-card/hx-card.d.ts +76 -0
- package/dist/components/hx-card/hx-card.d.ts.map +1 -0
- package/dist/components/hx-card/hx-card.styles.d.ts +2 -0
- package/dist/components/hx-card/hx-card.styles.d.ts.map +1 -0
- package/dist/components/hx-card/index.d.ts +2 -0
- package/dist/components/hx-card/index.d.ts.map +1 -0
- package/dist/components/hx-card/index.js +5 -0
- package/dist/components/hx-card/index.js.map +1 -0
- package/dist/components/hx-carousel/hx-carousel-item.d.ts +30 -0
- package/dist/components/hx-carousel/hx-carousel-item.d.ts.map +1 -0
- package/dist/components/hx-carousel/hx-carousel.d.ts +130 -0
- package/dist/components/hx-carousel/hx-carousel.d.ts.map +1 -0
- package/dist/components/hx-carousel/hx-carousel.styles.d.ts +2 -0
- package/dist/components/hx-carousel/hx-carousel.styles.d.ts.map +1 -0
- package/dist/components/hx-carousel/index.d.ts +3 -0
- package/dist/components/hx-carousel/index.d.ts.map +1 -0
- package/dist/components/hx-carousel/index.js +6 -0
- package/dist/components/hx-carousel/index.js.map +1 -0
- package/dist/components/hx-checkbox/hx-checkbox.d.ts +127 -0
- package/dist/components/hx-checkbox/hx-checkbox.d.ts.map +1 -0
- package/dist/components/hx-checkbox/hx-checkbox.styles.d.ts +2 -0
- package/dist/components/hx-checkbox/hx-checkbox.styles.d.ts.map +1 -0
- package/dist/components/hx-checkbox/index.d.ts +2 -0
- package/dist/components/hx-checkbox/index.d.ts.map +1 -0
- package/dist/components/hx-checkbox/index.js +5 -0
- package/dist/components/hx-checkbox/index.js.map +1 -0
- package/dist/components/hx-checkbox-group/hx-checkbox-group.d.ts +111 -0
- package/dist/components/hx-checkbox-group/hx-checkbox-group.d.ts.map +1 -0
- package/dist/components/hx-checkbox-group/hx-checkbox-group.styles.d.ts +2 -0
- package/dist/components/hx-checkbox-group/hx-checkbox-group.styles.d.ts.map +1 -0
- package/dist/components/hx-checkbox-group/index.d.ts +2 -0
- package/dist/components/hx-checkbox-group/index.d.ts.map +1 -0
- package/dist/components/hx-checkbox-group/index.js +5 -0
- package/dist/components/hx-checkbox-group/index.js.map +1 -0
- package/dist/components/hx-code-snippet/hx-code-snippet.d.ts +90 -0
- package/dist/components/hx-code-snippet/hx-code-snippet.d.ts.map +1 -0
- package/dist/components/hx-code-snippet/hx-code-snippet.styles.d.ts +2 -0
- package/dist/components/hx-code-snippet/hx-code-snippet.styles.d.ts.map +1 -0
- package/dist/components/hx-code-snippet/index.d.ts +2 -0
- package/dist/components/hx-code-snippet/index.d.ts.map +1 -0
- package/dist/components/hx-code-snippet/index.js +5 -0
- package/dist/components/hx-code-snippet/index.js.map +1 -0
- package/dist/components/hx-color-picker/hx-color-picker.d.ts +154 -0
- package/dist/components/hx-color-picker/hx-color-picker.d.ts.map +1 -0
- package/dist/components/hx-color-picker/hx-color-picker.styles.d.ts +2 -0
- package/dist/components/hx-color-picker/hx-color-picker.styles.d.ts.map +1 -0
- package/dist/components/hx-color-picker/index.d.ts +2 -0
- package/dist/components/hx-color-picker/index.d.ts.map +1 -0
- package/dist/components/hx-color-picker/index.js +5 -0
- package/dist/components/hx-color-picker/index.js.map +1 -0
- package/dist/components/hx-combobox/hx-combobox.d.ts +185 -0
- package/dist/components/hx-combobox/hx-combobox.d.ts.map +1 -0
- package/dist/components/hx-combobox/hx-combobox.styles.d.ts +2 -0
- package/dist/components/hx-combobox/hx-combobox.styles.d.ts.map +1 -0
- package/dist/components/hx-combobox/index.d.ts +3 -0
- package/dist/components/hx-combobox/index.d.ts.map +1 -0
- package/dist/components/hx-combobox/index.js +5 -0
- package/dist/components/hx-combobox/index.js.map +1 -0
- package/dist/components/hx-container/hx-container.d.ts +56 -0
- package/dist/components/hx-container/hx-container.d.ts.map +1 -0
- package/dist/components/hx-container/hx-container.styles.d.ts +2 -0
- package/dist/components/hx-container/hx-container.styles.d.ts.map +1 -0
- package/dist/components/hx-container/index.d.ts +2 -0
- package/dist/components/hx-container/index.d.ts.map +1 -0
- package/dist/components/hx-container/index.js +5 -0
- package/dist/components/hx-container/index.js.map +1 -0
- package/dist/components/hx-copy-button/hx-copy-button.d.ts +103 -0
- package/dist/components/hx-copy-button/hx-copy-button.d.ts.map +1 -0
- package/dist/components/hx-copy-button/hx-copy-button.styles.d.ts +2 -0
- package/dist/components/hx-copy-button/hx-copy-button.styles.d.ts.map +1 -0
- package/dist/components/hx-copy-button/index.d.ts +2 -0
- package/dist/components/hx-copy-button/index.d.ts.map +1 -0
- package/dist/components/hx-copy-button/index.js +5 -0
- package/dist/components/hx-copy-button/index.js.map +1 -0
- package/dist/components/hx-data-table/hx-data-table.d.ts +125 -0
- package/dist/components/hx-data-table/hx-data-table.d.ts.map +1 -0
- package/dist/components/hx-data-table/hx-data-table.styles.d.ts +2 -0
- package/dist/components/hx-data-table/hx-data-table.styles.d.ts.map +1 -0
- package/dist/components/hx-data-table/index.d.ts +3 -0
- package/dist/components/hx-data-table/index.d.ts.map +1 -0
- package/dist/components/hx-data-table/index.js +5 -0
- package/dist/components/hx-data-table/index.js.map +1 -0
- package/dist/components/hx-date-picker/hx-date-picker.d.ts +129 -0
- package/dist/components/hx-date-picker/hx-date-picker.d.ts.map +1 -0
- package/dist/components/hx-date-picker/hx-date-picker.styles.d.ts +2 -0
- package/dist/components/hx-date-picker/hx-date-picker.styles.d.ts.map +1 -0
- package/dist/components/hx-date-picker/index.d.ts +2 -0
- package/dist/components/hx-date-picker/index.d.ts.map +1 -0
- package/dist/components/hx-date-picker/index.js +5 -0
- package/dist/components/hx-date-picker/index.js.map +1 -0
- package/dist/components/hx-dialog/hx-dialog.d.ts +156 -0
- package/dist/components/hx-dialog/hx-dialog.d.ts.map +1 -0
- package/dist/components/hx-dialog/hx-dialog.styles.d.ts +2 -0
- package/dist/components/hx-dialog/hx-dialog.styles.d.ts.map +1 -0
- package/dist/components/hx-dialog/index.d.ts +2 -0
- package/dist/components/hx-dialog/index.d.ts.map +1 -0
- package/dist/components/hx-dialog/index.js +5 -0
- package/dist/components/hx-dialog/index.js.map +1 -0
- package/dist/components/hx-divider/hx-divider.d.ts +58 -0
- package/dist/components/hx-divider/hx-divider.d.ts.map +1 -0
- package/dist/components/hx-divider/hx-divider.styles.d.ts +2 -0
- package/dist/components/hx-divider/hx-divider.styles.d.ts.map +1 -0
- package/dist/components/hx-divider/index.d.ts +3 -0
- package/dist/components/hx-divider/index.d.ts.map +1 -0
- package/dist/components/hx-divider/index.js +5 -0
- package/dist/components/hx-divider/index.js.map +1 -0
- package/dist/components/hx-drawer/hx-drawer.d.ts +131 -0
- package/dist/components/hx-drawer/hx-drawer.d.ts.map +1 -0
- package/dist/components/hx-drawer/hx-drawer.styles.d.ts +2 -0
- package/dist/components/hx-drawer/hx-drawer.styles.d.ts.map +1 -0
- package/dist/components/hx-drawer/index.d.ts +2 -0
- package/dist/components/hx-drawer/index.d.ts.map +1 -0
- package/dist/components/hx-drawer/index.js +5 -0
- package/dist/components/hx-drawer/index.js.map +1 -0
- package/dist/components/hx-dropdown/hx-dropdown.d.ts +89 -0
- package/dist/components/hx-dropdown/hx-dropdown.d.ts.map +1 -0
- package/dist/components/hx-dropdown/hx-dropdown.styles.d.ts +2 -0
- package/dist/components/hx-dropdown/hx-dropdown.styles.d.ts.map +1 -0
- package/dist/components/hx-dropdown/index.d.ts +2 -0
- package/dist/components/hx-dropdown/index.d.ts.map +1 -0
- package/dist/components/hx-dropdown/index.js +5 -0
- package/dist/components/hx-dropdown/index.js.map +1 -0
- package/dist/components/hx-field/hx-field.d.ts +141 -0
- package/dist/components/hx-field/hx-field.d.ts.map +1 -0
- package/dist/components/hx-field/hx-field.styles.d.ts +2 -0
- package/dist/components/hx-field/hx-field.styles.d.ts.map +1 -0
- package/dist/components/hx-field/index.d.ts +2 -0
- package/dist/components/hx-field/index.d.ts.map +1 -0
- package/dist/components/hx-field/index.js +5 -0
- package/dist/components/hx-field/index.js.map +1 -0
- package/dist/components/hx-field-label/hx-field-label.d.ts +58 -0
- package/dist/components/hx-field-label/hx-field-label.d.ts.map +1 -0
- package/dist/components/hx-field-label/hx-field-label.styles.d.ts +2 -0
- package/dist/components/hx-field-label/hx-field-label.styles.d.ts.map +1 -0
- package/dist/components/hx-field-label/index.d.ts +2 -0
- package/dist/components/hx-field-label/index.d.ts.map +1 -0
- package/dist/components/hx-field-label/index.js +5 -0
- package/dist/components/hx-field-label/index.js.map +1 -0
- package/dist/components/hx-file-upload/hx-file-upload.d.ts +138 -0
- package/dist/components/hx-file-upload/hx-file-upload.d.ts.map +1 -0
- package/dist/components/hx-file-upload/hx-file-upload.styles.d.ts +2 -0
- package/dist/components/hx-file-upload/hx-file-upload.styles.d.ts.map +1 -0
- package/dist/components/hx-file-upload/index.d.ts +2 -0
- package/dist/components/hx-file-upload/index.d.ts.map +1 -0
- package/dist/components/hx-file-upload/index.js +5 -0
- package/dist/components/hx-file-upload/index.js.map +1 -0
- package/dist/components/hx-form/hx-form.d.ts +141 -0
- package/dist/components/hx-form/hx-form.d.ts.map +1 -0
- package/dist/components/hx-form/hx-form.styles.d.ts +2 -0
- package/dist/components/hx-form/hx-form.styles.d.ts.map +1 -0
- package/dist/components/hx-form/index.d.ts +2 -0
- package/dist/components/hx-form/index.d.ts.map +1 -0
- package/dist/components/hx-form/index.js +5 -0
- package/dist/components/hx-form/index.js.map +1 -0
- package/dist/components/hx-format-date/hx-format-date.d.ts +120 -0
- package/dist/components/hx-format-date/hx-format-date.d.ts.map +1 -0
- package/dist/components/hx-format-date/hx-format-date.styles.d.ts +2 -0
- package/dist/components/hx-format-date/hx-format-date.styles.d.ts.map +1 -0
- package/dist/components/hx-format-date/index.d.ts +2 -0
- package/dist/components/hx-format-date/index.d.ts.map +1 -0
- package/dist/components/hx-format-date/index.js +5 -0
- package/dist/components/hx-format-date/index.js.map +1 -0
- package/dist/components/hx-grid/hx-grid.d.ts +100 -0
- package/dist/components/hx-grid/hx-grid.d.ts.map +1 -0
- package/dist/components/hx-grid/hx-grid.styles.d.ts +3 -0
- package/dist/components/hx-grid/hx-grid.styles.d.ts.map +1 -0
- package/dist/components/hx-grid/index.d.ts +2 -0
- package/dist/components/hx-grid/index.d.ts.map +1 -0
- package/dist/components/hx-grid/index.js +6 -0
- package/dist/components/hx-grid/index.js.map +1 -0
- package/dist/components/hx-help-text/hx-help-text.d.ts +44 -0
- package/dist/components/hx-help-text/hx-help-text.d.ts.map +1 -0
- package/dist/components/hx-help-text/hx-help-text.styles.d.ts +2 -0
- package/dist/components/hx-help-text/hx-help-text.styles.d.ts.map +1 -0
- package/dist/components/hx-help-text/index.d.ts +2 -0
- package/dist/components/hx-help-text/index.d.ts.map +1 -0
- package/dist/components/hx-help-text/index.js +5 -0
- package/dist/components/hx-help-text/index.js.map +1 -0
- package/dist/components/hx-icon/hx-icon.d.ts +115 -0
- package/dist/components/hx-icon/hx-icon.d.ts.map +1 -0
- package/dist/components/hx-icon/hx-icon.styles.d.ts +2 -0
- package/dist/components/hx-icon/hx-icon.styles.d.ts.map +1 -0
- package/dist/components/hx-icon/index.d.ts +2 -0
- package/dist/components/hx-icon/index.d.ts.map +1 -0
- package/dist/components/hx-icon/index.js +5 -0
- package/dist/components/hx-icon/index.js.map +1 -0
- package/dist/components/hx-image/hx-image.d.ts +120 -0
- package/dist/components/hx-image/hx-image.d.ts.map +1 -0
- package/dist/components/hx-image/hx-image.styles.d.ts +2 -0
- package/dist/components/hx-image/hx-image.styles.d.ts.map +1 -0
- package/dist/components/hx-image/index.d.ts +2 -0
- package/dist/components/hx-image/index.d.ts.map +1 -0
- package/dist/components/hx-image/index.js +5 -0
- package/dist/components/hx-image/index.js.map +1 -0
- package/dist/components/hx-link/hx-link.d.ts +84 -0
- package/dist/components/hx-link/hx-link.d.ts.map +1 -0
- package/dist/components/hx-link/hx-link.styles.d.ts +2 -0
- package/dist/components/hx-link/hx-link.styles.d.ts.map +1 -0
- package/dist/components/hx-link/index.d.ts +3 -0
- package/dist/components/hx-link/index.d.ts.map +1 -0
- package/dist/components/hx-link/index.js +5 -0
- package/dist/components/hx-link/index.js.map +1 -0
- package/dist/components/hx-list/hx-list-item.d.ts +79 -0
- package/dist/components/hx-list/hx-list-item.d.ts.map +1 -0
- package/dist/components/hx-list/hx-list-item.styles.d.ts +2 -0
- package/dist/components/hx-list/hx-list-item.styles.d.ts.map +1 -0
- package/dist/components/hx-list/hx-list.d.ts +54 -0
- package/dist/components/hx-list/hx-list.d.ts.map +1 -0
- package/dist/components/hx-list/hx-list.styles.d.ts +2 -0
- package/dist/components/hx-list/hx-list.styles.d.ts.map +1 -0
- package/dist/components/hx-list/index.d.ts +3 -0
- package/dist/components/hx-list/index.d.ts.map +1 -0
- package/dist/components/hx-list/index.js +6 -0
- package/dist/components/hx-list/index.js.map +1 -0
- package/dist/components/hx-menu/hx-menu-divider.d.ts +22 -0
- package/dist/components/hx-menu/hx-menu-divider.d.ts.map +1 -0
- package/dist/components/hx-menu/hx-menu-item.d.ts +75 -0
- package/dist/components/hx-menu/hx-menu-item.d.ts.map +1 -0
- package/dist/components/hx-menu/hx-menu-item.styles.d.ts +2 -0
- package/dist/components/hx-menu/hx-menu-item.styles.d.ts.map +1 -0
- package/dist/components/hx-menu/hx-menu.d.ts +45 -0
- package/dist/components/hx-menu/hx-menu.d.ts.map +1 -0
- package/dist/components/hx-menu/hx-menu.styles.d.ts +2 -0
- package/dist/components/hx-menu/hx-menu.styles.d.ts.map +1 -0
- package/dist/components/hx-menu/index.d.ts +4 -0
- package/dist/components/hx-menu/index.d.ts.map +1 -0
- package/dist/components/hx-menu/index.js +7 -0
- package/dist/components/hx-menu/index.js.map +1 -0
- package/dist/components/hx-meter/hx-meter.d.ts +83 -0
- package/dist/components/hx-meter/hx-meter.d.ts.map +1 -0
- package/dist/components/hx-meter/hx-meter.styles.d.ts +2 -0
- package/dist/components/hx-meter/hx-meter.styles.d.ts.map +1 -0
- package/dist/components/hx-meter/index.d.ts +2 -0
- package/dist/components/hx-meter/index.d.ts.map +1 -0
- package/dist/components/hx-meter/index.js +5 -0
- package/dist/components/hx-meter/index.js.map +1 -0
- package/dist/components/hx-nav/hx-nav.d.ts +92 -0
- package/dist/components/hx-nav/hx-nav.d.ts.map +1 -0
- package/dist/components/hx-nav/hx-nav.styles.d.ts +2 -0
- package/dist/components/hx-nav/hx-nav.styles.d.ts.map +1 -0
- package/dist/components/hx-nav/index.d.ts +2 -0
- package/dist/components/hx-nav/index.d.ts.map +1 -0
- package/dist/components/hx-nav/index.js +5 -0
- package/dist/components/hx-nav/index.js.map +1 -0
- package/dist/components/hx-number-input/hx-number-input.d.ts +171 -0
- package/dist/components/hx-number-input/hx-number-input.d.ts.map +1 -0
- package/dist/components/hx-number-input/hx-number-input.styles.d.ts +2 -0
- package/dist/components/hx-number-input/hx-number-input.styles.d.ts.map +1 -0
- package/dist/components/hx-number-input/index.d.ts +2 -0
- package/dist/components/hx-number-input/index.d.ts.map +1 -0
- package/dist/components/hx-number-input/index.js +5 -0
- package/dist/components/hx-number-input/index.js.map +1 -0
- package/dist/components/hx-overflow-menu/hx-overflow-menu.d.ts +85 -0
- package/dist/components/hx-overflow-menu/hx-overflow-menu.d.ts.map +1 -0
- package/dist/components/hx-overflow-menu/hx-overflow-menu.styles.d.ts +2 -0
- package/dist/components/hx-overflow-menu/hx-overflow-menu.styles.d.ts.map +1 -0
- package/dist/components/hx-overflow-menu/index.d.ts +2 -0
- package/dist/components/hx-overflow-menu/index.d.ts.map +1 -0
- package/dist/components/hx-overflow-menu/index.js +5 -0
- package/dist/components/hx-overflow-menu/index.js.map +1 -0
- package/dist/components/hx-pagination/hx-pagination.d.ts +123 -0
- package/dist/components/hx-pagination/hx-pagination.d.ts.map +1 -0
- package/dist/components/hx-pagination/hx-pagination.styles.d.ts +2 -0
- package/dist/components/hx-pagination/hx-pagination.styles.d.ts.map +1 -0
- package/dist/components/hx-pagination/index.d.ts +2 -0
- package/dist/components/hx-pagination/index.d.ts.map +1 -0
- package/dist/components/hx-pagination/index.js +5 -0
- package/dist/components/hx-pagination/index.js.map +1 -0
- package/dist/components/hx-popover/hx-popover.d.ts +105 -0
- package/dist/components/hx-popover/hx-popover.d.ts.map +1 -0
- package/dist/components/hx-popover/hx-popover.styles.d.ts +2 -0
- package/dist/components/hx-popover/hx-popover.styles.d.ts.map +1 -0
- package/dist/components/hx-popover/index.d.ts +2 -0
- package/dist/components/hx-popover/index.d.ts.map +1 -0
- package/dist/components/hx-popover/index.js +5 -0
- package/dist/components/hx-popover/index.js.map +1 -0
- package/dist/components/hx-popup/hx-popup.d.ts +218 -0
- package/dist/components/hx-popup/hx-popup.d.ts.map +1 -0
- package/dist/components/hx-popup/hx-popup.styles.d.ts +2 -0
- package/dist/components/hx-popup/hx-popup.styles.d.ts.map +1 -0
- package/dist/components/hx-popup/index.d.ts +2 -0
- package/dist/components/hx-popup/index.d.ts.map +1 -0
- package/dist/components/hx-popup/index.js +5 -0
- package/dist/components/hx-popup/index.js.map +1 -0
- package/dist/components/hx-progress-bar/hx-progress-bar.d.ts +80 -0
- package/dist/components/hx-progress-bar/hx-progress-bar.d.ts.map +1 -0
- package/dist/components/hx-progress-bar/hx-progress-bar.styles.d.ts +2 -0
- package/dist/components/hx-progress-bar/hx-progress-bar.styles.d.ts.map +1 -0
- package/dist/components/hx-progress-bar/index.d.ts +2 -0
- package/dist/components/hx-progress-bar/index.d.ts.map +1 -0
- package/dist/components/hx-progress-bar/index.js +5 -0
- package/dist/components/hx-progress-bar/index.js.map +1 -0
- package/dist/components/hx-progress-ring/hx-progress-ring.d.ts +73 -0
- package/dist/components/hx-progress-ring/hx-progress-ring.d.ts.map +1 -0
- package/dist/components/hx-progress-ring/hx-progress-ring.styles.d.ts +2 -0
- package/dist/components/hx-progress-ring/hx-progress-ring.styles.d.ts.map +1 -0
- package/dist/components/hx-progress-ring/index.d.ts +2 -0
- package/dist/components/hx-progress-ring/index.d.ts.map +1 -0
- package/dist/components/hx-progress-ring/index.js +5 -0
- package/dist/components/hx-progress-ring/index.js.map +1 -0
- package/dist/components/hx-prose/hx-prose.d.ts +49 -0
- package/dist/components/hx-prose/hx-prose.d.ts.map +1 -0
- package/dist/components/hx-prose/hx-prose.styles.d.ts +2 -0
- package/dist/components/hx-prose/hx-prose.styles.d.ts.map +1 -0
- package/dist/components/hx-prose/index.d.ts +2 -0
- package/dist/components/hx-prose/index.d.ts.map +1 -0
- package/dist/components/hx-prose/index.js +5 -0
- package/dist/components/hx-prose/index.js.map +1 -0
- package/dist/components/hx-radio-group/hx-radio-group.d.ts +112 -0
- package/dist/components/hx-radio-group/hx-radio-group.d.ts.map +1 -0
- package/dist/components/hx-radio-group/hx-radio-group.styles.d.ts +2 -0
- package/dist/components/hx-radio-group/hx-radio-group.styles.d.ts.map +1 -0
- package/dist/components/hx-radio-group/hx-radio.d.ts +57 -0
- package/dist/components/hx-radio-group/hx-radio.d.ts.map +1 -0
- package/dist/components/hx-radio-group/hx-radio.styles.d.ts +2 -0
- package/dist/components/hx-radio-group/hx-radio.styles.d.ts.map +1 -0
- package/dist/components/hx-radio-group/index.d.ts +3 -0
- package/dist/components/hx-radio-group/index.d.ts.map +1 -0
- package/dist/components/hx-radio-group/index.js +6 -0
- package/dist/components/hx-radio-group/index.js.map +1 -0
- package/dist/components/hx-rating/hx-rating.d.ts +112 -0
- package/dist/components/hx-rating/hx-rating.d.ts.map +1 -0
- package/dist/components/hx-rating/hx-rating.styles.d.ts +2 -0
- package/dist/components/hx-rating/hx-rating.styles.d.ts.map +1 -0
- package/dist/components/hx-rating/index.d.ts +2 -0
- package/dist/components/hx-rating/index.d.ts.map +1 -0
- package/dist/components/hx-rating/index.js +5 -0
- package/dist/components/hx-rating/index.js.map +1 -0
- package/dist/components/hx-select/hx-select.d.ts +173 -0
- package/dist/components/hx-select/hx-select.d.ts.map +1 -0
- package/dist/components/hx-select/hx-select.styles.d.ts +2 -0
- package/dist/components/hx-select/hx-select.styles.d.ts.map +1 -0
- package/dist/components/hx-select/index.d.ts +2 -0
- package/dist/components/hx-select/index.d.ts.map +1 -0
- package/dist/components/hx-select/index.js +5 -0
- package/dist/components/hx-select/index.js.map +1 -0
- package/dist/components/hx-side-nav/hx-nav-item.d.ts +69 -0
- package/dist/components/hx-side-nav/hx-nav-item.d.ts.map +1 -0
- package/dist/components/hx-side-nav/hx-nav-item.styles.d.ts +2 -0
- package/dist/components/hx-side-nav/hx-nav-item.styles.d.ts.map +1 -0
- package/dist/components/hx-side-nav/hx-side-nav.d.ts +73 -0
- package/dist/components/hx-side-nav/hx-side-nav.d.ts.map +1 -0
- package/dist/components/hx-side-nav/hx-side-nav.styles.d.ts +2 -0
- package/dist/components/hx-side-nav/hx-side-nav.styles.d.ts.map +1 -0
- package/dist/components/hx-side-nav/index.d.ts +3 -0
- package/dist/components/hx-side-nav/index.d.ts.map +1 -0
- package/dist/components/hx-side-nav/index.js +6 -0
- package/dist/components/hx-side-nav/index.js.map +1 -0
- package/dist/components/hx-skeleton/hx-skeleton.d.ts +76 -0
- package/dist/components/hx-skeleton/hx-skeleton.d.ts.map +1 -0
- package/dist/components/hx-skeleton/hx-skeleton.styles.d.ts +2 -0
- package/dist/components/hx-skeleton/hx-skeleton.styles.d.ts.map +1 -0
- package/dist/components/hx-skeleton/index.d.ts +2 -0
- package/dist/components/hx-skeleton/index.d.ts.map +1 -0
- package/dist/components/hx-skeleton/index.js +5 -0
- package/dist/components/hx-skeleton/index.js.map +1 -0
- package/dist/components/hx-slider/hx-slider.d.ts +166 -0
- package/dist/components/hx-slider/hx-slider.d.ts.map +1 -0
- package/dist/components/hx-slider/hx-slider.styles.d.ts +2 -0
- package/dist/components/hx-slider/hx-slider.styles.d.ts.map +1 -0
- package/dist/components/hx-slider/index.d.ts +2 -0
- package/dist/components/hx-slider/index.d.ts.map +1 -0
- package/dist/components/hx-slider/index.js +5 -0
- package/dist/components/hx-slider/index.js.map +1 -0
- package/dist/components/hx-spinner/hx-spinner.d.ts +58 -0
- package/dist/components/hx-spinner/hx-spinner.d.ts.map +1 -0
- package/dist/components/hx-spinner/hx-spinner.styles.d.ts +2 -0
- package/dist/components/hx-spinner/hx-spinner.styles.d.ts.map +1 -0
- package/dist/components/hx-spinner/index.d.ts +2 -0
- package/dist/components/hx-spinner/index.d.ts.map +1 -0
- package/dist/components/hx-spinner/index.js +5 -0
- package/dist/components/hx-spinner/index.js.map +1 -0
- package/dist/components/hx-split-button/hx-split-button.d.ts +101 -0
- package/dist/components/hx-split-button/hx-split-button.d.ts.map +1 -0
- package/dist/components/hx-split-button/hx-split-button.styles.d.ts +2 -0
- package/dist/components/hx-split-button/hx-split-button.styles.d.ts.map +1 -0
- package/dist/components/hx-split-button/index.d.ts +2 -0
- package/dist/components/hx-split-button/index.d.ts.map +1 -0
- package/dist/components/hx-split-button/index.js +5 -0
- package/dist/components/hx-split-button/index.js.map +1 -0
- package/dist/components/hx-split-panel/hx-split-panel.d.ts +115 -0
- package/dist/components/hx-split-panel/hx-split-panel.d.ts.map +1 -0
- package/dist/components/hx-split-panel/hx-split-panel.styles.d.ts +2 -0
- package/dist/components/hx-split-panel/hx-split-panel.styles.d.ts.map +1 -0
- package/dist/components/hx-split-panel/index.d.ts +2 -0
- package/dist/components/hx-split-panel/index.d.ts.map +1 -0
- package/dist/components/hx-split-panel/index.js +5 -0
- package/dist/components/hx-split-panel/index.js.map +1 -0
- package/dist/components/hx-stack/hx-stack.d.ts +53 -0
- package/dist/components/hx-stack/hx-stack.d.ts.map +1 -0
- package/dist/components/hx-stack/hx-stack.styles.d.ts +2 -0
- package/dist/components/hx-stack/hx-stack.styles.d.ts.map +1 -0
- package/dist/components/hx-stack/index.d.ts +2 -0
- package/dist/components/hx-stack/index.d.ts.map +1 -0
- package/dist/components/hx-stack/index.js +5 -0
- package/dist/components/hx-stack/index.js.map +1 -0
- package/dist/components/hx-status-indicator/hx-status-indicator.d.ts +74 -0
- package/dist/components/hx-status-indicator/hx-status-indicator.d.ts.map +1 -0
- package/dist/components/hx-status-indicator/hx-status-indicator.styles.d.ts +2 -0
- package/dist/components/hx-status-indicator/hx-status-indicator.styles.d.ts.map +1 -0
- package/dist/components/hx-status-indicator/index.d.ts +3 -0
- package/dist/components/hx-status-indicator/index.d.ts.map +1 -0
- package/dist/components/hx-status-indicator/index.js +5 -0
- package/dist/components/hx-status-indicator/index.js.map +1 -0
- package/dist/components/hx-steps/hx-step.d.ts +88 -0
- package/dist/components/hx-steps/hx-step.d.ts.map +1 -0
- package/dist/components/hx-steps/hx-step.styles.d.ts +2 -0
- package/dist/components/hx-steps/hx-step.styles.d.ts.map +1 -0
- package/dist/components/hx-steps/hx-steps.d.ts +56 -0
- package/dist/components/hx-steps/hx-steps.d.ts.map +1 -0
- package/dist/components/hx-steps/hx-steps.styles.d.ts +2 -0
- package/dist/components/hx-steps/hx-steps.styles.d.ts.map +1 -0
- package/dist/components/hx-steps/index.d.ts +3 -0
- package/dist/components/hx-steps/index.d.ts.map +1 -0
- package/dist/components/hx-steps/index.js +6 -0
- package/dist/components/hx-steps/index.js.map +1 -0
- package/dist/components/hx-structured-list/hx-structured-list.d.ts +72 -0
- package/dist/components/hx-structured-list/hx-structured-list.d.ts.map +1 -0
- package/dist/components/hx-structured-list/hx-structured-list.styles.d.ts +3 -0
- package/dist/components/hx-structured-list/hx-structured-list.styles.d.ts.map +1 -0
- package/dist/components/hx-structured-list/index.d.ts +2 -0
- package/dist/components/hx-structured-list/index.d.ts.map +1 -0
- package/dist/components/hx-structured-list/index.js +6 -0
- package/dist/components/hx-structured-list/index.js.map +1 -0
- package/dist/components/hx-switch/hx-switch.d.ts +143 -0
- package/dist/components/hx-switch/hx-switch.d.ts.map +1 -0
- package/dist/components/hx-switch/hx-switch.styles.d.ts +2 -0
- package/dist/components/hx-switch/hx-switch.styles.d.ts.map +1 -0
- package/dist/components/hx-switch/index.d.ts +2 -0
- package/dist/components/hx-switch/index.d.ts.map +1 -0
- package/dist/components/hx-switch/index.js +5 -0
- package/dist/components/hx-switch/index.js.map +1 -0
- package/dist/components/hx-tabs/hx-tab-panel.d.ts +32 -0
- package/dist/components/hx-tabs/hx-tab-panel.d.ts.map +1 -0
- package/dist/components/hx-tabs/hx-tab-panel.styles.d.ts +2 -0
- package/dist/components/hx-tabs/hx-tab-panel.styles.d.ts.map +1 -0
- package/dist/components/hx-tabs/hx-tab.d.ts +69 -0
- package/dist/components/hx-tabs/hx-tab.d.ts.map +1 -0
- package/dist/components/hx-tabs/hx-tab.styles.d.ts +2 -0
- package/dist/components/hx-tabs/hx-tab.styles.d.ts.map +1 -0
- package/dist/components/hx-tabs/hx-tabs.d.ts +97 -0
- package/dist/components/hx-tabs/hx-tabs.d.ts.map +1 -0
- package/dist/components/hx-tabs/hx-tabs.styles.d.ts +2 -0
- package/dist/components/hx-tabs/hx-tabs.styles.d.ts.map +1 -0
- package/dist/components/hx-tabs/index.d.ts +4 -0
- package/dist/components/hx-tabs/index.d.ts.map +1 -0
- package/dist/components/hx-tabs/index.js +7 -0
- package/dist/components/hx-tabs/index.js.map +1 -0
- package/dist/components/hx-tag/hx-tag.d.ts +97 -0
- package/dist/components/hx-tag/hx-tag.d.ts.map +1 -0
- package/dist/components/hx-tag/hx-tag.styles.d.ts +2 -0
- package/dist/components/hx-tag/hx-tag.styles.d.ts.map +1 -0
- package/dist/components/hx-tag/index.d.ts +2 -0
- package/dist/components/hx-tag/index.d.ts.map +1 -0
- package/dist/components/hx-tag/index.js +5 -0
- package/dist/components/hx-tag/index.js.map +1 -0
- package/dist/components/hx-text/hx-text.d.ts +90 -0
- package/dist/components/hx-text/hx-text.d.ts.map +1 -0
- package/dist/components/hx-text/hx-text.styles.d.ts +2 -0
- package/dist/components/hx-text/hx-text.styles.d.ts.map +1 -0
- package/dist/components/hx-text/index.d.ts +2 -0
- package/dist/components/hx-text/index.d.ts.map +1 -0
- package/dist/components/hx-text/index.js +5 -0
- package/dist/components/hx-text/index.js.map +1 -0
- package/dist/components/hx-text-input/hx-text-input.d.ts +188 -0
- package/dist/components/hx-text-input/hx-text-input.d.ts.map +1 -0
- package/dist/components/hx-text-input/hx-text-input.styles.d.ts +2 -0
- package/dist/components/hx-text-input/hx-text-input.styles.d.ts.map +1 -0
- package/dist/components/hx-text-input/index.d.ts +2 -0
- package/dist/components/hx-text-input/index.d.ts.map +1 -0
- package/dist/components/hx-text-input/index.js +5 -0
- package/dist/components/hx-text-input/index.js.map +1 -0
- package/dist/components/hx-textarea/hx-textarea.d.ts +169 -0
- package/dist/components/hx-textarea/hx-textarea.d.ts.map +1 -0
- package/dist/components/hx-textarea/hx-textarea.styles.d.ts +2 -0
- package/dist/components/hx-textarea/hx-textarea.styles.d.ts.map +1 -0
- package/dist/components/hx-textarea/index.d.ts +2 -0
- package/dist/components/hx-textarea/index.d.ts.map +1 -0
- package/dist/components/hx-textarea/index.js +5 -0
- package/dist/components/hx-textarea/index.js.map +1 -0
- package/dist/components/hx-theme/hx-theme.d.ts +108 -0
- package/dist/components/hx-theme/hx-theme.d.ts.map +1 -0
- package/dist/components/hx-theme/hx-theme.styles.d.ts +2 -0
- package/dist/components/hx-theme/hx-theme.styles.d.ts.map +1 -0
- package/dist/components/hx-theme/index.d.ts +3 -0
- package/dist/components/hx-theme/index.d.ts.map +1 -0
- package/dist/components/hx-theme/index.js +5 -0
- package/dist/components/hx-theme/index.js.map +1 -0
- package/dist/components/hx-time-picker/hx-time-picker.d.ts +153 -0
- package/dist/components/hx-time-picker/hx-time-picker.d.ts.map +1 -0
- package/dist/components/hx-time-picker/hx-time-picker.styles.d.ts +2 -0
- package/dist/components/hx-time-picker/hx-time-picker.styles.d.ts.map +1 -0
- package/dist/components/hx-time-picker/index.d.ts +2 -0
- package/dist/components/hx-time-picker/index.d.ts.map +1 -0
- package/dist/components/hx-time-picker/index.js +5 -0
- package/dist/components/hx-time-picker/index.js.map +1 -0
- package/dist/components/hx-toast/hx-toast.d.ts +156 -0
- package/dist/components/hx-toast/hx-toast.d.ts.map +1 -0
- package/dist/components/hx-toast/hx-toast.styles.d.ts +3 -0
- package/dist/components/hx-toast/hx-toast.styles.d.ts.map +1 -0
- package/dist/components/hx-toast/index.d.ts +3 -0
- package/dist/components/hx-toast/index.d.ts.map +1 -0
- package/dist/components/hx-toast/index.js +7 -0
- package/dist/components/hx-toast/index.js.map +1 -0
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts +93 -0
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts.map +1 -0
- package/dist/components/hx-toggle-button/hx-toggle-button.styles.d.ts +2 -0
- package/dist/components/hx-toggle-button/hx-toggle-button.styles.d.ts.map +1 -0
- package/dist/components/hx-toggle-button/index.d.ts +2 -0
- package/dist/components/hx-toggle-button/index.d.ts.map +1 -0
- package/dist/components/hx-toggle-button/index.js +5 -0
- package/dist/components/hx-toggle-button/index.js.map +1 -0
- package/dist/components/hx-tooltip/hx-tooltip.d.ts +109 -0
- package/dist/components/hx-tooltip/hx-tooltip.d.ts.map +1 -0
- package/dist/components/hx-tooltip/hx-tooltip.styles.d.ts +2 -0
- package/dist/components/hx-tooltip/hx-tooltip.styles.d.ts.map +1 -0
- package/dist/components/hx-tooltip/index.d.ts +2 -0
- package/dist/components/hx-tooltip/index.d.ts.map +1 -0
- package/dist/components/hx-tooltip/index.js +5 -0
- package/dist/components/hx-tooltip/index.js.map +1 -0
- package/dist/components/hx-top-nav/hx-top-nav.d.ts +61 -0
- package/dist/components/hx-top-nav/hx-top-nav.d.ts.map +1 -0
- package/dist/components/hx-top-nav/hx-top-nav.styles.d.ts +2 -0
- package/dist/components/hx-top-nav/hx-top-nav.styles.d.ts.map +1 -0
- package/dist/components/hx-top-nav/index.d.ts +2 -0
- package/dist/components/hx-top-nav/index.d.ts.map +1 -0
- package/dist/components/hx-top-nav/index.js +5 -0
- package/dist/components/hx-top-nav/index.js.map +1 -0
- package/dist/components/hx-tree-view/hx-tree-item.d.ts +71 -0
- package/dist/components/hx-tree-view/hx-tree-item.d.ts.map +1 -0
- package/dist/components/hx-tree-view/hx-tree-item.styles.d.ts +2 -0
- package/dist/components/hx-tree-view/hx-tree-item.styles.d.ts.map +1 -0
- package/dist/components/hx-tree-view/hx-tree-view.d.ts +61 -0
- package/dist/components/hx-tree-view/hx-tree-view.d.ts.map +1 -0
- package/dist/components/hx-tree-view/hx-tree-view.styles.d.ts +2 -0
- package/dist/components/hx-tree-view/hx-tree-view.styles.d.ts.map +1 -0
- package/dist/components/hx-tree-view/index.d.ts +4 -0
- package/dist/components/hx-tree-view/index.d.ts.map +1 -0
- package/dist/components/hx-tree-view/index.js +6 -0
- package/dist/components/hx-tree-view/index.js.map +1 -0
- package/dist/components/hx-visually-hidden/hx-visually-hidden.d.ts +46 -0
- package/dist/components/hx-visually-hidden/hx-visually-hidden.d.ts.map +1 -0
- package/dist/components/hx-visually-hidden/hx-visually-hidden.styles.d.ts +2 -0
- package/dist/components/hx-visually-hidden/hx-visually-hidden.styles.d.ts.map +1 -0
- package/dist/components/hx-visually-hidden/index.d.ts +2 -0
- package/dist/components/hx-visually-hidden/index.d.ts.map +1 -0
- package/dist/components/hx-visually-hidden/index.js +5 -0
- package/dist/components/hx-visually-hidden/index.js.map +1 -0
- package/dist/controllers/adopted-stylesheets.d.ts +32 -0
- package/dist/controllers/adopted-stylesheets.d.ts.map +1 -0
- package/dist/index.d.ts +94 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +163 -0
- package/dist/index.js.map +1 -0
- package/dist/shared/adopted-stylesheets-BZZnCSAs.js +35 -0
- package/dist/shared/adopted-stylesheets-BZZnCSAs.js.map +1 -0
- package/dist/shared/hx-accordion-DUkYS5rZ.js +332 -0
- package/dist/shared/hx-accordion-DUkYS5rZ.js.map +1 -0
- package/dist/shared/hx-action-bar-CwIRFzBx.js +256 -0
- package/dist/shared/hx-action-bar-CwIRFzBx.js.map +1 -0
- package/dist/shared/hx-alert-C3Papw22.js +364 -0
- package/dist/shared/hx-alert-C3Papw22.js.map +1 -0
- package/dist/shared/hx-avatar-DoHGMrj7.js +238 -0
- package/dist/shared/hx-avatar-DoHGMrj7.js.map +1 -0
- package/dist/shared/hx-badge-BeCmOPr1.js +255 -0
- package/dist/shared/hx-badge-BeCmOPr1.js.map +1 -0
- package/dist/shared/hx-breadcrumb-item-BSBMWQHz.js +309 -0
- package/dist/shared/hx-breadcrumb-item-BSBMWQHz.js.map +1 -0
- package/dist/shared/hx-button-group-BbWEDMPb.js +157 -0
- package/dist/shared/hx-button-group-BbWEDMPb.js.map +1 -0
- package/dist/shared/hx-button-p_YAY9Nv.js +322 -0
- package/dist/shared/hx-button-p_YAY9Nv.js.map +1 -0
- package/dist/shared/hx-card-DfEGlbZR.js +279 -0
- package/dist/shared/hx-card-DfEGlbZR.js.map +1 -0
- package/dist/shared/hx-carousel-item-CymJHv1m.js +610 -0
- package/dist/shared/hx-carousel-item-CymJHv1m.js.map +1 -0
- package/dist/shared/hx-checkbox-CV5c6AE8.js +423 -0
- package/dist/shared/hx-checkbox-CV5c6AE8.js.map +1 -0
- package/dist/shared/hx-checkbox-group-ClGxYUi0.js +271 -0
- package/dist/shared/hx-checkbox-group-ClGxYUi0.js.map +1 -0
- package/dist/shared/hx-code-snippet-CoFaSyuB.js +322 -0
- package/dist/shared/hx-code-snippet-CoFaSyuB.js.map +1 -0
- package/dist/shared/hx-color-picker-BF7PA7zf.js +795 -0
- package/dist/shared/hx-color-picker-BF7PA7zf.js.map +1 -0
- package/dist/shared/hx-combobox-De4-pDn0.js +871 -0
- package/dist/shared/hx-combobox-De4-pDn0.js.map +1 -0
- package/dist/shared/hx-container-DWBtruk3.js +121 -0
- package/dist/shared/hx-container-DWBtruk3.js.map +1 -0
- package/dist/shared/hx-copy-button-BCy6VMwN.js +265 -0
- package/dist/shared/hx-copy-button-BCy6VMwN.js.map +1 -0
- package/dist/shared/hx-data-table-D5huonFo.js +497 -0
- package/dist/shared/hx-data-table-D5huonFo.js.map +1 -0
- package/dist/shared/hx-date-picker-Ckvm0yi9.js +969 -0
- package/dist/shared/hx-date-picker-Ckvm0yi9.js.map +1 -0
- package/dist/shared/hx-dialog-D_NXy5rB.js +439 -0
- package/dist/shared/hx-dialog-D_NXy5rB.js.map +1 -0
- package/dist/shared/hx-divider-BDMW3H-1.js +157 -0
- package/dist/shared/hx-divider-BDMW3H-1.js.map +1 -0
- package/dist/shared/hx-drawer-CESgUmre.js +515 -0
- package/dist/shared/hx-drawer-CESgUmre.js.map +1 -0
- package/dist/shared/hx-dropdown-AZLF-5t6.js +229 -0
- package/dist/shared/hx-dropdown-AZLF-5t6.js.map +1 -0
- package/dist/shared/hx-field-label-CPBvSn_r.js +79 -0
- package/dist/shared/hx-field-label-CPBvSn_r.js.map +1 -0
- package/dist/shared/hx-field-vWiKgWIy.js +308 -0
- package/dist/shared/hx-field-vWiKgWIy.js.map +1 -0
- package/dist/shared/hx-file-upload-Px6kRzAZ.js +614 -0
- package/dist/shared/hx-file-upload-Px6kRzAZ.js.map +1 -0
- package/dist/shared/hx-form-BJeLK34m.js +1264 -0
- package/dist/shared/hx-form-BJeLK34m.js.map +1 -0
- package/dist/shared/hx-format-date-BIR66MeC.js +172 -0
- package/dist/shared/hx-format-date-BIR66MeC.js.map +1 -0
- package/dist/shared/hx-grid-Dgo7fnWu.js +118 -0
- package/dist/shared/hx-grid-Dgo7fnWu.js.map +1 -0
- package/dist/shared/hx-help-text-C3WCP11-.js +135 -0
- package/dist/shared/hx-help-text-C3WCP11-.js.map +1 -0
- package/dist/shared/hx-icon-CxOk7jZe.js +235 -0
- package/dist/shared/hx-icon-CxOk7jZe.js.map +1 -0
- package/dist/shared/hx-image-CZPw1AiF.js +175 -0
- package/dist/shared/hx-image-CZPw1AiF.js.map +1 -0
- package/dist/shared/hx-link-DObQ7eS4.js +209 -0
- package/dist/shared/hx-link-DObQ7eS4.js.map +1 -0
- package/dist/shared/hx-list-B6yPCAAW.js +402 -0
- package/dist/shared/hx-list-B6yPCAAW.js.map +1 -0
- package/dist/shared/hx-menu-divider-BgVoqte4.js +420 -0
- package/dist/shared/hx-menu-divider-BgVoqte4.js.map +1 -0
- package/dist/shared/hx-meter-B5LOo0zD.js +184 -0
- package/dist/shared/hx-meter-B5LOo0zD.js.map +1 -0
- package/dist/shared/hx-nav-BhtMZCze.js +537 -0
- package/dist/shared/hx-nav-BhtMZCze.js.map +1 -0
- package/dist/shared/hx-nav-item-CbNibLuK.js +605 -0
- package/dist/shared/hx-nav-item-CbNibLuK.js.map +1 -0
- package/dist/shared/hx-number-input-DgHt4ggr.js +642 -0
- package/dist/shared/hx-number-input-DgHt4ggr.js.map +1 -0
- package/dist/shared/hx-overflow-menu-DkbrRDmB.js +309 -0
- package/dist/shared/hx-overflow-menu-DkbrRDmB.js.map +1 -0
- package/dist/shared/hx-pagination-VMEpaOXX.js +437 -0
- package/dist/shared/hx-pagination-VMEpaOXX.js.map +1 -0
- package/dist/shared/hx-popover-DTe00Q46.js +226 -0
- package/dist/shared/hx-popover-DTe00Q46.js.map +1 -0
- package/dist/shared/hx-popup-5O6q0jf1.js +200 -0
- package/dist/shared/hx-popup-5O6q0jf1.js.map +1 -0
- package/dist/shared/hx-progress-bar-vQnpJ-9N.js +217 -0
- package/dist/shared/hx-progress-bar-vQnpJ-9N.js.map +1 -0
- package/dist/shared/hx-progress-ring-DDSW677s.js +252 -0
- package/dist/shared/hx-progress-ring-DDSW677s.js.map +1 -0
- package/dist/shared/hx-prose-BUkZ8rB3.js +873 -0
- package/dist/shared/hx-prose-BUkZ8rB3.js.map +1 -0
- package/dist/shared/hx-radio-93uKku6B.js +481 -0
- package/dist/shared/hx-radio-93uKku6B.js.map +1 -0
- package/dist/shared/hx-rating-t4o150-R.js +358 -0
- package/dist/shared/hx-rating-t4o150-R.js.map +1 -0
- package/dist/shared/hx-select-DQks1zLJ.js +753 -0
- package/dist/shared/hx-select-DQks1zLJ.js.map +1 -0
- package/dist/shared/hx-skeleton-DQQ2SYxF.js +154 -0
- package/dist/shared/hx-skeleton-DQQ2SYxF.js.map +1 -0
- package/dist/shared/hx-slider-BRMWoKZk.js +548 -0
- package/dist/shared/hx-slider-BRMWoKZk.js.map +1 -0
- package/dist/shared/hx-spinner-CcbmN-u_.js +183 -0
- package/dist/shared/hx-spinner-CcbmN-u_.js.map +1 -0
- package/dist/shared/hx-split-button-hBPl-zRv.js +542 -0
- package/dist/shared/hx-split-button-hBPl-zRv.js.map +1 -0
- package/dist/shared/hx-split-panel-C9Sy7XVW.js +351 -0
- package/dist/shared/hx-split-panel-C9Sy7XVW.js.map +1 -0
- package/dist/shared/hx-stack-B_wODjQX.js +154 -0
- package/dist/shared/hx-stack-B_wODjQX.js.map +1 -0
- package/dist/shared/hx-status-indicator-CiTQuO5V.js +149 -0
- package/dist/shared/hx-status-indicator-CiTQuO5V.js.map +1 -0
- package/dist/shared/hx-step-m5RcyZ61.js +496 -0
- package/dist/shared/hx-step-m5RcyZ61.js.map +1 -0
- package/dist/shared/hx-structured-list-ClvSFleR.js +133 -0
- package/dist/shared/hx-structured-list-ClvSFleR.js.map +1 -0
- package/dist/shared/hx-switch-BFxgxal8.js +356 -0
- package/dist/shared/hx-switch-BFxgxal8.js.map +1 -0
- package/dist/shared/hx-tab-panel-8p6KfVzz.js +470 -0
- package/dist/shared/hx-tab-panel-8p6KfVzz.js.map +1 -0
- package/dist/shared/hx-tag-BP7HJ6_0.js +243 -0
- package/dist/shared/hx-tag-BP7HJ6_0.js.map +1 -0
- package/dist/shared/hx-text-DDSH1alC.js +218 -0
- package/dist/shared/hx-text-DDSH1alC.js.map +1 -0
- package/dist/shared/hx-text-input-Dv458950.js +440 -0
- package/dist/shared/hx-text-input-Dv458950.js.map +1 -0
- package/dist/shared/hx-textarea-BX8nCfDJ.js +398 -0
- package/dist/shared/hx-textarea-BX8nCfDJ.js.map +1 -0
- package/dist/shared/hx-theme-Dc0nKH7V.js +176 -0
- package/dist/shared/hx-theme-Dc0nKH7V.js.map +1 -0
- package/dist/shared/hx-time-picker-CA58UCqx.js +651 -0
- package/dist/shared/hx-time-picker-CA58UCqx.js.map +1 -0
- package/dist/shared/hx-toast-BTqzF2VV.js +423 -0
- package/dist/shared/hx-toast-BTqzF2VV.js.map +1 -0
- package/dist/shared/hx-toggle-button-BkDaJgRS.js +320 -0
- package/dist/shared/hx-toggle-button-BkDaJgRS.js.map +1 -0
- package/dist/shared/hx-tooltip-wAQWzjlr.js +190 -0
- package/dist/shared/hx-tooltip-wAQWzjlr.js.map +1 -0
- package/dist/shared/hx-top-nav-CBxdfPqY.js +322 -0
- package/dist/shared/hx-top-nav-CBxdfPqY.js.map +1 -0
- package/dist/shared/hx-tree-item-BySNNlrw.js +494 -0
- package/dist/shared/hx-tree-item-BySNNlrw.js.map +1 -0
- package/dist/shared/hx-visually-hidden-8ycpz6oY.js +54 -0
- package/dist/shared/hx-visually-hidden-8ycpz6oY.js.map +1 -0
- package/dist/shared/index-nHBAh0Cr.js +74 -0
- package/dist/shared/index-nHBAh0Cr.js.map +1 -0
- package/dist/shared/lit-Dpo7RLp4.js +24 -0
- package/dist/shared/lit-Dpo7RLp4.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,1264 @@
|
|
|
1
|
+
import { LitElement as l, html as m, nothing as f } from "lit";
|
|
2
|
+
import { state as x, property as h, customElement as p } from "lit/decorators.js";
|
|
3
|
+
import { ifDefined as u } from "lit/directives/if-defined.js";
|
|
4
|
+
import { A as d } from "./adopted-stylesheets-BZZnCSAs.js";
|
|
5
|
+
const v = `/* ==========================================================================
|
|
6
|
+
* form.scoped.css — Scoped barrel file
|
|
7
|
+
*
|
|
8
|
+
* Contains all form styles with every selector prefixed by \`hx-form\` to
|
|
9
|
+
* prevent leaking outside the <hx-form> Light DOM wrapper.
|
|
10
|
+
*
|
|
11
|
+
* IMPORTANT: This file does NOT use @import because CSS imports cannot
|
|
12
|
+
* add scope prefixes. All styles are written inline.
|
|
13
|
+
* ==========================================================================
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/* ==========================================================================
|
|
17
|
+
* HOST / FORM ROOT TOKENS
|
|
18
|
+
* ========================================================================== */
|
|
19
|
+
|
|
20
|
+
hx-form {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: var(--hx-form-gap, var(--hx-space-4, 1rem));
|
|
24
|
+
max-width: var(--hx-form-max-width, none);
|
|
25
|
+
padding: var(--hx-form-padding, 0);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* ==========================================================================
|
|
29
|
+
* ERROR SUMMARY
|
|
30
|
+
* ========================================================================== */
|
|
31
|
+
|
|
32
|
+
hx-form .hx-form-error-summary {
|
|
33
|
+
border: var(--hx-border-width-thin, 1px) solid
|
|
34
|
+
var(--hx-input-error-color, var(--hx-color-error-500, #dc3545));
|
|
35
|
+
border-radius: var(--hx-border-radius-md, 0.375rem);
|
|
36
|
+
background-color: var(--hx-color-error-50, #fef2f2);
|
|
37
|
+
color: var(--hx-input-error-color, var(--hx-color-error-500, #dc3545));
|
|
38
|
+
padding: var(--hx-space-3, 0.75rem) var(--hx-space-4, 1rem);
|
|
39
|
+
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
40
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
41
|
+
font-family: var(--hx-input-font-family, var(--hx-font-family-sans, sans-serif));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
hx-form .hx-form-error-summary ul {
|
|
45
|
+
margin: 0;
|
|
46
|
+
padding: 0 0 0 var(--hx-space-4, 1rem);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
hx-form .hx-form-error-summary li {
|
|
50
|
+
margin-bottom: var(--hx-space-1, 0.25rem);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
hx-form .hx-form-error-summary li:last-child {
|
|
54
|
+
margin-bottom: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* ==========================================================================
|
|
58
|
+
* FIELD (_field.css scoped)
|
|
59
|
+
* ========================================================================== */
|
|
60
|
+
|
|
61
|
+
/* ─── Field Container ─── */
|
|
62
|
+
|
|
63
|
+
hx-form .form-item {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: var(--hx-space-1, 0.25rem);
|
|
67
|
+
font-family: var(--hx-input-font-family, var(--hx-font-family-sans, sans-serif));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
hx-form .form-item + .form-item {
|
|
71
|
+
margin-top: var(--hx-space-4, 1rem);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* ─── Label ─── */
|
|
75
|
+
|
|
76
|
+
hx-form label {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: baseline;
|
|
79
|
+
gap: var(--hx-space-1, 0.25rem);
|
|
80
|
+
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
81
|
+
font-weight: var(--hx-font-weight-medium, 500);
|
|
82
|
+
color: var(--hx-input-label-color, var(--hx-color-neutral-700, #343a40));
|
|
83
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* ─── Required Marker ─── */
|
|
87
|
+
|
|
88
|
+
hx-form .form-required {
|
|
89
|
+
color: var(--hx-input-error-color, var(--hx-color-error-500, #dc3545));
|
|
90
|
+
font-weight: var(--hx-font-weight-bold, 700);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* ─── Description / Help Text ─── */
|
|
94
|
+
|
|
95
|
+
hx-form .description {
|
|
96
|
+
font-size: var(--hx-font-size-xs, 0.75rem);
|
|
97
|
+
color: var(--hx-color-neutral-500, #6c757d);
|
|
98
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* ─── Box Sizing Reset ─── */
|
|
102
|
+
|
|
103
|
+
hx-form .form-item *,
|
|
104
|
+
hx-form .form-item *::before,
|
|
105
|
+
hx-form .form-item *::after {
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* ==========================================================================
|
|
110
|
+
* TEXT INPUT (_text-input.css scoped)
|
|
111
|
+
* ========================================================================== */
|
|
112
|
+
|
|
113
|
+
hx-form input[type='text'],
|
|
114
|
+
hx-form input[type='email'],
|
|
115
|
+
hx-form input[type='password'],
|
|
116
|
+
hx-form input[type='tel'],
|
|
117
|
+
hx-form input[type='url'],
|
|
118
|
+
hx-form input[type='search'],
|
|
119
|
+
hx-form input[type='number'] {
|
|
120
|
+
display: block;
|
|
121
|
+
width: 100%;
|
|
122
|
+
border: var(--hx-border-width-thin, 1px) solid
|
|
123
|
+
var(--hx-input-border-color, var(--hx-color-neutral-300, #ced4da));
|
|
124
|
+
border-radius: var(--hx-input-border-radius, var(--hx-border-radius-md, 0.375rem));
|
|
125
|
+
background-color: var(--hx-input-bg, var(--hx-color-neutral-0, #ffffff));
|
|
126
|
+
padding: var(--hx-space-2, 0.5rem) var(--hx-space-3, 0.75rem);
|
|
127
|
+
font-family: var(--hx-input-font-family, var(--hx-font-family-sans, sans-serif));
|
|
128
|
+
font-size: var(--hx-font-size-md, 1rem);
|
|
129
|
+
color: var(--hx-input-color, var(--hx-color-neutral-800, #212529));
|
|
130
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
131
|
+
min-height: var(--hx-size-10, 2.5rem);
|
|
132
|
+
transition:
|
|
133
|
+
border-color var(--hx-transition-fast, 150ms ease),
|
|
134
|
+
box-shadow var(--hx-transition-fast, 150ms ease);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* ─── Placeholder ─── */
|
|
138
|
+
|
|
139
|
+
hx-form input[type='text']::placeholder,
|
|
140
|
+
hx-form input[type='email']::placeholder,
|
|
141
|
+
hx-form input[type='password']::placeholder,
|
|
142
|
+
hx-form input[type='tel']::placeholder,
|
|
143
|
+
hx-form input[type='url']::placeholder,
|
|
144
|
+
hx-form input[type='search']::placeholder,
|
|
145
|
+
hx-form input[type='number']::placeholder {
|
|
146
|
+
color: var(--hx-color-neutral-400, #adb5bd);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* ─── Focus State ─── */
|
|
150
|
+
|
|
151
|
+
hx-form input[type='text']:focus,
|
|
152
|
+
hx-form input[type='email']:focus,
|
|
153
|
+
hx-form input[type='password']:focus,
|
|
154
|
+
hx-form input[type='tel']:focus,
|
|
155
|
+
hx-form input[type='url']:focus,
|
|
156
|
+
hx-form input[type='search']:focus,
|
|
157
|
+
hx-form input[type='number']:focus {
|
|
158
|
+
outline: 0;
|
|
159
|
+
border-color: var(--hx-input-focus-ring-color, var(--hx-focus-ring-color, #2563eb));
|
|
160
|
+
box-shadow: 0 0 0 var(--hx-focus-ring-width, 2px)
|
|
161
|
+
color-mix(
|
|
162
|
+
in srgb,
|
|
163
|
+
var(--hx-input-focus-ring-color, var(--hx-focus-ring-color, #2563eb))
|
|
164
|
+
calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
165
|
+
transparent
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@media (forced-colors: active) {
|
|
170
|
+
hx-form input[type='text']:focus,
|
|
171
|
+
hx-form input[type='email']:focus,
|
|
172
|
+
hx-form input[type='password']:focus,
|
|
173
|
+
hx-form input[type='tel']:focus,
|
|
174
|
+
hx-form input[type='url']:focus,
|
|
175
|
+
hx-form input[type='search']:focus,
|
|
176
|
+
hx-form input[type='number']:focus {
|
|
177
|
+
outline: var(--hx-focus-ring-width, 2px) solid ButtonText;
|
|
178
|
+
outline-offset: var(--hx-focus-ring-offset, 2px);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* ─── Disabled State ─── */
|
|
183
|
+
|
|
184
|
+
hx-form input[type='text']:disabled,
|
|
185
|
+
hx-form input[type='email']:disabled,
|
|
186
|
+
hx-form input[type='password']:disabled,
|
|
187
|
+
hx-form input[type='tel']:disabled,
|
|
188
|
+
hx-form input[type='url']:disabled,
|
|
189
|
+
hx-form input[type='search']:disabled,
|
|
190
|
+
hx-form input[type='number']:disabled {
|
|
191
|
+
opacity: var(--hx-opacity-disabled, 0.5);
|
|
192
|
+
cursor: not-allowed;
|
|
193
|
+
pointer-events: none;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* ─── Read-Only State ─── */
|
|
197
|
+
|
|
198
|
+
hx-form input[type='text']:read-only,
|
|
199
|
+
hx-form input[type='email']:read-only,
|
|
200
|
+
hx-form input[type='password']:read-only,
|
|
201
|
+
hx-form input[type='tel']:read-only,
|
|
202
|
+
hx-form input[type='url']:read-only,
|
|
203
|
+
hx-form input[type='search']:read-only,
|
|
204
|
+
hx-form input[type='number']:read-only {
|
|
205
|
+
background-color: var(--hx-color-neutral-100, #e9ecef);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* ─── Remove browser search decorations ─── */
|
|
209
|
+
|
|
210
|
+
hx-form input[type='search']::-webkit-search-decoration,
|
|
211
|
+
hx-form input[type='search']::-webkit-search-cancel-button,
|
|
212
|
+
hx-form input[type='search']::-webkit-search-results-button,
|
|
213
|
+
hx-form input[type='search']::-webkit-search-results-decoration {
|
|
214
|
+
-webkit-appearance: none;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* ─── Remove number input spinners ─── */
|
|
218
|
+
|
|
219
|
+
hx-form input[type='number']::-webkit-inner-spin-button,
|
|
220
|
+
hx-form input[type='number']::-webkit-outer-spin-button {
|
|
221
|
+
-webkit-appearance: none;
|
|
222
|
+
margin: 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
hx-form input[type='number'] {
|
|
226
|
+
appearance: textfield;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* ==========================================================================
|
|
230
|
+
* TEXTAREA (_textarea.css scoped)
|
|
231
|
+
* ========================================================================== */
|
|
232
|
+
|
|
233
|
+
hx-form textarea {
|
|
234
|
+
display: block;
|
|
235
|
+
width: 100%;
|
|
236
|
+
border: var(--hx-border-width-thin, 1px) solid
|
|
237
|
+
var(--hx-input-border-color, var(--hx-color-neutral-300, #ced4da));
|
|
238
|
+
border-radius: var(--hx-input-border-radius, var(--hx-border-radius-md, 0.375rem));
|
|
239
|
+
background-color: var(--hx-input-bg, var(--hx-color-neutral-0, #ffffff));
|
|
240
|
+
padding: var(--hx-space-2, 0.5rem) var(--hx-space-3, 0.75rem);
|
|
241
|
+
font-family: var(--hx-input-font-family, var(--hx-font-family-sans, sans-serif));
|
|
242
|
+
font-size: var(--hx-font-size-md, 1rem);
|
|
243
|
+
color: var(--hx-input-color, var(--hx-color-neutral-800, #212529));
|
|
244
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
245
|
+
min-height: var(--hx-textarea-min-height, var(--hx-size-20, 5rem));
|
|
246
|
+
resize: vertical;
|
|
247
|
+
transition:
|
|
248
|
+
border-color var(--hx-transition-fast, 150ms ease),
|
|
249
|
+
box-shadow var(--hx-transition-fast, 150ms ease);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
hx-form textarea::placeholder {
|
|
253
|
+
color: var(--hx-color-neutral-400, #adb5bd);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
hx-form textarea:focus {
|
|
257
|
+
outline: 0;
|
|
258
|
+
border-color: var(--hx-input-focus-ring-color, var(--hx-focus-ring-color, #2563eb));
|
|
259
|
+
box-shadow: 0 0 0 var(--hx-focus-ring-width, 2px)
|
|
260
|
+
color-mix(
|
|
261
|
+
in srgb,
|
|
262
|
+
var(--hx-input-focus-ring-color, var(--hx-focus-ring-color, #2563eb))
|
|
263
|
+
calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
264
|
+
transparent
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
@media (forced-colors: active) {
|
|
269
|
+
hx-form textarea:focus {
|
|
270
|
+
outline: var(--hx-focus-ring-width, 2px) solid ButtonText;
|
|
271
|
+
outline-offset: var(--hx-focus-ring-offset, 2px);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
hx-form textarea:disabled {
|
|
276
|
+
opacity: var(--hx-opacity-disabled, 0.5);
|
|
277
|
+
cursor: not-allowed;
|
|
278
|
+
pointer-events: none;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
hx-form textarea:read-only {
|
|
282
|
+
background-color: var(--hx-color-neutral-100, #e9ecef);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* ==========================================================================
|
|
286
|
+
* SELECT (_select.css scoped)
|
|
287
|
+
* ========================================================================== */
|
|
288
|
+
|
|
289
|
+
hx-form select {
|
|
290
|
+
display: block;
|
|
291
|
+
width: 100%;
|
|
292
|
+
border: var(--hx-border-width-thin, 1px) solid
|
|
293
|
+
var(--hx-select-border-color, var(--hx-color-neutral-300, #ced4da));
|
|
294
|
+
border-radius: var(--hx-select-border-radius, var(--hx-border-radius-md, 0.375rem));
|
|
295
|
+
background-color: var(--hx-select-bg, var(--hx-color-neutral-0, #ffffff));
|
|
296
|
+
padding: var(--hx-space-2, 0.5rem) var(--hx-space-8, 2rem) var(--hx-space-2, 0.5rem)
|
|
297
|
+
var(--hx-space-3, 0.75rem);
|
|
298
|
+
font-family: var(--hx-select-font-family, var(--hx-font-family-sans, sans-serif));
|
|
299
|
+
font-size: var(--hx-font-size-md, 1rem);
|
|
300
|
+
color: var(--hx-select-color, var(--hx-color-neutral-800, #212529));
|
|
301
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
302
|
+
min-height: var(--hx-input-height-md, var(--hx-size-10, 2.5rem));
|
|
303
|
+
cursor: pointer;
|
|
304
|
+
transition:
|
|
305
|
+
border-color var(--hx-transition-fast, 150ms ease),
|
|
306
|
+
box-shadow var(--hx-transition-fast, 150ms ease);
|
|
307
|
+
appearance: none;
|
|
308
|
+
-webkit-appearance: none;
|
|
309
|
+
-moz-appearance: none;
|
|
310
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236c757d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
|
|
311
|
+
background-repeat: no-repeat;
|
|
312
|
+
background-position: right var(--hx-space-3, 0.75rem) center;
|
|
313
|
+
background-size: 12px 8px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
hx-form select:focus {
|
|
317
|
+
outline: 0;
|
|
318
|
+
border-color: var(--hx-select-focus-ring-color, var(--hx-focus-ring-color, #2563eb));
|
|
319
|
+
box-shadow: 0 0 0 var(--hx-focus-ring-width, 2px)
|
|
320
|
+
color-mix(
|
|
321
|
+
in srgb,
|
|
322
|
+
var(--hx-select-focus-ring-color, var(--hx-focus-ring-color, #2563eb))
|
|
323
|
+
calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
324
|
+
transparent
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
@media (forced-colors: active) {
|
|
329
|
+
hx-form select:focus {
|
|
330
|
+
outline: var(--hx-focus-ring-width, 2px) solid ButtonText;
|
|
331
|
+
outline-offset: var(--hx-focus-ring-offset, 2px);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
hx-form select:disabled {
|
|
336
|
+
opacity: var(--hx-opacity-disabled, 0.5);
|
|
337
|
+
cursor: not-allowed;
|
|
338
|
+
pointer-events: none;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
hx-form select[multiple] {
|
|
342
|
+
min-height: var(--hx-size-20, 5rem);
|
|
343
|
+
padding-right: var(--hx-space-3, 0.75rem);
|
|
344
|
+
background-image: none;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
hx-form select[multiple] option {
|
|
348
|
+
padding: var(--hx-space-1, 0.25rem) var(--hx-space-2, 0.5rem);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
hx-form select::-ms-expand {
|
|
352
|
+
display: none;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* ==========================================================================
|
|
356
|
+
* CHECKBOX (_checkbox.css scoped)
|
|
357
|
+
* ========================================================================== */
|
|
358
|
+
|
|
359
|
+
hx-form input[type='checkbox'] {
|
|
360
|
+
appearance: none;
|
|
361
|
+
-webkit-appearance: none;
|
|
362
|
+
-moz-appearance: none;
|
|
363
|
+
display: inline-flex;
|
|
364
|
+
align-items: center;
|
|
365
|
+
justify-content: center;
|
|
366
|
+
flex-shrink: 0;
|
|
367
|
+
width: var(--hx-checkbox-size, var(--hx-size-5, 1.25rem));
|
|
368
|
+
height: var(--hx-checkbox-size, var(--hx-size-5, 1.25rem));
|
|
369
|
+
margin: 0;
|
|
370
|
+
border: var(--hx-border-width-medium, 2px) solid
|
|
371
|
+
var(--hx-checkbox-border-color, var(--hx-color-neutral-300, #ced4da));
|
|
372
|
+
border-radius: var(--hx-checkbox-border-radius, var(--hx-border-radius-sm, 0.25rem));
|
|
373
|
+
background-color: var(--hx-color-neutral-0, #ffffff);
|
|
374
|
+
transition:
|
|
375
|
+
background-color var(--hx-transition-fast, 150ms ease),
|
|
376
|
+
border-color var(--hx-transition-fast, 150ms ease),
|
|
377
|
+
box-shadow var(--hx-transition-fast, 150ms ease);
|
|
378
|
+
cursor: pointer;
|
|
379
|
+
vertical-align: middle;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
hx-form input[type='checkbox']:checked {
|
|
383
|
+
background-color: var(--hx-checkbox-checked-bg, var(--hx-color-primary-500, #2563eb));
|
|
384
|
+
border-color: var(--hx-checkbox-checked-border-color, var(--hx-color-primary-500, #2563eb));
|
|
385
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
386
|
+
background-repeat: no-repeat;
|
|
387
|
+
background-position: center;
|
|
388
|
+
background-size: 100%;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
hx-form input[type='checkbox']:indeterminate {
|
|
392
|
+
background-color: var(--hx-checkbox-checked-bg, var(--hx-color-primary-500, #2563eb));
|
|
393
|
+
border-color: var(--hx-checkbox-checked-border-color, var(--hx-color-primary-500, #2563eb));
|
|
394
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8H12' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
395
|
+
background-repeat: no-repeat;
|
|
396
|
+
background-position: center;
|
|
397
|
+
background-size: 100%;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
hx-form input[type='checkbox']:focus-visible {
|
|
401
|
+
outline: var(--hx-focus-ring-width, 2px) solid
|
|
402
|
+
var(--hx-checkbox-focus-ring-color, var(--hx-focus-ring-color, #2563eb));
|
|
403
|
+
outline-offset: var(--hx-focus-ring-offset, 2px);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
hx-form input[type='checkbox']:hover:not(:disabled) {
|
|
407
|
+
border-color: var(--hx-color-primary-500, #2563eb);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
hx-form input[type='checkbox']:checked:hover:not(:disabled) {
|
|
411
|
+
filter: brightness(var(--hx-filter-brightness-hover, 0.9));
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
hx-form input[type='checkbox']:disabled {
|
|
415
|
+
opacity: var(--hx-opacity-disabled, 0.5);
|
|
416
|
+
cursor: not-allowed;
|
|
417
|
+
pointer-events: none;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
hx-form .form-type-checkbox,
|
|
421
|
+
hx-form .form-type-checkbox-toggle {
|
|
422
|
+
display: flex;
|
|
423
|
+
align-items: flex-start;
|
|
424
|
+
gap: var(--hx-space-2, 0.5rem);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
hx-form .form-type-checkbox label,
|
|
428
|
+
hx-form .form-type-checkbox-toggle label {
|
|
429
|
+
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
430
|
+
font-weight: var(--hx-font-weight-medium, 500);
|
|
431
|
+
color: var(--hx-checkbox-label-color, var(--hx-color-neutral-700, #343a40));
|
|
432
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
433
|
+
cursor: pointer;
|
|
434
|
+
user-select: none;
|
|
435
|
+
-webkit-user-select: none;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/* ==========================================================================
|
|
439
|
+
* RADIO (_radio.css scoped)
|
|
440
|
+
* ========================================================================== */
|
|
441
|
+
|
|
442
|
+
hx-form input[type='radio'] {
|
|
443
|
+
appearance: none;
|
|
444
|
+
-webkit-appearance: none;
|
|
445
|
+
-moz-appearance: none;
|
|
446
|
+
display: inline-flex;
|
|
447
|
+
align-items: center;
|
|
448
|
+
justify-content: center;
|
|
449
|
+
flex-shrink: 0;
|
|
450
|
+
width: var(--hx-radio-size, var(--hx-size-5, 1.25rem));
|
|
451
|
+
height: var(--hx-radio-size, var(--hx-size-5, 1.25rem));
|
|
452
|
+
margin: 0;
|
|
453
|
+
border: var(--hx-border-width-medium, 2px) solid
|
|
454
|
+
var(--hx-radio-border-color, var(--hx-color-neutral-300, #ced4da));
|
|
455
|
+
border-radius: var(--hx-border-radius-full, 9999px);
|
|
456
|
+
background-color: var(--hx-color-neutral-0, #ffffff);
|
|
457
|
+
transition:
|
|
458
|
+
border-color var(--hx-transition-fast, 150ms ease),
|
|
459
|
+
background-color var(--hx-transition-fast, 150ms ease),
|
|
460
|
+
box-shadow var(--hx-transition-fast, 150ms ease);
|
|
461
|
+
cursor: pointer;
|
|
462
|
+
vertical-align: middle;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
hx-form input[type='radio']:checked {
|
|
466
|
+
border-color: var(--hx-radio-checked-border-color, var(--hx-color-primary-500, #2563eb));
|
|
467
|
+
background-color: var(--hx-radio-checked-bg, var(--hx-color-primary-500, #2563eb));
|
|
468
|
+
box-shadow: inset 0 0 0 calc(var(--hx-radio-size, var(--hx-size-5, 1.25rem)) * 0.3)
|
|
469
|
+
var(--hx-radio-dot-color, var(--hx-color-neutral-0, #ffffff));
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
hx-form input[type='radio']:focus-visible {
|
|
473
|
+
outline: var(--hx-focus-ring-width, 2px) solid
|
|
474
|
+
var(--hx-radio-focus-ring-color, var(--hx-focus-ring-color, #2563eb));
|
|
475
|
+
outline-offset: var(--hx-focus-ring-offset, 2px);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
hx-form input[type='radio']:hover:not(:disabled):not(:checked) {
|
|
479
|
+
border-color: var(--hx-color-neutral-400, #adb5bd);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
hx-form input[type='radio']:disabled {
|
|
483
|
+
opacity: var(--hx-opacity-disabled, 0.5);
|
|
484
|
+
cursor: not-allowed;
|
|
485
|
+
pointer-events: none;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
hx-form .form-type-radio {
|
|
489
|
+
display: inline-flex;
|
|
490
|
+
align-items: center;
|
|
491
|
+
gap: var(--hx-space-2, 0.5rem);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
hx-form .form-type-radio label {
|
|
495
|
+
font-size: var(--hx-font-size-md, 1rem);
|
|
496
|
+
color: var(--hx-radio-label-color, var(--hx-color-neutral-700, #343a40));
|
|
497
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
498
|
+
cursor: pointer;
|
|
499
|
+
user-select: none;
|
|
500
|
+
-webkit-user-select: none;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
hx-form .form-radios {
|
|
504
|
+
display: flex;
|
|
505
|
+
flex-direction: column;
|
|
506
|
+
gap: var(--hx-radio-group-gap, var(--hx-space-3, 0.75rem));
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
hx-form .form-radios--horizontal {
|
|
510
|
+
flex-direction: row;
|
|
511
|
+
flex-wrap: wrap;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/* ==========================================================================
|
|
515
|
+
* SWITCH (_switch.css scoped)
|
|
516
|
+
* ========================================================================== */
|
|
517
|
+
|
|
518
|
+
hx-form .form-type-switch {
|
|
519
|
+
display: flex;
|
|
520
|
+
flex-direction: column;
|
|
521
|
+
gap: var(--hx-space-1, 0.25rem);
|
|
522
|
+
font-family: var(--hx-font-family-sans, sans-serif);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
hx-form .form-type-switch .switch__control-row {
|
|
526
|
+
display: flex;
|
|
527
|
+
align-items: center;
|
|
528
|
+
gap: var(--hx-space-2, 0.5rem);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
hx-form .form-type-switch input[type='checkbox'] {
|
|
532
|
+
appearance: none;
|
|
533
|
+
-webkit-appearance: none;
|
|
534
|
+
-moz-appearance: none;
|
|
535
|
+
position: relative;
|
|
536
|
+
display: inline-flex;
|
|
537
|
+
align-items: center;
|
|
538
|
+
flex-shrink: 0;
|
|
539
|
+
width: var(--hx-switch-track-width-md, var(--hx-size-10, 2.5rem));
|
|
540
|
+
height: var(--hx-switch-track-height-md, var(--hx-size-5-5, 1.375rem));
|
|
541
|
+
margin: 0;
|
|
542
|
+
border: none;
|
|
543
|
+
border-radius: var(--hx-border-radius-full, 9999px);
|
|
544
|
+
background-color: var(--hx-switch-track-bg, var(--hx-color-neutral-300, #ced4da));
|
|
545
|
+
transition: background-color var(--hx-transition-fast, 150ms ease);
|
|
546
|
+
cursor: pointer;
|
|
547
|
+
background-image: none;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
hx-form .form-type-switch input[type='checkbox']::before {
|
|
551
|
+
content: '';
|
|
552
|
+
position: absolute;
|
|
553
|
+
top: 50%;
|
|
554
|
+
left: var(--hx-switch-thumb-offset, var(--hx-space-0-5, 0.125rem));
|
|
555
|
+
transform: translateY(-50%);
|
|
556
|
+
width: var(--hx-switch-thumb-size-md, var(--hx-size-4-5, 1.125rem));
|
|
557
|
+
height: var(--hx-switch-thumb-size-md, var(--hx-size-4-5, 1.125rem));
|
|
558
|
+
border-radius: var(--hx-border-radius-full, 9999px);
|
|
559
|
+
background-color: var(--hx-switch-thumb-bg, var(--hx-color-neutral-0, #ffffff));
|
|
560
|
+
box-shadow: var(--hx-switch-thumb-shadow, var(--hx-shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05)));
|
|
561
|
+
transition: transform var(--hx-transition-fast, 150ms ease);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
hx-form .form-type-switch input[type='checkbox']:checked {
|
|
565
|
+
background-color: var(--hx-switch-track-checked-bg, var(--hx-color-primary-500, #2563eb));
|
|
566
|
+
background-image: none;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
hx-form .form-type-switch input[type='checkbox']:checked::before {
|
|
570
|
+
transform: translateY(-50%)
|
|
571
|
+
translateX(var(--hx-switch-thumb-size-md, var(--hx-size-4-5, 1.125rem)));
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
hx-form .form-type-switch input[type='checkbox']:focus-visible {
|
|
575
|
+
outline: var(--hx-focus-ring-width, 2px) solid
|
|
576
|
+
var(--hx-switch-focus-ring-color, var(--hx-focus-ring-color, #2563eb));
|
|
577
|
+
outline-offset: var(--hx-focus-ring-offset, 2px);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
hx-form .form-type-switch input[type='checkbox']:disabled {
|
|
581
|
+
opacity: var(--hx-opacity-disabled, 0.5);
|
|
582
|
+
cursor: not-allowed;
|
|
583
|
+
pointer-events: none;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
hx-form .form-type-switch label {
|
|
587
|
+
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
588
|
+
font-weight: var(--hx-font-weight-medium, 500);
|
|
589
|
+
color: var(--hx-switch-label-color, var(--hx-color-neutral-700, #343a40));
|
|
590
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
591
|
+
cursor: pointer;
|
|
592
|
+
user-select: none;
|
|
593
|
+
-webkit-user-select: none;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/* Small */
|
|
597
|
+
hx-form .form-type-switch--sm input[type='checkbox'] {
|
|
598
|
+
width: var(--hx-switch-track-width-sm, var(--hx-size-8, 2rem));
|
|
599
|
+
height: var(--hx-switch-track-height-sm, var(--hx-size-4-5, 1.125rem));
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
hx-form .form-type-switch--sm input[type='checkbox']::before {
|
|
603
|
+
width: var(--hx-switch-thumb-size-sm, var(--hx-size-3-5, 0.875rem));
|
|
604
|
+
height: var(--hx-switch-thumb-size-sm, var(--hx-size-3-5, 0.875rem));
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
hx-form .form-type-switch--sm input[type='checkbox']:checked::before {
|
|
608
|
+
transform: translateY(-50%)
|
|
609
|
+
translateX(var(--hx-switch-thumb-size-sm, var(--hx-size-3-5, 0.875rem)));
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/* Large */
|
|
613
|
+
hx-form .form-type-switch--lg input[type='checkbox'] {
|
|
614
|
+
width: var(--hx-switch-track-width-lg, var(--hx-size-12, 3rem));
|
|
615
|
+
height: var(--hx-switch-track-height-lg, var(--hx-size-6-5, 1.625rem));
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
hx-form .form-type-switch--lg input[type='checkbox']::before {
|
|
619
|
+
width: var(--hx-switch-thumb-size-lg, var(--hx-size-5-5, 1.375rem));
|
|
620
|
+
height: var(--hx-switch-thumb-size-lg, var(--hx-size-5-5, 1.375rem));
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
hx-form .form-type-switch--lg input[type='checkbox']:checked::before {
|
|
624
|
+
transform: translateY(-50%)
|
|
625
|
+
translateX(var(--hx-switch-thumb-size-lg, var(--hx-size-5-5, 1.375rem)));
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/* ==========================================================================
|
|
629
|
+
* FORM LAYOUT (_form-layout.css scoped)
|
|
630
|
+
* ========================================================================== */
|
|
631
|
+
|
|
632
|
+
/* ─── Form Root ─── */
|
|
633
|
+
|
|
634
|
+
hx-form form {
|
|
635
|
+
display: flex;
|
|
636
|
+
flex-direction: column;
|
|
637
|
+
gap: var(--hx-form-gap, var(--hx-space-4, 1rem));
|
|
638
|
+
font-family: var(--hx-input-font-family, var(--hx-font-family-sans, sans-serif));
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/* ─── Fieldset ─── */
|
|
642
|
+
|
|
643
|
+
hx-form fieldset {
|
|
644
|
+
border: var(--hx-border-width-thin, 1px) solid var(--hx-color-neutral-200, #dee2e6);
|
|
645
|
+
border-radius: var(--hx-border-radius-md, 0.375rem);
|
|
646
|
+
padding: var(--hx-space-4, 1rem) var(--hx-space-4, 1rem) var(--hx-space-4, 1rem);
|
|
647
|
+
margin: 0;
|
|
648
|
+
display: flex;
|
|
649
|
+
flex-direction: column;
|
|
650
|
+
gap: var(--hx-space-4, 1rem);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/* ─── Legend ─── */
|
|
654
|
+
|
|
655
|
+
hx-form legend {
|
|
656
|
+
display: flex;
|
|
657
|
+
align-items: baseline;
|
|
658
|
+
gap: var(--hx-space-1, 0.25rem);
|
|
659
|
+
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
660
|
+
font-weight: var(--hx-font-weight-semibold, 600);
|
|
661
|
+
color: var(--hx-color-neutral-700, #343a40);
|
|
662
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
663
|
+
padding: 0 var(--hx-space-1, 0.25rem);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/* ─── Details / Collapsible Fieldset (Drupal) ─── */
|
|
667
|
+
|
|
668
|
+
hx-form details {
|
|
669
|
+
border: var(--hx-border-width-thin, 1px) solid var(--hx-color-neutral-200, #dee2e6);
|
|
670
|
+
border-radius: var(--hx-border-radius-md, 0.375rem);
|
|
671
|
+
padding: var(--hx-space-4, 1rem);
|
|
672
|
+
margin: 0;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
hx-form summary {
|
|
676
|
+
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
677
|
+
font-weight: var(--hx-font-weight-semibold, 600);
|
|
678
|
+
color: var(--hx-color-neutral-700, #343a40);
|
|
679
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
680
|
+
cursor: pointer;
|
|
681
|
+
padding: var(--hx-space-1, 0.25rem) 0;
|
|
682
|
+
user-select: none;
|
|
683
|
+
-webkit-user-select: none;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
hx-form summary:focus-visible {
|
|
687
|
+
outline: var(--hx-focus-ring-width, 2px) solid var(--hx-focus-ring-color, #2563eb);
|
|
688
|
+
outline-offset: var(--hx-focus-ring-offset, 2px);
|
|
689
|
+
border-radius: var(--hx-border-radius-sm, 0.25rem);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/* ─── Form Actions (button group) ─── */
|
|
693
|
+
|
|
694
|
+
hx-form .form-actions {
|
|
695
|
+
display: flex;
|
|
696
|
+
align-items: center;
|
|
697
|
+
gap: var(--hx-space-3, 0.75rem);
|
|
698
|
+
padding-top: var(--hx-space-4, 1rem);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
hx-form .form-actions--end {
|
|
702
|
+
justify-content: flex-end;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
hx-form .form-actions--between {
|
|
706
|
+
justify-content: space-between;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/* ─── Multi-Column Layout ─── */
|
|
710
|
+
|
|
711
|
+
hx-form .form-columns {
|
|
712
|
+
display: grid;
|
|
713
|
+
gap: var(--hx-space-4, 1rem);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
hx-form .form-columns--2 {
|
|
717
|
+
grid-template-columns: repeat(2, 1fr);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
hx-form .form-columns--3 {
|
|
721
|
+
grid-template-columns: repeat(3, 1fr);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
hx-form .form-columns--4 {
|
|
725
|
+
grid-template-columns: repeat(4, 1fr);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
@media (max-width: 640px) {
|
|
729
|
+
hx-form .form-columns--2,
|
|
730
|
+
hx-form .form-columns--3,
|
|
731
|
+
hx-form .form-columns--4 {
|
|
732
|
+
grid-template-columns: 1fr;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/* ─── Full-Width Form Item (spans all columns) ─── */
|
|
737
|
+
|
|
738
|
+
hx-form .form-item--full {
|
|
739
|
+
grid-column: 1 / -1;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/* ─── Inline Form Layout ─── */
|
|
743
|
+
|
|
744
|
+
hx-form .form-inline {
|
|
745
|
+
display: flex;
|
|
746
|
+
flex-wrap: wrap;
|
|
747
|
+
align-items: flex-end;
|
|
748
|
+
gap: var(--hx-space-3, 0.75rem);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
hx-form .form-inline .form-item {
|
|
752
|
+
flex: 1;
|
|
753
|
+
min-width: 0;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
hx-form .form-inline .form-item + .form-item {
|
|
757
|
+
margin-top: 0;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/* ─── Form Divider ─── */
|
|
761
|
+
|
|
762
|
+
hx-form .form-divider {
|
|
763
|
+
border: none;
|
|
764
|
+
border-top: var(--hx-border-width-thin, 1px) solid var(--hx-color-neutral-200, #dee2e6);
|
|
765
|
+
margin: var(--hx-space-2, 0.5rem) 0;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
/* ==========================================================================
|
|
769
|
+
* VALIDATION (_validation.css scoped)
|
|
770
|
+
* ========================================================================== */
|
|
771
|
+
|
|
772
|
+
/* ─── Error State on Field Wrapper ─── */
|
|
773
|
+
|
|
774
|
+
hx-form .form-item.error label,
|
|
775
|
+
hx-form .form-item.has-error label,
|
|
776
|
+
hx-form .form-item--error label {
|
|
777
|
+
color: var(--hx-input-error-color, var(--hx-color-error-500, #dc3545));
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
hx-form .form-item.error input[type='text'],
|
|
781
|
+
hx-form .form-item.error input[type='email'],
|
|
782
|
+
hx-form .form-item.error input[type='password'],
|
|
783
|
+
hx-form .form-item.error input[type='tel'],
|
|
784
|
+
hx-form .form-item.error input[type='url'],
|
|
785
|
+
hx-form .form-item.error input[type='search'],
|
|
786
|
+
hx-form .form-item.error input[type='number'],
|
|
787
|
+
hx-form .form-item.error textarea,
|
|
788
|
+
hx-form .form-item.error select,
|
|
789
|
+
hx-form .form-item.has-error input[type='text'],
|
|
790
|
+
hx-form .form-item.has-error input[type='email'],
|
|
791
|
+
hx-form .form-item.has-error input[type='password'],
|
|
792
|
+
hx-form .form-item.has-error input[type='tel'],
|
|
793
|
+
hx-form .form-item.has-error input[type='url'],
|
|
794
|
+
hx-form .form-item.has-error input[type='search'],
|
|
795
|
+
hx-form .form-item.has-error input[type='number'],
|
|
796
|
+
hx-form .form-item.has-error textarea,
|
|
797
|
+
hx-form .form-item.has-error select,
|
|
798
|
+
hx-form .form-item--error input[type='text'],
|
|
799
|
+
hx-form .form-item--error input[type='email'],
|
|
800
|
+
hx-form .form-item--error input[type='password'],
|
|
801
|
+
hx-form .form-item--error input[type='tel'],
|
|
802
|
+
hx-form .form-item--error input[type='url'],
|
|
803
|
+
hx-form .form-item--error input[type='search'],
|
|
804
|
+
hx-form .form-item--error input[type='number'],
|
|
805
|
+
hx-form .form-item--error textarea,
|
|
806
|
+
hx-form .form-item--error select {
|
|
807
|
+
border-color: var(--hx-input-error-color, var(--hx-color-error-500, #dc3545));
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
hx-form .form-item.error input[type='text']:focus,
|
|
811
|
+
hx-form .form-item.error input[type='email']:focus,
|
|
812
|
+
hx-form .form-item.error input[type='password']:focus,
|
|
813
|
+
hx-form .form-item.error input[type='tel']:focus,
|
|
814
|
+
hx-form .form-item.error input[type='url']:focus,
|
|
815
|
+
hx-form .form-item.error input[type='search']:focus,
|
|
816
|
+
hx-form .form-item.error input[type='number']:focus,
|
|
817
|
+
hx-form .form-item.error textarea:focus,
|
|
818
|
+
hx-form .form-item.error select:focus,
|
|
819
|
+
hx-form .form-item.has-error input[type='text']:focus,
|
|
820
|
+
hx-form .form-item.has-error input[type='email']:focus,
|
|
821
|
+
hx-form .form-item.has-error input[type='password']:focus,
|
|
822
|
+
hx-form .form-item.has-error input[type='tel']:focus,
|
|
823
|
+
hx-form .form-item.has-error input[type='url']:focus,
|
|
824
|
+
hx-form .form-item.has-error input[type='search']:focus,
|
|
825
|
+
hx-form .form-item.has-error input[type='number']:focus,
|
|
826
|
+
hx-form .form-item.has-error textarea:focus,
|
|
827
|
+
hx-form .form-item.has-error select:focus,
|
|
828
|
+
hx-form .form-item--error input[type='text']:focus,
|
|
829
|
+
hx-form .form-item--error input[type='email']:focus,
|
|
830
|
+
hx-form .form-item--error input[type='password']:focus,
|
|
831
|
+
hx-form .form-item--error input[type='tel']:focus,
|
|
832
|
+
hx-form .form-item--error input[type='url']:focus,
|
|
833
|
+
hx-form .form-item--error input[type='search']:focus,
|
|
834
|
+
hx-form .form-item--error input[type='number']:focus,
|
|
835
|
+
hx-form .form-item--error textarea:focus,
|
|
836
|
+
hx-form .form-item--error select:focus {
|
|
837
|
+
border-color: var(--hx-input-error-color, var(--hx-color-error-500, #dc3545));
|
|
838
|
+
box-shadow: 0 0 0 var(--hx-focus-ring-width, 2px)
|
|
839
|
+
color-mix(
|
|
840
|
+
in srgb,
|
|
841
|
+
var(--hx-input-error-color, var(--hx-color-error-500, #dc3545))
|
|
842
|
+
calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
843
|
+
transparent
|
|
844
|
+
);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
/* ─── Error State on Checkbox/Radio ─── */
|
|
848
|
+
|
|
849
|
+
hx-form .form-item.error input[type='checkbox'],
|
|
850
|
+
hx-form .form-item.has-error input[type='checkbox'],
|
|
851
|
+
hx-form .form-item--error input[type='checkbox'] {
|
|
852
|
+
border-color: var(--hx-checkbox-error-color, var(--hx-color-error-500, #dc3545));
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
hx-form .form-item.error input[type='checkbox']:checked,
|
|
856
|
+
hx-form .form-item.has-error input[type='checkbox']:checked,
|
|
857
|
+
hx-form .form-item--error input[type='checkbox']:checked {
|
|
858
|
+
background-color: var(--hx-checkbox-error-color, var(--hx-color-error-500, #dc3545));
|
|
859
|
+
border-color: var(--hx-checkbox-error-color, var(--hx-color-error-500, #dc3545));
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
hx-form .form-item.error input[type='radio'],
|
|
863
|
+
hx-form .form-item.has-error input[type='radio'],
|
|
864
|
+
hx-form .form-item--error input[type='radio'] {
|
|
865
|
+
border-color: var(--hx-color-error-500, #dc3545);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/* ─── Inline Error Message ─── */
|
|
869
|
+
|
|
870
|
+
hx-form .form-item__error-message,
|
|
871
|
+
hx-form .form-item .error-message,
|
|
872
|
+
hx-form .error-message {
|
|
873
|
+
font-size: var(--hx-font-size-xs, 0.75rem);
|
|
874
|
+
color: var(--hx-input-error-color, var(--hx-color-error-500, #dc3545));
|
|
875
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/* ─── Success State on Field Wrapper ─── */
|
|
879
|
+
|
|
880
|
+
hx-form .form-item.success label,
|
|
881
|
+
hx-form .form-item.has-success label,
|
|
882
|
+
hx-form .form-item--success label {
|
|
883
|
+
color: var(--hx-color-success-500, #198754);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
hx-form .form-item.success input[type='text'],
|
|
887
|
+
hx-form .form-item.success input[type='email'],
|
|
888
|
+
hx-form .form-item.success input[type='password'],
|
|
889
|
+
hx-form .form-item.success input[type='tel'],
|
|
890
|
+
hx-form .form-item.success input[type='url'],
|
|
891
|
+
hx-form .form-item.success input[type='search'],
|
|
892
|
+
hx-form .form-item.success input[type='number'],
|
|
893
|
+
hx-form .form-item.success textarea,
|
|
894
|
+
hx-form .form-item.success select,
|
|
895
|
+
hx-form .form-item.has-success input[type='text'],
|
|
896
|
+
hx-form .form-item.has-success input[type='email'],
|
|
897
|
+
hx-form .form-item.has-success input[type='password'],
|
|
898
|
+
hx-form .form-item.has-success input[type='tel'],
|
|
899
|
+
hx-form .form-item.has-success input[type='url'],
|
|
900
|
+
hx-form .form-item.has-success input[type='search'],
|
|
901
|
+
hx-form .form-item.has-success input[type='number'],
|
|
902
|
+
hx-form .form-item.has-success textarea,
|
|
903
|
+
hx-form .form-item.has-success select,
|
|
904
|
+
hx-form .form-item--success input[type='text'],
|
|
905
|
+
hx-form .form-item--success input[type='email'],
|
|
906
|
+
hx-form .form-item--success input[type='password'],
|
|
907
|
+
hx-form .form-item--success input[type='tel'],
|
|
908
|
+
hx-form .form-item--success input[type='url'],
|
|
909
|
+
hx-form .form-item--success input[type='search'],
|
|
910
|
+
hx-form .form-item--success input[type='number'],
|
|
911
|
+
hx-form .form-item--success textarea,
|
|
912
|
+
hx-form .form-item--success select {
|
|
913
|
+
border-color: var(--hx-color-success-500, #198754);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
hx-form .form-item.success input[type='text']:focus,
|
|
917
|
+
hx-form .form-item.success input[type='email']:focus,
|
|
918
|
+
hx-form .form-item.success input[type='password']:focus,
|
|
919
|
+
hx-form .form-item.success input[type='tel']:focus,
|
|
920
|
+
hx-form .form-item.success input[type='url']:focus,
|
|
921
|
+
hx-form .form-item.success input[type='search']:focus,
|
|
922
|
+
hx-form .form-item.success input[type='number']:focus,
|
|
923
|
+
hx-form .form-item.success textarea:focus,
|
|
924
|
+
hx-form .form-item.success select:focus,
|
|
925
|
+
hx-form .form-item.has-success input[type='text']:focus,
|
|
926
|
+
hx-form .form-item.has-success input[type='email']:focus,
|
|
927
|
+
hx-form .form-item.has-success input[type='password']:focus,
|
|
928
|
+
hx-form .form-item.has-success input[type='tel']:focus,
|
|
929
|
+
hx-form .form-item.has-success input[type='url']:focus,
|
|
930
|
+
hx-form .form-item.has-success input[type='search']:focus,
|
|
931
|
+
hx-form .form-item.has-success input[type='number']:focus,
|
|
932
|
+
hx-form .form-item.has-success textarea:focus,
|
|
933
|
+
hx-form .form-item.has-success select:focus,
|
|
934
|
+
hx-form .form-item--success input[type='text']:focus,
|
|
935
|
+
hx-form .form-item--success input[type='email']:focus,
|
|
936
|
+
hx-form .form-item--success input[type='password']:focus,
|
|
937
|
+
hx-form .form-item--success input[type='tel']:focus,
|
|
938
|
+
hx-form .form-item--success input[type='url']:focus,
|
|
939
|
+
hx-form .form-item--success input[type='search']:focus,
|
|
940
|
+
hx-form .form-item--success input[type='number']:focus,
|
|
941
|
+
hx-form .form-item--success textarea:focus,
|
|
942
|
+
hx-form .form-item--success select:focus {
|
|
943
|
+
border-color: var(--hx-color-success-500, #198754);
|
|
944
|
+
box-shadow: 0 0 0 var(--hx-focus-ring-width, 2px)
|
|
945
|
+
color-mix(
|
|
946
|
+
in srgb,
|
|
947
|
+
var(--hx-color-success-500, #198754) calc(var(--hx-focus-ring-opacity, 0.25) * 100%),
|
|
948
|
+
transparent
|
|
949
|
+
);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/* ─── Inline Success Message ─── */
|
|
953
|
+
|
|
954
|
+
hx-form .form-item__success-message,
|
|
955
|
+
hx-form .form-item .success-message,
|
|
956
|
+
hx-form .success-message {
|
|
957
|
+
font-size: var(--hx-font-size-xs, 0.75rem);
|
|
958
|
+
color: var(--hx-color-success-500, #198754);
|
|
959
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/* ─── Drupal System Messages ─── */
|
|
963
|
+
|
|
964
|
+
hx-form .messages--error {
|
|
965
|
+
border: var(--hx-border-width-thin, 1px) solid
|
|
966
|
+
var(--hx-input-error-color, var(--hx-color-error-500, #dc3545));
|
|
967
|
+
border-radius: var(--hx-border-radius-md, 0.375rem);
|
|
968
|
+
background-color: var(--hx-color-error-50, #fef2f2);
|
|
969
|
+
color: var(--hx-input-error-color, var(--hx-color-error-500, #dc3545));
|
|
970
|
+
padding: var(--hx-space-3, 0.75rem) var(--hx-space-4, 1rem);
|
|
971
|
+
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
972
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
hx-form .messages--status {
|
|
976
|
+
border: var(--hx-border-width-thin, 1px) solid var(--hx-color-success-500, #198754);
|
|
977
|
+
border-radius: var(--hx-border-radius-md, 0.375rem);
|
|
978
|
+
background-color: var(--hx-color-success-50, #f0fdf4);
|
|
979
|
+
color: var(--hx-color-success-500, #198754);
|
|
980
|
+
padding: var(--hx-space-3, 0.75rem) var(--hx-space-4, 1rem);
|
|
981
|
+
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
982
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
hx-form .messages--warning {
|
|
986
|
+
border: var(--hx-border-width-thin, 1px) solid var(--hx-color-warning-500, #ffc107);
|
|
987
|
+
border-radius: var(--hx-border-radius-md, 0.375rem);
|
|
988
|
+
background-color: var(--hx-color-warning-50, #fffbeb);
|
|
989
|
+
color: var(--hx-color-warning-700, #92400e);
|
|
990
|
+
padding: var(--hx-space-3, 0.75rem) var(--hx-space-4, 1rem);
|
|
991
|
+
font-size: var(--hx-font-size-sm, 0.875rem);
|
|
992
|
+
line-height: var(--hx-line-height-normal, 1.5);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
/* ==========================================================================
|
|
996
|
+
* FORCED-COLORS / HIGH CONTRAST MODE (P1-01)
|
|
997
|
+
*
|
|
998
|
+
* When box-shadow is used for focus rings, it is invisible in Windows
|
|
999
|
+
* High Contrast Mode. Restore a visible outline.
|
|
1000
|
+
* ========================================================================== */
|
|
1001
|
+
|
|
1002
|
+
@media (forced-colors: active) {
|
|
1003
|
+
hx-form input[type='text']:focus,
|
|
1004
|
+
hx-form input[type='email']:focus,
|
|
1005
|
+
hx-form input[type='password']:focus,
|
|
1006
|
+
hx-form input[type='tel']:focus,
|
|
1007
|
+
hx-form input[type='url']:focus,
|
|
1008
|
+
hx-form input[type='search']:focus,
|
|
1009
|
+
hx-form input[type='number']:focus,
|
|
1010
|
+
hx-form textarea:focus,
|
|
1011
|
+
hx-form select:focus {
|
|
1012
|
+
outline: 2px solid CanvasText;
|
|
1013
|
+
outline-offset: 2px;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
hx-form .hx-form-error-summary {
|
|
1017
|
+
border-color: LinkText;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
`, b = v;
|
|
1021
|
+
var y = Object.defineProperty, g = Object.getOwnPropertyDescriptor, a = (e, r, o, n) => {
|
|
1022
|
+
for (var t = n > 1 ? void 0 : n ? g(r, o) : r, s = e.length - 1, c; s >= 0; s--)
|
|
1023
|
+
(c = e[s]) && (t = (n ? c(r, o, t) : c(t)) || t);
|
|
1024
|
+
return n && t && y(r, o, t), t;
|
|
1025
|
+
};
|
|
1026
|
+
let i = class extends l {
|
|
1027
|
+
constructor() {
|
|
1028
|
+
super(...arguments), this._styles = new d(this, b, document), this._validationErrors = [], this.action = "", this.method = "post", this.novalidate = !1, this.name = "", this.enctype = "application/x-www-form-urlencoded", this._handleSubmit = (e) => {
|
|
1029
|
+
if (this.action)
|
|
1030
|
+
return;
|
|
1031
|
+
if (e.preventDefault(), !this.novalidate && !this.checkValidity()) {
|
|
1032
|
+
const n = this._collectValidationErrors();
|
|
1033
|
+
this._validationErrors = n, this._applyAriaInvalidFromValidity(), this.dispatchEvent(
|
|
1034
|
+
new CustomEvent("hx-invalid", {
|
|
1035
|
+
bubbles: !0,
|
|
1036
|
+
composed: !0,
|
|
1037
|
+
detail: { errors: n }
|
|
1038
|
+
})
|
|
1039
|
+
);
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
this._validationErrors = [], this._clearAriaInvalid();
|
|
1043
|
+
const r = this.getFormData(), o = {};
|
|
1044
|
+
for (const n of new Set(r.keys())) {
|
|
1045
|
+
const t = r.getAll(n);
|
|
1046
|
+
t.length === 1 && t[0] !== void 0 ? o[n] = t[0] : o[n] = t;
|
|
1047
|
+
}
|
|
1048
|
+
this.dispatchEvent(
|
|
1049
|
+
new CustomEvent("hx-submit", {
|
|
1050
|
+
bubbles: !0,
|
|
1051
|
+
composed: !0,
|
|
1052
|
+
detail: { valid: !0, values: o, formData: r }
|
|
1053
|
+
})
|
|
1054
|
+
);
|
|
1055
|
+
}, this._handleReset = () => {
|
|
1056
|
+
this._validationErrors = [], this._clearAriaInvalid(), this.dispatchEvent(
|
|
1057
|
+
new CustomEvent("hx-reset", {
|
|
1058
|
+
bubbles: !0,
|
|
1059
|
+
composed: !0
|
|
1060
|
+
})
|
|
1061
|
+
);
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
// ─── Light DOM ───
|
|
1065
|
+
createRenderRoot() {
|
|
1066
|
+
return this;
|
|
1067
|
+
}
|
|
1068
|
+
// ─── Lifecycle ───
|
|
1069
|
+
connectedCallback() {
|
|
1070
|
+
super.connectedCallback(), this.addEventListener("submit", this._handleSubmit), this.addEventListener("reset", this._handleReset);
|
|
1071
|
+
}
|
|
1072
|
+
disconnectedCallback() {
|
|
1073
|
+
super.disconnectedCallback(), this.removeEventListener("submit", this._handleSubmit), this.removeEventListener("reset", this._handleReset);
|
|
1074
|
+
}
|
|
1075
|
+
// ─── Public Methods ───
|
|
1076
|
+
/**
|
|
1077
|
+
* Checks the validity of all child form elements without showing
|
|
1078
|
+
* validation UI. Returns `true` if all elements are valid.
|
|
1079
|
+
*/
|
|
1080
|
+
checkValidity() {
|
|
1081
|
+
return this._getAllValidatableElements().every((r) => "checkValidity" in r && typeof r.checkValidity == "function" ? r.checkValidity() : !0);
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Checks validity and triggers the browser's constraint validation UI
|
|
1085
|
+
* on each invalid element. Returns `true` if all elements are valid.
|
|
1086
|
+
*/
|
|
1087
|
+
reportValidity() {
|
|
1088
|
+
const e = this._getAllValidatableElements();
|
|
1089
|
+
let r = !0;
|
|
1090
|
+
for (const o of e)
|
|
1091
|
+
"reportValidity" in o && typeof o.reportValidity == "function" && (o.reportValidity() || (r = !1));
|
|
1092
|
+
return r;
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Collects form data from all child form elements (native and hx-*).
|
|
1096
|
+
* Returns a `FormData` object.
|
|
1097
|
+
*/
|
|
1098
|
+
getFormData() {
|
|
1099
|
+
const e = this.querySelector("form");
|
|
1100
|
+
if (e)
|
|
1101
|
+
return new FormData(e);
|
|
1102
|
+
const r = new FormData(), o = this.getNativeFormElements();
|
|
1103
|
+
for (const n of o) {
|
|
1104
|
+
const t = n;
|
|
1105
|
+
t.name && (t instanceof HTMLInputElement && (t.type === "checkbox" || t.type === "radio") ? t.checked && r.append(t.name, t.value || "on") : r.append(t.name, t.value));
|
|
1106
|
+
}
|
|
1107
|
+
return r;
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Returns all child hx-* form components that implement the form
|
|
1111
|
+
* component contract (hx-text-input, hx-select, hx-checkbox, hx-textarea,
|
|
1112
|
+
* hx-radio-group, hx-switch).
|
|
1113
|
+
*
|
|
1114
|
+
* Note: This uses a hardcoded allowlist. When a new hx-* form component
|
|
1115
|
+
* is added, update this selector to include it.
|
|
1116
|
+
*/
|
|
1117
|
+
getFormElements() {
|
|
1118
|
+
return Array.from(
|
|
1119
|
+
this.querySelectorAll(
|
|
1120
|
+
"hx-text-input, hx-select, hx-checkbox, hx-textarea, hx-radio-group, hx-switch"
|
|
1121
|
+
)
|
|
1122
|
+
);
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Returns all native form elements (input, select, textarea, button)
|
|
1126
|
+
* found within this component's light DOM.
|
|
1127
|
+
*/
|
|
1128
|
+
getNativeFormElements() {
|
|
1129
|
+
return Array.from(
|
|
1130
|
+
this.querySelectorAll("input, select, textarea, button")
|
|
1131
|
+
);
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Programmatically sets server-side validation errors on the form.
|
|
1135
|
+
* Renders an error summary and sets `aria-invalid="true"` on named fields.
|
|
1136
|
+
*
|
|
1137
|
+
* Useful for surfacing Drupal server-side validation responses.
|
|
1138
|
+
*
|
|
1139
|
+
* @param errors - Array of `{name, message}` pairs matching field `name` attributes.
|
|
1140
|
+
*/
|
|
1141
|
+
setErrors(e) {
|
|
1142
|
+
this._validationErrors = e, this._applyAriaInvalidFromErrors(e);
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Programmatically sets a single field error. Merges with any existing errors.
|
|
1146
|
+
*
|
|
1147
|
+
* @param name - The `name` attribute of the field.
|
|
1148
|
+
* @param message - The error message to display.
|
|
1149
|
+
*/
|
|
1150
|
+
setFieldError(e, r) {
|
|
1151
|
+
const o = this._validationErrors.filter((n) => n.name !== e);
|
|
1152
|
+
this.setErrors([...o, { name: e, message: r }]);
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Clears all validation errors from the error summary and removes
|
|
1156
|
+
* `aria-invalid` from all fields.
|
|
1157
|
+
*/
|
|
1158
|
+
clearErrors() {
|
|
1159
|
+
this._clearAriaInvalid(), this._validationErrors = [];
|
|
1160
|
+
}
|
|
1161
|
+
// ─── Private Helpers ───
|
|
1162
|
+
/**
|
|
1163
|
+
* Returns all elements that support constraint validation, including
|
|
1164
|
+
* both native form elements and hx-* components with `checkValidity`.
|
|
1165
|
+
*/
|
|
1166
|
+
_getAllValidatableElements() {
|
|
1167
|
+
const e = Array.from(this.querySelectorAll("input, select, textarea")), r = this.getFormElements().filter(
|
|
1168
|
+
(o) => "checkValidity" in o && typeof o.checkValidity == "function"
|
|
1169
|
+
);
|
|
1170
|
+
return [...e, ...r];
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* Sets `aria-invalid="true"` on fields with errors, removes it from valid fields.
|
|
1174
|
+
*/
|
|
1175
|
+
_applyAriaInvalidFromErrors(e) {
|
|
1176
|
+
const r = new Set(e.map((n) => n.name)), o = this._getAllValidatableElements();
|
|
1177
|
+
for (const n of o) {
|
|
1178
|
+
const s = n.name ?? n.tagName.toLowerCase();
|
|
1179
|
+
r.has(s) ? n.setAttribute("aria-invalid", "true") : n.removeAttribute("aria-invalid");
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Sets `aria-invalid` based on native constraint validation state.
|
|
1184
|
+
*/
|
|
1185
|
+
_applyAriaInvalidFromValidity() {
|
|
1186
|
+
const e = this._getAllValidatableElements();
|
|
1187
|
+
for (const r of e)
|
|
1188
|
+
"validity" in r && (r.validity.valid ? r.removeAttribute("aria-invalid") : r.setAttribute("aria-invalid", "true"));
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* Removes `aria-invalid` from all validatable elements.
|
|
1192
|
+
*/
|
|
1193
|
+
_clearAriaInvalid() {
|
|
1194
|
+
const e = this._getAllValidatableElements();
|
|
1195
|
+
for (const r of e)
|
|
1196
|
+
r.removeAttribute("aria-invalid");
|
|
1197
|
+
}
|
|
1198
|
+
_collectValidationErrors() {
|
|
1199
|
+
const e = [], r = this._getAllValidatableElements();
|
|
1200
|
+
for (const o of r)
|
|
1201
|
+
if ("validity" in o && "validationMessage" in o) {
|
|
1202
|
+
const n = o;
|
|
1203
|
+
n.validity.valid || e.push({
|
|
1204
|
+
name: n.name || n.tagName.toLowerCase(),
|
|
1205
|
+
message: n.validationMessage
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
return e;
|
|
1209
|
+
}
|
|
1210
|
+
// ─── Render ───
|
|
1211
|
+
render() {
|
|
1212
|
+
const e = this._validationErrors.length > 0 ? m`
|
|
1213
|
+
<div
|
|
1214
|
+
class="hx-form-error-summary"
|
|
1215
|
+
role="alert"
|
|
1216
|
+
aria-live="assertive"
|
|
1217
|
+
aria-atomic="true"
|
|
1218
|
+
>
|
|
1219
|
+
<ul>
|
|
1220
|
+
${this._validationErrors.map(
|
|
1221
|
+
(r) => m`<li>${r.message || r.name}</li>`
|
|
1222
|
+
)}
|
|
1223
|
+
</ul>
|
|
1224
|
+
</div>
|
|
1225
|
+
` : f;
|
|
1226
|
+
return this.action ? m`
|
|
1227
|
+
${e}
|
|
1228
|
+
<form
|
|
1229
|
+
action=${this.action}
|
|
1230
|
+
method=${this.method}
|
|
1231
|
+
enctype=${this.enctype}
|
|
1232
|
+
name=${u(this.name || void 0)}
|
|
1233
|
+
?novalidate=${this.novalidate}
|
|
1234
|
+
>
|
|
1235
|
+
<slot></slot>
|
|
1236
|
+
</form>
|
|
1237
|
+
` : m`${e}<slot></slot>`;
|
|
1238
|
+
}
|
|
1239
|
+
};
|
|
1240
|
+
a([
|
|
1241
|
+
x()
|
|
1242
|
+
], i.prototype, "_validationErrors", 2);
|
|
1243
|
+
a([
|
|
1244
|
+
h({ type: String })
|
|
1245
|
+
], i.prototype, "action", 2);
|
|
1246
|
+
a([
|
|
1247
|
+
h({ type: String })
|
|
1248
|
+
], i.prototype, "method", 2);
|
|
1249
|
+
a([
|
|
1250
|
+
h({ type: Boolean })
|
|
1251
|
+
], i.prototype, "novalidate", 2);
|
|
1252
|
+
a([
|
|
1253
|
+
h({ type: String })
|
|
1254
|
+
], i.prototype, "name", 2);
|
|
1255
|
+
a([
|
|
1256
|
+
h({ type: String })
|
|
1257
|
+
], i.prototype, "enctype", 2);
|
|
1258
|
+
i = a([
|
|
1259
|
+
p("hx-form")
|
|
1260
|
+
], i);
|
|
1261
|
+
export {
|
|
1262
|
+
i as H
|
|
1263
|
+
};
|
|
1264
|
+
//# sourceMappingURL=hx-form-BJeLK34m.js.map
|