@und-ui/react 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +35 -2
- package/dist/generated/index.d.ts +121 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +122 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/jsx.d.ts +568 -0
- package/dist/generated/jsx.d.ts.map +1 -0
- package/dist/generated/jsx.js +2 -0
- package/dist/generated/jsx.js.map +1 -0
- package/dist/generated/shared.d.ts +20 -0
- package/dist/generated/shared.d.ts.map +1 -0
- package/dist/generated/shared.js +55 -0
- package/dist/generated/shared.js.map +1 -0
- package/dist/generated/und-accordion.d.ts +11 -0
- package/dist/generated/und-accordion.d.ts.map +1 -0
- package/dist/generated/und-accordion.js +11 -0
- package/dist/generated/und-accordion.js.map +1 -0
- package/dist/generated/und-alert.d.ts +20 -0
- package/dist/generated/und-alert.d.ts.map +1 -0
- package/dist/generated/und-alert.js +16 -0
- package/dist/generated/und-alert.js.map +1 -0
- package/dist/generated/und-app-shell.d.ts +24 -0
- package/dist/generated/und-app-shell.d.ts.map +1 -0
- package/dist/generated/und-app-shell.js +16 -0
- package/dist/generated/und-app-shell.js.map +1 -0
- package/dist/generated/und-aspect-ratio.d.ts +13 -0
- package/dist/generated/und-aspect-ratio.d.ts.map +1 -0
- package/dist/generated/und-aspect-ratio.js +11 -0
- package/dist/generated/und-aspect-ratio.js.map +1 -0
- package/dist/generated/und-avatar-group.d.ts +17 -0
- package/dist/generated/und-avatar-group.d.ts.map +1 -0
- package/dist/generated/und-avatar-group.js +11 -0
- package/dist/generated/und-avatar-group.js.map +1 -0
- package/dist/generated/und-avatar.d.ts +27 -0
- package/dist/generated/und-avatar.d.ts.map +1 -0
- package/dist/generated/und-avatar.js +11 -0
- package/dist/generated/und-avatar.js.map +1 -0
- package/dist/generated/und-badge.d.ts +17 -0
- package/dist/generated/und-badge.d.ts.map +1 -0
- package/dist/generated/und-badge.js +11 -0
- package/dist/generated/und-badge.js.map +1 -0
- package/dist/generated/und-banner.d.ts +24 -0
- package/dist/generated/und-banner.d.ts.map +1 -0
- package/dist/generated/und-banner.js +16 -0
- package/dist/generated/und-banner.js.map +1 -0
- package/dist/generated/und-blockquote.d.ts +11 -0
- package/dist/generated/und-blockquote.d.ts.map +1 -0
- package/dist/generated/und-blockquote.js +11 -0
- package/dist/generated/und-blockquote.js.map +1 -0
- package/dist/generated/und-bottom-sheet.d.ts +52 -0
- package/dist/generated/und-bottom-sheet.d.ts.map +1 -0
- package/dist/generated/und-bottom-sheet.js +19 -0
- package/dist/generated/und-bottom-sheet.js.map +1 -0
- package/dist/generated/und-breadcrumb-item.d.ts +13 -0
- package/dist/generated/und-breadcrumb-item.d.ts.map +1 -0
- package/dist/generated/und-breadcrumb-item.js +11 -0
- package/dist/generated/und-breadcrumb-item.js.map +1 -0
- package/dist/generated/und-breadcrumb.d.ts +11 -0
- package/dist/generated/und-breadcrumb.d.ts.map +1 -0
- package/dist/generated/und-breadcrumb.js +11 -0
- package/dist/generated/und-breadcrumb.js.map +1 -0
- package/dist/generated/und-button-group.d.ts +15 -0
- package/dist/generated/und-button-group.d.ts.map +1 -0
- package/dist/generated/und-button-group.js +11 -0
- package/dist/generated/und-button-group.js.map +1 -0
- package/dist/generated/und-button.d.ts +54 -0
- package/dist/generated/und-button.d.ts.map +1 -0
- package/dist/generated/und-button.js +16 -0
- package/dist/generated/und-button.js.map +1 -0
- package/dist/generated/und-calendar.d.ts +41 -0
- package/dist/generated/und-calendar.d.ts.map +1 -0
- package/dist/generated/und-calendar.js +17 -0
- package/dist/generated/und-calendar.js.map +1 -0
- package/dist/generated/und-card.d.ts +19 -0
- package/dist/generated/und-card.d.ts.map +1 -0
- package/dist/generated/und-card.js +11 -0
- package/dist/generated/und-card.js.map +1 -0
- package/dist/generated/und-carousel.d.ts +36 -0
- package/dist/generated/und-carousel.d.ts.map +1 -0
- package/dist/generated/und-carousel.js +16 -0
- package/dist/generated/und-carousel.js.map +1 -0
- package/dist/generated/und-center.d.ts +15 -0
- package/dist/generated/und-center.d.ts.map +1 -0
- package/dist/generated/und-center.js +11 -0
- package/dist/generated/und-center.js.map +1 -0
- package/dist/generated/und-chat-composer.d.ts +38 -0
- package/dist/generated/und-chat-composer.d.ts.map +1 -0
- package/dist/generated/und-chat-composer.js +17 -0
- package/dist/generated/und-chat-composer.js.map +1 -0
- package/dist/generated/und-chat-layout.d.ts +22 -0
- package/dist/generated/und-chat-layout.d.ts.map +1 -0
- package/dist/generated/und-chat-layout.js +16 -0
- package/dist/generated/und-chat-layout.js.map +1 -0
- package/dist/generated/und-chat-message.d.ts +39 -0
- package/dist/generated/und-chat-message.d.ts.map +1 -0
- package/dist/generated/und-chat-message.js +17 -0
- package/dist/generated/und-chat-message.js.map +1 -0
- package/dist/generated/und-checkbox-list.d.ts +26 -0
- package/dist/generated/und-checkbox-list.d.ts.map +1 -0
- package/dist/generated/und-checkbox-list.js +22 -0
- package/dist/generated/und-checkbox-list.js.map +1 -0
- package/dist/generated/und-checkbox.d.ts +36 -0
- package/dist/generated/und-checkbox.d.ts.map +1 -0
- package/dist/generated/und-checkbox.js +23 -0
- package/dist/generated/und-checkbox.js.map +1 -0
- package/dist/generated/und-citation.d.ts +19 -0
- package/dist/generated/und-citation.d.ts.map +1 -0
- package/dist/generated/und-citation.js +11 -0
- package/dist/generated/und-citation.js.map +1 -0
- package/dist/generated/und-clickable-card.d.ts +21 -0
- package/dist/generated/und-clickable-card.d.ts.map +1 -0
- package/dist/generated/und-clickable-card.js +11 -0
- package/dist/generated/und-clickable-card.js.map +1 -0
- package/dist/generated/und-code-block.d.ts +38 -0
- package/dist/generated/und-code-block.d.ts.map +1 -0
- package/dist/generated/und-code-block.js +17 -0
- package/dist/generated/und-code-block.js.map +1 -0
- package/dist/generated/und-code.d.ts +9 -0
- package/dist/generated/und-code.d.ts.map +1 -0
- package/dist/generated/und-code.js +11 -0
- package/dist/generated/und-code.js.map +1 -0
- package/dist/generated/und-collapsible.d.ts +16 -0
- package/dist/generated/und-collapsible.d.ts.map +1 -0
- package/dist/generated/und-collapsible.js +16 -0
- package/dist/generated/und-collapsible.js.map +1 -0
- package/dist/generated/und-combobox.d.ts +56 -0
- package/dist/generated/und-combobox.d.ts.map +1 -0
- package/dist/generated/und-combobox.js +25 -0
- package/dist/generated/und-combobox.js.map +1 -0
- package/dist/generated/und-command-palette.d.ts +66 -0
- package/dist/generated/und-command-palette.d.ts.map +1 -0
- package/dist/generated/und-command-palette.js +20 -0
- package/dist/generated/und-command-palette.js.map +1 -0
- package/dist/generated/und-context-menu.d.ts +29 -0
- package/dist/generated/und-context-menu.d.ts.map +1 -0
- package/dist/generated/und-context-menu.js +17 -0
- package/dist/generated/und-context-menu.js.map +1 -0
- package/dist/generated/und-date-input.d.ts +58 -0
- package/dist/generated/und-date-input.d.ts.map +1 -0
- package/dist/generated/und-date-input.js +24 -0
- package/dist/generated/und-date-input.js.map +1 -0
- package/dist/generated/und-date-range-input.d.ts +59 -0
- package/dist/generated/und-date-range-input.d.ts.map +1 -0
- package/dist/generated/und-date-range-input.js +18 -0
- package/dist/generated/und-date-range-input.js.map +1 -0
- package/dist/generated/und-date-time-input.d.ts +46 -0
- package/dist/generated/und-date-time-input.d.ts.map +1 -0
- package/dist/generated/und-date-time-input.js +16 -0
- package/dist/generated/und-date-time-input.js.map +1 -0
- package/dist/generated/und-dialog.d.ts +39 -0
- package/dist/generated/und-dialog.d.ts.map +1 -0
- package/dist/generated/und-dialog.js +18 -0
- package/dist/generated/und-dialog.js.map +1 -0
- package/dist/generated/und-divider.d.ts +13 -0
- package/dist/generated/und-divider.d.ts.map +1 -0
- package/dist/generated/und-divider.js +11 -0
- package/dist/generated/und-divider.js.map +1 -0
- package/dist/generated/und-drawer.d.ts +41 -0
- package/dist/generated/und-drawer.d.ts.map +1 -0
- package/dist/generated/und-drawer.js +18 -0
- package/dist/generated/und-drawer.js.map +1 -0
- package/dist/generated/und-empty-state.d.ts +13 -0
- package/dist/generated/und-empty-state.d.ts.map +1 -0
- package/dist/generated/und-empty-state.js +11 -0
- package/dist/generated/und-empty-state.js.map +1 -0
- package/dist/generated/und-file-input.d.ts +36 -0
- package/dist/generated/und-file-input.d.ts.map +1 -0
- package/dist/generated/und-file-input.js +17 -0
- package/dist/generated/und-file-input.js.map +1 -0
- package/dist/generated/und-form-field.d.ts +19 -0
- package/dist/generated/und-form-field.d.ts.map +1 -0
- package/dist/generated/und-form-field.js +11 -0
- package/dist/generated/und-form-field.js.map +1 -0
- package/dist/generated/und-form-layout.d.ts +11 -0
- package/dist/generated/und-form-layout.d.ts.map +1 -0
- package/dist/generated/und-form-layout.js +11 -0
- package/dist/generated/und-form-layout.js.map +1 -0
- package/dist/generated/und-grid-item.d.ts +13 -0
- package/dist/generated/und-grid-item.d.ts.map +1 -0
- package/dist/generated/und-grid-item.js +11 -0
- package/dist/generated/und-grid-item.js.map +1 -0
- package/dist/generated/und-grid.d.ts +19 -0
- package/dist/generated/und-grid.d.ts.map +1 -0
- package/dist/generated/und-grid.js +11 -0
- package/dist/generated/und-grid.js.map +1 -0
- package/dist/generated/und-heading.d.ts +15 -0
- package/dist/generated/und-heading.d.ts.map +1 -0
- package/dist/generated/und-heading.js +11 -0
- package/dist/generated/und-heading.js.map +1 -0
- package/dist/generated/und-hover-card.d.ts +31 -0
- package/dist/generated/und-hover-card.d.ts.map +1 -0
- package/dist/generated/und-hover-card.js +16 -0
- package/dist/generated/und-hover-card.js.map +1 -0
- package/dist/generated/und-icon-button.d.ts +54 -0
- package/dist/generated/und-icon-button.d.ts.map +1 -0
- package/dist/generated/und-icon-button.js +16 -0
- package/dist/generated/und-icon-button.js.map +1 -0
- package/dist/generated/und-icon.d.ts +19 -0
- package/dist/generated/und-icon.d.ts.map +1 -0
- package/dist/generated/und-icon.js +11 -0
- package/dist/generated/und-icon.js.map +1 -0
- package/dist/generated/und-info-tip.d.ts +21 -0
- package/dist/generated/und-info-tip.d.ts.map +1 -0
- package/dist/generated/und-info-tip.js +16 -0
- package/dist/generated/und-info-tip.js.map +1 -0
- package/dist/generated/und-input-group.d.ts +58 -0
- package/dist/generated/und-input-group.d.ts.map +1 -0
- package/dist/generated/und-input-group.js +23 -0
- package/dist/generated/und-input-group.js.map +1 -0
- package/dist/generated/und-kbd.d.ts +9 -0
- package/dist/generated/und-kbd.d.ts.map +1 -0
- package/dist/generated/und-kbd.js +11 -0
- package/dist/generated/und-kbd.js.map +1 -0
- package/dist/generated/und-lightbox.d.ts +61 -0
- package/dist/generated/und-lightbox.d.ts.map +1 -0
- package/dist/generated/und-lightbox.js +19 -0
- package/dist/generated/und-lightbox.js.map +1 -0
- package/dist/generated/und-link.d.ts +23 -0
- package/dist/generated/und-link.d.ts.map +1 -0
- package/dist/generated/und-link.js +11 -0
- package/dist/generated/und-link.js.map +1 -0
- package/dist/generated/und-list-item.d.ts +10 -0
- package/dist/generated/und-list-item.d.ts.map +1 -0
- package/dist/generated/und-list-item.js +11 -0
- package/dist/generated/und-list-item.js.map +1 -0
- package/dist/generated/und-list.d.ts +13 -0
- package/dist/generated/und-list.d.ts.map +1 -0
- package/dist/generated/und-list.js +11 -0
- package/dist/generated/und-list.js.map +1 -0
- package/dist/generated/und-markdown.d.ts +23 -0
- package/dist/generated/und-markdown.d.ts.map +1 -0
- package/dist/generated/und-markdown.js +11 -0
- package/dist/generated/und-markdown.js.map +1 -0
- package/dist/generated/und-menu-group.d.ts +11 -0
- package/dist/generated/und-menu-group.d.ts.map +1 -0
- package/dist/generated/und-menu-group.js +11 -0
- package/dist/generated/und-menu-group.js.map +1 -0
- package/dist/generated/und-menu-item.d.ts +21 -0
- package/dist/generated/und-menu-item.d.ts.map +1 -0
- package/dist/generated/und-menu-item.js +11 -0
- package/dist/generated/und-menu-item.js.map +1 -0
- package/dist/generated/und-menu-separator.d.ts +9 -0
- package/dist/generated/und-menu-separator.d.ts.map +1 -0
- package/dist/generated/und-menu-separator.js +11 -0
- package/dist/generated/und-menu-separator.js.map +1 -0
- package/dist/generated/und-menu.d.ts +25 -0
- package/dist/generated/und-menu.d.ts.map +1 -0
- package/dist/generated/und-menu.js +17 -0
- package/dist/generated/und-menu.js.map +1 -0
- package/dist/generated/und-metadata-item.d.ts +11 -0
- package/dist/generated/und-metadata-item.d.ts.map +1 -0
- package/dist/generated/und-metadata-item.js +11 -0
- package/dist/generated/und-metadata-item.js.map +1 -0
- package/dist/generated/und-metadata-list.d.ts +13 -0
- package/dist/generated/und-metadata-list.d.ts.map +1 -0
- package/dist/generated/und-metadata-list.js +11 -0
- package/dist/generated/und-metadata-list.js.map +1 -0
- package/dist/generated/und-mobile-nav.d.ts +22 -0
- package/dist/generated/und-mobile-nav.d.ts.map +1 -0
- package/dist/generated/und-mobile-nav.js +16 -0
- package/dist/generated/und-mobile-nav.js.map +1 -0
- package/dist/generated/und-more-menu.d.ts +27 -0
- package/dist/generated/und-more-menu.d.ts.map +1 -0
- package/dist/generated/und-more-menu.js +17 -0
- package/dist/generated/und-more-menu.js.map +1 -0
- package/dist/generated/und-multi-select.d.ts +46 -0
- package/dist/generated/und-multi-select.d.ts.map +1 -0
- package/dist/generated/und-multi-select.js +24 -0
- package/dist/generated/und-multi-select.js.map +1 -0
- package/dist/generated/und-number-input.d.ts +60 -0
- package/dist/generated/und-number-input.d.ts.map +1 -0
- package/dist/generated/und-number-input.js +24 -0
- package/dist/generated/und-number-input.js.map +1 -0
- package/dist/generated/und-outline.d.ts +28 -0
- package/dist/generated/und-outline.d.ts.map +1 -0
- package/dist/generated/und-outline.js +16 -0
- package/dist/generated/und-outline.js.map +1 -0
- package/dist/generated/und-overflow-list.d.ts +16 -0
- package/dist/generated/und-overflow-list.d.ts.map +1 -0
- package/dist/generated/und-overflow-list.js +16 -0
- package/dist/generated/und-overflow-list.js.map +1 -0
- package/dist/generated/und-pagination.d.ts +30 -0
- package/dist/generated/und-pagination.d.ts.map +1 -0
- package/dist/generated/und-pagination.js +16 -0
- package/dist/generated/und-pagination.js.map +1 -0
- package/dist/generated/und-popover.d.ts +31 -0
- package/dist/generated/und-popover.d.ts.map +1 -0
- package/dist/generated/und-popover.js +18 -0
- package/dist/generated/und-popover.js.map +1 -0
- package/dist/generated/und-progress.d.ts +23 -0
- package/dist/generated/und-progress.d.ts.map +1 -0
- package/dist/generated/und-progress.js +11 -0
- package/dist/generated/und-progress.js.map +1 -0
- package/dist/generated/und-radio-group.d.ts +32 -0
- package/dist/generated/und-radio-group.d.ts.map +1 -0
- package/dist/generated/und-radio-group.js +23 -0
- package/dist/generated/und-radio-group.js.map +1 -0
- package/dist/generated/und-radio-list.d.ts +32 -0
- package/dist/generated/und-radio-list.d.ts.map +1 -0
- package/dist/generated/und-radio-list.js +23 -0
- package/dist/generated/und-radio-list.js.map +1 -0
- package/dist/generated/und-radio.d.ts +19 -0
- package/dist/generated/und-radio.d.ts.map +1 -0
- package/dist/generated/und-radio.js +11 -0
- package/dist/generated/und-radio.js.map +1 -0
- package/dist/generated/und-resize-handle.d.ts +30 -0
- package/dist/generated/und-resize-handle.d.ts.map +1 -0
- package/dist/generated/und-resize-handle.js +16 -0
- package/dist/generated/und-resize-handle.js.map +1 -0
- package/dist/generated/und-scroll-area.d.ts +13 -0
- package/dist/generated/und-scroll-area.d.ts.map +1 -0
- package/dist/generated/und-scroll-area.js +11 -0
- package/dist/generated/und-scroll-area.js.map +1 -0
- package/dist/generated/und-section.d.ts +15 -0
- package/dist/generated/und-section.d.ts.map +1 -0
- package/dist/generated/und-section.js +11 -0
- package/dist/generated/und-section.js.map +1 -0
- package/dist/generated/und-segmented-control-item.d.ts +19 -0
- package/dist/generated/und-segmented-control-item.d.ts.map +1 -0
- package/dist/generated/und-segmented-control-item.js +11 -0
- package/dist/generated/und-segmented-control-item.js.map +1 -0
- package/dist/generated/und-segmented-control.d.ts +32 -0
- package/dist/generated/und-segmented-control.d.ts.map +1 -0
- package/dist/generated/und-segmented-control.js +23 -0
- package/dist/generated/und-segmented-control.js.map +1 -0
- package/dist/generated/und-select.d.ts +38 -0
- package/dist/generated/und-select.d.ts.map +1 -0
- package/dist/generated/und-select.js +24 -0
- package/dist/generated/und-select.js.map +1 -0
- package/dist/generated/und-selectable-card.d.ts +36 -0
- package/dist/generated/und-selectable-card.d.ts.map +1 -0
- package/dist/generated/und-selectable-card.js +23 -0
- package/dist/generated/und-selectable-card.js.map +1 -0
- package/dist/generated/und-side-nav-heading.d.ts +11 -0
- package/dist/generated/und-side-nav-heading.d.ts.map +1 -0
- package/dist/generated/und-side-nav-heading.js +11 -0
- package/dist/generated/und-side-nav-heading.js.map +1 -0
- package/dist/generated/und-side-nav-item.d.ts +21 -0
- package/dist/generated/und-side-nav-item.d.ts.map +1 -0
- package/dist/generated/und-side-nav-item.js +11 -0
- package/dist/generated/und-side-nav-item.js.map +1 -0
- package/dist/generated/und-side-nav-section.d.ts +18 -0
- package/dist/generated/und-side-nav-section.d.ts.map +1 -0
- package/dist/generated/und-side-nav-section.js +16 -0
- package/dist/generated/und-side-nav-section.js.map +1 -0
- package/dist/generated/und-side-nav.d.ts +22 -0
- package/dist/generated/und-side-nav.d.ts.map +1 -0
- package/dist/generated/und-side-nav.js +16 -0
- package/dist/generated/und-side-nav.js.map +1 -0
- package/dist/generated/und-skeleton.d.ts +13 -0
- package/dist/generated/und-skeleton.d.ts.map +1 -0
- package/dist/generated/und-skeleton.js +11 -0
- package/dist/generated/und-skeleton.js.map +1 -0
- package/dist/generated/und-slider.d.ts +50 -0
- package/dist/generated/und-slider.d.ts.map +1 -0
- package/dist/generated/und-slider.js +23 -0
- package/dist/generated/und-slider.js.map +1 -0
- package/dist/generated/und-spinner.d.ts +15 -0
- package/dist/generated/und-spinner.d.ts.map +1 -0
- package/dist/generated/und-spinner.js +11 -0
- package/dist/generated/und-spinner.js.map +1 -0
- package/dist/generated/und-stack.d.ts +21 -0
- package/dist/generated/und-stack.d.ts.map +1 -0
- package/dist/generated/und-stack.js +11 -0
- package/dist/generated/und-stack.js.map +1 -0
- package/dist/generated/und-status-dot.d.ts +13 -0
- package/dist/generated/und-status-dot.d.ts.map +1 -0
- package/dist/generated/und-status-dot.js +11 -0
- package/dist/generated/und-status-dot.js.map +1 -0
- package/dist/generated/und-step.d.ts +22 -0
- package/dist/generated/und-step.d.ts.map +1 -0
- package/dist/generated/und-step.js +11 -0
- package/dist/generated/und-step.js.map +1 -0
- package/dist/generated/und-stepper.d.ts +22 -0
- package/dist/generated/und-stepper.d.ts.map +1 -0
- package/dist/generated/und-stepper.js +16 -0
- package/dist/generated/und-stepper.js.map +1 -0
- package/dist/generated/und-switch.d.ts +34 -0
- package/dist/generated/und-switch.d.ts.map +1 -0
- package/dist/generated/und-switch.js +23 -0
- package/dist/generated/und-switch.js.map +1 -0
- package/dist/generated/und-tab-menu.d.ts +13 -0
- package/dist/generated/und-tab-menu.d.ts.map +1 -0
- package/dist/generated/und-tab-menu.js +11 -0
- package/dist/generated/und-tab-menu.js.map +1 -0
- package/dist/generated/und-tab-panel.d.ts +11 -0
- package/dist/generated/und-tab-panel.d.ts.map +1 -0
- package/dist/generated/und-tab-panel.js +11 -0
- package/dist/generated/und-tab-panel.js.map +1 -0
- package/dist/generated/und-tab.d.ts +15 -0
- package/dist/generated/und-tab.d.ts.map +1 -0
- package/dist/generated/und-tab.js +11 -0
- package/dist/generated/und-tab.js.map +1 -0
- package/dist/generated/und-table.d.ts +40 -0
- package/dist/generated/und-table.d.ts.map +1 -0
- package/dist/generated/und-table.js +19 -0
- package/dist/generated/und-table.js.map +1 -0
- package/dist/generated/und-tabs.d.ts +20 -0
- package/dist/generated/und-tabs.d.ts.map +1 -0
- package/dist/generated/und-tabs.js +16 -0
- package/dist/generated/und-tabs.js.map +1 -0
- package/dist/generated/und-text-field.d.ts +58 -0
- package/dist/generated/und-text-field.d.ts.map +1 -0
- package/dist/generated/und-text-field.js +23 -0
- package/dist/generated/und-text-field.js.map +1 -0
- package/dist/generated/und-text.d.ts +19 -0
- package/dist/generated/und-text.d.ts.map +1 -0
- package/dist/generated/und-text.js +11 -0
- package/dist/generated/und-text.js.map +1 -0
- package/dist/generated/und-textarea.d.ts +48 -0
- package/dist/generated/und-textarea.d.ts.map +1 -0
- package/dist/generated/und-textarea.js +23 -0
- package/dist/generated/und-textarea.js.map +1 -0
- package/dist/generated/und-thumbnail.d.ts +24 -0
- package/dist/generated/und-thumbnail.d.ts.map +1 -0
- package/dist/generated/und-thumbnail.js +17 -0
- package/dist/generated/und-thumbnail.js.map +1 -0
- package/dist/generated/und-time-input.d.ts +54 -0
- package/dist/generated/und-time-input.d.ts.map +1 -0
- package/dist/generated/und-time-input.js +24 -0
- package/dist/generated/und-time-input.js.map +1 -0
- package/dist/generated/und-timer.d.ts +26 -0
- package/dist/generated/und-timer.d.ts.map +1 -0
- package/dist/generated/und-timer.js +17 -0
- package/dist/generated/und-timer.js.map +1 -0
- package/dist/generated/und-timestamp.d.ts +27 -0
- package/dist/generated/und-timestamp.d.ts.map +1 -0
- package/dist/generated/und-timestamp.js +11 -0
- package/dist/generated/und-timestamp.js.map +1 -0
- package/dist/generated/und-toast.d.ts +26 -0
- package/dist/generated/und-toast.d.ts.map +1 -0
- package/dist/generated/und-toast.js +16 -0
- package/dist/generated/und-toast.js.map +1 -0
- package/dist/generated/und-toaster.d.ts +15 -0
- package/dist/generated/und-toaster.d.ts.map +1 -0
- package/dist/generated/und-toaster.js +11 -0
- package/dist/generated/und-toaster.js.map +1 -0
- package/dist/generated/und-toggle-button-group.d.ts +28 -0
- package/dist/generated/und-toggle-button-group.d.ts.map +1 -0
- package/dist/generated/und-toggle-button-group.js +16 -0
- package/dist/generated/und-toggle-button-group.js.map +1 -0
- package/dist/generated/und-token.d.ts +20 -0
- package/dist/generated/und-token.d.ts.map +1 -0
- package/dist/generated/und-token.js +16 -0
- package/dist/generated/und-token.js.map +1 -0
- package/dist/generated/und-tokenizer.d.ts +62 -0
- package/dist/generated/und-tokenizer.d.ts.map +1 -0
- package/dist/generated/und-tokenizer.js +25 -0
- package/dist/generated/und-tokenizer.js.map +1 -0
- package/dist/generated/und-toolbar.d.ts +13 -0
- package/dist/generated/und-toolbar.d.ts.map +1 -0
- package/dist/generated/und-toolbar.js +11 -0
- package/dist/generated/und-toolbar.js.map +1 -0
- package/dist/generated/und-tooltip.d.ts +29 -0
- package/dist/generated/und-tooltip.d.ts.map +1 -0
- package/dist/generated/und-tooltip.js +16 -0
- package/dist/generated/und-tooltip.js.map +1 -0
- package/dist/generated/und-top-nav-item.d.ts +13 -0
- package/dist/generated/und-top-nav-item.d.ts.map +1 -0
- package/dist/generated/und-top-nav-item.js +11 -0
- package/dist/generated/und-top-nav-item.js.map +1 -0
- package/dist/generated/und-top-nav-menu.d.ts +20 -0
- package/dist/generated/und-top-nav-menu.d.ts.map +1 -0
- package/dist/generated/und-top-nav-menu.js +16 -0
- package/dist/generated/und-top-nav-menu.js.map +1 -0
- package/dist/generated/und-top-nav.d.ts +11 -0
- package/dist/generated/und-top-nav.d.ts.map +1 -0
- package/dist/generated/und-top-nav.js +11 -0
- package/dist/generated/und-top-nav.js.map +1 -0
- package/dist/generated/und-tree-item.d.ts +32 -0
- package/dist/generated/und-tree-item.d.ts.map +1 -0
- package/dist/generated/und-tree-item.js +18 -0
- package/dist/generated/und-tree-item.js.map +1 -0
- package/dist/generated/und-tree-list.d.ts +18 -0
- package/dist/generated/und-tree-list.d.ts.map +1 -0
- package/dist/generated/und-tree-list.js +16 -0
- package/dist/generated/und-tree-list.js.map +1 -0
- package/dist/generated/und-typeahead.d.ts +58 -0
- package/dist/generated/und-typeahead.d.ts.map +1 -0
- package/dist/generated/und-typeahead.js +25 -0
- package/dist/generated/und-typeahead.js.map +1 -0
- package/dist/generated/und-visually-hidden.d.ts +11 -0
- package/dist/generated/und-visually-hidden.d.ts.map +1 -0
- package/dist/generated/und-visually-hidden.js +11 -0
- package/dist/generated/und-visually-hidden.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +65 -3
- package/src/generated/index.ts +123 -0
- package/src/generated/jsx.ts +500 -0
- package/src/generated/shared.ts +67 -0
- package/src/generated/und-accordion.ts +19 -0
- package/src/generated/und-alert.ts +32 -0
- package/src/generated/und-app-shell.ts +34 -0
- package/src/generated/und-aspect-ratio.ts +21 -0
- package/src/generated/und-avatar-group.ts +25 -0
- package/src/generated/und-avatar.ts +35 -0
- package/src/generated/und-badge.ts +25 -0
- package/src/generated/und-banner.ts +36 -0
- package/src/generated/und-blockquote.ts +19 -0
- package/src/generated/und-bottom-sheet.ts +61 -0
- package/src/generated/und-breadcrumb-item.ts +21 -0
- package/src/generated/und-breadcrumb.ts +19 -0
- package/src/generated/und-button-group.ts +23 -0
- package/src/generated/und-button.ts +64 -0
- package/src/generated/und-calendar.ts +51 -0
- package/src/generated/und-card.ts +27 -0
- package/src/generated/und-carousel.ts +45 -0
- package/src/generated/und-center.ts +23 -0
- package/src/generated/und-chat-composer.ts +49 -0
- package/src/generated/und-chat-layout.ts +32 -0
- package/src/generated/und-chat-message.ts +47 -0
- package/src/generated/und-checkbox-list.ts +44 -0
- package/src/generated/und-checkbox.ts +55 -0
- package/src/generated/und-citation.ts +27 -0
- package/src/generated/und-clickable-card.ts +29 -0
- package/src/generated/und-code-block.ts +51 -0
- package/src/generated/und-code.ts +17 -0
- package/src/generated/und-collapsible.ts +26 -0
- package/src/generated/und-combobox.ts +77 -0
- package/src/generated/und-command-palette.ts +74 -0
- package/src/generated/und-context-menu.ts +37 -0
- package/src/generated/und-date-input.ts +76 -0
- package/src/generated/und-date-range-input.ts +70 -0
- package/src/generated/und-date-time-input.ts +56 -0
- package/src/generated/und-dialog.ts +50 -0
- package/src/generated/und-divider.ts +21 -0
- package/src/generated/und-drawer.ts +52 -0
- package/src/generated/und-empty-state.ts +21 -0
- package/src/generated/und-file-input.ts +49 -0
- package/src/generated/und-form-field.ts +27 -0
- package/src/generated/und-form-layout.ts +19 -0
- package/src/generated/und-grid-item.ts +21 -0
- package/src/generated/und-grid.ts +27 -0
- package/src/generated/und-heading.ts +23 -0
- package/src/generated/und-hover-card.ts +40 -0
- package/src/generated/und-icon-button.ts +64 -0
- package/src/generated/und-icon.ts +27 -0
- package/src/generated/und-info-tip.ts +30 -0
- package/src/generated/und-input-group.ts +77 -0
- package/src/generated/und-kbd.ts +17 -0
- package/src/generated/und-lightbox.ts +71 -0
- package/src/generated/und-link.ts +31 -0
- package/src/generated/und-list-item.ts +18 -0
- package/src/generated/und-list.ts +21 -0
- package/src/generated/und-markdown.ts +31 -0
- package/src/generated/und-menu-group.ts +19 -0
- package/src/generated/und-menu-item.ts +29 -0
- package/src/generated/und-menu-separator.ts +17 -0
- package/src/generated/und-menu.ts +33 -0
- package/src/generated/und-metadata-item.ts +19 -0
- package/src/generated/und-metadata-list.ts +21 -0
- package/src/generated/und-mobile-nav.ts +34 -0
- package/src/generated/und-more-menu.ts +35 -0
- package/src/generated/und-multi-select.ts +66 -0
- package/src/generated/und-number-input.ts +80 -0
- package/src/generated/und-outline.ts +40 -0
- package/src/generated/und-overflow-list.ts +28 -0
- package/src/generated/und-pagination.ts +42 -0
- package/src/generated/und-popover.ts +42 -0
- package/src/generated/und-progress.ts +31 -0
- package/src/generated/und-radio-group.ts +51 -0
- package/src/generated/und-radio-list.ts +51 -0
- package/src/generated/und-radio.ts +27 -0
- package/src/generated/und-resize-handle.ts +42 -0
- package/src/generated/und-scroll-area.ts +21 -0
- package/src/generated/und-section.ts +23 -0
- package/src/generated/und-segmented-control-item.ts +27 -0
- package/src/generated/und-segmented-control.ts +51 -0
- package/src/generated/und-select.ts +58 -0
- package/src/generated/und-selectable-card.ts +55 -0
- package/src/generated/und-side-nav-heading.ts +19 -0
- package/src/generated/und-side-nav-item.ts +29 -0
- package/src/generated/und-side-nav-section.ts +30 -0
- package/src/generated/und-side-nav.ts +34 -0
- package/src/generated/und-skeleton.ts +21 -0
- package/src/generated/und-slider.ts +69 -0
- package/src/generated/und-spinner.ts +23 -0
- package/src/generated/und-stack.ts +29 -0
- package/src/generated/und-status-dot.ts +21 -0
- package/src/generated/und-step.ts +30 -0
- package/src/generated/und-stepper.ts +34 -0
- package/src/generated/und-switch.ts +53 -0
- package/src/generated/und-tab-menu.ts +21 -0
- package/src/generated/und-tab-panel.ts +19 -0
- package/src/generated/und-tab.ts +23 -0
- package/src/generated/und-table.ts +55 -0
- package/src/generated/und-tabs.ts +32 -0
- package/src/generated/und-text-field.ts +77 -0
- package/src/generated/und-text.ts +27 -0
- package/src/generated/und-textarea.ts +67 -0
- package/src/generated/und-thumbnail.ts +37 -0
- package/src/generated/und-time-input.ts +72 -0
- package/src/generated/und-timer.ts +39 -0
- package/src/generated/und-timestamp.ts +35 -0
- package/src/generated/und-toast.ts +36 -0
- package/src/generated/und-toaster.ts +23 -0
- package/src/generated/und-toggle-button-group.ts +40 -0
- package/src/generated/und-token.ts +32 -0
- package/src/generated/und-tokenizer.ts +81 -0
- package/src/generated/und-toolbar.ts +21 -0
- package/src/generated/und-tooltip.ts +38 -0
- package/src/generated/und-top-nav-item.ts +21 -0
- package/src/generated/und-top-nav-menu.ts +30 -0
- package/src/generated/und-top-nav.ts +19 -0
- package/src/generated/und-tree-item.ts +42 -0
- package/src/generated/und-tree-list.ts +30 -0
- package/src/generated/und-typeahead.ts +79 -0
- package/src/generated/und-visually-hidden.ts +19 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
// GENERATED FILE. DO NOT EDIT.
|
|
2
|
+
// Source: @und-ui/core custom-elements.json, via tools/codegen/wrappers.mjs.
|
|
3
|
+
// Run `pnpm codegen` (or `pnpm build`) after changing a component.
|
|
4
|
+
// Types for the raw `<und-*>` tags in TSX. The wrappers are still preferred:
|
|
5
|
+
// they map `onUndOpenChange` to `und-open-change` and support controlled props.
|
|
6
|
+
import type { HTMLAttributes } from 'react';
|
|
7
|
+
import type { UndAccordion as UndAccordionElement, UndAlert as UndAlertElement, UndAppShell as UndAppShellElement, UndAspectRatio as UndAspectRatioElement, UndAvatar as UndAvatarElement, UndAvatarGroup as UndAvatarGroupElement, UndBadge as UndBadgeElement, UndBanner as UndBannerElement, UndBlockquote as UndBlockquoteElement, UndBottomSheet as UndBottomSheetElement, UndBreadcrumb as UndBreadcrumbElement, UndBreadcrumbItem as UndBreadcrumbItemElement, UndButton as UndButtonElement, UndButtonGroup as UndButtonGroupElement, UndCalendar as UndCalendarElement, UndCard as UndCardElement, UndCarousel as UndCarouselElement, UndCenter as UndCenterElement, UndChatComposer as UndChatComposerElement, UndChatLayout as UndChatLayoutElement, UndChatMessage as UndChatMessageElement, UndCheckbox as UndCheckboxElement, UndCheckboxList as UndCheckboxListElement, UndCitation as UndCitationElement, UndClickableCard as UndClickableCardElement, UndCode as UndCodeElement, UndCodeBlock as UndCodeBlockElement, UndCollapsible as UndCollapsibleElement, UndCombobox as UndComboboxElement, UndCommandPalette as UndCommandPaletteElement, UndContextMenu as UndContextMenuElement, UndDateInput as UndDateInputElement, UndDateRangeInput as UndDateRangeInputElement, UndDateTimeInput as UndDateTimeInputElement, UndDialog as UndDialogElement, UndDivider as UndDividerElement, UndDrawer as UndDrawerElement, UndEmptyState as UndEmptyStateElement, UndFileInput as UndFileInputElement, UndFormField as UndFormFieldElement, UndFormLayout as UndFormLayoutElement, UndGrid as UndGridElement, UndGridItem as UndGridItemElement, UndHeading as UndHeadingElement, UndHoverCard as UndHoverCardElement, UndIcon as UndIconElement, UndIconButton as UndIconButtonElement, UndInfoTip as UndInfoTipElement, UndInputGroup as UndInputGroupElement, UndKbd as UndKbdElement, UndLightbox as UndLightboxElement, UndLink as UndLinkElement, UndList as UndListElement, UndListItem as UndListItemElement, UndMarkdown as UndMarkdownElement, UndMenu as UndMenuElement, UndMenuGroup as UndMenuGroupElement, UndMenuItem as UndMenuItemElement, UndMenuSeparator as UndMenuSeparatorElement, UndMetadataItem as UndMetadataItemElement, UndMetadataList as UndMetadataListElement, UndMobileNav as UndMobileNavElement, UndMoreMenu as UndMoreMenuElement, UndMultiSelect as UndMultiSelectElement, UndNumberInput as UndNumberInputElement, UndOutline as UndOutlineElement, UndOverflowList as UndOverflowListElement, UndPagination as UndPaginationElement, UndPopover as UndPopoverElement, UndProgress as UndProgressElement, UndRadio as UndRadioElement, UndRadioGroup as UndRadioGroupElement, UndRadioList as UndRadioListElement, UndResizeHandle as UndResizeHandleElement, UndScrollArea as UndScrollAreaElement, UndSection as UndSectionElement, UndSegmentedControl as UndSegmentedControlElement, UndSegmentedControlItem as UndSegmentedControlItemElement, UndSelect as UndSelectElement, UndSelectableCard as UndSelectableCardElement, UndSideNav as UndSideNavElement, UndSideNavHeading as UndSideNavHeadingElement, UndSideNavItem as UndSideNavItemElement, UndSideNavSection as UndSideNavSectionElement, UndSkeleton as UndSkeletonElement, UndSlider as UndSliderElement, UndSpinner as UndSpinnerElement, UndStack as UndStackElement, UndStatusDot as UndStatusDotElement, UndStep as UndStepElement, UndStepper as UndStepperElement, UndSwitch as UndSwitchElement, UndTab as UndTabElement, UndTabMenu as UndTabMenuElement, UndTabPanel as UndTabPanelElement, UndTable as UndTableElement, UndTabs as UndTabsElement, UndText as UndTextElement, UndTextField as UndTextFieldElement, UndTextarea as UndTextareaElement, UndThumbnail as UndThumbnailElement, UndTimeInput as UndTimeInputElement, UndTimer as UndTimerElement, UndTimestamp as UndTimestampElement, UndToast as UndToastElement, UndToaster as UndToasterElement, UndToggleButtonGroup as UndToggleButtonGroupElement, UndToken as UndTokenElement, UndTokenizer as UndTokenizerElement, UndToolbar as UndToolbarElement, UndTooltip as UndTooltipElement, UndTopNav as UndTopNavElement, UndTopNavItem as UndTopNavItemElement, UndTopNavMenu as UndTopNavMenuElement, UndTreeItem as UndTreeItemElement, UndTreeList as UndTreeListElement, UndTypeahead as UndTypeaheadElement, UndVisuallyHidden as UndVisuallyHiddenElement } from '@und-ui/core';
|
|
8
|
+
import type { UndEvent } from './shared.js';
|
|
9
|
+
import type { UndAccordionProps } from './und-accordion.js';
|
|
10
|
+
import type { UndAlertProps } from './und-alert.js';
|
|
11
|
+
import type { UndAppShellProps } from './und-app-shell.js';
|
|
12
|
+
import type { UndAspectRatioProps } from './und-aspect-ratio.js';
|
|
13
|
+
import type { UndAvatarProps } from './und-avatar.js';
|
|
14
|
+
import type { UndAvatarGroupProps } from './und-avatar-group.js';
|
|
15
|
+
import type { UndBadgeProps } from './und-badge.js';
|
|
16
|
+
import type { UndBannerProps } from './und-banner.js';
|
|
17
|
+
import type { UndBlockquoteProps } from './und-blockquote.js';
|
|
18
|
+
import type { UndBottomSheetProps } from './und-bottom-sheet.js';
|
|
19
|
+
import type { UndBreadcrumbProps } from './und-breadcrumb.js';
|
|
20
|
+
import type { UndBreadcrumbItemProps } from './und-breadcrumb-item.js';
|
|
21
|
+
import type { UndButtonProps } from './und-button.js';
|
|
22
|
+
import type { UndButtonGroupProps } from './und-button-group.js';
|
|
23
|
+
import type { UndCalendarProps } from './und-calendar.js';
|
|
24
|
+
import type { UndCardProps } from './und-card.js';
|
|
25
|
+
import type { UndCarouselProps } from './und-carousel.js';
|
|
26
|
+
import type { UndCenterProps } from './und-center.js';
|
|
27
|
+
import type { UndChatComposerProps } from './und-chat-composer.js';
|
|
28
|
+
import type { UndChatLayoutProps } from './und-chat-layout.js';
|
|
29
|
+
import type { UndChatMessageProps } from './und-chat-message.js';
|
|
30
|
+
import type { UndCheckboxProps } from './und-checkbox.js';
|
|
31
|
+
import type { UndCheckboxListProps } from './und-checkbox-list.js';
|
|
32
|
+
import type { UndCitationProps } from './und-citation.js';
|
|
33
|
+
import type { UndClickableCardProps } from './und-clickable-card.js';
|
|
34
|
+
import type { UndCodeProps } from './und-code.js';
|
|
35
|
+
import type { UndCodeBlockProps } from './und-code-block.js';
|
|
36
|
+
import type { UndCollapsibleProps } from './und-collapsible.js';
|
|
37
|
+
import type { UndComboboxProps } from './und-combobox.js';
|
|
38
|
+
import type { UndCommandPaletteProps } from './und-command-palette.js';
|
|
39
|
+
import type { UndContextMenuProps } from './und-context-menu.js';
|
|
40
|
+
import type { UndDateInputProps } from './und-date-input.js';
|
|
41
|
+
import type { UndDateRangeInputProps } from './und-date-range-input.js';
|
|
42
|
+
import type { UndDateTimeInputProps } from './und-date-time-input.js';
|
|
43
|
+
import type { UndDialogProps } from './und-dialog.js';
|
|
44
|
+
import type { UndDividerProps } from './und-divider.js';
|
|
45
|
+
import type { UndDrawerProps } from './und-drawer.js';
|
|
46
|
+
import type { UndEmptyStateProps } from './und-empty-state.js';
|
|
47
|
+
import type { UndFileInputProps } from './und-file-input.js';
|
|
48
|
+
import type { UndFormFieldProps } from './und-form-field.js';
|
|
49
|
+
import type { UndFormLayoutProps } from './und-form-layout.js';
|
|
50
|
+
import type { UndGridProps } from './und-grid.js';
|
|
51
|
+
import type { UndGridItemProps } from './und-grid-item.js';
|
|
52
|
+
import type { UndHeadingProps } from './und-heading.js';
|
|
53
|
+
import type { UndHoverCardProps } from './und-hover-card.js';
|
|
54
|
+
import type { UndIconProps } from './und-icon.js';
|
|
55
|
+
import type { UndIconButtonProps } from './und-icon-button.js';
|
|
56
|
+
import type { UndInfoTipProps } from './und-info-tip.js';
|
|
57
|
+
import type { UndInputGroupProps } from './und-input-group.js';
|
|
58
|
+
import type { UndKbdProps } from './und-kbd.js';
|
|
59
|
+
import type { UndLightboxProps } from './und-lightbox.js';
|
|
60
|
+
import type { UndLinkProps } from './und-link.js';
|
|
61
|
+
import type { UndListProps } from './und-list.js';
|
|
62
|
+
import type { UndListItemProps } from './und-list-item.js';
|
|
63
|
+
import type { UndMarkdownProps } from './und-markdown.js';
|
|
64
|
+
import type { UndMenuProps } from './und-menu.js';
|
|
65
|
+
import type { UndMenuGroupProps } from './und-menu-group.js';
|
|
66
|
+
import type { UndMenuItemProps } from './und-menu-item.js';
|
|
67
|
+
import type { UndMenuSeparatorProps } from './und-menu-separator.js';
|
|
68
|
+
import type { UndMetadataItemProps } from './und-metadata-item.js';
|
|
69
|
+
import type { UndMetadataListProps } from './und-metadata-list.js';
|
|
70
|
+
import type { UndMobileNavProps } from './und-mobile-nav.js';
|
|
71
|
+
import type { UndMoreMenuProps } from './und-more-menu.js';
|
|
72
|
+
import type { UndMultiSelectProps } from './und-multi-select.js';
|
|
73
|
+
import type { UndNumberInputProps } from './und-number-input.js';
|
|
74
|
+
import type { UndOutlineProps } from './und-outline.js';
|
|
75
|
+
import type { UndOverflowListProps } from './und-overflow-list.js';
|
|
76
|
+
import type { UndPaginationProps } from './und-pagination.js';
|
|
77
|
+
import type { UndPopoverProps } from './und-popover.js';
|
|
78
|
+
import type { UndProgressProps } from './und-progress.js';
|
|
79
|
+
import type { UndRadioProps } from './und-radio.js';
|
|
80
|
+
import type { UndRadioGroupProps } from './und-radio-group.js';
|
|
81
|
+
import type { UndRadioListProps } from './und-radio-list.js';
|
|
82
|
+
import type { UndResizeHandleProps } from './und-resize-handle.js';
|
|
83
|
+
import type { UndScrollAreaProps } from './und-scroll-area.js';
|
|
84
|
+
import type { UndSectionProps } from './und-section.js';
|
|
85
|
+
import type { UndSegmentedControlProps } from './und-segmented-control.js';
|
|
86
|
+
import type { UndSegmentedControlItemProps } from './und-segmented-control-item.js';
|
|
87
|
+
import type { UndSelectProps } from './und-select.js';
|
|
88
|
+
import type { UndSelectableCardProps } from './und-selectable-card.js';
|
|
89
|
+
import type { UndSideNavProps } from './und-side-nav.js';
|
|
90
|
+
import type { UndSideNavHeadingProps } from './und-side-nav-heading.js';
|
|
91
|
+
import type { UndSideNavItemProps } from './und-side-nav-item.js';
|
|
92
|
+
import type { UndSideNavSectionProps } from './und-side-nav-section.js';
|
|
93
|
+
import type { UndSkeletonProps } from './und-skeleton.js';
|
|
94
|
+
import type { UndSliderProps } from './und-slider.js';
|
|
95
|
+
import type { UndSpinnerProps } from './und-spinner.js';
|
|
96
|
+
import type { UndStackProps } from './und-stack.js';
|
|
97
|
+
import type { UndStatusDotProps } from './und-status-dot.js';
|
|
98
|
+
import type { UndStepProps } from './und-step.js';
|
|
99
|
+
import type { UndStepperProps } from './und-stepper.js';
|
|
100
|
+
import type { UndSwitchProps } from './und-switch.js';
|
|
101
|
+
import type { UndTabProps } from './und-tab.js';
|
|
102
|
+
import type { UndTabMenuProps } from './und-tab-menu.js';
|
|
103
|
+
import type { UndTabPanelProps } from './und-tab-panel.js';
|
|
104
|
+
import type { UndTableProps } from './und-table.js';
|
|
105
|
+
import type { UndTabsProps } from './und-tabs.js';
|
|
106
|
+
import type { UndTextProps } from './und-text.js';
|
|
107
|
+
import type { UndTextFieldProps } from './und-text-field.js';
|
|
108
|
+
import type { UndTextareaProps } from './und-textarea.js';
|
|
109
|
+
import type { UndThumbnailProps } from './und-thumbnail.js';
|
|
110
|
+
import type { UndTimeInputProps } from './und-time-input.js';
|
|
111
|
+
import type { UndTimerProps } from './und-timer.js';
|
|
112
|
+
import type { UndTimestampProps } from './und-timestamp.js';
|
|
113
|
+
import type { UndToastProps } from './und-toast.js';
|
|
114
|
+
import type { UndToasterProps } from './und-toaster.js';
|
|
115
|
+
import type { UndToggleButtonGroupProps } from './und-toggle-button-group.js';
|
|
116
|
+
import type { UndTokenProps } from './und-token.js';
|
|
117
|
+
import type { UndTokenizerProps } from './und-tokenizer.js';
|
|
118
|
+
import type { UndToolbarProps } from './und-toolbar.js';
|
|
119
|
+
import type { UndTooltipProps } from './und-tooltip.js';
|
|
120
|
+
import type { UndTopNavProps } from './und-top-nav.js';
|
|
121
|
+
import type { UndTopNavItemProps } from './und-top-nav-item.js';
|
|
122
|
+
import type { UndTopNavMenuProps } from './und-top-nav-menu.js';
|
|
123
|
+
import type { UndTreeItemProps } from './und-tree-item.js';
|
|
124
|
+
import type { UndTreeListProps } from './und-tree-list.js';
|
|
125
|
+
import type { UndTypeaheadProps } from './und-typeahead.js';
|
|
126
|
+
import type { UndVisuallyHiddenProps } from './und-visually-hidden.js';
|
|
127
|
+
|
|
128
|
+
/** Props of every raw `<und-*>` tag, merged into `React.JSX.IntrinsicElements`. */
|
|
129
|
+
export interface UndIntrinsicElements {
|
|
130
|
+
'und-accordion': UndAccordionProps;
|
|
131
|
+
'und-alert': Omit<UndAlertProps, 'onUndDismiss'> & {
|
|
132
|
+
/** Before the alert hides after the dismiss button is pressed. Cancelable: call `preventDefault()` to keep it visible. */
|
|
133
|
+
'onund-dismiss'?: (event: UndEvent<CustomEvent<unknown>, UndAlertElement>) => void;
|
|
134
|
+
};
|
|
135
|
+
'und-app-shell': Omit<UndAppShellProps, 'onUndPanelToggle'> & {
|
|
136
|
+
/** The panel was opened or closed on a narrow layout. */
|
|
137
|
+
'onund-panel-toggle'?: (event: UndEvent<CustomEvent<{open: boolean}>, UndAppShellElement>) => void;
|
|
138
|
+
};
|
|
139
|
+
'und-aspect-ratio': UndAspectRatioProps;
|
|
140
|
+
'und-avatar': UndAvatarProps;
|
|
141
|
+
'und-avatar-group': UndAvatarGroupProps;
|
|
142
|
+
'und-badge': UndBadgeProps;
|
|
143
|
+
'und-banner': Omit<UndBannerProps, 'onUndDismiss'> & {
|
|
144
|
+
/** Before the banner hides after the dismiss button is pressed. Cancelable: call `preventDefault()` to keep it visible. */
|
|
145
|
+
'onund-dismiss'?: (event: UndEvent<CustomEvent<unknown>, UndBannerElement>) => void;
|
|
146
|
+
};
|
|
147
|
+
'und-blockquote': UndBlockquoteProps;
|
|
148
|
+
'und-bottom-sheet': Omit<UndBottomSheetProps, 'onUndSnapChange' | 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> & {
|
|
149
|
+
/** The sheet settled on another snap point. */
|
|
150
|
+
'onund-snap-change'?: (event: UndEvent<CustomEvent<{ index: number; fraction: number }>, UndBottomSheetElement>) => void;
|
|
151
|
+
/** The user asked to open or close the sheet (`reason` is `swipe` for a swipe down). Cancelable. */
|
|
152
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndBottomSheetElement>) => void;
|
|
153
|
+
/** The sheet opened and its entry animation finished. */
|
|
154
|
+
'onund-after-open'?: (event: UndEvent<CustomEvent<undefined>, UndBottomSheetElement>) => void;
|
|
155
|
+
/** The sheet closed and its exit animation finished. */
|
|
156
|
+
'onund-after-close'?: (event: UndEvent<CustomEvent<undefined>, UndBottomSheetElement>) => void;
|
|
157
|
+
};
|
|
158
|
+
'und-breadcrumb': UndBreadcrumbProps;
|
|
159
|
+
'und-breadcrumb-item': UndBreadcrumbItemProps;
|
|
160
|
+
'und-button': Omit<UndButtonProps, 'onUndPressedChange'> & {
|
|
161
|
+
/** A toggle button is about to change its pressed state. Cancelable: `preventDefault()` keeps the current state (controlled mode). */
|
|
162
|
+
'onund-pressed-change'?: (event: UndEvent<CustomEvent<{ pressed: boolean }>, UndButtonElement>) => void;
|
|
163
|
+
};
|
|
164
|
+
'und-button-group': UndButtonGroupProps;
|
|
165
|
+
'und-calendar': Omit<UndCalendarProps, 'onUndChange' | 'onUndViewChange'> & {
|
|
166
|
+
/** A date was chosen. In range mode it fires after each of the two clicks. */
|
|
167
|
+
'onund-change'?: (event: UndEvent<CustomEvent<unknown>, UndCalendarElement>) => void;
|
|
168
|
+
/** The first visible month changed. */
|
|
169
|
+
'onund-view-change'?: (event: UndEvent<CustomEvent<{ year: number; month: number }>, UndCalendarElement>) => void;
|
|
170
|
+
};
|
|
171
|
+
'und-card': UndCardProps;
|
|
172
|
+
'und-carousel': Omit<UndCarouselProps, 'onUndSlideChange'> & {
|
|
173
|
+
/** The current slide changed. */
|
|
174
|
+
'onund-slide-change'?: (event: UndEvent<CustomEvent<{ index: number, count: number }>, UndCarouselElement>) => void;
|
|
175
|
+
};
|
|
176
|
+
'und-center': UndCenterProps;
|
|
177
|
+
'und-chat-composer': Omit<UndChatComposerProps, 'onUndSend' | 'onUndStop'> & {
|
|
178
|
+
/** The user sent a message (cancelable). */
|
|
179
|
+
'onund-send'?: (event: UndEvent<CustomEvent<{ value: string }>, UndChatComposerElement>) => void;
|
|
180
|
+
/** The user pressed the stop-generation button. */
|
|
181
|
+
'onund-stop'?: (event: UndEvent<CustomEvent<unknown>, UndChatComposerElement>) => void;
|
|
182
|
+
};
|
|
183
|
+
'und-chat-layout': Omit<UndChatLayoutProps, 'onUndScrollState'> & {
|
|
184
|
+
/** The reader scrolled away from or back to the bottom. */
|
|
185
|
+
'onund-scroll-state'?: (event: UndEvent<CustomEvent<{ pinned: boolean }>, UndChatLayoutElement>) => void;
|
|
186
|
+
};
|
|
187
|
+
'und-chat-message': Omit<UndChatMessageProps, 'onUndMessageStreaming' | 'onUndMessageComplete'> & {
|
|
188
|
+
/** `streaming` changed. */
|
|
189
|
+
'onund-message-streaming'?: (event: UndEvent<CustomEvent<{ streaming: boolean }>, UndChatMessageElement>) => void;
|
|
190
|
+
/** Streaming finished. */
|
|
191
|
+
'onund-message-complete'?: (event: UndEvent<CustomEvent<{ author: string, text: string }>, UndChatMessageElement>) => void;
|
|
192
|
+
};
|
|
193
|
+
'und-checkbox': Omit<UndCheckboxProps, 'onInput' | 'onChange'> &
|
|
194
|
+
Pick<HTMLAttributes<UndCheckboxElement>, 'onInput' | 'onChange'>;
|
|
195
|
+
'und-checkbox-list': Omit<UndCheckboxListProps, 'onChange'> &
|
|
196
|
+
Pick<HTMLAttributes<UndCheckboxListElement>, 'onChange'>;
|
|
197
|
+
'und-citation': UndCitationProps;
|
|
198
|
+
'und-clickable-card': UndClickableCardProps;
|
|
199
|
+
'und-code': UndCodeProps;
|
|
200
|
+
'und-code-block': Omit<UndCodeBlockProps, 'onUndCopy' | 'onUndWrapChange'> & {
|
|
201
|
+
/** The copy button was used; `success` tells whether the clipboard accepted the text. */
|
|
202
|
+
'onund-copy'?: (event: UndEvent<CustomEvent<unknown>, UndCodeBlockElement>) => void;
|
|
203
|
+
/** The wrap toggle changed `wrap`. */
|
|
204
|
+
'onund-wrap-change'?: (event: UndEvent<CustomEvent<unknown>, UndCodeBlockElement>) => void;
|
|
205
|
+
};
|
|
206
|
+
'und-collapsible': Omit<UndCollapsibleProps, 'onUndToggle'> & {
|
|
207
|
+
/** The section opened or closed. */
|
|
208
|
+
'onund-toggle'?: (event: UndEvent<CustomEvent<{ open: boolean }>, UndCollapsibleElement>) => void;
|
|
209
|
+
};
|
|
210
|
+
'und-combobox': Omit<UndComboboxProps, 'onChange' | 'onInput' | 'onUndSearch' | 'onUndOpenChange'> &
|
|
211
|
+
Pick<HTMLAttributes<UndComboboxElement>, 'onChange' | 'onInput'> & {
|
|
212
|
+
/** The user typed; use it to load options asynchronously. */
|
|
213
|
+
'onund-search'?: (event: UndEvent<CustomEvent<unknown>, UndComboboxElement>) => void;
|
|
214
|
+
/** The listbox opened or closed. */
|
|
215
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<unknown>, UndComboboxElement>) => void;
|
|
216
|
+
};
|
|
217
|
+
'und-command-palette': Omit<UndCommandPaletteProps, 'onUndSelect' | 'onUndQueryChange' | 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> & {
|
|
218
|
+
/** A command was chosen. Cancelable: `preventDefault()` keeps the palette open. */
|
|
219
|
+
'onund-select'?: (event: UndEvent<CustomEvent<{ value: string; label: string }>, UndCommandPaletteElement>) => void;
|
|
220
|
+
/** The search text changed. */
|
|
221
|
+
'onund-query-change'?: (event: UndEvent<CustomEvent<{ query: string }>, UndCommandPaletteElement>) => void;
|
|
222
|
+
/** The user asked to open or close the palette. Cancelable. */
|
|
223
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndCommandPaletteElement>) => void;
|
|
224
|
+
/** The dialog opened and its entry animation finished. */
|
|
225
|
+
'onund-after-open'?: (event: UndEvent<CustomEvent<undefined>, UndCommandPaletteElement>) => void;
|
|
226
|
+
/** The dialog closed and its exit animation finished. */
|
|
227
|
+
'onund-after-close'?: (event: UndEvent<CustomEvent<undefined>, UndCommandPaletteElement>) => void;
|
|
228
|
+
};
|
|
229
|
+
'und-context-menu': Omit<UndContextMenuProps, 'onUndOpenChange' | 'onUndSelect'> & {
|
|
230
|
+
/** The menu opened or closed. */
|
|
231
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean }>, UndContextMenuElement>) => void;
|
|
232
|
+
/** An item was chosen (dispatched on the item, bubbles). Cancelable. */
|
|
233
|
+
'onund-select'?: (event: UndEvent<CustomEvent<{ value: string; checked: boolean }>, UndContextMenuElement>) => void;
|
|
234
|
+
};
|
|
235
|
+
'und-date-input': Omit<UndDateInputProps, 'onUndChange' | 'onInput' | 'onChange'> &
|
|
236
|
+
Pick<HTMLAttributes<UndDateInputElement>, 'onInput' | 'onChange'> & {
|
|
237
|
+
/** The date was committed (blur, Enter, or a calendar choice). `value` is `YYYY-MM-DD`, or empty. */
|
|
238
|
+
'onund-change'?: (event: UndEvent<CustomEvent<{ value: string }>, UndDateInputElement>) => void;
|
|
239
|
+
};
|
|
240
|
+
'und-date-range-input': Omit<UndDateRangeInputProps, 'onUndChange' | 'onInput' | 'onChange'> &
|
|
241
|
+
Pick<HTMLAttributes<UndDateRangeInputElement>, 'onInput' | 'onChange'> & {
|
|
242
|
+
/** The range was committed: both dates are set or both are empty. */
|
|
243
|
+
'onund-change'?: (event: UndEvent<CustomEvent<{ start: string; end: string }>, UndDateRangeInputElement>) => void;
|
|
244
|
+
};
|
|
245
|
+
'und-date-time-input': Omit<UndDateTimeInputProps, 'onUndChange'> & {
|
|
246
|
+
/** A part was committed and the combined value changed. `value` is `YYYY-MM-DDTHH:MM`, or empty. */
|
|
247
|
+
'onund-change'?: (event: UndEvent<CustomEvent<{ value: string }>, UndDateTimeInputElement>) => void;
|
|
248
|
+
};
|
|
249
|
+
'und-dialog': Omit<UndDialogProps, 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> & {
|
|
250
|
+
/** The user asked to open or close the dialog (Escape, backdrop, close button, invoker command, `method="dialog"` form). Cancelable: call `preventDefault()` to keep the current state. */
|
|
251
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndDialogElement>) => void;
|
|
252
|
+
/** The dialog opened and its entry animation finished. */
|
|
253
|
+
'onund-after-open'?: (event: UndEvent<CustomEvent<undefined>, UndDialogElement>) => void;
|
|
254
|
+
/** The dialog closed and its exit animation finished. */
|
|
255
|
+
'onund-after-close'?: (event: UndEvent<CustomEvent<undefined>, UndDialogElement>) => void;
|
|
256
|
+
};
|
|
257
|
+
'und-divider': UndDividerProps;
|
|
258
|
+
'und-drawer': Omit<UndDrawerProps, 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> & {
|
|
259
|
+
/** The user asked to open or close the drawer. Cancelable. */
|
|
260
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndDrawerElement>) => void;
|
|
261
|
+
/** The drawer opened and its entry animation finished. */
|
|
262
|
+
'onund-after-open'?: (event: UndEvent<CustomEvent<undefined>, UndDrawerElement>) => void;
|
|
263
|
+
/** The drawer closed and its exit animation finished. */
|
|
264
|
+
'onund-after-close'?: (event: UndEvent<CustomEvent<undefined>, UndDrawerElement>) => void;
|
|
265
|
+
};
|
|
266
|
+
'und-empty-state': UndEmptyStateProps;
|
|
267
|
+
'und-file-input': Omit<UndFileInputProps, 'onChange' | 'onUndReject'> &
|
|
268
|
+
Pick<HTMLAttributes<UndFileInputElement>, 'onChange'> & {
|
|
269
|
+
/** Some files were left out; the detail names them and why. */
|
|
270
|
+
'onund-reject'?: (event: UndEvent<CustomEvent<unknown>, UndFileInputElement>) => void;
|
|
271
|
+
};
|
|
272
|
+
'und-form-field': UndFormFieldProps;
|
|
273
|
+
'und-form-layout': UndFormLayoutProps;
|
|
274
|
+
'und-grid': UndGridProps;
|
|
275
|
+
'und-grid-item': UndGridItemProps;
|
|
276
|
+
'und-heading': UndHeadingProps;
|
|
277
|
+
'und-hover-card': Omit<UndHoverCardProps, 'onUndOpenChange'> & {
|
|
278
|
+
/** The card was shown or hidden. */
|
|
279
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndHoverCardElement>) => void;
|
|
280
|
+
};
|
|
281
|
+
'und-icon': UndIconProps;
|
|
282
|
+
'und-icon-button': Omit<UndIconButtonProps, 'onUndPressedChange'> & {
|
|
283
|
+
/** A toggle button is about to change its pressed state. Cancelable. */
|
|
284
|
+
'onund-pressed-change'?: (event: UndEvent<CustomEvent<{ pressed: boolean }>, UndIconButtonElement>) => void;
|
|
285
|
+
};
|
|
286
|
+
'und-info-tip': Omit<UndInfoTipProps, 'onUndOpenChange'> & {
|
|
287
|
+
/** The popover is about to open or close (from `und-popover`). */
|
|
288
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndInfoTipElement>) => void;
|
|
289
|
+
};
|
|
290
|
+
'und-input-group': Omit<UndInputGroupProps, 'onInput' | 'onChange'> &
|
|
291
|
+
Pick<HTMLAttributes<UndInputGroupElement>, 'onInput' | 'onChange'>;
|
|
292
|
+
'und-kbd': UndKbdProps;
|
|
293
|
+
'und-lightbox': Omit<UndLightboxProps, 'onUndIndexChange' | 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> & {
|
|
294
|
+
/** The shown image changed. */
|
|
295
|
+
'onund-index-change'?: (event: UndEvent<CustomEvent<{ index: number }>, UndLightboxElement>) => void;
|
|
296
|
+
/** The user asked to open or close the lightbox. Cancelable. */
|
|
297
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndLightboxElement>) => void;
|
|
298
|
+
/** The lightbox opened and its entry animation finished. */
|
|
299
|
+
'onund-after-open'?: (event: UndEvent<CustomEvent<undefined>, UndLightboxElement>) => void;
|
|
300
|
+
/** The lightbox closed and its exit animation finished. */
|
|
301
|
+
'onund-after-close'?: (event: UndEvent<CustomEvent<undefined>, UndLightboxElement>) => void;
|
|
302
|
+
};
|
|
303
|
+
'und-link': UndLinkProps;
|
|
304
|
+
'und-list': UndListProps;
|
|
305
|
+
'und-list-item': UndListItemProps;
|
|
306
|
+
'und-markdown': UndMarkdownProps;
|
|
307
|
+
'und-menu': Omit<UndMenuProps, 'onUndOpenChange' | 'onUndSelect'> & {
|
|
308
|
+
/** The menu opened or closed. */
|
|
309
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean }>, UndMenuElement>) => void;
|
|
310
|
+
/** An item was chosen (dispatched on the item, bubbles). Cancelable: `preventDefault()` keeps the menu open. */
|
|
311
|
+
'onund-select'?: (event: UndEvent<CustomEvent<{ value: string; checked: boolean }>, UndMenuElement>) => void;
|
|
312
|
+
};
|
|
313
|
+
'und-menu-group': UndMenuGroupProps;
|
|
314
|
+
'und-menu-item': UndMenuItemProps;
|
|
315
|
+
'und-menu-separator': UndMenuSeparatorProps;
|
|
316
|
+
'und-metadata-item': UndMetadataItemProps;
|
|
317
|
+
'und-metadata-list': UndMetadataListProps;
|
|
318
|
+
'und-mobile-nav': Omit<UndMobileNavProps, 'onUndOpenChange'> & {
|
|
319
|
+
/** The panel opened or closed. The toggle and navigation fire it from this element (cancelable); Escape and the close button fire it from the inner drawer. */
|
|
320
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<unknown>, UndMobileNavElement>) => void;
|
|
321
|
+
};
|
|
322
|
+
'und-more-menu': Omit<UndMoreMenuProps, 'onUndOpenChange' | 'onUndSelect'> & {
|
|
323
|
+
/** The menu opened or closed. */
|
|
324
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean }>, UndMoreMenuElement>) => void;
|
|
325
|
+
/** An item was chosen (dispatched on the item, bubbles). Cancelable. */
|
|
326
|
+
'onund-select'?: (event: UndEvent<CustomEvent<{ value: string; checked: boolean }>, UndMoreMenuElement>) => void;
|
|
327
|
+
};
|
|
328
|
+
'und-multi-select': Omit<UndMultiSelectProps, 'onInput' | 'onChange' | 'onUndOpenChange'> &
|
|
329
|
+
Pick<HTMLAttributes<UndMultiSelectElement>, 'onInput' | 'onChange'> & {
|
|
330
|
+
/** The listbox opened or closed. */
|
|
331
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<unknown>, UndMultiSelectElement>) => void;
|
|
332
|
+
};
|
|
333
|
+
'und-number-input': Omit<UndNumberInputProps, 'onInput' | 'onChange' | 'onUndValueChange'> &
|
|
334
|
+
Pick<HTMLAttributes<UndNumberInputElement>, 'onInput' | 'onChange'> & {
|
|
335
|
+
/** The numeric value changed by user input. */
|
|
336
|
+
'onund-value-change'?: (event: UndEvent<CustomEvent<unknown>, UndNumberInputElement>) => void;
|
|
337
|
+
};
|
|
338
|
+
'und-outline': Omit<UndOutlineProps, 'onUndCurrentChange'> & {
|
|
339
|
+
/** The current section changed while reading or after choosing an entry. */
|
|
340
|
+
'onund-current-change'?: (event: UndEvent<CustomEvent<unknown>, UndOutlineElement>) => void;
|
|
341
|
+
};
|
|
342
|
+
'und-overflow-list': Omit<UndOverflowListProps, 'onUndOverflowChange'> & {
|
|
343
|
+
/** The number of collapsed items changed. */
|
|
344
|
+
'onund-overflow-change'?: (event: UndEvent<CustomEvent<unknown>, UndOverflowListElement>) => void;
|
|
345
|
+
};
|
|
346
|
+
'und-pagination': Omit<UndPaginationProps, 'onUndPageChange'> & {
|
|
347
|
+
/** Before the page changes. Cancelable: call `preventDefault()` to handle navigation yourself. */
|
|
348
|
+
'onund-page-change'?: (event: UndEvent<CustomEvent<unknown>, UndPaginationElement>) => void;
|
|
349
|
+
};
|
|
350
|
+
'und-popover': Omit<UndPopoverProps, 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> & {
|
|
351
|
+
/** The popover is about to open or close. Cancelable only when opening. */
|
|
352
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndPopoverElement>) => void;
|
|
353
|
+
/** The popover opened and its entry animation finished. */
|
|
354
|
+
'onund-after-open'?: (event: UndEvent<CustomEvent<undefined>, UndPopoverElement>) => void;
|
|
355
|
+
/** The popover closed and its exit animation finished. */
|
|
356
|
+
'onund-after-close'?: (event: UndEvent<CustomEvent<undefined>, UndPopoverElement>) => void;
|
|
357
|
+
};
|
|
358
|
+
'und-progress': UndProgressProps;
|
|
359
|
+
'und-radio': UndRadioProps;
|
|
360
|
+
'und-radio-group': Omit<UndRadioGroupProps, 'onInput' | 'onChange'> &
|
|
361
|
+
Pick<HTMLAttributes<UndRadioGroupElement>, 'onInput' | 'onChange'>;
|
|
362
|
+
'und-radio-list': Omit<UndRadioListProps, 'onInput' | 'onChange'> &
|
|
363
|
+
Pick<HTMLAttributes<UndRadioListElement>, 'onInput' | 'onChange'>;
|
|
364
|
+
'und-resize-handle': Omit<UndResizeHandleProps, 'onUndResize'> & {
|
|
365
|
+
/** The user changed the size, by keys or by dragging. */
|
|
366
|
+
'onund-resize'?: (event: UndEvent<CustomEvent<unknown>, UndResizeHandleElement>) => void;
|
|
367
|
+
};
|
|
368
|
+
'und-scroll-area': UndScrollAreaProps;
|
|
369
|
+
'und-section': UndSectionProps;
|
|
370
|
+
'und-segmented-control': Omit<UndSegmentedControlProps, 'onInput' | 'onChange'> &
|
|
371
|
+
Pick<HTMLAttributes<UndSegmentedControlElement>, 'onInput' | 'onChange'>;
|
|
372
|
+
'und-segmented-control-item': UndSegmentedControlItemProps;
|
|
373
|
+
'und-select': Omit<UndSelectProps, 'onInput' | 'onChange' | 'onUndOpenChange'> &
|
|
374
|
+
Pick<HTMLAttributes<UndSelectElement>, 'onInput' | 'onChange'> & {
|
|
375
|
+
/** The custom listbox opened or closed. */
|
|
376
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<unknown>, UndSelectElement>) => void;
|
|
377
|
+
};
|
|
378
|
+
'und-selectable-card': Omit<UndSelectableCardProps, 'onInput' | 'onChange'> &
|
|
379
|
+
Pick<HTMLAttributes<UndSelectableCardElement>, 'onInput' | 'onChange'>;
|
|
380
|
+
'und-side-nav': Omit<UndSideNavProps, 'onUndCollapseChange'> & {
|
|
381
|
+
/** The user collapsed or expanded the nav. */
|
|
382
|
+
'onund-collapse-change'?: (event: UndEvent<CustomEvent<unknown>, UndSideNavElement>) => void;
|
|
383
|
+
};
|
|
384
|
+
'und-side-nav-heading': UndSideNavHeadingProps;
|
|
385
|
+
'und-side-nav-item': UndSideNavItemProps;
|
|
386
|
+
'und-side-nav-section': Omit<UndSideNavSectionProps, 'onUndToggle'> & {
|
|
387
|
+
/** The user opened or closed the section. */
|
|
388
|
+
'onund-toggle'?: (event: UndEvent<CustomEvent<unknown>, UndSideNavSectionElement>) => void;
|
|
389
|
+
};
|
|
390
|
+
'und-skeleton': UndSkeletonProps;
|
|
391
|
+
'und-slider': Omit<UndSliderProps, 'onInput' | 'onChange'> &
|
|
392
|
+
Pick<HTMLAttributes<UndSliderElement>, 'onInput' | 'onChange'>;
|
|
393
|
+
'und-spinner': UndSpinnerProps;
|
|
394
|
+
'und-stack': UndStackProps;
|
|
395
|
+
'und-status-dot': UndStatusDotProps;
|
|
396
|
+
'und-step': UndStepProps;
|
|
397
|
+
'und-stepper': Omit<UndStepperProps, 'onUndStepSelect'> & {
|
|
398
|
+
/** The user chose a step. Cancelable: `preventDefault()` keeps `current` where it is. */
|
|
399
|
+
'onund-step-select'?: (event: UndEvent<CustomEvent<unknown>, UndStepperElement>) => void;
|
|
400
|
+
};
|
|
401
|
+
'und-switch': Omit<UndSwitchProps, 'onInput' | 'onChange'> &
|
|
402
|
+
Pick<HTMLAttributes<UndSwitchElement>, 'onInput' | 'onChange'>;
|
|
403
|
+
'und-tab': UndTabProps;
|
|
404
|
+
'und-tab-menu': UndTabMenuProps;
|
|
405
|
+
'und-tab-panel': UndTabPanelProps;
|
|
406
|
+
'und-table': Omit<UndTableProps, 'onUndSort' | 'onUndSelectionChange' | 'onUndColumnResize' | 'onUndExpandChange'> & {
|
|
407
|
+
/** A sortable header was activated. Cancel it to sort the data yourself; `aria-sort` and the announcement still update. */
|
|
408
|
+
'onund-sort'?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
|
|
409
|
+
/** The user changed the row selection. */
|
|
410
|
+
'onund-selection-change'?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
|
|
411
|
+
/** The user resized a column. */
|
|
412
|
+
'onund-column-resize'?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
|
|
413
|
+
/** The user expanded or collapsed a row. */
|
|
414
|
+
'onund-expand-change'?: (event: UndEvent<CustomEvent<unknown>, UndTableElement>) => void;
|
|
415
|
+
};
|
|
416
|
+
'und-tabs': Omit<UndTabsProps, 'onUndChange'> & {
|
|
417
|
+
/** The user selected another tab. */
|
|
418
|
+
'onund-change'?: (event: UndEvent<CustomEvent<unknown>, UndTabsElement>) => void;
|
|
419
|
+
};
|
|
420
|
+
'und-text': UndTextProps;
|
|
421
|
+
'und-text-field': Omit<UndTextFieldProps, 'onInput' | 'onChange'> &
|
|
422
|
+
Pick<HTMLAttributes<UndTextFieldElement>, 'onInput' | 'onChange'>;
|
|
423
|
+
'und-textarea': Omit<UndTextareaProps, 'onInput' | 'onChange'> &
|
|
424
|
+
Pick<HTMLAttributes<UndTextareaElement>, 'onInput' | 'onChange'>;
|
|
425
|
+
'und-thumbnail': Omit<UndThumbnailProps, 'onUndLoad' | 'onUndError'> & {
|
|
426
|
+
/** The image loaded. */
|
|
427
|
+
'onund-load'?: (event: UndEvent<CustomEvent<undefined>, UndThumbnailElement>) => void;
|
|
428
|
+
/** The image failed; the fallback is shown. */
|
|
429
|
+
'onund-error'?: (event: UndEvent<CustomEvent<undefined>, UndThumbnailElement>) => void;
|
|
430
|
+
};
|
|
431
|
+
'und-time-input': Omit<UndTimeInputProps, 'onUndChange' | 'onInput' | 'onChange'> &
|
|
432
|
+
Pick<HTMLAttributes<UndTimeInputElement>, 'onInput' | 'onChange'> & {
|
|
433
|
+
/** The time was committed (blur, Enter, or a key step). `value` is `HH:MM`, or empty. */
|
|
434
|
+
'onund-change'?: (event: UndEvent<CustomEvent<{ value: string }>, UndTimeInputElement>) => void;
|
|
435
|
+
};
|
|
436
|
+
'und-timer': Omit<UndTimerProps, 'onUndTick' | 'onUndComplete'> & {
|
|
437
|
+
/** The displayed second changed. */
|
|
438
|
+
'onund-tick'?: (event: UndEvent<CustomEvent<unknown>, UndTimerElement>) => void;
|
|
439
|
+
/** A countdown reached zero. */
|
|
440
|
+
'onund-complete'?: (event: UndEvent<CustomEvent<unknown>, UndTimerElement>) => void;
|
|
441
|
+
};
|
|
442
|
+
'und-timestamp': UndTimestampProps;
|
|
443
|
+
'und-toast': Omit<UndToastProps, 'onUndDismiss'> & {
|
|
444
|
+
/** The toast is closing (`timeout`, `close-button`, `escape`, `swipe` or `programmatic`). It is removed after its exit animation. */
|
|
445
|
+
'onund-dismiss'?: (event: UndEvent<CustomEvent<{ reason: string }>, UndToastElement>) => void;
|
|
446
|
+
};
|
|
447
|
+
'und-toaster': UndToasterProps;
|
|
448
|
+
'und-toggle-button-group': Omit<UndToggleButtonGroupProps, 'onUndChange'> & {
|
|
449
|
+
/** The user changed the selection. */
|
|
450
|
+
'onund-change'?: (event: UndEvent<CustomEvent<unknown>, UndToggleButtonGroupElement>) => void;
|
|
451
|
+
};
|
|
452
|
+
'und-token': Omit<UndTokenProps, 'onUndRemove'> & {
|
|
453
|
+
/** The remove button was activated. */
|
|
454
|
+
'onund-remove'?: (event: UndEvent<CustomEvent<unknown>, UndTokenElement>) => void;
|
|
455
|
+
};
|
|
456
|
+
'und-tokenizer': Omit<UndTokenizerProps, 'onInput' | 'onChange' | 'onUndChange' | 'onUndOpenChange'> &
|
|
457
|
+
Pick<HTMLAttributes<UndTokenizerElement>, 'onInput' | 'onChange'> & {
|
|
458
|
+
/** Tokens were added or removed; the detail says which. (`change` fires as well.) */
|
|
459
|
+
'onund-change'?: (event: UndEvent<CustomEvent<unknown>, UndTokenizerElement>) => void;
|
|
460
|
+
/** The suggestions opened or closed. */
|
|
461
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean }>, UndTokenizerElement>) => void;
|
|
462
|
+
};
|
|
463
|
+
'und-toolbar': UndToolbarProps;
|
|
464
|
+
'und-tooltip': Omit<UndTooltipProps, 'onUndOpenChange'> & {
|
|
465
|
+
/** The tooltip was shown or hidden. */
|
|
466
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndTooltipElement>) => void;
|
|
467
|
+
};
|
|
468
|
+
'und-top-nav': UndTopNavProps;
|
|
469
|
+
'und-top-nav-item': UndTopNavItemProps;
|
|
470
|
+
'und-top-nav-menu': Omit<UndTopNavMenuProps, 'onUndOpenChange'> & {
|
|
471
|
+
/** The panel opened or closed (user action). */
|
|
472
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean }>, UndTopNavMenuElement>) => void;
|
|
473
|
+
};
|
|
474
|
+
'und-tree-item': Omit<UndTreeItemProps, 'onUndExpandChange' | 'onUndLoadChildren' | 'onUndActivate'> & {
|
|
475
|
+
/** The user opened or closed the branch. */
|
|
476
|
+
'onund-expand-change'?: (event: UndEvent<CustomEvent<unknown>, UndTreeItemElement>) => void;
|
|
477
|
+
/** A lazy branch was opened and needs its children. Add the child items, or set `loading` to `false` (and `lazy` to `false` when there are none). */
|
|
478
|
+
'onund-load-children'?: (event: UndEvent<CustomEvent<{ value: string }>, UndTreeItemElement>) => void;
|
|
479
|
+
/** The user pressed Enter on the item. */
|
|
480
|
+
'onund-activate'?: (event: UndEvent<CustomEvent<{ value: string }>, UndTreeItemElement>) => void;
|
|
481
|
+
};
|
|
482
|
+
'und-tree-list': Omit<UndTreeListProps, 'onUndSelect'> & {
|
|
483
|
+
/** The user selected or deselected an item. */
|
|
484
|
+
'onund-select'?: (event: UndEvent<CustomEvent<unknown>, UndTreeListElement>) => void;
|
|
485
|
+
};
|
|
486
|
+
'und-typeahead': Omit<UndTypeaheadProps, 'onUndSearch' | 'onChange' | 'onInput' | 'onUndOpenChange'> &
|
|
487
|
+
Pick<HTMLAttributes<UndTypeaheadElement>, 'onChange' | 'onInput'> & {
|
|
488
|
+
/** The user typed; load options for `detail.query`. `detail.signal` aborts when the search is superseded. */
|
|
489
|
+
'onund-search'?: (event: UndEvent<CustomEvent<unknown>, UndTypeaheadElement>) => void;
|
|
490
|
+
/** The listbox opened or closed. */
|
|
491
|
+
'onund-open-change'?: (event: UndEvent<CustomEvent<unknown>, UndTypeaheadElement>) => void;
|
|
492
|
+
};
|
|
493
|
+
'und-visually-hidden': UndVisuallyHiddenProps;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
declare module 'react' {
|
|
497
|
+
namespace JSX {
|
|
498
|
+
interface IntrinsicElements extends UndIntrinsicElements {}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// GENERATED FILE. DO NOT EDIT.
|
|
3
|
+
// Source: @und-ui/core custom-elements.json, via tools/codegen/wrappers.mjs.
|
|
4
|
+
// Run `pnpm codegen` (or `pnpm build`) after changing a component.
|
|
5
|
+
import { useCallback, useLayoutEffect, useRef, type Ref, type RefCallback } from 'react';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A DOM event whose `currentTarget` is the UND UI element the handler is on,
|
|
9
|
+
* so `event.currentTarget.value` needs no cast.
|
|
10
|
+
*/
|
|
11
|
+
export type UndEvent<E extends Event, T extends EventTarget> = E & { currentTarget: T };
|
|
12
|
+
|
|
13
|
+
function assignRef<T>(ref: Ref<T> | undefined, value: T): () => void {
|
|
14
|
+
if (typeof ref === 'function') {
|
|
15
|
+
const cleanup = ref(value);
|
|
16
|
+
return typeof cleanup === 'function' ? cleanup : () => ref(null);
|
|
17
|
+
}
|
|
18
|
+
if (ref) {
|
|
19
|
+
ref.current = value;
|
|
20
|
+
return () => {
|
|
21
|
+
ref.current = null;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return () => {};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal Makes `prop` controlled, like `value` on a React `<input>`: after
|
|
29
|
+
* the handler of a user change has run (`settle`) and after every render, the
|
|
30
|
+
* element is put back to the latest `value` prop when they differ. A handler
|
|
31
|
+
* that rejects the change (does not update state) therefore leaves the element
|
|
32
|
+
* showing the state. `undefined` leaves the element uncontrolled.
|
|
33
|
+
*/
|
|
34
|
+
export function useControlledProp<E extends HTMLElement, K extends keyof E>(
|
|
35
|
+
prop: K,
|
|
36
|
+
value: E[K] | undefined,
|
|
37
|
+
ref: Ref<E> | undefined,
|
|
38
|
+
): { ref: RefCallback<E>; settle: () => void } {
|
|
39
|
+
const latest = useRef(value);
|
|
40
|
+
const node = useRef<E | null>(null);
|
|
41
|
+
const restore = useCallback((): void => {
|
|
42
|
+
const el = node.current;
|
|
43
|
+
const current = latest.current;
|
|
44
|
+
if (el && current !== undefined && el[prop] !== current) el[prop] = current;
|
|
45
|
+
}, [prop]);
|
|
46
|
+
useLayoutEffect(() => {
|
|
47
|
+
latest.current = value;
|
|
48
|
+
restore();
|
|
49
|
+
});
|
|
50
|
+
const refCallback = useCallback(
|
|
51
|
+
(el: E | null) => {
|
|
52
|
+
if (!el) return;
|
|
53
|
+
node.current = el;
|
|
54
|
+
const release = assignRef(ref, el);
|
|
55
|
+
return () => {
|
|
56
|
+
node.current = null;
|
|
57
|
+
release();
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
[ref],
|
|
61
|
+
);
|
|
62
|
+
// Called after the user's handler: React flushes the state updates of a
|
|
63
|
+
// discrete event in a microtask the handler queued, so this one runs after
|
|
64
|
+
// that render has committed.
|
|
65
|
+
const settle = useCallback((): void => queueMicrotask(restore), [restore]);
|
|
66
|
+
return { ref: refCallback, settle };
|
|
67
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// GENERATED FILE. DO NOT EDIT.
|
|
3
|
+
// Source: @und-ui/core custom-elements.json, via tools/codegen/wrappers.mjs.
|
|
4
|
+
// Run `pnpm codegen` (or `pnpm build`) after changing a component.
|
|
5
|
+
import { createElement, type HTMLAttributes, type ReactElement, type Ref } from 'react';
|
|
6
|
+
import '@und-ui/core/accordion.js';
|
|
7
|
+
import type { UndAccordion as UndAccordionElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndAccordionProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndAccordionElement>, 'type'> {
|
|
11
|
+
/** `single` keeps at most one item open; `multiple` lets items open independently. */
|
|
12
|
+
type?: UndAccordionElement['type'];
|
|
13
|
+
ref?: Ref<UndAccordionElement>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Stacked headers that show and hide sections of content. */
|
|
17
|
+
export function UndAccordion(props: UndAccordionProps): ReactElement {
|
|
18
|
+
return createElement('und-accordion', props);
|
|
19
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// GENERATED FILE. DO NOT EDIT.
|
|
3
|
+
// Source: @und-ui/core custom-elements.json, via tools/codegen/wrappers.mjs.
|
|
4
|
+
// Run `pnpm codegen` (or `pnpm build`) after changing a component.
|
|
5
|
+
import { createElement, type HTMLAttributes, type ReactElement, type Ref } from 'react';
|
|
6
|
+
import '@und-ui/core/alert.js';
|
|
7
|
+
import type { UndAlert as UndAlertElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndAlertProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndAlertElement>, 'tone' | 'live' | 'dismissible' | 'dismissLabel' | 'onUndDismiss'> {
|
|
12
|
+
/** Color intent and default icon. */
|
|
13
|
+
tone?: UndAlertElement['tone'];
|
|
14
|
+
/** Live region behaviour. `off` (default) for content present on load; `polite` (role `status`) or `assertive` (role `alert`) for messages that appear or change while the user works. */
|
|
15
|
+
live?: UndAlertElement['live'];
|
|
16
|
+
/** Shows a dismiss button. Pressing it fires `und-dismiss` and hides the alert. */
|
|
17
|
+
dismissible?: UndAlertElement['dismissible'];
|
|
18
|
+
/** Accessible name of the dismiss button (localise it). */
|
|
19
|
+
dismissLabel?: UndAlertElement['dismissLabel'];
|
|
20
|
+
/** Before the alert hides after the dismiss button is pressed. Cancelable: call `preventDefault()` to keep it visible. */
|
|
21
|
+
onUndDismiss?: (event: UndEvent<CustomEvent<unknown>, UndAlertElement>) => void;
|
|
22
|
+
ref?: Ref<UndAlertElement>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Shows a short, important message in context. */
|
|
26
|
+
export function UndAlert(props: UndAlertProps): ReactElement {
|
|
27
|
+
const { onUndDismiss, ...rest } = props;
|
|
28
|
+
return createElement('und-alert', {
|
|
29
|
+
...rest,
|
|
30
|
+
'onund-dismiss': onUndDismiss,
|
|
31
|
+
});
|
|
32
|
+
}
|