@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
|
@@ -0,0 +1,61 @@
|
|
|
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/bottom-sheet.js';
|
|
7
|
+
import type { UndBottomSheet as UndBottomSheetElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndBottomSheetProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndBottomSheetElement>, 'snapPoints' | 'snap' | 'handleLabel' | 'placement' | 'open' | 'modal' | 'variant' | 'size' | 'closedBy' | 'label' | 'initialFocus' | 'closeLabel' | 'noCloseButton' | 'returnValue' | 'onUndSnapChange' | 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> {
|
|
12
|
+
/** Heights the sheet snaps to, as fractions of the viewport height (`0.4,0.9`), lowest first. Without snap points the sheet has one height (`--und-drawer-size`) and can only be dismissed by swiping. */
|
|
13
|
+
snapPoints?: UndBottomSheetElement['snapPoints'];
|
|
14
|
+
/** Index into `snap-points` of the current height. */
|
|
15
|
+
snap?: UndBottomSheetElement['snap'];
|
|
16
|
+
/** Accessible name of the resize handle (shown only with several snap points). */
|
|
17
|
+
handleLabel?: UndBottomSheetElement['handleLabel'];
|
|
18
|
+
/** The edge the drawer is attached to. `start` and `end` follow the text direction. */
|
|
19
|
+
placement?: UndBottomSheetElement['placement'];
|
|
20
|
+
/** Whether the dialog is open. Setting it opens or closes the dialog without firing `und-open-change`. */
|
|
21
|
+
open?: UndBottomSheetElement['open'];
|
|
22
|
+
/** Modal (default): the page behind is inert and scrolling is locked. Set `modal="false"` for a non-modal dialog that leaves the page usable. */
|
|
23
|
+
modal?: UndBottomSheetElement['modal'];
|
|
24
|
+
/** `alert` renders an alert dialog (`role="alertdialog"`) for confirmations: no close button, and the backdrop does not dismiss it. */
|
|
25
|
+
variant?: UndBottomSheetElement['variant'];
|
|
26
|
+
/** Preferred width. */
|
|
27
|
+
size?: UndBottomSheetElement['size'];
|
|
28
|
+
/** Which user actions close the dialog, as on the native attribute: `any` (Escape, backdrop click or outside click), `closerequest` (Escape only) or `none`. Defaults to `any`, or `closerequest` for `variant="alert"`. */
|
|
29
|
+
closedBy?: UndBottomSheetElement['closedBy'];
|
|
30
|
+
/** The title, rendered as the heading that names the dialog. Use the `label` slot for rich content. */
|
|
31
|
+
label?: UndBottomSheetElement['label'];
|
|
32
|
+
/** CSS selector (inside the dialog content) of the element to focus on open. Defaults to an `[autofocus]` element, then the first focusable element. */
|
|
33
|
+
initialFocus?: UndBottomSheetElement['initialFocus'];
|
|
34
|
+
/** Accessible name of the close button. */
|
|
35
|
+
closeLabel?: UndBottomSheetElement['closeLabel'];
|
|
36
|
+
/** Hides the close button. Make sure another way to close remains. */
|
|
37
|
+
noCloseButton?: UndBottomSheetElement['noCloseButton'];
|
|
38
|
+
/** The value passed to `close(value)` or submitted by a `method="dialog"` form. */
|
|
39
|
+
returnValue?: UndBottomSheetElement['returnValue'];
|
|
40
|
+
/** The sheet settled on another snap point. */
|
|
41
|
+
onUndSnapChange?: (event: UndEvent<CustomEvent<{ index: number; fraction: number }>, UndBottomSheetElement>) => void;
|
|
42
|
+
/** The user asked to open or close the sheet (`reason` is `swipe` for a swipe down). Cancelable. */
|
|
43
|
+
onUndOpenChange?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndBottomSheetElement>) => void;
|
|
44
|
+
/** The sheet opened and its entry animation finished. */
|
|
45
|
+
onUndAfterOpen?: (event: UndEvent<CustomEvent<undefined>, UndBottomSheetElement>) => void;
|
|
46
|
+
/** The sheet closed and its exit animation finished. */
|
|
47
|
+
onUndAfterClose?: (event: UndEvent<CustomEvent<undefined>, UndBottomSheetElement>) => void;
|
|
48
|
+
ref?: Ref<UndBottomSheetElement>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** A dialog that rises from the bottom edge, with drag snap points. */
|
|
52
|
+
export function UndBottomSheet(props: UndBottomSheetProps): ReactElement {
|
|
53
|
+
const { onUndSnapChange, onUndOpenChange, onUndAfterOpen, onUndAfterClose, ...rest } = props;
|
|
54
|
+
return createElement('und-bottom-sheet', {
|
|
55
|
+
...rest,
|
|
56
|
+
'onund-snap-change': onUndSnapChange,
|
|
57
|
+
'onund-open-change': onUndOpenChange,
|
|
58
|
+
'onund-after-open': onUndAfterOpen,
|
|
59
|
+
'onund-after-close': onUndAfterClose,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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/button-group.js';
|
|
7
|
+
import type { UndButtonGroup as UndButtonGroupElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndButtonGroupProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndButtonGroupElement>, 'label' | 'variant' | 'orientation'> {
|
|
11
|
+
/** Accessible name of the group (`aria-label`), for example "Text style". Prefer `aria-labelledby` on the host when a visible label exists. */
|
|
12
|
+
label?: UndButtonGroupElement['label'];
|
|
13
|
+
/** `attached` joins the buttons into one strip; `separated` spaces them. */
|
|
14
|
+
variant?: UndButtonGroupElement['variant'];
|
|
15
|
+
/** Direction the buttons are laid out in. */
|
|
16
|
+
orientation?: UndButtonGroupElement['orientation'];
|
|
17
|
+
ref?: Ref<UndButtonGroupElement>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Groups related buttons visually and as a named group. */
|
|
21
|
+
export function UndButtonGroup(props: UndButtonGroupProps): ReactElement {
|
|
22
|
+
return createElement('und-button-group', props);
|
|
23
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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/calendar.js';
|
|
7
|
+
import type { UndCalendar as UndCalendarElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndCalendarProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndCalendarElement>, 'mode' | 'value' | 'start' | 'end' | 'min' | 'max' | 'months' | 'locale' | 'weekStart' | 'hideOutsideDays' | 'today' | 'isDateDisabled' | 'onUndChange' | 'onUndViewChange'> {
|
|
12
|
+
/** `single` selects one date, `range` selects a start and an end. */
|
|
13
|
+
mode?: UndCalendarElement['mode'];
|
|
14
|
+
/** Selected date in single mode, `YYYY-MM-DD`. */
|
|
15
|
+
value?: UndCalendarElement['value'];
|
|
16
|
+
/** Range start in range mode, `YYYY-MM-DD`. */
|
|
17
|
+
start?: UndCalendarElement['start'];
|
|
18
|
+
/** Range end in range mode, `YYYY-MM-DD`. */
|
|
19
|
+
end?: UndCalendarElement['end'];
|
|
20
|
+
/** Earliest selectable date, `YYYY-MM-DD`. */
|
|
21
|
+
min?: UndCalendarElement['min'];
|
|
22
|
+
/** Latest selectable date, `YYYY-MM-DD`. */
|
|
23
|
+
max?: UndCalendarElement['max'];
|
|
24
|
+
/** Number of months shown side by side (1 to 3). */
|
|
25
|
+
months?: UndCalendarElement['months'];
|
|
26
|
+
/** BCP 47 tag for names and week data. Defaults to the language of the page. */
|
|
27
|
+
locale?: UndCalendarElement['locale'];
|
|
28
|
+
/** First day of the week, 0 (Sunday) to 6 (Saturday). Defaults to the locale's. */
|
|
29
|
+
weekStart?: UndCalendarElement['weekStart'];
|
|
30
|
+
/** Hides the days of neighbouring months (always hidden with more than one month). */
|
|
31
|
+
hideOutsideDays?: UndCalendarElement['hideOutsideDays'];
|
|
32
|
+
/** Overrides "today" (`YYYY-MM-DD`), for tests and server rendering. */
|
|
33
|
+
today?: UndCalendarElement['today'];
|
|
34
|
+
/** Return `true` for a date that cannot be chosen. Receives `YYYY-MM-DD`. Disabled days stay reachable by keyboard and are exposed as `aria-disabled`. */
|
|
35
|
+
isDateDisabled?: UndCalendarElement['isDateDisabled'];
|
|
36
|
+
/** A date was chosen. In range mode it fires after each of the two clicks. */
|
|
37
|
+
onUndChange?: (event: UndEvent<CustomEvent<unknown>, UndCalendarElement>) => void;
|
|
38
|
+
/** The first visible month changed. */
|
|
39
|
+
onUndViewChange?: (event: UndEvent<CustomEvent<{ year: number; month: number }>, UndCalendarElement>) => void;
|
|
40
|
+
ref?: Ref<UndCalendarElement>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** A month grid for choosing a date or a date range. */
|
|
44
|
+
export function UndCalendar(props: UndCalendarProps): ReactElement {
|
|
45
|
+
const { onUndChange, onUndViewChange, ...rest } = props;
|
|
46
|
+
return createElement('und-calendar', {
|
|
47
|
+
...rest,
|
|
48
|
+
'onund-change': onUndChange,
|
|
49
|
+
'onund-view-change': onUndViewChange,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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/carousel.js';
|
|
7
|
+
import type { UndCarousel as UndCarouselElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndCarouselProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndCarouselElement>, 'index' | 'label' | 'picker' | 'loop' | 'autoplay' | 'interval' | 'previousLabel' | 'nextLabel' | 'pickerLabel' | 'pickLabel' | 'slideLabel' | 'playLabel' | 'pauseLabel' | 'onUndSlideChange'> {
|
|
12
|
+
/** Zero-based index of the current slide. */
|
|
13
|
+
index?: UndCarouselElement['index'];
|
|
14
|
+
/** Accessible name of the carousel. */
|
|
15
|
+
label?: UndCarouselElement['label'];
|
|
16
|
+
/** How the reader picks a slide: `tabs` (tab list), `buttons` or `none`. */
|
|
17
|
+
picker?: UndCarouselElement['picker'];
|
|
18
|
+
/** Wrap from the last slide to the first and back. */
|
|
19
|
+
loop?: UndCarouselElement['loop'];
|
|
20
|
+
/** Rotate automatically. Off by default; see the class description. */
|
|
21
|
+
autoplay?: UndCarouselElement['autoplay'];
|
|
22
|
+
/** Milliseconds each slide shows while rotating. */
|
|
23
|
+
interval?: UndCarouselElement['interval'];
|
|
24
|
+
previousLabel?: UndCarouselElement['previousLabel'];
|
|
25
|
+
nextLabel?: UndCarouselElement['nextLabel'];
|
|
26
|
+
pickerLabel?: UndCarouselElement['pickerLabel'];
|
|
27
|
+
/** Name of a picker button; `{n}` is the slide number. */
|
|
28
|
+
pickLabel?: UndCarouselElement['pickLabel'];
|
|
29
|
+
/** Label of each slide; `{n}` is the number and `{total}` the count. */
|
|
30
|
+
slideLabel?: UndCarouselElement['slideLabel'];
|
|
31
|
+
playLabel?: UndCarouselElement['playLabel'];
|
|
32
|
+
pauseLabel?: UndCarouselElement['pauseLabel'];
|
|
33
|
+
/** The current slide changed. */
|
|
34
|
+
onUndSlideChange?: (event: UndEvent<CustomEvent<{ index: number, count: number }>, UndCarouselElement>) => void;
|
|
35
|
+
ref?: Ref<UndCarouselElement>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Slides with previous/next, a slide picker, swipe and optional, pausable rotation. */
|
|
39
|
+
export function UndCarousel(props: UndCarouselProps): ReactElement {
|
|
40
|
+
const { onUndSlideChange, ...rest } = props;
|
|
41
|
+
return createElement('und-carousel', {
|
|
42
|
+
...rest,
|
|
43
|
+
'onund-slide-change': onUndSlideChange,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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/center.js';
|
|
7
|
+
import type { UndCenter as UndCenterElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndCenterProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndCenterElement>, 'max' | 'intrinsic' | 'text'> {
|
|
11
|
+
/** Maximum width: `content` (default), `prose`, `wide`, or `none`. */
|
|
12
|
+
max?: UndCenterElement['max'];
|
|
13
|
+
/** Centers each child by its own width instead of stretching it. */
|
|
14
|
+
intrinsic?: UndCenterElement['intrinsic'];
|
|
15
|
+
/** Centers the text too. */
|
|
16
|
+
text?: UndCenterElement['text'];
|
|
17
|
+
ref?: Ref<UndCenterElement>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Centers content with a maximum width and gutters. */
|
|
21
|
+
export function UndCenter(props: UndCenterProps): ReactElement {
|
|
22
|
+
return createElement('und-center', props);
|
|
23
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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/chat-composer.js';
|
|
7
|
+
import type { UndChatComposer as UndChatComposerElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndChatComposerProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndChatComposerElement>, 'label' | 'placeholder' | 'name' | 'disabled' | 'loading' | 'generating' | 'sendKey' | 'sendLabel' | 'stopLabel' | 'maxLength' | 'value' | 'onUndSend' | 'onUndStop'> {
|
|
12
|
+
/** Accessible name of the textarea (it has no visible label). */
|
|
13
|
+
label?: UndChatComposerElement['label'];
|
|
14
|
+
/** Placeholder hint. */
|
|
15
|
+
placeholder?: UndChatComposerElement['placeholder'];
|
|
16
|
+
/** Field name for form submission. */
|
|
17
|
+
name?: UndChatComposerElement['name'];
|
|
18
|
+
/** Disables the textarea and both buttons. */
|
|
19
|
+
disabled?: UndChatComposerElement['disabled'];
|
|
20
|
+
/** A send is in flight: the send button shows a spinner, reports `aria-busy` and ignores activation (it stays focusable). */
|
|
21
|
+
loading?: UndChatComposerElement['loading'];
|
|
22
|
+
/** A reply is being generated: the stop button replaces the send button and sending is blocked. */
|
|
23
|
+
generating?: UndChatComposerElement['generating'];
|
|
24
|
+
/** Which key sends the message. */
|
|
25
|
+
sendKey?: UndChatComposerElement['sendKey'];
|
|
26
|
+
/** Accessible name of the send button. */
|
|
27
|
+
sendLabel?: UndChatComposerElement['sendLabel'];
|
|
28
|
+
/** Accessible name of the stop button. */
|
|
29
|
+
stopLabel?: UndChatComposerElement['stopLabel'];
|
|
30
|
+
/** Maximum length of the message (UTF-16 code units, native). */
|
|
31
|
+
maxLength?: UndChatComposerElement['maxLength'];
|
|
32
|
+
/** The current text. */
|
|
33
|
+
value?: UndChatComposerElement['value'];
|
|
34
|
+
/** The user sent a message (cancelable). */
|
|
35
|
+
onUndSend?: (event: UndEvent<CustomEvent<{ value: string }>, UndChatComposerElement>) => void;
|
|
36
|
+
/** The user pressed the stop-generation button. */
|
|
37
|
+
onUndStop?: (event: UndEvent<CustomEvent<unknown>, UndChatComposerElement>) => void;
|
|
38
|
+
ref?: Ref<UndChatComposerElement>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Auto-growing message input with send and stop-generation buttons. */
|
|
42
|
+
export function UndChatComposer(props: UndChatComposerProps): ReactElement {
|
|
43
|
+
const { onUndSend, onUndStop, ...rest } = props;
|
|
44
|
+
return createElement('und-chat-composer', {
|
|
45
|
+
...rest,
|
|
46
|
+
'onund-send': onUndSend,
|
|
47
|
+
'onund-stop': onUndStop,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
@@ -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/chat-layout.js';
|
|
7
|
+
import type { UndChatLayout as UndChatLayoutElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndChatLayoutProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndChatLayoutElement>, 'label' | 'jumpLabel' | 'announceMaxLength' | 'noAnnounce' | 'onUndScrollState'> {
|
|
12
|
+
/** Accessible name of the message log. */
|
|
13
|
+
label?: UndChatLayoutElement['label'];
|
|
14
|
+
/** Text of the jump button. */
|
|
15
|
+
jumpLabel?: UndChatLayoutElement['jumpLabel'];
|
|
16
|
+
/** Longest text announced when a streamed message completes (characters). */
|
|
17
|
+
announceMaxLength?: UndChatLayoutElement['announceMaxLength'];
|
|
18
|
+
/** Turns off the completion announcement (for apps that announce themselves). */
|
|
19
|
+
noAnnounce?: UndChatLayoutElement['noAnnounce'];
|
|
20
|
+
/** The reader scrolled away from or back to the bottom. */
|
|
21
|
+
onUndScrollState?: (event: UndEvent<CustomEvent<{ pinned: boolean }>, UndChatLayoutElement>) => void;
|
|
22
|
+
ref?: Ref<UndChatLayoutElement>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Scrolling conversation frame with stick-to-bottom, a jump button and a composer region. */
|
|
26
|
+
export function UndChatLayout(props: UndChatLayoutProps): ReactElement {
|
|
27
|
+
const { onUndScrollState, ...rest } = props;
|
|
28
|
+
return createElement('und-chat-layout', {
|
|
29
|
+
...rest,
|
|
30
|
+
'onund-scroll-state': onUndScrollState,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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/chat-message.js';
|
|
7
|
+
import type { UndChatMessage as UndChatMessageElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndChatMessageProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndChatMessageElement>, 'variant' | 'author' | 'time' | 'status' | 'text' | 'format' | 'streaming' | 'citations' | 'toolCalls' | 'strings' | 'onUndMessageStreaming' | 'onUndMessageComplete'> {
|
|
12
|
+
/** Who the message is from. System messages are centred and muted. */
|
|
13
|
+
variant?: UndChatMessageElement['variant'];
|
|
14
|
+
/** Display name of the author. */
|
|
15
|
+
author?: UndChatMessageElement['author'];
|
|
16
|
+
/** When the message was sent: an ISO 8601 string or epoch milliseconds. Formatted with `Intl.DateTimeFormat` in the page language. */
|
|
17
|
+
time?: UndChatMessageElement['time'];
|
|
18
|
+
/** Delivery state, shown next to the time. */
|
|
19
|
+
status?: UndChatMessageElement['status'];
|
|
20
|
+
/** Message text. Use `appendText()` to add streamed chunks. */
|
|
21
|
+
text?: UndChatMessageElement['text'];
|
|
22
|
+
/** `markdown` renders safe Markdown, `plain` keeps the text as typed; `auto` (default) is `plain` for user messages and `markdown` for the rest. */
|
|
23
|
+
format?: UndChatMessageElement['format'];
|
|
24
|
+
/** The message is still arriving: shows a typing cursor. */
|
|
25
|
+
streaming?: UndChatMessageElement['streaming'];
|
|
26
|
+
/** Sources listed under the message (links go through the URL allowlist). */
|
|
27
|
+
citations?: UndChatMessageElement['citations'];
|
|
28
|
+
/** Tool calls shown as disclosures under the message. */
|
|
29
|
+
toolCalls?: UndChatMessageElement['toolCalls'];
|
|
30
|
+
/** Overrides for the built-in English strings. */
|
|
31
|
+
strings?: UndChatMessageElement['strings'];
|
|
32
|
+
/** `streaming` changed. */
|
|
33
|
+
onUndMessageStreaming?: (event: UndEvent<CustomEvent<{ streaming: boolean }>, UndChatMessageElement>) => void;
|
|
34
|
+
/** Streaming finished. */
|
|
35
|
+
onUndMessageComplete?: (event: UndEvent<CustomEvent<{ author: string, text: string }>, UndChatMessageElement>) => void;
|
|
36
|
+
ref?: Ref<UndChatMessageElement>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** A chat message bubble with author, time, status, tool calls and sources. */
|
|
40
|
+
export function UndChatMessage(props: UndChatMessageProps): ReactElement {
|
|
41
|
+
const { onUndMessageStreaming, onUndMessageComplete, ...rest } = props;
|
|
42
|
+
return createElement('und-chat-message', {
|
|
43
|
+
...rest,
|
|
44
|
+
'onund-message-streaming': onUndMessageStreaming,
|
|
45
|
+
'onund-message-complete': onUndMessageComplete,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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/checkbox-list.js';
|
|
7
|
+
import type { UndCheckboxList as UndCheckboxListElement } from '@und-ui/core';
|
|
8
|
+
import { useControlledProp, type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndCheckboxListProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndCheckboxListElement>, 'label' | 'description' | 'error' | 'name' | 'required' | 'disabled' | 'value' | 'onChange'> {
|
|
12
|
+
/** Visible group label (referenced by `aria-labelledby`). */
|
|
13
|
+
label?: UndCheckboxListElement['label'];
|
|
14
|
+
/** Help text for the group, referenced by `aria-describedby`. */
|
|
15
|
+
description?: UndCheckboxListElement['description'];
|
|
16
|
+
/** Error message for the group. Setting it marks the options invalid. */
|
|
17
|
+
error?: UndCheckboxListElement['error'];
|
|
18
|
+
/** Name shared by the options and submitted with the form data (one entry per checked option). */
|
|
19
|
+
name?: UndCheckboxListElement['name'];
|
|
20
|
+
/** Requires at least one checked option before the form submits. */
|
|
21
|
+
required?: UndCheckboxListElement['required'];
|
|
22
|
+
/** Disables every option. */
|
|
23
|
+
disabled?: UndCheckboxListElement['disabled'];
|
|
24
|
+
/** Values of the checked options, in DOM order. Setting it checks exactly those options. */
|
|
25
|
+
value?: UndCheckboxListElement['value'];
|
|
26
|
+
/** Native `change` from the checkbox the user toggled (read `value` for the whole selection). */
|
|
27
|
+
onChange?: (event: UndEvent<Event, UndCheckboxListElement>) => void;
|
|
28
|
+
ref?: Ref<UndCheckboxListElement>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** A labelled list of checkbox options as card-like rows with descriptions. */
|
|
32
|
+
export function UndCheckboxList(props: UndCheckboxListProps): ReactElement {
|
|
33
|
+
const { onChange, ref, ...rest } = props;
|
|
34
|
+
// Controlled when `value` is set: a change the handler rejects is undone.
|
|
35
|
+
const controlled = useControlledProp<UndCheckboxListElement, 'value'>('value', props.value, ref);
|
|
36
|
+
return createElement('und-checkbox-list', {
|
|
37
|
+
...rest,
|
|
38
|
+
ref: controlled.ref,
|
|
39
|
+
'onchange': (event: UndEvent<Event, UndCheckboxListElement>) => {
|
|
40
|
+
onChange?.(event);
|
|
41
|
+
controlled.settle();
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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/citation.js';
|
|
7
|
+
import type { UndCitation as UndCitationElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndCitationProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndCitationElement>, 'index' | 'href' | 'target' | 'label' | 'sourceTitle'> {
|
|
11
|
+
/** The citation number (1-based). */
|
|
12
|
+
index?: UndCitationElement['index'];
|
|
13
|
+
/** Link to the source. Only http, https, mailto, tel and relative URLs render as a link. */
|
|
14
|
+
href?: UndCitationElement['href'];
|
|
15
|
+
/** Link target (default `_blank`). */
|
|
16
|
+
target?: UndCitationElement['target'];
|
|
17
|
+
/** Accessible name of the link, with `{n}` for the number (default `Source {n}`). The source title is appended when set. */
|
|
18
|
+
label?: UndCitationElement['label'];
|
|
19
|
+
/** Title of the source, used in the accessible name. */
|
|
20
|
+
sourceTitle?: UndCitationElement['sourceTitle'];
|
|
21
|
+
ref?: Ref<UndCitationElement>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Numbered source reference that links out, with an optional preview. */
|
|
25
|
+
export function UndCitation(props: UndCitationProps): ReactElement {
|
|
26
|
+
return createElement('und-citation', props);
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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/clickable-card.js';
|
|
7
|
+
import type { UndClickableCard as UndClickableCardElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndClickableCardProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndClickableCardElement>, 'disabled' | 'variant' | 'headingLevel' | 'href' | 'target' | 'rel'> {
|
|
11
|
+
/** Disables the card. A button is disabled natively; a link is not rendered. */
|
|
12
|
+
disabled?: UndClickableCardElement['disabled'];
|
|
13
|
+
/** Surface style. */
|
|
14
|
+
variant?: UndClickableCardElement['variant'];
|
|
15
|
+
/** Level of the heading (1 to 6), so the card fits the page outline. */
|
|
16
|
+
headingLevel?: UndClickableCardElement['headingLevel'];
|
|
17
|
+
/** Makes the card interactive: the heading becomes a link whose hit area covers the card. Only http(s), mailto, tel and relative URLs are linked (opt in to more with `setAllowedUrlSchemes()`). */
|
|
18
|
+
href?: UndClickableCardElement['href'];
|
|
19
|
+
/** Link target (with `href`). Any target other than `_self`, `_parent` or `_top` adds `rel="noopener noreferrer"`. */
|
|
20
|
+
target?: UndClickableCardElement['target'];
|
|
21
|
+
/** Link relationship (with `href`). */
|
|
22
|
+
rel?: UndClickableCardElement['rel'];
|
|
23
|
+
ref?: Ref<UndClickableCardElement>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** A whole-card link or button without nested interactive elements. */
|
|
27
|
+
export function UndClickableCard(props: UndClickableCardProps): ReactElement {
|
|
28
|
+
return createElement('und-clickable-card', props);
|
|
29
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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/code-block.js';
|
|
7
|
+
import type { UndCodeBlock as UndCodeBlockElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndCodeBlockProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndCodeBlockElement>, 'code' | 'language' | 'lineNumbers' | 'startLine' | 'wrap' | 'wrapToggle' | 'copyable' | 'label' | 'copyLabel' | 'copiedLabel' | 'copyFailedLabel' | 'wrapLabel' | 'onUndCopy' | 'onUndWrapChange'> {
|
|
12
|
+
/** The code as a string. Wins over the element's text. */
|
|
13
|
+
code?: UndCodeBlockElement['code'];
|
|
14
|
+
/** Language name (`js`, `html`, `hi`...). Reflected, shown in the toolbar, and exposed to styles and a future highlighter; it does not change how the code is rendered in v1. */
|
|
15
|
+
language?: UndCodeBlockElement['language'];
|
|
16
|
+
/** Shows line numbers (not part of the copied text). */
|
|
17
|
+
lineNumbers?: UndCodeBlockElement['lineNumbers'];
|
|
18
|
+
/** Number of the first line with `line-numbers`. */
|
|
19
|
+
startLine?: UndCodeBlockElement['startLine'];
|
|
20
|
+
/** Wraps long lines instead of scrolling sideways. */
|
|
21
|
+
wrap?: UndCodeBlockElement['wrap'];
|
|
22
|
+
/** Shows a button that toggles `wrap`. */
|
|
23
|
+
wrapToggle?: UndCodeBlockElement['wrapToggle'];
|
|
24
|
+
/** Shows a copy button. */
|
|
25
|
+
copyable?: UndCodeBlockElement['copyable'];
|
|
26
|
+
/** Accessible name of the scrolling code area (localise it). */
|
|
27
|
+
label?: UndCodeBlockElement['label'];
|
|
28
|
+
/** Text of the copy button (localise it). */
|
|
29
|
+
copyLabel?: UndCodeBlockElement['copyLabel'];
|
|
30
|
+
/** Text shown and announced after a successful copy (localise it). */
|
|
31
|
+
copiedLabel?: UndCodeBlockElement['copiedLabel'];
|
|
32
|
+
/** Message announced when the clipboard refuses the text (localise it). */
|
|
33
|
+
copyFailedLabel?: UndCodeBlockElement['copyFailedLabel'];
|
|
34
|
+
/** Text of the wrap toggle (localise it). */
|
|
35
|
+
wrapLabel?: UndCodeBlockElement['wrapLabel'];
|
|
36
|
+
/** The copy button was used; `success` tells whether the clipboard accepted the text. */
|
|
37
|
+
onUndCopy?: (event: UndEvent<CustomEvent<unknown>, UndCodeBlockElement>) => void;
|
|
38
|
+
/** The wrap toggle changed `wrap`. */
|
|
39
|
+
onUndWrapChange?: (event: UndEvent<CustomEvent<unknown>, UndCodeBlockElement>) => void;
|
|
40
|
+
ref?: Ref<UndCodeBlockElement>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** A block of code with line numbers, wrapping and a copy button. */
|
|
44
|
+
export function UndCodeBlock(props: UndCodeBlockProps): ReactElement {
|
|
45
|
+
const { onUndCopy, onUndWrapChange, ...rest } = props;
|
|
46
|
+
return createElement('und-code-block', {
|
|
47
|
+
...rest,
|
|
48
|
+
'onund-copy': onUndCopy,
|
|
49
|
+
'onund-wrap-change': onUndWrapChange,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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/code.js';
|
|
7
|
+
import type { UndCode as UndCodeElement } from '@und-ui/core';
|
|
8
|
+
|
|
9
|
+
export interface UndCodeProps
|
|
10
|
+
extends Omit<HTMLAttributes<UndCodeElement>, never> {
|
|
11
|
+
ref?: Ref<UndCodeElement>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Inline code. */
|
|
15
|
+
export function UndCode(props: UndCodeProps): ReactElement {
|
|
16
|
+
return createElement('und-code', props);
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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/collapsible.js';
|
|
7
|
+
import type { UndCollapsible as UndCollapsibleElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndCollapsibleProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndCollapsibleElement>, 'open' | 'onUndToggle'> {
|
|
12
|
+
/** Whether the content is shown. */
|
|
13
|
+
open?: UndCollapsibleElement['open'];
|
|
14
|
+
/** The section opened or closed. */
|
|
15
|
+
onUndToggle?: (event: UndEvent<CustomEvent<{ open: boolean }>, UndCollapsibleElement>) => void;
|
|
16
|
+
ref?: Ref<UndCollapsibleElement>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** One show/hide section built on details and summary. */
|
|
20
|
+
export function UndCollapsible(props: UndCollapsibleProps): ReactElement {
|
|
21
|
+
const { onUndToggle, ...rest } = props;
|
|
22
|
+
return createElement('und-collapsible', {
|
|
23
|
+
...rest,
|
|
24
|
+
'onund-toggle': onUndToggle,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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/command-palette.js';
|
|
7
|
+
import type { UndCommandPalette as UndCommandPaletteElement } from '@und-ui/core';
|
|
8
|
+
import { type UndEvent } from './shared.js';
|
|
9
|
+
|
|
10
|
+
export interface UndCommandPaletteProps
|
|
11
|
+
extends Omit<HTMLAttributes<UndCommandPaletteElement>, 'commands' | 'filter' | 'hints' | 'resultCountLabel' | 'placeholder' | 'searchLabel' | 'emptyLabel' | 'hotkey' | 'hotkeyCombo' | 'label' | 'open' | 'modal' | 'variant' | 'size' | 'closedBy' | 'initialFocus' | 'closeLabel' | 'noCloseButton' | 'returnValue' | 'onUndSelect' | 'onUndQueryChange' | 'onUndOpenChange' | 'onUndAfterOpen' | 'onUndAfterClose'> {
|
|
12
|
+
/** The commands, instead of `<option>` children. */
|
|
13
|
+
commands?: UndCommandPaletteElement['commands'];
|
|
14
|
+
/** Decides which commands match the typed text. Defaults to defaultPaletteFilter. */
|
|
15
|
+
filter?: UndCommandPaletteElement['filter'];
|
|
16
|
+
/** Texts of the footer hints. */
|
|
17
|
+
hints?: UndCommandPaletteElement['hints'];
|
|
18
|
+
/** Builds the spoken result count ("3 results"), announced as the search text changes. */
|
|
19
|
+
resultCountLabel?: UndCommandPaletteElement['resultCountLabel'];
|
|
20
|
+
/** Placeholder of the search field. */
|
|
21
|
+
placeholder?: UndCommandPaletteElement['placeholder'];
|
|
22
|
+
/** Accessible name of the search field. */
|
|
23
|
+
searchLabel?: UndCommandPaletteElement['searchLabel'];
|
|
24
|
+
/** Text shown (and announced) when nothing matches. */
|
|
25
|
+
emptyLabel?: UndCommandPaletteElement['emptyLabel'];
|
|
26
|
+
/** Opens and closes the palette with a keyboard shortcut anywhere on the page. Off unless set. */
|
|
27
|
+
hotkey?: UndCommandPaletteElement['hotkey'];
|
|
28
|
+
/** The shortcut used when `hotkey` is set. `mod` is Ctrl or Cmd. */
|
|
29
|
+
hotkeyCombo?: UndCommandPaletteElement['hotkeyCombo'];
|
|
30
|
+
/** The title, rendered as the heading that names the dialog. Use the `label` slot for rich content. */
|
|
31
|
+
label?: UndCommandPaletteElement['label'];
|
|
32
|
+
/** Whether the dialog is open. Setting it opens or closes the dialog without firing `und-open-change`. */
|
|
33
|
+
open?: UndCommandPaletteElement['open'];
|
|
34
|
+
/** Modal (default): the page behind is inert and scrolling is locked. Set `modal="false"` for a non-modal dialog that leaves the page usable. */
|
|
35
|
+
modal?: UndCommandPaletteElement['modal'];
|
|
36
|
+
/** `alert` renders an alert dialog (`role="alertdialog"`) for confirmations: no close button, and the backdrop does not dismiss it. */
|
|
37
|
+
variant?: UndCommandPaletteElement['variant'];
|
|
38
|
+
/** Preferred width. */
|
|
39
|
+
size?: UndCommandPaletteElement['size'];
|
|
40
|
+
/** Which user actions close the dialog, as on the native attribute: `any` (Escape, backdrop click or outside click), `closerequest` (Escape only) or `none`. Defaults to `any`, or `closerequest` for `variant="alert"`. */
|
|
41
|
+
closedBy?: UndCommandPaletteElement['closedBy'];
|
|
42
|
+
/** CSS selector (inside the dialog content) of the element to focus on open. Defaults to an `[autofocus]` element, then the first focusable element. */
|
|
43
|
+
initialFocus?: UndCommandPaletteElement['initialFocus'];
|
|
44
|
+
/** Accessible name of the close button. */
|
|
45
|
+
closeLabel?: UndCommandPaletteElement['closeLabel'];
|
|
46
|
+
/** Hides the close button. Make sure another way to close remains. */
|
|
47
|
+
noCloseButton?: UndCommandPaletteElement['noCloseButton'];
|
|
48
|
+
/** The value passed to `close(value)` or submitted by a `method="dialog"` form. */
|
|
49
|
+
returnValue?: UndCommandPaletteElement['returnValue'];
|
|
50
|
+
/** A command was chosen. Cancelable: `preventDefault()` keeps the palette open. */
|
|
51
|
+
onUndSelect?: (event: UndEvent<CustomEvent<{ value: string; label: string }>, UndCommandPaletteElement>) => void;
|
|
52
|
+
/** The search text changed. */
|
|
53
|
+
onUndQueryChange?: (event: UndEvent<CustomEvent<{ query: string }>, UndCommandPaletteElement>) => void;
|
|
54
|
+
/** The user asked to open or close the palette. Cancelable. */
|
|
55
|
+
onUndOpenChange?: (event: UndEvent<CustomEvent<{ open: boolean; reason: string }>, UndCommandPaletteElement>) => void;
|
|
56
|
+
/** The dialog opened and its entry animation finished. */
|
|
57
|
+
onUndAfterOpen?: (event: UndEvent<CustomEvent<undefined>, UndCommandPaletteElement>) => void;
|
|
58
|
+
/** The dialog closed and its exit animation finished. */
|
|
59
|
+
onUndAfterClose?: (event: UndEvent<CustomEvent<undefined>, UndCommandPaletteElement>) => void;
|
|
60
|
+
ref?: Ref<UndCommandPaletteElement>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** A searchable list of commands in a modal dialog. */
|
|
64
|
+
export function UndCommandPalette(props: UndCommandPaletteProps): ReactElement {
|
|
65
|
+
const { onUndSelect, onUndQueryChange, onUndOpenChange, onUndAfterOpen, onUndAfterClose, ...rest } = props;
|
|
66
|
+
return createElement('und-command-palette', {
|
|
67
|
+
...rest,
|
|
68
|
+
'onund-select': onUndSelect,
|
|
69
|
+
'onund-query-change': onUndQueryChange,
|
|
70
|
+
'onund-open-change': onUndOpenChange,
|
|
71
|
+
'onund-after-open': onUndAfterOpen,
|
|
72
|
+
'onund-after-close': onUndAfterClose,
|
|
73
|
+
});
|
|
74
|
+
}
|