@und-ui/react 0.1.0 → 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/dist/generated/index.d.ts +77 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +77 -0
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/jsx.d.ts +394 -2
- package/dist/generated/jsx.d.ts.map +1 -1
- 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-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-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-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-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-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-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-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-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.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-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-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-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-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-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-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-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-table.d.ts +16 -2
- package/dist/generated/und-table.d.ts.map +1 -1
- package/dist/generated/und-table.js +5 -2
- package/dist/generated/und-table.js.map +1 -1
- 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-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-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-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/package.json +6 -2
- package/src/generated/index.ts +77 -0
- package/src/generated/jsx.ts +336 -2
- package/src/generated/und-app-shell.ts +34 -0
- package/src/generated/und-aspect-ratio.ts +21 -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-button-group.ts +23 -0
- package/src/generated/und-calendar.ts +51 -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-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-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-empty-state.ts +21 -0
- package/src/generated/und-file-input.ts +49 -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.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-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-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-radio-list.ts +51 -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-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-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-tab-menu.ts +21 -0
- package/src/generated/und-table.ts +20 -3
- package/src/generated/und-text.ts +27 -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-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-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/jsx.ts
CHANGED
|
@@ -4,48 +4,125 @@
|
|
|
4
4
|
// Types for the raw `<und-*>` tags in TSX. The wrappers are still preferred:
|
|
5
5
|
// they map `onUndOpenChange` to `und-open-change` and support controlled props.
|
|
6
6
|
import type { HTMLAttributes } from 'react';
|
|
7
|
-
import type { UndAccordion as UndAccordionElement, UndAlert as UndAlertElement, UndAvatar as UndAvatarElement, UndAvatarGroup as UndAvatarGroupElement, UndBadge as UndBadgeElement, UndBreadcrumb as UndBreadcrumbElement, UndBreadcrumbItem as UndBreadcrumbItemElement, UndButton as UndButtonElement, UndCard as UndCardElement, UndCheckbox as UndCheckboxElement, UndCombobox as UndComboboxElement, UndDialog as UndDialogElement, UndDivider as UndDividerElement, UndDrawer as UndDrawerElement, UndFormField as UndFormFieldElement, UndIconButton as UndIconButtonElement, UndLink as UndLinkElement, UndMenu as UndMenuElement, UndMenuGroup as UndMenuGroupElement, UndMenuItem as UndMenuItemElement, UndMenuSeparator as UndMenuSeparatorElement, UndPagination as UndPaginationElement, UndPopover as UndPopoverElement, UndProgress as UndProgressElement, UndRadio as UndRadioElement, UndRadioGroup as UndRadioGroupElement, UndSelect as UndSelectElement, UndSkeleton as UndSkeletonElement, UndSlider as UndSliderElement, UndSpinner as UndSpinnerElement, UndSwitch as UndSwitchElement, UndTab as UndTabElement, UndTabPanel as UndTabPanelElement, UndTable as UndTableElement, UndTabs as UndTabsElement, UndTextField as UndTextFieldElement, UndTextarea as UndTextareaElement, UndToast as UndToastElement, UndToaster as UndToasterElement, UndTooltip as UndTooltipElement, UndVisuallyHidden as UndVisuallyHiddenElement } from '@und-ui/core';
|
|
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
8
|
import type { UndEvent } from './shared.js';
|
|
9
9
|
import type { UndAccordionProps } from './und-accordion.js';
|
|
10
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';
|
|
11
13
|
import type { UndAvatarProps } from './und-avatar.js';
|
|
12
14
|
import type { UndAvatarGroupProps } from './und-avatar-group.js';
|
|
13
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';
|
|
14
19
|
import type { UndBreadcrumbProps } from './und-breadcrumb.js';
|
|
15
20
|
import type { UndBreadcrumbItemProps } from './und-breadcrumb-item.js';
|
|
16
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';
|
|
17
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';
|
|
18
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';
|
|
19
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';
|
|
20
43
|
import type { UndDialogProps } from './und-dialog.js';
|
|
21
44
|
import type { UndDividerProps } from './und-divider.js';
|
|
22
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';
|
|
23
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';
|
|
24
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';
|
|
25
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';
|
|
26
64
|
import type { UndMenuProps } from './und-menu.js';
|
|
27
65
|
import type { UndMenuGroupProps } from './und-menu-group.js';
|
|
28
66
|
import type { UndMenuItemProps } from './und-menu-item.js';
|
|
29
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';
|
|
30
76
|
import type { UndPaginationProps } from './und-pagination.js';
|
|
31
77
|
import type { UndPopoverProps } from './und-popover.js';
|
|
32
78
|
import type { UndProgressProps } from './und-progress.js';
|
|
33
79
|
import type { UndRadioProps } from './und-radio.js';
|
|
34
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';
|
|
35
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';
|
|
36
93
|
import type { UndSkeletonProps } from './und-skeleton.js';
|
|
37
94
|
import type { UndSliderProps } from './und-slider.js';
|
|
38
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';
|
|
39
100
|
import type { UndSwitchProps } from './und-switch.js';
|
|
40
101
|
import type { UndTabProps } from './und-tab.js';
|
|
102
|
+
import type { UndTabMenuProps } from './und-tab-menu.js';
|
|
41
103
|
import type { UndTabPanelProps } from './und-tab-panel.js';
|
|
42
104
|
import type { UndTableProps } from './und-table.js';
|
|
43
105
|
import type { UndTabsProps } from './und-tabs.js';
|
|
106
|
+
import type { UndTextProps } from './und-text.js';
|
|
44
107
|
import type { UndTextFieldProps } from './und-text-field.js';
|
|
45
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';
|
|
46
113
|
import type { UndToastProps } from './und-toast.js';
|
|
47
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';
|
|
48
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';
|
|
49
126
|
import type { UndVisuallyHiddenProps } from './und-visually-hidden.js';
|
|
50
127
|
|
|
51
128
|
/** Props of every raw `<und-*>` tag, merged into `React.JSX.IntrinsicElements`. */
|
|
@@ -55,18 +132,81 @@ export interface UndIntrinsicElements {
|
|
|
55
132
|
/** Before the alert hides after the dismiss button is pressed. Cancelable: call `preventDefault()` to keep it visible. */
|
|
56
133
|
'onund-dismiss'?: (event: UndEvent<CustomEvent<unknown>, UndAlertElement>) => void;
|
|
57
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;
|
|
58
140
|
'und-avatar': UndAvatarProps;
|
|
59
141
|
'und-avatar-group': UndAvatarGroupProps;
|
|
60
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
|
+
};
|
|
61
158
|
'und-breadcrumb': UndBreadcrumbProps;
|
|
62
159
|
'und-breadcrumb-item': UndBreadcrumbItemProps;
|
|
63
160
|
'und-button': Omit<UndButtonProps, 'onUndPressedChange'> & {
|
|
64
161
|
/** A toggle button is about to change its pressed state. Cancelable: `preventDefault()` keeps the current state (controlled mode). */
|
|
65
162
|
'onund-pressed-change'?: (event: UndEvent<CustomEvent<{ pressed: boolean }>, UndButtonElement>) => void;
|
|
66
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
|
+
};
|
|
67
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
|
+
};
|
|
68
193
|
'und-checkbox': Omit<UndCheckboxProps, 'onInput' | 'onChange'> &
|
|
69
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
|
+
};
|
|
70
210
|
'und-combobox': Omit<UndComboboxProps, 'onChange' | 'onInput' | 'onUndSearch' | 'onUndOpenChange'> &
|
|
71
211
|
Pick<HTMLAttributes<UndComboboxElement>, 'onChange' | 'onInput'> & {
|
|
72
212
|
/** The user typed; use it to load options asynchronously. */
|
|
@@ -74,6 +214,38 @@ export interface UndIntrinsicElements {
|
|
|
74
214
|
/** The listbox opened or closed. */
|
|
75
215
|
'onund-open-change'?: (event: UndEvent<CustomEvent<unknown>, UndComboboxElement>) => void;
|
|
76
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
|
+
};
|
|
77
249
|
'und-dialog': Omit<UndDialogProps, 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> & {
|
|
78
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. */
|
|
79
251
|
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndDialogElement>) => void;
|
|
@@ -91,12 +263,47 @@ export interface UndIntrinsicElements {
|
|
|
91
263
|
/** The drawer closed and its exit animation finished. */
|
|
92
264
|
'onund-after-close'?: (event: UndEvent<CustomEvent<undefined>, UndDrawerElement>) => void;
|
|
93
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
|
+
};
|
|
94
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;
|
|
95
282
|
'und-icon-button': Omit<UndIconButtonProps, 'onUndPressedChange'> & {
|
|
96
283
|
/** A toggle button is about to change its pressed state. Cancelable. */
|
|
97
284
|
'onund-pressed-change'?: (event: UndEvent<CustomEvent<{ pressed: boolean }>, UndIconButtonElement>) => void;
|
|
98
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
|
+
};
|
|
99
303
|
'und-link': UndLinkProps;
|
|
304
|
+
'und-list': UndListProps;
|
|
305
|
+
'und-list-item': UndListItemProps;
|
|
306
|
+
'und-markdown': UndMarkdownProps;
|
|
100
307
|
'und-menu': Omit<UndMenuProps, 'onUndOpenChange' | 'onUndSelect'> & {
|
|
101
308
|
/** The menu opened or closed. */
|
|
102
309
|
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean }>, UndMenuElement>) => void;
|
|
@@ -106,6 +313,36 @@ export interface UndIntrinsicElements {
|
|
|
106
313
|
'und-menu-group': UndMenuGroupProps;
|
|
107
314
|
'und-menu-item': UndMenuItemProps;
|
|
108
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
|
+
};
|
|
109
346
|
'und-pagination': Omit<UndPaginationProps, 'onUndPageChange'> & {
|
|
110
347
|
/** Before the page changes. Cancelable: call `preventDefault()` to handle navigation yourself. */
|
|
111
348
|
'onund-page-change'?: (event: UndEvent<CustomEvent<unknown>, UndPaginationElement>) => void;
|
|
@@ -122,40 +359,137 @@ export interface UndIntrinsicElements {
|
|
|
122
359
|
'und-radio': UndRadioProps;
|
|
123
360
|
'und-radio-group': Omit<UndRadioGroupProps, 'onInput' | 'onChange'> &
|
|
124
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;
|
|
125
373
|
'und-select': Omit<UndSelectProps, 'onInput' | 'onChange' | 'onUndOpenChange'> &
|
|
126
374
|
Pick<HTMLAttributes<UndSelectElement>, 'onInput' | 'onChange'> & {
|
|
127
375
|
/** The custom listbox opened or closed. */
|
|
128
376
|
'onund-open-change'?: (event: UndEvent<CustomEvent<unknown>, UndSelectElement>) => void;
|
|
129
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
|
+
};
|
|
130
390
|
'und-skeleton': UndSkeletonProps;
|
|
131
391
|
'und-slider': Omit<UndSliderProps, 'onInput' | 'onChange'> &
|
|
132
392
|
Pick<HTMLAttributes<UndSliderElement>, 'onInput' | 'onChange'>;
|
|
133
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
|
+
};
|
|
134
401
|
'und-switch': Omit<UndSwitchProps, 'onInput' | 'onChange'> &
|
|
135
402
|
Pick<HTMLAttributes<UndSwitchElement>, 'onInput' | 'onChange'>;
|
|
136
403
|
'und-tab': UndTabProps;
|
|
404
|
+
'und-tab-menu': UndTabMenuProps;
|
|
137
405
|
'und-tab-panel': UndTabPanelProps;
|
|
138
|
-
'und-table': Omit<UndTableProps, 'onUndSort'> & {
|
|
406
|
+
'und-table': Omit<UndTableProps, 'onUndSort' | 'onUndSelectionChange' | 'onUndColumnResize' | 'onUndExpandChange'> & {
|
|
139
407
|
/** A sortable header was activated. Cancel it to sort the data yourself; `aria-sort` and the announcement still update. */
|
|
140
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;
|
|
141
415
|
};
|
|
142
416
|
'und-tabs': Omit<UndTabsProps, 'onUndChange'> & {
|
|
143
417
|
/** The user selected another tab. */
|
|
144
418
|
'onund-change'?: (event: UndEvent<CustomEvent<unknown>, UndTabsElement>) => void;
|
|
145
419
|
};
|
|
420
|
+
'und-text': UndTextProps;
|
|
146
421
|
'und-text-field': Omit<UndTextFieldProps, 'onInput' | 'onChange'> &
|
|
147
422
|
Pick<HTMLAttributes<UndTextFieldElement>, 'onInput' | 'onChange'>;
|
|
148
423
|
'und-textarea': Omit<UndTextareaProps, 'onInput' | 'onChange'> &
|
|
149
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;
|
|
150
443
|
'und-toast': Omit<UndToastProps, 'onUndDismiss'> & {
|
|
151
444
|
/** The toast is closing (`timeout`, `close-button`, `escape`, `swipe` or `programmatic`). It is removed after its exit animation. */
|
|
152
445
|
'onund-dismiss'?: (event: UndEvent<CustomEvent<{ reason: string }>, UndToastElement>) => void;
|
|
153
446
|
};
|
|
154
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;
|
|
155
464
|
'und-tooltip': Omit<UndTooltipProps, 'onUndOpenChange'> & {
|
|
156
465
|
/** The tooltip was shown or hidden. */
|
|
157
466
|
'onund-open-change'?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndTooltipElement>) => void;
|
|
158
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
|
+
};
|
|
159
493
|
'und-visually-hidden': UndVisuallyHiddenProps;
|
|
160
494
|
}
|
|
161
495
|
|
|
@@ -0,0 +1,34 @@
|
|
|
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/app-shell.js';
|
|
7
|
+
import type { UndAppShell as UndAppShellElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndAppShellProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndAppShellElement>, 'open' | 'panelRole' | 'panelLabel' | 'skipLabel' | 'toggleLabel' | 'onUndPanelToggle'> {
|
|
12
|
+
/** Whether the side panel is open on a narrow layout. Wide layouts always show it. */
|
|
13
|
+
open?: UndAppShellElement['open'];
|
|
14
|
+
/** Role of the side panel: `navigation` (default) or `complementary`. */
|
|
15
|
+
panelRole?: UndAppShellElement['panelRole'];
|
|
16
|
+
/** Accessible name of the side panel landmark. */
|
|
17
|
+
panelLabel?: UndAppShellElement['panelLabel'];
|
|
18
|
+
/** Text of the skip link. */
|
|
19
|
+
skipLabel?: UndAppShellElement['skipLabel'];
|
|
20
|
+
/** Text of the button that opens the panel on narrow layouts. */
|
|
21
|
+
toggleLabel?: UndAppShellElement['toggleLabel'];
|
|
22
|
+
/** The panel was opened or closed on a narrow layout. */
|
|
23
|
+
onUndPanelToggle?: (event: UndEvent<CustomEvent<{open: boolean}>, UndAppShellElement>) => void;
|
|
24
|
+
ref?: Ref<UndAppShellElement>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** An app frame with header, side panel, main and footer landmarks. */
|
|
28
|
+
export function UndAppShell(props: UndAppShellProps): ReactElement {
|
|
29
|
+
const { onUndPanelToggle, ...rest } = props;
|
|
30
|
+
return createElement('und-app-shell', {
|
|
31
|
+
...rest,
|
|
32
|
+
'onund-panel-toggle': onUndPanelToggle,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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/aspect-ratio.js';
|
|
7
|
+
import type { UndAspectRatio as UndAspectRatioElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndAspectRatioProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndAspectRatioElement>, 'ratio' | 'fit'> {
|
|
11
|
+
/** Width over height: `16/9`, `4:3` or a number such as `1.5`. */
|
|
12
|
+
ratio?: UndAspectRatioElement['ratio'];
|
|
13
|
+
/** How an image or video fills the box: `cover` (default), `contain`, `fill`. */
|
|
14
|
+
fit?: UndAspectRatioElement['fit'];
|
|
15
|
+
ref?: Ref<UndAspectRatioElement>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** A box with a fixed aspect ratio that fills slotted media. */
|
|
19
|
+
export function UndAspectRatio(props: UndAspectRatioProps): ReactElement {
|
|
20
|
+
return createElement('und-aspect-ratio', props);
|
|
21
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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/banner.js';
|
|
7
|
+
import type { UndBanner as UndBannerElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndBannerProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndBannerElement>, 'tone' | 'live' | 'dismissible' | 'sticky' | 'label' | 'dismissLabel' | 'onUndDismiss'> {
|
|
12
|
+
/** Color intent and default icon. */
|
|
13
|
+
tone?: UndBannerElement['tone'];
|
|
14
|
+
/** Live region behaviour. `off` for a banner that is there on load; `polite` (role `status`) or `assertive` (role `alert`) for one that appears or changes later. A live banner is not also a region. */
|
|
15
|
+
live?: UndBannerElement['live'];
|
|
16
|
+
/** Shows a dismiss button; pressing it fires `und-dismiss` and hides the banner. */
|
|
17
|
+
dismissible?: UndBannerElement['dismissible'];
|
|
18
|
+
/** Keeps the banner at the top of its scroll container while scrolling. */
|
|
19
|
+
sticky?: UndBannerElement['sticky'];
|
|
20
|
+
/** Makes the banner a named region (`role="region"`) so it is listed among the page landmarks. Leave it out for a short-lived banner. */
|
|
21
|
+
label?: UndBannerElement['label'];
|
|
22
|
+
/** Accessible name of the dismiss button (localise it). */
|
|
23
|
+
dismissLabel?: UndBannerElement['dismissLabel'];
|
|
24
|
+
/** Before the banner hides after the dismiss button is pressed. Cancelable: call `preventDefault()` to keep it visible. */
|
|
25
|
+
onUndDismiss?: (event: UndEvent<CustomEvent<unknown>, UndBannerElement>) => void;
|
|
26
|
+
ref?: Ref<UndBannerElement>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** A full-width, page-level message bar. */
|
|
30
|
+
export function UndBanner(props: UndBannerProps): ReactElement {
|
|
31
|
+
const { onUndDismiss, ...rest } = props;
|
|
32
|
+
return createElement('und-banner', {
|
|
33
|
+
...rest,
|
|
34
|
+
'onund-dismiss': onUndDismiss,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -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/blockquote.js';
|
|
7
|
+
import type { UndBlockquote as UndBlockquoteElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndBlockquoteProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndBlockquoteElement>, 'cite'> {
|
|
11
|
+
/** URL of the source, set on the `blockquote`. Only http(s), mailto, tel and relative URLs are used; anything else is dropped. */
|
|
12
|
+
cite?: UndBlockquoteElement['cite'];
|
|
13
|
+
ref?: Ref<UndBlockquoteElement>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** A quotation with an optional attribution. */
|
|
17
|
+
export function UndBlockquote(props: UndBlockquoteProps): ReactElement {
|
|
18
|
+
return createElement('und-blockquote', props);
|
|
19
|
+
}
|